From 2ee61ba075f089614fa8d7f756bfdff8d550cdf2 Mon Sep 17 00:00:00 2001 From: Josh Winn <965114+jawinn@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:04:35 -0400 Subject: [PATCH] feat(fieldlabel)!: s2 migration (#2569) BREAKING CHANGE: uses Spectrum 2 tokens Also: * feat(fieldlabel): medium as default and 100 sizing tokens - Use the correct "100" sized tokens for medium. - Make medium styles the default, to conform with existing pattern. .spectrum-FieldLabel--sizeM class removed as it is no longer necessary. * feat(fieldlabel): use correct font size tokens The font-size tokens used for large and extra large needed to be shifted up to match the s2 spec. * refactor(fieldlabel): remove deprecated mods Remove renamed mods marked as deprecated for S2 release. * docs(fieldlabel): spectrum 2 noted in migration notes Updates some docs and adds migration notes. Clarifies some docs around "left" and "right", and fixes duplicate ID warnings from examples code. * docs(fieldlabel): form - docs update and regenerate mods Add migration guide section to "Form", that currently lives within the Field label component. Regenerates mods to include the removal of deprecated renamed mods. * fix(fieldlabel): rename mod property referencing global token A mod custom property was referencing a global token instead of the component itself. Renames this and adds a note to the migration guide. * feat(fieldlabel): use correct sizing tokens Use correct tokens for some large and extra large custom properties, to matching with design. * style(fieldlabel): applying linter formatting adjustments Run linter fix on the fieldlabel component, which rearranges a few declarations. * docs(fieldlabel): document asterisk icon size Add documentation about asterisk UI icon sizes specified on the design. These sizes are already handled in the Storybook template, but were not really explained to the user. * feat(fieldlabel): black and white static color variants Add classes for static colors, as defined on the designs. And adds examples of these variants to the documentation. * build(fieldlabel): specify s2 tokens release for dependency Use Spectrum 2 version of tokens package in dependencies list. --- yarn.lock | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yarn.lock b/yarn.lock index 86083acf159..a2ecc6ae3e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4768,6 +4768,15 @@ __metadata: languageName: unknown linkType: soft +"@spectrum-css/commons@npm:^9.1.4-next.1": + version: 9.1.4-next.1 + resolution: "@spectrum-css/commons@npm:9.1.4-next.1" + peerDependencies: + "@spectrum-css/tokens": ^14.0.0-next.3 + checksum: 10c0/2da6df7af8cbfc2fde1e243f6fb308fe89c8335c205965aab10939decb0d4a6446bbd51d81a89bcd4bb98a521f64efe0395fa28a098aaaadbe79d48fec9e1244 + languageName: node + linkType: hard + "@spectrum-css/contextualhelp@workspace:components/contextualhelp": version: 0.0.0-use.local resolution: "@spectrum-css/contextualhelp@workspace:components/contextualhelp"