diff --git a/.changeset/beige-dragons-tickle.md b/.changeset/beige-dragons-tickle.md new file mode 100644 index 00000000000..1f5e66fd674 --- /dev/null +++ b/.changeset/beige-dragons-tickle.md @@ -0,0 +1,49 @@ +--- +"@spectrum-css/illustratedmessage": major +"@spectrum-css/dropzone": major +--- + +# S2 Illustrated Message Migration + +This migration contains new tokens for t-shirt sizes (S, M, L), vertical and horizontal orientation along with their maximum width, illustration sizes, and content spacing. Dropzone `--mod` names are renamed to match the semantic tokens in illustrated message. + +## Illustrated Message + +New properties +`--spectrum-illustrated-message-heading-to-description` +`--spectrum-illustrated-message-illustration-to-heading` +`--spectrum-illustrated-message-illustration-to-content` +`--spectrum-illustrated-message-description-to-action` +`--spectrum-illustrated-message-illustration-color` +`--spectrum-illustrated-message-illustration-size` +`--spectrum-illustrated-message-small-cjk-title-font-size` +`--spectrum-illustrated-message-large-cjk-title-font-size` +`--spectrum-illustrated-message-large-body-font-size` +`--spectrum-illustrated-message-horizontal-maximum-width` + +New mods +`--mod-illustrated-message-description-to-action` +`--mod-illustrated-message-heading-to-description` +`--mod-illustrated-message-illustration-to-content` +`--mod-illustrated-message-horizontal-maximum-width` + +Removed properties +`--spectrum-illustrated-message-title-to-heading` +`--spectrum-illustrated-message-description-max-inline-size` +`--spectrum-illustrated-message-heading-max-inline-size` +`--spectrum-illustrated-message-illustration-accent-color` +`--mod-illustrated-message-illustration-accent-color` +`--highcontrast-illustrated-message-illustration-accent-color` + +## Dropzone + +New mods +`--mod-drop-zone-body-to-action` +`--mod-drop-zone-illustration-to-title` + +## Dropzone nested mods + +Renamed mods +`--mod-illustrated-message-title-to-heading` > `--mod-illustrated-message-illustration-to-heading` +`--mod-illustrated-message-heading-to-body` > `--mod-illustrated-message-heading-to-description` +`--mod-illustrated-message-content-maximum-width` > `--mod-illustrated-message-vertical-maximum-width` diff --git a/.changeset/chilly-peaches-sniff.md b/.changeset/chilly-peaches-sniff.md new file mode 100644 index 00000000000..e432e437d28 --- /dev/null +++ b/.changeset/chilly-peaches-sniff.md @@ -0,0 +1,21 @@ +--- +"@spectrum-css/statuslight": major +--- + +## Spectrum 2 migration + +New non-semantic colors were added to the variants list, while the `accent` semantic variant was removed. There were also some new and updated color and text-to-visual tokens used to match the designs, along with normalizing font family, font style, and font weight. + +New mods added: + +- `--mod-statuslight-font-family` +- `--mod-statuslight-font-style` +- `--mod-statuslight-nonsemantic-brown-color` +- `--mod-statuslight-nonsemantic-cinnamon-color` +- `--mod-statuslight-nonsemantic-pink-color` +- `--mod-statuslight-nonsemantic-silver-color` +- `--mod-statuslight-nonsemantic-turquoise-color` + +Removed mods: + +- `--mod-statuslight-semantic-accent-color` diff --git a/.changeset/early-actors-buy.md b/.changeset/early-actors-buy.md new file mode 100644 index 00000000000..bfde7067eea --- /dev/null +++ b/.changeset/early-actors-buy.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Uses the latest releases from Spectrum Tokens (13.0.0-beta.55) diff --git a/.changeset/eleven-cooks-destroy.md b/.changeset/eleven-cooks-destroy.md new file mode 100644 index 00000000000..97ffb79d9b3 --- /dev/null +++ b/.changeset/eleven-cooks-destroy.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Uses the latest release from Spectrum Tokens (13.0.0-beta.35) diff --git a/.changeset/few-doors-smile.md b/.changeset/few-doors-smile.md new file mode 100644 index 00000000000..872a7c98e6d --- /dev/null +++ b/.changeset/few-doors-smile.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/buttongroup": patch +--- + +Adds a new `--mod-buttongroup-flex-wrap` custom property to leverage if a user wishes to customize the `flex-wrap` property. diff --git a/.changeset/few-eels-retire.md b/.changeset/few-eels-retire.md new file mode 100644 index 00000000000..c437b1a540d --- /dev/null +++ b/.changeset/few-eels-retire.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Uses the latest release from Spectrum Tokens (13.0.0-beta.52) diff --git a/.changeset/flat-snails-admire.md b/.changeset/flat-snails-admire.md new file mode 100644 index 00000000000..fa25475ac25 --- /dev/null +++ b/.changeset/flat-snails-admire.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/infieldprogresscircle": major +--- + +## Infield Progresscircle S2 Migration + +In-field progress circle is a new component created to replace progress circle (size S) in t-shirt size components. The button, textfield, combo box, and picker `template.js` files have all been updated to call for infield progress circles. This component comes in four sizes: (S, M, L, XL), has updated color variants (default, white, black), and has a unified track thickness. diff --git a/.changeset/fresh-crabs-deliver.md b/.changeset/fresh-crabs-deliver.md new file mode 100644 index 00000000000..8197b9cc588 --- /dev/null +++ b/.changeset/fresh-crabs-deliver.md @@ -0,0 +1,16 @@ +--- +"@spectrum-css/breadcrumb": major +--- + +#### Spectrum 2 Migration + +The breadcrumbs component is now updated to use the S2 specs and tokens. This includes updated spacing, heights, colors, font sizes, etc. + +There has been a major design change to the variant classes related to density and sizing, to align their terminology better with t-shirt sizes: + +- The "compact" variant no longer exists. The `spectrum-Breadcrumbs--compact` class and associated custom properties are removed. The default (medium) breadcrumbs are now sized similar to what was previously called compact. +- There is a new "large" variant, which uses the `spectrum-Breadcrumbs--sizeL` class. This is sized similarly to what was previously the default. + +In the multiline variant, the size of the title item can optionally be customized using an additional child heading element that applies one of the +typography component's `spectrum-Heading--size*` classes. The preferred sizes specified in the design spec are small, medium, large (default), and +extra-large. If an additional heading element is not used within the title item, the text will still be sized correctly to the default. diff --git a/.changeset/fresh-seahorses-join.md b/.changeset/fresh-seahorses-join.md new file mode 100644 index 00000000000..34f9fb60e01 --- /dev/null +++ b/.changeset/fresh-seahorses-join.md @@ -0,0 +1,8 @@ +--- +"@spectrum-css/button": patch +--- + +#### refactor: remove spectrum-ButtonWithFocusRing placeholder class extend + +Removes the need for the extend from this placeholder class, as the styles it provides have diverged slightly from what is in button and it was causing some unnecessary CSS to override. +This should not result in any changed visuals or behavior, as the same CSS has been integrated. \ No newline at end of file diff --git a/.changeset/friendly-dolls-raise.md b/.changeset/friendly-dolls-raise.md new file mode 100644 index 00000000000..e8504c217f4 --- /dev/null +++ b/.changeset/friendly-dolls-raise.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/avatar": major +--- + +Adds support for new avatar-size tokens (avatar-size-800 to avatar-size-1500). Updates avatar component story to support new sizes. Adds support for avatar-border-color and avatar-border-thickness. diff --git a/.changeset/hot-books-fail.md b/.changeset/hot-books-fail.md new file mode 100644 index 00000000000..4c71ab8b722 --- /dev/null +++ b/.changeset/hot-books-fail.md @@ -0,0 +1,13 @@ +--- +"@spectrum-css/picker": major +--- + +#### Spectrum 2 migration + +Picker now uses Spectrum 2 tokens and specifications. A few notable changes: + +- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`. +- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`. +- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`. +- The mod custom property `--mod-picker-spacing-text-to-alert-icon-inline-start` has been renamed to `--mod-picker-spacing-text-to-icon-inline-end`. This removed the fallback that was marked as deprecated in a previous version. +- The mod custom property `--mod-picker-spacing-text-to-icon` has been removed. Use `--mod-picker-spacing-text-to-icon-inline-end` for the spacing between text and visual (indicator or disclosure), or `--mod-picker-spacing-starting-icon-to-text` for the space between the optional workflow icon and the text. diff --git a/.changeset/itchy-kids-travel.md b/.changeset/itchy-kids-travel.md new file mode 100644 index 00000000000..06e87f65e00 --- /dev/null +++ b/.changeset/itchy-kids-travel.md @@ -0,0 +1,24 @@ +--- +"@spectrum-css/progresscircle": major +--- + +## Progress circle S2 migration + +This is the S2 migration of the progress circle. The original markup has changed to an svg and circle element to allow CSS styles such as `stroke-linecap`. This was necessary to match the design. The `--small/--medium/--large` sizing classes have been deprecated in favor of t-shirt classes `--sizeS/--sizeM/--sizeL` + +### Animation + +`@keyframes spectrum-dashoffset-animation`: +This animation was created by React Spectrum and used to keep the same speed and bezier curve. + +### Added tokens + +### Removed styles & mods + +`--spectrum-progress-circle-track-border-color-over-background` +`--spectrum-progress-circle-fill-border-color-over-background` +`--spectrum-progress-circle-track-border-style` +`--spectrum-progress-circle-track-border-style` +`--highcontrast-progress-circle-track-border-style` +`--mod-progress-circle-track-border-style` +`--spectrum-progress-circle-track-border-style` diff --git a/.changeset/itchy-shrimps-help.md b/.changeset/itchy-shrimps-help.md new file mode 100644 index 00000000000..68598dd4f7c --- /dev/null +++ b/.changeset/itchy-shrimps-help.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/picker": patch +--- + +S2 Popover has an updated default position, bottom-start. The correct `.spectrum-Popover--bottom-start` class was added to the open popover selector blocks for picker so that the spacing from the picker to the popover is correctly adjusted. diff --git a/.changeset/light-years-speak.md b/.changeset/light-years-speak.md new file mode 100644 index 00000000000..908577e5562 --- /dev/null +++ b/.changeset/light-years-speak.md @@ -0,0 +1,23 @@ +--- +"@spectrum-css/tooltip": major +--- + +## Spectrum 2 migration + +This migration includes updated colors, rounding, a bigger tip, and the removal of variants (only neutral is available in Spectrum 2). As a result of the deprecation of variants, icons have also been removed. + +The redesign of the tip, specifically the rounding, required a reworking of how we use clip-path and transform. + +Some custom property mods have been removed: + +- `--mod-tooltip-background-color-informative` +- `--mod-tooltip-background-color-negative` +- `--mod-tooltip-background-color-positive` +- `--mod-tooltip-icon-spacing-block-start` +- `--mod-tooltip-icon-spacing-inline-end` +- `--mod-tooltip-icon-spacing-inline-start` +- `--mod-tooltip-icon-width` + +And one mod has been added: + +- `--mod-tooltip-tip-corner-radius` diff --git a/.changeset/loud-vans-brush.md b/.changeset/loud-vans-brush.md new file mode 100644 index 00000000000..9853d5c122e --- /dev/null +++ b/.changeset/loud-vans-brush.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Adds `--spectrum-standard-dialog-spacing-edge-to-content` to properly adjust the spacing for desktop/mobile dialog styles. diff --git a/.changeset/mean-eggs-learn.md b/.changeset/mean-eggs-learn.md new file mode 100644 index 00000000000..9302a1872d2 --- /dev/null +++ b/.changeset/mean-eggs-learn.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/thumbnail": minor +--- + +Replaces corner-radius-75 with thumbnail-corner-radius. diff --git a/.changeset/metal-fireants-switch.md b/.changeset/metal-fireants-switch.md new file mode 100644 index 00000000000..ff03fe24d56 --- /dev/null +++ b/.changeset/metal-fireants-switch.md @@ -0,0 +1,52 @@ +--- +"@spectrum-css/dialog": major +"@spectrum-css/modal": patch +"@spectrum-css/underlay": patch +--- + +## Spectrum 2 Standard Dialog Migration + +This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area. + +The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`. + +Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed: + +_New Mods_ +`--mod-standard-dialog-spacing-title-to-header-content` +`--mod-standard-dialog-spacing-title-to-description` +`--mod-standard-dialog-header-content-font-size` + +_Renamed Mods_ +`--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small` +`--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width` +`--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large` +`--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius` +`--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size` +`--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height` +`--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color` +`--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight` +`--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight` +`--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height` +`--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color` +`--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size` +`--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size` +`--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size` +`--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding` +`--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer` +`--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button` +`--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group` + +_Removed Mods_ +`--mod-dialog-confirm-buttongroup-padding-top` +`--mod-dialog-confirm-close-button-size` +`--mod-dialog-confirm-description-margin` +`--mod-dialog-confirm-description-padding` +`--mod-dialog-confirm-divider-block-spacing-end` +`--mod-dialog-confirm-divider-block-spacing-start` +`--mod-dialog-confirm-divider-height` + +Modal and underlay updates + +- Modal component now uses the updated corner rounding. +- Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens. diff --git a/.changeset/modern-chairs-sit.md b/.changeset/modern-chairs-sit.md new file mode 100644 index 00000000000..e7294a8b4b4 --- /dev/null +++ b/.changeset/modern-chairs-sit.md @@ -0,0 +1,23 @@ +--- +"@spectrum-css/dialog": major +"@spectrum-css/modal": minor +--- + +## S2 Takeover dialog + +This is the migration for the fullscreen/fullscreenTakeover dialog stories (these stories correspond to the "takeover dialog" in Figma). The Divider component support was removed in S2 standard dialog migration ([#2860](https://github.com/adobe/spectrum-css/pull/2860)). New and updated tokens are in place to update fullscreen/fullscreenTakeover dialog sizing, grid spacing, spacing in the header, and font sizes. Fullscreen/fullscreenTakeover dialogs do not support additional footer content or checkboxes (in comparison to the standard dialog). + +Takeover dialogs also support replacing text in the header and body areas with other components. This required an additional `.spectrum-Dialog-headerContentWrapper` element that should center whatever component/content within. + +Class names updated to match naming convention (remove hyphens and capitalize second word): +`.spectrum-Dialog-header-content` > `.spectrum-Dialog-headerContent` +`.spectrum-Dialog-footer-content` > `.spectrum-Dialog-footerContent` + +_New Mods_ +`--mod-takeover-dialog-grid-spacing` +`--mod-takeover-dialog-spacing-header-content-gap` +`--mod-takeover-dialog-title-font-size` + +Modal updates + +- Modal component now uses the updated margin token (`window-to-edge`) found in the takeover dialog design specs. This work also introduced `--spectrum-modal-takeover-window-to-edge` diff --git a/.changeset/nine-kings-repair.md b/.changeset/nine-kings-repair.md new file mode 100644 index 00000000000..eee7910997a --- /dev/null +++ b/.changeset/nine-kings-repair.md @@ -0,0 +1,18 @@ +--- +"@spectrum-css/button": major +--- + +#### Spectrum 2 migration + +Button now uses Spectrum 2 tokens and specifications, which includes many color changes to all variants. A few other notable changes: + +- Outline buttons are no longer available in accent and negative options — use the filled variant instead. +- Medium size is now the default. The class `.spectrum-Button--sizeM` is now unnecessary for this size, and has been removed. +- The `.spectrum-Button--fill` class is no longer needed and has been removed. + +The following `--mod` custom properties have been renamed: + +- `--mod-line-height-100` has been renamed to `--mod-button-line-height` +- `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family` +- `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration` +- `--mod-bold-font-weight` has been renamed to `--mod-button-font-weight` diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000000..01351f1850a --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,132 @@ +{ + "mode": "pre", + "tag": "next", + "initialVersions": { + "@spectrum-tools/gh-action-file-diff": "2.1.0", + "@spectrum-css/preview": "11.0.1-next.2", + "@spectrum-css/accordion": "7.0.1", + "@spectrum-css/actionbar": "10.0.1", + "@spectrum-css/actionbutton": "7.0.1", + "@spectrum-css/actiongroup": "6.0.1", + "@spectrum-css/actionmenu": "7.0.0", + "@spectrum-css/alertbanner": "3.0.1", + "@spectrum-css/alertdialog": "4.0.1", + "@spectrum-css/asset": "7.0.1", + "@spectrum-css/assetcard": "5.0.1", + "@spectrum-css/assetlist": "8.0.1", + "@spectrum-css/avatar": "9.0.1", + "@spectrum-css/badge": "6.0.1", + "@spectrum-css/breadcrumb": "11.0.1", + "@spectrum-css/button": "14.0.1", + "@spectrum-css/buttongroup": "9.0.1", + "@spectrum-css/calendar": "7.0.1", + "@spectrum-css/card": "11.0.1", + "@spectrum-css/checkbox": "10.0.1", + "@spectrum-css/clearbutton": "7.0.1", + "@spectrum-css/closebutton": "6.0.1", + "@spectrum-css/coachindicator": "4.0.1", + "@spectrum-css/coachmark": "9.0.1", + "@spectrum-css/colorarea": "7.0.1", + "@spectrum-css/colorhandle": "10.0.1", + "@spectrum-css/colorloupe": "7.0.1", + "@spectrum-css/colorslider": "8.0.1", + "@spectrum-css/colorwheel": "6.0.1", + "@spectrum-css/combobox": "4.0.1", + "@spectrum-css/commons": "11.0.0", + "@spectrum-css/contextualhelp": "5.0.1", + "@spectrum-css/datepicker": "4.0.1", + "@spectrum-css/dial": "5.0.1", + "@spectrum-css/dialog": "12.0.1", + "@spectrum-css/divider": "5.0.1", + "@spectrum-css/dropindicator": "7.0.1", + "@spectrum-css/dropzone": "8.0.1", + "@spectrum-css/fieldgroup": "7.0.1", + "@spectrum-css/fieldlabel": "10.0.1", + "@spectrum-css/floatingactionbutton": "4.0.1", + "@spectrum-css/form": "1.0.1", + "@spectrum-css/helptext": "7.0.1", + "@spectrum-css/icon": "9.0.1", + "@spectrum-css/illustratedmessage": "9.0.1", + "@spectrum-css/infieldbutton": "6.0.1", + "@spectrum-css/inlinealert": "10.0.1", + "@spectrum-css/link": "7.0.1", + "@spectrum-css/logicbutton": "6.0.1", + "@spectrum-css/menu": "9.0.1", + "@spectrum-css/meter": "1.0.1", + "@spectrum-css/miller": "8.0.1", + "@spectrum-css/modal": "7.0.1", + "@spectrum-css/opacitycheckerboard": "4.0.1", + "@spectrum-css/page": "9.0.1", + "@spectrum-css/pagination": "10.0.1", + "@spectrum-css/picker": "9.0.1", + "@spectrum-css/pickerbutton": "6.0.1", + "@spectrum-css/popover": "8.0.1", + "@spectrum-css/progressbar": "6.0.1", + "@spectrum-css/progresscircle": "5.0.1", + "@spectrum-css/radio": "10.0.1", + "@spectrum-css/rating": "6.0.1", + "@spectrum-css/search": "8.0.1", + "@spectrum-css/sidenav": "7.0.1", + "@spectrum-css/slider": "6.0.1", + "@spectrum-css/splitview": "7.0.1", + "@spectrum-css/statuslight": "9.0.1", + "@spectrum-css/steplist": "7.0.1", + "@spectrum-css/stepper": "7.0.1", + "@spectrum-css/swatch": "8.0.1", + "@spectrum-css/swatchgroup": "5.0.1", + "@spectrum-css/switch": "6.0.1", + "@spectrum-css/table": "8.0.1", + "@spectrum-css/tabs": "6.0.1", + "@spectrum-css/tag": "10.0.1", + "@spectrum-css/taggroup": "7.0.1", + "@spectrum-css/textfield": "8.0.1", + "@spectrum-css/thumbnail": "8.0.1", + "@spectrum-css/toast": "11.0.1", + "@spectrum-css/tooltip": "7.0.1", + "@spectrum-css/tray": "5.0.1", + "@spectrum-css/treeview": "12.0.1", + "@spectrum-css/typography": "8.0.1", + "@spectrum-css/underlay": "6.0.1", + "@spectrum-css/well": "7.0.1", + "@spectrum-tools/postcss-rgb-mapping": "1.0.0", + "@spectrum-tools/stylelint-no-missing-var": "2.0.1", + "@spectrum-tools/stylelint-no-unknown-custom-properties": "2.0.2", + "@spectrum-tools/stylelint-no-unused-custom-properties": "2.0.3", + "@spectrum-css/tokens": "16.0.0", + "@spectrum-css/bundle": "1.0.0", + "@spectrum-css/generator": "4.1.0", + "@spectrum-css/ui-icons": "1.1.2", + "@spectrum-css/infieldprogresscircle": "0.0.0" + }, + "changesets": [ + "beige-dragons-tickle", + "chilly-peaches-sniff", + "early-actors-buy", + "eleven-cooks-destroy", + "few-doors-smile", + "few-eels-retire", + "flat-snails-admire", + "fresh-crabs-deliver", + "fresh-seahorses-join", + "friendly-dolls-raise", + "hot-books-fail", + "itchy-kids-travel", + "itchy-shrimps-help", + "light-years-speak", + "loud-vans-brush", + "mean-eggs-learn", + "metal-fireants-switch", + "modern-chairs-sit", + "nine-kings-repair", + "pretty-parents-drum", + "proud-jokes-rule", + "rotten-meals-share", + "serious-clouds-jam", + "spotty-onions-study", + "strange-glasses-allow", + "tame-bobcats-beam", + "tame-wasps-shake", + "twenty-ravens-divide", + "twenty-tables-know" + ] +} diff --git a/.changeset/pretty-parents-drum.md b/.changeset/pretty-parents-drum.md new file mode 100644 index 00000000000..a045761314f --- /dev/null +++ b/.changeset/pretty-parents-drum.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Uses the latest releases from Spectrum Tokens (13.0.0-beta.30) diff --git a/.changeset/proud-jokes-rule.md b/.changeset/proud-jokes-rule.md new file mode 100644 index 00000000000..23bfe575805 --- /dev/null +++ b/.changeset/proud-jokes-rule.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/progressbar": major +--- + +## S2 migration + +Progress bar now uses Spectrum 2 tokens and specifications. This migration includes updated colors, font sizes, and spacing. No mods were harmed in the migration of this component (all `--mod` properties remain the same). diff --git a/.changeset/rotten-meals-share.md b/.changeset/rotten-meals-share.md new file mode 100644 index 00000000000..f61652384af --- /dev/null +++ b/.changeset/rotten-meals-share.md @@ -0,0 +1,17 @@ +--- +"@spectrum-css/popover": major +--- + +## S2 Popover Migration + +The S2 popover using new tokens for border color, padding, corner radius and elevation/drop shadows. + +Renamed Mods + +| Old mod | New mod | +| --------------------------------------------- | ------------------------------------ | +| `--mod-popover-shadow-blur` | `--mod-popover-drop-shadow-blur` | +| `--mod-popover-shadow-color` | `--mod-popover-drop-shadow-color` | +| `--mod-popover-shadow-horizontal` | `--mod-popover-drop-shadow-x` | +| `--mod-popover-shadow-vertical` | `--mod-popover-drop-shadow-y` | +| `--mod-popover-content-area-spacing-vertical` | `--mod-popover-content-area-spacing` | diff --git a/.changeset/serious-clouds-jam.md b/.changeset/serious-clouds-jam.md new file mode 100644 index 00000000000..1c68dc92f32 --- /dev/null +++ b/.changeset/serious-clouds-jam.md @@ -0,0 +1,11 @@ +--- +"@spectrum-css/colorslider": minor +--- + +## S2 colorslider migration + +This migrates the `colorslider` component to S2. Custom properties have been remapped per the design spec. + +| Before | After | +| ------------------------- | -------------------------- | +| `--spectrum-gray-900-rgb` | `--spectrum-gray-1000-rgb` | diff --git a/.changeset/spotty-onions-study.md b/.changeset/spotty-onions-study.md new file mode 100644 index 00000000000..40bed0dd1dd --- /dev/null +++ b/.changeset/spotty-onions-study.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/colorarea": major +--- + +# S2 migration + +This change migrates the `colorarea` component to S2. It leverages updated tokens and the `rgba(...)` color function, replacing the existing `TODO` and hardcoded values. diff --git a/.changeset/strange-glasses-allow.md b/.changeset/strange-glasses-allow.md new file mode 100644 index 00000000000..941d18b4417 --- /dev/null +++ b/.changeset/strange-glasses-allow.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/colorloupe": major +--- + +## Spectrum 2 migration + +Migrates color loupe to Spectrum 2 tokens. Color loupe now uses the new drop shadow tokens `--spectrum-drop-shadow-elevated-x`, `--spectrum-drop-shadow-elevated-y`, `--spectrum-drop-shadow-elevated-blur`, and `--spectrum-drop-shadow-elevated-color` rather than specific color loupe tokens. diff --git a/.changeset/tame-bobcats-beam.md b/.changeset/tame-bobcats-beam.md new file mode 100644 index 00000000000..aec1388e32f --- /dev/null +++ b/.changeset/tame-bobcats-beam.md @@ -0,0 +1,19 @@ +--- +"@spectrum-css/alertbanner": major +--- + +## Spectrum 2 migration + +Alert banner now uses Spectrum 2 tokens and specifications. In this new design, the divider has been removed. + +The following changes have been made to the mod custom properties: + +- `--mod-alert-banner-size` was renamed to `--mod-alert-banner-inline-size` +- `--mod-alert-banner-neutral-background` was previously misspelled. The mod `--mod-alert-banner-background` was also added, which will take precendence over the variant background mods. +- `--mod-alert-banner-top-text` was renamed to `--mod-alert-banner-top-to-text` +- `--mod-alert-banner-top-icon` was renamed to `--mod-alert-banner-top-to-icon` +- `--mod-alert-banner-bottom-text` was renamed to `--mod-alert-banner-bottom-to-text` +- `--mod-alert-banner-start-edge` was renamed to `--mod-alert-banner-inline-start-to-content` +- `--mod-alert-banner-edge-to-button` was renamed to `--mod-alert-banner-block-edge-to-button` +- The spacing on either side of the close button is now controlled by two separate mods; `--mod-alert-banner-close-button-to-inline-end` and `--mod-alert-banner-close-button-to-content`. The previous `--mod-alert-banner-close-button-spacing` has been removed. +- A new mod `--mod-alert-banner-inline-end-to-content` was added, which handles the inline end spacing when the alert banner does not have a close button. Or when there is neither a close button or an action button. diff --git a/.changeset/tame-wasps-shake.md b/.changeset/tame-wasps-shake.md new file mode 100644 index 00000000000..497c6e88d27 --- /dev/null +++ b/.changeset/tame-wasps-shake.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Uses the latest releases from Spectrum Tokens (spectrum-tokens@13.0.0-beta.56) diff --git a/.changeset/twenty-ravens-divide.md b/.changeset/twenty-ravens-divide.md new file mode 100644 index 00000000000..01f7271a5fe --- /dev/null +++ b/.changeset/twenty-ravens-divide.md @@ -0,0 +1,8 @@ +--- +"@spectrum-css/coachmark": minor +--- + +CSS references to popover custom properties/tokens were updated to reflect some mod name changes in the S2 popover (#3365). The corner radius token was updated to correspond to the new S2 popover corner radius, as well as some updated popover mod names: + +- `--mod-popover-content-area-spacing-vertical` was updated to `--mod-popover-content-area-spacing`. +- `--spectrum-border-width-100` was updated to `--spectrum-corner-radius-large-default` diff --git a/.changeset/twenty-tables-know.md b/.changeset/twenty-tables-know.md new file mode 100644 index 00000000000..9f18ef93a5f --- /dev/null +++ b/.changeset/twenty-tables-know.md @@ -0,0 +1,10 @@ +--- +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/thumbnail": minor +--- + +# S2 migration + +Adds thumbnail specific `thumbnail-opacity-checkerboard-square-size` token aliased to `--spectrum-opacity-checkerboard-size`. This impacts the display of the `opacity-checkerboard` when used within the `thumbnail` component. + +This also corrects an issue with a token name in the `thumbnail` component by renaming `--spectrum-thumbnail-border-color-opacity` to `--spectrum-thumbnail-border-opacity`. diff --git a/.github/QUICK-START.md b/.github/QUICK-START.md index 963eb0580fb..f1b4b22bfaa 100644 --- a/.github/QUICK-START.md +++ b/.github/QUICK-START.md @@ -3,6 +3,7 @@ This guide will show you how to quickly install Spectrum CSS and use it to display the Button component. ## Install using Node/yarn + Install the components you want along with their dependencies. Here's an example: ```shell @@ -12,7 +13,7 @@ yarn add -DW @spectrum-css/tokens @spectrum-css/typography @spectrum-css/page @s Spectrum CSS components utilize custom properties in order to change themes and scales. For these to apply, a couple of classes need to be added to the document’s `` tag based on the [visual language](https://github.com/adobe/spectrum-css?tab=readme-ov-file#visual-language), [scale](https://github.com/adobe/spectrum-css?tab=readme-ov-file#scales), and [theme](https://github.com/adobe/spectrum-css?tab=readme-ov-file#themes-colorstops) you wish to use. For example, the following code snippet will display styling for the default Spectrum visual language using medium scale and light color theme: ```html - + ``` Use the `index.css` files in your project to include component and global styles ([Spectrum and Express contexts](https://github.com/adobe/spectrum-css?tab=readme-ov-file#visual-language), [background theme/colorstop](https://github.com/adobe/spectrum-css?tab=readme-ov-file#themes-colorstops), [platform scaling](https://github.com/adobe/spectrum-css?tab=readme-ov-file#scales), etc.) for the component. If you don't need all of the global styles, peek at the docs for [including assets](https://github.com/adobe/spectrum-css?tab=readme-ov-file#including-assets)). Use this file by including the stylesheet (plus stylesheets for dependencies) in the `` tag: @@ -20,17 +21,25 @@ Use the `index.css` files in your project to include component and global styles ```html - + - + ``` Inside the `` tag, add the markup for your component (Spectrum button in our example). The example also includes the CSS class names `spectrum-Button--fill` and `spectrum-Button--accent`, to use the accent variant: ```html - ``` @@ -40,12 +49,19 @@ To put it all together, your final html file will look like this: ```html - - - + + - @@ -53,4 +69,5 @@ To put it all together, your final html file will look like this: ``` ## Include files from a CDN + Another way to include Spectrum CSS components in your project is to use a CDN to link to the components you want, plus their dependencies, in the `` tag of your HTML. If you choose to use a CDN, please note that Spectrum CSS doesn't manage a CDN, cannot confirm the availability or up-time of external CDNs, and doesn't recommend using a CDN for Spectrum CSS in a production environment. diff --git a/.github/actions/file-diff/CHANGELOG.md b/.github/actions/file-diff/CHANGELOG.md index b2319339283..43a3971e490 100644 --- a/.github/actions/file-diff/CHANGELOG.md +++ b/.github/actions/file-diff/CHANGELOG.md @@ -16,65 +16,70 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -##2.0.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.4...@spectrum-tools/gh-action-file-diff@2.0.5) + +## 2.0.5 + +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.4...@spectrum-tools/gh-action-file-diff@2.0.5) **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -##2.0.4 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.3...@spectrum-tools/gh-action-file-diff@2.0.4) + +## 2.0.4 + +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.3...@spectrum-tools/gh-action-file-diff@2.0.4) **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -##2.0.3 -🗓 -2024-02-06 + +## 2.0.3 + +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -##2.0.2 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.1...@spectrum-tools/gh-action-file-diff@2.0.2) + +## 2.0.2 + +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.1...@spectrum-tools/gh-action-file-diff@2.0.2) **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -##2.0.1 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.0...@spectrum-tools/gh-action-file-diff@2.0.1) + +## 2.0.1 + +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@2.0.0...@spectrum-tools/gh-action-file-diff@2.0.1) **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -#2.0.0 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@1.0.2...@spectrum-tools/gh-action-file-diff@2.0.0) -\*feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) +## 2.0.0 - ### - 🛑 BREAKING CHANGES +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/gh-action-file-diff@1.0.2...@spectrum-tools/gh-action-file-diff@2.0.0) - * - - @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. +- feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) + +### 🛑 BREAKING CHANGES + - @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. - NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set. -##1.0.2 -🗓 -2023-11-15 + +## 1.0.2 + +🗓 2023-11-15 **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff -##1.0.1 -🗓 -2023-11-13 + +## 1.0.1 + +🗓 2023-11-13 **Note:** Version bump only for package @spectrum-tools/gh-action-file-diff diff --git a/.github/actions/file-diff/README.md b/.github/actions/file-diff/README.md index 69ee1c91426..e20ef0d7b0b 100644 --- a/.github/actions/file-diff/README.md +++ b/.github/actions/file-diff/README.md @@ -44,9 +44,8 @@ Total size of all files for this branch in bytes. name: Compare compiled output file size uses: "spectrum-tools/gh-action-file-diff" with: - head-path: ${{ github.workspace }}/pull-request - base-path: ${{ github.workspace }}/base-branch - file-glob-pattern: | - components/*/dist/*.{css,json} - components/*/dist/themes/*.css + head-path: ${{ github.workspace }}/pull-request + base-path: ${{ github.workspace }}/base-branch + file-glob-pattern: | + components/*/dist/*.{css,json} ``` diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index c6fd8824220..e813676e215 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -98,8 +98,6 @@ jobs: files_yaml: | styles: - components/*/index.css - - components/*/themes/spectrum.css - - components/*/themes/express.css eslint: - components/*/stories/*.js plugins: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 17e6219d073..b52638ee840 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -90,9 +90,10 @@ jobs: filter_mode: diff_context level: error reporter: github-pr-review - # stylelint_input: "components/*/index.css components/*/themes/*.css" + # stylelint_input: "components/*/index.css" stylelint_input: "${{ inputs.styles_added_files }} ${{ inputs.styles_modified_files }}" stylelint_config: "${{ github.workspace }}/stylelint.config.js" + packages: 'stylelint-header stylelint-config-standard stylelint-selector-bem-pattern stylelint-order stylelint-use-logical' - name: Run eslint on packages and stories uses: reviewdog/action-eslint@v1.33.0 diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml index a8944aeecd4..d90c0d89a3d 100644 --- a/.github/workflows/vrt.yml +++ b/.github/workflows/vrt.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - spectrum-two - "!changeset-release/**" - "!dependabot/**" workflow_dispatch: diff --git a/.storybook/CHANGELOG.md b/.storybook/CHANGELOG.md index 77e9e221299..d18441b6bc3 100644 --- a/.storybook/CHANGELOG.md +++ b/.storybook/CHANGELOG.md @@ -1,5 +1,31 @@ # Change Log +## 11.0.1-next.2 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2a9cb4a`](https://github.com/adobe/spectrum-css/commit/2a9cb4afd2514fa527f4819b7a6c00864b0cccf2) Thanks [@pfulton](https://github.com/pfulton)! - Updates the tags used by the stories in the "Foundations" documentation, so hidden stories remain hidden on the sidebar. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/bundle@1.0.0 + +## 11.0.1-next.1 + +### Patch Changes + +- Updated dependencies [[`b9aeb20`](https://github.com/adobe/spectrum-css/commit/b9aeb203dd0bd728606d47d10dbd37fb42229379)]: + - @spectrum-css/tokens@14.0.0-next.11 + +## 11.0.1-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/underlay@4.1.1-next.0 + - @spectrum-css/table@7.0.0-next.0 + ## 12.0.1 ### Patch Changes @@ -296,36 +322,28 @@ - [#2671](https://github.com/adobe/spectrum-css/pull/2671) [`9130dd9`](https://github.com/adobe/spectrum-css/commit/9130dd9eee61abd4ae6a02c92a333f66bc5afdcf) Thanks [@castastrophe](https://github.com/castastrophe)! - Support for Node v18 dropped; upgraded to Node v20 -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - ## 9.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.4...@spectrum-css/preview@9.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.4...@spectrum-css/preview@9.0.0) ### ✨ Features *storybook - disable whats new notification popup ([#2628](https://github.com/adobe/spectrum-css/issues/2628))([e5391b6](https://github.com/adobe/spectrum-css/commit/e5391b6))*use storybook v8 ([#2604](https://github.com/adobe/spectrum-css/issues/2604))([166ab23](https://github.com/adobe/spectrum-css/commit/166ab23)) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css ## 8.0.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.3...@spectrum-css/preview@8.0.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.3...@spectrum-css/preview@8.0.4) **Note:** Version bump only for package @spectrum-css/preview @@ -333,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.2...@spectrum-css/preview@8.0.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.2...@spectrum-css/preview@8.0.3) **Note:** Version bump only for package @spectrum-css/preview @@ -342,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.2 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.1...@spectrum-css/preview@8.0.2) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.1...@spectrum-css/preview@8.0.2) **Note:** Version bump only for package @spectrum-css/preview @@ -351,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.0...@spectrum-css/preview@8.0.1) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@8.0.0...@spectrum-css/preview@8.0.1) **Note:** Version bump only for package @spectrum-css/preview @@ -360,18 +375,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.5.0...@spectrum-css/preview@8.0.0) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.5.0...@spectrum-css/preview@8.0.0) ### ♻️ Code refactoring - **quickaction:**deprecate component; support this in docs ([#2304](https://github.com/adobe/spectrum-css/issues/2304))([84e1ee9](https://github.com/adobe/spectrum-css/commit/84e1ee9)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - **quickaction:** @spectrum-css/quickaction deprecated +- **quickaction:** @spectrum-css/quickaction deprecated This component has been deprecated. Use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead. @@ -379,8 +391,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.5.0 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.4.2...@spectrum-css/preview@7.5.0) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.4.2...@spectrum-css/preview@7.5.0) ### ✨ Features @@ -390,8 +401,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.4.2 -🗓 -2024-02-06 +🗓 2024-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.4.1...@spectrum-css/preview@7.4.2) **Note:** Version bump only for package @spectrum-css/preview @@ -399,8 +409,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.4.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.4.0...@spectrum-css/preview@7.4.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.4.0...@spectrum-css/preview@7.4.1) **Note:** Version bump only for package @spectrum-css/preview @@ -408,8 +417,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.4.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.3.0...@spectrum-css/preview@7.4.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.3.0...@spectrum-css/preview@7.4.0) **Note:** Version bump only for package @spectrum-css/preview @@ -417,19 +425,17 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.3.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.2.1...@spectrum-css/preview@7.3.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.2.1...@spectrum-css/preview@7.3.0) ### ✨ Features -\*migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum-css/issues/2460))([bd6c40e](https://github.com/adobe/spectrum-css/commit/bd6c40e)) +- migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum-css/issues/2460))([bd6c40e](https://github.com/adobe/spectrum-css/commit/bd6c40e)) ## 7.2.1 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.2.0...@spectrum-css/preview@7.2.1) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.2.0...@spectrum-css/preview@7.2.1) **Note:** Version bump only for package @spectrum-css/preview @@ -437,8 +443,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.1.0...@spectrum-css/preview@7.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.1.0...@spectrum-css/preview@7.2.0) ### ✨ Features @@ -446,14 +451,13 @@ This component has been deprecated. Use an action bar to allow users to perform ### 🐛 Bug fixes -\*remove storybook-addon-pseudo-states ([#2401](https://github.com/adobe/spectrum-css/issues/2401))([4510975](https://github.com/adobe/spectrum-css/commit/4510975)) +- remove storybook-addon-pseudo-states ([#2401](https://github.com/adobe/spectrum-css/issues/2401))([4510975](https://github.com/adobe/spectrum-css/commit/4510975)) ## 7.1.0 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.0.0...@spectrum-css/preview@7.1.0) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@7.0.0...@spectrum-css/preview@7.1.0) ### ✨ Features @@ -463,29 +467,24 @@ This component has been deprecated. Use an action bar to allow users to perform ## 7.0.0 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@6.0.1...@spectrum-css/preview@7.0.0) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@6.0.1...@spectrum-css/preview@7.0.0) ### 🐛 Bug fixes -- **storybook:**chromatic requires build script ([#2360](https://github.com/adobe/spectrum-css/issues/2360))([114b75b](https://github.com/adobe/spectrum-css/commit/114b75b)) +- **storybook:**chromatic requires build script ([#2360](https://github.com/adobe/spectrum-css/issues/2360))([114b75b](https://github.com/adobe/spectrum-css/commit/114b75b)) - \*feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) +- feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) - ### - 🛑 BREAKING CHANGES - - * - - @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. +### 🛑 BREAKING CHANGES -* NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set. +- @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. +- NEW: @spectrum-css/ui-icons package for all SVG icons in the UI set. ## 6.0.1 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@6.0.0...@spectrum-css/preview@6.0.1) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@6.0.0...@spectrum-css/preview@6.0.1) ### 🐛 Bug fixes @@ -495,26 +494,19 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.0 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.1.0...@spectrum-css/preview@6.0.0) - -\*feat(vars,expressvars)!: deprecate packages (#2244)([5eb391c](https://github.com/adobe/spectrum-css/commit/5eb391c)), closes[#2244](https://github.com/adobe/spectrum-css/issues/2244) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.1.0...@spectrum-css/preview@6.0.0) - ### - 🛑 BREAKING CHANGES +- feat(vars,expressvars)!: deprecate packages (#2244)([5eb391c](https://github.com/adobe/spectrum-css/commit/5eb391c)), closes[#2244](https://github.com/adobe/spectrum-css/issues/2244) - * - as no additional changes have been or are planned to be made to +### 🛑 BREAKING CHANGES -these legacy token packages, these assets no longer need to exist in the monorepo -structure for Spectrum CSS. +- as no additional changes have been or are planned to be made to these legacy token packages, these assets no longer need to exist in the monorepo structure for Spectrum CSS. ## 5.1.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.1.0...@spectrum-css/preview@5.1.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.1.0...@spectrum-css/preview@5.1.1) **Note:** Version bump only for package @spectrum-css/preview @@ -522,8 +514,7 @@ structure for Spectrum CSS. ## 5.1.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.5...@spectrum-css/preview@5.1.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.5...@spectrum-css/preview@5.1.0) ### ✨ Features @@ -533,8 +524,7 @@ structure for Spectrum CSS. ## 5.0.5 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.4...@spectrum-css/preview@5.0.5) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.4...@spectrum-css/preview@5.0.5) **Note:** Version bump only for package @spectrum-css/preview @@ -542,8 +532,7 @@ structure for Spectrum CSS. ## 5.0.4 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.3...@spectrum-css/preview@5.0.4) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.3...@spectrum-css/preview@5.0.4) **Note:** Version bump only for package @spectrum-css/preview @@ -551,8 +540,7 @@ structure for Spectrum CSS. ## 5.0.3 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.2...@spectrum-css/preview@5.0.3) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.2...@spectrum-css/preview@5.0.3) **Note:** Version bump only for package @spectrum-css/preview @@ -560,8 +548,7 @@ structure for Spectrum CSS. ## 5.0.2 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.1...@spectrum-css/preview@5.0.2) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.1...@spectrum-css/preview@5.0.2) **Note:** Version bump only for package @spectrum-css/preview @@ -569,8 +556,7 @@ structure for Spectrum CSS. ## 5.0.1 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.0...@spectrum-css/preview@5.0.1) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@5.0.0...@spectrum-css/preview@5.0.1) **Note:** Version bump only for package @spectrum-css/preview @@ -578,16 +564,13 @@ structure for Spectrum CSS. ## 5.0.0 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.14...@spectrum-css/preview@5.0.0) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.14...@spectrum-css/preview@5.0.0) -\*feat(splitview)!: migrate to spectrum tokens (#2103)([4f39c5d](https://github.com/adobe/spectrum-css/commit/4f39c5d)), closes[#2103](https://github.com/adobe/spectrum-css/issues/2103) +- feat(splitview)!: migrate to spectrum tokens (#2103)([4f39c5d](https://github.com/adobe/spectrum-css/commit/4f39c5d)), closes[#2103](https://github.com/adobe/spectrum-css/issues/2103) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - migrates SplitView to use `@adobe/spectrum-tokens` +- migrates SplitView to use `@adobe/spectrum-tokens` Additionally: @@ -610,8 +593,7 @@ fix max nesting depth ## 4.1.14 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.13...@spectrum-css/preview@4.1.14) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.13...@spectrum-css/preview@4.1.14) **Note:** Version bump only for package @spectrum-css/preview @@ -619,8 +601,7 @@ fix max nesting depth ## 4.1.13 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.12...@spectrum-css/preview@4.1.13) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.12...@spectrum-css/preview@4.1.13) **Note:** Version bump only for package @spectrum-css/preview @@ -628,19 +609,17 @@ fix max nesting depth ## 4.1.12 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.11...@spectrum-css/preview@4.1.12) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.11...@spectrum-css/preview@4.1.12) ### 🔙 Reverts -\*gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) +- gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) ## 4.1.11 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.10...@spectrum-css/preview@4.1.11) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.10...@spectrum-css/preview@4.1.11) **Note:** Version bump only for package @spectrum-css/preview @@ -648,8 +627,7 @@ fix max nesting depth ## 4.1.10 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.8...@spectrum-css/preview@4.1.10) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.8...@spectrum-css/preview@4.1.10) **Note:** Version bump only for package @spectrum-css/preview @@ -657,8 +635,7 @@ fix max nesting depth ## 4.1.9 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.8...@spectrum-css/preview@4.1.9) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.8...@spectrum-css/preview@4.1.9) **Note:** Version bump only for package @spectrum-css/preview @@ -666,8 +643,7 @@ fix max nesting depth ## 4.1.8 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.7...@spectrum-css/preview@4.1.8) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.7...@spectrum-css/preview@4.1.8) **Note:** Version bump only for package @spectrum-css/preview @@ -675,8 +651,7 @@ fix max nesting depth ## 4.1.7 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.6...@spectrum-css/preview@4.1.7) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.6...@spectrum-css/preview@4.1.7) **Note:** Version bump only for package @spectrum-css/preview @@ -684,19 +659,17 @@ fix max nesting depth ## 4.1.6 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.5...@spectrum-css/preview@4.1.6) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.5...@spectrum-css/preview@4.1.6) ### 🐛 Bug fixes -\*revert prettier ([#2074](https://github.com/adobe/spectrum-css/issues/2074))([ebb98df](https://github.com/adobe/spectrum-css/commit/ebb98df)) +- revert prettier ([#2074](https://github.com/adobe/spectrum-css/issues/2074))([ebb98df](https://github.com/adobe/spectrum-css/commit/ebb98df)) ## 4.1.5 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.4...@spectrum-css/preview@4.1.5) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.4...@spectrum-css/preview@4.1.5) **Note:** Version bump only for package @spectrum-css/preview @@ -704,8 +677,7 @@ fix max nesting depth ## 4.1.4 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.3...@spectrum-css/preview@4.1.4) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.3...@spectrum-css/preview@4.1.4) **Note:** Version bump only for package @spectrum-css/preview @@ -713,8 +685,7 @@ fix max nesting depth ## 4.1.3 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.2...@spectrum-css/preview@4.1.3) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.2...@spectrum-css/preview@4.1.3) **Note:** Version bump only for package @spectrum-css/preview @@ -722,8 +693,7 @@ fix max nesting depth ## 4.1.2 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.1...@spectrum-css/preview@4.1.2) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.1...@spectrum-css/preview@4.1.2) **Note:** Version bump only for package @spectrum-css/preview @@ -731,8 +701,7 @@ fix max nesting depth ## 4.1.1 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.0...@spectrum-css/preview@4.1.1) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.1.0...@spectrum-css/preview@4.1.1) **Note:** Version bump only for package @spectrum-css/preview @@ -740,12 +709,11 @@ fix max nesting depth ## 4.1.0 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.0.0...@spectrum-css/preview@4.1.0) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@4.0.0...@spectrum-css/preview@4.1.0) ### ✨ Features -\*add Storybook Pseudo States addon([882a634](https://github.com/adobe/spectrum-css/commit/882a634)) +- add Storybook Pseudo States addon([882a634](https://github.com/adobe/spectrum-css/commit/882a634)) ### 🐛 Bug fixes @@ -755,38 +723,33 @@ fix max nesting depth ## 4.0.0 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.2.0...@spectrum-css/preview@4.0.0) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.2.0...@spectrum-css/preview@4.0.0) -\*feat(tabs)!: migrate tokens (#1902)([6d07436](https://github.com/adobe/spectrum-css/commit/6d07436)), closes[#1902](https://github.com/adobe/spectrum-css/issues/1902) +- feat(tabs)!: migrate tokens (#1902)([6d07436](https://github.com/adobe/spectrum-css/commit/6d07436)), closes[#1902](https://github.com/adobe/spectrum-css/issues/1902) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - Migrates the Tabs component to use `@adobe/spectrum-tokens`. +- Migrates the Tabs component to use `@adobe/spectrum-tokens`. ## 3.2.0 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.3...@spectrum-css/preview@3.2.0) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.3...@spectrum-css/preview@3.2.0) ### ✨ Features -\*allow story-level params to be passed to RTL decorator ([#1986](https://github.com/adobe/spectrum-css/issues/1986))([5fba21e](https://github.com/adobe/spectrum-css/commit/5fba21e)) +- allow story-level params to be passed to RTL decorator ([#1986](https://github.com/adobe/spectrum-css/issues/1986))([5fba21e](https://github.com/adobe/spectrum-css/commit/5fba21e)) ### 🐛 Bug fixes -\*revert prettier version bump ([#2004](https://github.com/adobe/spectrum-css/issues/2004))([29b179c](https://github.com/adobe/spectrum-css/commit/29b179c)) +- revert prettier version bump ([#2004](https://github.com/adobe/spectrum-css/issues/2004))([29b179c](https://github.com/adobe/spectrum-css/commit/29b179c)) ## 3.1.3 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.2...@spectrum-css/preview@3.1.3) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.2...@spectrum-css/preview@3.1.3) **Note:** Version bump only for package @spectrum-css/preview @@ -794,8 +757,7 @@ fix max nesting depth ## 3.1.2 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.1...@spectrum-css/preview@3.1.2) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.1...@spectrum-css/preview@3.1.2) **Note:** Version bump only for package @spectrum-css/preview @@ -803,8 +765,7 @@ fix max nesting depth ## 3.1.1 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.0...@spectrum-css/preview@3.1.1) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.1.0...@spectrum-css/preview@3.1.1) **Note:** Version bump only for package @spectrum-css/preview @@ -812,19 +773,17 @@ fix max nesting depth ## 3.1.0 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.26...@spectrum-css/preview@3.1.0) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.26...@spectrum-css/preview@3.1.0) ### ✨ Features -\*update to Storybook v7 ([#1935](https://github.com/adobe/spectrum-css/issues/1935))([6dcf09b](https://github.com/adobe/spectrum-css/commit/6dcf09b)) +- update to Storybook v7 ([#1935](https://github.com/adobe/spectrum-css/issues/1935))([6dcf09b](https://github.com/adobe/spectrum-css/commit/6dcf09b)) ## 3.0.26 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.25...@spectrum-css/preview@3.0.26) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.25...@spectrum-css/preview@3.0.26) **Note:** Version bump only for package @spectrum-css/preview @@ -832,8 +791,7 @@ fix max nesting depth ## 3.0.25 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.24...@spectrum-css/preview@3.0.25) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.24...@spectrum-css/preview@3.0.25) **Note:** Version bump only for package @spectrum-css/preview @@ -841,8 +799,7 @@ fix max nesting depth ## 3.0.24 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.23...@spectrum-css/preview@3.0.24) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/preview@3.0.23...@spectrum-css/preview@3.0.24) **Note:** Version bump only for package @spectrum-css/preview diff --git a/.storybook/assets/base.css b/.storybook/assets/base.css index fbf3f32e582..e5886de13ec 100644 --- a/.storybook/assets/base.css +++ b/.storybook/assets/base.css @@ -34,9 +34,12 @@ body { -webkit-tap-highlight-color: rgba(0, 0, 0, 0%); } -.spectrum.spectrum--legacy { - color: var(--spectrum-neutral-content-color-default); - background-color: var(--spectrum-background-layer-1-color); +.spectrum .spectrum-examples-static-black { + background: var(--spectrum-examples-gradient-static-black); +} + +.spectrum .spectrum-examples-static-white { + background: var(--spectrum-examples-gradient-static-white); } /* Hide the SVG elements that only include references */ diff --git a/.storybook/assets/index.css b/.storybook/assets/index.css index 95b4d83897d..b18c09d34ce 100644 --- a/.storybook/assets/index.css +++ b/.storybook/assets/index.css @@ -119,4 +119,11 @@ select:focus, border-color: rgb(2, 101, 220) !important; box-shadow: rgb(2, 101, 220) 0 0 0 1px inset !important; } + +nav.sidebar-container, +div.sb-bar { + color: var(--spectrum-neutral-content-color-default) !important; + background-color: var(--spectrum-background-layer-2-color) !important; +} + /* stylelint-enable selector-class-pattern */ diff --git a/.storybook/decorators/context.js b/.storybook/decorators/context.js index 991a1717dd2..7a736433855 100644 --- a/.storybook/decorators/context.js +++ b/.storybook/decorators/context.js @@ -1,8 +1,7 @@ import { makeDecorator, useEffect } from "@storybook/preview-api"; import { fetchContainers, toggleStyles } from "./helpers.js"; -import legacyTokens from "@spectrum-css/tokens-legacy/dist/index.css?inline"; -import tokens from "@spectrum-css/tokens/dist/css/index.css?inline"; +import tokens from "@spectrum-css/tokens/dist/index.css?inline"; /** * @type import('@storybook/csf').DecoratorFunction @@ -19,7 +18,6 @@ export const withContextWrapper = makeDecorator({ } = {}, globals: { color = "light", - context = "spectrum", scale = "medium", } = {}, parameters: { @@ -31,35 +29,26 @@ export const withContextWrapper = makeDecorator({ const staticColorSettings = { "black": { - background: "var(--spectrum-docs-static-black-background-color)", + background: "var(--spectrum-examples-gradient-static-black)", color: "light" }, "white": { - background: "var(--spectrum-docs-static-white-background-color)", + background: "var(--spectrum-examples-gradient-static-white)", color: "dark" }, }; - const original = { - color, - context, - scale, - }; + const original = { color, scale }; useEffect(() => { const isDocs = viewMode === "docs"; const isTesting = showTestingGrid; - const isRaw = Boolean(context === "raw"); - const isModern = Boolean(context === "spectrum"); - const isExpress = Boolean(context === "express"); - - if (!isRaw) { - // add the default classes to the body to ensure labels, headings, and borders are styled correctly - document.body.classList.add("spectrum", "spectrum--light", "spectrum--medium"); - } // Start by attaching the appropriate tokens to the container - toggleStyles(document.body, "tokens", isModern ? tokens : legacyTokens, !isRaw, context); + toggleStyles(document.body, "tokens", tokens, true); + + // add the default classes to the body to ensure labels, headings, and borders are styled correctly + document.body.classList.add("spectrum", "spectrum--light", "spectrum--medium"); for (const container of fetchContainers(id, isDocs, isTesting)) { // Check if the container is a testing wrapper to prevent applying colors around the testing grid @@ -69,7 +58,6 @@ export const withContextWrapper = makeDecorator({ // Reset the context to the original values color = original.color; - context = original.context; scale = original.scale; let staticKey = staticColor; @@ -84,20 +72,7 @@ export const withContextWrapper = makeDecorator({ if (!staticKey) hasStaticElement = false; // Every container gets the spectrum class - container.classList.toggle("spectrum", !isRaw); - - // S1 and S1 Express get the legacy class - container.classList.toggle("spectrum--legacy", !isModern && !isRaw); - - // Express only gets the express class - container.classList.toggle("spectrum--express", isExpress && !isRaw); - - // Darkest is deprecated in Spectrum 2 - if (isModern && color === "darkest") { - /* eslint-disable no-console -- notify that darkest was deprecated in S2 */ - console.warn("The 'darkest' color is deprecated in Spectrum 2. Please use 'dark' instead."); - color = "dark"; - } + container.classList.toggle("spectrum", true); // Let the static color override the color if it's set if (!isTestingWrapper && hasStaticElement && staticColorSettings[staticKey]?.color) { @@ -110,12 +85,12 @@ export const withContextWrapper = makeDecorator({ color = "light"; } - for (let c of ["light", "dark", "darkest"]) { - container.classList.toggle(`spectrum--${c}`, c === color && !isRaw); + for (let c of ["light", "dark"]) { + container.classList.toggle(`spectrum--${c}`, c === color); } for (const s of ["medium", "large"]) { - container.classList.toggle(`spectrum--${s}`, s === scale && !isRaw); + container.classList.toggle(`spectrum--${s}`, s === scale); } if (!isTestingWrapper) { @@ -128,7 +103,7 @@ export const withContextWrapper = makeDecorator({ } } - }, [context, color, scale, viewMode, original, staticColor, rootClass, tokens, legacyTokens, staticColorSettings, showTestingGrid]); + }, [viewMode, original, staticColor, color, scale, rootClass, tokens, staticColorSettings, showTestingGrid]); return StoryFn(data); }, diff --git a/.storybook/decorators/down-state.js b/.storybook/decorators/down-state.js new file mode 100644 index 00000000000..31ba5ed5133 --- /dev/null +++ b/.storybook/decorators/down-state.js @@ -0,0 +1,40 @@ +import { makeDecorator, useEffect } from "@storybook/preview-api"; +import { fetchContainers } from "./helpers.js"; + +export const withDownStateDimensionCapture = makeDecorator({ + name: "withDownStateDimensionCapture", + parameterName: "downState", + wrapper: (StoryFn, context) => { + const { args = {}, parameters = {}, viewMode, id } = context; + + /* Selectors are defined in the downState parameter */ + const { + // Fall back to the rootClass if no selectors are provided + selectors = args.rootClass ? [ args.rootClass ] : [] + } = parameters.downState ?? {}; + + /** + * This effect will run after the component is rendered and will capture the dimensions of the + * components that are specified in the selectors array. It will then set the custom properties + * --spectrum-downstate-width and --spectrum-downstate-height on the component to the width and + * height of the component respectively. This will allow the downstate to be calculated correctly + * in the CSS. + */ + useEffect(() => { + if (selectors.length === 0) return; + + for (const container of fetchContainers(id, viewMode === "docs")) { + for (const selector of selectors) { + const components = [...container.querySelectorAll(selector)]; + for (const component of components) { + const { width, height } = component.getBoundingClientRect(); + component.style.setProperty("--spectrum-downstate-width", `${width}px`); + component.style.setProperty("--spectrum-downstate-height", `${height}px`); + } + } + } + }, [selectors]); + + return StoryFn(context); + }, +}); diff --git a/.storybook/decorators/index.js b/.storybook/decorators/index.js index 059919173ba..f44d173b22a 100644 --- a/.storybook/decorators/index.js +++ b/.storybook/decorators/index.js @@ -13,6 +13,7 @@ export { withArgEvents } from "./arg-events.js"; export { withContextWrapper } from "./context.js"; +export { withDownStateDimensionCapture } from "./down-state.js"; export { withIconSpriteSheet } from "./icon-sprites.js"; export { withLanguageWrapper } from "./language.js"; export { withReducedMotionWrapper } from "./reduce-motion.js"; diff --git a/.storybook/foundations/corner-rounding/action-button-corner-rounding.stories.js b/.storybook/foundations/corner-rounding/action-button-corner-rounding.stories.js new file mode 100644 index 00000000000..c944ca467ab --- /dev/null +++ b/.storybook/foundations/corner-rounding/action-button-corner-rounding.stories.js @@ -0,0 +1,98 @@ +import { Template } from "@spectrum-css/actionbutton/stories/template.js"; +import { html } from "lit"; + +export default { + title: "Corner rounding", + description: + "The action button component represents an action a user can take.", + component: "ActionButton", + args: { + rootClass: "spectrum-ActionButton", + }, + parameters: { + actions: { + handles: ["click .spectrum-ActionButton:not([disabled])"], + }, + }, + tags: ['!dev'], +}; + +const ActionButton = (args, context) => html` +
+ ${Template({ ...args, iconName: undefined }, context)} +
+`; + +const ActionButtonTable = (args, context) => { + return html` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TokenValueMedium example
--spectrum-corner-radius-medium-size-extra-small6px + ${ActionButton({ + ...args, + label: "Extra Small", + size: "xs" + }, context)} +
--spectrum-corner-radius-medium-size-small7px + ${ActionButton({ + ...args, + label: "Small", + size: "s" + }, context)} +
--spectrum-corner-radius-medium-size-medium8px + ${ActionButton({ + ...args, + label: "Medium", + size: "m" + }, context)} +
--spectrum-corner-radius-medium-size-large9px + ${ActionButton({ + ...args, + label: "Large", + size: "l" + }, context)} +
--spectrum-corner-radius-medium-size-extra-large10px + ${ActionButton({ + ...args, + label: "Extra Large", + size: "xl" + }, context)} +
+ `; +}; + +export const ActionButtonExamples = ActionButtonTable.bind({}); +ActionButtonExamples.args = {}; diff --git a/.storybook/foundations/corner-rounding/checkbox-corner-rounding.stories.js b/.storybook/foundations/corner-rounding/checkbox-corner-rounding.stories.js new file mode 100644 index 00000000000..96aa3ce69c4 --- /dev/null +++ b/.storybook/foundations/corner-rounding/checkbox-corner-rounding.stories.js @@ -0,0 +1,88 @@ +// Import the component markup template +import { Template } from "@spectrum-css/checkbox/stories/template.js"; +import { html } from "lit"; + +export default { + title: "Corner rounding", + description: + "Checkboxes allow users to select multiple items from a list of individual items, or mark one individual item as selected.", + component: "Checkbox", + args: { + rootClass: "spectrum-Checkbox", + }, + parameters: { + actions: { + handles: ['click input[type="checkbox"]'], + }, + }, + tags: ['!dev'], +}; + +const Checkbox = (args = {}, context = {}) => html` +
+ ${Template({ ...args, iconName: undefined }, context)} +
+`; + +const CheckboxTable = (args, context) => { + return html` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TokenValueSmall example
--spectrum-corner-radius-small-size-small3px + ${Checkbox({ + ...args, + label: "Small", + size: "s" + }, context)} +
--spectrum-corner-radius-small-size-medium4px + ${Checkbox({ + ...args, + label: "Medium", + size: "m" + }, context)} +
--spectrum-corner-radius-small-size-large5px + ${Checkbox({ + ...args, + label: "Large", + size: "l" + }, context)} +
--spectrum-corner-radius-small-size-extra-large6px + ${Checkbox({ + ...args, + label: "Extra Large", + size: "xl" + }, context)} +
+ `; +} + +export const CheckboxExamples = CheckboxTable.bind({}); +CheckboxExamples.args = {}; diff --git a/.storybook/foundations/corner-rounding/component-size-tokens-medium.md b/.storybook/foundations/corner-rounding/component-size-tokens-medium.md new file mode 100644 index 00000000000..f2201667866 --- /dev/null +++ b/.storybook/foundations/corner-rounding/component-size-tokens-medium.md @@ -0,0 +1,7 @@ +| Component size token | Alias token (if available) | Global token | Value | +| ------------------------------------------------ | --------------------------------------- | ---------------------------- | ----- | +| --spectrum-corner-radius-medium-size-extra-small | | --spectrum-corner-radius-300 | 6px | +| --spectrum-corner-radius-medium-size-small | | --spectrum-corner-radius-400 | 7px | +| --spectrum-corner-radius-medium-size-medium | --spectrum-corner-radius-medium-default | --spectrum-corner-radius-500 | 8px | +| --spectrum-corner-radius-medium-size-large | | --spectrum-corner-radius-600 | 9px | +| --spectrum-corner-radius-medium-size-extra-large | --spectrum-corner-radius-large-default | --spectrum-corner-radius-700 | 10px | diff --git a/.storybook/foundations/corner-rounding/component-size-tokens-small.md b/.storybook/foundations/corner-rounding/component-size-tokens-small.md new file mode 100644 index 00000000000..1fdcae6ad6d --- /dev/null +++ b/.storybook/foundations/corner-rounding/component-size-tokens-small.md @@ -0,0 +1,6 @@ +| Component size token | Alias token (if available) | Global token | Value | +|---------------------------------------------------|-------------------------------|------------------------------|-------| +| --spectrum-corner-radius-small-size-small | | --spectrum-corner-radius-75 | 3px | +| --spectrum-corner-radius-small-size-medium | --spectrum-corner-radius-small-default | --spectrum-corner-radius-100 | 4px | +| --spectrum-corner-radius-small-size-large | | --spectrum-corner-radius-200 | 5px | +| --spectrum-corner-radius-small-size-extra-large | | --spectrum-corner-radius-300 | 6px | diff --git a/.storybook/foundations/corner-rounding/corner-rounding.mdx b/.storybook/foundations/corner-rounding/corner-rounding.mdx new file mode 100644 index 00000000000..0af56f6e446 --- /dev/null +++ b/.storybook/foundations/corner-rounding/corner-rounding.mdx @@ -0,0 +1,26 @@ +import { Meta, Canvas, Story, Title, Unstyled } from '@storybook/blocks'; +import * as CornerRoundingStories from './corner-rounding.stories.js'; +import * as CheckboxStories from './checkbox-corner-rounding.stories.js'; +import * as ActionButtonStories from './action-button-corner-rounding.stories.js'; + + + + + +## Default values + +<Story of={CornerRoundingStories.CornerRounding} /> + +## Component examples + +### Small tokens + +Checkbox includes small component size tokens to scale corner rounding. + +<Story of={CheckboxStories.CheckboxExamples} /> + +### Medium tokens + +Action button includes medium component size tokens to scale corner rounding. + +<Story of={ActionButtonStories.ActionButtonExamples} /> diff --git a/.storybook/foundations/corner-rounding/corner-rounding.stories.js b/.storybook/foundations/corner-rounding/corner-rounding.stories.js new file mode 100644 index 00000000000..1080abdf4d3 --- /dev/null +++ b/.storybook/foundations/corner-rounding/corner-rounding.stories.js @@ -0,0 +1,88 @@ +// Import the component markup template +import { html } from "lit"; +import { Template } from "./template.js"; + +export default { + title: "Corner rounding", + description: + "Corner rounding is a foundation that shows the different border-radius tokens that can be applied to a component.", + component: "Corner rounding", + args: { + rootClass: "spectrum-Foundations-Example-CornerRounding", + }, + tags: ["!dev"], +}; + +const CornerRadiusGroup = (args = {}, context = {}) => html` + <div> + <table class="spectrum-Foundations-Example-CornerRounding-table"> + <thead> + <tr> + <th scope="col">Token</th> + <th scope="col" style="padding: 0 2rem;">Value</th> + <th scope="col">Example<br />(No Border)</th> + <th scope="col">Example<br />(Border)</th> + </tr> + </thead> + <tbody> + ${Template( + { + ...args, + label: "--spectrum-corner-radius-none", + size: "none", + value: "0px", + }, + context, + )} + ${Template( + { + ...args, + label: "--spectrum-corner-radius-small-default", + size: "s", + value: "4px", + }, + context, + )} + ${Template( + { + ...args, + label: "--spectrum-corner-radius-medium-default", + size: "m", + value: "8px", + }, + context, + )} + ${Template( + { + ...args, + label: "--spectrum-corner-radius-large-default", + size: "l", + value: "10px", + }, + context, + )} + ${Template( + { + ...args, + label: "--spectrum-corner-radius-extra-large-default", + size: "xl", + value: "16px", + }, + context, + )} + ${Template( + { + ...args, + label: "--spectrum-corner-radius-full", + size: "full", + value: "9999px", + }, + context, + )} + </tbody> + </table> + </div> +`; + +export const CornerRounding = CornerRadiusGroup.bind({}); +CornerRounding.args = {}; diff --git a/.storybook/foundations/corner-rounding/index.css b/.storybook/foundations/corner-rounding/index.css new file mode 100644 index 00000000000..d11cbe7823d --- /dev/null +++ b/.storybook/foundations/corner-rounding/index.css @@ -0,0 +1,57 @@ +/*! + * Copyright 2024 Adobe. All rights reserved. + * + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy + * of the License at <http://www.apache.org/licenses/LICENSE-2.0> + * + * Unless required by applicable law or agreed to in writing, software distributed under + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS + * OF ANY KIND, either express or implied. See the License for the specific language + * governing permissions and limitations under the License. + */ + +.spectrum-Foundations-Example-CornerRounding-table { + border-spacing: 1rem 0; + margin-inline-start: -1rem; +} + +.spectrum-Foundations-Example-CornerRounding-table th { + text-align: start; +} + +.spectrum-Foundations-Example-CornerRounding { + inline-size: 3rem; + block-size: 3rem; + margin: 0.5rem; + background-color: var(--spectrum-gray-500); +} + +.spectrum-Foundations-Example-CornerRounding--border { + background-color: var(--spectrum-gray-25); + border: var(--spectrum-border-width-200) solid var(--spectrum-gray-700); +} + +.spectrum-Foundations-Example-CornerRounding--none { + border-radius: var(--spectrum-corner-radius-none); +} + +.spectrum-Foundations-Example-CornerRounding--sizeS { + border-radius: var(--spectrum-corner-radius-small-default); +} + +.spectrum-Foundations-Example-CornerRounding--sizeM { + border-radius: var(--spectrum-corner-radius-medium-default); +} + +.spectrum-Foundations-Example-CornerRounding--sizeL { + border-radius: var(--spectrum-corner-radius-large-default); +} + +.spectrum-Foundations-Example-CornerRounding--sizeXL { + border-radius: var(--spectrum-corner-radius-extra-large-default); +} + +.spectrum-Foundations-Example-CornerRounding--full { + border-radius: var(--spectrum-corner-radius-full); +} diff --git a/.storybook/foundations/corner-rounding/template.js b/.storybook/foundations/corner-rounding/template.js new file mode 100644 index 00000000000..bd000575982 --- /dev/null +++ b/.storybook/foundations/corner-rounding/template.js @@ -0,0 +1,40 @@ +import { html } from "lit"; +import { classMap } from "lit/directives/class-map.js"; + +import "./index.css"; + +const getSizeModifier = (size) => { + if (size === "none" || size === "full") return size; + return `size${size.toUpperCase()}`; +}; + +export const Template = ({ + rootClass = "spectrum-Foundations-Example-CornerRounding", + size = "none", + label, + value, +}) => html` + <tr> + <td>${label}</td> + <td style="padding: 0 2rem;">${value}</td> + <td> + <div + class=${classMap({ + [rootClass]: true, + [`${rootClass}--${getSizeModifier(size)}`]: + typeof size !== "undefined", + })} + ></div> + </td> + <td> + <div + class=${classMap({ + [rootClass]: true, + [`${rootClass}--${getSizeModifier(size)}`]: + typeof size !== "undefined", + [`${rootClass}--border`]: true, + })} + ></div> + </td> + </tr> +`; diff --git a/.storybook/foundations/down-state/button-down-state.stories.js b/.storybook/foundations/down-state/button-down-state.stories.js new file mode 100644 index 00000000000..0d85100133e --- /dev/null +++ b/.storybook/foundations/down-state/button-down-state.stories.js @@ -0,0 +1,27 @@ +import { Template } from "@spectrum-css/button/stories/template.js"; + +export default { + title: "Down state", + description: + "Buttons allow users to perform an action or to navigate to another page. They have multiple styles for various needs, and are ideal for calling attention to where a user needs to do something in order to move forward in a flow.", + component: "Button", + args: { + rootClass: "spectrum-Button", + }, + parameters: { + actions: { + handles: ["click .spectrum-Button"], + }, + }, + tags: ["!dev"], +}; + +export const ButtonDownState = Template.bind({}); +ButtonDownState.args = { + label: "Edit", + variant: "accent", + customStyles: { + "--spectrum-downstate-width": "72px", + "--spectrum-downstate-height": "32px" + } +}; diff --git a/.storybook/foundations/down-state/checkbox-down-state.stories.js b/.storybook/foundations/down-state/checkbox-down-state.stories.js new file mode 100644 index 00000000000..88ca9f3a5d9 --- /dev/null +++ b/.storybook/foundations/down-state/checkbox-down-state.stories.js @@ -0,0 +1,22 @@ +import { Template } from "@spectrum-css/checkbox/stories/template.js"; + +export default { + title: "Down state", + description: + "Checkboxes allow users to select multiple items from a list of individual items, or mark one individual item as selected.", + component: "Checkbox", + args: { + rootClass: "spectrum-Checkbox", + }, + parameters: { + actions: { + handles: ["click input[type=\"checkbox\"]"], + }, + }, + tags: ["!dev"], +}; + +export const CheckboxDownState = Template.bind({}); +CheckboxDownState.args = { + label: "Checkbox", +}; diff --git a/.storybook/foundations/down-state/down-state.mdx b/.storybook/foundations/down-state/down-state.mdx new file mode 100644 index 00000000000..5933bff7604 --- /dev/null +++ b/.storybook/foundations/down-state/down-state.mdx @@ -0,0 +1,44 @@ +import { Meta, Story } from '@storybook/blocks'; +import * as Checkbox from './checkbox-down-state.stories.js'; +import * as Button from './button-down-state.stories.js'; + +<Meta title="Down state" /> + +# Down state + +Down state is a Spectrum 2 feature that creates the illusion of components being pressed-in when active. This functionality is already included in Spectrum 2 components that require down state in this project. It is implemented with a CSS transform. The implementation depends on the size of the interactable element, as shown in the examples below. + +## Examples + +### Minimum perspective + +For elements that have a width of 24px or less, the minimum perspective token is used to apply the down state. One example of a component that uses this token is the checkbox: + +<Story of={Checkbox.CheckboxDownState} /> + +In this case, we use the minimum perspective token: + +``` +transform: + perspective(var(--spectrum-component-size-minimum-perspective-down)) + translateZ(var(--spectrum-component-size-difference-down)); +``` + +### Calculated perspective + +For elements that have a width of greater than 24px, we need to use the component's width and height to apply the down state. One example of a component that uses this logic is the button: + +<Story of={Button.ButtonDownState} /> + +In this case, we use a max formula to calculate the perspective based on component width and height (this helps us account for components that may be very wide): + +``` +transform: + perspective(max( + var(--spectrum-downstate-height), + var(--spectrum-downstate-width) * var(--spectrum-component-size-width-ratio-down) + )) + translateZ(var(--spectrum-component-size-difference-down)); +``` + +*Note that in this case, users are required to develop an implementation to determine the width and height of the component. Assign these values to the `--spectrum-downstate-width` and `--spectrum-downstate-height` custom properties in a `style` attribute on the HTML element to expose them for use in the CSS.* diff --git a/.storybook/foundations/drop-shadow/drop-shadow.mdx b/.storybook/foundations/drop-shadow/drop-shadow.mdx new file mode 100644 index 00000000000..a8d6f298632 --- /dev/null +++ b/.storybook/foundations/drop-shadow/drop-shadow.mdx @@ -0,0 +1,86 @@ +import { Meta, Title, Story, Description } from '@storybook/blocks'; +import * as DropShadowStories from './drop-shadow.stories.js'; + + +<Meta of={DropShadowStories} /> + +<Title /> +<Description of={DropShadowStories} /> + +Drop shadow tokens may be used for box shadows or drop shadows in CSS. Using `box-shadow` is often preferable to using `filter: drop-shadow()`, but in situations where the shadow must be applied to the alpha channel of the content rather than the border box, or if `box-shadow` is already being used for a different purpose, such as a focus outline, `filter: drop-shadow()` may be used. Note that in cases where `filter: drop-shadow()` is used, the shadow may be more blurred than the design spec due to a difference in how the blur parameter is calculated, and an adjustment by half may be needed. + +The opacity values in dark shadow colors are 3x the light values. + +These single-layer shadows are an interim solution for shadows until complex tokens (additional design data for the Spectrum Tokens system) are available to support multi-layer shadows. + +## Emphasized Default +This shadow is used to provide emphasis to containers within a page. + +### `box-shadow` +<Story of={DropShadowStories.BoxShadowEmphasizedDefault} /> +``` +box-shadow: + var(--spectrum-drop-shadow-emphasized-default-x) + var(--spectrum-drop-shadow-emphasized-default-y) + var(--spectrum-drop-shadow-emphasized-default-blur) + var(--spectrum-drop-shadow-emphasized-default-color); +``` + +### `filter: drop-shadow()` +<Story of={DropShadowStories.DropShadowEmphasizedDefault} /> +``` +filter: drop-shadow( + var(--spectrum-drop-shadow-emphasized-default-x) + var(--spectrum-drop-shadow-emphasized-default-y) + calc(var(--spectrum-drop-shadow-emphasized-default-blur) / 2) + var(--spectrum-drop-shadow-emphasized-default-color) +); +``` + +## Emphasized Hover +If the whole container is interactive, such as in a select box, the shadow becomes elevated on hover. + +### `box-shadow` +<Story of={DropShadowStories.BoxShadowEmphasizedHover} /> +``` +box-shadow: + var(--spectrum-drop-shadow-emphasized-hover-x) + var(--spectrum-drop-shadow-emphasized-hover-y) + var(--spectrum-drop-shadow-emphasized-hover-blur) + var(--spectrum-drop-shadow-emphasized-hover-color); +``` + +### `filter: drop-shadow()` +<Story of={DropShadowStories.DropShadowEmphasizedHover} /> +``` +filter: drop-shadow( + var(--spectrum-drop-shadow-emphasized-hover-x) + var(--spectrum-drop-shadow-emphasized-hover-y) + calc(var(--spectrum-drop-shadow-emphasized-hover-blur) / 2) + var(--spectrum-drop-shadow-emphasized-hover-color) +); +``` + +## Elevated +Elevated shadows can be used on containers that appear on top of content, such as menus, coach marks, popovers, and floating bar panels. + +### `box-shadow` +<Story of={DropShadowStories.BoxShadowElevated} /> +``` +box-shadow: + var(--spectrum-drop-shadow-elevated-x) + var(--spectrum-drop-shadow-elevated-y) + var(--spectrum-drop-shadow-elevated-blur) + var(--spectrum-drop-shadow-elevated-color); +``` + +### `filter: drop-shadow()` +<Story of={DropShadowStories.DropShadowElevated} /> +``` +filter: drop-shadow( + var(--spectrum-drop-shadow-elevated-x) + var(--spectrum-drop-shadow-elevated-y) + calc(var(--spectrum-drop-shadow-elevated-blur) / 2) + var(--spectrum-drop-shadow-elevated-color) +); +``` diff --git a/.storybook/foundations/drop-shadow/drop-shadow.stories.js b/.storybook/foundations/drop-shadow/drop-shadow.stories.js new file mode 100644 index 00000000000..6d936af9411 --- /dev/null +++ b/.storybook/foundations/drop-shadow/drop-shadow.stories.js @@ -0,0 +1,89 @@ +import { html } from "lit"; +import { classMap } from "lit/directives/class-map.js"; +import "./index.css"; + +export default { + title: "Drop shadow", + description: + "Drop shadows draw attention and give the appearance of depth. By default, this style is used to show elevation, when content appears on top of other content.", + component: "Drop shadow", + tags: ["!dev"], +}; + +const DropShadowSwatch = ({ + rootClass = "spectrum-Foundations-Example-DropShadow-swatch", + variant, + isDropShadow, +}) => html` + <div + class=${classMap({ + [rootClass]: true, + [`${rootClass}--${variant}-drop-shadow`]: + typeof variant !== "undefined" && !!isDropShadow, + [`${rootClass}--${variant}-box-shadow`]: + typeof variant !== "undefined" && !isDropShadow, + })} + ></div> +`; + +const DropShadowBackground = ( + { + rootClass = "spectrum-Foundations-Example-swatch-container", + color, + ...args + }, + context, +) => html` + <div + class=${classMap({ + [rootClass]: true, + "spectrum--light": color === "light", + "spectrum--dark": color === "dark", + })} + > + ${DropShadowSwatch(args, context)} + </div> +`; + +const DropShadowVariant = (args, context) => html` + <div class="spectrum-Foundations-Example-variant-container"> + ${DropShadowBackground({ ...args, color: "light" }, context)} + ${DropShadowBackground({ ...args, color: "dark" }, context)} + </div> +`; + +export const DropShadowEmphasizedDefault = DropShadowVariant.bind({}); +DropShadowEmphasizedDefault.args = { + variant: "emphasized-default", + isDropShadow: true, +}; + +export const DropShadowEmphasizedHover = DropShadowVariant.bind({}); +DropShadowEmphasizedHover.args = { + variant: "emphasized-hover", + isDropShadow: true, +}; + +export const DropShadowElevated = DropShadowVariant.bind({}); +DropShadowElevated.args = { + variant: "elevated", + isDropShadow: true, +}; + +export const BoxShadowEmphasizedDefault = DropShadowVariant.bind({}); +BoxShadowEmphasizedDefault.args = { + variant: "emphasized-default", + isDropShadow: false, +}; + +export const BoxShadowEmphasizedHover = DropShadowVariant.bind({}); +BoxShadowEmphasizedHover.args = { + variant: "emphasized-hover", + isDropShadow: false, +}; + +export const BoxShadowElevated = DropShadowVariant.bind({}); +BoxShadowElevated.args = { + variant: "elevated", + isDropShadow: false, +}; diff --git a/.storybook/foundations/drop-shadow/index.css b/.storybook/foundations/drop-shadow/index.css new file mode 100644 index 00000000000..bf54a5ddce9 --- /dev/null +++ b/.storybook/foundations/drop-shadow/index.css @@ -0,0 +1,115 @@ +/*! +Copyright 2024 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +/* stylelint-disable spectrum-tools/no-unknown-custom-properties */ + +.spectrum-Foundations-Example-DropShadow-swatch { + block-size: 150px; + inline-size: 150px; + background-color: var(--spectrum-gray-25); + border-radius: var(--spectrum-corner-radius-large-default); + border: transparent; +} + +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch { + background-color: var(--spectrum-gray-75); /* matches dark mode design spec rgb(34, 34, 34) */ +} + +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-box-shadow { + box-shadow: + var(--spectrum-drop-shadow-emphasized-default-x) + var(--spectrum-drop-shadow-emphasized-default-y) + var(--spectrum-drop-shadow-emphasized-default-blur) + var(--mod-drop-shadow-emphasized-default-color, var(--spectrum-drop-shadow-emphasized-default-color)); +} + +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-drop-shadow { + filter: drop-shadow( + var(--spectrum-drop-shadow-emphasized-default-x) + var(--spectrum-drop-shadow-emphasized-default-y) + calc(var(--spectrum-drop-shadow-emphasized-default-blur) / 2) /* adjust blur by half of box-shadow */ + var(--mod-drop-shadow-emphasized-default-color, var(--spectrum-drop-shadow-emphasized-default-color)) + ); +} + +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-box-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-box-shadow, +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-drop-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-default-drop-shadow { +/* adjustment because color tokens do not work properly on foundations pages */ + --mod-drop-shadow-emphasized-default-color: var(--spectrum-drop-shadow-color-100); +} + +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-box-shadow { + box-shadow: + var(--spectrum-drop-shadow-emphasized-hover-x) + var(--spectrum-drop-shadow-emphasized-hover-y) + var(--spectrum-drop-shadow-emphasized-hover-blur) + var(--mod-drop-shadow-emphasized-hover-color, var(--spectrum-drop-shadow-emphasized-hover-color)); +} + +.spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-drop-shadow { + filter: drop-shadow( + var(--spectrum-drop-shadow-emphasized-hover-x) + var(--spectrum-drop-shadow-emphasized-hover-y) + calc(var(--spectrum-drop-shadow-emphasized-hover-blur) / 2) /* adjust blur by half of box-shadow */ + var(--mod-drop-shadow-emphasized-hover-color, var(--spectrum-drop-shadow-emphasized-hover-color)) + ); +} + +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-drop-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-drop-shadow, +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-box-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--emphasized-hover-box-shadow { +/* adjustment because color tokens do not work properly on foundations pages */ + --mod-drop-shadow-emphasized-hover-color: var(--spectrum-drop-shadow-color-200); +} + +.spectrum-Foundations-Example-DropShadow-swatch--elevated-box-shadow { + box-shadow: + var(--spectrum-drop-shadow-elevated-x) + var(--spectrum-drop-shadow-elevated-y) + var(--spectrum-drop-shadow-elevated-blur) + var(--mod-drop-shadow-elevated-color, var(--spectrum-drop-shadow-elevated-color)); +} + +.spectrum-Foundations-Example-DropShadow-swatch--elevated-drop-shadow { + filter: drop-shadow( + var(--spectrum-drop-shadow-elevated-x) + var(--spectrum-drop-shadow-elevated-y) + calc(var(--spectrum-drop-shadow-elevated-blur) / 2) /* adjust blur by half of box-shadow */ + var(--mod-drop-shadow-elevated-color, var(--spectrum-drop-shadow-elevated-color)) + ); +} + +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--elevated-drop-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--elevated-drop-shadow, +.spectrum--light .spectrum-Foundations-Example-DropShadow-swatch--elevated-box-shadow, +.spectrum--dark .spectrum-Foundations-Example-DropShadow-swatch--elevated-box-shadow { +/* adjustment because color tokens do not work properly on foundations pages */ + --mod-drop-shadow-elevated-color: var(--spectrum-drop-shadow-color-200); +} + +.spectrum-Foundations-Example-swatch-container { + background-color: var(--spectrum-gray-25); + block-size: 200px; + inline-size: 300px; + display: flex; + align-items: center; + justify-content: center; +} + +.spectrum-Foundations-Example-variant-container { + background-color: var(--spectrum-gray-25); + display: flex; + flex-direction: row; +} diff --git a/.storybook/guides/develop.mdx b/.storybook/guides/develop.mdx index d36ba09a9a7..24287b9f371 100644 --- a/.storybook/guides/develop.mdx +++ b/.storybook/guides/develop.mdx @@ -31,35 +31,24 @@ For more general information about how to contribute to the Spectrum CSS project Each component has the following files: -- `index.css` - The source file for all styles related to the component. This contains all selectors and css properties for the component but specifically lacks any custom properties or variables. These values are sourced from the `themes` directory. -- `themes/*.css` - The theme-specific, component-level custom properties used to style the component. These files are meant to be loaded with the source styles. +- `index.css` - The source file for all styles related to the component. This contains all selectors and css properties for the component. - `stories/*.stories.js` - The storybook file that defines the component's stories and the available knobs for the component. - `stories/template.js` - The template function that generates the component's mark-up based on the provided settings. - `stories/*.test.js` - The testing grid for visual regression testing in Chromatic. -- `stories/*.mdx` - This asset generates the component-specific documentation and is rendered in Storybook as the Docs page. Each component outputs the following assets to `dist`: -- `index.css`: This asset includes the base CSS and the `themes/spectrum.css` definitions (without the system mapping layer). This asset is meant to be used in a environment where only the current Spectrum theme is supported. -- `index-base.css`: This asset includes only the base CSS; that is, the CSS without any custom property definitions. This can be used in conjunction with `index-theme.css` and the desired `themes/*.css` file to render a themed component. -- `index-theme.css`: This asset includes only the custom property definitions for the component as mapped to the system variables. This can be used in conjunction with `index-base.css` and the desired `themes/*.css` file to render a themed component. - -Each component outputs theme-specific assets to `dist/themes`. These assets include the system variables mapped to their global token counterparts. This file is meant to be loaded in conjunction with the `index-base.css` and `index-theme.css` files to render a themed component. - -- `themes/spectrum-two.css`: Represents the current Spectrum theme, aka Spectrum 2. -- `themes/spectrum.css`: Represents the legacy Spectrum theme, aka Spectrum 1. **deprecated** -- `themes/express.css`: Represents the Express theme. **deprecated** +- `index.css`: This asset includes the CSS for the component and is meant to be loaded in conjunction with the tokens for your desired color context and scales. ## Adding a new component 1. Generate a new component using the `yarn new component` command. The generator will prompt you to answer questions about your component. 2. Edit the `dependencies` within the `package.json` file to use only the dependencies your component needs. All components rely on `@spectrum-css/tokens`, and most rely on `@spectrum-css/icon`. 3. Once your folder has been generated, you can run `yarn start` in the root of the project to begin developing. -4. The `index.css` file is where most of your styles will be added. Add any custom property mappings to the global token library in the `themes/spectrum.css` asset. -5. Inside the `stories` directory you will find a `template.js`, `*.stories.js`, and `*.mdx` file. +4. The `index.css` file is where all of your styles should be added. +5. Inside the `stories` directory you will find a `template.js` and `*.stories.js` file. - In the `*.stories.js` file, define the available knobs and properties for your component, as well as any standard variations you want to surface in [Storybook](https://storybook.js.org/docs/react/writing-stories/introduction). - Update the `template.js` file with the markup, using [lit-html syntax](https://lit.dev/docs/templates/overview/) to adjust results based on the provided settings from the Storybook knobs. - - Update the `*.mdx` file with the documentation for your component. _Note_: Because we use scoped packages, before it can be published, you must manually publish the new component as public: @@ -116,8 +105,6 @@ CSS assets will be run through their respective postcss configurations. This mea ```js import "../index.css"; -import "../themes/express.css"; -import "../themes/spectrum.css"; ``` We are leaning on Storybook's `@storybook/web-components-vite` framework configuration as our stories rely on lit for dynamic attribute assignment. @@ -345,8 +332,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/express.css"; -import "../themes/spectrum.css"; export const Template = ( { diff --git a/.storybook/main.js b/.storybook/main.js index 6b0d640c7f6..4e057913043 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -20,6 +20,11 @@ export default { files: "*.@(stories.js|mdx)", titlePrefix: "Guides", }, + { + directory: "./foundations", + files: "*/*.@(stories.js|mdx)", + titlePrefix: "Foundations", + }, { directory: "./deprecated", files: "**/*.@(stories.js|mdx)", diff --git a/.storybook/manager.js b/.storybook/manager.js index 82a31bb8e11..ce8c242b040 100644 --- a/.storybook/manager.js +++ b/.storybook/manager.js @@ -1,12 +1,14 @@ -// import "@spectrum-css/bundle"; + import { addons } from "@storybook/manager-api"; import { create } from "@storybook/theming"; +import { startCase } from "lodash"; -import "./assets/index.css"; import logo from "./assets/logo.svg"; import pkg from "./package.json"; +import "./assets/index.css"; + const root = document.body ?? document.documentElement; if (root) root.classList.add("spectrum", "spectrum--light", "spectrum--medium"); @@ -65,5 +67,6 @@ addons.setConfig({ }), sidebar: { showRoots: false, + renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)) + " 📚", }, }); diff --git a/.storybook/modes/index.js b/.storybook/modes/index.js index 1b570d6c2e1..b4df304251d 100644 --- a/.storybook/modes/index.js +++ b/.storybook/modes/index.js @@ -12,31 +12,21 @@ */ const modes = { - "Light | LTR": { - color: "light", - textDirection: "ltr", - }, - "Dark | RTL": { - color: "dark", - textDirection: "rtl", - }, - "S1 | Light | LTR": { - context: "legacy", - color: "light", - textDirection: "ltr", - }, - "Express | Light | LTR": { - context: "express", - color: "light", - textDirection: "ltr", - }, + "Light | LTR": { + color: "light", + textDirection: "ltr", + }, + "Dark | RTL": { + color: "dark", + textDirection: "rtl", + }, }; export default modes; export const disableDefaultModes = { - ...Object.keys(modes).reduce((acc, key) => { - acc[key] = { disable: true }; - return acc; - }, {}), + ...Object.keys(modes).reduce((acc, key) => { + acc[key] = { disable: true }; + return acc; + }, {}), }; diff --git a/.storybook/package.json b/.storybook/package.json index d763640207f..3704a6ee686 100644 --- a/.storybook/package.json +++ b/.storybook/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/preview", - "version": "12.0.1", + "version": "11.0.1-next.2", "description": "A Spectrum CSS preview", "license": "Apache-2.0", "author": "Adobe", @@ -42,7 +42,6 @@ "@adobe/spectrum-css-workflow-icons": "^1.5.4", "@spectrum-css/bundle": "workspace:^", "@spectrum-css/tokens": "workspace:^", - "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^15.2.0", "@spectrum-css/ui-icons": "workspace:^" }, "devDependencies": { diff --git a/.storybook/preview.js b/.storybook/preview.js index ff243044967..9f75a7e221f 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -32,6 +32,8 @@ export const parameters = { order: [ "Guides", ["Contributing", "*", "Adobe Code of Conduct", "Changelog"], + "Foundations", + ["*"], "Components", ["*", ["Docs", "Default", "*"]], "Deprecated", @@ -88,7 +90,7 @@ export const parameters = { // Set an empty object to avoid the "undefined" value in the ComponentDetails doc block packageJson: {}, // A list of published npm tags that should not appear in the ComponentDetails doc block - ignoredTags: ["beta", "next"], + ignoredTags: ["beta"], }; export default { diff --git a/.storybook/types/global.js b/.storybook/types/global.js index 60a369079e5..55f8c760e4d 100644 --- a/.storybook/types/global.js +++ b/.storybook/types/global.js @@ -4,22 +4,6 @@ /** @type import('@storybook/types').GlobalTypes */ export default { - context: { - title: "Design context", - description: "The variation of Spectrum to use in the component", - defaultValue: "spectrum", - type: "string", - showName: true, - toolbar: { - items: [ - { value: "spectrum", title: "Spectrum 2", right: "default" }, - { value: "legacy", title: "Spectrum 1", right: "legacy" }, - { value: "express", title: "Express", right: "legacy" }, - { value: "raw", title: "Token-free", right: "raw" }, - ], - dynamicTitle: true, - }, - }, color: { title: "Color", description: "Controls the color context of the component", @@ -30,7 +14,6 @@ export default { items: [ { value: "light", title: "Light", right: "default" }, { value: "dark", title: "Dark" }, - { value: "darkest", title: "Darkest", right: "deprecated" }, ], dynamicTitle: true, }, diff --git a/.vscode/settings.json b/.vscode/settings.json index c940cee9d9d..0b67eb8639e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -101,10 +101,8 @@ } ], "cssVariables.lookupFiles": [ - "${workspaceFolder}/tokens/dist/css/index.css", - "${workspaceFolder}/tokens/dist/css/*.css", - "${workspaceFolder}/components/*/index.css", - "${workspaceFolder}/components/*/themes/*.css" + "${workspaceFolder}/tokens/**/*.css", + "${workspaceFolder}/components/*/index.css" ], "docthis.includeDescriptionTag": true, "docthis.inferTypesFromNames": true, diff --git a/components/accordion/CHANGELOG.md b/components/accordion/CHANGELOG.md index 5c64d65acd6..561eed9f22c 100644 --- a/components/accordion/CHANGELOG.md +++ b/components/accordion/CHANGELOG.md @@ -155,29 +155,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.6...@spectrum-css/accordion@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.6...@spectrum-css/accordion@5.0.0) ### ✨ Features -\*use storybook v8 ([#2604](https://github.com/adobe/spectrum-css/issues/2604))([166ab23](https://github.com/adobe/spectrum-css/commit/166ab23)) +- use storybook v8 ([#2604](https://github.com/adobe/spectrum-css/issues/2604))([166ab23](https://github.com/adobe/spectrum-css/commit/166ab23)) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css <a name="4.2.6"></a> ## 4.2.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.5...@spectrum-css/accordion@4.2.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.5...@spectrum-css/accordion@4.2.6) **Note:** Version bump only for package @spectrum-css/accordion @@ -185,8 +180,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.4...@spectrum-css/accordion@4.2.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.4...@spectrum-css/accordion@4.2.5) **Note:** Version bump only for package @spectrum-css/accordion @@ -194,8 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.3...@spectrum-css/accordion@4.2.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.3...@spectrum-css/accordion@4.2.4) **Note:** Version bump only for package @spectrum-css/accordion @@ -203,8 +196,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.2...@spectrum-css/accordion@4.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.2...@spectrum-css/accordion@4.2.3) **Note:** Version bump only for package @spectrum-css/accordion @@ -212,8 +204,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.1...@spectrum-css/accordion@4.2.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.2.1...@spectrum-css/accordion@4.2.2) **Note:** Version bump only for package @spectrum-css/accordion @@ -221,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/accordion @@ -230,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.1.1...@spectrum-css/accordion@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.1.1...@spectrum-css/accordion@4.2.0) **Note:** Version bump only for package @spectrum-css/accordion @@ -239,30 +228,27 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.1.0...@spectrum-css/accordion@4.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.1.0...@spectrum-css/accordion@4.1.1) ### 🐛 Bug fixes -\*deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-css/issues/2437))([ff5dda6](https://github.com/adobe/spectrum-css/commit/ff5dda6)) +- deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-css/issues/2437))([ff5dda6](https://github.com/adobe/spectrum-css/commit/ff5dda6)) <a name="4.1.0"></a> ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.27...@spectrum-css/accordion@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.27...@spectrum-css/accordion@4.1.0) ### ✨ Features -\*remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) +- remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) <a name="4.0.27"></a> ## 4.0.27 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.26...@spectrum-css/accordion@4.0.27) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.26...@spectrum-css/accordion@4.0.27) **Note:** Version bump only for package @spectrum-css/accordion @@ -270,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.26 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.25...@spectrum-css/accordion@4.0.26) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.25...@spectrum-css/accordion@4.0.26) **Note:** Version bump only for package @spectrum-css/accordion @@ -279,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.25 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.23...@spectrum-css/accordion@4.0.25) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.23...@spectrum-css/accordion@4.0.25) **Note:** Version bump only for package @spectrum-css/accordion @@ -288,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.24 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.23...@spectrum-css/accordion@4.0.24) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.23...@spectrum-css/accordion@4.0.24) **Note:** Version bump only for package @spectrum-css/accordion @@ -297,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.22...@spectrum-css/accordion@4.0.23) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.22...@spectrum-css/accordion@4.0.23) **Note:** Version bump only for package @spectrum-css/accordion @@ -306,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.21...@spectrum-css/accordion@4.0.22) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.21...@spectrum-css/accordion@4.0.22) **Note:** Version bump only for package @spectrum-css/accordion @@ -315,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.20...@spectrum-css/accordion@4.0.21) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.20...@spectrum-css/accordion@4.0.21) **Note:** Version bump only for package @spectrum-css/accordion @@ -324,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.19...@spectrum-css/accordion@4.0.20) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.19...@spectrum-css/accordion@4.0.20) **Note:** Version bump only for package @spectrum-css/accordion @@ -333,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.18...@spectrum-css/accordion@4.0.19) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.18...@spectrum-css/accordion@4.0.19) **Note:** Version bump only for package @spectrum-css/accordion @@ -342,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.17...@spectrum-css/accordion@4.0.18) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.17...@spectrum-css/accordion@4.0.18) **Note:** Version bump only for package @spectrum-css/accordion @@ -351,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.16...@spectrum-css/accordion@4.0.17) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.16...@spectrum-css/accordion@4.0.17) **Note:** Version bump only for package @spectrum-css/accordion @@ -360,8 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.15...@spectrum-css/accordion@4.0.16) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.15...@spectrum-css/accordion@4.0.16) **Note:** Version bump only for package @spectrum-css/accordion @@ -369,8 +344,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.14...@spectrum-css/accordion@4.0.15) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.14...@spectrum-css/accordion@4.0.15) **Note:** Version bump only for package @spectrum-css/accordion @@ -378,19 +352,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.13...@spectrum-css/accordion@4.0.14) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.13...@spectrum-css/accordion@4.0.14) ### 🔙 Reverts -\*gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) +- gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) <a name="4.0.13"></a> ## 4.0.13 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.12...@spectrum-css/accordion@4.0.13) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.12...@spectrum-css/accordion@4.0.13) **Note:** Version bump only for package @spectrum-css/accordion @@ -398,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.10...@spectrum-css/accordion@4.0.12) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.10...@spectrum-css/accordion@4.0.12) **Note:** Version bump only for package @spectrum-css/accordion @@ -407,8 +378,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.10...@spectrum-css/accordion@4.0.11) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.10...@spectrum-css/accordion@4.0.11) **Note:** Version bump only for package @spectrum-css/accordion @@ -416,8 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.9...@spectrum-css/accordion@4.0.10) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.9...@spectrum-css/accordion@4.0.10) **Note:** Version bump only for package @spectrum-css/accordion @@ -425,8 +394,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.8...@spectrum-css/accordion@4.0.9) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.8...@spectrum-css/accordion@4.0.9) **Note:** Version bump only for package @spectrum-css/accordion @@ -434,8 +402,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.7...@spectrum-css/accordion@4.0.8) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.7...@spectrum-css/accordion@4.0.8) **Note:** Version bump only for package @spectrum-css/accordion @@ -443,8 +410,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.6...@spectrum-css/accordion@4.0.7) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.6...@spectrum-css/accordion@4.0.7) **Note:** Version bump only for package @spectrum-css/accordion @@ -452,19 +418,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.5...@spectrum-css/accordion@4.0.6) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.5...@spectrum-css/accordion@4.0.6) ### 🐛 Bug fixes -\*icon sizing in Storybook story templates ([#2037](https://github.com/adobe/spectrum-css/issues/2037))([c90c8a3](https://github.com/adobe/spectrum-css/commit/c90c8a3)) +- icon sizing in Storybook story templates ([#2037](https://github.com/adobe/spectrum-css/issues/2037))([c90c8a3](https://github.com/adobe/spectrum-css/commit/c90c8a3)) <a name="4.0.5"></a> ## 4.0.5 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.4...@spectrum-css/accordion@4.0.5) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.4...@spectrum-css/accordion@4.0.5) **Note:** Version bump only for package @spectrum-css/accordion @@ -472,8 +436,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.3...@spectrum-css/accordion@4.0.4) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.3...@spectrum-css/accordion@4.0.4) **Note:** Version bump only for package @spectrum-css/accordion @@ -481,8 +444,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.2...@spectrum-css/accordion@4.0.3) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.2...@spectrum-css/accordion@4.0.3) **Note:** Version bump only for package @spectrum-css/accordion @@ -490,8 +452,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.1...@spectrum-css/accordion@4.0.2) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.1...@spectrum-css/accordion@4.0.2) **Note:** Version bump only for package @spectrum-css/accordion @@ -499,8 +460,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.0...@spectrum-css/accordion@4.0.1) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@4.0.0...@spectrum-css/accordion@4.0.1) **Note:** Version bump only for package @spectrum-css/accordion @@ -508,16 +468,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-06-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.50...@spectrum-css/accordion@4.0.0) +🗓 2023-06-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.50...@spectrum-css/accordion@4.0.0) -\*feat(accordion)!: migrate to Spectrum Tokens (#1789)([c8be0af](https://github.com/adobe/spectrum-css/commit/c8be0af)), closes[#1789](https://github.com/adobe/spectrum-css/issues/1789) +- feat(accordion)!: migrate to Spectrum Tokens (#1789)([c8be0af](https://github.com/adobe/spectrum-css/commit/c8be0af)), closes[#1789](https://github.com/adobe/spectrum-css/issues/1789) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - migrates the Accordion component to use `@adobe/spectrum-tokens`. +- migrates the Accordion component to use `@adobe/spectrum-tokens`. Additionally: @@ -527,8 +484,7 @@ Additionally: ## 3.0.50 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.49...@spectrum-css/accordion@3.0.50) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.49...@spectrum-css/accordion@3.0.50) **Note:** Version bump only for package @spectrum-css/accordion @@ -536,8 +492,7 @@ Additionally: ## 3.0.49 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.48...@spectrum-css/accordion@3.0.49) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.48...@spectrum-css/accordion@3.0.49) **Note:** Version bump only for package @spectrum-css/accordion @@ -545,19 +500,17 @@ Additionally: ## 3.0.48 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.47...@spectrum-css/accordion@3.0.48) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.47...@spectrum-css/accordion@3.0.48) ### 🐛 Bug fixes -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) +- restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) <a name="3.0.47"></a> ## 3.0.47 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.46...@spectrum-css/accordion@3.0.47) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.46...@spectrum-css/accordion@3.0.47) **Note:** Version bump only for package @spectrum-css/accordion @@ -565,8 +518,7 @@ Additionally: ## 3.0.46 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.45...@spectrum-css/accordion@3.0.46) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/accordion@3.0.45...@spectrum-css/accordion@3.0.46) **Note:** Version bump only for package @spectrum-css/accordion diff --git a/components/accordion/dist/metadata.json b/components/accordion/dist/metadata.json index 3f3e89fbf15..bc3c102ec9b 100644 --- a/components/accordion/dist/metadata.json +++ b/components/accordion/dist/metadata.json @@ -198,11 +198,6 @@ "--spectrum-neutral-content-color-key-focus", "--spectrum-sans-font-family-stack" ], - "system-theme": [ - "--system-accordion-divider-color", - "--system-accordion-item-content-color", - "--system-accordion-item-content-disabled-color" - ], "passthroughs": [], "high-contrast": [] } diff --git a/components/accordion/index.css b/components/accordion/index.css index 2e0a7616455..f3b52638318 100644 --- a/components/accordion/index.css +++ b/components/accordion/index.css @@ -11,10 +11,12 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Accordion { - --spectrum-accordion-item-height: var(--spectrum-component-height-200); + --spectrum-accordion-divider-color: var(--mod-accordion-divider-color, var(--spectrum-gray-200)); + --spectrum-accordion-item-content-disabled-color: var(--mod-accordion-item-content-disabled-color, var(--spectrum-disabled-content-color)); + --spectrum-accordion-item-content-color: var(--mod-accordion-item-content-color, var(--spectrum-body-color)); + + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-200)); --spectrum-accordion-item-width: var(--spectrum-accordion-minimum-width); --spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-100); --spectrum-accordion-disclosure-indicator-to-text-space: var(--spectrum-accordion-disclosure-indicator-to-text); @@ -61,7 +63,7 @@ --spectrum-accordion-focus-indicator-color: var(--spectrum-focus-indicator-color); --spectrum-accordion-min-block-size: max( - var(--mod-accordion-item-height, var(--spectrum-accordion-item-height)), + var(--spectrum-accordion-item-height), calc(var(--mod-accordion-item-header-top-to-text-space, var(--spectrum-accordion-item-header-top-to-text-space)) + var(--mod-accordion-item-header-bottom-to-text-space, var(--spectrum-accordion-item-header-bottom-to-text-space)) + (var(--mod-accordion-item-header-font-size, var(--spectrum-accordion-item-header-font-size)) * var(--mod-accordion-item-header-line-height, var(--spectrum-accordion-item-header-line-height)))) ); @@ -78,24 +80,24 @@ } .spectrum-Accordion--compact { - --spectrum-accordion-item-height: var(--spectrum-component-height-100); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-100)); --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-medium); --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-medium); &.spectrum-Accordion--sizeS { - --spectrum-accordion-item-height: var(--spectrum-component-height-75); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-75)); --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-small); --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-small); } &.spectrum-Accordion--sizeL { - --spectrum-accordion-item-height: var(--spectrum-component-height-200); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-200)); --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-large); --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-large); } &.spectrum-Accordion--sizeXL { - --spectrum-accordion-item-height: var(--spectrum-component-height-300); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-300)); --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-extra-large); --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-extra-large); } @@ -126,7 +128,7 @@ } .spectrum-Accordion--sizeS { - --spectrum-accordion-item-height: var(--spectrum-component-height-100); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-100)); --spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-75); --spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-50); --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-200); @@ -136,7 +138,7 @@ } .spectrum-Accordion--sizeL { - --spectrum-accordion-item-height: var(--spectrum-component-height-300); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-300)); --spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-200); --spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-100); --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-500); @@ -146,7 +148,7 @@ } .spectrum-Accordion--sizeXL { - --spectrum-accordion-item-height: var(--spectrum-component-height-400); + --spectrum-accordion-item-height: var(--mod-accordion-item-height, var(--spectrum-component-height-400)); --spectrum-accordion-disclosure-indicator-height: var(--spectrum-component-height-300); --spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-200); --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-700); @@ -168,17 +170,17 @@ margin: 0; - min-block-size: var(--mod-accordion-item-height, var(--spectrum-accordion-item-height)); + min-block-size: var(--spectrum-accordion-item-height); min-inline-size: var(--mod-accordion-item-width, var(--spectrum-accordion-item-width)); &:first-child { border-block-start: 1px solid transparent; - border-color: var(--mod-accordion-divider-color, var(--spectrum-accordion-divider-color)); + border-color: var(--spectrum-accordion-divider-color); border-width: var(--mod-accordion-divider-thickness, var(--spectrum-divider-thickness-small)); } border-block-end: 1px solid transparent; - border-color: var(--mod-accordion-divider-color, var(--spectrum-accordion-divider-color)); + border-color: var(--spectrum-accordion-divider-color); border-width: var(--mod-accordion-divider-thickness, var(--spectrum-divider-thickness-small)); } @@ -208,7 +210,7 @@ padding-block: var(--mod-accordion-item-content-area-top-to-content, var(--spectrum-accordion-item-content-area-top-to-content)) var(--mod-accordion-item-content-area-bottom-to-content, var(--spectrum-accordion-item-content-area-bottom-to-content)); padding-inline: var(--mod-accordion-component-edge-to-text, var(--spectrum-accordion-component-edge-to-text)) var(--mod-accordion-component-edge-to-text, var(--spectrum-accordion-component-edge-to-text)); display: none; - color: var(--mod-accordion-item-content-color, var(--spectrum-accordion-item-content-color)); + color: var(--spectrum-accordion-item-content-color); font-weight: var(--mod-accordion-item-content-font-weight, var(--spectrum-accordion-item-content-font-weight)); font-style: var(--mod-accordion-item-content-font-style, var(--spectrum-accordion-item-content-font-style)); font-size: var(--mod-accordion-item-content-font-size, var(--spectrum-accordion-item-content-font-size)); @@ -303,7 +305,7 @@ } .spectrum-Accordion-itemContent { - color: var(--mod-accordion-item-content-disabled-color, var(--spectrum-accordion-item-content-disabled-color)); + color: var(--spectrum-accordion-item-content-disabled-color); } } diff --git a/components/accordion/package.json b/components/accordion/package.json index 9c8e45976f6..951906463ca 100644 --- a/components/accordion/package.json +++ b/components/accordion/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/accordion/stories/template.js b/components/accordion/stories/template.js index 8294f3a4027..79fc3648bf3 100644 --- a/components/accordion/stories/template.js +++ b/components/accordion/stories/template.js @@ -7,9 +7,6 @@ import { repeat } from "lit/directives/repeat.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const AccordionItem = ({ heading, diff --git a/components/accordion/themes/express.css b/components/accordion/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/accordion/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/accordion/themes/spectrum-two.css b/components/accordion/themes/spectrum-two.css deleted file mode 100644 index 7097b1adc62..00000000000 --- a/components/accordion/themes/spectrum-two.css +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Accordion { - --spectrum-accordion-divider-color: var(--spectrum-gray-200); - --spectrum-accordion-item-content-disabled-color: var(--spectrum-disabled-content-color); - --spectrum-accordion-item-content-color: var(--spectrum-body-color); - } -} diff --git a/components/accordion/themes/spectrum.css b/components/accordion/themes/spectrum.css deleted file mode 100644 index 572d3f1db1b..00000000000 --- a/components/accordion/themes/spectrum.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Accordion { - --spectrum-accordion-divider-color: var(--spectrum-gray-300); - --spectrum-accordion-item-content-disabled-color: var(--spectrum-gray-400); - --spectrum-accordion-item-content-color: var(--spectrum-gray-800); - } -} diff --git a/components/actionbar/CHANGELOG.md b/components/actionbar/CHANGELOG.md index 5b2199978cf..ae6fe372856 100644 --- a/components/actionbar/CHANGELOG.md +++ b/components/actionbar/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 9.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + ## 10.0.1 ### Patch Changes @@ -169,8 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.4...@spectrum-css/actionbar@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.4...@spectrum-css/actionbar@8.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -186,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.3...@spectrum-css/actionbar@7.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.3...@spectrum-css/actionbar@7.2.4) **Note:** Version bump only for package @spectrum-css/actionbar @@ -195,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.2...@spectrum-css/actionbar@7.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.2...@spectrum-css/actionbar@7.2.3) **Note:** Version bump only for package @spectrum-css/actionbar @@ -204,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.2 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.1...@spectrum-css/actionbar@7.2.2) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.1...@spectrum-css/actionbar@7.2.2) **Note:** Version bump only for package @spectrum-css/actionbar @@ -213,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.1 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.0...@spectrum-css/actionbar@7.2.1) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.2.0...@spectrum-css/actionbar@7.2.1) **Note:** Version bump only for package @spectrum-css/actionbar @@ -222,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.0 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.1.1...@spectrum-css/actionbar@7.2.0) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.1.1...@spectrum-css/actionbar@7.2.0) ### ✨ Features @@ -233,8 +235,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/actionbar @@ -242,8 +243,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.11...@spectrum-css/actionbar@7.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.11...@spectrum-css/actionbar@7.1.0) ### ✨ Features @@ -253,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.11 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.10...@spectrum-css/actionbar@7.0.11) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.10...@spectrum-css/actionbar@7.0.11) **Note:** Version bump only for package @spectrum-css/actionbar @@ -262,8 +261,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.10 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.9...@spectrum-css/actionbar@7.0.10) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.9...@spectrum-css/actionbar@7.0.10) **Note:** Version bump only for package @spectrum-css/actionbar @@ -271,8 +269,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.9 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.7...@spectrum-css/actionbar@7.0.9) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.7...@spectrum-css/actionbar@7.0.9) **Note:** Version bump only for package @spectrum-css/actionbar @@ -280,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.7...@spectrum-css/actionbar@7.0.8) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.7...@spectrum-css/actionbar@7.0.8) **Note:** Version bump only for package @spectrum-css/actionbar @@ -289,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.6...@spectrum-css/actionbar@7.0.7) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.6...@spectrum-css/actionbar@7.0.7) **Note:** Version bump only for package @spectrum-css/actionbar @@ -298,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.6 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.5...@spectrum-css/actionbar@7.0.6) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.5...@spectrum-css/actionbar@7.0.6) **Note:** Version bump only for package @spectrum-css/actionbar @@ -307,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.5 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.4...@spectrum-css/actionbar@7.0.5) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.4...@spectrum-css/actionbar@7.0.5) **Note:** Version bump only for package @spectrum-css/actionbar @@ -316,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.4 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.3...@spectrum-css/actionbar@7.0.4) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.3...@spectrum-css/actionbar@7.0.4) **Note:** Version bump only for package @spectrum-css/actionbar @@ -325,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.3 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.2...@spectrum-css/actionbar@7.0.3) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.2...@spectrum-css/actionbar@7.0.3) **Note:** Version bump only for package @spectrum-css/actionbar @@ -334,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.1...@spectrum-css/actionbar@7.0.2) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.1...@spectrum-css/actionbar@7.0.2) **Note:** Version bump only for package @spectrum-css/actionbar @@ -343,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.0...@spectrum-css/actionbar@7.0.1) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@7.0.0...@spectrum-css/actionbar@7.0.1) **Note:** Version bump only for package @spectrum-css/actionbar @@ -352,8 +341,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.67...@spectrum-css/actionbar@7.0.0) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.67...@spectrum-css/actionbar@7.0.0) \*feat(table)!: migrate to spectrum-tokens, add section header (#1842)([74cd1b4](https://github.com/adobe/spectrum-css/commit/74cd1b4)), closes[#1842](https://github.com/adobe/spectrum-css/issues/1842) @@ -847,8 +835,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.67 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.66...@spectrum-css/actionbar@6.0.67) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.66...@spectrum-css/actionbar@6.0.67) **Note:** Version bump only for package @spectrum-css/actionbar @@ -856,8 +843,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.66 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.65...@spectrum-css/actionbar@6.0.66) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.65...@spectrum-css/actionbar@6.0.66) **Note:** Version bump only for package @spectrum-css/actionbar @@ -865,8 +851,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.65 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.64...@spectrum-css/actionbar@6.0.65) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.64...@spectrum-css/actionbar@6.0.65) **Note:** Version bump only for package @spectrum-css/actionbar @@ -874,8 +859,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.64 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.63...@spectrum-css/actionbar@6.0.64) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.63...@spectrum-css/actionbar@6.0.64) ### 🔙 Reverts @@ -885,8 +869,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.63 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.62...@spectrum-css/actionbar@6.0.63) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.62...@spectrum-css/actionbar@6.0.63) **Note:** Version bump only for package @spectrum-css/actionbar @@ -894,8 +877,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.62 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.60...@spectrum-css/actionbar@6.0.62) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.60...@spectrum-css/actionbar@6.0.62) **Note:** Version bump only for package @spectrum-css/actionbar @@ -903,8 +885,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.61 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.60...@spectrum-css/actionbar@6.0.61) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.60...@spectrum-css/actionbar@6.0.61) **Note:** Version bump only for package @spectrum-css/actionbar @@ -912,8 +893,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.60 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.59...@spectrum-css/actionbar@6.0.60) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.59...@spectrum-css/actionbar@6.0.60) **Note:** Version bump only for package @spectrum-css/actionbar @@ -921,8 +901,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.59 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.58...@spectrum-css/actionbar@6.0.59) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.58...@spectrum-css/actionbar@6.0.59) **Note:** Version bump only for package @spectrum-css/actionbar @@ -930,8 +909,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.58 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.57...@spectrum-css/actionbar@6.0.58) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.57...@spectrum-css/actionbar@6.0.58) **Note:** Version bump only for package @spectrum-css/actionbar @@ -939,8 +917,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.57 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.56...@spectrum-css/actionbar@6.0.57) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.56...@spectrum-css/actionbar@6.0.57) **Note:** Version bump only for package @spectrum-css/actionbar @@ -948,8 +925,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.56 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.55...@spectrum-css/actionbar@6.0.56) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.55...@spectrum-css/actionbar@6.0.56) **Note:** Version bump only for package @spectrum-css/actionbar @@ -957,8 +933,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.55 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.54...@spectrum-css/actionbar@6.0.55) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.54...@spectrum-css/actionbar@6.0.55) **Note:** Version bump only for package @spectrum-css/actionbar @@ -966,8 +941,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.54 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.53...@spectrum-css/actionbar@6.0.54) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.53...@spectrum-css/actionbar@6.0.54) **Note:** Version bump only for package @spectrum-css/actionbar @@ -975,8 +949,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.53 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.52...@spectrum-css/actionbar@6.0.53) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.52...@spectrum-css/actionbar@6.0.53) **Note:** Version bump only for package @spectrum-css/actionbar @@ -984,8 +957,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.52 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.51...@spectrum-css/actionbar@6.0.52) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.51...@spectrum-css/actionbar@6.0.52) **Note:** Version bump only for package @spectrum-css/actionbar @@ -993,8 +965,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.51 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.50...@spectrum-css/actionbar@6.0.51) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.50...@spectrum-css/actionbar@6.0.51) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1002,8 +973,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.50 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.49...@spectrum-css/actionbar@6.0.50) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.49...@spectrum-css/actionbar@6.0.50) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1011,8 +981,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.49 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.48...@spectrum-css/actionbar@6.0.49) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.48...@spectrum-css/actionbar@6.0.49) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1020,8 +989,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.48 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.47...@spectrum-css/actionbar@6.0.48) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.47...@spectrum-css/actionbar@6.0.48) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1029,8 +997,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.47 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.46...@spectrum-css/actionbar@6.0.47) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.46...@spectrum-css/actionbar@6.0.47) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1038,8 +1005,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.46 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.45...@spectrum-css/actionbar@6.0.46) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.45...@spectrum-css/actionbar@6.0.46) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1047,8 +1013,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.45 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.44...@spectrum-css/actionbar@6.0.45) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.44...@spectrum-css/actionbar@6.0.45) ### 🐛 Bug fixes @@ -1058,8 +1023,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.44 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.43...@spectrum-css/actionbar@6.0.44) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.43...@spectrum-css/actionbar@6.0.44) **Note:** Version bump only for package @spectrum-css/actionbar @@ -1067,8 +1031,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 6.0.43 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.42...@spectrum-css/actionbar@6.0.43) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbar@6.0.42...@spectrum-css/actionbar@6.0.43) **Note:** Version bump only for package @spectrum-css/actionbar diff --git a/components/actionbar/dist/metadata.json b/components/actionbar/dist/metadata.json index 3632db90bf7..da9142c6fc3 100644 --- a/components/actionbar/dist/metadata.json +++ b/components/actionbar/dist/metadata.json @@ -88,10 +88,6 @@ "--spectrum-spacing-75", "--spectrum-white" ], - "system-theme": [ - "--system-action-bar-popover-background-color", - "--system-action-bar-popover-border-color" - ], "passthroughs": [], "high-contrast": ["--highcontrast-actionbar-popover-border-color"] } diff --git a/components/actionbar/index.css b/components/actionbar/index.css index 474499e462f..5be07322844 100644 --- a/components/actionbar/index.css +++ b/components/actionbar/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-ActionBar { + --spectrum-actionbar-popover-background-color: var(--spectrum-gray-25); + --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); + --spectrum-actionbar-height: var(--spectrum-action-bar-height); --spectrum-actionbar-corner-radius: var(--spectrum-corner-radius-100); @@ -26,6 +27,10 @@ --spectrum-actionbar-emphasized-background-color: var(--spectrum-informative-background-color-default); --spectrum-actionbar-emphasized-item-counter-color: var(--spectrum-white); + /* colors - applied to popover */ + --spectrum-actionbar-popover-background-color: var(--spectrum-gray-25); + --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); + /* spacing of action bar bottom and horizontal outer edge */ --spectrum-actionbar-spacing-outer-edge: var(--spectrum-spacing-300); diff --git a/components/actionbar/package.json b/components/actionbar/package.json index ec86a259e1a..cbf0afd3721 100644 --- a/components/actionbar/package.json +++ b/components/actionbar/package.json @@ -25,22 +25,18 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actiongroup": ">=5", - "@spectrum-css/closebutton": ">=5", - "@spectrum-css/fieldlabel": ">=8", - "@spectrum-css/popover": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actiongroup": ">=6", + "@spectrum-css/closebutton": ">=6", + "@spectrum-css/fieldlabel": ">=10", + "@spectrum-css/popover": ">=8", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/actiongroup": "6.0.1", "@spectrum-css/closebutton": "6.0.1", "@spectrum-css/fieldlabel": "10.0.1", "@spectrum-css/popover": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/actionbar/stories/template.js b/components/actionbar/stories/template.js index 8b134157bd2..6809e55225e 100644 --- a/components/actionbar/stories/template.js +++ b/components/actionbar/stories/template.js @@ -1,16 +1,13 @@ -import { Container } from "@spectrum-css/preview/decorators"; import { Template as ActionGroup } from "@spectrum-css/actiongroup/stories/template.js"; import { Template as CloseButton } from "@spectrum-css/closebutton/stories/template.js"; import { Template as FieldLabel } from "@spectrum-css/fieldlabel/stories/template.js"; import { Template as Popover } from "@spectrum-css/popover/stories/template.js"; +import { Container } from "@spectrum-css/preview/decorators"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-ActionBar", diff --git a/components/actionbar/themes/express.css b/components/actionbar/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/actionbar/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/actionbar/themes/spectrum-two.css b/components/actionbar/themes/spectrum-two.css deleted file mode 100644 index 157c2dc9294..00000000000 --- a/components/actionbar/themes/spectrum-two.css +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ActionBar { - /* colors - applied to popover */ - --spectrum-actionbar-popover-background-color: var(--spectrum-gray-25); - --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); - } -} diff --git a/components/actionbar/themes/spectrum.css b/components/actionbar/themes/spectrum.css deleted file mode 100644 index 27971810d3d..00000000000 --- a/components/actionbar/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ActionBar { - --spectrum-actionbar-popover-background-color: var(--spectrum-gray-50); - --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); - } -} diff --git a/components/actionbutton/CHANGELOG.md b/components/actionbutton/CHANGELOG.md index 2dca8e43a47..aab3ccd1f92 100644 --- a/components/actionbutton/CHANGELOG.md +++ b/components/actionbutton/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 6.2.1-next.0 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 7.0.1 ### Patch Changes @@ -144,8 +153,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.6...@spectrum-css/actionbutton@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.6...@spectrum-css/actionbutton@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -161,8 +169,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.5...@spectrum-css/actionbutton@5.2.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.5...@spectrum-css/actionbutton@5.2.6) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -170,8 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.4...@spectrum-css/actionbutton@5.2.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.4...@spectrum-css/actionbutton@5.2.5) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -179,8 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.3...@spectrum-css/actionbutton@5.2.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.3...@spectrum-css/actionbutton@5.2.4) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -188,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.2...@spectrum-css/actionbutton@5.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.2...@spectrum-css/actionbutton@5.2.3) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -197,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/actionbutton @@ -206,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.0...@spectrum-css/actionbutton@5.2.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.2.0...@spectrum-css/actionbutton@5.2.1) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -215,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.1.0...@spectrum-css/actionbutton@5.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.1.0...@spectrum-css/actionbutton@5.2.0) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -224,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.18...@spectrum-css/actionbutton@5.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.18...@spectrum-css/actionbutton@5.1.0) ### ✨ Features @@ -239,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.18 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.17...@spectrum-css/actionbutton@5.0.18) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.17...@spectrum-css/actionbutton@5.0.18) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -248,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.17 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.16...@spectrum-css/actionbutton@5.0.17) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.16...@spectrum-css/actionbutton@5.0.17) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -257,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.16 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.15...@spectrum-css/actionbutton@5.0.16) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.15...@spectrum-css/actionbutton@5.0.16) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -266,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.15 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.13...@spectrum-css/actionbutton@5.0.15) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.13...@spectrum-css/actionbutton@5.0.15) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -275,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.13...@spectrum-css/actionbutton@5.0.14) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.13...@spectrum-css/actionbutton@5.0.14) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -284,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.12...@spectrum-css/actionbutton@5.0.13) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.12...@spectrum-css/actionbutton@5.0.13) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -293,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.11...@spectrum-css/actionbutton@5.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.11...@spectrum-css/actionbutton@5.0.12) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -302,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.10...@spectrum-css/actionbutton@5.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.10...@spectrum-css/actionbutton@5.0.11) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -311,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.9...@spectrum-css/actionbutton@5.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.9...@spectrum-css/actionbutton@5.0.10) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -320,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.8...@spectrum-css/actionbutton@5.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.8...@spectrum-css/actionbutton@5.0.9) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -329,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.7...@spectrum-css/actionbutton@5.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.7...@spectrum-css/actionbutton@5.0.8) ### 🐛 Bug fixes @@ -340,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.6...@spectrum-css/actionbutton@5.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.6...@spectrum-css/actionbutton@5.0.7) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -349,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.5...@spectrum-css/actionbutton@5.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.5...@spectrum-css/actionbutton@5.0.6) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -358,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.4...@spectrum-css/actionbutton@5.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.4...@spectrum-css/actionbutton@5.0.5) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -367,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.3...@spectrum-css/actionbutton@5.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.3...@spectrum-css/actionbutton@5.0.4) ### 🔙 Reverts @@ -378,8 +363,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.2...@spectrum-css/actionbutton@5.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.2...@spectrum-css/actionbutton@5.0.3) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -387,8 +371,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.0...@spectrum-css/actionbutton@5.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.0...@spectrum-css/actionbutton@5.0.2) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -396,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.0...@spectrum-css/actionbutton@5.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@5.0.0...@spectrum-css/actionbutton@5.0.1) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -405,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.13...@spectrum-css/actionbutton@5.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.13...@spectrum-css/actionbutton@5.0.0) #### Remove focus-ring class @@ -424,8 +405,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.13 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.12...@spectrum-css/actionbutton@4.0.13) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.12...@spectrum-css/actionbutton@4.0.13) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -433,8 +413,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.12 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.11...@spectrum-css/actionbutton@4.0.12) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.11...@spectrum-css/actionbutton@4.0.12) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -442,8 +421,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.11 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.10...@spectrum-css/actionbutton@4.0.11) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.10...@spectrum-css/actionbutton@4.0.11) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -451,8 +429,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.10 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.9...@spectrum-css/actionbutton@4.0.10) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.9...@spectrum-css/actionbutton@4.0.10) ### 🐛 Bug fixes @@ -462,8 +439,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.9 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.8...@spectrum-css/actionbutton@4.0.9) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.8...@spectrum-css/actionbutton@4.0.9) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -471,8 +447,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.8 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.7...@spectrum-css/actionbutton@4.0.8) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.7...@spectrum-css/actionbutton@4.0.8) ### 🐛 Bug fixes @@ -482,8 +457,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.7 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.6...@spectrum-css/actionbutton@4.0.7) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.6...@spectrum-css/actionbutton@4.0.7) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -491,8 +465,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.6 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.5...@spectrum-css/actionbutton@4.0.6) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.5...@spectrum-css/actionbutton@4.0.6) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -500,8 +473,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.5 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.4...@spectrum-css/actionbutton@4.0.5) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.4...@spectrum-css/actionbutton@4.0.5) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -509,8 +481,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.4 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.3...@spectrum-css/actionbutton@4.0.4) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.3...@spectrum-css/actionbutton@4.0.4) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -518,8 +489,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.3 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.2...@spectrum-css/actionbutton@4.0.3) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.2...@spectrum-css/actionbutton@4.0.3) ### 🐛 Bug fixes @@ -529,8 +499,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.2 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.1...@spectrum-css/actionbutton@4.0.2) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.1...@spectrum-css/actionbutton@4.0.2) **Note:** Version bump only for package @spectrum-css/actionbutton @@ -538,8 +507,7 @@ We’ve migrated away from the focus-ring class in favor of the native :focus-vi ## 4.0.1 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.0...@spectrum-css/actionbutton@4.0.1) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionbutton@4.0.0...@spectrum-css/actionbutton@4.0.1) **Note:** Version bump only for package @spectrum-css/actionbutton diff --git a/components/actionbutton/dist/metadata.json b/components/actionbutton/dist/metadata.json index e17f6a5c586..06487511be1 100644 --- a/components/actionbutton/dist/metadata.json +++ b/components/actionbutton/dist/metadata.json @@ -3,7 +3,6 @@ "selectors": [ ".spectrum-ActionButton", ".spectrum-ActionButton--sizeL", - ".spectrum-ActionButton--sizeM", ".spectrum-ActionButton--sizeS", ".spectrum-ActionButton--sizeXL", ".spectrum-ActionButton--sizeXS", @@ -15,15 +14,25 @@ ".spectrum-ActionButton-label:empty", ".spectrum-ActionButton.is-disabled", ".spectrum-ActionButton.is-selected", + ".spectrum-ActionButton.is-selected .is-disabled.spectrum-ActionButton--staticBlack", + ".spectrum-ActionButton.is-selected .is-disabled.spectrum-ActionButton--staticWhite", ".spectrum-ActionButton.is-selected .spectrum-ActionButton-hold", ".spectrum-ActionButton.is-selected .spectrum-ActionButton-icon", ".spectrum-ActionButton.is-selected .spectrum-ActionButton-label", - ".spectrum-ActionButton.spectrum-ActionButton--emphasized:not(.spectrum-ActionButton--staticBlack, .spectrum-ActionButton--staticWhite)", + ".spectrum-ActionButton.is-selected.spectrum-ActionButton--emphasized:not(.spectrum-ActionButton--staticBlack, .spectrum-ActionButton--staticWhite)", + ".spectrum-ActionButton.is-selected.spectrum-ActionButton--staticBlack:disabled", + ".spectrum-ActionButton.is-selected.spectrum-ActionButton--staticWhite:disabled", ".spectrum-ActionButton.spectrum-ActionButton--quiet", + ".spectrum-ActionButton.spectrum-ActionButton--quiet.is-disabled:not(.is-selected)", + ".spectrum-ActionButton.spectrum-ActionButton--quiet:disabled:not(.is-selected)", ".spectrum-ActionButton.spectrum-ActionButton--staticBlack", + ".spectrum-ActionButton.spectrum-ActionButton--staticBlack .is-disabled", ".spectrum-ActionButton.spectrum-ActionButton--staticBlack.spectrum-ActionButton--quiet", + ".spectrum-ActionButton.spectrum-ActionButton--staticBlack:disabled", ".spectrum-ActionButton.spectrum-ActionButton--staticWhite", + ".spectrum-ActionButton.spectrum-ActionButton--staticWhite .is-disabled", ".spectrum-ActionButton.spectrum-ActionButton--staticWhite.spectrum-ActionButton--quiet", + ".spectrum-ActionButton.spectrum-ActionButton--staticWhite:disabled", ".spectrum-ActionButton::-moz-focus-inner", ".spectrum-ActionButton:active", ".spectrum-ActionButton:after", @@ -39,18 +48,10 @@ "modifiers": [ "--mod-actionbutton-animation-duration", "--mod-actionbutton-background-color-default", - "--mod-actionbutton-background-color-default-selected", - "--mod-actionbutton-background-color-default-selected-emphasized", "--mod-actionbutton-background-color-disabled", "--mod-actionbutton-background-color-down", - "--mod-actionbutton-background-color-down-selected", - "--mod-actionbutton-background-color-down-selected-emphasized", "--mod-actionbutton-background-color-focus", - "--mod-actionbutton-background-color-focus-selected", - "--mod-actionbutton-background-color-focus-selected-emphasized", "--mod-actionbutton-background-color-hover", - "--mod-actionbutton-background-color-hover-selected", - "--mod-actionbutton-background-color-hover-selected-emphasized", "--mod-actionbutton-border-color-default", "--mod-actionbutton-border-color-disabled", "--mod-actionbutton-border-color-down", @@ -59,18 +60,10 @@ "--mod-actionbutton-border-radius", "--mod-actionbutton-border-width", "--mod-actionbutton-content-color-default", - "--mod-actionbutton-content-color-default-selected", - "--mod-actionbutton-content-color-default-selected-emphasized", "--mod-actionbutton-content-color-disabled", "--mod-actionbutton-content-color-down", - "--mod-actionbutton-content-color-down-selected", - "--mod-actionbutton-content-color-down-selected-emphasized", "--mod-actionbutton-content-color-focus", - "--mod-actionbutton-content-color-focus-selected", - "--mod-actionbutton-content-color-focus-selected-emphasized", "--mod-actionbutton-content-color-hover", - "--mod-actionbutton-content-color-hover-selected", - "--mod-actionbutton-content-color-hover-selected-emphasized", "--mod-actionbutton-edge-to-hold-icon", "--mod-actionbutton-edge-to-text", "--mod-actionbutton-edge-to-visual", @@ -78,17 +71,13 @@ "--mod-actionbutton-focus-indicator-border-radius", "--mod-actionbutton-focus-indicator-color", "--mod-actionbutton-focus-indicator-gap", - "--mod-actionbutton-focus-indicator-thickness", - "--mod-actionbutton-font-size", "--mod-actionbutton-height", "--mod-actionbutton-icon-size", "--mod-actionbutton-label-color", "--mod-actionbutton-min-width", - "--mod-actionbutton-static-content-color", "--mod-actionbutton-text-to-visual", - "--mod-animation-duration-100", - "--mod-line-height-100", - "--mod-sans-font-family-stack" + "--mod-disabled-background-color", + "--mod-disabled-content-color" ], "component": [ "--spectrum-action-button-edge-to-hold-icon-extra-large", @@ -96,7 +85,7 @@ "--spectrum-action-button-edge-to-hold-icon-large", "--spectrum-action-button-edge-to-hold-icon-medium", "--spectrum-action-button-edge-to-hold-icon-small", - "--spectrum-actionbutton-background-color", + "--spectrum-actionbutton-animation-duration", "--spectrum-actionbutton-background-color-default", "--spectrum-actionbutton-background-color-disabled", "--spectrum-actionbutton-background-color-down", @@ -107,7 +96,6 @@ "--spectrum-actionbutton-background-color-selected-down", "--spectrum-actionbutton-background-color-selected-focus", "--spectrum-actionbutton-background-color-selected-hover", - "--spectrum-actionbutton-border-color", "--spectrum-actionbutton-border-color-default", "--spectrum-actionbutton-border-color-disabled", "--spectrum-actionbutton-border-color-down", @@ -115,26 +103,24 @@ "--spectrum-actionbutton-border-color-hover", "--spectrum-actionbutton-border-radius", "--spectrum-actionbutton-border-width", - "--spectrum-actionbutton-content-color", + "--spectrum-actionbutton-content-color-default", + "--spectrum-actionbutton-content-color-disabled", + "--spectrum-actionbutton-content-color-down", + "--spectrum-actionbutton-content-color-focus", + "--spectrum-actionbutton-content-color-hover", "--spectrum-actionbutton-content-color-selected", "--spectrum-actionbutton-edge-to-hold-icon", "--spectrum-actionbutton-edge-to-text", "--spectrum-actionbutton-edge-to-visual", "--spectrum-actionbutton-edge-to-visual-only", + "--spectrum-actionbutton-focus-indicator-border-radius", "--spectrum-actionbutton-focus-indicator-color", "--spectrum-actionbutton-focus-indicator-gap", "--spectrum-actionbutton-focus-indicator-thickness", "--spectrum-actionbutton-font-size", "--spectrum-actionbutton-height", "--spectrum-actionbutton-icon-size", - "--spectrum-actionbutton-sized-edge-to-hold-icon", - "--spectrum-actionbutton-sized-edge-to-text", - "--spectrum-actionbutton-sized-edge-to-visual", - "--spectrum-actionbutton-sized-edge-to-visual-only", - "--spectrum-actionbutton-sized-font-size", - "--spectrum-actionbutton-sized-height", - "--spectrum-actionbutton-sized-icon-size", - "--spectrum-actionbutton-sized-text-to-visual", + "--spectrum-actionbutton-min-width", "--spectrum-actionbutton-text-to-visual" ], "global": [ @@ -143,7 +129,6 @@ "--spectrum-accent-background-color-hover", "--spectrum-accent-background-color-key-focus", "--spectrum-animation-duration-100", - "--spectrum-black", "--spectrum-border-width-100", "--spectrum-component-edge-to-text-100", "--spectrum-component-edge-to-text-200", @@ -165,13 +150,14 @@ "--spectrum-component-height-300", "--spectrum-component-height-50", "--spectrum-component-height-75", - "--spectrum-corner-radius-100", + "--spectrum-corner-radius-medium-size-extra-large", + "--spectrum-corner-radius-medium-size-extra-small", + "--spectrum-corner-radius-medium-size-large", + "--spectrum-corner-radius-medium-size-medium", + "--spectrum-corner-radius-medium-size-small", + "--spectrum-disabled-background-color", "--spectrum-disabled-border-color", "--spectrum-disabled-content-color", - "--spectrum-disabled-static-black-border-color", - "--spectrum-disabled-static-black-content-color", - "--spectrum-disabled-static-white-border-color", - "--spectrum-disabled-static-white-content-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", @@ -182,6 +168,7 @@ "--spectrum-font-size-75", "--spectrum-gray-100", "--spectrum-gray-200", + "--spectrum-gray-25", "--spectrum-gray-400", "--spectrum-gray-50", "--spectrum-gray-500", @@ -206,19 +193,14 @@ "--spectrum-text-to-visual-75", "--spectrum-transparent-black-100", "--spectrum-transparent-black-200", - "--spectrum-transparent-black-400", "--spectrum-transparent-black-500", "--spectrum-transparent-black-600", "--spectrum-transparent-black-700", - "--spectrum-transparent-black-800", - "--spectrum-transparent-black-900", + "--spectrum-transparent-white-100", "--spectrum-transparent-white-200", - "--spectrum-transparent-white-400", "--spectrum-transparent-white-500", "--spectrum-transparent-white-600", "--spectrum-transparent-white-700", - "--spectrum-transparent-white-800", - "--spectrum-transparent-white-900", "--spectrum-white", "--spectrum-workflow-icon-size-100", "--spectrum-workflow-icon-size-200", @@ -226,64 +208,26 @@ "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-action-button-background-color-default", - "--system-action-button-background-color-down", - "--system-action-button-background-color-focus", - "--system-action-button-background-color-hover", - "--system-action-button-background-color-selected", - "--system-action-button-background-color-selected-disabled", - "--system-action-button-background-color-selected-down", - "--system-action-button-background-color-selected-focus", - "--system-action-button-background-color-selected-hover", - "--system-action-button-border-color-default", - "--system-action-button-border-color-disabled", - "--system-action-button-border-color-down", - "--system-action-button-border-color-focus", - "--system-action-button-border-color-hover", - "--system-action-button-content-color-selected", - "--system-action-button-quiet-background-color-default", - "--system-action-button-quiet-background-color-down", - "--system-action-button-quiet-background-color-focus", - "--system-action-button-quiet-background-color-hover", - "--system-action-button-static-black-background-color-default", - "--system-action-button-static-black-background-color-disabled", - "--system-action-button-static-black-background-color-down", - "--system-action-button-static-black-background-color-focus", - "--system-action-button-static-black-background-color-hover", - "--system-action-button-static-black-background-color-selected-disabled", - "--system-action-button-static-black-border-color-default", - "--system-action-button-static-black-border-color-down", - "--system-action-button-static-black-border-color-focus", - "--system-action-button-static-black-border-color-hover", - "--system-action-button-static-black-quiet-background-color-default", - "--system-action-button-static-black-quiet-background-color-down", - "--system-action-button-static-black-quiet-background-color-focus", - "--system-action-button-static-black-quiet-background-color-hover", - "--system-action-button-static-white-background-color-default", - "--system-action-button-static-white-background-color-disabled", - "--system-action-button-static-white-background-color-down", - "--system-action-button-static-white-background-color-focus", - "--system-action-button-static-white-background-color-hover", - "--system-action-button-static-white-background-color-selected-disabled", - "--system-action-button-static-white-border-color-default", - "--system-action-button-static-white-border-color-down", - "--system-action-button-static-white-border-color-focus", - "--system-action-button-static-white-border-color-hover", - "--system-action-button-static-white-quiet-background-color-default", - "--system-action-button-static-white-quiet-background-color-down", - "--system-action-button-static-white-quiet-background-color-focus", - "--system-action-button-static-white-quiet-background-color-hover" - ], "passthroughs": [ "--mod-button-animation-duration", "--mod-button-font-family", "--mod-button-line-height" ], "high-contrast": [ - "--highcontrast-actionbutton-background-color", - "--highcontrast-actionbutton-border-color", - "--highcontrast-actionbutton-content-color", - "--highcontrast-actionbutton-focus-indicator-color" + "--highcontrast-actionbutton-background-color-default", + "--highcontrast-actionbutton-background-color-disabled", + "--highcontrast-actionbutton-background-color-down", + "--highcontrast-actionbutton-background-color-focus", + "--highcontrast-actionbutton-background-color-hover", + "--highcontrast-actionbutton-border-color-default", + "--highcontrast-actionbutton-border-color-disabled", + "--highcontrast-actionbutton-border-color-down", + "--highcontrast-actionbutton-border-color-focus", + "--highcontrast-actionbutton-border-color-hover", + "--highcontrast-actionbutton-content-color-default", + "--highcontrast-actionbutton-content-color-disabled", + "--highcontrast-actionbutton-content-color-down", + "--highcontrast-actionbutton-content-color-focus", + "--highcontrast-actionbutton-content-color-hover" ] } diff --git a/components/actionbutton/index.css b/components/actionbutton/index.css index 962babfbf04..bcf9af21804 100644 --- a/components/actionbutton/index.css +++ b/components/actionbutton/index.css @@ -11,128 +11,125 @@ * governing permissions and limitations under the License. */ -@import "@spectrum-css/commons/basebutton.css"; -@import "./themes/spectrum-two.css"; - -@media (forced-colors: active) { - .spectrum-ActionButton { - /* force a more visible focus indicator color */ - --highcontrast-actionbutton-focus-indicator-color: ButtonText; - --highcontrast-actionbutton-content-color: ButtonText; - - &::after { - /* make sure focus indicator renders */ - forced-color-adjust: none; - } - - &:disabled, - &.is-disabled { - --highcontrast-actionbutton-content-color: GrayText; - --highcontrast-actionbutton-border-color: GrayText; - --highcontrast-actionbutton-background-color: ButtonFace; - } +.spectrum-ActionButton { + --spectrum-actionbutton-background-color-default: var(--highcontrast-actionbutton-background-color-default, var(--mod-actionbutton-background-color-default, var(--spectrum-gray-50))); + --spectrum-actionbutton-background-color-hover: var(--highcontrast-actionbutton-background-color-hover, var(--mod-actionbutton-background-color-hover, var(--spectrum-gray-100))); + --spectrum-actionbutton-background-color-down: var(--highcontrast-actionbutton-background-color-down, var(--mod-actionbutton-background-color-down, var(--spectrum-gray-200))); + --spectrum-actionbutton-background-color-focus: var(--highcontrast-actionbutton-background-color-focus, var(--mod-actionbutton-background-color-focus, var(--spectrum-gray-100))); + --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-100); + + --spectrum-actionbutton-background-color-selected: var(--spectrum-neutral-background-color-selected-default); + --spectrum-actionbutton-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); + --spectrum-actionbutton-background-color-selected-down: var(--spectrum-neutral-background-color-selected-down); + --spectrum-actionbutton-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); + + --spectrum-actionbutton-border-color-default: var(--highcontrast-actionbutton-border-color-default, var(--mod-actionbutton-border-color-default, var(--spectrum-gray-400))); + --spectrum-actionbutton-border-color-hover: var(--highcontrast-actionbutton-border-color-hover, var(--mod-actionbutton-border-color-hover, var(--spectrum-gray-500))); + --spectrum-actionbutton-border-color-down: var(--highcontrast-actionbutton-border-color-down, var(--mod-actionbutton-border-color-down, var(--spectrum-gray-600))); + --spectrum-actionbutton-border-color-focus: var(--highcontrast-actionbutton-border-color-focus, var(--mod-actionbutton-border-color-focus, var(--spectrum-gray-500))); + --spectrum-actionbutton-border-color-disabled: var(--spectrum-disabled-border-color); + + --spectrum-actionbutton-content-color-selected: var(--spectrum-gray-25); + --spectrum-actionbutton-content-color-disabled: var(--mod-disabled-content-color, var(--spectrum-disabled-content-color)); + --spectrum-actionbutton-background-color-disabled: var(--mod-disabled-background-color, var(--spectrum-disabled-background-color)); + + --spectrum-actionbutton-animation-duration: var(--mod-actionbutton-animation-duration, var(--spectrum-animation-duration-100)); + --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-medium-size-medium)); + --spectrum-actionbutton-border-width: var(--mod-actionbutton-border-width, var(--spectrum-border-width-100)); - &.is-selected { - --highcontrast-actionbutton-background-color: Highlight; - --highcontrast-actionbutton-border-color: HighlightText; - --highcontrast-actionbutton-content-color: HighlightText; + --spectrum-actionbutton-content-color-default: var(--highcontrast-actionbutton-content-color-default, var(--mod-actionbutton-content-color-default, var(--spectrum-neutral-content-color-default))); + --spectrum-actionbutton-content-color-hover: var(--highcontrast-actionbutton-content-color-hover, var(--mod-actionbutton-content-color-hover, var(--spectrum-neutral-content-color-hover))); + --spectrum-actionbutton-content-color-down: var(--highcontrast-actionbutton-content-color-down, var(--mod-actionbutton-content-color-down, var(--spectrum-neutral-content-color-down))); + --spectrum-actionbutton-content-color-focus: var(--highcontrast-actionbutton-content-color-focus, var(--mod-actionbutton-content-color-focus, var(--spectrum-neutral-content-color-key-focus))); - .spectrum-ActionButton-icon, - .spectrum-ActionButton-hold, - .spectrum-ActionButton-label { - /* ensure custom text colors from above get applied */ - /* it seems like this shouldn't have to be done, but colors are wrong without it */ - forced-color-adjust: none; - } - } - } -} + --spectrum-actionbutton-focus-indicator-gap: var(--mod-actionbutton-focus-indicator-gap, var(--spectrum-focus-indicator-gap)); + --spectrum-actionbutton-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-actionbutton-focus-indicator-color: var(--spectrum-focus-indicator-color); -.spectrum-ActionButton { - --spectrum-actionbutton-background-color: var(--highcontrast-actionbutton-background-color, var(--mod-actionbutton-background-color-default, var(--spectrum-actionbutton-background-color-default))); - --spectrum-actionbutton-border-color: var(--highcontrast-actionbutton-border-color, var(--mod-actionbutton-border-color-default, var(--spectrum-actionbutton-border-color-default))); - --spectrum-actionbutton-content-color: var(--highcontrast-actionbutton-content-color, var(--mod-actionbutton-content-color-default, var(--spectrum-neutral-content-color-default))); + --spectrum-actionbutton-min-width: var(--mod-actionbutton-min-width, calc((var(--spectrum-component-edge-to-visual-only-100) * 2) + var(--spectrum-workflow-icon-size-100))); + --spectrum-actionbutton-height: var(--spectrum-component-height-100); - --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-100)); - --spectrum-actionbutton-border-width: var(--mod-actionbutton-border-width, var(--spectrum-border-width-100)); + --spectrum-actionbutton-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-actionbutton-font-size: var(--spectrum-font-size-100); + --spectrum-actionbutton-text-to-visual: var(--spectrum-text-to-visual-100); + --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-action-button-edge-to-hold-icon-medium)); - --spectrum-actionbutton-focus-indicator-gap: var(--mod-actionbutton-focus-indicator-gap, var(--spectrum-focus-indicator-gap)); - --spectrum-actionbutton-focus-indicator-thickness: var(--mod-actionbutton-focus-indicator-thickness, var(--spectrum-focus-indicator-thickness)); - --spectrum-actionbutton-focus-indicator-color: var(--highcontrast-actionbutton-focus-indicator-color, var(--mod-actionbutton-focus-indicator-color, var(--spectrum-focus-indicator-color))); + --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-component-edge-to-visual-100) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-component-edge-to-text-100) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width))); &:dir(rtl) { --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); } &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-border-color: transparent; - } + --mod-actionbutton-border-color-default: transparent; + + --mod-actionbutton-background-color-default: transparent; + --mod-actionbutton-background-color-hover: var(--spectrum-gray-100); + --mod-actionbutton-background-color-down: var(--spectrum-gray-200); + --mod-actionbutton-background-color-focus: var(--spectrum-gray-100); - /* Emphasized styles are only applied to the "selected" state of the button and are not applied in static color modes */ - &.spectrum-ActionButton--emphasized:not(.spectrum-ActionButton--staticBlack, .spectrum-ActionButton--staticWhite) { - --mod-actionbutton-background-color-default-selected: var(--mod-actionbutton-background-color-default-selected-emphasized, var(--spectrum-accent-background-color-default)); - --mod-actionbutton-background-color-hover-selected: var(--mod-actionbutton-background-color-hover-selected-emphasized, var(--spectrum-accent-background-color-hover)); - --mod-actionbutton-background-color-down-selected: var(--mod-actionbutton-background-color-down-selected-emphasized, var(--spectrum-accent-background-color-down)); - --mod-actionbutton-background-color-focus-selected: var(--mod-actionbutton-background-color-focus-selected-emphasized, var(--spectrum-accent-background-color-key-focus)); - - --mod-actionbutton-content-color-default-selected: var(--mod-actionbutton-content-color-default-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-hover-selected: var(--mod-actionbutton-content-color-hover-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-down-selected: var(--mod-actionbutton-content-color-down-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-focus-selected: var(--mod-actionbutton-content-color-focus-selected-emphasized, var(--spectrum-white)); + &:disabled:not(.is-selected), + &.is-disabled:not(.is-selected) { + --mod-actionbutton-border-color-disabled: transparent; + --mod-actionbutton-background-color-disabled: transparent; + } } &.spectrum-ActionButton--staticBlack { - --mod-actionbutton-background-color-default-selected: var(--spectrum-transparent-black-800); - --mod-actionbutton-background-color-hover-selected: var(--spectrum-transparent-black-900); - --mod-actionbutton-background-color-down-selected: var(--spectrum-transparent-black-900); - --mod-actionbutton-background-color-focus-selected: var(--spectrum-transparent-black-900); + --mod-actionbutton-background-color-default: transparent; - /* border color _not_ disabled is coming from the system theme layer */ - --mod-actionbutton-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --mod-actionbutton-border-color-default: var(--spectrum-transparent-black-500); + --mod-actionbutton-border-color-hover: var(--spectrum-transparent-black-600); + --mod-actionbutton-border-color-down: var(--spectrum-transparent-black-700); + --mod-actionbutton-border-color-focus: var(--spectrum-transparent-black-600); - --mod-actionbutton-content-color-default: var(--spectrum-black); - --mod-actionbutton-content-color-hover: var(--spectrum-black); - --mod-actionbutton-content-color-down: var(--spectrum-black); - --mod-actionbutton-content-color-focus: var(--spectrum-black); - --mod-actionbutton-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --mod-actionbutton-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --mod-actionbutton-content-color-default-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-white)); - --mod-actionbutton-content-color-hover-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-white)); - --mod-actionbutton-content-color-down-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-white)); - --mod-actionbutton-content-color-focus-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-white)); + --spectrum-actionbutton-background-color-disabled: transparent; + --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-200); - --mod-actionbutton-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + &:disabled, + .is-disabled { + --mod-disabled-content-color: var(--spectrum-transparent-black-500); + --mod-actionbutton-border-color-disabled: var(--spectrum-transparent-black-500); + } + + &.spectrum-ActionButton--quiet { + --mod-actionbutton-border-color-default: transparent; + } } &.spectrum-ActionButton--staticWhite { - /* background color _not_ selected is coming from the system theme layer */ - --mod-actionbutton-background-color-default-selected: var(--spectrum-transparent-white-800); - --mod-actionbutton-background-color-hover-selected: var(--spectrum-transparent-white-900); - --mod-actionbutton-background-color-down-selected: var(--spectrum-transparent-white-900); - --mod-actionbutton-background-color-focus-selected: var(--spectrum-transparent-white-900); - - /* border color _not_ disabled is coming from the system theme layer */ - --mod-actionbutton-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - - --mod-actionbutton-content-color-default: var(--spectrum-white); - --mod-actionbutton-content-color-hover: var(--spectrum-white); - --mod-actionbutton-content-color-down: var(--spectrum-white); - --mod-actionbutton-content-color-focus: var(--spectrum-white); - --mod-actionbutton-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - - --mod-actionbutton-content-color-default-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-black)); - --mod-actionbutton-content-color-hover-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-black)); - --mod-actionbutton-content-color-down-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-black)); - --mod-actionbutton-content-color-focus-selected: var(--mod-actionbutton-static-content-color, var(--spectrum-black)); + --mod-actionbutton-background-color-default: transparent; + + --mod-actionbutton-border-color-default: var(--spectrum-transparent-white-500); + --mod-actionbutton-border-color-hover: var(--spectrum-transparent-white-600); + --mod-actionbutton-border-color-down: var(--spectrum-transparent-white-700); + --mod-actionbutton-border-color-focus: var(--spectrum-transparent-white-600); --mod-actionbutton-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + + --spectrum-actionbutton-background-color-disabled: transparent; + --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-white-200); + + &:disabled, + .is-disabled { + --mod-disabled-content-color: var(--spectrum-transparent-white-500); + --mod-actionbutton-border-color-disabled: var(--spectrum-transparent-white-500); + } + + &.spectrum-ActionButton--quiet { + --mod-actionbutton-border-color-default: transparent; + } } &.is-selected { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-default-selected, var(--spectrum-actionbutton-background-color-selected)); - --mod-actionbutton-background-color-hover: var(--mod-actionbutton-background-color-hover-selected, var(--spectrum-actionbutton-background-color-selected-hover)); - --mod-actionbutton-background-color-down: var(--mod-actionbutton-background-color-down-selected, var(--spectrum-actionbutton-background-color-selected-down)); - --mod-actionbutton-background-color-focus: var(--mod-actionbutton-background-color-focus-selected, var(--spectrum-actionbutton-background-color-selected-focus)); + --mod-actionbutton-background-color-default: var(--spectrum-actionbutton-background-color-selected); + --mod-actionbutton-background-color-hover: var(--spectrum-actionbutton-background-color-selected-hover); + --mod-actionbutton-background-color-down: var(--spectrum-actionbutton-background-color-selected-down); + --mod-actionbutton-background-color-focus: var(--spectrum-actionbutton-background-color-selected-focus); --mod-actionbutton-background-color-disabled: var(--spectrum-actionbutton-background-color-selected-disabled); --mod-actionbutton-border-color-default: transparent; @@ -141,126 +138,159 @@ --mod-actionbutton-border-color-focus: transparent; --mod-actionbutton-border-color-disabled: transparent; - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-default-selected, var(--spectrum-actionbutton-content-color-selected)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-content-color-hover-selected, var(--spectrum-actionbutton-content-color-selected)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-content-color-down-selected, var(--spectrum-actionbutton-content-color-selected)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-content-color-focus-selected, var(--spectrum-actionbutton-content-color-selected)); - } - - &:hover { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-hover, var(--spectrum-actionbutton-background-color-hover)); - --mod-actionbutton-border-color-default: var(--mod-actionbutton-border-color-hover, var(--spectrum-actionbutton-border-color-hover)); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-hover, var(--spectrum-neutral-content-color-hover)); - } - - &:focus-visible { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-focus, var(--spectrum-actionbutton-background-color-focus)); - --mod-actionbutton-border-color-default: var(--mod-actionbutton-border-color-focus, var(--spectrum-actionbutton-border-color-focus)); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-focus, var(--spectrum-neutral-content-color-key-focus)); - } + --mod-actionbutton-content-color-default: var(--spectrum-actionbutton-content-color-selected); + --mod-actionbutton-content-color-hover: var(--spectrum-actionbutton-content-color-selected); + --mod-actionbutton-content-color-down: var(--spectrum-actionbutton-content-color-selected); + --mod-actionbutton-content-color-focus: var(--spectrum-actionbutton-content-color-selected); + + &.spectrum-ActionButton--emphasized:not(.spectrum-ActionButton--staticBlack, .spectrum-ActionButton--staticWhite) { + --mod-actionbutton-background-color-default: var(--spectrum-accent-background-color-default); + --mod-actionbutton-background-color-hover: var(--spectrum-accent-background-color-hover); + --mod-actionbutton-background-color-down: var(--spectrum-accent-background-color-down); + --mod-actionbutton-background-color-focus: var(--spectrum-accent-background-color-key-focus); + + --mod-actionbutton-content-color-default: var(--spectrum-white); + --mod-actionbutton-content-color-hover: var(--spectrum-white); + --mod-actionbutton-content-color-down: var(--spectrum-white); + --mod-actionbutton-content-color-focus: var(--spectrum-white); + } - &:active { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-down, var(--spectrum-actionbutton-background-color-down)); - --mod-actionbutton-border-color-default: var(--mod-actionbutton-border-color-down, var(--spectrum-actionbutton-border-color-down)); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-down, var(--spectrum-neutral-content-color-down)); - } + &:disabled, + .is-disabled { + &.spectrum-ActionButton--staticBlack { + --mod-disabled-content-color: var(--spectrum-transparent-black-500); + --mod-disabled-background-color: var(--spectrum-transparent-black-100); + } - &:disabled, - &.is-disabled { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-disabled, var(--spectrum-actionbutton-background-color-disabled)); - --mod-actionbutton-border-color-default: var(--mod-actionbutton-border-color-disabled, var(--spectrum-actionbutton-border-color-disabled)); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-disabled, var(--spectrum-disabled-content-color)); + &.spectrum-ActionButton--staticWhite { + --mod-disabled-content-color: var(--spectrum-transparent-white-500); + --mod-disabled-background-color: var(--spectrum-transparent-white-100); + } + } } } -.spectrum-ActionButton, -.spectrum-ActionButton--sizeM { - --spectrum-actionbutton-sized-height: var(--spectrum-component-height-100); - --spectrum-actionbutton-sized-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-actionbutton-sized-font-size: var(--spectrum-font-size-100); - --spectrum-actionbutton-sized-text-to-visual: var(--spectrum-text-to-visual-100); - --spectrum-actionbutton-sized-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-medium); - --spectrum-actionbutton-sized-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - --spectrum-actionbutton-sized-edge-to-text: var(--spectrum-component-edge-to-text-100); - --spectrum-actionbutton-sized-edge-to-visual-only: var(--spectrum-component-edge-to-visual-only-100); -} - .spectrum-ActionButton--sizeXS { - --spectrum-actionbutton-sized-height: var(--spectrum-component-height-50); - --spectrum-actionbutton-sized-icon-size: var(--spectrum-workflow-icon-size-50); - --spectrum-actionbutton-sized-font-size: var(--spectrum-font-size-50); - --spectrum-actionbutton-sized-text-to-visual: var(--spectrum-text-to-visual-50); - --spectrum-actionbutton-sized-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-extra-small); - --spectrum-actionbutton-sized-edge-to-visual: var(--spectrum-component-edge-to-visual-50); - --spectrum-actionbutton-sized-edge-to-text: var(--spectrum-component-edge-to-text-50); - --spectrum-actionbutton-sized-edge-to-visual-only: var(--spectrum-component-edge-to-visual-only-50); + --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-medium-size-extra-small)); + + --spectrum-actionbutton-min-width: var(--mod-actionbutton-min-width, calc((var(--spectrum-component-edge-to-visual-only-50) * 2) + var(--spectrum-workflow-icon-size-50))); + --spectrum-actionbutton-height: var(--spectrum-component-height-50); + + --spectrum-actionbutton-icon-size: var(--spectrum-workflow-icon-size-50); + --spectrum-actionbutton-font-size: var(--spectrum-font-size-50); + --spectrum-actionbutton-text-to-visual: var(--spectrum-text-to-visual-50); + --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-action-button-edge-to-hold-icon-extra-small)); + --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-component-edge-to-visual-50) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-component-edge-to-text-50) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width))); } .spectrum-ActionButton--sizeS { - --spectrum-actionbutton-sized-height: var(--spectrum-component-height-75); - --spectrum-actionbutton-sized-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-actionbutton-sized-font-size: var(--spectrum-font-size-75); - --spectrum-actionbutton-sized-text-to-visual: var(--spectrum-text-to-visual-75); - --spectrum-actionbutton-sized-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-small); - --spectrum-actionbutton-sized-edge-to-visual: var(--spectrum-component-edge-to-visual-75); - --spectrum-actionbutton-sized-edge-to-text: var(--spectrum-component-edge-to-text-75); - --spectrum-actionbutton-sized-edge-to-visual-only: var(--spectrum-component-edge-to-visual-only-75); + --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-medium-size-small)); + + --spectrum-actionbutton-min-width: var(--mod-actionbutton-min-width, calc((var(--spectrum-component-edge-to-visual-only-75) * 2) + var(--spectrum-workflow-icon-size-75))); + --spectrum-actionbutton-height: var(--spectrum-component-height-75); + + --spectrum-actionbutton-icon-size: var(--spectrum-workflow-icon-size-75); + --spectrum-actionbutton-font-size: var(--spectrum-font-size-75); + --spectrum-actionbutton-text-to-visual: var(--spectrum-text-to-visual-75); + --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-action-button-edge-to-hold-icon-small)); + --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-component-edge-to-visual-75) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-component-edge-to-text-75) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width))); } .spectrum-ActionButton--sizeL { - --spectrum-actionbutton-sized-height: var(--spectrum-component-height-200); - --spectrum-actionbutton-sized-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-actionbutton-sized-font-size: var(--spectrum-font-size-200); - --spectrum-actionbutton-sized-text-to-visual: var(--spectrum-text-to-visual-200); - --spectrum-actionbutton-sized-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-large); - --spectrum-actionbutton-sized-edge-to-visual: var(--spectrum-component-edge-to-visual-200); - --spectrum-actionbutton-sized-edge-to-text: var(--spectrum-component-edge-to-text-200); - --spectrum-actionbutton-sized-edge-to-visual-only: var(--spectrum-component-edge-to-visual-only-200); + --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-medium-size-large)); + + --spectrum-actionbutton-min-width: var(--mod-actionbutton-min-width, calc((var(--spectrum-component-edge-to-visual-only-200) * 2) + var(--spectrum-workflow-icon-size-200))); + --spectrum-actionbutton-height: var(--spectrum-component-height-200); + + --spectrum-actionbutton-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-actionbutton-font-size: var(--spectrum-font-size-200); + --spectrum-actionbutton-text-to-visual: var(--spectrum-text-to-visual-200); + --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-action-button-edge-to-hold-icon-large)); + --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-component-edge-to-visual-200) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-component-edge-to-text-200) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width))); } .spectrum-ActionButton--sizeXL { - --spectrum-actionbutton-sized-height: var(--spectrum-component-height-300); - --spectrum-actionbutton-sized-icon-size: var(--spectrum-workflow-icon-size-300); - --spectrum-actionbutton-sized-font-size: var(--spectrum-font-size-300); - --spectrum-actionbutton-sized-text-to-visual: var(--spectrum-text-to-visual-300); - --spectrum-actionbutton-sized-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-extra-large); - --spectrum-actionbutton-sized-edge-to-visual: var(--spectrum-component-edge-to-visual-300); - --spectrum-actionbutton-sized-edge-to-text: var(--spectrum-component-edge-to-text-300); - --spectrum-actionbutton-sized-edge-to-visual-only: var(--spectrum-component-edge-to-visual-only-300); + --spectrum-actionbutton-border-radius: var(--mod-actionbutton-border-radius, var(--spectrum-corner-radius-medium-size-extra-large)); + + --spectrum-actionbutton-min-width: var(--mod-actionbutton-min-width, calc((var(--spectrum-component-edge-to-visual-only-300) * 2) + var(--spectrum-workflow-icon-size-300))); + --spectrum-actionbutton-height: var(--spectrum-component-height-300); + + --spectrum-actionbutton-icon-size: var(--spectrum-workflow-icon-size-300); + --spectrum-actionbutton-font-size: var(--spectrum-font-size-300); + --spectrum-actionbutton-text-to-visual: var(--spectrum-text-to-visual-300); + --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-action-button-edge-to-hold-icon-extra-large)); + --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-component-edge-to-visual-300) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-component-edge-to-text-300) - var(--spectrum-actionbutton-border-width))); + --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width))); } .spectrum-ActionButton { - /* Variables leveraging t-shirt sizing */ - --spectrum-actionbutton-height: var(--mod-actionbutton-height, var(--spectrum-actionbutton-sized-height)); - --spectrum-actionbutton-icon-size: var(--mod-actionbutton-icon-size, var(--spectrum-actionbutton-sized-icon-size)); - --spectrum-actionbutton-font-size: var(--mod-actionbutton-font-size, var(--spectrum-actionbutton-sized-font-size)); - --spectrum-actionbutton-text-to-visual: var(--mod-actionbutton-text-to-visual, var(--spectrum-actionbutton-sized-text-to-visual)); - --spectrum-actionbutton-edge-to-hold-icon: var(--mod-actionbutton-edge-to-hold-icon, var(--spectrum-actionbutton-sized-edge-to-hold-icon)); + --spectrum-actionbutton-focus-indicator-border-radius: var(--mod-actionbutton-focus-indicator-border-radius, calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap))); - --spectrum-actionbutton-edge-to-visual: var(--mod-actionbutton-edge-to-visual, calc(var(--spectrum-actionbutton-sized-edge-to-visual) - var(--spectrum-actionbutton-border-width))); - --spectrum-actionbutton-edge-to-text: var(--mod-actionbutton-edge-to-text, calc(var(--spectrum-actionbutton-sized-edge-to-text) - var(--spectrum-actionbutton-border-width))); - --spectrum-actionbutton-edge-to-visual-only: var(--mod-actionbutton-edge-to-visual-only, calc(var(--spectrum-actionbutton-sized-edge-to-visual-only) - var(--spectrum-actionbutton-border-width))); - - @extend %spectrum-BaseButton; + cursor: pointer; + user-select: none; + /* Contain halo */ position: relative; - min-inline-size: var(--mod-actionbutton-min-width, calc(var(--mod-actionbutton-edge-to-visual-only, var(--spectrum-actionbutton-sized-edge-to-visual-only)) * 2 + var(--spectrum-actionbutton-icon-size))); - block-size: var(--spectrum-actionbutton-height); + /* Show the button overflow in Edge. */ + overflow: visible; + display: inline-flex; + align-items: center; + justify-content: center; + + box-sizing: border-box; + + /* Remove button the margin in Firefox and Safari. */ + margin: 0; + + font-family: var(--mod-button-font-family, var(--spectrum-sans-font-family-stack)); + + /* Adjacent buttons should be aligned correctly */ + vertical-align: top; + + -webkit-font-smoothing: antialiased; + + /* Font smoothing for Firefox */ + -moz-osx-font-smoothing: grayscale; + + line-height: var(--mod-button-line-height, var(--spectrum-line-height-100)); + text-decoration: none; + + /* Remove the inheritance of text transform on button in Edge, Firefox, and IE. */ + text-transform: none; + + /* stylelint-disable-next-line property-no-vendor-prefix -- Correct the inability to style clickable types in iOS and Safari (normalize). */ + -webkit-appearance: button; + + border-style: solid; + + transition: + background var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + border-color var(--mod-actionbutton-animation-duration, var(--spectrum-animation-duration-100)) ease-in-out, + color var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + box-shadow var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out; + + min-inline-size: var(--spectrum-actionbutton-min-width); + block-size: var(--mod-actionbutton-height, var(--spectrum-actionbutton-height)); border-radius: var(--spectrum-actionbutton-border-radius); border-width: var(--spectrum-actionbutton-border-width); - gap: calc(var(--spectrum-actionbutton-text-to-visual) + var(--spectrum-actionbutton-edge-to-text) - var(--spectrum-actionbutton-edge-to-visual-only)); + gap: calc(var(--mod-actionbutton-text-to-visual, var(--spectrum-actionbutton-text-to-visual)) + (var(--spectrum-actionbutton-edge-to-text) - var(--spectrum-actionbutton-edge-to-visual-only))); /* Start with text-only padding */ padding-inline: var(--spectrum-actionbutton-edge-to-text); - background-color: var(--spectrum-actionbutton-background-color); - border-color: var(--spectrum-actionbutton-border-color); - color: var(--spectrum-actionbutton-content-color); - - transition: border-color var(--mod-actionbutton-animation-duration, var(--spectrum-animation-duration-100)) ease-in-out; + background: var(--spectrum-actionbutton-background-color-default); + border-color: var(--spectrum-actionbutton-border-color-default); + color: var(--spectrum-actionbutton-content-color-default); &::after { position: absolute; @@ -268,35 +298,79 @@ margin: calc((var(--spectrum-actionbutton-focus-indicator-gap) + var(--spectrum-actionbutton-border-width)) * -1); - border-radius: var(--mod-actionbutton-focus-indicator-border-radius, calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap))); + border-radius: var(--spectrum-actionbutton-focus-indicator-border-radius); - transition: box-shadow var(--mod-actionbutton-animation-duration, var(--spectrum-animation-duration-100)) ease-in-out; + transition: box-shadow var(--spectrum-actionbutton-animation-duration) ease-in-out; pointer-events: none; content: ""; } + &:hover { + background: var(--spectrum-actionbutton-background-color-hover); + border-color: var(--spectrum-actionbutton-border-color-hover); + color: var(--spectrum-actionbutton-content-color-hover); + } + + /* Fix Firefox */ + &::-moz-focus-inner { + margin-block-start: -2px; + margin-block-end: -2px; + padding: 0; + border: 0; + + /* Remove the inner border and padding for button in Firefox. */ + border-style: none; + } + + &:focus, &:focus-visible { /* kill the default ring */ box-shadow: none; outline: none; + } + + &:focus-visible { + background: var(--spectrum-actionbutton-background-color-focus); + border-color: var(--spectrum-actionbutton-border-color-focus); + color: var(--spectrum-actionbutton-content-color-focus); &::after { box-shadow: 0 0 0 var(--spectrum-actionbutton-focus-indicator-thickness) var(--spectrum-actionbutton-focus-indicator-color); } } + + &:active { + background: var(--spectrum-actionbutton-background-color-down); + border-color: var(--spectrum-actionbutton-border-color-down); + color: var(--spectrum-actionbutton-content-color-down); + } + + &:disabled, + &.is-disabled { + cursor: default; + + background: var(--highcontrast-actionbutton-background-color-disabled, var(--mod-actionbutton-background-color-disabled, var(--spectrum-actionbutton-background-color-disabled))); + border-color: var(--highcontrast-actionbutton-border-color-disabled, var(--mod-actionbutton-border-color-disabled, var(--spectrum-actionbutton-border-color-disabled))); + color: var(--highcontrast-actionbutton-content-color-disabled, var(--mod-actionbutton-content-color-disabled, var(--spectrum-actionbutton-content-color-disabled))); + } } a.spectrum-ActionButton { - @extend %spectrum-AnchorButton; + /* Make link text not selectable */ + user-select: none; + + /* stylelint-disable-next-line property-no-vendor-prefix -- Remove appearance for clickable types in iOS and Safari. */ + -webkit-appearance: none; } /* Nested sub-component: Icon */ .spectrum-ActionButton-icon { - @extend %spectrum-ButtonIcon; + flex-shrink: 0; - inline-size: var(--spectrum-actionbutton-icon-size); - block-size: var(--spectrum-actionbutton-icon-size); + inline-size: var(--mod-actionbutton-icon-size, var(--spectrum-actionbutton-icon-size)); + block-size: var(--mod-actionbutton-icon-size, var(--spectrum-actionbutton-icon-size)); + max-block-size: 100%; /* adjust icon positioning to match UI kit */ margin-inline-start: calc(var(--spectrum-actionbutton-edge-to-visual) - var(--spectrum-actionbutton-edge-to-text)); @@ -312,7 +386,12 @@ a.spectrum-ActionButton { } .spectrum-ActionButton-label { - @extend %spectrum-ButtonLabel; + align-self: center; + justify-self: center; + + /* Fixes horizontal alignment of text in anchor buttons */ + text-align: center; + pointer-events: none; line-height: var(--spectrum-actionbutton-height); @@ -322,6 +401,10 @@ a.spectrum-ActionButton { text-overflow: ellipsis; overflow: hidden; + + &:empty { + display: none; + } } .spectrum-ActionButton-hold { @@ -333,3 +416,46 @@ a.spectrum-ActionButton { transform: var(--spectrum-logical-rotation,); } + +.spectrum-ActionButton-hold + .spectrum-ActionButton-icon, +.spectrum-ActionButton-icon:only-child { + /* Augment the margin correction for the icon only scenario */ + margin-inline-start: calc(var(--spectrum-actionbutton-edge-to-visual-only) - var(--spectrum-actionbutton-edge-to-text)); +} + +@media (forced-colors: active) { + .spectrum-ActionButton { + &::after { + /* make sure focus indicator renders */ + forced-color-adjust: none; + } + + &.is-selected { + --highcontrast-actionbutton-background-color-default: Highlight; + --highcontrast-actionbutton-background-color-hover: Highlight; + --highcontrast-actionbutton-background-color-focus: Highlight; + --highcontrast-actionbutton-background-color-down: Highlight; + --highcontrast-actionbutton-background-color-disabled: ButtonFace; + + --highcontrast-actionbutton-border-color-default: HighlightText; + --highcontrast-actionbutton-border-color-hover: HighlightText; + --highcontrast-actionbutton-border-color-focus: HighlightText; + --highcontrast-actionbutton-border-color-down: HighlightText; + --highcontrast-actionbutton-border-color-disabled: GrayText; + + --highcontrast-actionbutton-content-color-default: HighlightText; + --highcontrast-actionbutton-content-color-hover: HighlightText; + --highcontrast-actionbutton-content-color-focus: HighlightText; + --highcontrast-actionbutton-content-color-down: HighlightText; + --highcontrast-actionbutton-content-color-disabled: GrayText; + + .spectrum-ActionButton-icon, + .spectrum-ActionButton-hold, + .spectrum-ActionButton-label { + /* ensure custom text colors from above get applied */ + /* it seems like this shouldn't have to be done, but colors are wrong without it */ + forced-color-adjust: none; + } + } + } +} diff --git a/components/actionbutton/package.json b/components/actionbutton/package.json index 33335bf6b02..f146d6c67ee 100644 --- a/components/actionbutton/package.json +++ b/components/actionbutton/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -34,13 +34,9 @@ } }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/actionbutton/stories/template.js b/components/actionbutton/stories/template.js index 425b7e4115c..9c1fd980055 100644 --- a/components/actionbutton/stories/template.js +++ b/components/actionbutton/stories/template.js @@ -7,9 +7,6 @@ import { when } from "lit/directives/when.js"; import { capitalize } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; /** * @todo load order should not influence the icon size but it is; fix this diff --git a/components/actionbutton/themes/express.css b/components/actionbutton/themes/express.css deleted file mode 100644 index 489d96692b7..00000000000 --- a/components/actionbutton/themes/express.css +++ /dev/null @@ -1,70 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-ActionButton { - --spectrum-actionbutton-background-color-default: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-300); - - --spectrum-actionbutton-border-color-default: transparent; - --spectrum-actionbutton-border-color-hover: transparent; - --spectrum-actionbutton-border-color-down: transparent; - --spectrum-actionbutton-border-color-focus: transparent; - --spectrum-actionbutton-border-color-disabled: transparent; - - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: transparent; - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-300); - } - - &.spectrum-ActionButton--staticBlack, - &.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-border-color-default: transparent; - --spectrum-actionbutton-border-color-hover: transparent; - --spectrum-actionbutton-border-color-down: transparent; - --spectrum-actionbutton-border-color-focus: transparent; - } - - &.spectrum-ActionButton--staticBlack { - --spectrum-actionbutton-background-color-disabled: transparent; - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: var(--spectrum-transparent-black-200); - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-black-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-black-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-black-300); - } - } - - &.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-background-color-disabled: transparent; - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: var(--spectrum-transparent-white-200); - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-white-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-white-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-white-300); - } - } - } -} diff --git a/components/actionbutton/themes/spectrum-two.css b/components/actionbutton/themes/spectrum-two.css deleted file mode 100644 index 656f6513931..00000000000 --- a/components/actionbutton/themes/spectrum-two.css +++ /dev/null @@ -1,78 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ActionButton { - --spectrum-actionbutton-background-color-default: var(--spectrum-gray-50); - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-100); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-100); - --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-100); - - --spectrum-actionbutton-background-color-selected: var(--spectrum-neutral-background-color-selected-default); - --spectrum-actionbutton-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); - --spectrum-actionbutton-background-color-selected-down: var(--spectrum-neutral-background-color-selected-down); - --spectrum-actionbutton-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); - - --spectrum-actionbutton-border-color-default: var(--spectrum-gray-400); - --spectrum-actionbutton-border-color-hover: var(--spectrum-gray-500); - --spectrum-actionbutton-border-color-down: var(--spectrum-gray-600); - --spectrum-actionbutton-border-color-focus: var(--spectrum-gray-500); - --spectrum-actionbutton-border-color-disabled: var(--spectrum-disabled-border-color); - - --spectrum-actionbutton-content-color-selected: var(--spectrum-gray-50); - - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: transparent; - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-100); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-100); - } - - &.spectrum-ActionButton--staticBlack { - --spectrum-actionbutton-border-color-default: var(--spectrum-transparent-black-500); - --spectrum-actionbutton-border-color-hover: var(--spectrum-transparent-black-600); - --spectrum-actionbutton-border-color-down: var(--spectrum-transparent-black-700); - --spectrum-actionbutton-border-color-focus: var(--spectrum-transparent-black-600); - - --spectrum-actionbutton-background-color-disabled: transparent; - --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-200); - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: transparent; - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-black-400); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-black-500); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-black-400); - } - } - - &.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-border-color-default: var(--spectrum-transparent-white-500); - --spectrum-actionbutton-border-color-hover: var(--spectrum-transparent-white-600); - --spectrum-actionbutton-border-color-down: var(--spectrum-transparent-white-700); - --spectrum-actionbutton-border-color-focus: var(--spectrum-transparent-white-600); - - --spectrum-actionbutton-background-color-disabled: transparent; - --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-white-200); - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: transparent; - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-white-400); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-white-500); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-white-400); - } - } - } -} diff --git a/components/actionbutton/themes/spectrum.css b/components/actionbutton/themes/spectrum.css deleted file mode 100644 index c0b4c61ca02..00000000000 --- a/components/actionbutton/themes/spectrum.css +++ /dev/null @@ -1,62 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ActionButton { - --spectrum-actionbutton-background-color-default: var(--spectrum-gray-75); - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-300); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-selected-disabled: var(--spectrum-transparent-black-200); - - --spectrum-actionbutton-content-color-selected: var(--spectrum-gray-75); - - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-hover: var(--spectrum-gray-200); - --spectrum-actionbutton-background-color-down: var(--spectrum-gray-300); - --spectrum-actionbutton-background-color-focus: var(--spectrum-gray-200); - } - - &.spectrum-ActionButton--staticBlack { - --spectrum-actionbutton-border-color-default: var(--spectrum-transparent-black-400); - --spectrum-actionbutton-border-color-hover: var(--spectrum-transparent-black-500); - --spectrum-actionbutton-border-color-down: var(--spectrum-transparent-black-600); - --spectrum-actionbutton-border-color-focus: var(--spectrum-transparent-black-500); - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-black-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-black-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-black-300); - } - } - - &.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-border-color-default: var(--spectrum-transparent-white-400); - --spectrum-actionbutton-border-color-hover: var(--spectrum-transparent-white-500); - --spectrum-actionbutton-border-color-down: var(--spectrum-transparent-white-600); - --spectrum-actionbutton-border-color-focus: var(--spectrum-transparent-white-500); - - &, - &.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-hover: var(--spectrum-transparent-white-300); - --spectrum-actionbutton-background-color-down: var(--spectrum-transparent-white-400); - --spectrum-actionbutton-background-color-focus: var(--spectrum-transparent-white-300); - } - } - } -} diff --git a/components/actiongroup/CHANGELOG.md b/components/actiongroup/CHANGELOG.md index cf2fb9a7020..a43f25dbed0 100644 --- a/components/actiongroup/CHANGELOG.md +++ b/components/actiongroup/CHANGELOG.md @@ -1,5 +1,38 @@ # Change Log +<a name="5.0.0-next.3"></a> + +## 5.0.0-next.3 + +- Global token update to latest package released + +<a name="5.0.0-next.2"></a> + +## 5.0.0-next.2 + +- Remove deprecated `--mod` properties from the commons package. +- Global grays migration for S2 foundations support. + +<a name="5.0.0-next.1"></a> + +## 5.0.0-next.1 + +Align peerDependency requirements with local tokens package version. + +<a name="5.0.0-next.0"></a> + +## 5.0.0-next.0 + +🗓 2024-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.0...@spectrum-css/actiongroup@5.0.0-next.0) + +### 🛑 BREAKING CHANGE: migrates `Action Group` to Spectrum 2 + +Removes the following `--mod-*` properties: + +- `--mod-actiongroup-button-spacing-reset` +- `--mod-actiongroup-horizontal-spacing-compact` +- `--mod-actiongroup-vertical-spacing-compact` + ## 6.0.1 ### Patch Changes @@ -140,25 +173,20 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.5...@spectrum-css/actiongroup@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.5...@spectrum-css/actiongroup@5.0.0) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css <a name="4.2.5"></a> ## 4.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.4...@spectrum-css/actiongroup@4.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.4...@spectrum-css/actiongroup@4.2.5) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -166,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.3...@spectrum-css/actiongroup@4.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.3...@spectrum-css/actiongroup@4.2.4) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -175,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.2...@spectrum-css/actiongroup@4.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.2...@spectrum-css/actiongroup@4.2.3) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -184,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.1...@spectrum-css/actiongroup@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.2.1...@spectrum-css/actiongroup@4.2.2) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -193,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/actiongroup @@ -202,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.10...@spectrum-css/actiongroup@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.10...@spectrum-css/actiongroup@4.2.0) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -211,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.10 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.9...@spectrum-css/actiongroup@4.1.10) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.9...@spectrum-css/actiongroup@4.1.10) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -220,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.9 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.8...@spectrum-css/actiongroup@4.1.9) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.8...@spectrum-css/actiongroup@4.1.9) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -229,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.8 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.7...@spectrum-css/actiongroup@4.1.8) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.7...@spectrum-css/actiongroup@4.1.8) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -238,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.7 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.5...@spectrum-css/actiongroup@4.1.7) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.5...@spectrum-css/actiongroup@4.1.7) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -247,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.6 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.5...@spectrum-css/actiongroup@4.1.6) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.5...@spectrum-css/actiongroup@4.1.6) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -256,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.4...@spectrum-css/actiongroup@4.1.5) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.4...@spectrum-css/actiongroup@4.1.5) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -265,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.3...@spectrum-css/actiongroup@4.1.4) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.3...@spectrum-css/actiongroup@4.1.4) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -274,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.2...@spectrum-css/actiongroup@4.1.3) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.2...@spectrum-css/actiongroup@4.1.3) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -283,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.1...@spectrum-css/actiongroup@4.1.2) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.1...@spectrum-css/actiongroup@4.1.2) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -292,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.0...@spectrum-css/actiongroup@4.1.1) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.1.0...@spectrum-css/actiongroup@4.1.1) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -301,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.7...@spectrum-css/actiongroup@4.1.0) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.7...@spectrum-css/actiongroup@4.1.0) ### ✨ Features @@ -312,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.6...@spectrum-css/actiongroup@4.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.6...@spectrum-css/actiongroup@4.0.7) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -321,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.5...@spectrum-css/actiongroup@4.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.5...@spectrum-css/actiongroup@4.0.6) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -330,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.4...@spectrum-css/actiongroup@4.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.4...@spectrum-css/actiongroup@4.0.5) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -339,19 +348,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.3...@spectrum-css/actiongroup@4.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.3...@spectrum-css/actiongroup@4.0.4) ### 🔙 Reverts -\*gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) +- gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) <a name="4.0.3"></a> ## 4.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.2...@spectrum-css/actiongroup@4.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.2...@spectrum-css/actiongroup@4.0.3) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -359,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.0...@spectrum-css/actiongroup@4.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.0...@spectrum-css/actiongroup@4.0.2) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -368,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.0...@spectrum-css/actiongroup@4.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@4.0.0...@spectrum-css/actiongroup@4.0.1) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -377,23 +382,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.61...@spectrum-css/actiongroup@4.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.61...@spectrum-css/actiongroup@4.0.0) -\*refactor(actiongroup)!: replace focus-ring with focus-visible([d792847](https://github.com/adobe/spectrum-css/commit/d792847)) +- refactor(actiongroup)!: replace focus-ring with focus-visible([d792847](https://github.com/adobe/spectrum-css/commit/d792847)) + + ### +### 🛑 BREAKING CHANGES - ### - 🛑 BREAKING CHANGES + 🛑 BREAKING CHANGES - * - use native focus-visible pseudo class for focus styling + * + use native focus-visible pseudo class for focus styling +- use native focus-visible pseudo class for focus styling <a name="3.0.61"></a> ## 3.0.61 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.60...@spectrum-css/actiongroup@3.0.61) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.60...@spectrum-css/actiongroup@3.0.61) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -401,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.60 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.59...@spectrum-css/actiongroup@3.0.60) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.59...@spectrum-css/actiongroup@3.0.60) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -410,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.59 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.58...@spectrum-css/actiongroup@3.0.59) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.58...@spectrum-css/actiongroup@3.0.59) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -419,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.58 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.57...@spectrum-css/actiongroup@3.0.58) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.57...@spectrum-css/actiongroup@3.0.58) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -428,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.57 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.56...@spectrum-css/actiongroup@3.0.57) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.56...@spectrum-css/actiongroup@3.0.57) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -437,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.56 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.55...@spectrum-css/actiongroup@3.0.56) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.55...@spectrum-css/actiongroup@3.0.56) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -446,8 +447,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.55 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.54...@spectrum-css/actiongroup@3.0.55) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.54...@spectrum-css/actiongroup@3.0.55) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -455,8 +455,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.54 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.53...@spectrum-css/actiongroup@3.0.54) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.53...@spectrum-css/actiongroup@3.0.54) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -464,8 +463,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.53 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.52...@spectrum-css/actiongroup@3.0.53) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.52...@spectrum-css/actiongroup@3.0.53) ### 🐛 Bug fixes @@ -475,8 +473,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.52 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.51...@spectrum-css/actiongroup@3.0.52) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.51...@spectrum-css/actiongroup@3.0.52) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -484,8 +481,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.51 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.50...@spectrum-css/actiongroup@3.0.51) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.50...@spectrum-css/actiongroup@3.0.51) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -493,19 +489,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.50 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.49...@spectrum-css/actiongroup@3.0.50) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.49...@spectrum-css/actiongroup@3.0.50) ### 🐛 Bug fixes -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) +- restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) <a name="3.0.49"></a> ## 3.0.49 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.48...@spectrum-css/actiongroup@3.0.49) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.48...@spectrum-css/actiongroup@3.0.49) **Note:** Version bump only for package @spectrum-css/actiongroup @@ -513,8 +507,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.48 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.47...@spectrum-css/actiongroup@3.0.48) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actiongroup@3.0.47...@spectrum-css/actiongroup@3.0.48) **Note:** Version bump only for package @spectrum-css/actiongroup diff --git a/components/actiongroup/dist/metadata.json b/components/actiongroup/dist/metadata.json index c78e7d30965..8d4d2ba86b7 100644 --- a/components/actiongroup/dist/metadata.json +++ b/components/actiongroup/dist/metadata.json @@ -53,11 +53,6 @@ "--spectrum-spacing-100", "--spectrum-spacing-75" ], - "system-theme": [ - "--system-action-group-gap-size-compact", - "--system-action-group-horizontal-spacing-compact", - "--system-action-group-vertical-spacing-compact" - ], "passthroughs": ["--mod-actionbutton-focus-indicator-border-radius"], "high-contrast": [] } diff --git a/components/actiongroup/index.css b/components/actiongroup/index.css index bbd26cb0f65..ac427bc8636 100644 --- a/components/actiongroup/index.css +++ b/components/actiongroup/index.css @@ -11,9 +11,13 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-ActionGroup { + --spectrum-actiongroup-gap-size-compact: 0; + + /* account for button border */ + --spectrum-actiongroup-horizontal-spacing-compact: -1px; + --spectrum-actiongroup-vertical-spacing-compact: -1px; + --spectrum-actiongroup-button-spacing-reset: 0; --spectrum-actiongroup-border-radius-reset: 0; --spectrum-actiongroup-border-radius: var(--spectrum-corner-radius-100); diff --git a/components/actiongroup/package.json b/components/actiongroup/package.json index f8c79c3b19e..ed916ba5821 100644 --- a/components/actiongroup/package.json +++ b/components/actiongroup/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/actionbutton": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/actionbutton": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/actiongroup/stories/actiongroup.stories.js b/components/actiongroup/stories/actiongroup.stories.js index a83857b9e54..314083c3502 100644 --- a/components/actiongroup/stories/actiongroup.stories.js +++ b/components/actiongroup/stories/actiongroup.stories.js @@ -5,7 +5,7 @@ import { size } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; import { ActionGroups } from "./actiongroup.test.js"; -import { OverflowOption, TreatmentTemplate } from "./template.js"; +import { OverflowOption, Template, TreatmentTemplate } from "./template.js"; /** * An action group is a grouping of [action buttons](/docs/components-action-button--docs) that are related to each other. @@ -100,6 +100,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = ActionGroups.bind({}); @@ -279,6 +280,15 @@ JustifiedIconOnlyCompact.parameters = { chromatic: { disableSnapshot: true }, }; +export const Quiet = Template.bind({}); +Quiet.tags = ["!dev"]; +Quiet.args = { + areQuiet: true, +}; +Quiet.parameters = { + chromatic: { disableSnapshot: true }, +}; + /** * When space is limited in an action group, there are 2 options for the group's overflow behavior: wrap or collapse. By default, an action group is set to wrap, meaning that the action buttons inside the group wrap to form another line. Alternatively, an action group can be set to collapse inside a **More (...)** action button. */ diff --git a/components/actiongroup/stories/template.js b/components/actiongroup/stories/template.js index d13cdac64aa..25d8f25f4e0 100644 --- a/components/actiongroup/stories/template.js +++ b/components/actiongroup/stories/template.js @@ -6,9 +6,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { capitalize } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-ActionGroup", diff --git a/components/actiongroup/themes/express.css b/components/actiongroup/themes/express.css deleted file mode 100644 index 3fd8de9cdbb..00000000000 --- a/components/actiongroup/themes/express.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-ActionGroup { - --spectrum-actiongroup-gap-size-compact: var(--spectrum-spacing-50); - - /* account for button border */ - --spectrum-actiongroup-horizontal-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); - --spectrum-actiongroup-vertical-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); - } -} diff --git a/components/actiongroup/themes/spectrum-two.css b/components/actiongroup/themes/spectrum-two.css deleted file mode 100644 index b25c0f945b2..00000000000 --- a/components/actiongroup/themes/spectrum-two.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ActionGroup { - --spectrum-actiongroup-gap-size-compact: 0; - - /* account for button border */ - --spectrum-actiongroup-horizontal-spacing-compact: -1px; - --spectrum-actiongroup-vertical-spacing-compact: -1px; - } -} diff --git a/components/actiongroup/themes/spectrum.css b/components/actiongroup/themes/spectrum.css deleted file mode 100644 index 3d81bc564b5..00000000000 --- a/components/actiongroup/themes/spectrum.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; diff --git a/components/actionmenu/CHANGELOG.md b/components/actionmenu/CHANGELOG.md index d7d46d6f142..583a0b1bfb5 100644 --- a/components/actionmenu/CHANGELOG.md +++ b/components/actionmenu/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 7.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/menu@8.0.0-next.0 + ## 7.0.0 ### Major Changes @@ -128,16 +137,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.3...@spectrum-css/actionmenu@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.3...@spectrum-css/actionmenu@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -145,8 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.2...@spectrum-css/actionmenu@5.1.3) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.2...@spectrum-css/actionmenu@5.1.3) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -154,8 +158,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.1...@spectrum-css/actionmenu@5.1.2) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.1.1...@spectrum-css/actionmenu@5.1.2) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -163,8 +166,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/actionmenu @@ -172,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.10...@spectrum-css/actionmenu@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.10...@spectrum-css/actionmenu@5.1.0) ### ✨ Features @@ -183,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.9...@spectrum-css/actionmenu@5.0.10) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.9...@spectrum-css/actionmenu@5.0.10) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -192,8 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.8...@spectrum-css/actionmenu@5.0.9) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.8...@spectrum-css/actionmenu@5.0.9) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -201,8 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.6...@spectrum-css/actionmenu@5.0.8) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.6...@spectrum-css/actionmenu@5.0.8) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -210,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.6...@spectrum-css/actionmenu@5.0.7) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.6...@spectrum-css/actionmenu@5.0.7) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -219,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.5...@spectrum-css/actionmenu@5.0.6) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.5...@spectrum-css/actionmenu@5.0.6) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -228,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.4...@spectrum-css/actionmenu@5.0.5) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.4...@spectrum-css/actionmenu@5.0.5) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -237,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.3...@spectrum-css/actionmenu@5.0.4) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.3...@spectrum-css/actionmenu@5.0.4) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -246,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.2...@spectrum-css/actionmenu@5.0.3) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.2...@spectrum-css/actionmenu@5.0.3) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -255,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.1...@spectrum-css/actionmenu@5.0.2) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.1...@spectrum-css/actionmenu@5.0.2) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -264,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.0...@spectrum-css/actionmenu@5.0.1) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@5.0.0...@spectrum-css/actionmenu@5.0.1) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -273,13 +264,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.58...@spectrum-css/actionmenu@5.0.0) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.58...@spectrum-css/actionmenu@5.0.0) \*feat(actionmenu)!: migrate to use spectrum-tokens (#2144)([16e8239](https://github.com/adobe/spectrum-css/commit/16e8239)), closes[#2144](https://github.com/adobe/spectrum-css/issues/2144) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates ActionMenu to use `@adobe/spectrum-tokens` @@ -292,8 +281,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.58 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.57...@spectrum-css/actionmenu@4.0.58) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.57...@spectrum-css/actionmenu@4.0.58) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -301,8 +289,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.57 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.56...@spectrum-css/actionmenu@4.0.57) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.56...@spectrum-css/actionmenu@4.0.57) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -310,8 +297,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.56 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.55...@spectrum-css/actionmenu@4.0.56) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.55...@spectrum-css/actionmenu@4.0.56) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -319,8 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.55 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.54...@spectrum-css/actionmenu@4.0.55) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.54...@spectrum-css/actionmenu@4.0.55) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -328,8 +313,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.54 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.53...@spectrum-css/actionmenu@4.0.54) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.53...@spectrum-css/actionmenu@4.0.54) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -337,8 +321,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.53 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.51...@spectrum-css/actionmenu@4.0.53) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.51...@spectrum-css/actionmenu@4.0.53) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -346,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.52 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.51...@spectrum-css/actionmenu@4.0.52) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.51...@spectrum-css/actionmenu@4.0.52) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -355,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.51 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.50...@spectrum-css/actionmenu@4.0.51) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.50...@spectrum-css/actionmenu@4.0.51) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -364,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.50 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.49...@spectrum-css/actionmenu@4.0.50) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.49...@spectrum-css/actionmenu@4.0.50) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -373,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.49 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.48...@spectrum-css/actionmenu@4.0.49) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.48...@spectrum-css/actionmenu@4.0.49) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -382,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.48 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.47...@spectrum-css/actionmenu@4.0.48) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.47...@spectrum-css/actionmenu@4.0.48) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -391,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.47 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.46...@spectrum-css/actionmenu@4.0.47) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.46...@spectrum-css/actionmenu@4.0.47) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -400,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.46 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.45...@spectrum-css/actionmenu@4.0.46) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.45...@spectrum-css/actionmenu@4.0.46) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -409,8 +385,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.45 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.44...@spectrum-css/actionmenu@4.0.45) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.44...@spectrum-css/actionmenu@4.0.45) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -418,8 +393,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.44 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.43...@spectrum-css/actionmenu@4.0.44) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.43...@spectrum-css/actionmenu@4.0.44) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -427,8 +401,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.43 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.42...@spectrum-css/actionmenu@4.0.43) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.42...@spectrum-css/actionmenu@4.0.43) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -436,8 +409,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.42 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.41...@spectrum-css/actionmenu@4.0.42) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.41...@spectrum-css/actionmenu@4.0.42) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -445,8 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.41 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.40...@spectrum-css/actionmenu@4.0.41) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.40...@spectrum-css/actionmenu@4.0.41) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -454,8 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.40 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.39...@spectrum-css/actionmenu@4.0.40) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.39...@spectrum-css/actionmenu@4.0.40) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -463,8 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.39 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.38...@spectrum-css/actionmenu@4.0.39) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.38...@spectrum-css/actionmenu@4.0.39) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -472,8 +441,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.38 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.37...@spectrum-css/actionmenu@4.0.38) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.37...@spectrum-css/actionmenu@4.0.38) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -481,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.37 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.36...@spectrum-css/actionmenu@4.0.37) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.36...@spectrum-css/actionmenu@4.0.37) **Note:** Version bump only for package @spectrum-css/actionmenu @@ -490,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.36 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.35...@spectrum-css/actionmenu@4.0.36) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/actionmenu@4.0.35...@spectrum-css/actionmenu@4.0.36) **Note:** Version bump only for package @spectrum-css/actionmenu diff --git a/components/actionmenu/package.json b/components/actionmenu/package.json index a7acdf59a60..d17f01b1dfc 100644 --- a/components/actionmenu/package.json +++ b/components/actionmenu/package.json @@ -25,22 +25,18 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/icon": ">=7", - "@spectrum-css/menu": ">=7", - "@spectrum-css/popover": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/icon": ">=9", + "@spectrum-css/menu": ">=9", + "@spectrum-css/popover": ">=8", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/actionbutton": "7.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/menu": "9.0.1", "@spectrum-css/popover": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/actionmenu/stories/actionmenu.stories.js b/components/actionmenu/stories/actionmenu.stories.js index e9cdd3b8a14..b3cab764ac2 100644 --- a/components/actionmenu/stories/actionmenu.stories.js +++ b/components/actionmenu/stories/actionmenu.stories.js @@ -31,9 +31,6 @@ export default { control: { type: "text" }, }, items: { table: { disable: true } }, - id: { table: { disable: true } }, - testId: { table: { disable: true } }, - triggerId: { table: { disable: true } }, }, args: { isOpen: false, diff --git a/components/alertbanner/CHANGELOG.md b/components/alertbanner/CHANGELOG.md index d71213697f1..9cd63f0b118 100644 --- a/components/alertbanner/CHANGELOG.md +++ b/components/alertbanner/CHANGELOG.md @@ -1,5 +1,30 @@ # Change Log +## 3.0.0-next.0 + +### Major Changes + +- [#2652](https://github.com/adobe/spectrum-css/pull/2652) [`aa2a196`](https://github.com/adobe/spectrum-css/commit/aa2a196bce37c12ef560e9f6c6888ac82f0a514a) Thanks [@jawinn](https://github.com/jawinn)! - #### Spectrum 2 migration + + Alert banner now uses Spectrum 2 tokens and specifications. In this new design, the divider has been removed. + + The following changes have been made to the mod custom properties: + + - `--mod-alert-banner-size` was renamed to `--mod-alert-banner-inline-size` + - `--mod-alert-banner-neutral-background` was previously misspelled. The mod `--mod-alert-banner-background` was also added, which will take precendence over the variant background mods. + - `--mod-alert-banner-top-text` was renamed to `--mod-alert-banner-top-to-text` + - `--mod-alert-banner-top-icon` was renamed to `--mod-alert-banner-top-to-icon` + - `--mod-alert-banner-bottom-text` was renamed to `--mod-alert-banner-bottom-to-text` + - `--mod-alert-banner-start-edge` was renamed to `--mod-alert-banner-inline-start-to-content` + - `--mod-alert-banner-edge-to-button` was renamed to `--mod-alert-banner-block-edge-to-button` + - The spacing on either side of the close button is now controlled by two separate mods; `--mod-alert-banner-close-button-to-inline-end` and `--mod-alert-banner-close-button-to-content`. The previous `--mod-alert-banner-close-button-spacing` has been removed. + - A new mod `--mod-alert-banner-inline-end-to-content` was added, which handles the inline end spacing when the alert banner does not have a close button. Or when there is neither a close button or an action button. + +### Patch Changes + +- Updated dependencies [[`b9aeb20`](https://github.com/adobe/spectrum-css/commit/b9aeb203dd0bd728606d47d10dbd37fb42229379)]: + - @spectrum-css/tokens@14.0.0-next.11 + ## 3.0.1 ### Patch Changes @@ -173,16 +198,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.41...@spectrum-css/alertbanner@2.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.41...@spectrum-css/alertbanner@2.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -190,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.41 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.40...@spectrum-css/alertbanner@1.1.41) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.40...@spectrum-css/alertbanner@1.1.41) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -199,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.40 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.39...@spectrum-css/alertbanner@1.1.40) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.39...@spectrum-css/alertbanner@1.1.40) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -208,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.39 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.38...@spectrum-css/alertbanner@1.1.39) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.38...@spectrum-css/alertbanner@1.1.39) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -217,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.38 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.37...@spectrum-css/alertbanner@1.1.38) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.37...@spectrum-css/alertbanner@1.1.38) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -226,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.37 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/alertbanner @@ -235,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.36 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.35...@spectrum-css/alertbanner@1.1.36) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.35...@spectrum-css/alertbanner@1.1.36) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -244,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.35 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.34...@spectrum-css/alertbanner@1.1.35) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.34...@spectrum-css/alertbanner@1.1.35) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -253,8 +268,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.34 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.33...@spectrum-css/alertbanner@1.1.34) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.33...@spectrum-css/alertbanner@1.1.34) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -262,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.33 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.31...@spectrum-css/alertbanner@1.1.33) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.31...@spectrum-css/alertbanner@1.1.33) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -271,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.32 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.31...@spectrum-css/alertbanner@1.1.32) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.31...@spectrum-css/alertbanner@1.1.32) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -280,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.31 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.30...@spectrum-css/alertbanner@1.1.31) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.30...@spectrum-css/alertbanner@1.1.31) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -289,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.30 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.29...@spectrum-css/alertbanner@1.1.30) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.29...@spectrum-css/alertbanner@1.1.30) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -298,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.29 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.28...@spectrum-css/alertbanner@1.1.29) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.28...@spectrum-css/alertbanner@1.1.29) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -307,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.28 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.27...@spectrum-css/alertbanner@1.1.28) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.27...@spectrum-css/alertbanner@1.1.28) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -316,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.27 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.26...@spectrum-css/alertbanner@1.1.27) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.26...@spectrum-css/alertbanner@1.1.27) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -325,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.26 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.25...@spectrum-css/alertbanner@1.1.26) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.25...@spectrum-css/alertbanner@1.1.26) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -334,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.25 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.24...@spectrum-css/alertbanner@1.1.25) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.24...@spectrum-css/alertbanner@1.1.25) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -343,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.24 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.23...@spectrum-css/alertbanner@1.1.24) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.23...@spectrum-css/alertbanner@1.1.24) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -352,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.23 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.22...@spectrum-css/alertbanner@1.1.23) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.22...@spectrum-css/alertbanner@1.1.23) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -361,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.22 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.21...@spectrum-css/alertbanner@1.1.22) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.21...@spectrum-css/alertbanner@1.1.22) ### 🔙 Reverts @@ -372,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.21 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.20...@spectrum-css/alertbanner@1.1.21) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.20...@spectrum-css/alertbanner@1.1.21) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -381,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.20 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.18...@spectrum-css/alertbanner@1.1.20) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.18...@spectrum-css/alertbanner@1.1.20) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -390,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.19 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.18...@spectrum-css/alertbanner@1.1.19) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.18...@spectrum-css/alertbanner@1.1.19) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -399,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.18 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.17...@spectrum-css/alertbanner@1.1.18) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.17...@spectrum-css/alertbanner@1.1.18) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -408,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.17 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.16...@spectrum-css/alertbanner@1.1.17) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.16...@spectrum-css/alertbanner@1.1.17) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -417,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.16 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.15...@spectrum-css/alertbanner@1.1.16) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.15...@spectrum-css/alertbanner@1.1.16) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -426,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.15 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.14...@spectrum-css/alertbanner@1.1.15) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.14...@spectrum-css/alertbanner@1.1.15) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -435,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.14 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.13...@spectrum-css/alertbanner@1.1.14) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.13...@spectrum-css/alertbanner@1.1.14) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -444,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.13 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.12...@spectrum-css/alertbanner@1.1.13) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.12...@spectrum-css/alertbanner@1.1.13) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -453,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.12 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.11...@spectrum-css/alertbanner@1.1.12) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.11...@spectrum-css/alertbanner@1.1.12) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -462,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.11 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.10...@spectrum-css/alertbanner@1.1.11) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.10...@spectrum-css/alertbanner@1.1.11) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -471,8 +462,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.10 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.9...@spectrum-css/alertbanner@1.1.10) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.9...@spectrum-css/alertbanner@1.1.10) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -480,8 +470,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.9 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.8...@spectrum-css/alertbanner@1.1.9) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.8...@spectrum-css/alertbanner@1.1.9) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -489,8 +478,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.8 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.7...@spectrum-css/alertbanner@1.1.8) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.7...@spectrum-css/alertbanner@1.1.8) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -498,8 +486,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.7 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.6...@spectrum-css/alertbanner@1.1.7) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.6...@spectrum-css/alertbanner@1.1.7) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -507,8 +494,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.6 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.5...@spectrum-css/alertbanner@1.1.6) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.5...@spectrum-css/alertbanner@1.1.6) ### 🐛 Bug fixes @@ -518,8 +504,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.5 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.4...@spectrum-css/alertbanner@1.1.5) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.4...@spectrum-css/alertbanner@1.1.5) **Note:** Version bump only for package @spectrum-css/alertbanner @@ -527,8 +512,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.4 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.3...@spectrum-css/alertbanner@1.1.4) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertbanner@1.1.3...@spectrum-css/alertbanner@1.1.4) **Note:** Version bump only for package @spectrum-css/alertbanner diff --git a/components/alertbanner/dist/metadata.json b/components/alertbanner/dist/metadata.json index 15b6983e631..2e9ddb2f699 100644 --- a/components/alertbanner/dist/metadata.json +++ b/components/alertbanner/dist/metadata.json @@ -6,82 +6,90 @@ ".spectrum-AlertBanner--negative", ".spectrum-AlertBanner-body", ".spectrum-AlertBanner-content", - ".spectrum-AlertBanner-end", ".spectrum-AlertBanner-icon", ".spectrum-AlertBanner-text", - ".spectrum-AlertBanner.is-open" + ".spectrum-AlertBanner.is-open", + ".spectrum-AlertBanner:has(.spectrum-CloseButton) .spectrum-AlertBanner-body", + ".spectrum-AlertBanner:lang(ja)", + ".spectrum-AlertBanner:lang(ko)", + ".spectrum-AlertBanner:lang(zh)" ], "modifiers": [ - "--mod-alert-banner-bottom-text", - "--mod-alert-banner-close-button-spacing", - "--mod-alert-banner-edge-to-button", - "--mod-alert-banner-edge-to-divider", + "--mod-alert-banner-background", + "--mod-alert-banner-block-edge-to-button", + "--mod-alert-banner-bottom-to-text", + "--mod-alert-banner-close-button-to-content", + "--mod-alert-banner-close-button-to-inline-end", "--mod-alert-banner-font-color", + "--mod-alert-banner-font-family", "--mod-alert-banner-font-size", "--mod-alert-banner-icon-size", "--mod-alert-banner-icon-to-text", "--mod-alert-banner-informative-background", + "--mod-alert-banner-inline-end-to-content", + "--mod-alert-banner-inline-size", + "--mod-alert-banner-inline-start-to-content", + "--mod-alert-banner-line-height", "--mod-alert-banner-max-inline-size", "--mod-alert-banner-min-height", "--mod-alert-banner-negative-background", "--mod-alert-banner-neutral-background", - "--mod-alert-banner-size", - "--mod-alert-banner-start-edge", + "--mod-alert-banner-text-margin-block-end", + "--mod-alert-banner-text-margin-block-start", "--mod-alert-banner-text-to-button-horizontal", "--mod-alert-banner-text-to-button-vertical", - "--mod-alert-banner-text-to-divider", - "--mod-alert-banner-top-icon", - "--mod-alert-banner-top-text" + "--mod-alert-banner-top-to-close-button", + "--mod-alert-banner-top-to-icon", + "--mod-alert-banner-top-to-text" ], "component": [ - "--spectrum-alert-banner-bottom-text", + "--spectrum-alert-banner-background", + "--spectrum-alert-banner-block-edge-to-button", "--spectrum-alert-banner-bottom-to-text", "--spectrum-alert-banner-close-button-spacing", - "--spectrum-alert-banner-edge-to-button", - "--spectrum-alert-banner-edge-to-divider", + "--spectrum-alert-banner-close-button-to-content", + "--spectrum-alert-banner-close-button-to-inline-end", "--spectrum-alert-banner-font-color", + "--spectrum-alert-banner-font-family", "--spectrum-alert-banner-font-size", "--spectrum-alert-banner-icon-size", "--spectrum-alert-banner-icon-to-text", - "--spectrum-alert-banner-informative-background", + "--spectrum-alert-banner-inline-end-to-content", + "--spectrum-alert-banner-inline-size", + "--spectrum-alert-banner-inline-start-to-content", + "--spectrum-alert-banner-line-height", "--spectrum-alert-banner-max-inline-size", "--spectrum-alert-banner-min-height", "--spectrum-alert-banner-minimum-height", - "--spectrum-alert-banner-negative-background", "--spectrum-alert-banner-neutral-background", - "--spectrum-alert-banner-size", - "--spectrum-alert-banner-start-edge", + "--spectrum-alert-banner-text-margin-block-end", + "--spectrum-alert-banner-text-margin-block-start", "--spectrum-alert-banner-text-to-button-horizontal", "--spectrum-alert-banner-text-to-button-vertical", - "--spectrum-alert-banner-text-to-divider", - "--spectrum-alert-banner-top-icon", - "--spectrum-alert-banner-top-text", "--spectrum-alert-banner-top-to-text", "--spectrum-alert-banner-top-to-workflow-icon", "--spectrum-alert-banner-width" ], "global": [ "--spectrum-border-width-100", + "--spectrum-cjk-line-height-100", "--spectrum-font-size-100", "--spectrum-informative-background-color-default", + "--spectrum-line-height-100", "--spectrum-negative-background-color-default", "--spectrum-neutral-subdued-background-color-default", + "--spectrum-sans-font-family-stack", + "--spectrum-spacing-200", "--spectrum-spacing-300", "--spectrum-text-to-visual-300", "--spectrum-white", "--spectrum-workflow-icon-size-100" ], - "system-theme": ["--system-alert-banner-neutral-background"], "passthroughs": [ - "--mod-button-margin-block", - "--mod-button-margin-left", - "--mod-button-margin-right", "--mod-closebutton-align-self", "--mod-closebutton-margin-inline", "--mod-closebutton-margin-top", - "--mod-divider-vertical-align", - "--mod-divider-vertical-height", - "--mod-divider-vertical-margin" + "--mod-icon-size" ], "high-contrast": [ "--highcontrast-alert-banner-border-color", diff --git a/components/alertbanner/index.css b/components/alertbanner/index.css index 2f483970fb8..6659d42cbd1 100644 --- a/components/alertbanner/index.css +++ b/components/alertbanner/index.css @@ -11,52 +11,67 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-AlertBanner { + --spectrum-alert-banner-neutral-background: var(--spectrum-neutral-subdued-background-color-default); + --spectrum-alert-banner-min-height: var(--spectrum-alert-banner-minimum-height); --spectrum-alert-banner-max-inline-size: var(--spectrum-alert-banner-width); - --spectrum-alert-banner-size: auto; + --spectrum-alert-banner-inline-size: auto; + --spectrum-alert-banner-font-size: var(--spectrum-font-size-100); - --spectrum-alert-banner-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-alert-banner-line-height: var(--spectrum-line-height-100); + --spectrum-alert-banner-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-alert-banner-icon-size: var(--spectrum-workflow-icon-size-100); /* stylelint-disable-line spectrum-tools/no-unused-custom-properties -- used in passthrough */ /* spacing */ --spectrum-alert-banner-icon-to-text: var(--spectrum-text-to-visual-300); - --spectrum-alert-banner-start-edge: var(--spectrum-spacing-300); + --spectrum-alert-banner-inline-start-to-content: var(--spectrum-spacing-300); + --spectrum-alert-banner-inline-end-to-content: var(--spectrum-spacing-300); --spectrum-alert-banner-text-to-button-horizontal: var(--spectrum-spacing-300); - --spectrum-alert-banner-text-to-divider: var(--spectrum-spacing-300); - --spectrum-alert-banner-top-icon: var(--spectrum-alert-banner-top-to-workflow-icon); - --spectrum-alert-banner-top-text: var(--spectrum-alert-banner-top-to-text); - --spectrum-alert-banner-bottom-text: var(--spectrum-alert-banner-bottom-to-text); + --spectrum-alert-banner-block-edge-to-button: var(--spectrum-spacing-200); + --spectrum-alert-banner-close-button-to-content: var(--spectrum-spacing-300); /* stylelint-disable-line spectrum-tools/no-unused-custom-properties -- used in passthrough */ + --spectrum-alert-banner-close-button-to-inline-end: var(--spectrum-alert-banner-close-button-spacing); /* stylelint-disable-line spectrum-tools/no-unused-custom-properties -- used in passthrough */ + + /* Top and bottom margins for AlertBanner-text. Subtracts the vertical spacing that is already included in the + padding-block of its parent AlertBanner-body element. */ + --spectrum-alert-banner-text-margin-block-start: max(0px, var(--mod-alert-banner-top-to-text, var(--spectrum-alert-banner-top-to-text)) - var(--mod-alert-banner-block-edge-to-button, var(--spectrum-alert-banner-block-edge-to-button))); + --spectrum-alert-banner-text-margin-block-end: max(0px, var(--mod-alert-banner-bottom-to-text, var(--spectrum-alert-banner-bottom-to-text)) - var(--mod-alert-banner-block-edge-to-button, var(--spectrum-alert-banner-block-edge-to-button))); /* colors */ - --spectrum-alert-banner-informative-background: var(--spectrum-informative-background-color-default); - --spectrum-alert-banner-negative-background: var(--spectrum-negative-background-color-default); + --spectrum-alert-banner-background: var(--mod-alert-banner-neutral-background, var(--spectrum-neutral-subdued-background-color-default)); --spectrum-alert-banner-font-color: var(--spectrum-white); - /* settings for nested Divider */ - --mod-divider-vertical-margin: var(--mod-alert-banner-edge-to-divider, var(--spectrum-alert-banner-edge-to-divider)); - --mod-divider-vertical-height: auto; - --mod-divider-vertical-align: stretch; + /* @passthrough -- settings for nested Close button */ + --mod-closebutton-margin-inline: var(--mod-alert-banner-close-button-to-content, var(--spectrum-alert-banner-close-button-to-content)) var(--mod-alert-banner-close-button-to-inline-end, var(--spectrum-alert-banner-close-button-to-inline-end)); + --mod-closebutton-margin-top: var(--mod-alert-banner-top-to-close-button, var(--spectrum-alert-banner-block-edge-to-button)); + --mod-closebutton-align-self: flex-start; - /* settings for nested Button */ - --mod-button-margin-block: var(--mod-alert-banner-edge-to-button, var(--spectrum-alert-banner-edge-to-button)); - --mod-button-margin-right: var(--mod-alert-banner-text-to-divider, var(--spectrum-alert-banner-text-to-divider)); - --mod-button-margin-left: auto; + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-alert-banner-line-height: var(--spectrum-cjk-line-height-100); + } +} - /* settings for nested CloseButton */ - --mod-closebutton-margin-inline: var(--mod-alert-banner-close-button-spacing, var(--spectrum-alert-banner-close-button-spacing)); - --mod-closebutton-margin-top: var(--mod-alert-banner-close-button-spacing, var(--spectrum-alert-banner-close-button-spacing)); - --mod-closebutton-align-self: flex-start; +.spectrum-AlertBanner--info { + --spectrum-alert-banner-background: var(--mod-alert-banner-informative-background, var(--spectrum-informative-background-color-default)); +} + +.spectrum-AlertBanner--negative { + --spectrum-alert-banner-background: var(--mod-alert-banner-negative-background, var(--spectrum-negative-background-color-default)); +} +.spectrum-AlertBanner { display: none; justify-content: space-between; - inline-size: var(--mod-alert-banner-size, var(--spectrum-alert-banner-size)); + inline-size: var(--mod-alert-banner-inline-size, var(--spectrum-alert-banner-inline-size)); max-inline-size: var(--mod-alert-banner-max-inline-size, var(--spectrum-alert-banner-max-inline-size)); min-block-size: var(--mod-alert-banner-min-height, var(--spectrum-alert-banner-min-height)); font-size: var(--mod-alert-banner-font-size, var(--spectrum-alert-banner-font-size)); + font-family: var(--mod-alert-banner-font-family, var(--spectrum-alert-banner-font-family)); + line-height: var(--mod-alert-banner-line-height, var(--spectrum-alert-banner-line-height)); color: var(--mod-alert-banner-font-color, var(--spectrum-alert-banner-font-color)); - background-color: var(--mod-alert-banner-neutral-background, var(--spectrum-alert-banner-neutral-background)); + background: var(--mod-alert-banner-background, var(--spectrum-alert-banner-background)); border: var(--highcontrast-alert-banner-border-width, 0) solid var(--highcontrast-alert-banner-border-color, transparent); &.is-open { @@ -64,46 +79,47 @@ } } -.spectrum-AlertBanner--info { - background-color: var(--mod-alert-banner-informative-background, var(--spectrum-alert-banner-informative-background)); -} - -.spectrum-AlertBanner--negative { - background-color: var(--mod-alert-banner-negative-background, var(--spectrum-alert-banner-negative-background)); -} - .spectrum-AlertBanner-body { inline-size: 100%; display: flex; - - /* --mod-* for alert-banner-text-to-button-vertical will only accept values larger than alert-banner-edge-to-bottom, as gap only recognizes positive values */ - gap: max(calc(var(--mod-alert-banner-text-to-button-vertical, var(--spectrum-alert-banner-text-to-button-vertical)) - var(--mod-alert-banner-edge-to-button, var(--spectrum-alert-banner-edge-to-button))), 0px); flex-wrap: wrap; align-items: center; - margin-inline-start: var(--mod-alert-banner-start-edge, var(--spectrum-alert-banner-start-edge)); -} + justify-content: flex-end; -.spectrum-AlertBanner-content { - display: flex; + /* Inline spacing between text and button, only when the button has not wrapped to the next line. */ + column-gap: var(--mod-alert-banner-text-to-button-horizontal, var(--spectrum-alert-banner-text-to-button-horizontal)); + + /* Block spacing between text and button, when the button has wrapped to the next line. Takes into + account the existing margins on the text. */ + row-gap: max(var(--mod-alert-banner-text-to-button-vertical, 0px), var(--spectrum-alert-banner-text-to-button-vertical) - var(--spectrum-alert-banner-text-margin-block-end)); + + padding-block: var(--mod-alert-banner-block-edge-to-button, var(--spectrum-alert-banner-block-edge-to-button)); + margin-inline-start: var(--mod-alert-banner-inline-start-to-content, var(--spectrum-alert-banner-inline-start-to-content)); + margin-inline-end: var(--mod-alert-banner-inline-end-to-content, var(--spectrum-alert-banner-inline-end-to-content)); + + /* When dismissible, this spacing is handled by the margin-inline-start on the close button instead. */ + .spectrum-AlertBanner:has(.spectrum-CloseButton) & { + margin-inline-end: 0; + } } -.spectrum-AlertBanner-end { +.spectrum-AlertBanner-content { display: flex; - align-items: center; + flex-grow: 1; } .spectrum-AlertBanner-icon { - inline-size: var(--mod-alert-banner-icon-size, var(--spectrum-alert-banner-icon-size)); - block-size: var(--mod-alert-banner-icon-size, var(--spectrum-alert-banner-icon-size)); - margin-block-start: var(--mod-alert-banner-top-icon, var(--spectrum-alert-banner-top-icon)); + /* @passthrough -- icon-size */ + --mod-icon-size: var(--mod-alert-banner-icon-size, var(--spectrum-alert-banner-icon-size)); + + margin-block-start: calc(var(--mod-alert-banner-top-to-icon, var(--spectrum-alert-banner-top-to-workflow-icon)) - var(--mod-alert-banner-block-edge-to-button, var(--spectrum-alert-banner-block-edge-to-button))); margin-inline-end: var(--mod-alert-banner-icon-to-text, var(--spectrum-alert-banner-icon-to-text)); flex-shrink: 0; } .spectrum-AlertBanner-text { - margin-block-start: var(--mod-alert-banner-top-text, var(--spectrum-alert-banner-top-text)); - margin-block-end: var(--mod-alert-banner-bottom-text, var(--spectrum-alert-banner-bottom-text)); - margin-inline-end: var(--mod-alert-banner-text-to-button-horizontal, var(--spectrum-alert-banner-text-to-button-horizontal)); + margin-block-start: var(--mod-alert-banner-text-margin-block-start, var(--spectrum-alert-banner-text-margin-block-start)); + margin-block-end: var(--mod-alert-banner-text-margin-block-end, var(--spectrum-alert-banner-text-margin-block-end)); } @media (forced-colors: active) { diff --git a/components/alertbanner/package.json b/components/alertbanner/package.json index 7eea042ec51..9fe23db11e8 100644 --- a/components/alertbanner/package.json +++ b/components/alertbanner/package.json @@ -25,11 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", - "@spectrum-css/closebutton": ">=5", - "@spectrum-css/divider": ">=3", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14", + "@spectrum-css/closebutton": ">=6", + "@spectrum-css/divider": ">=5", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -41,11 +41,7 @@ "@spectrum-css/closebutton": "6.0.1", "@spectrum-css/divider": "5.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/alertbanner/stories/alertbanner.stories.js b/components/alertbanner/stories/alertbanner.stories.js index cd49c21a70e..b6d7f22dc69 100644 --- a/components/alertbanner/stories/alertbanner.stories.js +++ b/components/alertbanner/stories/alertbanner.stories.js @@ -76,6 +76,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = AlertBannerGroup.bind({}); diff --git a/components/alertbanner/stories/alertbanner.test.js b/components/alertbanner/stories/alertbanner.test.js index dee63d20c8d..a4440153b6b 100644 --- a/components/alertbanner/stories/alertbanner.test.js +++ b/components/alertbanner/stories/alertbanner.test.js @@ -1,8 +1,39 @@ -import { Variants } from "@spectrum-css/preview/decorators"; +import { Container, Variants } from "@spectrum-css/preview/decorators"; import { Template } from "./template.js"; +/** + * Examples of options for contextual action button and close button. + */ +export const AlertBannerVariantsTemplate = (args, context) => Container({ + withBorder: false, + direction: "column", + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, + content: [ + Template({ + ...args, + variant: "neutral", + text: "Alert banner message. Use a short phrase to describe what's happening.", + actionButtonText: "Action", + }, context), + Template({ + ...args, + variant: "info", + text: "Alert banner message. Use a short phrase to describe what's happening.", + actionButtonText: "Action", + }, context), + Template({ + ...args, + variant: "negative", + text: "Alert banner message. Use a short phrase to describe what's happening.", + actionButtonText: "Action", + }, context), + ], +}, context); + export const AlertBannerGroup = Variants({ - Template, + Template: AlertBannerVariantsTemplate, + TestTemplate: Template, stateDirection: "column", wrapperStyles: { "inline-size": "100%", diff --git a/components/alertbanner/stories/template.js b/components/alertbanner/stories/template.js index 3eb719c0612..ec0278583fd 100644 --- a/components/alertbanner/stories/template.js +++ b/components/alertbanner/stories/template.js @@ -1,6 +1,5 @@ import { Template as Button } from "@spectrum-css/button/stories/template.js"; import { Template as CloseButton } from "@spectrum-css/closebutton/stories/template.js"; -import { Template as Divider } from "@spectrum-css/divider/stories/template.js"; import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; import { Container, getRandomId } from "@spectrum-css/preview/decorators"; import { html } from "lit"; @@ -10,9 +9,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-AlertBanner", @@ -26,6 +22,12 @@ export const Template = ({ customClasses = [], customStyles = {}, } = {}, context = {}) => { + const { updateArgs } = context; + + const onclick = () => { + updateArgs({ isOpen: false }); + }; + return html` <div class=${classMap({ @@ -71,11 +73,6 @@ export const Template = ({ <div class=${classMap({ [`${rootClass}-end`]: true })}> - ${Divider({ - vertical: true, - size: "s", - tag: "div", - }, context)} ${CloseButton({ size: "m", staticColor: "white", @@ -118,62 +115,62 @@ export const TextOverflowTemplate = (args) => html` export const ActionableOptionsTemplate = (args, context) => Container({ withBorder: false, direction: "column", - containerStyles: { alignItems: "stretch" }, - wrapperStyles: { alignItems: "stretch" }, - content: html` - ${Container({ + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, + content: [ + Container({ withBorder: false, direction: "column", heading: "Action button and close button", - containerStyles: { alignItems: "stretch" }, - wrapperStyles: { alignItems: "stretch" }, + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, content: Template({ - ...args, - variant: "neutral", - text: "Your trial has expired", - actionButtonText: "Buy now", + ...args, + variant: "neutral", + text: "Your trial has expired", + actionButtonText: "Buy now", }, context), - }, context)} - ${Container({ + }, context), + Container({ withBorder: false, direction: "column", heading: "Action button only", - containerStyles: { alignItems: "stretch" }, - wrapperStyles: { alignItems: "stretch" }, + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, content: Template({ - ...args, - variant: "neutral", - text: "Your trial has expired", - actionButtonText: "Buy now", - showCloseButton: false, + ...args, + variant: "neutral", + text: "Your trial has expired", + actionButtonText: "Buy now", + showCloseButton: false, }, context), - }, context)} - ${Container({ + }, context), + Container({ withBorder: false, direction: "column", heading: "Close button only", - containerStyles: { alignItems: "stretch" }, - wrapperStyles: { alignItems: "stretch" }, + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, content: Template({ ...args, variant: "neutral", text: "Your trial has expired", actionButtonText: "", }), - }, context)} - ${Container({ + }, context), + Container({ withBorder: false, direction: "column", heading: "Text only", - containerStyles: { alignItems: "stretch" }, - wrapperStyles: { alignItems: "stretch" }, + containerStyles: { "align-items": "stretch" }, + wrapperStyles: { "align-items": "stretch" }, content: Template({ - ...args, - variant: "neutral", - text: "Your trial has expired", - actionButtonText: "", - showCloseButton: false, + ...args, + variant: "neutral", + text: "Your trial has expired", + actionButtonText: "", + showCloseButton: false, }, context), - }, context)} - `, + }, context), + ], }, context); diff --git a/components/alertbanner/themes/express.css b/components/alertbanner/themes/express.css deleted file mode 100644 index a86424d5e4b..00000000000 --- a/components/alertbanner/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-AlertBanner { - --spectrum-alert-banner-neutral-background: var(--spectrum-neutral-background-color-default); - } -} diff --git a/components/alertbanner/themes/spectrum-two.css b/components/alertbanner/themes/spectrum-two.css deleted file mode 100644 index 3e038dbd7a4..00000000000 --- a/components/alertbanner/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-AlertBanner { - --spectrum-alert-banner-neutral-background: var(--spectrum-neutral-subdued-background-color-default); - } -} diff --git a/components/alertbanner/themes/spectrum.css b/components/alertbanner/themes/spectrum.css deleted file mode 100644 index 1bd05c8e88f..00000000000 --- a/components/alertbanner/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: spectrum) { - .spectrum-AlertBanner { - --spectrum-alert-banner-neutral-background: var(--spectrum-neutral-subdued-background-color-default); - } -} diff --git a/components/alertdialog/CHANGELOG.md b/components/alertdialog/CHANGELOG.md index 7a4d4bc9274..0bec5f30bcb 100644 --- a/components/alertdialog/CHANGELOG.md +++ b/components/alertdialog/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.1.1-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/buttongroup@7.0.0-next.4 + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/modal@5.1.1-next.0 + - @spectrum-css/underlay@4.1.1-next.0 + ## 4.0.1 ### Patch Changes @@ -179,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.4...@spectrum-css/alertdialog@2.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.4...@spectrum-css/alertdialog@2.0.0) ### ✨ Features @@ -188,11 +197,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -200,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.3...@spectrum-css/alertdialog@1.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.3...@spectrum-css/alertdialog@1.2.4) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -209,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.2...@spectrum-css/alertdialog@1.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.2...@spectrum-css/alertdialog@1.2.3) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -218,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.1...@spectrum-css/alertdialog@1.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.2.1...@spectrum-css/alertdialog@1.2.2) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -227,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/alertdialog @@ -236,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.1.0...@spectrum-css/alertdialog@1.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.1.0...@spectrum-css/alertdialog@1.2.0) ### ✨ Features @@ -247,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.16...@spectrum-css/alertdialog@1.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.16...@spectrum-css/alertdialog@1.1.0) ### ✨ Features @@ -258,8 +259,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.16 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.15...@spectrum-css/alertdialog@1.0.16) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.15...@spectrum-css/alertdialog@1.0.16) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -267,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.15 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.14...@spectrum-css/alertdialog@1.0.15) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.14...@spectrum-css/alertdialog@1.0.15) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -276,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.14 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.12...@spectrum-css/alertdialog@1.0.14) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.12...@spectrum-css/alertdialog@1.0.14) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -285,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.13 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.12...@spectrum-css/alertdialog@1.0.13) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.12...@spectrum-css/alertdialog@1.0.13) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -294,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.12 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.11...@spectrum-css/alertdialog@1.0.12) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.11...@spectrum-css/alertdialog@1.0.12) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -303,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.11 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.10...@spectrum-css/alertdialog@1.0.11) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.10...@spectrum-css/alertdialog@1.0.11) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -312,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.10 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.9...@spectrum-css/alertdialog@1.0.10) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.9...@spectrum-css/alertdialog@1.0.10) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -321,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.9 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.8...@spectrum-css/alertdialog@1.0.9) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.8...@spectrum-css/alertdialog@1.0.9) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -330,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.8 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.7...@spectrum-css/alertdialog@1.0.8) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.7...@spectrum-css/alertdialog@1.0.8) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -339,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.7 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.6...@spectrum-css/alertdialog@1.0.7) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.6...@spectrum-css/alertdialog@1.0.7) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -348,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.6 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.5...@spectrum-css/alertdialog@1.0.6) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.5...@spectrum-css/alertdialog@1.0.6) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -357,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.5 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.4...@spectrum-css/alertdialog@1.0.5) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.4...@spectrum-css/alertdialog@1.0.5) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -366,8 +355,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.4 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.3...@spectrum-css/alertdialog@1.0.4) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.3...@spectrum-css/alertdialog@1.0.4) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -375,8 +363,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.2...@spectrum-css/alertdialog@1.0.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.2...@spectrum-css/alertdialog@1.0.3) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -384,8 +371,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.2 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.1...@spectrum-css/alertdialog@1.0.2) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.1...@spectrum-css/alertdialog@1.0.2) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -393,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.1 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.0...@spectrum-css/alertdialog@1.0.1) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/alertdialog@1.0.0...@spectrum-css/alertdialog@1.0.1) **Note:** Version bump only for package @spectrum-css/alertdialog @@ -402,13 +387,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.0 -🗓 -2023-08-22 +🗓 2023-08-22 \*feat(alertdialog)!: new component([d6b7286](https://github.com/adobe/spectrum-css/commit/d6b7286)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * new alert dialog component added diff --git a/components/alertdialog/dist/metadata.json b/components/alertdialog/dist/metadata.json index 03bf62123f2..4e34b0e5fb8 100644 --- a/components/alertdialog/dist/metadata.json +++ b/components/alertdialog/dist/metadata.json @@ -78,7 +78,6 @@ "--spectrum-spacing-300", "--spectrum-workflow-icon-size-100" ], - "system-theme": [], "passthroughs": ["--mod-buttongroup-justify-content", "--mod-icon-color"], "high-contrast": [] } diff --git a/components/alertdialog/index.css b/components/alertdialog/index.css index 14e6e555f2c..32f5367d1ca 100644 --- a/components/alertdialog/index.css +++ b/components/alertdialog/index.css @@ -40,7 +40,7 @@ --spectrum-alert-dialog-divider-to-description: var(--spectrum-spacing-300); --spectrum-alert-dialog-title-to-icon: var(--spectrum-spacing-300); - /* mods for nested component */ + /* @passthrough -- mods for nested component */ --mod-buttongroup-justify-content: flex-end; } diff --git a/components/alertdialog/package.json b/components/alertdialog/package.json index 37cd803e644..4108512bb35 100644 --- a/components/alertdialog/package.json +++ b/components/alertdialog/package.json @@ -25,12 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/buttongroup": ">=7", - "@spectrum-css/divider": ">=3", - "@spectrum-css/icon": ">=7", - "@spectrum-css/modal": ">=5", - "@spectrum-css/tokens": ">=14 || >=15", - "@spectrum-css/underlay": ">=4" + "@spectrum-css/buttongroup": ">=9", + "@spectrum-css/divider": ">=5", + "@spectrum-css/icon": ">=9", + "@spectrum-css/modal": ">=7", + "@spectrum-css/tokens": ">=16", + "@spectrum-css/underlay": ">=6" }, "peerDependenciesMeta": { "@spectrum-css/buttongroup": { @@ -46,11 +46,7 @@ "@spectrum-css/icon": "9.0.1", "@spectrum-css/modal": "7.0.1", "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/underlay": "6.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/underlay": "6.0.1" }, "keywords": [ "design-system", diff --git a/components/alertdialog/stories/alertdialog.stories.js b/components/alertdialog/stories/alertdialog.stories.js index 87c83d18ff9..6f647f0e1ea 100644 --- a/components/alertdialog/stories/alertdialog.stories.js +++ b/components/alertdialog/stories/alertdialog.stories.js @@ -117,6 +117,11 @@ Information.args = { content: "If you enjoy our app, would you mind taking a moment to rate it?", }; Information.parameters = { + docs: { + story: { + height: "400px", + } + }, chromatic: { disableSnapshot: true }, }; diff --git a/components/asset/CHANGELOG.md b/components/asset/CHANGELOG.md index cd4ca322b7f..c2e57b7e960 100644 --- a/components/asset/CHANGELOG.md +++ b/components/asset/CHANGELOG.md @@ -122,16 +122,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@4.0.0...@spectrum-css/asset@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@4.0.0...@spectrum-css/asset@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,13 +136,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.1.2...@spectrum-css/asset@4.0.0) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.1.2...@spectrum-css/asset@4.0.0) \*refactor(asset)!: migrate to tokens package (#2553)([03f693b](https://github.com/adobe/spectrum-css/commit/03f693b)), closes[#2553](https://github.com/adobe/spectrum-css/issues/2553) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates to use spectrum-tokens @@ -157,8 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.1.1...@spectrum-css/asset@3.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.1.1...@spectrum-css/asset@3.1.2) **Note:** Version bump only for package @spectrum-css/asset @@ -166,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/asset @@ -175,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.52...@spectrum-css/asset@3.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.52...@spectrum-css/asset@3.1.0) ### ✨ Features @@ -186,8 +178,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.52 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.51...@spectrum-css/asset@3.0.52) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.51...@spectrum-css/asset@3.0.52) ### 🐛 Bug fixes @@ -197,8 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.51 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.50...@spectrum-css/asset@3.0.51) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.50...@spectrum-css/asset@3.0.51) **Note:** Version bump only for package @spectrum-css/asset @@ -206,8 +196,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.50 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.48...@spectrum-css/asset@3.0.50) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.48...@spectrum-css/asset@3.0.50) ### 🔙 Reverts @@ -217,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.49 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.48...@spectrum-css/asset@3.0.49) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.48...@spectrum-css/asset@3.0.49) ### 🔙 Reverts @@ -228,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.48 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.47...@spectrum-css/asset@3.0.48) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.47...@spectrum-css/asset@3.0.48) **Note:** Version bump only for package @spectrum-css/asset @@ -237,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.47 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.46...@spectrum-css/asset@3.0.47) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.46...@spectrum-css/asset@3.0.47) **Note:** Version bump only for package @spectrum-css/asset @@ -246,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.46 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.45...@spectrum-css/asset@3.0.46) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.45...@spectrum-css/asset@3.0.46) **Note:** Version bump only for package @spectrum-css/asset @@ -255,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.45 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.44...@spectrum-css/asset@3.0.45) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.44...@spectrum-css/asset@3.0.45) **Note:** Version bump only for package @spectrum-css/asset @@ -264,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.44 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.43...@spectrum-css/asset@3.0.44) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.43...@spectrum-css/asset@3.0.44) ### 🐛 Bug fixes @@ -275,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.43 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.42...@spectrum-css/asset@3.0.43) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.42...@spectrum-css/asset@3.0.43) **Note:** Version bump only for package @spectrum-css/asset @@ -284,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.42 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.41...@spectrum-css/asset@3.0.42) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/asset@3.0.41...@spectrum-css/asset@3.0.42) **Note:** Version bump only for package @spectrum-css/asset diff --git a/components/asset/dist/metadata.json b/components/asset/dist/metadata.json index 306c123b1b6..6389e295f47 100644 --- a/components/asset/dist/metadata.json +++ b/components/asset/dist/metadata.json @@ -20,12 +20,9 @@ ], "component": [ "--spectrum-asset-file-background", - "--spectrum-asset-file-background-color", "--spectrum-asset-file-outline", "--spectrum-asset-folder-background", - "--spectrum-asset-folder-background-color", - "--spectrum-asset-folder-outline", - "--spectrum-asset-icon-outline-color" + "--spectrum-asset-folder-outline" ], "global": [ "--spectrum-animation-duration-100", @@ -33,11 +30,6 @@ "--spectrum-gray-25", "--spectrum-gray-500" ], - "system-theme": [ - "--system-asset-file-background-color", - "--system-asset-folder-background-color", - "--system-asset-icon-outline-color" - ], "passthroughs": [], "high-contrast": ["--highcontrast-asset-icon-background-color"] } diff --git a/components/asset/index.css b/components/asset/index.css index abf5d42572f..e31f6aea3a7 100644 --- a/components/asset/index.css +++ b/components/asset/index.css @@ -11,13 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Asset { - --spectrum-asset-folder-background: var(--highcontrast-asset-icon-background-color, var(--mod-asset-folder-background-color, var(--spectrum-asset-folder-background-color))); - --spectrum-asset-file-background: var(--highcontrast-asset-icon-background-color, var(--mod-asset-file-background-color, var(--spectrum-asset-file-background-color))); - --spectrum-asset-folder-outline: var(--mod-asset-icon-outline-color, var(--spectrum-asset-icon-outline-color)); - --spectrum-asset-file-outline: var(--mod-asset-icon-outline-color, var(--spectrum-asset-icon-outline-color)); + --spectrum-asset-folder-background: var(--highcontrast-asset-icon-background-color, var(--mod-asset-folder-background-color, var(--spectrum-gray-200))); + --spectrum-asset-file-background: var(--highcontrast-asset-icon-background-color, var(--mod-asset-file-background-color, var(--spectrum-gray-25))); + --spectrum-asset-folder-outline: var(--mod-asset-icon-outline-color, var(--spectrum-gray-500)); + --spectrum-asset-file-outline: var(--mod-asset-icon-outline-color, var(--spectrum-gray-500)); display: flex; align-items: center; diff --git a/components/asset/package.json b/components/asset/package.json index a6201a33a60..de8149ee033 100644 --- a/components/asset/package.json +++ b/components/asset/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/asset/stories/template.js b/components/asset/stories/template.js index c32f792cd49..795c346c508 100644 --- a/components/asset/stories/template.js +++ b/components/asset/stories/template.js @@ -5,9 +5,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Asset", diff --git a/components/asset/themes/express.css b/components/asset/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/asset/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/asset/themes/spectrum-two.css b/components/asset/themes/spectrum-two.css deleted file mode 100644 index 5eda732011b..00000000000 --- a/components/asset/themes/spectrum-two.css +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Asset { - --spectrum-asset-folder-background-color: var(--spectrum-gray-200); - --spectrum-asset-file-background-color: var(--spectrum-gray-25); - --spectrum-asset-icon-outline-color: var(--spectrum-gray-500); - } -} diff --git a/components/asset/themes/spectrum.css b/components/asset/themes/spectrum.css deleted file mode 100644 index 8b2b12ee379..00000000000 --- a/components/asset/themes/spectrum.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Asset { - --spectrum-asset-folder-background-color: var(--spectrum-gray-300); - --spectrum-asset-file-background-color: var(--spectrum-gray-50); - --spectrum-asset-icon-outline-color: var(--spectrum-gray-500); - } -} diff --git a/components/assetcard/CHANGELOG.md b/components/assetcard/CHANGELOG.md index 45e5d7d6432..dab8826d2c7 100644 --- a/components/assetcard/CHANGELOG.md +++ b/components/assetcard/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 4.2.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`6b41b50`](https://github.com/adobe/spectrum-css/commit/6b41b501768da3db70ae00f6097646583f8fbd01) Thanks [@pfulton](https://github.com/pfulton)! - Restores missing custom properties that were flagged by the linter. The missing properties were copied from the spectrum two theme files in the foundations branch. This clears up all linter errors and warnings for these components. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 5.0.1 ### Patch Changes @@ -144,8 +153,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.4...@spectrum-css/assetcard@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.4...@spectrum-css/assetcard@4.0.0) ### ✨ Features @@ -165,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.3...@spectrum-css/assetcard@3.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.3...@spectrum-css/assetcard@3.1.4) **Note:** Version bump only for package @spectrum-css/assetcard @@ -174,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.2...@spectrum-css/assetcard@3.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.2...@spectrum-css/assetcard@3.1.3) **Note:** Version bump only for package @spectrum-css/assetcard @@ -183,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.1...@spectrum-css/assetcard@3.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.1.1...@spectrum-css/assetcard@3.1.2) **Note:** Version bump only for package @spectrum-css/assetcard @@ -192,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/assetcard @@ -201,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.5...@spectrum-css/assetcard@3.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.5...@spectrum-css/assetcard@3.1.0) **Note:** Version bump only for package @spectrum-css/assetcard @@ -210,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.5 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.4...@spectrum-css/assetcard@3.0.5) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.4...@spectrum-css/assetcard@3.0.5) **Note:** Version bump only for package @spectrum-css/assetcard @@ -219,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.3...@spectrum-css/assetcard@3.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.3...@spectrum-css/assetcard@3.0.4) **Note:** Version bump only for package @spectrum-css/assetcard @@ -228,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.2...@spectrum-css/assetcard@3.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.2...@spectrum-css/assetcard@3.0.3) **Note:** Version bump only for package @spectrum-css/assetcard @@ -237,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.0...@spectrum-css/assetcard@3.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.0...@spectrum-css/assetcard@3.0.2) **Note:** Version bump only for package @spectrum-css/assetcard @@ -246,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.0...@spectrum-css/assetcard@3.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@3.0.0...@spectrum-css/assetcard@3.0.1) **Note:** Version bump only for package @spectrum-css/assetcard @@ -255,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.13...@spectrum-css/assetcard@3.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.13...@spectrum-css/assetcard@3.0.0) \*refactor(assetcard)!: token migration (#2229)([a0cf37b](https://github.com/adobe/spectrum-css/commit/a0cf37b)), closes[#2229](https://github.com/adobe/spectrum-css/issues/2229) @@ -270,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.13 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.12...@spectrum-css/assetcard@2.0.13) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.12...@spectrum-css/assetcard@2.0.13) **Note:** Version bump only for package @spectrum-css/assetcard @@ -279,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.12 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.11...@spectrum-css/assetcard@2.0.12) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.11...@spectrum-css/assetcard@2.0.12) **Note:** Version bump only for package @spectrum-css/assetcard @@ -288,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.11 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.10...@spectrum-css/assetcard@2.0.11) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.10...@spectrum-css/assetcard@2.0.11) **Note:** Version bump only for package @spectrum-css/assetcard @@ -297,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.10 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.9...@spectrum-css/assetcard@2.0.10) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.9...@spectrum-css/assetcard@2.0.10) **Note:** Version bump only for package @spectrum-css/assetcard @@ -306,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.9 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.8...@spectrum-css/assetcard@2.0.9) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.8...@spectrum-css/assetcard@2.0.9) **Note:** Version bump only for package @spectrum-css/assetcard @@ -315,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.8 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.7...@spectrum-css/assetcard@2.0.8) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.7...@spectrum-css/assetcard@2.0.8) **Note:** Version bump only for package @spectrum-css/assetcard @@ -324,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.7 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.6...@spectrum-css/assetcard@2.0.7) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.6...@spectrum-css/assetcard@2.0.7) **Note:** Version bump only for package @spectrum-css/assetcard @@ -333,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.5...@spectrum-css/assetcard@2.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.5...@spectrum-css/assetcard@2.0.6) **Note:** Version bump only for package @spectrum-css/assetcard @@ -342,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.4...@spectrum-css/assetcard@2.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.4...@spectrum-css/assetcard@2.0.5) **Note:** Version bump only for package @spectrum-css/assetcard @@ -351,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.3...@spectrum-css/assetcard@2.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.3...@spectrum-css/assetcard@2.0.4) ### 🔙 Reverts @@ -362,8 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.2...@spectrum-css/assetcard@2.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.2...@spectrum-css/assetcard@2.0.3) **Note:** Version bump only for package @spectrum-css/assetcard @@ -371,8 +357,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.0...@spectrum-css/assetcard@2.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.0...@spectrum-css/assetcard@2.0.2) **Note:** Version bump only for package @spectrum-css/assetcard @@ -380,8 +365,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.0...@spectrum-css/assetcard@2.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@2.0.0...@spectrum-css/assetcard@2.0.1) **Note:** Version bump only for package @spectrum-css/assetcard @@ -389,8 +373,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.52...@spectrum-css/assetcard@2.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.52...@spectrum-css/assetcard@2.0.0) \*refactor(assetcard)!: replace focus-ring with focus-visible([1c6a3e9](https://github.com/adobe/spectrum-css/commit/1c6a3e9)) @@ -404,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.52 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.51...@spectrum-css/assetcard@1.1.52) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.51...@spectrum-css/assetcard@1.1.52) **Note:** Version bump only for package @spectrum-css/assetcard @@ -413,8 +395,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.51 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.50...@spectrum-css/assetcard@1.1.51) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.50...@spectrum-css/assetcard@1.1.51) **Note:** Version bump only for package @spectrum-css/assetcard @@ -422,8 +403,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.50 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.49...@spectrum-css/assetcard@1.1.50) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.49...@spectrum-css/assetcard@1.1.50) **Note:** Version bump only for package @spectrum-css/assetcard @@ -431,8 +411,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.49 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.48...@spectrum-css/assetcard@1.1.49) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.48...@spectrum-css/assetcard@1.1.49) **Note:** Version bump only for package @spectrum-css/assetcard @@ -440,8 +419,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.48 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.47...@spectrum-css/assetcard@1.1.48) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.47...@spectrum-css/assetcard@1.1.48) **Note:** Version bump only for package @spectrum-css/assetcard @@ -449,8 +427,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.47 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.46...@spectrum-css/assetcard@1.1.47) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.46...@spectrum-css/assetcard@1.1.47) **Note:** Version bump only for package @spectrum-css/assetcard @@ -458,8 +435,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.46 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.45...@spectrum-css/assetcard@1.1.46) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.45...@spectrum-css/assetcard@1.1.46) **Note:** Version bump only for package @spectrum-css/assetcard @@ -467,8 +443,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.45 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.44...@spectrum-css/assetcard@1.1.45) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.44...@spectrum-css/assetcard@1.1.45) **Note:** Version bump only for package @spectrum-css/assetcard @@ -476,8 +451,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.44 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.43...@spectrum-css/assetcard@1.1.44) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.43...@spectrum-css/assetcard@1.1.44) **Note:** Version bump only for package @spectrum-css/assetcard @@ -485,8 +459,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.43 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.42...@spectrum-css/assetcard@1.1.43) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.42...@spectrum-css/assetcard@1.1.43) **Note:** Version bump only for package @spectrum-css/assetcard @@ -494,8 +467,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.42 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.41...@spectrum-css/assetcard@1.1.42) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.41...@spectrum-css/assetcard@1.1.42) **Note:** Version bump only for package @spectrum-css/assetcard @@ -503,8 +475,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.41 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.40...@spectrum-css/assetcard@1.1.41) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.40...@spectrum-css/assetcard@1.1.41) ### 🐛 Bug fixes @@ -514,8 +485,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.40 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.39...@spectrum-css/assetcard@1.1.40) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.39...@spectrum-css/assetcard@1.1.40) **Note:** Version bump only for package @spectrum-css/assetcard @@ -523,8 +493,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.39 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.38...@spectrum-css/assetcard@1.1.39) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetcard@1.1.38...@spectrum-css/assetcard@1.1.39) **Note:** Version bump only for package @spectrum-css/assetcard diff --git a/components/assetcard/dist/metadata.json b/components/assetcard/dist/metadata.json index 1c86dc47523..94bf07de0af 100644 --- a/components/assetcard/dist/metadata.json +++ b/components/assetcard/dist/metadata.json @@ -176,12 +176,6 @@ "--spectrum-transparent-black-300", "--spectrum-white" ], - "system-theme": [ - "--system-asset-card-background-color", - "--system-asset-card-overlay-background-color", - "--system-asset-card-selectionindicator-background-color-default", - "--system-asset-card-selectionindicator-box-shadow-color" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-assectcard-border-color-selected-down", diff --git a/components/assetcard/index.css b/components/assetcard/index.css index 26881a3f45f..7b9ee81e647 100644 --- a/components/assetcard/index.css +++ b/components/assetcard/index.css @@ -11,12 +11,17 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - /* outer container, unstyled */ .spectrum-AssetCard { + --spectrum-assetcard-overlay-background-color: rgba(27 127 245 / 10%); + --spectrum-assetcard-background-color: var(--spectrum-gray-75); + --spectrum-assetcard-selectionindicator-background-color-default: rgba(var(--spectrum-gray-75-rgb), 0.9); + --spectrum-assetcard-selectionindicator-box-shadow-color: var(--spectrum-transparent-black-300); + /* todo: this isn't quite the size from the XD file as 232px is not a size token, so we use 224px */ --spectrum-assetcard-asset-size: 224px; + --spectrum-assetcard-background-color: var(--spectrum-gray-75); + --spectrum-assetcard-overlay-background-color: rgba(27 127 245 / 10%); --spectrum-assetcard-asset-animation-duration: var(--spectrum-animation-duration-100); --spectrum-assetcard-asset-container-border-size: 1px; --spectrum-assetcard-header-margin-block-start: var(--spectrum-spacing-300); @@ -37,6 +42,8 @@ --spectrum-assetcard-selectionindicator-color: var(--spectrum-white); --spectrum-assetcard-selectionindicator-font-weight: var(--spectrum-bold-font-weight); --spectrum-assetcard-selectionindicator-font-size: var(--spectrum-font-size-400); + --spectrum-assetcard-selectionindicator-background-color-default: rgba(var(--spectrum-gray-75-rgb), 0.9); + --spectrum-assetcard-selectionindicator-box-shadow-color: var(--spectrum-transparent-black-300); /* title */ --spectrum-assetcard-title-text-color: var(--spectrum-gray-900); diff --git a/components/assetcard/package.json b/components/assetcard/package.json index c549034f0f3..c0d2d38f7ce 100644 --- a/components/assetcard/package.json +++ b/components/assetcard/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/checkbox": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/checkbox": "10.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/assetcard/stories/template.js b/components/assetcard/stories/template.js index 864fcd951b7..1b44be4e568 100644 --- a/components/assetcard/stories/template.js +++ b/components/assetcard/stories/template.js @@ -8,9 +8,6 @@ import { when } from "lit/directives/when.js"; import { camelCase } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-AssetCard", diff --git a/components/assetcard/themes/express.css b/components/assetcard/themes/express.css deleted file mode 100644 index 63115538f15..00000000000 --- a/components/assetcard/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: rgba(109 115 246 / 20%); - } -} diff --git a/components/assetcard/themes/spectrum-two.css b/components/assetcard/themes/spectrum-two.css deleted file mode 100644 index f38045fb758..00000000000 --- a/components/assetcard/themes/spectrum-two.css +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: rgba(27 127 245 / 10%); - --spectrum-assetcard-background-color: var(--spectrum-gray-75); - --spectrum-assetcard-selectionindicator-background-color-default: rgba(var(--spectrum-gray-75-rgb), 0.9); - --spectrum-assetcard-selectionindicator-box-shadow-color: var(--spectrum-transparent-black-300); - } -} diff --git a/components/assetcard/themes/spectrum.css b/components/assetcard/themes/spectrum.css deleted file mode 100644 index c3e7ef9e0a8..00000000000 --- a/components/assetcard/themes/spectrum.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: rgba(27 127 245 / 10%); - --spectrum-assetcard-background-color: var(--spectrum-gray-200); - --spectrum-assetcard-selectionindicator-background-color-default: rgba(var(--spectrum-gray-100-rgb), 0.9); - --spectrum-assetcard-selectionindicator-box-shadow-color: var(--spectrum-transparent-black-200); - } -} diff --git a/components/assetlist/CHANGELOG.md b/components/assetlist/CHANGELOG.md index 2e5713c2fbc..dbe69c4de91 100644 --- a/components/assetlist/CHANGELOG.md +++ b/components/assetlist/CHANGELOG.md @@ -169,8 +169,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.4...@spectrum-css/assetlist@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.4...@spectrum-css/assetlist@6.0.0) ### ✨ Features @@ -190,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.3...@spectrum-css/assetlist@5.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.3...@spectrum-css/assetlist@5.2.4) **Note:** Version bump only for package @spectrum-css/assetlist @@ -199,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.2...@spectrum-css/assetlist@5.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.2...@spectrum-css/assetlist@5.2.3) **Note:** Version bump only for package @spectrum-css/assetlist @@ -208,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.1...@spectrum-css/assetlist@5.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.2.1...@spectrum-css/assetlist@5.2.2) **Note:** Version bump only for package @spectrum-css/assetlist @@ -217,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/assetlist @@ -226,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.1.1...@spectrum-css/assetlist@5.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.1.1...@spectrum-css/assetlist@5.2.0) **Note:** Version bump only for package @spectrum-css/assetlist @@ -235,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.1.0...@spectrum-css/assetlist@5.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.1.0...@spectrum-css/assetlist@5.1.1) ### 🐛 Bug fixes @@ -246,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.4...@spectrum-css/assetlist@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.4...@spectrum-css/assetlist@5.1.0) ### ✨ Features @@ -257,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.3...@spectrum-css/assetlist@5.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.3...@spectrum-css/assetlist@5.0.4) **Note:** Version bump only for package @spectrum-css/assetlist @@ -266,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.2...@spectrum-css/assetlist@5.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.2...@spectrum-css/assetlist@5.0.3) **Note:** Version bump only for package @spectrum-css/assetlist @@ -275,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.0...@spectrum-css/assetlist@5.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.0...@spectrum-css/assetlist@5.0.2) **Note:** Version bump only for package @spectrum-css/assetlist @@ -284,8 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.0...@spectrum-css/assetlist@5.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@5.0.0...@spectrum-css/assetlist@5.0.1) **Note:** Version bump only for package @spectrum-css/assetlist @@ -293,8 +281,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@4.0.0...@spectrum-css/assetlist@5.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@4.0.0...@spectrum-css/assetlist@5.0.0) \*refactor(assetlist)!: migrate to spectrum tokens (#2211)([32149e5](https://github.com/adobe/spectrum-css/commit/32149e5)), closes[#2211](https://github.com/adobe/spectrum-css/issues/2211) @@ -342,8 +329,7 @@ Additionally: ## 4.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.85...@spectrum-css/assetlist@4.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.85...@spectrum-css/assetlist@4.0.0) \*feat(millercolumns)!: migrate to spectrum-tokens (#2191)([aa163d2](https://github.com/adobe/spectrum-css/commit/aa163d2)), closes[#2191](https://github.com/adobe/spectrum-css/issues/2191) @@ -366,8 +352,7 @@ Additionally: ## 3.0.85 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.84...@spectrum-css/assetlist@3.0.85) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.84...@spectrum-css/assetlist@3.0.85) **Note:** Version bump only for package @spectrum-css/assetlist @@ -375,8 +360,7 @@ Additionally: ## 3.0.84 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.83...@spectrum-css/assetlist@3.0.84) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.83...@spectrum-css/assetlist@3.0.84) **Note:** Version bump only for package @spectrum-css/assetlist @@ -384,8 +368,7 @@ Additionally: ## 3.0.83 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.82...@spectrum-css/assetlist@3.0.83) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.82...@spectrum-css/assetlist@3.0.83) **Note:** Version bump only for package @spectrum-css/assetlist @@ -393,8 +376,7 @@ Additionally: ## 3.0.82 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.81...@spectrum-css/assetlist@3.0.82) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.81...@spectrum-css/assetlist@3.0.82) **Note:** Version bump only for package @spectrum-css/assetlist @@ -402,8 +384,7 @@ Additionally: ## 3.0.81 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.80...@spectrum-css/assetlist@3.0.81) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.80...@spectrum-css/assetlist@3.0.81) **Note:** Version bump only for package @spectrum-css/assetlist @@ -411,8 +392,7 @@ Additionally: ## 3.0.80 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.79...@spectrum-css/assetlist@3.0.80) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.79...@spectrum-css/assetlist@3.0.80) **Note:** Version bump only for package @spectrum-css/assetlist @@ -420,8 +400,7 @@ Additionally: ## 3.0.79 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.78...@spectrum-css/assetlist@3.0.79) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.78...@spectrum-css/assetlist@3.0.79) **Note:** Version bump only for package @spectrum-css/assetlist @@ -429,8 +408,7 @@ Additionally: ## 3.0.78 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.77...@spectrum-css/assetlist@3.0.78) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.77...@spectrum-css/assetlist@3.0.78) **Note:** Version bump only for package @spectrum-css/assetlist @@ -438,8 +416,7 @@ Additionally: ## 3.0.77 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.76...@spectrum-css/assetlist@3.0.77) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.76...@spectrum-css/assetlist@3.0.77) ### 🔙 Reverts @@ -449,8 +426,7 @@ Additionally: ## 3.0.76 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.75...@spectrum-css/assetlist@3.0.76) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.75...@spectrum-css/assetlist@3.0.76) **Note:** Version bump only for package @spectrum-css/assetlist @@ -458,8 +434,7 @@ Additionally: ## 3.0.75 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.73...@spectrum-css/assetlist@3.0.75) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.73...@spectrum-css/assetlist@3.0.75) **Note:** Version bump only for package @spectrum-css/assetlist @@ -467,8 +442,7 @@ Additionally: ## 3.0.74 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.73...@spectrum-css/assetlist@3.0.74) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.73...@spectrum-css/assetlist@3.0.74) **Note:** Version bump only for package @spectrum-css/assetlist @@ -476,8 +450,7 @@ Additionally: ## 3.0.73 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.72...@spectrum-css/assetlist@3.0.73) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.72...@spectrum-css/assetlist@3.0.73) **Note:** Version bump only for package @spectrum-css/assetlist @@ -485,8 +458,7 @@ Additionally: ## 3.0.72 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.71...@spectrum-css/assetlist@3.0.72) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.71...@spectrum-css/assetlist@3.0.72) **Note:** Version bump only for package @spectrum-css/assetlist @@ -494,8 +466,7 @@ Additionally: ## 3.0.71 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.70...@spectrum-css/assetlist@3.0.71) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.70...@spectrum-css/assetlist@3.0.71) **Note:** Version bump only for package @spectrum-css/assetlist @@ -503,8 +474,7 @@ Additionally: ## 3.0.70 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.69...@spectrum-css/assetlist@3.0.70) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.69...@spectrum-css/assetlist@3.0.70) **Note:** Version bump only for package @spectrum-css/assetlist @@ -512,8 +482,7 @@ Additionally: ## 3.0.69 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.68...@spectrum-css/assetlist@3.0.69) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.68...@spectrum-css/assetlist@3.0.69) **Note:** Version bump only for package @spectrum-css/assetlist @@ -521,8 +490,7 @@ Additionally: ## 3.0.68 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.67...@spectrum-css/assetlist@3.0.68) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.67...@spectrum-css/assetlist@3.0.68) **Note:** Version bump only for package @spectrum-css/assetlist @@ -530,8 +498,7 @@ Additionally: ## 3.0.67 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.66...@spectrum-css/assetlist@3.0.67) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.66...@spectrum-css/assetlist@3.0.67) **Note:** Version bump only for package @spectrum-css/assetlist @@ -539,8 +506,7 @@ Additionally: ## 3.0.66 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.65...@spectrum-css/assetlist@3.0.66) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.65...@spectrum-css/assetlist@3.0.66) **Note:** Version bump only for package @spectrum-css/assetlist @@ -548,8 +514,7 @@ Additionally: ## 3.0.65 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.64...@spectrum-css/assetlist@3.0.65) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.64...@spectrum-css/assetlist@3.0.65) **Note:** Version bump only for package @spectrum-css/assetlist @@ -557,8 +522,7 @@ Additionally: ## 3.0.64 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.63...@spectrum-css/assetlist@3.0.64) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.63...@spectrum-css/assetlist@3.0.64) **Note:** Version bump only for package @spectrum-css/assetlist @@ -566,8 +530,7 @@ Additionally: ## 3.0.63 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.62...@spectrum-css/assetlist@3.0.63) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.62...@spectrum-css/assetlist@3.0.63) **Note:** Version bump only for package @spectrum-css/assetlist @@ -575,8 +538,7 @@ Additionally: ## 3.0.62 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.61...@spectrum-css/assetlist@3.0.62) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.61...@spectrum-css/assetlist@3.0.62) **Note:** Version bump only for package @spectrum-css/assetlist @@ -584,8 +546,7 @@ Additionally: ## 3.0.61 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.60...@spectrum-css/assetlist@3.0.61) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.60...@spectrum-css/assetlist@3.0.61) ### 🐛 Bug fixes @@ -595,8 +556,7 @@ Additionally: ## 3.0.60 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.59...@spectrum-css/assetlist@3.0.60) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.59...@spectrum-css/assetlist@3.0.60) **Note:** Version bump only for package @spectrum-css/assetlist @@ -604,8 +564,7 @@ Additionally: ## 3.0.59 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.58...@spectrum-css/assetlist@3.0.59) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/assetlist@3.0.58...@spectrum-css/assetlist@3.0.59) **Note:** Version bump only for package @spectrum-css/assetlist diff --git a/components/assetlist/dist/metadata.json b/components/assetlist/dist/metadata.json index 6aa102a6dc1..960f3e03ce3 100644 --- a/components/assetlist/dist/metadata.json +++ b/components/assetlist/dist/metadata.json @@ -93,10 +93,6 @@ "--spectrum-spacing-600", "--spectrum-spacing-75" ], - "system-theme": [ - "--system-asset-list-item-background-color-down", - "--system-asset-list-item-background-color-hover" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-assetlist-border-color-key-focus", diff --git a/components/assetlist/index.css b/components/assetlist/index.css index 742070edbd4..28801db0d89 100644 --- a/components/assetlist/index.css +++ b/components/assetlist/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-AssetList { + --spectrum-assetlist-item-background-color-down: var(--spectrum-gray-200); + --spectrum-assetlist-item-background-color-hover: var(--spectrum-gray-100); + --spectrum-assetlist-width: 272px; --spectrum-assetlist-child-indicator-animation: var(--spectrum-animation-duration-100); diff --git a/components/assetlist/package.json b/components/assetlist/package.json index 1ae2b237fe3..09e9b1ca7be 100644 --- a/components/assetlist/package.json +++ b/components/assetlist/package.json @@ -25,9 +25,9 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/checkbox": { @@ -40,11 +40,7 @@ "devDependencies": { "@spectrum-css/checkbox": "10.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/assetlist/stories/template.js b/components/assetlist/stories/template.js index 96d8f75a80c..f5c6d9731af 100644 --- a/components/assetlist/stories/template.js +++ b/components/assetlist/stories/template.js @@ -7,9 +7,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const AssetListItem = ({ rootClass = "spectrum-AssetList-item", @@ -45,10 +42,10 @@ export const AssetListItem = ({ customClasses: [`${rootClass}Selector`], }, context) )} - ${when(image, () => + ${when(image, () => html`<img src=${image} class="${rootClass}Thumbnail" alt="asset image thumbnail" />` )} - ${when(iconName, () => + ${when(iconName, () => Icon({ iconName, setName: iconSet, diff --git a/components/assetlist/themes/express.css b/components/assetlist/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/assetlist/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/assetlist/themes/spectrum-two.css b/components/assetlist/themes/spectrum-two.css deleted file mode 100644 index 0624623caf5..00000000000 --- a/components/assetlist/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-AssetList { - --spectrum-assetlist-item-background-color-down: var(--spectrum-gray-200); - --spectrum-assetlist-item-background-color-hover: var(--spectrum-gray-100); - } -} diff --git a/components/assetlist/themes/spectrum.css b/components/assetlist/themes/spectrum.css deleted file mode 100644 index 30f67757c2e..00000000000 --- a/components/assetlist/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-AssetList { - --spectrum-assetlist-item-background-color-down: var(--spectrum-gray-300); - --spectrum-assetlist-item-background-color-hover: var(--spectrum-gray-200); - } -} diff --git a/components/avatar/CHANGELOG.md b/components/avatar/CHANGELOG.md index 6ff8ff4febb..bd01daddf6b 100644 --- a/components/avatar/CHANGELOG.md +++ b/components/avatar/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 8.0.0-next.1 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 8.0.0-next.0 + +### Major Changes + +- [#3355](https://github.com/adobe/spectrum-css/pull/3355) [`a827601`](https://github.com/adobe/spectrum-css/commit/a827601bc1769a775f24e9da294bdfaa70535082) Thanks [@cdransf](https://github.com/cdransf)! - Adds support for new avatar-size tokens (avatar-size-800 to avatar-size-1500). Updates avatar component story to support new sizes. Adds support for avatar-border-color and avatar-border-thickness. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 9.0.1 ### Patch Changes @@ -128,16 +148,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.5...@spectrum-css/avatar@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.5...@spectrum-css/avatar@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -145,8 +162,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.4...@spectrum-css/avatar@6.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.4...@spectrum-css/avatar@6.1.5) **Note:** Version bump only for package @spectrum-css/avatar @@ -154,8 +170,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.3...@spectrum-css/avatar@6.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.3...@spectrum-css/avatar@6.1.4) **Note:** Version bump only for package @spectrum-css/avatar @@ -163,8 +178,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.2...@spectrum-css/avatar@6.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.2...@spectrum-css/avatar@6.1.3) **Note:** Version bump only for package @spectrum-css/avatar @@ -172,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.1...@spectrum-css/avatar@6.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.1.1...@spectrum-css/avatar@6.1.2) **Note:** Version bump only for package @spectrum-css/avatar @@ -181,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/avatar @@ -190,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.62...@spectrum-css/avatar@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.62...@spectrum-css/avatar@6.1.0) ### ✨ Features @@ -201,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.62 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.61...@spectrum-css/avatar@6.0.62) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.61...@spectrum-css/avatar@6.0.62) **Note:** Version bump only for package @spectrum-css/avatar @@ -210,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.61 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.60...@spectrum-css/avatar@6.0.61) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.60...@spectrum-css/avatar@6.0.61) **Note:** Version bump only for package @spectrum-css/avatar @@ -219,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.60 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.58...@spectrum-css/avatar@6.0.60) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.58...@spectrum-css/avatar@6.0.60) **Note:** Version bump only for package @spectrum-css/avatar @@ -228,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.59 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.58...@spectrum-css/avatar@6.0.59) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.58...@spectrum-css/avatar@6.0.59) **Note:** Version bump only for package @spectrum-css/avatar @@ -237,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.58 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.57...@spectrum-css/avatar@6.0.58) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.57...@spectrum-css/avatar@6.0.58) ### 🐛 Bug fixes @@ -248,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.57 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.56...@spectrum-css/avatar@6.0.57) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.56...@spectrum-css/avatar@6.0.57) **Note:** Version bump only for package @spectrum-css/avatar @@ -257,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.56 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.55...@spectrum-css/avatar@6.0.56) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.55...@spectrum-css/avatar@6.0.56) **Note:** Version bump only for package @spectrum-css/avatar @@ -266,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.55 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.54...@spectrum-css/avatar@6.0.55) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.54...@spectrum-css/avatar@6.0.55) **Note:** Version bump only for package @spectrum-css/avatar @@ -275,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.54 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.53...@spectrum-css/avatar@6.0.54) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.53...@spectrum-css/avatar@6.0.54) **Note:** Version bump only for package @spectrum-css/avatar @@ -284,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.53 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.52...@spectrum-css/avatar@6.0.53) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.52...@spectrum-css/avatar@6.0.53) **Note:** Version bump only for package @spectrum-css/avatar @@ -293,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.52 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.51...@spectrum-css/avatar@6.0.52) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.51...@spectrum-css/avatar@6.0.52) **Note:** Version bump only for package @spectrum-css/avatar @@ -302,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.51 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.50...@spectrum-css/avatar@6.0.51) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.50...@spectrum-css/avatar@6.0.51) **Note:** Version bump only for package @spectrum-css/avatar @@ -311,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.50 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.49...@spectrum-css/avatar@6.0.50) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.49...@spectrum-css/avatar@6.0.50) **Note:** Version bump only for package @spectrum-css/avatar @@ -320,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.49 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.48...@spectrum-css/avatar@6.0.49) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.48...@spectrum-css/avatar@6.0.49) ### 🔙 Reverts @@ -331,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.48 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.47...@spectrum-css/avatar@6.0.48) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.47...@spectrum-css/avatar@6.0.48) **Note:** Version bump only for package @spectrum-css/avatar @@ -340,8 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.47 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.45...@spectrum-css/avatar@6.0.47) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.45...@spectrum-css/avatar@6.0.47) **Note:** Version bump only for package @spectrum-css/avatar @@ -349,8 +344,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.46 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.45...@spectrum-css/avatar@6.0.46) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.45...@spectrum-css/avatar@6.0.46) **Note:** Version bump only for package @spectrum-css/avatar @@ -358,8 +352,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.45 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.44...@spectrum-css/avatar@6.0.45) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.44...@spectrum-css/avatar@6.0.45) **Note:** Version bump only for package @spectrum-css/avatar @@ -367,8 +360,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.44 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.43...@spectrum-css/avatar@6.0.44) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.43...@spectrum-css/avatar@6.0.44) **Note:** Version bump only for package @spectrum-css/avatar @@ -376,8 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.43 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.42...@spectrum-css/avatar@6.0.43) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.42...@spectrum-css/avatar@6.0.43) **Note:** Version bump only for package @spectrum-css/avatar @@ -385,8 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.42 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.41...@spectrum-css/avatar@6.0.42) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.41...@spectrum-css/avatar@6.0.42) **Note:** Version bump only for package @spectrum-css/avatar @@ -394,8 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.41 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.40...@spectrum-css/avatar@6.0.41) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.40...@spectrum-css/avatar@6.0.41) **Note:** Version bump only for package @spectrum-css/avatar @@ -403,8 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.40 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.39...@spectrum-css/avatar@6.0.40) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.39...@spectrum-css/avatar@6.0.40) **Note:** Version bump only for package @spectrum-css/avatar @@ -412,8 +400,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.39 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.38...@spectrum-css/avatar@6.0.39) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.38...@spectrum-css/avatar@6.0.39) **Note:** Version bump only for package @spectrum-css/avatar @@ -421,8 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.38 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.37...@spectrum-css/avatar@6.0.38) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.37...@spectrum-css/avatar@6.0.38) **Note:** Version bump only for package @spectrum-css/avatar @@ -430,8 +416,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.37 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.36...@spectrum-css/avatar@6.0.37) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.36...@spectrum-css/avatar@6.0.37) **Note:** Version bump only for package @spectrum-css/avatar @@ -439,8 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.36 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.35...@spectrum-css/avatar@6.0.36) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.35...@spectrum-css/avatar@6.0.36) **Note:** Version bump only for package @spectrum-css/avatar @@ -448,8 +432,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.35 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.34...@spectrum-css/avatar@6.0.35) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.34...@spectrum-css/avatar@6.0.35) **Note:** Version bump only for package @spectrum-css/avatar @@ -457,8 +440,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.34 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.33...@spectrum-css/avatar@6.0.34) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.33...@spectrum-css/avatar@6.0.34) ### 🐛 Bug fixes @@ -468,8 +450,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.33 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.32...@spectrum-css/avatar@6.0.33) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.32...@spectrum-css/avatar@6.0.33) **Note:** Version bump only for package @spectrum-css/avatar @@ -477,8 +458,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.32 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.31...@spectrum-css/avatar@6.0.32) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/avatar@6.0.31...@spectrum-css/avatar@6.0.32) **Note:** Version bump only for package @spectrum-css/avatar diff --git a/components/avatar/dist/metadata.json b/components/avatar/dist/metadata.json index 47df733191c..6b5fb54aac2 100644 --- a/components/avatar/dist/metadata.json +++ b/components/avatar/dist/metadata.json @@ -3,6 +3,12 @@ "selectors": [ ".spectrum-Avatar", ".spectrum-Avatar--size100", + ".spectrum-Avatar--size1000", + ".spectrum-Avatar--size1100", + ".spectrum-Avatar--size1200", + ".spectrum-Avatar--size1300", + ".spectrum-Avatar--size1400", + ".spectrum-Avatar--size1500", ".spectrum-Avatar--size200", ".spectrum-Avatar--size300", ".spectrum-Avatar--size400", @@ -11,6 +17,8 @@ ".spectrum-Avatar--size600", ".spectrum-Avatar--size700", ".spectrum-Avatar--size75", + ".spectrum-Avatar--size800", + ".spectrum-Avatar--size900", ".spectrum-Avatar-image", ".spectrum-Avatar-link", ".spectrum-Avatar.is-disabled", @@ -29,7 +37,11 @@ ], "component": [ "--spectrum-avatar-block-size", + "--spectrum-avatar-border-color", + "--spectrum-avatar-border-color-default", "--spectrum-avatar-border-radius", + "--spectrum-avatar-border-thickness", + "--spectrum-avatar-border-width", "--spectrum-avatar-color-opacity", "--spectrum-avatar-color-opacity-disabled", "--spectrum-avatar-focus-indicator-color", @@ -38,6 +50,12 @@ "--spectrum-avatar-inline-size", "--spectrum-avatar-opacity-disabled", "--spectrum-avatar-size-100", + "--spectrum-avatar-size-1000", + "--spectrum-avatar-size-1100", + "--spectrum-avatar-size-1200", + "--spectrum-avatar-size-1300", + "--spectrum-avatar-size-1400", + "--spectrum-avatar-size-1500", "--spectrum-avatar-size-200", "--spectrum-avatar-size-300", "--spectrum-avatar-size-400", @@ -45,14 +63,15 @@ "--spectrum-avatar-size-500", "--spectrum-avatar-size-600", "--spectrum-avatar-size-700", - "--spectrum-avatar-size-75" + "--spectrum-avatar-size-75", + "--spectrum-avatar-size-800", + "--spectrum-avatar-size-900" ], "global": [ "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness" ], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-avatar-focus-indicator-color"] } diff --git a/components/avatar/index.css b/components/avatar/index.css index 4f165dbf364..e6203f003d8 100644 --- a/components/avatar/index.css +++ b/components/avatar/index.css @@ -18,6 +18,8 @@ --spectrum-avatar-block-size: var(--spectrum-avatar-size-100); --spectrum-avatar-border-radius: var(--spectrum-avatar-block-size); + --spectrum-avatar-border-thickness: var(--spectrum-avatar-border-width); + --spectrum-avatar-border-color-default: var(--spectrum-avatar-border-color); --spectrum-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap); @@ -71,6 +73,46 @@ --spectrum-avatar-block-size: var(--spectrum-avatar-size-700); } +.spectrum-Avatar--size800 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-800); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-800); +} + +.spectrum-Avatar--size900 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-900); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-900); +} + +.spectrum-Avatar--size1000 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1000); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1000); +} + +.spectrum-Avatar--size1100 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1100); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1100); +} + +.spectrum-Avatar--size1200 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1200); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1200); +} + +.spectrum-Avatar--size1300 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1300); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1300); +} + +.spectrum-Avatar--size1400 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1400); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1400); +} + +.spectrum-Avatar--size1500 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-1500); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-1500); +} + @media (forced-colors: active) { .spectrum-Avatar { --highcontrast-avatar-focus-indicator-color: CanvasText; @@ -83,8 +125,10 @@ inline-size: var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)); block-size: var(--mod-avatar-block-size, var(--spectrum-avatar-block-size)); + border-style: solid; border-radius: var(--mod-avatar-border-radius, var(--spectrum-avatar-border-radius)); - border-width: 0; + border-width: var(--spectrum-avatar-border-thickness); + border-color: var(--spectrum-avatar-border-color-default); outline: none; @@ -120,7 +164,9 @@ } .spectrum-Avatar-link { - outline: 0; + outline: none; + outline-color: transparent; + outline-style: solid; } .spectrum-Avatar-image { diff --git a/components/avatar/package.json b/components/avatar/package.json index 1f4cae10aa8..2b90b768ada 100644 --- a/components/avatar/package.json +++ b/components/avatar/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/avatar/stories/avatar.stories.js b/components/avatar/stories/avatar.stories.js index 3ef54b07b71..7cdf32f408d 100644 --- a/components/avatar/stories/avatar.stories.js +++ b/components/avatar/stories/avatar.stories.js @@ -13,7 +13,7 @@ export default { title: "Avatar", component: "Avatar", argTypes: { - size: size([50, 75, 100, 200, 300, 400, 500, 600, 700], false), + size: size([50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500], false), image: { name: "Image", type: { name: "string" }, @@ -60,6 +60,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** @@ -74,19 +75,7 @@ export const Default = AvatarGroup.bind({}); Default.args = {}; // ********* DOCS ONLY ********* // -/** Avatar sizes scale exponentially, based on the Spectrum type scale. These range from size-50 to size-700, with the default size for an avatar being `100`. An avatar can also be customized to fit appropriately for your context. - * - * Avatar is available in many sizes using the required `.spectrum-Avatar--size<number>` class. The available size classes are: - -- `spectrum-Avatar--size50` -- `spectrum-Avatar--size75` -- `spectrum-Avatar--size100` -- `spectrum-Avatar--size200` -- `spectrum-Avatar--size300` -- `spectrum-Avatar--size400` -- `spectrum-Avatar--size500` -- `spectrum-Avatar--size600` -- `spectrum-Avatar--size700` +/** Avatar is available in many sizes and scales exponentially, based on the Spectrum type scale. These sizes range from size-50 to size-1500, using the required `.spectrum-Avatar--size<number>` class. The default size for an avatar is `100`. An avatar can also be customized to fit appropriately for your context. */ export const Sizing = (args, context) => Sizes({ Template, diff --git a/components/badge/CHANGELOG.md b/components/badge/CHANGELOG.md index 4165c2c1035..dab2fb64a05 100644 --- a/components/badge/CHANGELOG.md +++ b/components/badge/CHANGELOG.md @@ -154,16 +154,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.5...@spectrum-css/badge@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.5...@spectrum-css/badge@4.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -171,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.4...@spectrum-css/badge@3.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.4...@spectrum-css/badge@3.2.5) **Note:** Version bump only for package @spectrum-css/badge @@ -180,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.3...@spectrum-css/badge@3.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.3...@spectrum-css/badge@3.2.4) **Note:** Version bump only for package @spectrum-css/badge @@ -189,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.2...@spectrum-css/badge@3.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.2...@spectrum-css/badge@3.2.3) **Note:** Version bump only for package @spectrum-css/badge @@ -198,8 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.1...@spectrum-css/badge@3.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.2.1...@spectrum-css/badge@3.2.2) **Note:** Version bump only for package @spectrum-css/badge @@ -207,8 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/badge @@ -216,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.18...@spectrum-css/badge@3.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.18...@spectrum-css/badge@3.2.0) ### ✨ Features @@ -227,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.18 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.17...@spectrum-css/badge@3.1.18) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.17...@spectrum-css/badge@3.1.18) **Note:** Version bump only for package @spectrum-css/badge @@ -236,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.17 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.16...@spectrum-css/badge@3.1.17) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.16...@spectrum-css/badge@3.1.17) **Note:** Version bump only for package @spectrum-css/badge @@ -245,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.16 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.14...@spectrum-css/badge@3.1.16) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.14...@spectrum-css/badge@3.1.16) **Note:** Version bump only for package @spectrum-css/badge @@ -254,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.15 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.14...@spectrum-css/badge@3.1.15) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.14...@spectrum-css/badge@3.1.15) **Note:** Version bump only for package @spectrum-css/badge @@ -263,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.14 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.13...@spectrum-css/badge@3.1.14) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.13...@spectrum-css/badge@3.1.14) **Note:** Version bump only for package @spectrum-css/badge @@ -272,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.13 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.12...@spectrum-css/badge@3.1.13) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.12...@spectrum-css/badge@3.1.13) **Note:** Version bump only for package @spectrum-css/badge @@ -281,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.12 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.11...@spectrum-css/badge@3.1.12) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.11...@spectrum-css/badge@3.1.12) **Note:** Version bump only for package @spectrum-css/badge @@ -290,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.11 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.10...@spectrum-css/badge@3.1.11) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.10...@spectrum-css/badge@3.1.11) **Note:** Version bump only for package @spectrum-css/badge @@ -299,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.10 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.9...@spectrum-css/badge@3.1.10) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.9...@spectrum-css/badge@3.1.10) **Note:** Version bump only for package @spectrum-css/badge @@ -308,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.9 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.8...@spectrum-css/badge@3.1.9) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.8...@spectrum-css/badge@3.1.9) **Note:** Version bump only for package @spectrum-css/badge @@ -317,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.8 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.7...@spectrum-css/badge@3.1.8) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.7...@spectrum-css/badge@3.1.8) **Note:** Version bump only for package @spectrum-css/badge @@ -326,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.7 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.6...@spectrum-css/badge@3.1.7) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.6...@spectrum-css/badge@3.1.7) **Note:** Version bump only for package @spectrum-css/badge @@ -335,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.5...@spectrum-css/badge@3.1.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.5...@spectrum-css/badge@3.1.6) **Note:** Version bump only for package @spectrum-css/badge @@ -344,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.5 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.4...@spectrum-css/badge@3.1.5) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.4...@spectrum-css/badge@3.1.5) ### 🔙 Reverts @@ -355,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.4 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.3...@spectrum-css/badge@3.1.4) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.3...@spectrum-css/badge@3.1.4) **Note:** Version bump only for package @spectrum-css/badge @@ -364,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.1...@spectrum-css/badge@3.1.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.1...@spectrum-css/badge@3.1.3) **Note:** Version bump only for package @spectrum-css/badge @@ -373,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.1...@spectrum-css/badge@3.1.2) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.1...@spectrum-css/badge@3.1.2) **Note:** Version bump only for package @spectrum-css/badge @@ -382,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.0...@spectrum-css/badge@3.1.1) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.1.0...@spectrum-css/badge@3.1.1) **Note:** Version bump only for package @spectrum-css/badge @@ -391,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.45...@spectrum-css/badge@3.1.0) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.45...@spectrum-css/badge@3.1.0) ### ✨ Features @@ -402,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.45 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.44...@spectrum-css/badge@3.0.45) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.44...@spectrum-css/badge@3.0.45) **Note:** Version bump only for package @spectrum-css/badge @@ -411,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.44 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.43...@spectrum-css/badge@3.0.44) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.43...@spectrum-css/badge@3.0.44) **Note:** Version bump only for package @spectrum-css/badge @@ -420,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.43 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.42...@spectrum-css/badge@3.0.43) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.42...@spectrum-css/badge@3.0.43) **Note:** Version bump only for package @spectrum-css/badge @@ -429,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.41...@spectrum-css/badge@3.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.41...@spectrum-css/badge@3.0.42) **Note:** Version bump only for package @spectrum-css/badge @@ -438,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.40...@spectrum-css/badge@3.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.40...@spectrum-css/badge@3.0.41) **Note:** Version bump only for package @spectrum-css/badge @@ -447,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.39...@spectrum-css/badge@3.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.39...@spectrum-css/badge@3.0.40) **Note:** Version bump only for package @spectrum-css/badge @@ -456,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.38...@spectrum-css/badge@3.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.38...@spectrum-css/badge@3.0.39) **Note:** Version bump only for package @spectrum-css/badge @@ -465,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.37...@spectrum-css/badge@3.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.37...@spectrum-css/badge@3.0.38) **Note:** Version bump only for package @spectrum-css/badge @@ -474,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.36...@spectrum-css/badge@3.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.36...@spectrum-css/badge@3.0.37) **Note:** Version bump only for package @spectrum-css/badge @@ -483,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.35...@spectrum-css/badge@3.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.35...@spectrum-css/badge@3.0.36) ### 🐛 Bug fixes @@ -494,8 +456,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.34...@spectrum-css/badge@3.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.34...@spectrum-css/badge@3.0.35) **Note:** Version bump only for package @spectrum-css/badge @@ -503,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.33...@spectrum-css/badge@3.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/badge@3.0.33...@spectrum-css/badge@3.0.34) **Note:** Version bump only for package @spectrum-css/badge diff --git a/components/badge/dist/metadata.json b/components/badge/dist/metadata.json index c8be859d830..050f08d41ef 100644 --- a/components/badge/dist/metadata.json +++ b/components/badge/dist/metadata.json @@ -175,7 +175,6 @@ "--spectrum-workflow-icon-size-75", "--spectrum-yellow-background-color-default" ], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-badge-border-color"] } diff --git a/components/badge/package.json b/components/badge/package.json index 014ac1f74ea..144e79f4d5a 100644 --- a/components/badge/package.json +++ b/components/badge/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/badge/stories/badge.stories.js b/components/badge/stories/badge.stories.js index fb9961227a2..4de26b9b9fa 100644 --- a/components/badge/stories/badge.stories.js +++ b/components/badge/stories/badge.stories.js @@ -40,7 +40,7 @@ export default { type: { summary: "string" }, category: "Component", }, - options: ["neutral", "accent", "informative", "positive", "negative", "gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"], + options: ["neutral", "accent", "informative", "positive", "negative", "notice", "gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"], control: "select", }, fixed: { @@ -84,7 +84,7 @@ Default.args = { export const SemanticVariants = (args, context) => ArgGrid({ Template, argKey: "variant", - options: ["neutral", "accent", "informative", "positive", "negative"], + options: ["neutral", "accent", "informative", "positive", "negative", "notice"], withBorder: false, ...args, }, context); diff --git a/components/badge/stories/badge.test.js b/components/badge/stories/badge.test.js index d1068ec340a..b226b07b700 100644 --- a/components/badge/stories/badge.test.js +++ b/components/badge/stories/badge.test.js @@ -17,7 +17,7 @@ export const BadgeGroup = Variants({ Template: Badges, sizeDirection: "row", testData: [ - ...["neutral", "accent", "informative", "positive", "negative"].map((variant) => + ...["neutral", "accent", "informative", "positive", "negative", "notice"].map((variant) => ({ testHeading: capitalize(variant), wrapperStyles: { diff --git a/components/breadcrumb/CHANGELOG.md b/components/breadcrumb/CHANGELOG.md index ae31318292d..5c43721737c 100644 --- a/components/breadcrumb/CHANGELOG.md +++ b/components/breadcrumb/CHANGELOG.md @@ -164,16 +164,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.5...@spectrum-css/breadcrumb@9.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.5...@spectrum-css/breadcrumb@9.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -181,8 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.4...@spectrum-css/breadcrumb@8.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.4...@spectrum-css/breadcrumb@8.2.5) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -190,8 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.3...@spectrum-css/breadcrumb@8.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.3...@spectrum-css/breadcrumb@8.2.4) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -199,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.2...@spectrum-css/breadcrumb@8.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.2...@spectrum-css/breadcrumb@8.2.3) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -208,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.1...@spectrum-css/breadcrumb@8.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.2.1...@spectrum-css/breadcrumb@8.2.2) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -217,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -226,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.1.1...@spectrum-css/breadcrumb@8.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.1.1...@spectrum-css/breadcrumb@8.2.0) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -235,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.1.0...@spectrum-css/breadcrumb@8.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.1.0...@spectrum-css/breadcrumb@8.1.1) ### 🐛 Bug fixes @@ -246,8 +235,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.17...@spectrum-css/breadcrumb@8.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.17...@spectrum-css/breadcrumb@8.1.0) ### ✨ Features @@ -257,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.17 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.16...@spectrum-css/breadcrumb@8.0.17) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.16...@spectrum-css/breadcrumb@8.0.17) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -266,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.16 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.15...@spectrum-css/breadcrumb@8.0.16) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.15...@spectrum-css/breadcrumb@8.0.16) ### 🐛 Bug fixes @@ -277,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.15 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.13...@spectrum-css/breadcrumb@8.0.15) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.13...@spectrum-css/breadcrumb@8.0.15) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -286,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.14 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.13...@spectrum-css/breadcrumb@8.0.14) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.13...@spectrum-css/breadcrumb@8.0.14) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -295,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.13 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.12...@spectrum-css/breadcrumb@8.0.13) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.12...@spectrum-css/breadcrumb@8.0.13) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -304,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.11...@spectrum-css/breadcrumb@8.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.11...@spectrum-css/breadcrumb@8.0.12) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -313,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.10...@spectrum-css/breadcrumb@8.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.10...@spectrum-css/breadcrumb@8.0.11) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -322,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.9...@spectrum-css/breadcrumb@8.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.9...@spectrum-css/breadcrumb@8.0.10) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -331,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.8...@spectrum-css/breadcrumb@8.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.8...@spectrum-css/breadcrumb@8.0.9) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -340,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.7...@spectrum-css/breadcrumb@8.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.7...@spectrum-css/breadcrumb@8.0.8) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -349,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.6...@spectrum-css/breadcrumb@8.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.6...@spectrum-css/breadcrumb@8.0.7) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -358,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.5...@spectrum-css/breadcrumb@8.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.5...@spectrum-css/breadcrumb@8.0.6) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -367,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.4...@spectrum-css/breadcrumb@8.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.4...@spectrum-css/breadcrumb@8.0.5) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -376,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.3...@spectrum-css/breadcrumb@8.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.3...@spectrum-css/breadcrumb@8.0.4) ### 🔙 Reverts @@ -387,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.2...@spectrum-css/breadcrumb@8.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.2...@spectrum-css/breadcrumb@8.0.3) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -396,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.0...@spectrum-css/breadcrumb@8.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.0...@spectrum-css/breadcrumb@8.0.2) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -405,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.0...@spectrum-css/breadcrumb@8.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@8.0.0...@spectrum-css/breadcrumb@8.0.1) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -414,13 +385,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.47...@spectrum-css/breadcrumb@8.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.47...@spectrum-css/breadcrumb@8.0.0) \*refactor(breadcrumb)!: replace focus-ring with focus-visible([4475461](https://github.com/adobe/spectrum-css/commit/4475461)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use native focus-visible pseudo class for focus styling @@ -429,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.47 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.46...@spectrum-css/breadcrumb@7.0.47) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.46...@spectrum-css/breadcrumb@7.0.47) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -438,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.46 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.45...@spectrum-css/breadcrumb@7.0.46) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.45...@spectrum-css/breadcrumb@7.0.46) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -447,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.45 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.44...@spectrum-css/breadcrumb@7.0.45) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.44...@spectrum-css/breadcrumb@7.0.45) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -456,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.44 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.43...@spectrum-css/breadcrumb@7.0.44) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.43...@spectrum-css/breadcrumb@7.0.44) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -465,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.43 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.42...@spectrum-css/breadcrumb@7.0.43) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.42...@spectrum-css/breadcrumb@7.0.43) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -474,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.42 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.41...@spectrum-css/breadcrumb@7.0.42) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.41...@spectrum-css/breadcrumb@7.0.42) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -483,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.41 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.40...@spectrum-css/breadcrumb@7.0.41) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.40...@spectrum-css/breadcrumb@7.0.41) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -492,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.40 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.39...@spectrum-css/breadcrumb@7.0.40) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.39...@spectrum-css/breadcrumb@7.0.40) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -501,8 +462,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.39 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.38...@spectrum-css/breadcrumb@7.0.39) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.38...@spectrum-css/breadcrumb@7.0.39) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -510,8 +470,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.38 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.37...@spectrum-css/breadcrumb@7.0.38) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.37...@spectrum-css/breadcrumb@7.0.38) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -519,8 +478,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.37 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.36...@spectrum-css/breadcrumb@7.0.37) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.36...@spectrum-css/breadcrumb@7.0.37) ### 🐛 Bug fixes @@ -530,8 +488,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.36 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.35...@spectrum-css/breadcrumb@7.0.36) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.35...@spectrum-css/breadcrumb@7.0.36) **Note:** Version bump only for package @spectrum-css/breadcrumb @@ -539,8 +496,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.35 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.34...@spectrum-css/breadcrumb@7.0.35) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/breadcrumb@7.0.34...@spectrum-css/breadcrumb@7.0.35) **Note:** Version bump only for package @spectrum-css/breadcrumb diff --git a/components/breadcrumb/dist/metadata.json b/components/breadcrumb/dist/metadata.json index 561253d9efa..35fb0b03993 100644 --- a/components/breadcrumb/dist/metadata.json +++ b/components/breadcrumb/dist/metadata.json @@ -2,35 +2,30 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Breadcrumbs", - ".spectrum-Breadcrumbs--compact", - ".spectrum-Breadcrumbs--compact .spectrum-Breadcrumbs-item", - ".spectrum-Breadcrumbs--compact .spectrum-Breadcrumbs-item > .spectrum-ActionButton", - ".spectrum-Breadcrumbs--compact .spectrum-Breadcrumbs-item:last-of-type", - ".spectrum-Breadcrumbs--compact .spectrum-Breadcrumbs-itemLink", - ".spectrum-Breadcrumbs--compact .spectrum-Breadcrumbs-itemSeparator", ".spectrum-Breadcrumbs--multiline", - ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-item", - ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-item > .spectrum-ActionButton", ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-item:last-of-type", - ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-item:last-of-type .spectrum-Breadcrumbs-itemLink", - ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-itemLink", - ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-itemSeparator", + ".spectrum-Breadcrumbs--multiline .spectrum-Breadcrumbs-item:last-of-type > .spectrum-Breadcrumbs-itemLink", + ".spectrum-Breadcrumbs--sizeL", ".spectrum-Breadcrumbs-item", ".spectrum-Breadcrumbs-item > .spectrum-ActionButton", ".spectrum-Breadcrumbs-item > .spectrum-ActionButton:disabled", ".spectrum-Breadcrumbs-item.is-dragged .spectrum-Breadcrumbs-itemLink:before", ".spectrum-Breadcrumbs-item:first-of-type > .spectrum-ActionButton", + ".spectrum-Breadcrumbs-item:first-of-type > .spectrum-Breadcrumbs-itemLink", ".spectrum-Breadcrumbs-item:last-of-type", ".spectrum-Breadcrumbs-item:last-of-type .spectrum-Breadcrumbs-itemLink", ".spectrum-Breadcrumbs-item:last-of-type .spectrum-Breadcrumbs-itemSeparator", ".spectrum-Breadcrumbs-itemLink", + ".spectrum-Breadcrumbs-itemLink + .spectrum-Breadcrumbs-itemSeparator", ".spectrum-Breadcrumbs-itemLink.is-disabled", ".spectrum-Breadcrumbs-itemLink:focus-visible:before", ".spectrum-Breadcrumbs-itemLink[aria-disabled=\"true\"]", ".spectrum-Breadcrumbs-itemLink[href]", + ".spectrum-Breadcrumbs-itemLink[href]:active", ".spectrum-Breadcrumbs-itemLink[href]:focus-visible", ".spectrum-Breadcrumbs-itemLink[href]:hover", ".spectrum-Breadcrumbs-itemLink[tabindex=\"0\"]", + ".spectrum-Breadcrumbs-itemLink[tabindex=\"0\"]:active", ".spectrum-Breadcrumbs-itemLink[tabindex=\"0\"]:focus-visible", ".spectrum-Breadcrumbs-itemLink[tabindex=\"0\"]:hover", ".spectrum-Breadcrumbs-itemSeparator", @@ -41,41 +36,23 @@ "--mod-breadcrumbs-action-button-color", "--mod-breadcrumbs-action-button-color-disabled", "--mod-breadcrumbs-action-button-spacing-block", - "--mod-breadcrumbs-action-button-spacing-block-between-multiline", - "--mod-breadcrumbs-action-button-spacing-block-compact", - "--mod-breadcrumbs-action-button-spacing-block-multiline", "--mod-breadcrumbs-action-button-spacing-inline", - "--mod-breadcrumbs-action-button-spacing-inline-start", "--mod-breadcrumbs-block-size", - "--mod-breadcrumbs-block-size-compact", - "--mod-breadcrumbs-block-size-multiline", "--mod-breadcrumbs-focus-indicator-color", "--mod-breadcrumbs-focus-indicator-gap", "--mod-breadcrumbs-focus-indicator-thickness", "--mod-breadcrumbs-font-family", - "--mod-breadcrumbs-font-family-compact", - "--mod-breadcrumbs-font-family-compact-current", "--mod-breadcrumbs-font-family-current", - "--mod-breadcrumbs-font-family-multiline", - "--mod-breadcrumbs-font-family-multiline-current", "--mod-breadcrumbs-font-size", - "--mod-breadcrumbs-font-size-compact", - "--mod-breadcrumbs-font-size-compact-current", "--mod-breadcrumbs-font-size-current", - "--mod-breadcrumbs-font-size-multiline", - "--mod-breadcrumbs-font-size-multiline-current", + "--mod-breadcrumbs-font-style", "--mod-breadcrumbs-font-weight", - "--mod-breadcrumbs-font-weight-compact", - "--mod-breadcrumbs-font-weight-compact-current", "--mod-breadcrumbs-font-weight-current", - "--mod-breadcrumbs-font-weight-multiline", - "--mod-breadcrumbs-font-weight-multiline-current", "--mod-breadcrumbs-icon-spacing-block", - "--mod-breadcrumbs-icon-spacing-block-between-multiline", - "--mod-breadcrumbs-icon-spacing-block-compact", - "--mod-breadcrumbs-icon-spacing-block-start-multiline", "--mod-breadcrumbs-inline-end", "--mod-breadcrumbs-inline-start", + "--mod-breadcrumbs-inline-start-to-truncated-menu", + "--mod-breadcrumbs-item-dragged-background", "--mod-breadcrumbs-item-link-border-radius", "--mod-breadcrumbs-line-height", "--mod-breadcrumbs-separator-color", @@ -85,112 +62,96 @@ "--mod-breadcrumbs-text-color-disabled", "--mod-breadcrumbs-text-decoration-gap", "--mod-breadcrumbs-text-decoration-thickness", - "--mod-breadcrumbs-text-spacing-block-between-multiline", "--mod-breadcrumbs-text-spacing-block-end", - "--mod-breadcrumbs-text-spacing-block-end-compact", - "--mod-breadcrumbs-text-spacing-block-end-multiline", "--mod-breadcrumbs-text-spacing-block-start", - "--mod-breadcrumbs-text-spacing-block-start-compact", - "--mod-breadcrumbs-text-spacing-block-start-multiline" + "--mod-breadcrumbs-title-spacing-block-end", + "--mod-breadcrumbs-title-spacing-block-start", + "--mod-heading-margin-end", + "--mod-heading-margin-start" ], "component": [ "--spectrum-breadcrumbs-action-button-color", "--spectrum-breadcrumbs-action-button-color-disabled", "--spectrum-breadcrumbs-action-button-spacing-block", - "--spectrum-breadcrumbs-action-button-spacing-block-between-multiline", - "--spectrum-breadcrumbs-action-button-spacing-block-compact", - "--spectrum-breadcrumbs-action-button-spacing-block-multiline", "--spectrum-breadcrumbs-action-button-spacing-inline", - "--spectrum-breadcrumbs-action-button-spacing-inline-start", "--spectrum-breadcrumbs-block-size", - "--spectrum-breadcrumbs-block-size-compact", - "--spectrum-breadcrumbs-block-size-multiline", - "--spectrum-breadcrumbs-bottom-to-text", - "--spectrum-breadcrumbs-bottom-to-text-compact", "--spectrum-breadcrumbs-bottom-to-text-multiline", "--spectrum-breadcrumbs-end-edge-to-text", "--spectrum-breadcrumbs-focus-indicator-color", "--spectrum-breadcrumbs-focus-indicator-gap", "--spectrum-breadcrumbs-focus-indicator-thickness", "--spectrum-breadcrumbs-font-family", - "--spectrum-breadcrumbs-font-family-compact", - "--spectrum-breadcrumbs-font-family-compact-current", "--spectrum-breadcrumbs-font-family-current", - "--spectrum-breadcrumbs-font-family-multiline", - "--spectrum-breadcrumbs-font-family-multiline-current", "--spectrum-breadcrumbs-font-size", - "--spectrum-breadcrumbs-font-size-compact", - "--spectrum-breadcrumbs-font-size-compact-current", "--spectrum-breadcrumbs-font-size-current", - "--spectrum-breadcrumbs-font-size-multiline", - "--spectrum-breadcrumbs-font-size-multiline-current", + "--spectrum-breadcrumbs-font-style", "--spectrum-breadcrumbs-font-weight", - "--spectrum-breadcrumbs-font-weight-compact", - "--spectrum-breadcrumbs-font-weight-compact-current", "--spectrum-breadcrumbs-font-weight-current", - "--spectrum-breadcrumbs-font-weight-multiline", - "--spectrum-breadcrumbs-font-weight-multiline-current", - "--spectrum-breadcrumbs-height", - "--spectrum-breadcrumbs-height-compact", "--spectrum-breadcrumbs-height-multiline", "--spectrum-breadcrumbs-icon-spacing-block", - "--spectrum-breadcrumbs-icon-spacing-block-between-multiline", - "--spectrum-breadcrumbs-icon-spacing-block-compact", - "--spectrum-breadcrumbs-icon-spacing-block-start-multiline", "--spectrum-breadcrumbs-inline-end", "--spectrum-breadcrumbs-inline-start", + "--spectrum-breadcrumbs-inline-start-to-truncated-menu", + "--spectrum-breadcrumbs-item-dragged-background", "--spectrum-breadcrumbs-item-link-border-radius", "--spectrum-breadcrumbs-line-height", "--spectrum-breadcrumbs-separator-color", - "--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline", "--spectrum-breadcrumbs-separator-spacing-inline", - "--spectrum-breadcrumbs-start-edge-to-text", + "--spectrum-breadcrumbs-separator-to-bottom-text-multiline", + "--spectrum-breadcrumbs-start-edge-to-text-large", + "--spectrum-breadcrumbs-start-edge-to-text-medium", + "--spectrum-breadcrumbs-start-edge-to-text-multiline", "--spectrum-breadcrumbs-start-edge-to-truncated-menu", "--spectrum-breadcrumbs-text-color", "--spectrum-breadcrumbs-text-color-current", "--spectrum-breadcrumbs-text-color-disabled", "--spectrum-breadcrumbs-text-decoration-gap", "--spectrum-breadcrumbs-text-decoration-thickness", - "--spectrum-breadcrumbs-text-spacing-block-between-multiline", "--spectrum-breadcrumbs-text-spacing-block-end", - "--spectrum-breadcrumbs-text-spacing-block-end-compact", - "--spectrum-breadcrumbs-text-spacing-block-end-multiline", "--spectrum-breadcrumbs-text-spacing-block-start", - "--spectrum-breadcrumbs-text-spacing-block-start-compact", - "--spectrum-breadcrumbs-text-spacing-block-start-multiline", + "--spectrum-breadcrumbs-text-to-separator-large", + "--spectrum-breadcrumbs-text-to-separator-medium", + "--spectrum-breadcrumbs-text-to-separator-multiline", + "--spectrum-breadcrumbs-title-spacing-block-end", + "--spectrum-breadcrumbs-title-spacing-block-start", "--spectrum-breadcrumbs-top-text-to-bottom-text", - "--spectrum-breadcrumbs-top-to-separator-icon", - "--spectrum-breadcrumbs-top-to-separator-icon-compact", - "--spectrum-breadcrumbs-top-to-separator-icon-multiline", - "--spectrum-breadcrumbs-top-to-text", - "--spectrum-breadcrumbs-top-to-text-compact", + "--spectrum-breadcrumbs-top-to-separator-large", + "--spectrum-breadcrumbs-top-to-separator-medium", + "--spectrum-breadcrumbs-top-to-separator-multiline", "--spectrum-breadcrumbs-top-to-text-multiline", "--spectrum-breadcrumbs-top-to-truncated-menu", - "--spectrum-breadcrumbs-top-to-truncated-menu-compact", "--spectrum-breadcrumbs-truncated-menu-to-bottom-text", - "--spectrum-breadcrumbs-truncated-menu-to-separator-icon" + "--spectrum-breadcrumbs-truncated-menu-to-separator" ], "global": [ "--spectrum-bold-font-weight", - "--spectrum-corner-radius-100", + "--spectrum-component-bottom-to-text-100", + "--spectrum-component-bottom-to-text-200", + "--spectrum-component-height-100", + "--spectrum-component-height-200", + "--spectrum-component-top-to-text-100", + "--spectrum-component-top-to-text-200", + "--spectrum-corner-radius-small-default", + "--spectrum-default-font-style", "--spectrum-disabled-content-color", + "--spectrum-drop-zone-background-color-opacity", + "--spectrum-drop-zone-background-color-rgb", + "--spectrum-extra-bold-font-weight", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", "--spectrum-font-size-100", "--spectrum-font-size-200", - "--spectrum-font-size-300", "--spectrum-font-size-75", + "--spectrum-heading-size-l", "--spectrum-line-height-100", "--spectrum-neutral-content-color-default", "--spectrum-neutral-subdued-content-color-default", "--spectrum-regular-font-weight", "--spectrum-sans-font-family-stack", - "--spectrum-text-to-visual-100", "--spectrum-text-underline-gap", "--spectrum-text-underline-thickness" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-breadcrumbs-action-button-color", diff --git a/components/breadcrumb/index.css b/components/breadcrumb/index.css index 11e5a68e03b..d8d46e277dc 100644 --- a/components/breadcrumb/index.css +++ b/components/breadcrumb/index.css @@ -12,88 +12,46 @@ */ .spectrum-Breadcrumbs { - /* block size */ - --spectrum-breadcrumbs-block-size: var(--spectrum-breadcrumbs-height); - --spectrum-breadcrumbs-block-size-compact: var(--spectrum-breadcrumbs-height-compact); - --spectrum-breadcrumbs-block-size-multiline: var(--spectrum-breadcrumbs-height-multiline); + --spectrum-breadcrumbs-block-size: var(--spectrum-component-height-100); - /* text regular */ + /* Text - medium / default */ --spectrum-breadcrumbs-line-height: var(--spectrum-line-height-100); - --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-200); + --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-100); --spectrum-breadcrumbs-font-family: var(--spectrum-sans-font-family-stack); --spectrum-breadcrumbs-font-weight: var(--spectrum-regular-font-weight); + --spectrum-breadcrumbs-font-style: var(--spectrum-default-font-style); - /* text regular active item */ - --spectrum-breadcrumbs-font-size-current: var(--spectrum-font-size-200); + --spectrum-breadcrumbs-font-size-current: var(--spectrum-font-size-100); --spectrum-breadcrumbs-font-family-current: var(--spectrum-sans-font-family-stack); --spectrum-breadcrumbs-font-weight-current: var(--spectrum-bold-font-weight); - /* text compact */ - --spectrum-breadcrumbs-font-size-compact: var(--spectrum-font-size-100); - --spectrum-breadcrumbs-font-family-compact: var(--spectrum-sans-font-family-stack); - --spectrum-breadcrumbs-font-weight-compact: var(--spectrum-regular-font-weight); - - /* text compact active item */ - --spectrum-breadcrumbs-font-size-compact-current: var(--spectrum-font-size-100); - --spectrum-breadcrumbs-font-family-compact-current: var(--spectrum-sans-font-family-stack); - --spectrum-breadcrumbs-font-weight-compact-current: var(--spectrum-bold-font-weight); - - /* text multiline */ - --spectrum-breadcrumbs-font-size-multiline: var(--spectrum-font-size-75); - --spectrum-breadcrumbs-font-family-multiline: var(--spectrum-sans-font-family-stack); - --spectrum-breadcrumbs-font-weight-multiline: var(--spectrum-regular-font-weight); - - /* text multiline active item */ - --spectrum-breadcrumbs-font-size-multiline-current: var(--spectrum-font-size-300); - --spectrum-breadcrumbs-font-family-multiline-current: var(--spectrum-sans-font-family-stack); - --spectrum-breadcrumbs-font-weight-multiline-current: var(--spectrum-bold-font-weight); - - /* hover, active, focus underline */ + /* Hover, active, focus underline */ --spectrum-breadcrumbs-text-decoration-thickness: var(--spectrum-text-underline-thickness); --spectrum-breadcrumbs-text-decoration-gap: var(--spectrum-text-underline-gap); - /* space between items */ - --spectrum-breadcrumbs-separator-spacing-inline: var(--spectrum-text-to-visual-100); - - /* vertical spacing */ - --spectrum-breadcrumbs-text-spacing-block-start: var(--spectrum-breadcrumbs-top-to-text); - --spectrum-breadcrumbs-text-spacing-block-end: var(--spectrum-breadcrumbs-bottom-to-text); - --spectrum-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-icon); + /* Space between separator chevron and items */ + --spectrum-breadcrumbs-separator-spacing-inline: var(--spectrum-breadcrumbs-text-to-separator-medium); - /* compact vertical spacing */ - --spectrum-breadcrumbs-text-spacing-block-start-compact: var(--spectrum-breadcrumbs-top-to-text-compact); - --spectrum-breadcrumbs-text-spacing-block-end-compact: var(--spectrum-breadcrumbs-bottom-to-text-compact); - --spectrum-breadcrumbs-icon-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-separator-icon-compact); + /* Vertical spacing for text and separator icon */ + --spectrum-breadcrumbs-text-spacing-block-start: var(--spectrum-component-top-to-text-100); + --spectrum-breadcrumbs-text-spacing-block-end: var(--spectrum-component-bottom-to-text-100); + --spectrum-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-medium); + --spectrum-breadcrumbs-title-spacing-block-start: var(--spectrum-breadcrumbs-text-spacing-block-start); + --spectrum-breadcrumbs-title-spacing-block-end: var(--spectrum-breadcrumbs-text-spacing-block-end); - /* multiline vertical spacing */ - --spectrum-breadcrumbs-text-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-text-multiline); - --spectrum-breadcrumbs-text-spacing-block-end-multiline: var(--spectrum-breadcrumbs-bottom-to-text-multiline); - --spectrum-breadcrumbs-text-spacing-block-between-multiline: var(--spectrum-breadcrumbs-top-text-to-bottom-text); /* vertical between lines */ - --spectrum-breadcrumbs-icon-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-separator-icon-multiline); - --spectrum-breadcrumbs-icon-spacing-block-between-multiline: var(--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline); /* vertical between lines */ - - /* horizontal outer spacing of list */ - --spectrum-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text); + /* Horizontal outer spacing of list */ + --spectrum-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text-medium); --spectrum-breadcrumbs-inline-end: var(--spectrum-breadcrumbs-end-edge-to-text); + --spectrum-breadcrumbs-inline-start-to-truncated-menu: var(--spectrum-breadcrumbs-start-edge-to-truncated-menu); - /* menu action button icon spacing */ - --spectrum-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator-icon); - - /* action button spacing */ + /* Action button (truncated menu) spacing */ + --spectrum-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator); --spectrum-breadcrumbs-action-button-spacing-block: var(--spectrum-breadcrumbs-top-to-truncated-menu); - --spectrum-breadcrumbs-action-button-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); /* compact */ - - --spectrum-breadcrumbs-action-button-spacing-inline-start: var(--spectrum-breadcrumbs-start-edge-to-truncated-menu); /* if icon is first item */ - --spectrum-breadcrumbs-action-button-spacing-block-multiline: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); /* multiline */ - --spectrum-breadcrumbs-action-button-spacing-block-between-multiline: var(--spectrum-breadcrumbs-truncated-menu-to-bottom-text); /* multiline */ - - /* Focus Indicator */ + /* Focus indicator */ --spectrum-breadcrumbs-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-breadcrumbs-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - - /* placeholder for border radius for focus indicator */ - --spectrum-breadcrumbs-item-link-border-radius: var(--spectrum-corner-radius-100); + --spectrum-breadcrumbs-item-link-border-radius: var(--spectrum-corner-radius-small-default); /* Colors */ --spectrum-breadcrumbs-text-color: var(--spectrum-neutral-subdued-content-color-default); @@ -102,72 +60,63 @@ --spectrum-breadcrumbs-separator-color: var(--spectrum-neutral-content-color-default); --spectrum-breadcrumbs-action-button-color: var(--spectrum-neutral-subdued-content-color-default); --spectrum-breadcrumbs-action-button-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-breadcrumbs-focus-indicator-color: var(--spectrum-focus-indicator-color); + --spectrum-breadcrumbs-item-dragged-background: rgba(var(--spectrum-drop-zone-background-color-rgb), var(--spectrum-drop-zone-background-color-opacity)); + + /* Sub-component: heading */ + --mod-heading-margin-end: 0px; + --mod-heading-margin-start: 0px; } -/* windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Breadcrumbs { - --highcontrast-breadcrumbs-text-color: LinkText; - --highcontrast-breadcrumbs-text-color-current: CanvasText; - --highcontrast-breadcrumbs-text-color-disabled: GrayText; - --highcontrast-breadcrumbs-separator-color: CanvasText; - --highcontrast-breadcrumbs-action-button-color: LinkText; - --highcontrast-breadcrumbs-action-button-color-disabled: GrayText; +.spectrum-Breadcrumbs--sizeL { + --spectrum-breadcrumbs-block-size: var(--spectrum-component-height-200); + --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-200); + --spectrum-breadcrumbs-font-size-current: var(--spectrum-font-size-200); - --highcontrast-breadcrumbs-focus-indicator-color: CanvasText; - } + --spectrum-breadcrumbs-separator-spacing-inline: var(--spectrum-breadcrumbs-text-to-separator-large); + --spectrum-breadcrumbs-text-spacing-block-start: var(--spectrum-component-top-to-text-200); + --spectrum-breadcrumbs-text-spacing-block-end: var(--spectrum-component-bottom-to-text-200); + --spectrum-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-large); + --spectrum-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text-large); +} + +.spectrum-Breadcrumbs--multiline { + --spectrum-breadcrumbs-block-size: var(--spectrum-breadcrumbs-height-multiline); + --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-75); + --spectrum-breadcrumbs-font-size-current: var(--spectrum-heading-size-l); + --spectrum-breadcrumbs-font-weight-current: var(--spectrum-extra-bold-font-weight); + + --spectrum-breadcrumbs-separator-spacing-inline: var(--spectrum-breadcrumbs-text-to-separator-multiline); + --spectrum-breadcrumbs-text-spacing-block-start: var(--spectrum-breadcrumbs-top-to-text-multiline); + --spectrum-breadcrumbs-text-spacing-block-end: var(--spectrum-breadcrumbs-top-text-to-bottom-text); + --spectrum-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-multiline) var(--spectrum-breadcrumbs-separator-to-bottom-text-multiline); + --spectrum-breadcrumbs-title-spacing-block-start: 0; + --spectrum-breadcrumbs-title-spacing-block-end: var(--spectrum-breadcrumbs-bottom-to-text-multiline); + --spectrum-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text-multiline); + --spectrum-breadcrumbs-action-button-spacing-block: var(--spectrum-breadcrumbs-top-to-truncated-menu) var(--spectrum-breadcrumbs-truncated-menu-to-bottom-text); } .spectrum-Breadcrumbs { list-style-type: none; - margin: 0; - padding-inline-start: var(--mod-breadcrumbs-inline-start, var(--spectrum-breadcrumbs-inline-start)); - padding-inline-end: var(--mod-breadcrumbs-inline-end, var(--spectrum-breadcrumbs-inline-end)); + padding-inline: 0 var(--mod-breadcrumbs-inline-end, var(--spectrum-breadcrumbs-inline-end)); + block-size: var(--mod-breadcrumbs-block-size, var(--spectrum-breadcrumbs-block-size)); display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start; - flex: 1 0 0%; - - block-size: var(--mod-breadcrumbs-block-size, var(--spectrum-breadcrumbs-block-size)); -} - -.spectrum-Breadcrumbs--compact { - block-size: var(--mod-breadcrumbs-block-size-compact, var(--spectrum-breadcrumbs-block-size-compact)); -} - -.spectrum-Breadcrumbs--multiline { - block-size: var(--mod-breadcrumbs-block-size-multiline, var(--spectrum-breadcrumbs-block-size-multiline)); - - flex-wrap: wrap; - align-content: center; } .spectrum-Breadcrumbs-itemSeparator { position: relative; - margin-block: var(--mod-breadcrumbs-icon-spacing-block, var(--spectrum-breadcrumbs-icon-spacing-block)); - margin-inline: var(--mod-breadcrumbs-separator-spacing-inline, var(--spectrum-breadcrumbs-separator-spacing-inline)); - opacity: 1; color: var(--highcontrast-breadcrumbs-separator-color, var(--mod-breadcrumbs-separator-color, var(--spectrum-breadcrumbs-separator-color))); &:dir(rtl) { transform: scaleX(-1); } - - .spectrum-Breadcrumbs--compact & { - margin-block: var(--mod-breadcrumbs-icon-spacing-block-compact, var(--spectrum-breadcrumbs-icon-spacing-block-compact)); - } - - .spectrum-Breadcrumbs--multiline & { - margin-block-start: var(--mod-breadcrumbs-icon-spacing-block-start-multiline, var(--spectrum-breadcrumbs-icon-spacing-block-start-multiline)); - margin-block-end: var(--mod-breadcrumbs-icon-spacing-block-between-multiline, var(--spectrum-breadcrumbs-icon-spacing-block-between-multiline)); - } } .spectrum-Breadcrumbs-item { @@ -175,40 +124,15 @@ position: relative; display: inline-flex; white-space: nowrap; - align-items: center; font-family: var(--mod-breadcrumbs-font-family, var(--spectrum-breadcrumbs-font-family)); font-size: var(--mod-breadcrumbs-font-size, var(--spectrum-breadcrumbs-font-size)); font-weight: var(--mod-breadcrumbs-font-weight, var(--spectrum-breadcrumbs-font-weight)); + font-style: var(--mod-breadcrumbs-font-style, var(--spectrum-breadcrumbs-font-style)); line-height: var(--mod-breadcrumbs-line-height, var(--spectrum-breadcrumbs-line-height)); - .spectrum-Breadcrumbs--compact & { - font-family: var(--mod-breadcrumbs-font-family-compact, var(--spectrum-breadcrumbs-font-family-compact)); - font-size: var(--mod-breadcrumbs-font-size-compact, var(--spectrum-breadcrumbs-font-size-compact)); - font-weight: var(--mod-breadcrumbs-font-weight-compact, var(--spectrum-breadcrumbs-font-weight-compact)); - - > .spectrum-ActionButton { - margin-block: var(--mod-breadcrumbs-action-button-spacing-block-compact, var(--spectrum-breadcrumbs-action-button-spacing-block-compact)); - } - } - - .spectrum-Breadcrumbs--multiline & { - font-family: var(--mod-breadcrumbs-font-family-multiline, var(--spectrum-breadcrumbs-font-family-multiline)); - font-size: var(--mod-breadcrumbs-font-size-multiline, var(--spectrum-breadcrumbs-font-size-multiline)); - font-weight: var(--mod-breadcrumbs-font-weight-multiline, var(--spectrum-breadcrumbs-font-weight-multiline)); - - &:last-of-type { - block-size: auto; - inline-size: 100%; - } - - > .spectrum-ActionButton { - margin-block-start: var(--mod-breadcrumbs-action-button-spacing-block-multiline, var(--spectrum-breadcrumbs-action-button-spacing-block-multiline)); - margin-block-end: var(--mod-breadcrumbs-action-button-spacing-block-between-multiline, var(--spectrum-breadcrumbs-action-button-spacing-block-between-multiline)); - } - } - + /* Breadcrumbs title (current item) */ &:last-of-type { font-family: var(--mod-breadcrumbs-font-family-current, var(--spectrum-breadcrumbs-font-family-current)); font-size: var(--mod-breadcrumbs-font-size-current, var(--spectrum-breadcrumbs-font-size-current)); @@ -219,27 +143,10 @@ } } - .spectrum-Breadcrumbs--compact &:last-of-type { - font-family: var(--mod-breadcrumbs-font-family-compact-current, var(--spectrum-breadcrumbs-font-family-compact-current)); - font-size: var(--mod-breadcrumbs-font-size-compact-current, var(--spectrum-breadcrumbs-font-size-compact-current)); - font-weight: var(--mod-breadcrumbs-font-weight-compact-current, var(--spectrum-breadcrumbs-font-weight-compact-current)); - } - - .spectrum-Breadcrumbs--multiline &:last-of-type { - font-family: var(--mod-breadcrumbs-font-family-multiline-current, var(--spectrum-breadcrumbs-font-family-multiline-current)); - font-size: var(--mod-breadcrumbs-font-size-multiline-current, var(--spectrum-breadcrumbs-font-size-multiline-current)); - font-weight: var(--mod-breadcrumbs-font-weight-multiline-current, var(--spectrum-breadcrumbs-font-weight-multiline-current)); - - .spectrum-Breadcrumbs-itemLink { - margin-block-start: 0; - margin-block-end: var(--mod-breadcrumbs-text-spacing-block-end-multiline, var(--spectrum-breadcrumbs-text-spacing-block-end-multiline)); - } - } - + /* Truncated menu */ > .spectrum-ActionButton { margin-inline: var(--mod-breadcrumbs-action-button-spacing-inline, var(--spectrum-breadcrumbs-action-button-spacing-inline)); margin-block: var(--mod-breadcrumbs-action-button-spacing-block, var(--spectrum-breadcrumbs-action-button-spacing-block)); - color: var(--highcontrast-breadcrumbs-action-button-color, var(--mod-breadcrumbs-action-button-color, var(--spectrum-breadcrumbs-action-button-color))); &:disabled { @@ -247,10 +154,14 @@ } } + /* Start edge to text or truncated menu */ &:first-of-type { - /* if folder icon is first item */ + > .spectrum-Breadcrumbs-itemLink { + margin-inline-start: var(--mod-breadcrumbs-inline-start, var(--spectrum-breadcrumbs-inline-start)); + } + > .spectrum-ActionButton { - margin-inline-start: var(--mod-breadcrumbs-action-button-spacing-inline-start, var(--spectrum-breadcrumbs-action-button-spacing-inline-start)); + margin-inline-start: var(--mod-breadcrumbs-inline-start-to-truncated-menu, var(--spectrum-breadcrumbs-inline-start-to-truncated-menu)); } } } @@ -258,46 +169,43 @@ .spectrum-Breadcrumbs-itemLink { cursor: default; position: relative; - box-sizing: border-box; - display: block; - border-radius: var(--mod-breadcrumbs-item-link-border-radius, var(--spectrum-breadcrumbs-item-link-border-radius)); /* placeholder for token */ outline: none; - text-decoration: none; color: var(--highcontrast-breadcrumbs-text-color, var(--mod-breadcrumbs-text-color, var(--spectrum-breadcrumbs-text-color))); + /* Create new stacking context for negative z-index dragged pseudo element. */ + isolation: isolate; + margin-block-start: var(--mod-breadcrumbs-text-spacing-block-start, var(--spectrum-breadcrumbs-text-spacing-block-start)); margin-block-end: var(--mod-breadcrumbs-text-spacing-block-end, var(--spectrum-breadcrumbs-text-spacing-block-end)); + margin-inline-start: var(--mod-breadcrumbs-separator-spacing-inline, var(--spectrum-breadcrumbs-separator-spacing-inline)); &.is-disabled, &[aria-disabled="true"] { color: var(--highcontrast-breadcrumbs-text-color-disabled, var(--mod-breadcrumbs-text-color-disabled, var(--spectrum-breadcrumbs-text-color-disabled))); } + /* Breadcrumbs title (current item) */ .spectrum-Breadcrumbs-item:last-of-type & { color: var(--highcontrast-breadcrumbs-text-color-current, var(--mod-breadcrumbs-text-color-current, var(--spectrum-breadcrumbs-text-color-current))); + margin-block-start: var(--mod-breadcrumbs-title-spacing-block-start, var(--spectrum-breadcrumbs-title-spacing-block-start)); + margin-block-end: var(--mod-breadcrumbs-title-spacing-block-end, var(--spectrum-breadcrumbs-title-spacing-block-end)); } - .spectrum-Breadcrumbs--compact & { - /* compact vertical spacing */ - margin-block-start: var(--mod-breadcrumbs-text-spacing-block-start-compact, var(--spectrum-breadcrumbs-text-spacing-block-start-compact)); - margin-block-end: var(--mod-breadcrumbs-text-spacing-block-end-compact, var(--spectrum-breadcrumbs-text-spacing-block-end-compact)); - } - - .spectrum-Breadcrumbs--multiline & { - /* multiline vertical spacing */ - margin-block-start: var(--mod-breadcrumbs-text-spacing-block-start-multiline, var(--spectrum-breadcrumbs-text-spacing-block-start-multiline)); - margin-block-end: var(--mod-breadcrumbs-text-spacing-block-between-multiline, var(--spectrum-breadcrumbs-text-spacing-block-between-multiline)); /* vertical between lines */ + + .spectrum-Breadcrumbs-itemSeparator { + margin-inline-start: var(--mod-breadcrumbs-separator-spacing-inline, var(--spectrum-breadcrumbs-separator-spacing-inline)); } + /* Link is focusable */ &[href], &[tabindex="0"] { cursor: pointer; &:hover, + &:active, &:focus-visible { text-decoration: underline; text-decoration-thickness: var(--mod-breadcrumbs-text-decoration-thickness, var(--spectrum-breadcrumbs-text-decoration-thickness)); @@ -306,10 +214,12 @@ } } -/* focus indicator */ +/* Focus indicator */ .spectrum-Breadcrumbs-item.is-dragged .spectrum-Breadcrumbs-itemLink::before, .spectrum-Breadcrumbs-itemLink:focus-visible::before { position: absolute; + content: ""; + pointer-events: none; margin-inline-start: calc((var(--mod-breadcrumbs-focus-indicator-gap, var(--spectrum-breadcrumbs-focus-indicator-gap)) + var(--mod-breadcrumbs-focus-indicator-thickness, var(--spectrum-breadcrumbs-focus-indicator-thickness))) * -1); margin-block-start: calc((var(--mod-breadcrumbs-focus-indicator-gap, var(--spectrum-breadcrumbs-focus-indicator-gap)) + var(--mod-breadcrumbs-focus-indicator-thickness, var(--spectrum-breadcrumbs-focus-indicator-thickness))) * -1); @@ -322,9 +232,40 @@ border-width: var(--mod-breadcrumbs-focus-indicator-thickness, var(--spectrum-breadcrumbs-focus-indicator-thickness)); border-style: solid; border-radius: var(--mod-breadcrumbs-item-link-border-radius, var(--spectrum-breadcrumbs-item-link-border-radius)); + border-color: var(--highcontrast-breadcrumbs-focus-indicator-color, var(--mod-breadcrumbs-focus-indicator-color, var(--spectrum-breadcrumbs-focus-indicator-color))); +} - content: ""; - pointer-events: none; +.spectrum-Breadcrumbs-item.is-dragged .spectrum-Breadcrumbs-itemLink::before { + background: var(--mod-breadcrumbs-item-dragged-background, var(--spectrum-breadcrumbs-item-dragged-background)); - border-color: var(--highcontrast-breadcrumbs-focus-indicator-color, var(--mod-breadcrumbs-focus-indicator-color, var(--spectrum-breadcrumbs-focus-indicator-color))); + /* Make sure the background color does not appear on top of the text. */ + z-index: -1; +} + +/* Multiline */ +.spectrum-Breadcrumbs--multiline { + flex-wrap: wrap; + align-content: center; + + /* The multiline title takes up the full width and appears below the other breadcrumb items. */ + .spectrum-Breadcrumbs-item:last-of-type { + block-size: auto; + inline-size: 100%; + + > .spectrum-Breadcrumbs-itemLink { + margin-inline-start: var(--mod-breadcrumbs-inline-start, var(--spectrum-breadcrumbs-inline-start)); + } + } +} + +@media (forced-colors: active) { + .spectrum-Breadcrumbs { + --highcontrast-breadcrumbs-text-color: LinkText; + --highcontrast-breadcrumbs-text-color-current: CanvasText; + --highcontrast-breadcrumbs-text-color-disabled: GrayText; + --highcontrast-breadcrumbs-separator-color: CanvasText; + --highcontrast-breadcrumbs-action-button-color: LinkText; + --highcontrast-breadcrumbs-action-button-color-disabled: GrayText; + --highcontrast-breadcrumbs-focus-indicator-color: CanvasText; + } } diff --git a/components/breadcrumb/package.json b/components/breadcrumb/package.json index 2172a785711..c21d387a809 100644 --- a/components/breadcrumb/package.json +++ b/components/breadcrumb/package.json @@ -25,9 +25,9 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/actionbutton": { @@ -40,11 +40,7 @@ "devDependencies": { "@spectrum-css/actionbutton": "7.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/breadcrumb/stories/breadcrumb.stories.js b/components/breadcrumb/stories/breadcrumb.stories.js index a25c76c285c..84302d77c29 100644 --- a/components/breadcrumb/stories/breadcrumb.stories.js +++ b/components/breadcrumb/stories/breadcrumb.stories.js @@ -1,44 +1,136 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes"; -import { isDragged } from "@spectrum-css/preview/types"; +import { isDragged, size } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; import { BreadcrumbGroup } from "./breadcrumb.test.js"; -import { Template } from "./template.js"; +import { BreadcrumbTitleHeadings, Template } from "./template.js"; /** * Breadcrumbs show hierarchy and navigational context for a user's location within an app. - * - * ## Nesting - * Breadcrumbs truncate when there is not enough room to display all levels of the breadcrumb list, or as a way of managing relevance of the visible breadcrumb items in a deeply nested hierarchy. The truncation of breadcrumb items begins when either there is not enough room to display all items, or if there are 5 or more breadcrumbs to display. They are typically indicated by the truncated menu folder icon. - * - * The nested variants below are non-functional. Implementations can add their own overflow menus to display all options within a breadcrumb. - * - * ## Root Context - * Some applications find that displaying the root directory is useful for user orientation. This variation keeps the root visible when other folders are truncated into a menu. For example, when users can navigate file directories on their device as well as in the cloud, exposing a root directory called “On this device” is very helpful. */ export default { title: "Breadcrumbs", component: "Breadcrumbs", argTypes: { - items: { table: { disable: true } }, + items: { + name: "Breadcrumb items", + description: "Additional breadcrumb items after the nav root item, including their label text.<br>Advanced:<ul><li>To show an item as disabled, add a key named `isDisabled` with a value of `true`.</li><li>The \"Show dragged item\" control will affect the item with `isDragged` set to `true`.</li></ul>", + control: "array", + table: { + category: "Content", + }, + }, + size: { + ...size(["m", "l"]), + if: { arg: "variant", neq: "multiline" }, + }, variant: { - name: "Variants", + name: "Variant", type: { name: "string" }, defaultValue: "Default", table: { type: { summary: "string" }, category: "Component", - defaultValue: { summary: "Default" }, }, - options: ["default", "compact", "multiline"], - control: "select", + options: [undefined, "multiline"], + control: { + type: "select", + labels: { + undefined: "Default", + multiline: "Multiline", + }, + }, + }, + isDragged: { + ...isDragged, + name: "Show dragged item", + description: "Breadcrumbs can have optional behavior to allow for drag and drop functionality. Setting this to true will style a breadcrumb item as if something is currently being dragged on top of it.", + }, + titleHeadingSize: { + name: "Breadcrumb title heading size", + description: "The breadcrumb title can be customized in the multiline variant using an additional element that uses the typography component's heading classes. The preferred heading sizes are small, medium, large, and extra-large. When no heading classes are used, the text will be sized the same as a large heading by default.", + type: { name: "string" }, + table: { + type: { summary: "string" }, + category: "Content", + }, + control: { + type: "select", + labels: { + undefined: "Default", + s: "Small", + m: "Medium", + l: "Large", + xl: "Extra-large", + }, + }, + defaultValue: undefined, + options: [undefined, "s", "m", "l", "xl"], + if: { arg: "variant", eq: "multiline" }, + }, + showTruncatedMenu: { + name: "Show truncated menu", + description: "Displays a breadcrumb item with a folder icon, that would house truncated breadcrumb items.", + type: { name: "boolean" }, + table: { + type: { summary: "boolean" }, + category: "State", + }, + control: "boolean", + }, + showRootContext: { + name: "Show with root context", + description: "Includes a visible breadcrumb item before the truncated menu, for displaying a root directory.", + type: { name: "boolean" }, + table: { + type: { summary: "boolean" }, + category: "State", + }, + control: "boolean", + if: { arg: "showTruncatedMenu" }, + }, + truncatedMenuIsDisabled: { + name: "Show truncated menu as disabled", + type: { name: "boolean" }, + table: { + type: { summary: "boolean" }, + category: "State", + }, + control: "boolean", + if: { arg: "showTruncatedMenu" }, + }, + rootItemText: { + name: "Root breadcrumb item label", + type: { name: "string" }, + defaultValue: "Nav root", + table: { + type: { summary: "string" }, + category: "Content", + }, + control: "text", }, - isDragged, }, args: { rootClass: "spectrum-Breadcrumbs", isDragged: false, - variant: "default", + variant: undefined, + size: "m", + showTruncatedMenu: false, + showRootContext: false, + truncatedMenuIsDisabled: false, + rootItemText: "Nav root", + items: [ + { + label: "Sub item", + isDragged: true, + }, + { + label: "Trend", + }, + { + label: "January 2019 assets", + }, + ], }, parameters: { design: { @@ -52,33 +144,21 @@ export default { /** * By default, breadcrumbs are displayed inline with the hierarchy shown in reading order. + * The medium size is used by default, and it should display the medium truncated menu action button. + * The separator UI icon displayed should be `Chevron100`. */ export const Default = BreadcrumbGroup.bind({}); -Default.args = { - items: [ - { - label: "Nav root", - }, - { - label: "Trend", - isDragged: true, - }, - { - label: "January 2019 assets", - }, - ], -}; +Default.args = {}; +/** + * Breadcrumbs truncate when there is not enough room to display all levels of the breadcrumb list, or as a way of managing relevance of the visible breadcrumb items in a deeply nested hierarchy. The truncation of breadcrumb items begins when either there is not enough room to display all items, or if there are 5 or more breadcrumbs to display. This truncated menu is an icon only action button that typically displays a folder icon. + * + * The nested variants below are non-functional. Implementations should make sure to follow the design guidelines for overflow behavior and displaying all options within the truncated menu. + */ export const DefaultNested = Template.bind({}); DefaultNested.args = { + showTruncatedMenu: true, items: [ - { - iconName: "FolderOpen", - iconSet: "workflow", - }, - { - label: "Sub item", - }, { label: "Trend", }, @@ -91,18 +171,18 @@ DefaultNested.tags = ["!dev"]; DefaultNested.parameters = { chromatic: { disableSnapshot: true }, }; -DefaultNested.storyName = "Default, nested"; +DefaultNested.storyName = "Default, nested (truncated menu)"; +/** + * Some applications find that displaying the root directory is useful for user orientation. This variation keeps the root visible when other folders are + * truncated into a menu. For example, when users can navigate file directories on their device as well as in the cloud, exposing a root directory + * called “On this device” is very helpful. + */ export const DefaultNestedRootVisible = Template.bind({}); DefaultNestedRootVisible.args = { + showTruncatedMenu: true, + showRootContext: true, items: [ - { - label: "Nav root", - }, - { - iconName: "FolderOpen", - iconSet: "workflow", - }, { label: "Trend", }, @@ -115,7 +195,7 @@ DefaultNestedRootVisible.tags = ["!dev"]; DefaultNestedRootVisible.parameters = { chromatic: { disableSnapshot: true }, }; -DefaultNestedRootVisible.storyName = "Default, nested (root visible)"; +DefaultNestedRootVisible.storyName = "Default, nested with root context"; /** * The multiline variation places emphasis on the selected breadcrumb item as a page title, helping a user to more clearly identify their current location. @@ -135,7 +215,7 @@ MultilineNested.args = { ...DefaultNested.args, variant: "multiline", }; -MultilineNested.storyName = "Multiline, nested"; +MultilineNested.storyName = "Multiline, nested (truncated menu)"; MultilineNested.tags= ["!dev"]; MultilineNested.parameters = { chromatic: { disableSnapshot: true }, @@ -150,45 +230,47 @@ MultilineNestedRootVisible.tags = ["!dev"]; MultilineNestedRootVisible.parameters = { chromatic: { disableSnapshot: true }, }; -MultilineNestedRootVisible.storyName = "Multiline, nested (root visible)"; +MultilineNestedRootVisible.storyName = "Multiline, nested with root context"; /** - * When needing to optimize for functional space, the compact option is useful for reducing the height of the breadcrumbs while still maintaining the proper user context. + * When using the large size, the truncated menu action button should also use the large size. The separator UI icon displayed should be `Chevron100`. */ -export const Compact = Template.bind({}); -Compact.args = { +export const Large = Template.bind({}); +Large.args = { ...Default.args, - variant: "compact", + size: "l", }; -Compact.tags = ["!dev"]; -Compact.parameters = { +Large.tags = ["!dev"]; +Large.parameters = { chromatic: { disableSnapshot: true }, }; -export const CompactNested = Template.bind({}); -CompactNested.args = { +export const LargeNested = Template.bind({}); +LargeNested.args = { ...DefaultNested.args, - variant: "compact", + size: "l", }; -CompactNested.tags = ["!dev"]; -CompactNested.parameters = { +LargeNested.tags = ["!dev"]; +LargeNested.parameters = { chromatic: { disableSnapshot: true }, }; -CompactNested.storyName = "Compact, nested"; +LargeNested.storyName = "Large, nested (truncated menu)"; -export const CompactNestedRootVisible = Template.bind({}); -CompactNestedRootVisible.args = { +export const LargeNestedRootVisible = Template.bind({}); +LargeNestedRootVisible.args = { ...DefaultNestedRootVisible.args, - variant: "compact", + size: "l", }; -CompactNestedRootVisible.tags = ["!dev"]; -CompactNestedRootVisible.parameters = { +LargeNestedRootVisible.tags = ["!dev"]; +LargeNestedRootVisible.parameters = { chromatic: { disableSnapshot: true }, }; -CompactNestedRootVisible.storyName = "Compact, nested (root visible)"; +LargeNestedRootVisible.storyName = "Large, nested with root context"; /** * Breadcrumbs can have optional behavior to allow for drag and drop functionality. + * When a breadcrumb item has something being dragged on top of it, the class `is-dragged` is added to it. + * This example adds that class to the second breadcrumb item. */ export const Dragged = Template.bind({}); Dragged.args = { @@ -201,21 +283,16 @@ Dragged.parameters = { }; /** - * The example below has two disabled breadcrumb items. When disabling the text link, the `is-disabled` class gets added to `.spectrum-Breadcrumbs-itemLink`. When disabling the Action button, the `[disabled]` attribute is applied. + * The example below has two disabled breadcrumb items. When disabling the text link, the `is-disabled` class + * gets added to `.spectrum-Breadcrumbs-itemLink`. When disabling the truncated menu action button, the `[disabled]` attribute is applied. */ export const Disabled = Template.bind({}); Disabled.args = { + showTruncatedMenu: true, + truncatedMenuIsDisabled: true, items: [ { - label: "Nav root", - }, - { - iconName: "FolderOpen", - iconSet: "workflow", - isDisabled: true, - }, - { - label: "Trendy", + label: "Trend", isDisabled: true, }, { @@ -228,6 +305,23 @@ Disabled.parameters = { chromatic: { disableSnapshot: true }, }; +/** + * For the multiline variant, the breadcrumb title can be customized using an additional element that uses the heading classes from + * the [typography component](/docs/components-typography--docs). The preferred heading sizes are `.spectrum-Heading--sizeS`, + * `.spectrum-Heading--sizeM`, `.spectrum-Heading--sizeL` (default), and `.spectrum-Heading--sizeXL`. If no heading element or classes are + * used, the text will be sized the same as a large heading by default. + */ +export const MultilineTitleSizes = BreadcrumbTitleHeadings.bind({}); +MultilineTitleSizes.args = { + ...Multiline.args, + showTruncatedMenu: true, +}; +MultilineTitleSizes.storyName = "Multiline, title heading sizes"; +MultilineTitleSizes.tags = ["!dev"]; +MultilineTitleSizes.parameters = { + chromatic: { disableSnapshot: true }, +}; + // ********* VRT ONLY ********* // export const WithForcedColors = BreadcrumbGroup.bind({}); WithForcedColors.args = Default.args; diff --git a/components/breadcrumb/stories/breadcrumb.test.js b/components/breadcrumb/stories/breadcrumb.test.js index f5e33d71c58..ef56e21e722 100644 --- a/components/breadcrumb/stories/breadcrumb.test.js +++ b/components/breadcrumb/stories/breadcrumb.test.js @@ -1,109 +1,94 @@ import { Variants } from "@spectrum-css/preview/decorators"; -import { Template } from "./template.js"; - -const DefaultItems = [ - { - label: "Nav root", - }, - { - label: "Dragged", - isDragged: true, - }, - { - label: "Disabled sub item", - isDisabled: true, - }, - { - label: "January 2019 assets", - }, -]; - -const NestedItems = [ - { - iconName: "FolderOpen", - iconSet: "workflow", - }, - { - label: "Dragged", - isDragged: true, - }, - { - label: "Disabled", - isDisabled: true, - }, - { - label: "January 2019 assets", - }, -]; - -const NestedRootVisibleItems = [ - { - label: "Nav root", - }, - { - iconName: "FolderOpen", - iconSet: "workflow", - isDisabled: true, - }, - { - label: "Dragged sub item", - isDragged: true, - }, - { - label: "January 2019 assets", - }, -]; +import { BreadcrumbTitleHeadings, Template } from "./template.js"; export const BreadcrumbGroup = Variants({ Template, + withSizes: false, testData: [ { testHeading: "Default", - items: DefaultItems, - }, - { - testHeading: "Default (nested)", - items: NestedItems, }, { - testHeading: "Default (nested, root visible)", - items: NestedRootVisibleItems, + testHeading: "Large", + size: "l", }, { - testHeading: "Compact", - variant: "compact", - items: DefaultItems, + testHeading: "Multiline", + variant: "multiline", }, { - testHeading: "Compact (nested)", - variant: "compact", - items: NestedItems, + testHeading: "Multiline with typography headings", + variant: "multiline", + withStates: false, + Template: BreadcrumbTitleHeadings, + showTruncatedMenu: true, + showRootContext: true, + isDragged: true, }, + ], + stateData: [ { - testHeading: "Compact (nested, root visible)", - variant: "compact", - items: NestedRootVisibleItems, + testHeading: "Nested", + showTruncatedMenu: true, }, { - testHeading: "Multiline", - variant: "multiline", - items: DefaultItems, + testHeading: "Nested with root context", + showTruncatedMenu: true, + showRootContext: true, }, { - testHeading: "Multiline (nested)", - variant: "multiline", - items: NestedItems, + testHeading: "Disabled items and dragged item", + isDragged: true, + showTruncatedMenu: true, + truncatedMenuIsDisabled: true, + items: [ + { + label: "Dragged item", + isDragged: true, + }, + { + label: "Disabled sub item", + isDisabled: true, + }, + { + label: "January 2019 assets", + }, + ] }, { - testHeading: "Multiline (nested, root visible)", - variant: "multiline", - items: NestedRootVisibleItems, + testHeading: "Hover", + isDragged: true, + showTruncatedMenu: true, + items: [ + { + label: "Sub item", + isHovered: true, + }, + { + label: "Disabled sub item", + isDisabled: true, + isHovered: true, + }, + { + label: "January 2019 assets", + isHovered: true, + }, + ] }, - ], - stateData: [ { - testHeading: "Dragged, disabled", + testHeading: "Focus-visible", isDragged: true, - } + showTruncatedMenu: true, + items: [ + { + label: "Sub item", + isFocused: true, + }, + { + label: "January 2019 assets", + isFocused: true, + }, + ] + }, ] }); diff --git a/components/breadcrumb/stories/template.js b/components/breadcrumb/stories/template.js index 3f0db2ad30b..0a0ad48c0d9 100644 --- a/components/breadcrumb/stories/template.js +++ b/components/breadcrumb/stories/template.js @@ -1,5 +1,7 @@ import { Template as ActionButton } from "@spectrum-css/actionbutton/stories/template.js"; import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; +import { Container } from "@spectrum-css/preview/decorators"; +import { Template as Typography } from "@spectrum-css/typography/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -11,19 +13,43 @@ export const Template = ({ rootClass = "spectrum-Breadcrumbs", customClasses = [], items = [], + size = "m", variant, isDragged = false, + titleHeadingSize, + showTruncatedMenu = false, + showRootContext = false, + truncatedMenuIsDisabled = false, + rootItemText = "Nav root", } = {}, context = {}) => { + /** + * Build array of breadcrumb items. + * - The presence of the root item and truncated menu are dependent upon controls. + * - The rest of the items, including the current item, come from the `items` array. + */ + const breadcrumbItems = [ + ...(showTruncatedMenu == false || showRootContext == true) ? [{ + label: rootItemText, + }] : [], + ...(showTruncatedMenu == true) ? [{ + iconName: "FolderOpen", + iconSet: "workflow", + isDragged: true, + }] : [], + ...items, + ]; + return html` <nav> <ul class=${classMap({ [rootClass]: true, + [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined" && size !== "m", [`${rootClass}--${variant}`]: typeof variant !== "undefined", ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), })} > - ${items.map((item, idx, arr) => { + ${breadcrumbItems.map((item, idx, arr) => { const { label, isDisabled, iconName, iconSet } = item; return html` <li class=${classMap({ @@ -38,10 +64,10 @@ export const Template = ({ { iconName, iconSet, - isDisabled, + isDisabled: isDisabled || truncatedMenuIsDisabled, isQuiet: true, customIconClasses: [`${rootClass}-folder`], - size: "m", + size: variant === "multiline" ? "s" : size, }, context, ), @@ -53,6 +79,8 @@ export const Template = ({ class=${classMap({ [`${rootClass}-itemLink`]: true, "is-disabled": isDisabled, + "is-focus-visible": item.isFocused, + "is-hover": item.isHovered, })} aria-disabled=${ifDefined( isDisabled ? "true" : undefined, @@ -63,15 +91,24 @@ export const Template = ({ ${label} </div>`, () => - html`<a class="${rootClass}-itemLink" aria-current="page" - >${label}</a + html`<a + class=${classMap({ + [`${rootClass}-itemLink`]: true, + "is-hover": item.isHovered, + })} + aria-current="page" + >${ typeof titleHeadingSize == "undefined" ? label : Typography({ + semantics: "heading", + size: titleHeadingSize, + content: [label], + })}</a >`, ), )} ${when(idx !== arr.length - 1, () => Icon( { - iconName: "ChevronRight100", + iconName: variant == "multiline" ? "ChevronRight75" : "ChevronRight100", setName: "ui", customClasses: [`${rootClass}-itemSeparator`], }, @@ -84,3 +121,24 @@ export const Template = ({ </nav> `; }; + +/** + * Displays all preferred sizes for breadcrumb title headings used with the multiline variant. + */ +export const BreadcrumbTitleHeadings = (args, context) => Container({ + withBorder: false, + direction: "column", + wrapperStyles: { + rowGap: "12px", + }, + content: html`${[undefined, "s", "m", "l", "xl"].map((titleHeadingSize) => Container({ + withBorder: true, + heading: typeof titleHeadingSize != "undefined" + ? `Heading size: ${titleHeadingSize}` + : "Default - no heading element or classes", + content: Template({ + ...args, + titleHeadingSize, + }) + }, context))}`, +}, context); diff --git a/components/button/CHANGELOG.md b/components/button/CHANGELOG.md index 5362e33433f..f9cf718b601 100644 --- a/components/button/CHANGELOG.md +++ b/components/button/CHANGELOG.md @@ -1,5 +1,53 @@ # Change Log +## 14.0.0-next.8 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 14.0.0-next.7 + +### Patch Changes + +- [#2725](https://github.com/adobe/spectrum-css/pull/2725) [`81edcde`](https://github.com/adobe/spectrum-css/commit/81edcde7fc606acd86b2bdb4379e0d2f96a5e211) Thanks [@jawinn](https://github.com/jawinn)! - #### refactor: remove spectrum-ButtonWithFocusRing placeholder class extend + + Removes the need for the extend from this placeholder class, as the styles it provides have diverged slightly from what is in button and it was causing some unnecessary CSS to override. + This should not result in any changed visuals or behavior, as the same CSS has been integrated. + +## 14.0.0-next.6 + +### Major Changes + +- [#2600](https://github.com/adobe/spectrum-css/pull/2600) [`3559678`](https://github.com/adobe/spectrum-css/commit/35596780a1309dd145fa565461d330ddfaf50e68) Thanks [@jawinn](https://github.com/jawinn)! + +#### Spectrum 2 migration + +Button now uses Spectrum 2 tokens and specifications, which includes many color changes to all variants. A few other notable changes: + +- Outline buttons are no longer available in accent and negative options — use the filled variant instead. +- Medium size is now the default. The class `.spectrum-Button--sizeM` is now unnecessary for this size, and has been removed. +- The `.spectrum-Button--fill` class is no longer needed and has been removed. + +The following `--mod` custom properties have been renamed: + +- `--mod-line-height-100` has been renamed to `--mod-button-line-height` +- `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family` +- `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration` +- `--mod-bold-font-weight` has been renamed to `--mod-button-font-weight` + +## 14.0.0-next.5 + +### Patch Changes + +- Updated peerDependencies [[`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d)]: + - @spectrum-css/icon@>=7 + - @spectrum-css/progresscircle@>=3 + - @spectrum-css/tokens@>=14 + ## 14.0.1 ### Patch Changes @@ -157,22 +205,11 @@ Output for all component CSS files is now being run through a lightweight optimizer (cssnano) which significantly reduces unnecessary whitespace. These changes reduce file size but should not have any impact on the rendering of the component. By removing unnecessary whitespace from var functions, we are making it easier to effectively minify our provided CSS assets. -### Patch Changes - -- Updated peerDependencies [[`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d)]: - - @spectrum-css/icon@>=7 - - @spectrum-css/progresscircle@>=3 - - @spectrum-css/tokens@>=14 - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - <a name="13.0.0"></a> ## 13.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.2...@spectrum-css/button@13.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.2...@spectrum-css/button@13.0.0) ### ✨ Features @@ -196,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 12.0.2 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.1...@spectrum-css/button@12.0.2) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.1...@spectrum-css/button@12.0.2) **Note:** Version bump only for package @spectrum-css/button @@ -205,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 12.0.1 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.0...@spectrum-css/button@12.0.1) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@12.0.0...@spectrum-css/button@12.0.1) **Note:** Version bump only for package @spectrum-css/button @@ -214,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 12.0.0 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.3.1...@spectrum-css/button@12.0.0) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.3.1...@spectrum-css/button@12.0.0) ### 🐛 Bug fixes @@ -264,8 +298,7 @@ intended workflow sizes. ## 11.3.1 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.3.0...@spectrum-css/button@11.3.1) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.3.0...@spectrum-css/button@11.3.1) **Note:** Version bump only for package @spectrum-css/button @@ -273,8 +306,7 @@ intended workflow sizes. ## 11.3.0 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.2.1...@spectrum-css/button@11.3.0) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.2.1...@spectrum-css/button@11.3.0) ### ✨ Features @@ -284,8 +316,7 @@ intended workflow sizes. ## 11.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/button @@ -293,8 +324,7 @@ intended workflow sizes. ## 11.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.1.0...@spectrum-css/button@11.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.1.0...@spectrum-css/button@11.2.0) **Note:** Version bump only for package @spectrum-css/button @@ -302,8 +332,7 @@ intended workflow sizes. ## 11.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.19...@spectrum-css/button@11.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.19...@spectrum-css/button@11.1.0) ### ✨ Features @@ -317,8 +346,7 @@ intended workflow sizes. ## 11.0.19 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.18...@spectrum-css/button@11.0.19) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.18...@spectrum-css/button@11.0.19) **Note:** Version bump only for package @spectrum-css/button @@ -326,8 +354,7 @@ intended workflow sizes. ## 11.0.18 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.17...@spectrum-css/button@11.0.18) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.17...@spectrum-css/button@11.0.18) **Note:** Version bump only for package @spectrum-css/button @@ -335,8 +362,7 @@ intended workflow sizes. ## 11.0.17 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.16...@spectrum-css/button@11.0.17) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.16...@spectrum-css/button@11.0.17) **Note:** Version bump only for package @spectrum-css/button @@ -344,8 +370,7 @@ intended workflow sizes. ## 11.0.16 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.14...@spectrum-css/button@11.0.16) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.14...@spectrum-css/button@11.0.16) **Note:** Version bump only for package @spectrum-css/button @@ -353,8 +378,7 @@ intended workflow sizes. ## 11.0.15 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.14...@spectrum-css/button@11.0.15) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.14...@spectrum-css/button@11.0.15) **Note:** Version bump only for package @spectrum-css/button @@ -362,8 +386,7 @@ intended workflow sizes. ## 11.0.14 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.13...@spectrum-css/button@11.0.14) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.13...@spectrum-css/button@11.0.14) **Note:** Version bump only for package @spectrum-css/button @@ -371,8 +394,7 @@ intended workflow sizes. ## 11.0.13 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.12...@spectrum-css/button@11.0.13) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.12...@spectrum-css/button@11.0.13) **Note:** Version bump only for package @spectrum-css/button @@ -380,8 +402,7 @@ intended workflow sizes. ## 11.0.12 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.11...@spectrum-css/button@11.0.12) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.11...@spectrum-css/button@11.0.12) **Note:** Version bump only for package @spectrum-css/button @@ -389,8 +410,7 @@ intended workflow sizes. ## 11.0.11 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.10...@spectrum-css/button@11.0.11) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.10...@spectrum-css/button@11.0.11) **Note:** Version bump only for package @spectrum-css/button @@ -398,8 +418,7 @@ intended workflow sizes. ## 11.0.10 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.9...@spectrum-css/button@11.0.10) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.9...@spectrum-css/button@11.0.10) **Note:** Version bump only for package @spectrum-css/button @@ -407,8 +426,7 @@ intended workflow sizes. ## 11.0.9 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.8...@spectrum-css/button@11.0.9) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.8...@spectrum-css/button@11.0.9) **Note:** Version bump only for package @spectrum-css/button @@ -416,8 +434,7 @@ intended workflow sizes. ## 11.0.8 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.7...@spectrum-css/button@11.0.8) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.7...@spectrum-css/button@11.0.8) **Note:** Version bump only for package @spectrum-css/button @@ -425,8 +442,7 @@ intended workflow sizes. ## 11.0.7 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.6...@spectrum-css/button@11.0.7) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.6...@spectrum-css/button@11.0.7) **Note:** Version bump only for package @spectrum-css/button @@ -434,8 +450,7 @@ intended workflow sizes. ## 11.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.5...@spectrum-css/button@11.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.5...@spectrum-css/button@11.0.6) **Note:** Version bump only for package @spectrum-css/button @@ -443,8 +458,7 @@ intended workflow sizes. ## 11.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.4...@spectrum-css/button@11.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.4...@spectrum-css/button@11.0.5) **Note:** Version bump only for package @spectrum-css/button @@ -452,8 +466,7 @@ intended workflow sizes. ## 11.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.3...@spectrum-css/button@11.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.3...@spectrum-css/button@11.0.4) ### 🔙 Reverts @@ -463,8 +476,7 @@ intended workflow sizes. ## 11.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.2...@spectrum-css/button@11.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.2...@spectrum-css/button@11.0.3) **Note:** Version bump only for package @spectrum-css/button @@ -472,8 +484,7 @@ intended workflow sizes. ## 11.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.0...@spectrum-css/button@11.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.0...@spectrum-css/button@11.0.2) **Note:** Version bump only for package @spectrum-css/button @@ -481,8 +492,7 @@ intended workflow sizes. ## 11.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.0...@spectrum-css/button@11.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@11.0.0...@spectrum-css/button@11.0.1) **Note:** Version bump only for package @spectrum-css/button @@ -490,13 +500,11 @@ intended workflow sizes. ## 11.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.14...@spectrum-css/button@11.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.14...@spectrum-css/button@11.0.0) \*refactor(button)!: replace focus-ring with focus-visible([5ec4849](https://github.com/adobe/spectrum-css/commit/5ec4849)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use native focus-visible pseudo class for focus styling on button and basebutton @@ -505,8 +513,7 @@ intended workflow sizes. ## 10.1.14 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.13...@spectrum-css/button@10.1.14) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.13...@spectrum-css/button@10.1.14) **Note:** Version bump only for package @spectrum-css/button @@ -514,8 +521,7 @@ intended workflow sizes. ## 10.1.13 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.12...@spectrum-css/button@10.1.13) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.12...@spectrum-css/button@10.1.13) **Note:** Version bump only for package @spectrum-css/button @@ -523,8 +529,7 @@ intended workflow sizes. ## 10.1.12 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.11...@spectrum-css/button@10.1.12) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.11...@spectrum-css/button@10.1.12) **Note:** Version bump only for package @spectrum-css/button @@ -532,8 +537,7 @@ intended workflow sizes. ## 10.1.11 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.10...@spectrum-css/button@10.1.11) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.10...@spectrum-css/button@10.1.11) **Note:** Version bump only for package @spectrum-css/button @@ -541,8 +545,7 @@ intended workflow sizes. ## 10.1.10 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.9...@spectrum-css/button@10.1.10) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.9...@spectrum-css/button@10.1.10) **Note:** Version bump only for package @spectrum-css/button @@ -550,8 +553,7 @@ intended workflow sizes. ## 10.1.9 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.8...@spectrum-css/button@10.1.9) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.8...@spectrum-css/button@10.1.9) ### 🐛 Bug fixes @@ -561,8 +563,7 @@ intended workflow sizes. ## 10.1.8 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.7...@spectrum-css/button@10.1.8) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.7...@spectrum-css/button@10.1.8) **Note:** Version bump only for package @spectrum-css/button @@ -570,8 +571,7 @@ intended workflow sizes. ## 10.1.7 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.6...@spectrum-css/button@10.1.7) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.6...@spectrum-css/button@10.1.7) **Note:** Version bump only for package @spectrum-css/button @@ -579,8 +579,7 @@ intended workflow sizes. ## 10.1.6 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.5...@spectrum-css/button@10.1.6) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.5...@spectrum-css/button@10.1.6) **Note:** Version bump only for package @spectrum-css/button @@ -588,8 +587,7 @@ intended workflow sizes. ## 10.1.5 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.4...@spectrum-css/button@10.1.5) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.4...@spectrum-css/button@10.1.5) **Note:** Version bump only for package @spectrum-css/button @@ -597,8 +595,7 @@ intended workflow sizes. ## 10.1.4 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.3...@spectrum-css/button@10.1.4) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.3...@spectrum-css/button@10.1.4) ### 🐛 Bug fixes @@ -608,8 +605,7 @@ intended workflow sizes. ## 10.1.3 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.2...@spectrum-css/button@10.1.3) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.2...@spectrum-css/button@10.1.3) **Note:** Version bump only for package @spectrum-css/button @@ -617,8 +613,7 @@ intended workflow sizes. ## 10.1.2 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.1...@spectrum-css/button@10.1.2) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/button@10.1.1...@spectrum-css/button@10.1.2) **Note:** Version bump only for package @spectrum-css/button diff --git a/components/button/dist/metadata.json b/components/button/dist/metadata.json index 1a77f387fc3..24193c867d8 100644 --- a/components/button/dist/metadata.json +++ b/components/button/dist/metadata.json @@ -6,54 +6,38 @@ ".spectrum-Button .spectrum-Icon", ".spectrum-Button .spectrum-Icon + .spectrum-Button-label", ".spectrum-Button .spectrum-ProgressCircle", - ".spectrum-Button--noWrap .spectrum-Button-label", ".spectrum-Button--sizeL", - ".spectrum-Button--sizeM", ".spectrum-Button--sizeS", + ".spectrum-Button--sizeS.spectrum-Button--iconOnly", ".spectrum-Button--sizeXL", ".spectrum-Button-label", ".spectrum-Button-label:empty", ".spectrum-Button.is-disabled", + ".spectrum-Button.is-focused", ".spectrum-Button.is-focused:after", ".spectrum-Button.is-pending", ".spectrum-Button.is-pending .spectrum-Button-label", ".spectrum-Button.is-pending .spectrum-Icon", ".spectrum-Button.is-pending .spectrum-ProgressCircle", - ".spectrum-Button.is-selected", - ".spectrum-Button.is-selected.spectrum-Button--emphasized", ".spectrum-Button.spectrum-Button--accent", - ".spectrum-Button.spectrum-Button--accent.spectrum-Button--fill", - ".spectrum-Button.spectrum-Button--accent.spectrum-Button--outline", + ".spectrum-Button.spectrum-Button--accent .spectrum-Button-label", ".spectrum-Button.spectrum-Button--iconOnly", ".spectrum-Button.spectrum-Button--iconOnly .spectrum-Icon", ".spectrum-Button.spectrum-Button--iconOnly:after", ".spectrum-Button.spectrum-Button--negative", - ".spectrum-Button.spectrum-Button--negative.spectrum-Button--outline", ".spectrum-Button.spectrum-Button--outline", ".spectrum-Button.spectrum-Button--primary", ".spectrum-Button.spectrum-Button--primary.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--quiet", ".spectrum-Button.spectrum-Button--secondary", ".spectrum-Button.spectrum-Button--secondary.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--secondary:not(.spectrum-Button--outline)", ".spectrum-Button.spectrum-Button--staticBlack", - ".spectrum-Button.spectrum-Button--staticBlack.is-selected", ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--outline:not(.spectrum-Button--secondary)", - ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--quiet", ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary", ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary:not(.spectrum-Button--outline)", ".spectrum-Button.spectrum-Button--staticWhite", - ".spectrum-Button.spectrum-Button--staticWhite.is-selected", - ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--accent", ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--outline.spectrum-Button--secondary", - ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--outline:not(.spectrum-Button--secondary)", - ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--quiet", ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary", ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary.spectrum-Button--outline", - ".spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary:not(.spectrum-Button--outline)", ".spectrum-Button::-moz-focus-inner", ".spectrum-Button:active", ".spectrum-Button:after", @@ -62,6 +46,8 @@ ".spectrum-Button:focus-visible", ".spectrum-Button:focus-visible:after", ".spectrum-Button:hover", + ".spectrum-Button:not(.spectrum-Button--primary, .spectrum-Button--negative, .spectrum-Button--secondary, .spectrum-Button--staticBlack, .spectrum-Button--staticWhite)", + ".spectrum-Button:not(.spectrum-Button--primary, .spectrum-Button--negative, .spectrum-Button--secondary, .spectrum-Button--staticBlack, .spectrum-Button--staticWhite) .spectrum-Button-label", ".spectrum-Button[pending]", ".spectrum-Button[pending] .spectrum-Button-label", ".spectrum-Button[pending] .spectrum-Icon", @@ -69,8 +55,6 @@ "a.spectrum-Button" ], "modifiers": [ - "--mod-animation-duration-100", - "--mod-bold-font-weight", "--mod-button-animation-duration", "--mod-button-background-color-default", "--mod-button-background-color-disabled", @@ -93,31 +77,25 @@ "--mod-button-edge-to-text", "--mod-button-edge-to-visual", "--mod-button-edge-to-visual-only", - "--mod-button-focus-indicator-gap", "--mod-button-focus-ring-border-radius", "--mod-button-focus-ring-color", "--mod-button-focus-ring-gap", "--mod-button-focus-ring-thickness", "--mod-button-font-family", "--mod-button-font-size", + "--mod-button-font-weight", "--mod-button-height", "--mod-button-icon-margin-block-start", "--mod-button-line-height", "--mod-button-margin-block", "--mod-button-margin-left", "--mod-button-margin-right", - "--mod-button-max-inline-size", "--mod-button-min-width", "--mod-button-padding-label-to-icon", - "--mod-button-static-content-color", "--mod-button-text-align", "--mod-button-text-align-with-icon", "--mod-button-top-to-icon", - "--mod-button-top-to-text", - "--mod-focus-indicator-gap", - "--mod-line-height-100", - "--mod-sans-font-family-stack", - "--mod-static-black-focus-indicator-color" + "--mod-button-top-to-text" ], "component": [ "--spectrum-button-animation-duration", @@ -150,21 +128,14 @@ "--spectrum-button-focus-ring-gap", "--spectrum-button-focus-ring-thickness", "--spectrum-button-font-size", + "--spectrum-button-font-weight", "--spectrum-button-height", + "--spectrum-button-icon-size-difference", "--spectrum-button-intended-icon-size", "--spectrum-button-line-height", "--spectrum-button-min-width", "--spectrum-button-minimum-width-multiplier", "--spectrum-button-padding-label-to-icon", - "--spectrum-button-sized-bottom-to-text", - "--spectrum-button-sized-edge-to-text", - "--spectrum-button-sized-edge-to-visual", - "--spectrum-button-sized-edge-to-visual-only", - "--spectrum-button-sized-font-size", - "--spectrum-button-sized-height", - "--spectrum-button-sized-padding-label-to-icon", - "--spectrum-button-sized-top-to-icon", - "--spectrum-button-sized-top-to-text", "--spectrum-button-top-to-icon", "--spectrum-button-top-to-text", "--spectrum-button-top-to-text-extra-large", @@ -177,15 +148,6 @@ "--spectrum-accent-background-color-down", "--spectrum-accent-background-color-hover", "--spectrum-accent-background-color-key-focus", - "--spectrum-accent-color-1000", - "--spectrum-accent-color-1100", - "--spectrum-accent-color-200", - "--spectrum-accent-color-300", - "--spectrum-accent-color-900", - "--spectrum-accent-content-color-default", - "--spectrum-accent-content-color-down", - "--spectrum-accent-content-color-hover", - "--spectrum-accent-content-color-key-focus", "--spectrum-animation-duration-100", "--spectrum-black", "--spectrum-bold-font-weight", @@ -206,10 +168,14 @@ "--spectrum-component-pill-edge-to-visual-only-200", "--spectrum-component-pill-edge-to-visual-only-300", "--spectrum-component-pill-edge-to-visual-only-75", + "--spectrum-component-size-difference-down", + "--spectrum-component-size-minimum-perspective-down", + "--spectrum-component-size-width-ratio-down", "--spectrum-component-top-to-workflow-icon-100", "--spectrum-component-top-to-workflow-icon-200", "--spectrum-component-top-to-workflow-icon-300", "--spectrum-component-top-to-workflow-icon-75", + "--spectrum-corner-radius-full", "--spectrum-disabled-background-color", "--spectrum-disabled-border-color", "--spectrum-disabled-content-color", @@ -219,6 +185,9 @@ "--spectrum-disabled-static-white-background-color", "--spectrum-disabled-static-white-border-color", "--spectrum-disabled-static-white-content-color", + "--spectrum-downstate-height", + "--spectrum-downstate-perspective", + "--spectrum-downstate-width", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", @@ -231,9 +200,6 @@ "--spectrum-gray-25", "--spectrum-gray-300", "--spectrum-gray-400", - "--spectrum-gray-50", - "--spectrum-gray-500", - "--spectrum-gray-600", "--spectrum-gray-800", "--spectrum-gray-900", "--spectrum-icon-block-size", @@ -242,15 +208,6 @@ "--spectrum-negative-background-color-down", "--spectrum-negative-background-color-hover", "--spectrum-negative-background-color-key-focus", - "--spectrum-negative-color-1000", - "--spectrum-negative-color-1100", - "--spectrum-negative-color-200", - "--spectrum-negative-color-300", - "--spectrum-negative-color-900", - "--spectrum-negative-content-color-default", - "--spectrum-negative-content-color-down", - "--spectrum-negative-content-color-hover", - "--spectrum-negative-content-color-key-focus", "--spectrum-neutral-background-color-default", "--spectrum-neutral-background-color-down", "--spectrum-neutral-background-color-hover", @@ -259,10 +216,6 @@ "--spectrum-neutral-content-color-down", "--spectrum-neutral-content-color-hover", "--spectrum-neutral-content-color-key-focus", - "--spectrum-neutral-subdued-background-color-default", - "--spectrum-neutral-subdued-background-color-down", - "--spectrum-neutral-subdued-background-color-hover", - "--spectrum-neutral-subdued-background-color-key-focus", "--spectrum-progress-circle-thickness-medium", "--spectrum-sans-font-family-stack", "--spectrum-static-black-focus-indicator-color", @@ -271,18 +224,19 @@ "--spectrum-text-to-visual-200", "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-75", - "--spectrum-transparent-black-1000", + "--spectrum-transparent-black-100", + "--spectrum-transparent-black-200", + "--spectrum-transparent-black-25", "--spectrum-transparent-black-300", "--spectrum-transparent-black-400", - "--spectrum-transparent-black-500", - "--spectrum-transparent-black-600", - "--spectrum-transparent-black-700", + "--spectrum-transparent-black-800", "--spectrum-transparent-black-900", - "--spectrum-transparent-white-1000", + "--spectrum-transparent-white-100", + "--spectrum-transparent-white-200", + "--spectrum-transparent-white-25", "--spectrum-transparent-white-300", "--spectrum-transparent-white-400", - "--spectrum-transparent-white-500", - "--spectrum-transparent-white-600", + "--spectrum-transparent-white-800", "--spectrum-transparent-white-900", "--spectrum-white", "--spectrum-workflow-icon-size-100", @@ -290,105 +244,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-button-background-color-default", - "--system-button-background-color-disabled", - "--system-button-background-color-down", - "--system-button-background-color-focus", - "--system-button-background-color-hover", - "--system-button-border-color-default", - "--system-button-border-color-disabled", - "--system-button-border-color-down", - "--system-button-border-color-focus", - "--system-button-border-color-hover", - "--system-button-primary-content-color-default", - "--system-button-primary-content-color-down", - "--system-button-primary-content-color-focus", - "--system-button-primary-content-color-hover", - "--system-button-primary-outline-background-color-down", - "--system-button-primary-outline-background-color-focus", - "--system-button-primary-outline-background-color-hover", - "--system-button-secondary-background-color-default", - "--system-button-secondary-not-outline-background-color-down", - "--system-button-secondary-not-outline-background-color-focus", - "--system-button-secondary-not-outline-background-color-hover", - "--system-button-secondary-outline-background-color-down", - "--system-button-secondary-outline-background-color-focus", - "--system-button-secondary-outline-background-color-hover", - "--system-button-secondary-outline-border-color-default", - "--system-button-selected-background-color-default", - "--system-button-selected-background-color-down", - "--system-button-selected-background-color-focus", - "--system-button-selected-background-color-hover", - "--system-button-static-black-background-color-default", - "--system-button-static-black-background-color-down", - "--system-button-static-black-background-color-focus", - "--system-button-static-black-background-color-hover", - "--system-button-static-black-content-color-default", - "--system-button-static-black-content-color-down", - "--system-button-static-black-content-color-focus", - "--system-button-static-black-content-color-hover", - "--system-button-static-black-outline-not-secondary-background-color-down", - "--system-button-static-black-outline-not-secondary-background-color-focus", - "--system-button-static-black-outline-not-secondary-background-color-hover", - "--system-button-static-black-outline-not-secondary-border-color-default", - "--system-button-static-black-outline-not-secondary-border-color-down", - "--system-button-static-black-outline-not-secondary-border-color-focus", - "--system-button-static-black-outline-not-secondary-border-color-hover", - "--system-button-static-black-outline-not-secondary-content-color-default", - "--system-button-static-black-outline-not-secondary-content-color-down", - "--system-button-static-black-outline-not-secondary-content-color-focus", - "--system-button-static-black-outline-not-secondary-content-color-hover", - "--system-button-static-black-secondary-background-color-default", - "--system-button-static-black-secondary-background-color-down", - "--system-button-static-black-secondary-background-color-focus", - "--system-button-static-black-secondary-background-color-hover", - "--system-button-static-black-secondary-content-color-default", - "--system-button-static-black-secondary-content-color-down", - "--system-button-static-black-secondary-content-color-focus", - "--system-button-static-black-secondary-content-color-hover", - "--system-button-static-black-secondary-outline-background-color-down", - "--system-button-static-black-secondary-outline-background-color-focus", - "--system-button-static-black-secondary-outline-background-color-hover", - "--system-button-static-black-secondary-outline-border-color-default", - "--system-button-static-black-secondary-outline-border-color-down", - "--system-button-static-black-secondary-outline-border-color-focus", - "--system-button-static-black-secondary-outline-border-color-hover", - "--system-button-static-white-background-color-default", - "--system-button-static-white-background-color-down", - "--system-button-static-white-background-color-focus", - "--system-button-static-white-background-color-hover", - "--system-button-static-white-content-color-default", - "--system-button-static-white-content-color-down", - "--system-button-static-white-content-color-focus", - "--system-button-static-white-content-color-hover", - "--system-button-static-white-outline-not-secondary-background-color-down", - "--system-button-static-white-outline-not-secondary-background-color-focus", - "--system-button-static-white-outline-not-secondary-background-color-hover", - "--system-button-static-white-outline-not-secondary-border-color-default", - "--system-button-static-white-outline-not-secondary-border-color-down", - "--system-button-static-white-outline-not-secondary-border-color-focus", - "--system-button-static-white-outline-not-secondary-border-color-hover", - "--system-button-static-white-outline-not-secondary-content-color-default", - "--system-button-static-white-outline-not-secondary-content-color-down", - "--system-button-static-white-outline-not-secondary-content-color-focus", - "--system-button-static-white-outline-not-secondary-content-color-hover", - "--system-button-static-white-outline-secondary-background-color-down", - "--system-button-static-white-outline-secondary-background-color-focus", - "--system-button-static-white-outline-secondary-background-color-hover", - "--system-button-static-white-secondary-background-color-default", - "--system-button-static-white-secondary-background-color-down", - "--system-button-static-white-secondary-background-color-focus", - "--system-button-static-white-secondary-background-color-hover", - "--system-button-static-white-secondary-content-color-default", - "--system-button-static-white-secondary-content-color-down", - "--system-button-static-white-secondary-content-color-focus", - "--system-button-static-white-secondary-content-color-hover", - "--system-button-static-white-secondary-outline-border-color-default", - "--system-button-static-white-secondary-outline-border-color-down", - "--system-button-static-white-secondary-outline-border-color-focus", - "--system-button-static-white-secondary-outline-border-color-hover" - ], "passthroughs": [ "--mod-progress-circle-position", "--mod-progress-circle-thickness", @@ -410,6 +265,7 @@ "--highcontrast-button-content-color-disabled", "--highcontrast-button-content-color-down", "--highcontrast-button-content-color-focus", - "--highcontrast-button-content-color-hover" + "--highcontrast-button-content-color-hover", + "--highcontrast-button-focus-ring-color" ] } diff --git a/components/button/index.css b/components/button/index.css index 69d17903f9e..4acd3c43af1 100644 --- a/components/button/index.css +++ b/components/button/index.css @@ -12,426 +12,410 @@ */ @import "@spectrum-css/commons/basebutton.css"; -@import "./themes/spectrum-two.css"; - -.spectrum-Button, -.spectrum-Button--sizeM { - --spectrum-button-sized-height: var(--spectrum-component-height-100); - --spectrum-button-sized-font-size: var(--spectrum-font-size-100); - - --spectrum-button-sized-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-100) - var(--spectrum-button-border-width)); - --spectrum-button-sized-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-100); - --spectrum-button-sized-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-100) - var(--spectrum-button-border-width)); - --spectrum-button-sized-padding-label-to-icon: var(--spectrum-text-to-visual-100); - --spectrum-button-sized-top-to-text: var(--spectrum-button-top-to-text-medium); - --spectrum-button-sized-bottom-to-text: var(--spectrum-button-bottom-to-text-medium); - --spectrum-button-sized-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); + +.spectrum-Button { + --spectrum-button-animation-duration: var(--spectrum-animation-duration-100); + + --spectrum-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --spectrum-button-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-button-min-width: calc(var(--spectrum-component-height-100) * var(--spectrum-button-minimum-width-multiplier)); + --spectrum-button-height: var(--spectrum-component-height-100); + + --spectrum-button-border-radius: calc(var(--spectrum-button-height) / 2); + --spectrum-button-border-width: var(--spectrum-border-width-200); + + /* @todo set line-height using font size specific line-height tokens when they are finalized along with the new variable font. */ + --spectrum-button-line-height: 1.2; + --spectrum-button-font-weight: var(--spectrum-bold-font-weight); + --spectrum-button-font-size: var(--spectrum-font-size-100); + + --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-100) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-visual-only: calc(var(--spectrum-component-pill-edge-to-visual-only-100) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-100) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-padding-label-to-icon: var(--spectrum-text-to-visual-100); + --spectrum-button-top-to-text: var(--spectrum-button-top-to-text-medium); + --spectrum-button-bottom-to-text: var(--spectrum-button-bottom-to-text-medium); + --spectrum-button-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); --spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-100); + + --mod-progress-circle-position: absolute; + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- height and width are set by implementations */ + --spectrum-downstate-perspective: max(var(--spectrum-downstate-height), var(--spectrum-downstate-width) * var(--spectrum-component-size-width-ratio-down)); + + &.spectrum-Button--iconOnly { + --spectrum-button-border-radius: var(--spectrum-corner-radius-full); + } } .spectrum-Button--sizeS { - --spectrum-button-sized-height: var(--spectrum-component-height-75); - --spectrum-button-sized-font-size: var(--spectrum-font-size-75); - - --spectrum-button-sized-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-75) - var(--spectrum-button-border-width)); - --spectrum-button-sized-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-75); - --spectrum-button-sized-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-75) - var(--spectrum-button-border-width)); - --spectrum-button-sized-padding-label-to-icon: var(--spectrum-text-to-visual-75); - --spectrum-button-sized-top-to-text: var(--spectrum-button-top-to-text-small); - --spectrum-button-sized-bottom-to-text: var(--spectrum-button-bottom-to-text-small); - --spectrum-button-sized-top-to-icon: var(--spectrum-component-top-to-workflow-icon-75); + --spectrum-button-min-width: calc(var(--spectrum-component-height-75) * var(--spectrum-button-minimum-width-multiplier)); + --spectrum-button-height: var(--spectrum-component-height-75); + + --spectrum-button-font-size: var(--spectrum-font-size-75); + + --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-75) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-visual-only: calc(var(--spectrum-component-pill-edge-to-visual-only-75) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-75) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-padding-label-to-icon: var(--spectrum-text-to-visual-75); + --spectrum-button-top-to-text: var(--spectrum-button-top-to-text-small); + --spectrum-button-bottom-to-text: var(--spectrum-button-bottom-to-text-small); + --spectrum-button-top-to-icon: var(--spectrum-component-top-to-workflow-icon-75); --spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-75); + + &.spectrum-Button--iconOnly { + --spectrum-downstate-perspective: var(--spectrum-component-size-minimum-perspective-down); + } } .spectrum-Button--sizeL { - --spectrum-button-sized-height: var(--spectrum-component-height-200); - --spectrum-button-sized-font-size: var(--spectrum-font-size-200); - - --spectrum-button-sized-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-200) - var(--spectrum-button-border-width)); - --spectrum-button-sized-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-200); - --spectrum-button-sized-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-200) - var(--spectrum-button-border-width)); - --spectrum-button-sized-padding-label-to-icon: var(--spectrum-text-to-visual-200); - --spectrum-button-sized-top-to-text: var(--spectrum-button-top-to-text-large); - --spectrum-button-sized-bottom-to-text: var(--spectrum-button-bottom-to-text-large); - --spectrum-button-sized-top-to-icon: var(--spectrum-component-top-to-workflow-icon-200); + --spectrum-button-min-width: calc(var(--spectrum-component-height-200) * var(--spectrum-button-minimum-width-multiplier)); + --spectrum-button-height: var(--spectrum-component-height-200); + + --spectrum-button-font-size: var(--spectrum-font-size-200); + + --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-200) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-visual-only: calc(var(--spectrum-component-pill-edge-to-visual-only-200) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-200) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-padding-label-to-icon: var(--spectrum-text-to-visual-200); + --spectrum-button-top-to-text: var(--spectrum-button-top-to-text-large); + --spectrum-button-bottom-to-text: var(--spectrum-button-bottom-to-text-large); + --spectrum-button-top-to-icon: var(--spectrum-component-top-to-workflow-icon-200); --spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-200); } .spectrum-Button--sizeXL { - --spectrum-button-sized-height: var(--spectrum-component-height-300); - --spectrum-button-sized-font-size: var(--spectrum-font-size-300); - - --spectrum-button-sized-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-300) - var(--spectrum-button-border-width)); - --spectrum-button-sized-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-300); - --spectrum-button-sized-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-300) - var(--spectrum-button-border-width)); - --spectrum-button-sized-padding-label-to-icon: var(--spectrum-text-to-visual-300); - --spectrum-button-sized-top-to-text: var(--spectrum-button-top-to-text-extra-large); - --spectrum-button-sized-bottom-to-text: var(--spectrum-button-bottom-to-text-extra-large); - --spectrum-button-sized-top-to-icon: var(--spectrum-component-top-to-workflow-icon-300); + --spectrum-button-min-width: calc(var(--spectrum-component-height-300) * var(--spectrum-button-minimum-width-multiplier)); + --spectrum-button-height: var(--spectrum-component-height-300); + + --spectrum-button-font-size: var(--spectrum-font-size-300); + + --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-300) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-visual-only: calc(var(--spectrum-component-pill-edge-to-visual-only-300) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-300) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + --spectrum-button-padding-label-to-icon: var(--spectrum-text-to-visual-300); + --spectrum-button-top-to-text: var(--spectrum-button-top-to-text-extra-large); + --spectrum-button-bottom-to-text: var(--spectrum-button-bottom-to-text-extra-large); + --spectrum-button-top-to-icon: var(--spectrum-component-top-to-workflow-icon-300); --spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-300); } -/* default for all buttons */ +/* Variants and colors */ .spectrum-Button { - &.is-selected { - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - --mod-button-background-color-disabled: var(--spectrum-disabled-background-color); - --mod-button-border-color-disabled: transparent; - - &.spectrum-Button--emphasized { - --mod-button-background-color-default: var(--spectrum-accent-background-color-default); - --mod-button-background-color-hover: var(--spectrum-accent-background-color-hover); - --mod-button-background-color-down: var(--spectrum-accent-background-color-down); - --mod-button-background-color-focus: var(--spectrum-accent-background-color-key-focus); - } + --spectrum-button-content-color-default: var(--spectrum-white); + --spectrum-button-content-color-hover: var(--spectrum-white); + --spectrum-button-content-color-down: var(--spectrum-white); + --spectrum-button-content-color-focus: var(--spectrum-white); + + --spectrum-button-border-color-default: transparent; + --spectrum-button-border-color-hover: transparent; + --spectrum-button-border-color-down: transparent; + --spectrum-button-border-color-focus: transparent; + + --spectrum-button-background-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-button-border-color-disabled: transparent; + --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); + + &.spectrum-Button--outline { + --spectrum-button-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); } + /* ---- Accent ---- */ + /* Also shows as the default when a variant class is not used. */ + &, &.spectrum-Button--accent { - --mod-button-background-color-default: var(--spectrum-accent-background-color-default); - --mod-button-background-color-hover: var(--spectrum-accent-background-color-hover); - --mod-button-background-color-down: var(--spectrum-accent-background-color-down); - --mod-button-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --mod-button-background-color-disabled: var(--spectrum-disabled-background-color); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-accent-color-200); - --mod-button-background-color-down: var(--spectrum-accent-color-300); - --mod-button-background-color-focus: var(--spectrum-accent-color-200); - - --mod-button-border-color-default: var(--spectrum-accent-color-900); - --mod-button-border-color-hover: var(--spectrum-accent-color-1000); - --mod-button-border-color-down: var(--spectrum-accent-color-1100); - --mod-button-border-color-focus: var(--spectrum-accent-color-1000); - --mod-button-border-color-disabled: var(--spectrum-disabled-border-color); - - --mod-button-content-color-default: var(--spectrum-accent-content-color-default); - --mod-button-content-color-hover: var(--spectrum-accent-content-color-hover); - --mod-button-content-color-down: var(--spectrum-accent-content-color-down); - --mod-button-content-color-focus: var(--spectrum-accent-content-color-key-focus); - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); - } + --spectrum-button-background-color-default: var(--spectrum-accent-background-color-default); + --spectrum-button-background-color-hover: var(--spectrum-accent-background-color-hover); + --spectrum-button-background-color-down: var(--spectrum-accent-background-color-down); + --spectrum-button-background-color-focus: var(--spectrum-accent-background-color-key-focus); } + /* ---- Negative ---- */ &.spectrum-Button--negative { - --mod-button-background-color-default: var(--spectrum-negative-background-color-default); - --mod-button-background-color-hover: var(--spectrum-negative-background-color-hover); - --mod-button-background-color-down: var(--spectrum-negative-background-color-down); - --mod-button-background-color-focus: var(--spectrum-negative-background-color-key-focus); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - --mod-button-background-color-disabled: var(--spectrum-disabled-background-color); - --mod-button-border-color-disabled: transparent; - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-negative-color-200); - --mod-button-background-color-down: var(--spectrum-negative-color-300); - --mod-button-background-color-focus: var(--spectrum-negative-color-200); - - --mod-button-border-color-default: var(--spectrum-negative-color-900); - --mod-button-border-color-hover: var(--spectrum-negative-color-1000); - --mod-button-border-color-down: var(--spectrum-negative-color-1100); - --mod-button-border-color-focus: var(--spectrum-negative-color-1000); - --mod-button-border-color-disabled: var(--spectrum-disabled-border-color); - - --mod-button-content-color-default: var(--spectrum-negative-content-color-default); - --mod-button-content-color-hover: var(--spectrum-negative-content-color-hover); - --mod-button-content-color-down: var(--spectrum-negative-content-color-down); - --mod-button-content-color-focus: var(--spectrum-negative-content-color-key-focus); - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); - } + --spectrum-button-background-color-default: var(--spectrum-negative-background-color-default); + --spectrum-button-background-color-hover: var(--spectrum-negative-background-color-hover); + --spectrum-button-background-color-down: var(--spectrum-negative-background-color-down); + --spectrum-button-background-color-focus: var(--spectrum-negative-background-color-key-focus); } + /* ---- Primary ---- */ &.spectrum-Button--primary { - --mod-button-background-color-default: var(--spectrum-neutral-background-color-default); - --mod-button-background-color-hover: var(--spectrum-neutral-background-color-hover); - --mod-button-background-color-down: var(--spectrum-neutral-background-color-down); - --mod-button-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --mod-button-background-color-disabled: var(--spectrum-disabled-background-color); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; + --spectrum-button-background-color-default: var(--spectrum-neutral-background-color-default); + --spectrum-button-background-color-hover: var(--spectrum-neutral-background-color-hover); + --spectrum-button-background-color-down: var(--spectrum-neutral-background-color-down); + --spectrum-button-background-color-focus: var(--spectrum-neutral-background-color-key-focus); + + --spectrum-button-content-color-default: var(--spectrum-gray-25); + --spectrum-button-content-color-hover: var(--spectrum-gray-25); + --spectrum-button-content-color-down: var(--spectrum-gray-25); + --spectrum-button-content-color-focus: var(--spectrum-gray-25); &.spectrum-Button--outline { - --mod-button-border-color-default: var(--spectrum-gray-800); - --mod-button-border-color-hover: var(--spectrum-gray-900); - --mod-button-border-color-down: var(--spectrum-gray-900); - --mod-button-border-color-focus: var(--spectrum-gray-900); - - --mod-button-content-color-default: var(--spectrum-neutral-content-color-default); - --mod-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --mod-button-content-color-down: var(--spectrum-neutral-content-color-down); - --mod-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - - --mod-button-border-color-disabled: var(--spectrum-disabled-border-color); - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-gray-100); + --spectrum-button-background-color-down: var(--spectrum-gray-100); + --spectrum-button-background-color-focus: var(--spectrum-gray-100); + + --spectrum-button-border-color-default: var(--spectrum-gray-800); + --spectrum-button-border-color-hover: var(--spectrum-gray-900); + --spectrum-button-border-color-down: var(--spectrum-gray-900); + --spectrum-button-border-color-focus: var(--spectrum-gray-900); + + --spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); } } + /* ---- Secondary ---- */ &.spectrum-Button--secondary { - --mod-button-background-color-disabled: var(--spectrum-disabled-background-color); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; + --spectrum-button-background-color-default: var(--spectrum-gray-100); + --spectrum-button-background-color-hover: var(--spectrum-gray-200); + --spectrum-button-background-color-down: var(--spectrum-gray-200); + --spectrum-button-background-color-focus: var(--spectrum-gray-200); - --mod-button-content-color-default: var(--spectrum-neutral-content-color-default); - --mod-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --mod-button-content-color-down: var(--spectrum-neutral-content-color-down); - --mod-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); &.spectrum-Button--outline { - --mod-button-background-color-down: var(--spectrum-gray-400); - - --mod-button-border-color-default: var(--spectrum-gray-300); - --mod-button-border-color-hover: var(--spectrum-gray-400); - --mod-button-border-color-down: var(--spectrum-gray-500); - --mod-button-border-color-focus: var(--spectrum-gray-400); - --mod-button-border-color-disabled: var(--spectrum-disabled-border-color); - - --mod-button-content-color-default: var(--spectrum-neutral-content-color-default); - --mod-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --mod-button-content-color-down: var(--spectrum-neutral-content-color-down); - --mod-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --mod-button-content-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-gray-100); + --spectrum-button-background-color-down: var(--spectrum-gray-100); + --spectrum-button-background-color-focus: var(--spectrum-gray-100); + + --spectrum-button-border-color-default: var(--spectrum-gray-300); + --spectrum-button-border-color-hover: var(--spectrum-gray-400); + --spectrum-button-border-color-down: var(--spectrum-gray-400); + --spectrum-button-border-color-focus: var(--spectrum-gray-400); + + --spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); } } - &.spectrum-Button--quiet { - --mod-button-background-color-hover: var(--spectrum-gray-200); - --mod-button-background-color-down: var(--spectrum-gray-300); - --mod-button-background-color-focus: var(--spectrum-gray-200); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; - } - - &.spectrum-Button--staticBlack, + /* ---- Static White ---- */ &.spectrum-Button--staticWhite { - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; - - &.is-selected { - /* @deprecated previous mapping for --mod-button-static-content-color was applied to the is-selected state */ - --mod-button-content-color-default: var(--mod-button-static-content-color); - --mod-button-content-color-hover: var(--mod-button-static-content-color); - --mod-button-content-color-down: var(--mod-button-static-content-color); - --mod-button-content-color-focus: var(--mod-button-static-content-color); - - --mod-button-border-color-disabled: transparent; - } + --spectrum-button-background-color-default: var(--spectrum-transparent-white-800); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-900); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-900); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-900); - &.spectrum-Button--secondary { - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - --mod-button-border-color-disabled: transparent; - } + --spectrum-button-content-color-default: var(--spectrum-black); + --spectrum-button-content-color-hover: var(--spectrum-black); + --spectrum-button-content-color-down: var(--spectrum-black); + --spectrum-button-content-color-focus: var(--spectrum-black); - &.spectrum-Button--quiet { - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; + --spectrum-button-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --mod-button-border-color-disabled: transparent; - } - } - - &.spectrum-Button--staticWhite { - --mod-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --mod-button-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --mod-button-focus-ring-color: var(--spectrum-static-white-focus-indicator-color); + --spectrum-button-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + --spectrum-button-border-color-disabled: transparent; + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - &.spectrum-Button--secondary:not(.spectrum-Button--outline) { - --mod-button-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + &.spectrum-Button--outline { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-25); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-100); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-100); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-100); + + --spectrum-button-border-color-default: var(--spectrum-transparent-white-800); + --spectrum-button-border-color-hover: var(--spectrum-transparent-white-900); + --spectrum-button-border-color-down: var(--spectrum-transparent-white-900); + --spectrum-button-border-color-focus: var(--spectrum-transparent-white-900); + + --spectrum-button-content-color-default: var(--spectrum-transparent-white-800); + --spectrum-button-content-color-hover: var(--spectrum-transparent-white-900); + --spectrum-button-content-color-down: var(--spectrum-transparent-white-900); + --spectrum-button-content-color-focus: var(--spectrum-transparent-white-900); + + --spectrum-button-background-color-disabled: var(--spectrum-transparent-white-25); + --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); } - &.spectrum-Button--outline { - --mod-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --mod-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + &.spectrum-Button--secondary { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-100); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-200); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-200); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-200); + + --spectrum-button-content-color-default: var(--spectrum-transparent-white-800); + --spectrum-button-content-color-hover: var(--spectrum-transparent-white-900); + --spectrum-button-content-color-down: var(--spectrum-transparent-white-900); + --spectrum-button-content-color-focus: var(--spectrum-transparent-white-900); + + &.spectrum-Button--outline { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-25); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-100); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-100); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-100); + + --spectrum-button-border-color-default: var(--spectrum-transparent-white-300); + --spectrum-button-border-color-hover: var(--spectrum-transparent-white-400); + --spectrum-button-border-color-down: var(--spectrum-transparent-white-400); + --spectrum-button-border-color-focus: var(--spectrum-transparent-white-400); + } } } + /* ---- Static Black ---- */ &.spectrum-Button--staticBlack { - --mod-button-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --mod-button-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --mod-button-focus-ring-color: var(--mod-static-black-focus-indicator-color, var(--spectrum-static-black-focus-indicator-color)); + --spectrum-button-background-color-default: var(--spectrum-transparent-black-800); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-900); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-900); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-900); - &.spectrum-Button--secondary:not(.spectrum-Button--outline) { - --mod-button-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - } + --spectrum-button-content-color-default: var(--spectrum-white); + --spectrum-button-content-color-hover: var(--spectrum-white); + --spectrum-button-content-color-down: var(--spectrum-white); + --spectrum-button-content-color-focus: var(--spectrum-white); + + --spectrum-button-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + + --spectrum-button-background-color-disabled: var(--spectrum-disabled-static-black-background-color); + --spectrum-button-border-color-disabled: transparent; + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-black-content-color); &.spectrum-Button--outline { - --mod-button-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --mod-button-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --spectrum-button-background-color-default: var(--spectrum-transparent-black-25); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-100); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-100); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-100); + + --spectrum-button-border-color-default: var(--spectrum-transparent-black-800); + --spectrum-button-border-color-hover: var(--spectrum-transparent-black-900); + --spectrum-button-border-color-down: var(--spectrum-transparent-black-900); + --spectrum-button-border-color-focus: var(--spectrum-transparent-black-900); + + --spectrum-button-content-color-default: var(--spectrum-transparent-black-800); + --spectrum-button-content-color-hover: var(--spectrum-transparent-black-900); + --spectrum-button-content-color-down: var(--spectrum-transparent-black-900); + --spectrum-button-content-color-focus: var(--spectrum-transparent-black-900); + + --spectrum-button-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-black-content-color); } - } - &.spectrum-Button--quiet, - &.spectrum-Button--outline { - --mod-button-background-color-default: transparent; - --mod-button-background-color-disabled: transparent; + &.spectrum-Button--secondary { + --spectrum-button-background-color-default: var(--spectrum-transparent-black-100); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-200); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-200); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-200); + + --spectrum-button-content-color-default: var(--spectrum-transparent-black-800); + --spectrum-button-content-color-hover: var(--spectrum-transparent-black-900); + --spectrum-button-content-color-down: var(--spectrum-transparent-black-900); + --spectrum-button-content-color-focus: var(--spectrum-transparent-black-900); + + &.spectrum-Button--outline { + --spectrum-button-background-color-default: var(--spectrum-transparent-black-25); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-100); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-100); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-100); + + --spectrum-button-border-color-default: var(--spectrum-transparent-black-300); + --spectrum-button-border-color-hover: var(--spectrum-transparent-black-400); + --spectrum-button-border-color-down: var(--spectrum-transparent-black-400); + --spectrum-button-border-color-focus: var(--spectrum-transparent-black-400); + } + } } } .spectrum-Button { - --spectrum-button-height: var(--mod-button-height, var(--spectrum-button-sized-height)); - --spectrum-button-min-width: var(--mod-button-min-width, calc(var(--spectrum-button-height) * var(--spectrum-button-minimum-width-multiplier))); - - --spectrum-button-line-height: var(--mod-button-line-height, 1.2); /* Hack to keep buttons at 32px */ - --spectrum-button-font-size: var(--mod-button-font-size, var(--spectrum-button-sized-font-size)); - --spectrum-button-padding-label-to-icon: var(--mod-button-padding-label-to-icon, var(--spectrum-button-sized-padding-label-to-icon)); - - --spectrum-button-edge-to-visual: var(--mod-button-edge-to-visual, var(--spectrum-button-sized-edge-to-visual)); - --spectrum-button-edge-to-visual-only: var(--mod-button-edge-to-visual-only, var(--spectrum-button-sized-edge-to-visual-only)); - --spectrum-button-edge-to-text: var(--mod-button-edge-to-text, var(--spectrum-button-sized-edge-to-text)); - - --spectrum-button-top-to-text: var(--mod-button-top-to-text, var(--spectrum-button-sized-top-to-text)); - --spectrum-button-bottom-to-text: var(--mod-button-bottom-to-text, var(--spectrum-button-sized-bottom-to-text)); - --spectrum-button-top-to-icon: var(--mod-button-top-to-icon, var(--spectrum-button-sized-top-to-icon)); - - --spectrum-button-focus-ring-thickness: var(--mod-button-focus-ring-thickness, var(--spectrum-focus-indicator-thickness)); - --spectrum-button-focus-indicator-color: var(--mod-button-focus-ring-color, var(--spectrum-focus-indicator-color)); - - --spectrum-button-animation-duration: var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)); - --spectrum-button-border-width: var(--mod-button-border-width, var(--spectrum-border-width-200)); - - --spectrum-button-focus-ring-gap: var(--mod-focus-indicator-gap, var(--mod-button-focus-ring-gap, var(--spectrum-focus-indicator-gap))); - --spectrum-button-border-radius: var(--mod-button-border-radius, calc(var(--spectrum-button-height) / 2)); - - --spectrum-button-content-color-default: var(--highcontrast-button-content-color-default, var(--mod-button-content-color-default, var(--spectrum-neutral-content-color-default))); - --spectrum-button-content-color-hover: var(--highcontrast-button-content-color-hover, var(--mod-button-content-color-hover, var(--spectrum-neutral-content-color-hover))); - --spectrum-button-content-color-down: var(--highcontrast-button-content-color-down, var(--mod-button-content-color-down, var(--spectrum-neutral-content-color-down))); - --spectrum-button-content-color-focus: var(--highcontrast-button-content-color-focus, var(--mod-button-content-color-focus, var(--spectrum-neutral-content-color-key-focus))); - --spectrum-button-content-color-disabled: var(--highcontrast-button-content-color-disabled, var(--mod-button-content-color-disabled, var(--spectrum-disabled-content-color))); - - /* @passthrough -- align the progress circle in the button */ - --mod-progress-circle-position: absolute; - @extend %spectrum-BaseButton; - @extend %spectrum-ButtonWithFocusRing; - border-radius: var(--spectrum-button-border-radius); - border-width: var(--spectrum-button-border-width); + border-radius: var(--mod-button-border-radius, var(--spectrum-button-border-radius)); + border-width: var(--mod-button-border-width, var(--spectrum-button-border-width)); border-style: solid; - font-size: var(--spectrum-button-font-size); - font-weight: var(--mod-bold-font-weight, var(--spectrum-bold-font-weight)); - gap: var(--spectrum-button-padding-label-to-icon); - max-inline-size: var(--mod-button-max-inline-size, none); - min-inline-size: var(--spectrum-button-min-width); - min-block-size: var(--spectrum-button-height); - - /* Start with text-only padding */ + font-size: var(--mod-button-font-size, var(--spectrum-button-font-size)); + font-weight: var(--mod-button-font-weight, var(--spectrum-button-font-weight)); + gap: var(--mod-button-padding-label-to-icon, var(--spectrum-button-padding-label-to-icon)); + min-inline-size: var(--mod-button-min-width, var(--spectrum-button-min-width)); + min-block-size: var(--mod-button-height, var(--spectrum-button-height)); + padding-block: 0; - padding-inline: var(--spectrum-button-edge-to-text); + padding-inline: var(--mod-button-edge-to-text, var(--spectrum-button-edge-to-text)); position: relative; + background-color: var(--highcontrast-button-background-color-default, var(--mod-button-background-color-default, var(--spectrum-button-background-color-default))); + border-color: var(--highcontrast-button-border-color-default, var(--mod-button-border-color-default, var(--spectrum-button-border-color-default))); + color: var(--highcontrast-button-content-color-default, var(--mod-button-content-color-default, var(--spectrum-button-content-color-default))); + transition: + border var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) linear, + color var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) linear, + background-color var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) linear; + margin-block: var(--mod-button-margin-block); margin-inline-end: var(--mod-button-margin-right); margin-inline-start: var(--mod-button-margin-left); - background-color: var(--highcontrast-button-background-color-default, var(--mod-button-background-color-default, var(--spectrum-button-background-color-default))); - border-color: var(--highcontrast-button-border-color-default, var(--mod-button-border-color-default, var(--spectrum-button-border-color-default))); + .spectrum-Icon { + /* Any block-size difference between the intended workflow icon size and actual icon used. + Helps support any existing use of smaller UI icons instead of intended Workflow icons. */ + --spectrum-button-icon-size-difference: max(0px, var(--spectrum-button-intended-icon-size) - var(--spectrum-icon-block-size, var(--spectrum-button-intended-icon-size))); - /* let staticColor variants inherit their color */ - color: var(--spectrum-button-content-color-default, inherit); - transition: - border var(--spectrum-button-animation-duration, 130ms) linear, - color var(--spectrum-button-animation-duration, 130ms) linear, - background-color var(--spectrum-button-animation-duration, 130ms) linear; + margin-block-start: var(--mod-button-icon-margin-block-start, max(0px, var(--mod-button-top-to-icon, var(--spectrum-button-top-to-icon)) - var(--mod-button-border-width, var(--spectrum-button-border-width)) + (var(--spectrum-button-icon-size-difference, 0px) / 2))); - &.spectrum-Button--outline { - background-color: transparent; + margin-inline-start: calc(var(--mod-button-edge-to-visual, var(--spectrum-button-edge-to-visual)) - var(--mod-button-edge-to-text, var(--spectrum-button-edge-to-text))); + color: inherit; + flex-shrink: 0; + align-self: flex-start; } + /* Focus indicator */ &::after { + content: ""; + display: block; position: absolute; inset: 0; - margin: var(--mod-button-focus-ring-border-radius, calc((var(--spectrum-button-focus-ring-gap) + var(--spectrum-button-border-width)) * -1)); - transition: box-shadow var(--spectrum-button-animation-duration) ease-in-out; + margin: calc((var(--mod-button-focus-ring-gap, var(--spectrum-button-focus-ring-gap)) + var(--mod-button-border-width, var(--spectrum-button-border-width))) * -1); + border-radius: var(--mod-button-focus-ring-border-radius, calc(var(--mod-button-border-radius, var(--spectrum-button-border-radius)) + var(--mod-button-focus-ring-gap, var(--spectrum-button-focus-ring-gap)))); + transition: box-shadow var(--mod-button-animation-duration, var(--spectrum-button-animation-duration)) ease-in-out; pointer-events: none; - content: ""; + } + + &:focus-visible, + &.is-focused { + box-shadow: none; + outline: none; - /* correct focus indicator radius for t-shirt sizing */ - border-radius: calc(var(--spectrum-button-border-radius) + var(--spectrum-focus-indicator-gap)); + &::after { + box-shadow: 0 0 0 var(--mod-button-focus-ring-thickness, var(--spectrum-button-focus-ring-thickness)) var(--highcontrast-button-focus-ring-color, var(--mod-button-focus-ring-color, var(--spectrum-button-focus-indicator-color))); + } + } + + /* States and interaction */ + &:hover, + &:active { + box-shadow: none; } &:hover { background-color: var(--highcontrast-button-background-color-hover, var(--mod-button-background-color-hover, var(--spectrum-button-background-color-hover))); border-color: var(--highcontrast-button-border-color-hover, var(--mod-button-border-color-hover, var(--spectrum-button-border-color-hover))); - color: var(--spectrum-button-content-color-hover); - box-shadow: none; + color: var(--highcontrast-button-content-color-hover, var(--mod-button-content-color-hover, var(--spectrum-button-content-color-hover))); } &:focus-visible { background-color: var(--highcontrast-button-background-color-focus, var(--mod-button-background-color-focus, var(--spectrum-button-background-color-focus))); border-color: var(--highcontrast-button-border-color-focus, var(--mod-button-border-color-focus, var(--spectrum-button-border-color-focus))); - color: var(--spectrum-button-content-color-focus); - - /* Remove the default focus outline */ - box-shadow: none; - outline: none; - - &::after { - box-shadow: 0 0 0 var(--spectrum-button-focus-ring-thickness) var(--spectrum-button-focus-indicator-color); - } - } - - &:focus-visible, - &.is-focused { - &::after { - box-shadow: 0 0 0 var(--spectrum-button-focus-ring-thickness) var(--spectrum-button-focus-indicator-color); - } + color: var(--highcontrast-button-content-color-focus, var(--mod-button-content-color-focus, var(--spectrum-button-content-color-focus))); } &:active { background-color: var(--highcontrast-button-background-color-down, var(--mod-button-background-color-down, var(--spectrum-button-background-color-down))); border-color: var(--highcontrast-button-border-color-down, var(--mod-button-border-color-down, var(--spectrum-button-border-color-down))); - color: var(--spectrum-button-content-color-down); - box-shadow: none; + color: var(--highcontrast-button-content-color-down, var(--mod-button-content-color-down, var(--spectrum-button-content-color-down))); + transform: perspective(var(--spectrum-downstate-perspective)) translateZ(var(--spectrum-component-size-difference-down)); } &:hover, @@ -445,7 +429,7 @@ &.is-pending { background-color: var(--highcontrast-button-background-color-disabled, var(--mod-button-background-color-disabled, var(--spectrum-button-background-color-disabled))); border-color: var(--highcontrast-button-border-color-disabled, var(--mod-button-border-color-disabled, var(--spectrum-button-border-color-disabled))); - color: var(--spectrum-button-content-color-disabled); + color: var(--highcontrast-button-content-color-disabled, var(--mod-button-content-color-disabled, var(--spectrum-button-content-color-disabled))); } .spectrum-Icon { @@ -484,15 +468,15 @@ .spectrum-Button-label { visibility: visible; opacity: 1; - transition: opacity var(--spectrum-button-animation-duration, 130ms) ease-in-out; + transition: opacity var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) ease-in-out; } .spectrum-ProgressCircle { visibility: hidden; opacity: 0; transition: - opacity var(--spectrum-button-animation-duration, 130ms) ease-in-out, - visibility 0ms linear var(--spectrum-button-animation-duration, 130ms); + opacity var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) ease-in-out, + visibility 0ms linear var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)); } &[pending], @@ -504,49 +488,16 @@ visibility: hidden; opacity: 0; transition: - opacity var(--spectrum-button-animation-duration, 130ms) ease-in-out, - visibility 0ms linear var(--spectrum-button-animation-duration, 130ms); + opacity var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) ease-in-out, + visibility 0ms linear var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)); } .spectrum-ProgressCircle { visibility: visible; opacity: 1; - transition: opacity var(--spectrum-button-animation-duration, 130ms) ease-in-out; + transition: opacity var(--mod-button-animation-duration, var(--spectrum-button-animation-duration, 130ms)) ease-in-out; } } - - .spectrum-Icon { - /* Any block-size difference between the intended workflow icon size and actual icon used. - Helps support any existing use of smaller UI icons instead of intended Workflow icons. */ - --_icon-size-difference: max(0px, calc(var(--spectrum-button-intended-icon-size) - var(--spectrum-icon-block-size, var(--spectrum-button-intended-icon-size)))); - - margin-block-start: var(--mod-button-icon-margin-block-start, max(0px, calc(var(--spectrum-button-top-to-icon) - var(--spectrum-button-border-width) + (var(--_icon-size-difference, 0px) / 2)))); - - margin-inline-start: calc(var(--spectrum-button-edge-to-visual) - var(--spectrum-button-edge-to-text)); - color: inherit; - flex-shrink: 0; - align-self: flex-start; - } - - &.spectrum-Button--iconOnly { - min-inline-size: unset; - padding: calc(var(--spectrum-button-edge-to-visual-only) - var(--spectrum-button-border-width)); - border-radius: 50%; - - .spectrum-Icon { - align-self: center; - margin-inline-start: 0; - margin-block-start: 0; - } - - &::after { - border-radius: 50%; - } - } - - .spectrum-Icon + .spectrum-Button-label { - text-align: var(--mod-button-text-align-with-icon, start); - } } a.spectrum-Button { @@ -555,75 +506,71 @@ a.spectrum-Button { .spectrum-Button-label { @extend %spectrum-ButtonLabel; - padding-block-start: calc(var(--spectrum-button-top-to-text) - var(--spectrum-button-border-width)); - padding-block-end: calc(var(--spectrum-button-bottom-to-text) - var(--spectrum-button-border-width)); - line-height: var(--spectrum-button-line-height); + padding-block-start: calc(var(--mod-button-top-to-text, var(--spectrum-button-top-to-text)) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + padding-block-end: calc(var(--mod-button-bottom-to-text, var(--spectrum-button-bottom-to-text)) - var(--mod-button-border-width, var(--spectrum-button-border-width))); + line-height: var(--mod-button-line-height, var(--spectrum-button-line-height)); align-self: start; text-align: var(--mod-button-text-align, center); +} + +.spectrum-Button .spectrum-Icon + .spectrum-Button-label { + text-align: var(--mod-button-text-align-with-icon, start); +} - /* Disable button label wrap */ - .spectrum-Button--noWrap & { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; +/* Icon only variant */ +.spectrum-Button.spectrum-Button--iconOnly { + min-inline-size: unset; + padding: var(--mod-button-edge-to-visual-only, var(--spectrum-button-edge-to-visual-only)); + + .spectrum-Icon { + align-self: center; + margin-inline-start: 0; + margin-block-start: 0; } } -/* Windows High Contrast Mode */ +/* Forced colors / high contrast mode */ @media (forced-colors: active) { .spectrum-Button { - --highcontrast-button-content-color-default: ButtonText; - --highcontrast-button-content-color-hover: ButtonText; - --highcontrast-button-content-color-focus: ButtonText; - --highcontrast-button-content-color-down: ButtonText; - --highcontrast-button-content-color-disabled: GrayText; - --highcontrast-button-border-color-default: ButtonBorder; --highcontrast-button-border-color-hover: ButtonBorder; --highcontrast-button-border-color-focus: ButtonBorder; --highcontrast-button-border-color-down: ButtonBorder; + --highcontrast-button-content-color-disabled: GrayText; --highcontrast-button-border-color-disabled: GrayText; - - --highcontrast-button-background-color-default: ButtonFace; - --highcontrast-button-background-color-hover: ButtonFace; - --highcontrast-button-background-color-down: ButtonFace; - --highcontrast-button-background-color-focus: ButtonFace; --highcontrast-button-background-color-disabled: ButtonFace; --mod-progress-circle-track-border-color: ButtonText; --mod-progress-circle-track-border-color-over-background: ButtonText; --mod-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); - --mod-button-animation-duration: 0s; - .spectrum-Button-label { - forced-color-adjust: none; - } + --highcontrast-button-focus-ring-color: ButtonText; - &:focus-visible::after { - forced-color-adjust: none; - box-shadow: 0 0 0 var(--spectrum-button-focus-ring-thickness) ButtonText; + &:focus-visible { + &::after { + /* Make sure the box-shadow used for the focus indicator is displayed. */ + forced-color-adjust: none; + } } - &.spectrum-Button--staticWhite.spectrum-Button--accent { - --highcontrast-button-content-color-disabled: GrayText; - } - - &.spectrum-Button--accent.spectrum-Button--fill { + &.spectrum-Button--accent, + &:not(.spectrum-Button--primary, .spectrum-Button--negative, .spectrum-Button--secondary, .spectrum-Button--staticBlack, .spectrum-Button--staticWhite) { + /* The accent fill variant looks different than the other buttons. + It inverts the background and content colors. */ --highcontrast-button-background-color-default: ButtonText; + --highcontrast-button-content-color-default: ButtonFace; + --highcontrast-button-background-color-hover: Highlight; --highcontrast-button-background-color-down: Highlight; --highcontrast-button-background-color-focus: Highlight; - --highcontrast-button-background-color-disabled: ButtonFace; - --highcontrast-button-content-color-default: ButtonFace; --highcontrast-button-content-color-hover: HighlightText; --highcontrast-button-content-color-down: HighlightText; --highcontrast-button-content-color-focus: HighlightText; - --highcontrast-button-border-color-default: ButtonText; - --highcontrast-button-border-color-hover: Highlight; - --highcontrast-button-border-color-focus: Highlight; - --highcontrast-button-border-color-down: Highlight; + .spectrum-Button-label { + forced-color-adjust: none; + } } } } diff --git a/components/button/package.json b/components/button/package.json index d9f2ca41870..2e926c75e65 100644 --- a/components/button/package.json +++ b/components/button/package.json @@ -25,9 +25,9 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/progresscircle": ">=3", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/progresscircle": ">=5", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -38,14 +38,10 @@ } }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/icon": "9.0.1", "@spectrum-css/progresscircle": "5.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/button/stories/button.mdx b/components/button/stories/button.mdx index 024a29f86e0..a20869868f5 100644 --- a/components/button/stories/button.mdx +++ b/components/button/stories/button.mdx @@ -1,24 +1,10 @@ -import { - Meta, - Title, - Subtitle, - Description, - ArgTypes, - Canvas, -} from "@storybook/blocks"; -import { - ComponentDetails, - TaggedReleases, - PropertiesTable, -} from "@spectrum-css/preview/blocks"; - -import * as ButtonStories from "./button.stories"; +import { Canvas, Meta, Description } from '@storybook/blocks'; + +import * as ButtonStories from './button.stories'; <Meta of={ButtonStories} title="Docs" /> -<Title of={ButtonStories} /> -<Subtitle of={ButtonStories} /> -<ComponentDetails of={ButtonStories} /> +# Button <Description of={ButtonStories} /> @@ -30,22 +16,32 @@ and secondary variants also have an outline option. ### Accent -<Description of={ButtonStories.Accent} /> +The call to action button communicates strong emphasis and is reserved for encouraging critical +actions. In general, only use the emphasized option for the most important action on the page. + <Canvas of={ButtonStories.Accent} /> ### Primary -<Description of={ButtonStories.Primary} /> +The primary button is for medium emphasis. Use it in place of a call to action button when the +action requires less prominence, or if there are multiple primary actions of the same importance +in the same view. Both the fill (default) and outline styles are demonstrated below: + <Canvas of={ButtonStories.Primary} /> ### Secondary -<Description of={ButtonStories.Secondary} /> +The secondary button is for low emphasis. It’s paired with other button types to surface less +prominent actions, and should never be the only button in a group. Both the fill (default) and +outline styles are demonstrated below: + <Canvas of={ButtonStories.Secondary} /> ### Negative -<Description of={ButtonStories.Negative} /> +The negative button is for emphasizing actions that can be destructive or have negative +consequences if taken. Use it sparingly. + <Canvas of={ButtonStories.Negative} /> ## Static color @@ -55,65 +51,51 @@ option. Static color buttons do not change shades or values depending upon the c ### Static white - primary -<Canvas - of={ButtonStories.StaticWhitePrimary} - className="spectrum-examples-static-white" -/> +<Canvas of={ButtonStories.StaticWhitePrimary} className="spectrum-examples-static-white" /> ### Static white - secondary -<Canvas - of={ButtonStories.StaticWhiteSecondary} - className="spectrum-examples-static-white" -/> +<Canvas of={ButtonStories.StaticWhiteSecondary} className="spectrum-examples-static-white" /> ### Static black - primary -<Canvas - of={ButtonStories.StaticBlackPrimary} - className="spectrum-examples-static-black" -/> +<Canvas of={ButtonStories.StaticBlackPrimary} className="spectrum-examples-static-black" /> ### Static black - secondary -<Canvas - of={ButtonStories.StaticBlackSecondary} - className="spectrum-examples-static-black" -/> +<Canvas of={ButtonStories.StaticBlackSecondary} className="spectrum-examples-static-black" /> ## Sizing -<Description of={ButtonStories.Sizing} /> +Buttons come in four different sizes: small, medium, large, and extra large. The medium size is +the default and most frequently used option. Use the other sizes sparingly; they should be used +to create a hierarchy of importance within the page. + <Canvas of={ButtonStories.Sizing} /> ## Pending state -<Description of={ButtonStories.Pending} /> +The pending button is for indicating that a quick progress action is taking place. In this case, the +label and optional icon disappear and a progress circle appears. The progress circle always shows an +indeterminate progress. We recommend the use of the `.is-pending` class on the component’s parent +container, but there is also an option to use an attribute of `pending` instead. Buttons should have +the disabled attribute when the pending state is applied. + <Canvas of={ButtonStories.Pending} /> ## Disabled state -<Description of={ButtonStories.Disabled} /> +A button in a disabled state shows that an action exists, but is not available in that circumstance. +This state can be used to maintain layout continuity and to communicate that an action may become +available later. + <Canvas of={ButtonStories.Disabled} /> ## Text overflow behavior -<Description of={ButtonStories.WithWrapping} /> -<Canvas of={ButtonStories.WithWrapping} /> - -## Disable text wrapping - -<Description of={ButtonStories.DisableWrapping} /> -<Canvas of={ButtonStories.DisableWrapping} /> - -## Properties - -The component accepts the following inputs (properties): - -<ArgTypes of={ButtonStories} /> - -<PropertiesTable /> - -## Tagged releases +When the button text is too long for the horizontal space available, it wraps to form another line. +When there is no icon present, the text is aligned center. When there is an icon present, the text is +aligned `start` (left with a writing direction of left-to-right) and the icon remains vertically aligned +at the top. -<TaggedReleases of={ButtonStories} /> +<Canvas of={ButtonStories.WithWrapping} /> \ No newline at end of file diff --git a/components/button/stories/button.stories.js b/components/button/stories/button.stories.js index 0dbefb09f65..8205cbde5c8 100644 --- a/components/button/stories/button.stories.js +++ b/components/button/stories/button.stories.js @@ -1,5 +1,5 @@ import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js"; -import { Sizes } from "@spectrum-css/preview/decorators"; +import { Sizes, withDownStateDimensionCapture } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; import { isActive, isDisabled, isFocused, isHovered, isPending, size, staticColor } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; @@ -89,10 +89,19 @@ export default { type: "figma", url: "https://www.figma.com/design/Mngz9H7WZLbrCvGQf3GnsY/S2-%2F-Desktop?node-id=707-2774", }, + html: { + root: "#render-root" + }, + downState: { + selectors: [".spectrum-Button:not(:disabled)"], + }, packageJson, metadata, }, - tags: ["!autodocs"], + decorators: [ + withDownStateDimensionCapture, + ], + tags: ["!autodocs", "migrated"], }; export const Default = ButtonGroups.bind({}); diff --git a/components/button/stories/template.js b/components/button/stories/template.js index 16e259bd86f..1fa73697743 100644 --- a/components/button/stories/template.js +++ b/components/button/stories/template.js @@ -1,6 +1,6 @@ import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; +import { Template as InfieldProgressCircle } from "@spectrum-css/infieldprogresscircle/stories/template.js"; import { Container, getRandomId } from "@spectrum-css/preview/decorators"; -import { Template as ProgressCircle } from "@spectrum-css/progresscircle/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -9,9 +9,6 @@ import { when } from "lit/directives/when.js"; import { capitalize } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Button", @@ -92,15 +89,12 @@ export const Template = ({ Icon({ iconName, setName: iconSet, size }, context) )} ${when(isPending, () => - ProgressCircle( - { - size: "s", - testId: "progress-circle", - staticColor, - isIndeterminate: true, - }, - context - ) + InfieldProgressCircle({ + size: size, + staticColor, + isIndeterminate: true, + testId: "infield-progress-circle" + }, context) )} </button> `; diff --git a/components/button/themes/express.css b/components/button/themes/express.css deleted file mode 100644 index 9c43b7cb5dc..00000000000 --- a/components/button/themes/express.css +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Button { - --mod-button-background-color-default: var(--spectrum-gray-200); - --mod-button-background-color-hover: var(--spectrum-gray-300); - --mod-button-background-color-down: var(--spectrum-gray-400); - --mod-button-background-color-focus: var(--spectrum-gray-300); - - --mod-button-border-color-default: transparent; - --mod-button-border-color-hover: transparent; - --mod-button-border-color-down: transparent; - --mod-button-border-color-focus: transparent; - - &.is-selected { - --mod-button-background-color-default: var(--spectrum-neutral-background-color-default); - --mod-button-background-color-hover: var(--spectrum-neutral-background-color-hover); - --mod-button-background-color-down: var(--spectrum-neutral-background-color-down); - --mod-button-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - } - } -} diff --git a/components/button/themes/spectrum-two.css b/components/button/themes/spectrum-two.css deleted file mode 100644 index 79af18b6fde..00000000000 --- a/components/button/themes/spectrum-two.css +++ /dev/null @@ -1,177 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Button { - --spectrum-button-background-color-default: var(--spectrum-gray-50); - --spectrum-button-background-color-hover: var(--spectrum-gray-100); - --spectrum-button-background-color-down: var(--spectrum-gray-200); - --spectrum-button-background-color-focus: var(--spectrum-gray-100); - - --spectrum-button-border-color-default: var(--spectrum-gray-400); - --spectrum-button-border-color-hover: var(--spectrum-gray-500); - --spectrum-button-border-color-down: var(--spectrum-gray-600); - --spectrum-button-border-color-focus: var(--spectrum-gray-500); - - --spectrum-button-background-color-disabled: transparent; - --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); - - &.is-selected { - --mod-button-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --mod-button-background-color-hover: var(--spectrum-neutral-subdued-background-color-hover); - --mod-button-background-color-down: var(--spectrum-neutral-subdued-background-color-down); - --mod-button-background-color-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - } - - &.spectrum-Button--primary { - --mod-button-content-color-default: var(--spectrum-gray-25); - --mod-button-content-color-hover: var(--spectrum-gray-25); - --mod-button-content-color-down: var(--spectrum-gray-25); - --mod-button-content-color-focus: var(--spectrum-gray-25); - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-gray-200); - --mod-button-background-color-down: var(--spectrum-gray-400); - --mod-button-background-color-focus: var(--spectrum-gray-200); - } - } - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-gray-100); - - &:not(.spectrum-Button--outline) { - --mod-button-background-color-hover: var(--spectrum-gray-200); - --mod-button-background-color-down: var(--spectrum-gray-400); - --mod-button-background-color-focus: var(--spectrum-gray-200); - } - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-gray-200); - --mod-button-background-color-down: var(--spectrum-gray-400); - --mod-button-background-color-focus: var(--spectrum-gray-200); - - --mod-button-border-color-default: var(--spectrum-gray-200); - } - } - - /* static white: double the selector, double the fun (specificity...) */ - &.spectrum-Button--staticWhite { - --mod-button-background-color-default: var(--spectrum-transparent-white-900); - --mod-button-background-color-hover: var(--spectrum-transparent-white-1000); - --mod-button-background-color-down: var(--spectrum-transparent-white-1000); - --mod-button-background-color-focus: var(--spectrum-transparent-white-1000); - - --mod-button-content-color-default: var(--spectrum-black); - --mod-button-content-color-hover: var(--spectrum-black); - --mod-button-content-color-down: var(--spectrum-black); - --mod-button-content-color-focus: var(--spectrum-black); - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-transparent-white-300); - --mod-button-background-color-hover: var(--spectrum-transparent-white-400); - --mod-button-background-color-down: var(--spectrum-transparent-white-500); - --mod-button-background-color-focus: var(--spectrum-transparent-white-400); - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - &.spectrum-Button--outline { - --mod-button-border-color-default: var(--spectrum-transparent-white-400); - --mod-button-border-color-hover: var(--spectrum-transparent-white-500); - --mod-button-border-color-down: var(--spectrum-transparent-white-600); - --mod-button-border-color-focus: var(--spectrum-transparent-white-500); - } - } - - &.spectrum-Button--outline { - &:not(.spectrum-Button--secondary) { - --mod-button-background-color-hover: var(--spectrum-transparent-white-400); - --mod-button-background-color-down: var(--spectrum-transparent-white-500); - --mod-button-background-color-focus: var(--spectrum-transparent-white-400); - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - --mod-button-border-color-default: var(--spectrum-transparent-white-900); - --mod-button-border-color-hover: var(--spectrum-transparent-white-1000); - --mod-button-border-color-down: var(--spectrum-transparent-white-1000); - --mod-button-border-color-focus: var(--spectrum-transparent-white-1000); - } - - &.spectrum-Button--secondary { - --mod-button-background-color-hover: var(--spectrum-transparent-white-400); - --mod-button-background-color-down: var(--spectrum-transparent-white-500); - --mod-button-background-color-focus: var(--spectrum-transparent-white-400); - } - } - } - - /* static black */ - &.spectrum-Button--staticBlack { - --mod-button-background-color-default: var(--spectrum-transparent-black-900); - --mod-button-background-color-hover: var(--spectrum-transparent-black-1000); - --mod-button-background-color-down: var(--spectrum-transparent-black-1000); - --mod-button-background-color-focus: var(--spectrum-transparent-black-1000); - - --mod-button-content-color-default: var(--spectrum-white); - --mod-button-content-color-hover: var(--spectrum-white); - --mod-button-content-color-down: var(--spectrum-white); - --mod-button-content-color-focus: var(--spectrum-white); - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-transparent-black-300); - --mod-button-background-color-hover: var(--spectrum-transparent-black-400); - --mod-button-background-color-down: var(--spectrum-transparent-black-500); - --mod-button-background-color-focus: var(--spectrum-transparent-black-400); - - --mod-button-content-color-default: var(--spectrum-black); - --mod-button-content-color-hover: var(--spectrum-black); - --mod-button-content-color-down: var(--spectrum-black); - --mod-button-content-color-focus: var(--spectrum-black); - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-transparent-black-400); - --mod-button-background-color-down: var(--spectrum-transparent-black-500); - --mod-button-background-color-focus: var(--spectrum-transparent-black-400); - - --mod-button-border-color-default: var(--spectrum-transparent-black-400); - --mod-button-border-color-hover: var(--spectrum-transparent-black-500); - --mod-button-border-color-down: var(--spectrum-transparent-black-600); - --mod-button-border-color-focus: var(--spectrum-transparent-black-500); - } - } - - &.spectrum-Button--outline { - &:not(.spectrum-Button--secondary) { - --mod-button-background-color-hover: var(--spectrum-transparent-black-400); - --mod-button-background-color-down: var(--spectrum-transparent-black-500); - --mod-button-background-color-focus: var(--spectrum-transparent-black-400); - - --mod-button-content-color-default: var(--spectrum-black); - --mod-button-content-color-hover: var(--spectrum-black); - --mod-button-content-color-down: var(--spectrum-black); - --mod-button-content-color-focus: var(--spectrum-black); - - --mod-button-border-color-default: var(--spectrum-transparent-black-500); - --mod-button-border-color-hover: var(--spectrum-transparent-black-600); - --mod-button-border-color-down: var(--spectrum-transparent-black-700); - --mod-button-border-color-focus: var(--spectrum-transparent-black-600); - } - } - } - } -} diff --git a/components/button/themes/spectrum.css b/components/button/themes/spectrum.css deleted file mode 100644 index 9af38296269..00000000000 --- a/components/button/themes/spectrum.css +++ /dev/null @@ -1,133 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Button { - --mod-button-background-color-default: var(--spectrum-gray-75); - --mod-button-background-color-hover: var(--spectrum-gray-200); - --mod-button-background-color-down: var(--spectrum-gray-300); - --mod-button-background-color-focus: var(--spectrum-gray-200); - - &.spectrum-Button--primary { - --mod-button-content-color-default: var(--spectrum-gray-50); - --mod-button-content-color-hover: var(--spectrum-gray-50); - --mod-button-content-color-down: var(--spectrum-gray-50); - --mod-button-content-color-focus: var(--spectrum-gray-50); - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-gray-300); - --mod-button-background-color-focus: var(--spectrum-gray-300); - } - } - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-gray-200); - - &:not(.spectrum-Button--outline) { - --mod-button-background-color-hover: var(--spectrum-gray-300); - --mod-button-background-color-focus: var(--spectrum-gray-300); - } - - &.spectrum-Button--outline { - --mod-button-background-color-hover: var(--spectrum-gray-300); - --mod-button-background-color-focus: var(--spectrum-gray-300); - - --mod-button-border-color-default: var(--spectrum-gray-300); - } - } - - &.spectrum-Button--staticWhite { - --mod-button-background-color-default: var(--spectrum-transparent-white-800); - --mod-button-background-color-hover: var(--spectrum-transparent-white-900); - --mod-button-background-color-down: var(--spectrum-transparent-white-900); - --mod-button-background-color-focus: var(--spectrum-transparent-white-900); - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-transparent-white-200); - --mod-button-background-color-hover: var(--spectrum-transparent-white-300); - --mod-button-background-color-down: var(--spectrum-transparent-white-400); - --mod-button-background-color-focus: var(--spectrum-transparent-white-300); - - &.spectrum-Button--outline { - --mod-button-border-color-default: var(--spectrum-transparent-white-300); - --mod-button-border-color-hover: var(--spectrum-transparent-white-400); - --mod-button-border-color-down: var(--spectrum-transparent-white-500); - --mod-button-border-color-focus: var(--spectrum-transparent-white-400); - } - } - - &.spectrum-Button--outline { - &:not(.spectrum-Button--secondary) { - --mod-button-background-color-hover: var(--spectrum-transparent-white-300); - --mod-button-background-color-down: var(--spectrum-transparent-white-400); - --mod-button-background-color-focus: var(--spectrum-transparent-white-300); - - --mod-button-border-color-default: var(--spectrum-transparent-white-800); - --mod-button-border-color-hover: var(--spectrum-transparent-white-900); - --mod-button-border-color-down: var(--spectrum-transparent-white-900); - --mod-button-border-color-focus: var(--spectrum-transparent-white-900); - } - - &.spectrum-Button--secondary { - --mod-button-background-color-hover: var(--spectrum-transparent-white-300); - --mod-button-background-color-down: var(--spectrum-transparent-white-400); - --mod-button-background-color-focus: var(--spectrum-transparent-white-300); - } - } - } - - &.spectrum-Button--staticBlack { - --mod-button-background-color-default: var(--spectrum-transparent-black-800); - --mod-button-background-color-hover: var(--spectrum-transparent-black-900); - --mod-button-background-color-down: var(--spectrum-transparent-black-900); - --mod-button-background-color-focus: var(--spectrum-transparent-black-900); - - &.spectrum-Button--secondary { - --mod-button-background-color-default: var(--spectrum-transparent-black-200); - --mod-button-background-color-hover: var(--spectrum-transparent-black-300); - --mod-button-background-color-down: var(--spectrum-transparent-black-400); - --mod-button-background-color-focus: var(--spectrum-transparent-black-300); - - &.spectrum-Button--outline { - --mod-button-border-color-default: var(--spectrum-transparent-black-300); - --mod-button-border-color-hover: var(--spectrum-transparent-black-400); - --mod-button-border-color-down: var(--spectrum-transparent-black-500); - --mod-button-border-color-focus: var(--spectrum-transparent-black-400); - } - } - - &.spectrum-Button--outline { - &:not(.spectrum-Button--secondary) { - --mod-button-background-color-hover: var(--spectrum-transparent-black-300); - --mod-button-background-color-down: var(--spectrum-transparent-black-400); - --mod-button-background-color-focus: var(--spectrum-transparent-black-300); - - --mod-button-border-color-default: var(--spectrum-transparent-black-400); - --mod-button-border-color-hover: var(--spectrum-transparent-black-500); - --mod-button-border-color-down: var(--spectrum-transparent-black-600); - --mod-button-border-color-focus: var(--spectrum-transparent-black-500); - } - - &.spectrum-Button--secondary { - --mod-button-background-color-hover: var(--spectrum-transparent-black-300); - --mod-button-background-color-down: var(--spectrum-transparent-black-400); - --mod-button-background-color-focus: var(--spectrum-transparent-black-300); - } - } - } - } -} diff --git a/components/buttongroup/CHANGELOG.md b/components/buttongroup/CHANGELOG.md index 876eb620438..739a869b4cc 100644 --- a/components/buttongroup/CHANGELOG.md +++ b/components/buttongroup/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 7.0.0-next.4 + +### Patch Changes + +- [#2860](https://github.com/adobe/spectrum-css/pull/2860) [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Adds a new `--mod-buttongroup-flex-wrap` custom property to leverage if a user wishes to customize the `flex-wrap` property. + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 9.0.1 ### Patch Changes @@ -143,25 +152,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.5...@spectrum-css/buttongroup@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.5...@spectrum-css/buttongroup@7.0.0) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css + * Removes component-builder & component-builder-simple for script leveraging postcss + +* Imports added to index.css and themes/express.css + <a name="6.2.5"></a> ## 6.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.4...@spectrum-css/buttongroup@6.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.4...@spectrum-css/buttongroup@6.2.5) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -169,8 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.3...@spectrum-css/buttongroup@6.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.3...@spectrum-css/buttongroup@6.2.4) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -178,8 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.2...@spectrum-css/buttongroup@6.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.2...@spectrum-css/buttongroup@6.2.3) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -187,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.1...@spectrum-css/buttongroup@6.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.2.1...@spectrum-css/buttongroup@6.2.2) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -196,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/buttongroup @@ -205,19 +209,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.16...@spectrum-css/buttongroup@6.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.16...@spectrum-css/buttongroup@6.2.0) ### ✨ Features -\*remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) +- remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) <a name="6.1.16"></a> ## 6.1.16 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.15...@spectrum-css/buttongroup@6.1.16) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.15...@spectrum-css/buttongroup@6.1.16) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -225,8 +227,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.15 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.14...@spectrum-css/buttongroup@6.1.15) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.14...@spectrum-css/buttongroup@6.1.15) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -234,8 +235,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.14 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.12...@spectrum-css/buttongroup@6.1.14) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.12...@spectrum-css/buttongroup@6.1.14) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -243,8 +243,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.13 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.12...@spectrum-css/buttongroup@6.1.13) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.12...@spectrum-css/buttongroup@6.1.13) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -252,8 +251,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.12 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.11...@spectrum-css/buttongroup@6.1.12) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.11...@spectrum-css/buttongroup@6.1.12) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -261,8 +259,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.11 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.10...@spectrum-css/buttongroup@6.1.11) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.10...@spectrum-css/buttongroup@6.1.11) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -270,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.10 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.9...@spectrum-css/buttongroup@6.1.10) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.9...@spectrum-css/buttongroup@6.1.10) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -279,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.9 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.8...@spectrum-css/buttongroup@6.1.9) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.8...@spectrum-css/buttongroup@6.1.9) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -288,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.8 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.7...@spectrum-css/buttongroup@6.1.8) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.7...@spectrum-css/buttongroup@6.1.8) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -297,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.7 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.6...@spectrum-css/buttongroup@6.1.7) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.6...@spectrum-css/buttongroup@6.1.7) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -306,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.6 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.5...@spectrum-css/buttongroup@6.1.6) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.5...@spectrum-css/buttongroup@6.1.6) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -315,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.4...@spectrum-css/buttongroup@6.1.5) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.4...@spectrum-css/buttongroup@6.1.5) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -324,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.3...@spectrum-css/buttongroup@6.1.4) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.3...@spectrum-css/buttongroup@6.1.4) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -333,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.2...@spectrum-css/buttongroup@6.1.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.2...@spectrum-css/buttongroup@6.1.3) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -342,19 +331,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.1...@spectrum-css/buttongroup@6.1.2) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.1...@spectrum-css/buttongroup@6.1.2) ### 🔙 Reverts -\*gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) +- gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) <a name="6.1.1"></a> ## 6.1.1 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.0...@spectrum-css/buttongroup@6.1.1) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.1.0...@spectrum-css/buttongroup@6.1.1) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -362,8 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.62...@spectrum-css/buttongroup@6.1.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.62...@spectrum-css/buttongroup@6.1.0) ### ✨ Features @@ -373,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.63 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.62...@spectrum-css/buttongroup@6.0.63) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.62...@spectrum-css/buttongroup@6.0.63) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -382,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.62 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.61...@spectrum-css/buttongroup@6.0.62) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.61...@spectrum-css/buttongroup@6.0.62) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -391,8 +375,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.61 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.60...@spectrum-css/buttongroup@6.0.61) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.60...@spectrum-css/buttongroup@6.0.61) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -400,8 +383,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.60 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.59...@spectrum-css/buttongroup@6.0.60) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.59...@spectrum-css/buttongroup@6.0.60) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -409,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.59 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.58...@spectrum-css/buttongroup@6.0.59) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.58...@spectrum-css/buttongroup@6.0.59) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -418,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.58 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.57...@spectrum-css/buttongroup@6.0.58) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.57...@spectrum-css/buttongroup@6.0.58) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -427,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.57 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.56...@spectrum-css/buttongroup@6.0.57) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.56...@spectrum-css/buttongroup@6.0.57) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -436,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.56 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.55...@spectrum-css/buttongroup@6.0.56) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.55...@spectrum-css/buttongroup@6.0.56) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -445,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.55 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.54...@spectrum-css/buttongroup@6.0.55) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.54...@spectrum-css/buttongroup@6.0.55) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -454,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.54 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.53...@spectrum-css/buttongroup@6.0.54) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.53...@spectrum-css/buttongroup@6.0.54) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -463,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.53 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.52...@spectrum-css/buttongroup@6.0.53) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.52...@spectrum-css/buttongroup@6.0.53) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -472,8 +447,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.52 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.51...@spectrum-css/buttongroup@6.0.52) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.51...@spectrum-css/buttongroup@6.0.52) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -481,19 +455,17 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.51 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.50...@spectrum-css/buttongroup@6.0.51) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.50...@spectrum-css/buttongroup@6.0.51) ### 🐛 Bug fixes -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) +- restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) <a name="6.0.50"></a> ## 6.0.50 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.49...@spectrum-css/buttongroup@6.0.50) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.49...@spectrum-css/buttongroup@6.0.50) **Note:** Version bump only for package @spectrum-css/buttongroup @@ -501,8 +473,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.49 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.48...@spectrum-css/buttongroup@6.0.49) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/buttongroup@6.0.48...@spectrum-css/buttongroup@6.0.49) **Note:** Version bump only for package @spectrum-css/buttongroup diff --git a/components/buttongroup/dist/metadata.json b/components/buttongroup/dist/metadata.json index 38d29f26e39..04dc22bce0f 100644 --- a/components/buttongroup/dist/metadata.json +++ b/components/buttongroup/dist/metadata.json @@ -7,6 +7,7 @@ ".spectrum-ButtonGroup.spectrum-ButtonGroup--vertical" ], "modifiers": [ + "--mod-buttongroup-flex-wrap", "--mod-buttongroup-justify-content", "--mod-buttongroup-spacing", "--mod-buttongroup-spacing-horizontal", @@ -19,7 +20,6 @@ "--spectrum-buttongroup-spacing" ], "global": ["--spectrum-spacing-200", "--spectrum-spacing-300"], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/buttongroup/index.css b/components/buttongroup/index.css index 05019824787..0d65d39c0f2 100644 --- a/components/buttongroup/index.css +++ b/components/buttongroup/index.css @@ -35,7 +35,7 @@ .spectrum-ButtonGroup { display: var(--spectrum-buttongroup-display); flex-direction: var(--spectrum-buttongroup-flex-direction); - flex-wrap: wrap; + flex-wrap: var(--mod-buttongroup-flex-wrap, wrap); gap: var(--spectrum-buttongroup-spacing); justify-content: var(--spectrum-buttongroup-justify-content); diff --git a/components/buttongroup/package.json b/components/buttongroup/package.json index f9971c08610..13190916a36 100644 --- a/components/buttongroup/package.json +++ b/components/buttongroup/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/button": "14.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/buttongroup/stories/buttongroup.stories.js b/components/buttongroup/stories/buttongroup.stories.js index ba7e125de76..79d78b47168 100644 --- a/components/buttongroup/stories/buttongroup.stories.js +++ b/components/buttongroup/stories/buttongroup.stories.js @@ -65,6 +65,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = ButtonGroup.bind({}); @@ -74,7 +75,7 @@ Default.tags = ["!autodocs"]; // ********* DOCS ONLY ********* // /** - * Default spacing for Medium, Large, and Extra Large t-shirt sizes. + * Default horizontal spacing for when using medium, large, and extra large buttons. */ export const Horizontal = Template.bind({}); Horizontal.tags = ["!dev"]; @@ -87,7 +88,7 @@ Horizontal.parameters = { }; /** - * Spacing for the Small t-shirt size. + * Horizontal spacing for the small t-shirt size. Should be used with small buttons. */ export const HorizontalSmall = Template.bind({}); HorizontalSmall.tags = ["!dev"]; @@ -102,7 +103,7 @@ HorizontalSmall.parameters = { }; /** - * Default spacing for Medium, Large, and Extra Large t-shirt sizes + * Default vertical spacing for when using medium, large, and extra large buttons. */ export const Vertical = ButtonGroup.bind({}); Vertical.tags = ["!dev"]; @@ -117,7 +118,7 @@ Vertical.parameters = { }; /** - * Spacing for the Small t-shirt size. + * Vertical spacing for the small t-shirt size. Should be used with small buttons. */ export const VerticalSmall = Template.bind({}); VerticalSmall.tags = ["!dev"]; diff --git a/components/calendar/CHANGELOG.md b/components/calendar/CHANGELOG.md index 7071e39fc2d..0e56dab9c9a 100644 --- a/components/calendar/CHANGELOG.md +++ b/components/calendar/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 5.3.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/actionbutton@6.2.1-next.0 + - @spectrum-css/tokens@14.0.0-next.12 + ## 7.0.1 ### Patch Changes @@ -163,8 +180,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.5...@spectrum-css/calendar@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.5...@spectrum-css/calendar@5.0.0) ### ✨ Features @@ -172,11 +188,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -184,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.4...@spectrum-css/calendar@4.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.4...@spectrum-css/calendar@4.2.5) **Note:** Version bump only for package @spectrum-css/calendar @@ -193,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.3...@spectrum-css/calendar@4.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.3...@spectrum-css/calendar@4.2.4) **Note:** Version bump only for package @spectrum-css/calendar @@ -202,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.2...@spectrum-css/calendar@4.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.2...@spectrum-css/calendar@4.2.3) **Note:** Version bump only for package @spectrum-css/calendar @@ -211,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.1...@spectrum-css/calendar@4.2.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.2.1...@spectrum-css/calendar@4.2.2) **Note:** Version bump only for package @spectrum-css/calendar @@ -220,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/calendar @@ -229,8 +238,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.1.1...@spectrum-css/calendar@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.1.1...@spectrum-css/calendar@4.2.0) **Note:** Version bump only for package @spectrum-css/calendar @@ -238,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.1.0...@spectrum-css/calendar@4.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.1.0...@spectrum-css/calendar@4.1.1) ### 🐛 Bug fixes @@ -249,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.22...@spectrum-css/calendar@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.22...@spectrum-css/calendar@4.1.0) ### ✨ Features @@ -264,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.21...@spectrum-css/calendar@4.0.22) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.21...@spectrum-css/calendar@4.0.22) **Note:** Version bump only for package @spectrum-css/calendar @@ -273,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.20...@spectrum-css/calendar@4.0.21) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.20...@spectrum-css/calendar@4.0.21) **Note:** Version bump only for package @spectrum-css/calendar @@ -282,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.18...@spectrum-css/calendar@4.0.20) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.18...@spectrum-css/calendar@4.0.20) **Note:** Version bump only for package @spectrum-css/calendar @@ -291,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.18...@spectrum-css/calendar@4.0.19) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.18...@spectrum-css/calendar@4.0.19) **Note:** Version bump only for package @spectrum-css/calendar @@ -300,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.17...@spectrum-css/calendar@4.0.18) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.17...@spectrum-css/calendar@4.0.18) **Note:** Version bump only for package @spectrum-css/calendar @@ -309,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.16...@spectrum-css/calendar@4.0.17) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.16...@spectrum-css/calendar@4.0.17) **Note:** Version bump only for package @spectrum-css/calendar @@ -318,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.15...@spectrum-css/calendar@4.0.16) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.15...@spectrum-css/calendar@4.0.16) **Note:** Version bump only for package @spectrum-css/calendar @@ -327,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.14...@spectrum-css/calendar@4.0.15) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.14...@spectrum-css/calendar@4.0.15) **Note:** Version bump only for package @spectrum-css/calendar @@ -336,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.13...@spectrum-css/calendar@4.0.14) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.13...@spectrum-css/calendar@4.0.14) **Note:** Version bump only for package @spectrum-css/calendar @@ -345,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.12...@spectrum-css/calendar@4.0.13) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.12...@spectrum-css/calendar@4.0.13) **Note:** Version bump only for package @spectrum-css/calendar @@ -354,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.11...@spectrum-css/calendar@4.0.12) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.11...@spectrum-css/calendar@4.0.12) **Note:** Version bump only for package @spectrum-css/calendar @@ -363,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.10...@spectrum-css/calendar@4.0.11) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.10...@spectrum-css/calendar@4.0.11) **Note:** Version bump only for package @spectrum-css/calendar @@ -372,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.9...@spectrum-css/calendar@4.0.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.9...@spectrum-css/calendar@4.0.10) **Note:** Version bump only for package @spectrum-css/calendar @@ -381,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.8...@spectrum-css/calendar@4.0.9) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.8...@spectrum-css/calendar@4.0.9) **Note:** Version bump only for package @spectrum-css/calendar @@ -390,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.7...@spectrum-css/calendar@4.0.8) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.7...@spectrum-css/calendar@4.0.8) ### 🐛 Bug fixes @@ -405,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.6...@spectrum-css/calendar@4.0.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.6...@spectrum-css/calendar@4.0.7) **Note:** Version bump only for package @spectrum-css/calendar @@ -414,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.4...@spectrum-css/calendar@4.0.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.4...@spectrum-css/calendar@4.0.6) **Note:** Version bump only for package @spectrum-css/calendar @@ -423,8 +412,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.4...@spectrum-css/calendar@4.0.5) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.4...@spectrum-css/calendar@4.0.5) **Note:** Version bump only for package @spectrum-css/calendar @@ -432,8 +420,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.3...@spectrum-css/calendar@4.0.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.3...@spectrum-css/calendar@4.0.4) **Note:** Version bump only for package @spectrum-css/calendar @@ -441,8 +428,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.2...@spectrum-css/calendar@4.0.3) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.2...@spectrum-css/calendar@4.0.3) **Note:** Version bump only for package @spectrum-css/calendar @@ -450,8 +436,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.1...@spectrum-css/calendar@4.0.2) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.1...@spectrum-css/calendar@4.0.2) **Note:** Version bump only for package @spectrum-css/calendar @@ -459,8 +444,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.0...@spectrum-css/calendar@4.0.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@4.0.0...@spectrum-css/calendar@4.0.1) **Note:** Version bump only for package @spectrum-css/calendar @@ -468,13 +452,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.7...@spectrum-css/calendar@4.0.0) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.7...@spectrum-css/calendar@4.0.0) \*feat(calendar)!: migrate to use spectrum-tokens([a01b293](https://github.com/adobe/spectrum-css/commit/a01b293)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Calendar to use `@adobe/spectrum-tokens` @@ -483,8 +465,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.7 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.6...@spectrum-css/calendar@3.2.7) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.6...@spectrum-css/calendar@3.2.7) **Note:** Version bump only for package @spectrum-css/calendar @@ -492,8 +473,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.6 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.5...@spectrum-css/calendar@3.2.6) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.5...@spectrum-css/calendar@3.2.6) **Note:** Version bump only for package @spectrum-css/calendar @@ -501,8 +481,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.5 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.4...@spectrum-css/calendar@3.2.5) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.4...@spectrum-css/calendar@3.2.5) **Note:** Version bump only for package @spectrum-css/calendar @@ -510,8 +489,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.4 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.3...@spectrum-css/calendar@3.2.4) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.3...@spectrum-css/calendar@3.2.4) **Note:** Version bump only for package @spectrum-css/calendar @@ -519,8 +497,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.3 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.2...@spectrum-css/calendar@3.2.3) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.2...@spectrum-css/calendar@3.2.3) **Note:** Version bump only for package @spectrum-css/calendar @@ -528,8 +505,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.2 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.1...@spectrum-css/calendar@3.2.2) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.1...@spectrum-css/calendar@3.2.2) **Note:** Version bump only for package @spectrum-css/calendar @@ -537,8 +513,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.1 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.0...@spectrum-css/calendar@3.2.1) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.2.0...@spectrum-css/calendar@3.2.1) **Note:** Version bump only for package @spectrum-css/calendar @@ -546,8 +521,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.0 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.24...@spectrum-css/calendar@3.2.0) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.24...@spectrum-css/calendar@3.2.0) ### ✨ Features @@ -557,8 +531,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.24 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.23...@spectrum-css/calendar@3.1.24) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.23...@spectrum-css/calendar@3.1.24) ### 🐛 Bug fixes @@ -568,8 +541,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.23 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.22...@spectrum-css/calendar@3.1.23) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.22...@spectrum-css/calendar@3.1.23) **Note:** Version bump only for package @spectrum-css/calendar @@ -577,8 +549,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.22 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.21...@spectrum-css/calendar@3.1.22) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/calendar@3.1.21...@spectrum-css/calendar@3.1.22) **Note:** Version bump only for package @spectrum-css/calendar diff --git a/components/calendar/dist/metadata.json b/components/calendar/dist/metadata.json index 676c81a041f..c4901c2be46 100644 --- a/components/calendar/dist/metadata.json +++ b/components/calendar/dist/metadata.json @@ -176,7 +176,6 @@ "--spectrum-neutral-subdued-content-color-default", "--spectrum-regular-font-weight" ], - "system-theme": ["--system-calendar-day-background-color-selected-disabled"], "passthroughs": [ "--mod-actionbutton-content-color-default", "--mod-actionbutton-edge-to-text", diff --git a/components/calendar/index.css b/components/calendar/index.css index 2ca1bc289aa..68b3c73e049 100644 --- a/components/calendar/index.css +++ b/components/calendar/index.css @@ -11,9 +11,9 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Calendar { + --spectrum-calendar-day-background-color-selected-disabled: rgba(var(--spectrum-gray-100-rgb), 0.4); + --spectrum-calendar-day-width: var(--mod-calendar-day-width, var(--spectrum-component-height-100)); --spectrum-calendar-day-height: var(--mod-calendar-day-height, var(--spectrum-component-height-100)); --spectrum-calendar-day-border-size: var(--mod-calendar-day-border-size, var(--spectrum-border-width-200)); @@ -48,6 +48,7 @@ --spectrum-calendar-day-background: var(--mod-calendar-day-background-color, transparent); --spectrum-calendar-day-background-selected: var(--highcontrast-calendar-day-background-selected, var(--mod-calendar-day-background-color-selected, var(--spectrum-calendar-day-background-color-selected))); --spectrum-calendar-day-background-selected-hover: var(--highcontrast-calendar-day-background-selected-hover, var(--mod-calendar-day-background-color-selected-hover, var(--spectrum-calendar-day-background-color-selected-hover))); + --spectrum-calendar-day-background-color-selected-disabled: rgba(var(--spectrum-gray-100-rgb), 0.4); --spectrum-calendar-day-background-cap-selected: var(--highcontrast-calendar-day-background-cap-selected, var(--mod-calendar-day-background-color-cap-selected, var(--spectrum-calendar-day-background-color-cap-selected))); --spectrum-calendar-day-background-hover: var(--highcontrast-calendar-day-background-hover, var(--mod-calendar-day-background-color-hover, var(--spectrum-calendar-day-background-color-hover))); --spectrum-calendar-day-background-focus: var(--highcontrast-calendar-day-background-focus, var(--mod-calendar-day-background-color-key-focus, var(--spectrum-calendar-day-background-color-key-focus))); @@ -170,8 +171,7 @@ .spectrum-Calendar-prevMonth, .spectrum-Calendar-nextMonth { - /* @passthrough start */ - /* Mimic the placement and sizing of the dates in the grid below */ + /* @passthrough start -- mimic the placement and sizing of the dates in the grid below */ --mod-actionbutton-edge-to-text: var(--spectrum-calendar-day-padding); --mod-actionbutton-min-width: var(--spectrum-calendar-day-width); --mod-actionbutton-content-color-default: var(--spectrum-calendar-button-icon-color); diff --git a/components/calendar/package.json b/components/calendar/package.json index 786a44b0614..54f0becd53d 100644 --- a/components/calendar/package.json +++ b/components/calendar/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/actionbutton": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/calendar/stories/template.js b/components/calendar/stories/template.js index 19c70fe9395..863f5e8d113 100644 --- a/components/calendar/stories/template.js +++ b/components/calendar/stories/template.js @@ -8,9 +8,6 @@ import { repeat } from "lit/directives/repeat.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Calendar", diff --git a/components/calendar/themes/express.css b/components/calendar/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/calendar/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/calendar/themes/spectrum-two.css b/components/calendar/themes/spectrum-two.css deleted file mode 100644 index b14c7134359..00000000000 --- a/components/calendar/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Calendar { - --spectrum-calendar-day-background-color-selected-disabled: rgba(var(--spectrum-gray-100-rgb), 0.4); - } -} diff --git a/components/calendar/themes/spectrum.css b/components/calendar/themes/spectrum.css deleted file mode 100644 index 368d50d51e8..00000000000 --- a/components/calendar/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Calendar { - --spectrum-calendar-day-background-color-selected-disabled: rgba(var(--spectrum-gray-200-rgb), 0.4); - } -} diff --git a/components/card/CHANGELOG.md b/components/card/CHANGELOG.md index 6627f091e17..27d98c1a32e 100644 --- a/components/card/CHANGELOG.md +++ b/components/card/CHANGELOG.md @@ -212,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.2...@spectrum-css/card@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.2...@spectrum-css/card@8.0.0) ### ✨ Features @@ -233,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.1...@spectrum-css/card@7.0.2) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.1...@spectrum-css/card@7.0.2) **Note:** Version bump only for package @spectrum-css/card @@ -242,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.0...@spectrum-css/card@7.0.1) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@7.0.0...@spectrum-css/card@7.0.1) **Note:** Version bump only for package @spectrum-css/card @@ -251,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.4.1...@spectrum-css/card@7.0.0) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.4.1...@spectrum-css/card@7.0.0) ### ♻️ Code refactoring @@ -270,8 +266,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.4.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/card @@ -279,8 +274,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.4.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.3.1...@spectrum-css/card@6.4.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.3.1...@spectrum-css/card@6.4.0) **Note:** Version bump only for package @spectrum-css/card @@ -288,8 +282,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.3.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.3.0...@spectrum-css/card@6.3.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.3.0...@spectrum-css/card@6.3.1) ### 🐛 Bug fixes @@ -301,8 +294,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.3.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.2...@spectrum-css/card@6.3.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.2...@spectrum-css/card@6.3.0) ### ✨ Features @@ -312,8 +304,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.2.2 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.1...@spectrum-css/card@6.2.2) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.1...@spectrum-css/card@6.2.2) **Note:** Version bump only for package @spectrum-css/card @@ -321,8 +312,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.2.1 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.0...@spectrum-css/card@6.2.1) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.2.0...@spectrum-css/card@6.2.1) ### 🐛 Bug fixes @@ -332,8 +322,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.2.0 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.24...@spectrum-css/card@6.2.0) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.24...@spectrum-css/card@6.2.0) ### ✨ Features @@ -343,8 +332,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.1.0 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.24...@spectrum-css/card@6.1.0) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.24...@spectrum-css/card@6.1.0) ### ✨ Features @@ -354,8 +342,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.24 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.23...@spectrum-css/card@6.0.24) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.23...@spectrum-css/card@6.0.24) **Note:** Version bump only for package @spectrum-css/card @@ -363,8 +350,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.23 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.22...@spectrum-css/card@6.0.23) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.22...@spectrum-css/card@6.0.23) **Note:** Version bump only for package @spectrum-css/card @@ -372,8 +358,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.22 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.21...@spectrum-css/card@6.0.22) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.21...@spectrum-css/card@6.0.22) **Note:** Version bump only for package @spectrum-css/card @@ -381,8 +366,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.21 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.20...@spectrum-css/card@6.0.21) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.20...@spectrum-css/card@6.0.21) **Note:** Version bump only for package @spectrum-css/card @@ -390,8 +374,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.20 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.19...@spectrum-css/card@6.0.20) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.19...@spectrum-css/card@6.0.20) **Note:** Version bump only for package @spectrum-css/card @@ -399,8 +382,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.19 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.18...@spectrum-css/card@6.0.19) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.18...@spectrum-css/card@6.0.19) **Note:** Version bump only for package @spectrum-css/card @@ -408,8 +390,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.18 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.17...@spectrum-css/card@6.0.18) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.17...@spectrum-css/card@6.0.18) **Note:** Version bump only for package @spectrum-css/card @@ -417,8 +398,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.17 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.16...@spectrum-css/card@6.0.17) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.16...@spectrum-css/card@6.0.17) **Note:** Version bump only for package @spectrum-css/card @@ -426,8 +406,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.16 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.15...@spectrum-css/card@6.0.16) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.15...@spectrum-css/card@6.0.16) **Note:** Version bump only for package @spectrum-css/card @@ -435,8 +414,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.15 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.14...@spectrum-css/card@6.0.15) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.14...@spectrum-css/card@6.0.15) **Note:** Version bump only for package @spectrum-css/card @@ -444,8 +422,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.14 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.13...@spectrum-css/card@6.0.14) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.13...@spectrum-css/card@6.0.14) **Note:** Version bump only for package @spectrum-css/card @@ -453,8 +430,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.13 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.12...@spectrum-css/card@6.0.13) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.12...@spectrum-css/card@6.0.13) **Note:** Version bump only for package @spectrum-css/card @@ -462,8 +438,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.12 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.10...@spectrum-css/card@6.0.12) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.10...@spectrum-css/card@6.0.12) **Note:** Version bump only for package @spectrum-css/card @@ -471,8 +446,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.11 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.10...@spectrum-css/card@6.0.11) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.10...@spectrum-css/card@6.0.11) **Note:** Version bump only for package @spectrum-css/card @@ -480,8 +454,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.10 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.9...@spectrum-css/card@6.0.10) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.9...@spectrum-css/card@6.0.10) **Note:** Version bump only for package @spectrum-css/card @@ -489,8 +462,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.9 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.8...@spectrum-css/card@6.0.9) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.8...@spectrum-css/card@6.0.9) **Note:** Version bump only for package @spectrum-css/card @@ -498,8 +470,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.8 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.7...@spectrum-css/card@6.0.8) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.7...@spectrum-css/card@6.0.8) **Note:** Version bump only for package @spectrum-css/card @@ -507,8 +478,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.7 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.6...@spectrum-css/card@6.0.7) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.6...@spectrum-css/card@6.0.7) **Note:** Version bump only for package @spectrum-css/card @@ -516,8 +486,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.6 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.5...@spectrum-css/card@6.0.6) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.5...@spectrum-css/card@6.0.6) **Note:** Version bump only for package @spectrum-css/card @@ -525,8 +494,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.5 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.4...@spectrum-css/card@6.0.5) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.4...@spectrum-css/card@6.0.5) **Note:** Version bump only for package @spectrum-css/card @@ -534,8 +502,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.4 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.3...@spectrum-css/card@6.0.4) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.3...@spectrum-css/card@6.0.4) **Note:** Version bump only for package @spectrum-css/card @@ -543,8 +510,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.3 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.2...@spectrum-css/card@6.0.3) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.2...@spectrum-css/card@6.0.3) **Note:** Version bump only for package @spectrum-css/card @@ -552,8 +518,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.2 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.1...@spectrum-css/card@6.0.2) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.1...@spectrum-css/card@6.0.2) **Note:** Version bump only for package @spectrum-css/card @@ -561,8 +526,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.1 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.0...@spectrum-css/card@6.0.1) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@6.0.0...@spectrum-css/card@6.0.1) **Note:** Version bump only for package @spectrum-css/card @@ -570,13 +534,11 @@ This component has been deprecated. Use an action bar to allow users to perform ## 6.0.0 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.41...@spectrum-css/card@6.0.0) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.41...@spectrum-css/card@6.0.0) \*feat(card)!: migrate to use `@adobe/spectrum-tokens` (#1693)([1afc96b](https://github.com/adobe/spectrum-css/commit/1afc96b)), closes[#1693](https://github.com/adobe/spectrum-css/issues/1693) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates the Card component to use `@adobe/spectrum-tokens` @@ -585,8 +547,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 5.0.41 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.40...@spectrum-css/card@5.0.41) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.40...@spectrum-css/card@5.0.41) **Note:** Version bump only for package @spectrum-css/card @@ -594,8 +555,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 5.0.40 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.39...@spectrum-css/card@5.0.40) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.39...@spectrum-css/card@5.0.40) **Note:** Version bump only for package @spectrum-css/card @@ -603,8 +563,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 5.0.39 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.38...@spectrum-css/card@5.0.39) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.38...@spectrum-css/card@5.0.39) ### 🐛 Bug fixes @@ -614,8 +573,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 5.0.38 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.37...@spectrum-css/card@5.0.38) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.37...@spectrum-css/card@5.0.38) **Note:** Version bump only for package @spectrum-css/card @@ -623,8 +581,7 @@ This component has been deprecated. Use an action bar to allow users to perform ## 5.0.37 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.36...@spectrum-css/card@5.0.37) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/card@5.0.36...@spectrum-css/card@5.0.37) **Note:** Version bump only for package @spectrum-css/card diff --git a/components/card/dist/metadata.json b/components/card/dist/metadata.json index 54eb899211d..56e8fcaac8c 100644 --- a/components/card/dist/metadata.json +++ b/components/card/dist/metadata.json @@ -55,7 +55,6 @@ ".spectrum-Card.is-drop-target", ".spectrum-Card.is-focused .spectrum-Card-actions", ".spectrum-Card.is-focused .spectrum-Card-quickActions", - ".spectrum-Card.is-selected", ".spectrum-Card.is-selected .spectrum-Card-actions", ".spectrum-Card.is-selected .spectrum-Card-quickActions", ".spectrum-Card.is-selected:before", @@ -155,6 +154,7 @@ "--spectrum-card-body-spacing", "--spectrum-card-border-color", "--spectrum-card-border-color-hover", + "--spectrum-card-border-color-selected", "--spectrum-card-border-width", "--spectrum-card-content-margin-bottom", "--spectrum-card-content-margin-top", @@ -215,13 +215,6 @@ "--spectrum-spacing-300", "--spectrum-spacing-400" ], - "system-theme": [ - "--system-card-border-color", - "--system-card-border-color-hover", - "--system-card-divider-color", - "--system-card-preview-background-color", - "--system-card-preview-background-color-hover" - ], "passthroughs": [], "high-contrast": [] } diff --git a/components/card/index.css b/components/card/index.css index f56599c17c4..0d41d088761 100644 --- a/components/card/index.css +++ b/components/card/index.css @@ -11,9 +11,13 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Card { + --spectrum-card-border-color: var(--spectrum-gray-100); + --spectrum-card-border-color-hover: var(--spectrum-gray-200); + --spectrum-card-divider-color: var(--spectrum-gray-200); + --spectrum-card-preview-background-color: var(--spectrum-gray-100); + --spectrum-card-preview-background-color-hover: var(--spectrum-gray-200); + /* Default Layout */ --spectrum-card-background-color: var(--mod-card-background-color, var(--spectrum-background-layer-2-color)); --spectrum-card-body-spacing: var(--mod-card-body-spacing, var(--spectrum-spacing-400)); @@ -26,6 +30,7 @@ --spectrum-card-border-width: var(--mod-card-border-width, var(--spectrum-border-width-100)); --spectrum-card-corner-radius: var(--mod-card-corner-radius, var(--spectrum-corner-radius-100)); + --spectrum-card-border-color-selected: var(--mod-card-border-color-selected, var(--spectrum-blue-700)); /* Typography */ --spectrum-card-title-font-family: var(--mod-card-title-font-family, var(--spectrum-sans-font-family-stack)); @@ -77,13 +82,6 @@ --spectrum-card-content-margin-top: var(--spectrum-spacing-100); } - &.is-selected, - &.is-drop-target { - --spectrum-card-border-color: var(--mod-card-border-color-selected, var(--spectrum-blue-700)); - } -} - -.spectrum-Card { position: relative; display: inline-flex; flex-direction: column; diff --git a/components/card/package.json b/components/card/package.json index 27c5e007e7d..1d1692a4f6d 100644 --- a/components/card/package.json +++ b/components/card/package.json @@ -25,13 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/asset": ">=5", - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/icon": ">=7", - "@spectrum-css/quickaction": ">=3", - "@spectrum-css/tokens": ">=14.5.0 || >=15", - "@spectrum-css/typography": ">=6" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/asset": ">=7", + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16", + "@spectrum-css/typography": ">=8" }, "peerDependenciesMeta": { "@spectrum-css/actionbutton": { @@ -56,11 +55,7 @@ "@spectrum-css/checkbox": "10.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/typography": "8.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/typography": "8.0.1" }, "keywords": [ "design-system", diff --git a/components/card/stories/template.js b/components/card/stories/template.js index d1d226c7b0e..09eb0360803 100644 --- a/components/card/stories/template.js +++ b/components/card/stories/template.js @@ -11,9 +11,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Card", diff --git a/components/card/themes/express.css b/components/card/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/card/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/card/themes/spectrum-two.css b/components/card/themes/spectrum-two.css deleted file mode 100644 index 2ef275418ee..00000000000 --- a/components/card/themes/spectrum-two.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Card { - --spectrum-card-border-color: var(--spectrum-gray-100); - --spectrum-card-border-color-hover: var(--spectrum-gray-200); - --spectrum-card-divider-color: var(--spectrum-gray-200); - --spectrum-card-preview-background-color: var(--spectrum-gray-100); - --spectrum-card-preview-background-color-hover: var(--spectrum-gray-200); - } -} diff --git a/components/card/themes/spectrum.css b/components/card/themes/spectrum.css deleted file mode 100644 index a1906d601bd..00000000000 --- a/components/card/themes/spectrum.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Card { - --spectrum-card-border-color: var(--spectrum-gray-200); - --spectrum-card-border-color-hover: var(--spectrum-gray-300); - --spectrum-card-divider-color: var(--spectrum-gray-300); - --spectrum-card-preview-background-color: var(--spectrum-background-base-color); - --spectrum-card-preview-background-color-hover: var(--spectrum-gray-300); - } -} diff --git a/components/checkbox/CHANGELOG.md b/components/checkbox/CHANGELOG.md index 6b376a113c5..c4badb85232 100644 --- a/components/checkbox/CHANGELOG.md +++ b/components/checkbox/CHANGELOG.md @@ -150,8 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.5...@spectrum-css/checkbox@9.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.5...@spectrum-css/checkbox@9.0.0) ### ✨ Features @@ -159,11 +158,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -171,8 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.4...@spectrum-css/checkbox@8.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.4...@spectrum-css/checkbox@8.1.5) **Note:** Version bump only for package @spectrum-css/checkbox @@ -180,8 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.3...@spectrum-css/checkbox@8.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.3...@spectrum-css/checkbox@8.1.4) **Note:** Version bump only for package @spectrum-css/checkbox @@ -189,8 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.2...@spectrum-css/checkbox@8.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.2...@spectrum-css/checkbox@8.1.3) **Note:** Version bump only for package @spectrum-css/checkbox @@ -198,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.1...@spectrum-css/checkbox@8.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.1.1...@spectrum-css/checkbox@8.1.2) **Note:** Version bump only for package @spectrum-css/checkbox @@ -207,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/checkbox @@ -216,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.6...@spectrum-css/checkbox@8.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.6...@spectrum-css/checkbox@8.1.0) **Note:** Version bump only for package @spectrum-css/checkbox @@ -225,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.6 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.5...@spectrum-css/checkbox@8.0.6) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.5...@spectrum-css/checkbox@8.0.6) ### 🐛 Bug fixes @@ -236,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.5 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.4...@spectrum-css/checkbox@8.0.5) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.4...@spectrum-css/checkbox@8.0.5) **Note:** Version bump only for package @spectrum-css/checkbox @@ -245,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.3...@spectrum-css/checkbox@8.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.3...@spectrum-css/checkbox@8.0.4) **Note:** Version bump only for package @spectrum-css/checkbox @@ -254,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.2...@spectrum-css/checkbox@8.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.2...@spectrum-css/checkbox@8.0.3) **Note:** Version bump only for package @spectrum-css/checkbox @@ -263,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.0...@spectrum-css/checkbox@8.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.0...@spectrum-css/checkbox@8.0.2) **Note:** Version bump only for package @spectrum-css/checkbox @@ -272,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.0...@spectrum-css/checkbox@8.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@8.0.0...@spectrum-css/checkbox@8.0.1) **Note:** Version bump only for package @spectrum-css/checkbox @@ -281,13 +265,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.16...@spectrum-css/checkbox@8.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.16...@spectrum-css/checkbox@8.0.0) \*refactor(assetcard)!: token migration (#2229)([a0cf37b](https://github.com/adobe/spectrum-css/commit/a0cf37b)), closes[#2229](https://github.com/adobe/spectrum-css/issues/2229) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrate asset card to updated token system @@ -296,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.16 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.15...@spectrum-css/checkbox@7.0.16) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.15...@spectrum-css/checkbox@7.0.16) **Note:** Version bump only for package @spectrum-css/checkbox @@ -305,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.15 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.14...@spectrum-css/checkbox@7.0.15) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.14...@spectrum-css/checkbox@7.0.15) **Note:** Version bump only for package @spectrum-css/checkbox @@ -314,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.14 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.13...@spectrum-css/checkbox@7.0.14) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.13...@spectrum-css/checkbox@7.0.14) **Note:** Version bump only for package @spectrum-css/checkbox @@ -323,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.13 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.12...@spectrum-css/checkbox@7.0.13) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.12...@spectrum-css/checkbox@7.0.13) **Note:** Version bump only for package @spectrum-css/checkbox @@ -332,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.12 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.11...@spectrum-css/checkbox@7.0.12) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.11...@spectrum-css/checkbox@7.0.12) **Note:** Version bump only for package @spectrum-css/checkbox @@ -341,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.11 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.10...@spectrum-css/checkbox@7.0.11) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.10...@spectrum-css/checkbox@7.0.11) **Note:** Version bump only for package @spectrum-css/checkbox @@ -350,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.10 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.9...@spectrum-css/checkbox@7.0.10) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.9...@spectrum-css/checkbox@7.0.10) **Note:** Version bump only for package @spectrum-css/checkbox @@ -359,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.8...@spectrum-css/checkbox@7.0.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.8...@spectrum-css/checkbox@7.0.9) **Note:** Version bump only for package @spectrum-css/checkbox @@ -368,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.7...@spectrum-css/checkbox@7.0.8) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.7...@spectrum-css/checkbox@7.0.8) **Note:** Version bump only for package @spectrum-css/checkbox @@ -377,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.6...@spectrum-css/checkbox@7.0.7) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.6...@spectrum-css/checkbox@7.0.7) ### 🔙 Reverts @@ -388,8 +360,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.5...@spectrum-css/checkbox@7.0.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.5...@spectrum-css/checkbox@7.0.6) **Note:** Version bump only for package @spectrum-css/checkbox @@ -397,8 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.5 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.3...@spectrum-css/checkbox@7.0.5) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.3...@spectrum-css/checkbox@7.0.5) **Note:** Version bump only for package @spectrum-css/checkbox @@ -406,8 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.4 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.3...@spectrum-css/checkbox@7.0.4) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.3...@spectrum-css/checkbox@7.0.4) **Note:** Version bump only for package @spectrum-css/checkbox @@ -415,8 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.3 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.2...@spectrum-css/checkbox@7.0.3) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.2...@spectrum-css/checkbox@7.0.3) **Note:** Version bump only for package @spectrum-css/checkbox @@ -424,8 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.1...@spectrum-css/checkbox@7.0.2) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.1...@spectrum-css/checkbox@7.0.2) **Note:** Version bump only for package @spectrum-css/checkbox @@ -433,8 +400,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.0...@spectrum-css/checkbox@7.0.1) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@7.0.0...@spectrum-css/checkbox@7.0.1) **Note:** Version bump only for package @spectrum-css/checkbox @@ -442,13 +408,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.10...@spectrum-css/checkbox@7.0.0) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.10...@spectrum-css/checkbox@7.0.0) \*feat(checkbox)!: add new color aliases and focus color fixes (#2052)([2a0d3c8](https://github.com/adobe/spectrum-css/commit/2a0d3c8)), closes[#2052](https://github.com/adobe/spectrum-css/issues/2052) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * prefers `:focus-visible` to `:focus-ring` & updates colors @@ -489,8 +453,7 @@ needed system color updates noticed while looking at that code. ## 6.1.10 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.9...@spectrum-css/checkbox@6.1.10) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.9...@spectrum-css/checkbox@6.1.10) **Note:** Version bump only for package @spectrum-css/checkbox @@ -498,8 +461,7 @@ needed system color updates noticed while looking at that code. ## 6.1.9 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.8...@spectrum-css/checkbox@6.1.9) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.8...@spectrum-css/checkbox@6.1.9) ### 🐛 Bug fixes @@ -509,8 +471,7 @@ needed system color updates noticed while looking at that code. ## 6.1.8 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.7...@spectrum-css/checkbox@6.1.8) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.7...@spectrum-css/checkbox@6.1.8) **Note:** Version bump only for package @spectrum-css/checkbox @@ -518,8 +479,7 @@ needed system color updates noticed while looking at that code. ## 6.1.7 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.6...@spectrum-css/checkbox@6.1.7) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.6...@spectrum-css/checkbox@6.1.7) ### 🐛 Bug fixes @@ -530,8 +490,7 @@ needed system color updates noticed while looking at that code. ## 6.1.6 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.5...@spectrum-css/checkbox@6.1.6) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.5...@spectrum-css/checkbox@6.1.6) **Note:** Version bump only for package @spectrum-css/checkbox @@ -539,8 +498,7 @@ needed system color updates noticed while looking at that code. ## 6.1.5 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.4...@spectrum-css/checkbox@6.1.5) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.4...@spectrum-css/checkbox@6.1.5) **Note:** Version bump only for package @spectrum-css/checkbox @@ -548,8 +506,7 @@ needed system color updates noticed while looking at that code. ## 6.1.4 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.3...@spectrum-css/checkbox@6.1.4) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.3...@spectrum-css/checkbox@6.1.4) **Note:** Version bump only for package @spectrum-css/checkbox @@ -557,8 +514,7 @@ needed system color updates noticed while looking at that code. ## 6.1.3 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.2...@spectrum-css/checkbox@6.1.3) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.2...@spectrum-css/checkbox@6.1.3) **Note:** Version bump only for package @spectrum-css/checkbox @@ -566,8 +522,7 @@ needed system color updates noticed while looking at that code. ## 6.1.2 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.1...@spectrum-css/checkbox@6.1.2) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.1...@spectrum-css/checkbox@6.1.2) ### 🐛 Bug fixes @@ -577,8 +532,7 @@ needed system color updates noticed while looking at that code. ## 6.1.1 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.0...@spectrum-css/checkbox@6.1.1) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.1.0...@spectrum-css/checkbox@6.1.1) **Note:** Version bump only for package @spectrum-css/checkbox @@ -586,8 +540,7 @@ needed system color updates noticed while looking at that code. ## 6.1.0 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.0.34...@spectrum-css/checkbox@6.1.0) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/checkbox@6.0.34...@spectrum-css/checkbox@6.1.0) ### ✨ Features diff --git a/components/checkbox/dist/metadata.json b/components/checkbox/dist/metadata.json index fcfbcf86abc..1ab4c79962e 100644 --- a/components/checkbox/dist/metadata.json +++ b/components/checkbox/dist/metadata.json @@ -77,7 +77,8 @@ ".spectrum-Checkbox:active .spectrum-Checkbox-label", ".spectrum-Checkbox:hover .spectrum-Checkbox-box:before", ".spectrum-Checkbox:hover .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box:before", - ".spectrum-Checkbox:hover .spectrum-Checkbox-label" + ".spectrum-Checkbox:hover .spectrum-Checkbox-label", + ".spectrum-Checkbox:not(.is-readOnly):active .spectrum-Checkbox-input:not(:disabled) + .spectrum-Checkbox-box" ], "modifiers": [ "--mod-checkbox-animation-duration", @@ -175,10 +176,16 @@ "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", + "--spectrum-component-size-difference-down", + "--spectrum-component-size-minimum-perspective-down", "--spectrum-component-top-to-text-100", "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", + "--spectrum-corner-radius-small-size-extra-large", + "--spectrum-corner-radius-small-size-large", + "--spectrum-corner-radius-small-size-medium", + "--spectrum-corner-radius-small-size-small", "--spectrum-disabled-content-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", @@ -208,14 +215,6 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-checkbox-checkmark-color", - "--system-checkbox-control-color-default", - "--system-checkbox-control-color-down", - "--system-checkbox-control-color-focus", - "--system-checkbox-control-color-hover", - "--system-checkbox-control-corner-radius" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-checkbox-background-color-default", diff --git a/components/checkbox/index.css b/components/checkbox/index.css index c997e7ceca1..617dd677b95 100644 --- a/components/checkbox/index.css +++ b/components/checkbox/index.css @@ -11,20 +11,25 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - /* * .spectrum-Checkbox-box::before is the Checkbox "box" * .spectrum-Checkbox-box::after is the focus indicator */ .spectrum-Checkbox { + --spectrum-checkbox-checkmark-color: var(--highcontrast-checkbox-background-color-default, var(--mod-checkbox-checkmark-color, var(--spectrum-gray-50))); + /* Color */ --spectrum-checkbox-content-color-default: var(--spectrum-neutral-content-color-default); --spectrum-checkbox-content-color-hover: var(--spectrum-neutral-content-color-hover); --spectrum-checkbox-content-color-down: var(--spectrum-neutral-content-color-down); --spectrum-checkbox-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --spectrum-checkbox-control-color-default: var(--spectrum-gray-600); + --spectrum-checkbox-control-color-hover: var(--spectrum-gray-700); + --spectrum-checkbox-control-color-down: var(--spectrum-gray-800); + --spectrum-checkbox-control-color-focus: var(--spectrum-gray-700); + --spectrum-checkbox-focus-indicator-color: var(--spectrum-focus-indicator-color); --spectrum-checkbox-content-color-disabled: var(--spectrum-disabled-content-color); @@ -49,6 +54,11 @@ --spectrum-checkbox-line-height: var(--spectrum-line-height-100); --spectrum-checkbox-line-height-cjk: var(--spectrum-cjk-line-height-100); + /* Size */ + --spectrum-checkbox-height: var(--spectrum-component-height-100); + --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-medium); + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-small-size-medium); + --spectrum-checkbox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); --spectrum-checkbox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); @@ -62,14 +72,13 @@ .spectrum-Checkbox--sizeM { --spectrum-checkbox-font-size: var(--spectrum-font-size-100); - --spectrum-checkbox-height: var(--spectrum-component-height-100); - --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-medium); - --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-100); --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-100); } .spectrum-Checkbox--sizeS { + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-small-size-small); + --spectrum-checkbox-font-size: var(--spectrum-font-size-75); --spectrum-checkbox-height: var(--spectrum-component-height-75); @@ -80,6 +89,8 @@ } .spectrum-Checkbox--sizeL { + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-small-size-large); + --spectrum-checkbox-font-size: var(--spectrum-font-size-200); --spectrum-checkbox-height: var(--spectrum-component-height-200); @@ -90,6 +101,8 @@ } .spectrum-Checkbox--sizeXL { + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-small-size-extra-large); + --spectrum-checkbox-font-size: var(--spectrum-font-size-300); --spectrum-checkbox-height: var(--spectrum-component-height-300); @@ -141,6 +154,12 @@ } } + &:not(.is-readOnly):active { + .spectrum-Checkbox-input:not(:disabled) + .spectrum-Checkbox-box { + transform: perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)); + } + } + /* Selected Invalid */ &.is-invalid { .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box, @@ -176,7 +195,7 @@ .spectrum-Checkbox-input:checked { &:disabled + .spectrum-Checkbox-box::before { border-color: var(--highcontrast-checkbox-color-default, var(--mod-checkbox-control-selected-color-default, var(--spectrum-checkbox-control-selected-color-default))); - background-color: var(--highcontrast-checkbox-background-color-default, var(--mod-checkbox-checkmark-color, var(--spectrum-checkbox-checkmark-color))); + background-color: var(--spectrum-checkbox-checkmark-color); } &:disabled ~ .spectrum-Checkbox-label { @@ -397,7 +416,7 @@ &:checked + .spectrum-Checkbox-box { &::before { border-color: var(--highcontrast-checkbox-highlight-color-default, var(--mod-checkbox-control-selected-color-default, var(--spectrum-checkbox-control-selected-color-default))); - background-color: var(--mod-checkbox-checkmark-color, var(--spectrum-checkbox-checkmark-color)); + background-color: var(--spectrum-checkbox-checkmark-color); border-width: var(--mod-checkbox-selected-border-width, var(--spectrum-checkbox-selected-border-width)); } @@ -495,7 +514,7 @@ .spectrum-Checkbox { .spectrum-Checkbox-checkmark, .spectrum-Checkbox-partialCheckmark { - color: var(--highcontrast-checkbox-background-color-default, var(--mod-checkbox-checkmark-color, var(--spectrum-checkbox-checkmark-color))); + color: var(--spectrum-checkbox-checkmark-color); opacity: 0; transform: scale(0); @@ -516,7 +535,7 @@ &::before { border-color: var(--highcontrast-checkbox-disabled-color-default, var(--mod-checkbox-control-color-disabled, var(--spectrum-checkbox-control-color-disabled))); - background-color: var(--highcontrast-checkbox-background-color-default, var(--mod-checkbox-checkmark-color, var(--spectrum-checkbox-checkmark-color))); + background-color: var(--spectrum-checkbox-checkmark-color); } } diff --git a/components/checkbox/package.json b/components/checkbox/package.json index d42f4a72c49..772a33d146b 100644 --- a/components/checkbox/package.json +++ b/components/checkbox/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/checkbox/stories/template.js b/components/checkbox/stories/template.js index 9c778259f7d..920b1f98b56 100644 --- a/components/checkbox/stories/template.js +++ b/components/checkbox/stories/template.js @@ -7,9 +7,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Checkbox", diff --git a/components/checkbox/themes/express.css b/components/checkbox/themes/express.css deleted file mode 100644 index 1c84aa5f83b..00000000000 --- a/components/checkbox/themes/express.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Checkbox { - --spectrum-checkbox-control-color-default: var(--spectrum-gray-800); - --spectrum-checkbox-control-color-hover: var(--spectrum-gray-900); - --spectrum-checkbox-control-color-down: var(--spectrum-gray-900); - --spectrum-checkbox-control-color-focus: var(--spectrum-gray-900); - } -} diff --git a/components/checkbox/themes/spectrum-two.css b/components/checkbox/themes/spectrum-two.css deleted file mode 100644 index 8632f60bce8..00000000000 --- a/components/checkbox/themes/spectrum-two.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Checkbox { - --spectrum-checkbox-control-color-default: var(--spectrum-gray-600); - --spectrum-checkbox-control-color-hover: var(--spectrum-gray-700); - --spectrum-checkbox-control-color-down: var(--spectrum-gray-800); - --spectrum-checkbox-control-color-focus: var(--spectrum-gray-700); - - --spectrum-checkbox-checkmark-color: var(--spectrum-gray-50); - --spectrum-checkbox-control-corner-radius: 2px; - } -} diff --git a/components/checkbox/themes/spectrum.css b/components/checkbox/themes/spectrum.css deleted file mode 100644 index 25ea7552d11..00000000000 --- a/components/checkbox/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Checkbox { - --spectrum-checkbox-checkmark-color: var(--spectrum-gray-75); - --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-75); - } -} diff --git a/components/clearbutton/CHANGELOG.md b/components/clearbutton/CHANGELOG.md index 7c9badd0e96..ba48c9d1015 100644 --- a/components/clearbutton/CHANGELOG.md +++ b/components/clearbutton/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 6.4.1-next.0 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 7.0.1 ### Patch Changes @@ -161,16 +170,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.4...@spectrum-css/clearbutton@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.4...@spectrum-css/clearbutton@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -178,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.3...@spectrum-css/clearbutton@5.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.3...@spectrum-css/clearbutton@5.1.4) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -187,8 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.2...@spectrum-css/clearbutton@5.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.2...@spectrum-css/clearbutton@5.1.3) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -196,8 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.1...@spectrum-css/clearbutton@5.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.1.1...@spectrum-css/clearbutton@5.1.2) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -205,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/clearbutton @@ -214,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.16...@spectrum-css/clearbutton@5.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.16...@spectrum-css/clearbutton@5.1.0) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -223,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.16 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.15...@spectrum-css/clearbutton@5.0.16) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.15...@spectrum-css/clearbutton@5.0.16) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -232,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.15 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.14...@spectrum-css/clearbutton@5.0.15) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.14...@spectrum-css/clearbutton@5.0.15) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -241,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.13...@spectrum-css/clearbutton@5.0.14) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.13...@spectrum-css/clearbutton@5.0.14) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -250,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.11...@spectrum-css/clearbutton@5.0.13) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.11...@spectrum-css/clearbutton@5.0.13) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -259,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.11...@spectrum-css/clearbutton@5.0.12) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.11...@spectrum-css/clearbutton@5.0.12) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -268,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.10...@spectrum-css/clearbutton@5.0.11) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.10...@spectrum-css/clearbutton@5.0.11) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -277,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.9...@spectrum-css/clearbutton@5.0.10) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.9...@spectrum-css/clearbutton@5.0.10) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -286,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.8...@spectrum-css/clearbutton@5.0.9) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.8...@spectrum-css/clearbutton@5.0.9) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -295,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.7...@spectrum-css/clearbutton@5.0.8) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.7...@spectrum-css/clearbutton@5.0.8) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -304,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.6...@spectrum-css/clearbutton@5.0.7) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.6...@spectrum-css/clearbutton@5.0.7) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -313,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.5...@spectrum-css/clearbutton@5.0.6) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.5...@spectrum-css/clearbutton@5.0.6) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -322,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.4...@spectrum-css/clearbutton@5.0.5) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.4...@spectrum-css/clearbutton@5.0.5) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -331,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.3...@spectrum-css/clearbutton@5.0.4) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.3...@spectrum-css/clearbutton@5.0.4) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -340,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.2...@spectrum-css/clearbutton@5.0.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.2...@spectrum-css/clearbutton@5.0.3) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -349,8 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.1...@spectrum-css/clearbutton@5.0.2) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.1...@spectrum-css/clearbutton@5.0.2) ### 🔙 Reverts @@ -360,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.0...@spectrum-css/clearbutton@5.0.1) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@5.0.0...@spectrum-css/clearbutton@5.0.1) **Note:** Version bump only for package @spectrum-css/clearbutton @@ -369,13 +354,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@2.0.0...@spectrum-css/clearbutton@5.0.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/clearbutton@2.0.0...@spectrum-css/clearbutton@5.0.0) \*refactor(clearbutton)!: migrate tokens (#1943)([495198a](https://github.com/adobe/spectrum-css/commit/495198a)), closes[#1943](https://github.com/adobe/spectrum-css/issues/1943) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates clear button to use `@adobe/spectrum-tokens` diff --git a/components/clearbutton/dist/metadata.json b/components/clearbutton/dist/metadata.json index 9c4c6a65118..491cb6bbd32 100644 --- a/components/clearbutton/dist/metadata.json +++ b/components/clearbutton/dist/metadata.json @@ -72,15 +72,6 @@ "--spectrum-transparent-white-500", "--spectrum-white" ], - "system-theme": [ - "--system-clear-button-background-color", - "--system-clear-button-background-color-down", - "--system-clear-button-background-color-hover", - "--system-clear-button-background-color-key-focus", - "--system-clear-button-static-white-background-color-down", - "--system-clear-button-static-white-background-color-hover", - "--system-clear-button-static-white-background-color-key-focus" - ], "passthroughs": [], "high-contrast": ["--highcontrast-clear-button-icon-color-hover"] } diff --git a/components/clearbutton/index.css b/components/clearbutton/index.css index edee47004ee..5ddfcb3060a 100644 --- a/components/clearbutton/index.css +++ b/components/clearbutton/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-ClearButton { --spectrum-clear-button-height: var(--spectrum-component-height-100); --spectrum-clear-button-width: var(--spectrum-component-height-100); @@ -23,16 +21,16 @@ --spectrum-clear-button-icon-color-down: var(--spectrum-neutral-content-color-down); --spectrum-clear-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - block-size: var(--mod-clear-button-height, var(--spectrum-clear-button-height)); - inline-size: var(--mod-clear-button-width, var(--spectrum-clear-button-width)); - border-radius: 100%; + --spectrum-clear-button-background-color: transparent; + --spectrum-clear-button-background-color-hover: transparent; + --spectrum-clear-button-background-color-down: transparent; + --spectrum-clear-button-background-color-key-focus: transparent; - background-color: var(--mod-clear-button-background-color, transparent); - margin: 0; - padding: var(--mod-clear-button-padding, var(--spectrum-clear-button-padding)); - - border: none; - color: var(--mod-clear-button-icon-color, var(--spectrum-clear-button-icon-color)); + &.spectrum-ClearButton--staticWhite { + --spectrum-clear-button-background-color-hover: var(--spectrum-transparent-white-400); + --spectrum-clear-button-background-color-down: var(--spectrum-transparent-white-500); + --spectrum-clear-button-background-color-key-focus: var(--spectrum-transparent-white-400); + } &.spectrum-ClearButton--sizeS { --spectrum-clear-button-height: var(--spectrum-component-height-75); @@ -57,6 +55,10 @@ } &.spectrum-ClearButton--staticWhite { + --spectrum-clear-button-background-color-hover: var(--spectrum-transparent-white-400); + --spectrum-clear-button-background-color-down: var(--spectrum-transparent-white-500); + --spectrum-clear-button-background-color-key-focus: var(--spectrum-transparent-white-400); + --mod-clear-button-icon-color: var(--spectrum-white); --mod-clear-button-icon-color-hover: var(--spectrum-white); --mod-clear-button-icon-color-down: var(--spectrum-white); @@ -73,6 +75,19 @@ --mod-clear-button-icon-color-down: var(--spectrum-disabled-content-color); --mod-clear-button-background-color: var(--mod-clear-button-background-color-disabled, transparent); } +} + +.spectrum-ClearButton { + block-size: var(--mod-clear-button-height, var(--spectrum-clear-button-height)); + inline-size: var(--mod-clear-button-width, var(--spectrum-clear-button-width)); + border-radius: 100%; + + background-color: var(--mod-clear-button-background-color, transparent); + margin: 0; + padding: var(--mod-clear-button-padding, var(--spectrum-clear-button-padding)); + + border: none; + color: var(--mod-clear-button-icon-color, var(--spectrum-clear-button-icon-color)); &:not(:disabled) { cursor: pointer; diff --git a/components/clearbutton/package.json b/components/clearbutton/package.json index 618cab5b359..5ede862e2a4 100644 --- a/components/clearbutton/package.json +++ b/components/clearbutton/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/clearbutton/stories/template.js b/components/clearbutton/stories/template.js index 58e90007c04..a4ce921c7aa 100644 --- a/components/clearbutton/stories/template.js +++ b/components/clearbutton/stories/template.js @@ -6,9 +6,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-ClearButton", diff --git a/components/clearbutton/themes/express.css b/components/clearbutton/themes/express.css deleted file mode 100644 index e13724e2883..00000000000 --- a/components/clearbutton/themes/express.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-ClearButton { - --spectrum-clear-button-background-color: var(--spectrum-gray-200); - --spectrum-clear-button-background-color-hover: var(--spectrum-gray-300); - --spectrum-clear-button-background-color-down: var(--spectrum-gray-400); - --spectrum-clear-button-background-color-key-focus: var(--spectrum-gray-300); - } -} diff --git a/components/clearbutton/themes/spectrum-two.css b/components/clearbutton/themes/spectrum-two.css deleted file mode 100644 index abba1f78556..00000000000 --- a/components/clearbutton/themes/spectrum-two.css +++ /dev/null @@ -1,27 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ClearButton { - --spectrum-clear-button-background-color: transparent; - --spectrum-clear-button-background-color-hover: transparent; - --spectrum-clear-button-background-color-down: transparent; - --spectrum-clear-button-background-color-key-focus: transparent; - - &.spectrum-ClearButton--staticWhite { - --spectrum-clear-button-background-color-hover: var(--spectrum-transparent-white-400); - --spectrum-clear-button-background-color-down: var(--spectrum-transparent-white-500); - --spectrum-clear-button-background-color-key-focus: var(--spectrum-transparent-white-400); - } - } -} diff --git a/components/clearbutton/themes/spectrum.css b/components/clearbutton/themes/spectrum.css deleted file mode 100644 index e4235fb3dff..00000000000 --- a/components/clearbutton/themes/spectrum.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ClearButton { - &.spectrum-ClearButton--staticWhite { - --spectrum-clear-button-background-color-hover: var(--spectrum-transparent-white-300); - --spectrum-clear-button-background-color-down: var(--spectrum-transparent-white-400); - --spectrum-clear-button-background-color-key-focus: var(--spectrum-transparent-white-300); - } - } -} diff --git a/components/closebutton/CHANGELOG.md b/components/closebutton/CHANGELOG.md index 2a3bc5dd118..4dca8a253e2 100644 --- a/components/closebutton/CHANGELOG.md +++ b/components/closebutton/CHANGELOG.md @@ -1,80 +1,5 @@ # Change Log -## 6.0.1 - -### Patch Changes - -- [#3534](https://github.com/adobe/spectrum-css/pull/3534) [`68e0057`](https://github.com/adobe/spectrum-css/commit/68e00577156cc32b21bfa768dbd2d35d73563b4c) Thanks [@castastrophe](https://github.com/castastrophe)! - Fixes a bug in the content of the `dist/index-theme.css` file. - - Expected `index-theme.css` to include the component selectors with component-level custom properties mapped to the `--system` prefixed ones in order to allow a component to support various contexts. - - Expected output example for the index-theme.css: - - ``` - .spectrum-ActionButton { - --spectrum-actionbutton-background-color-default: var(--system-action-button-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-action-button-background-color-hover); - ``` - -- Updated dependencies [[`68e0057`](https://github.com/adobe/spectrum-css/commit/68e00577156cc32b21bfa768dbd2d35d73563b4c)]: - - @spectrum-css/icon@9.0.1 - -## 6.0.0 - -### Major Changes - -- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6c19fcf`](https://github.com/adobe/spectrum-css/commit/6c19fcf3f0eda76987f338981ae20f9999febce6) Thanks [@pfulton](https://github.com/pfulton)! - ## Breaking change - - This major update creates a bridge between the Spectrum 1 (S1) and Spectrum 2 (S2) designs, dubbed "Spectrum 2 Foundations". These do _NOT_ reflect a fully migrated S2 component. This approach allows consumers to swap the appearance of their components between S1, Express, and S2 by leveraging a "system" layer that remaps the necessary component-level tokens to the appropriate token dataset. - - For these components to appear S2, you must load the assets with the `@spectrum-css/tokens` at `v16` or higher. - - For S1 or Express, load assets with the `@spectrum-css/tokens` at `v14.x` or `v15.x`. - - If you are looking to implement a fully S2 design, please explore the `next` tag releases instead of using this foundations release. **This release is used in Spectrum Web Components 1.x**. - - ### Deprecations - - The `metadata` folder containing the `mods.md` and `metadata.json` assets has been removed from source. To find information about the components including what selectors, modifiers, and passthroughs are used, please see the `dist/metadata.json` asset shipped with every component containing CSS. - - The `index-vars.css` asset has been removed in this release as it was previously deprecated and is no longer maintained. Please use the `index.css` or `index-base.css` - - ### File usage - - If you are rendering components and need **only** the S2 Foundations styles, you can make use of the `index.css` asset which contains all the base styles plus the system mappings for S2 Foundations. - - If you are using this version to publish **only** an S1 or Express component, you can use the `index-base.css` plus the desired `themes/(spectrum|express).css` file. - - To render a component that can be easily swapped between the S2 Foundations, S1, or Express contexts, load `index-base.css` with the `index-theme.css` file and leverage the appropriate context classes (`.spectrum--legacy` for S1 and `.spectrum--express` for Express). - -### Patch Changes - -- Updated dependencies [[`6c19fcf`](https://github.com/adobe/spectrum-css/commit/6c19fcf3f0eda76987f338981ae20f9999febce6), [`3d08cea`](https://github.com/adobe/spectrum-css/commit/3d08cea0f590c8c2de7252677a6b81b8cc206b9a), [`6c19fcf`](https://github.com/adobe/spectrum-css/commit/6c19fcf3f0eda76987f338981ae20f9999febce6)]: - - @spectrum-css/tokens@16.0.0 - - @spectrum-css/icon@9.0.0 - -## 5.4.1 - -### Patch Changes - -- [#3522](https://github.com/adobe/spectrum-css/pull/3522) [`7a47c22`](https://github.com/adobe/spectrum-css/commit/7a47c2266b6d0e8c99061fe85cba8d52684bae39) Thanks [@castastrophe](https://github.com/castastrophe)! - Peer dependency for @spectrum-css/tokens updated to include v15 as well as v14. - -- Updated dependencies [[`7a47c22`](https://github.com/adobe/spectrum-css/commit/7a47c2266b6d0e8c99061fe85cba8d52684bae39), [`7a47c22`](https://github.com/adobe/spectrum-css/commit/7a47c2266b6d0e8c99061fe85cba8d52684bae39)]: - - @spectrum-css/tokens@15.2.0 - - @spectrum-css/icon@8.0.1 - -## 5.4.0 - -### Minor Changes - -- [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)! - Simplify how the `--system` properties are mapped. By updating the logic in the `postcss-add-theming-layer`, we are now shipping cleaner, more readable `--system` property names. These custom properties are documented as _NOT_ a part of the component API so although these result in a change to the custom property names, it does not impact the properties that are in the API and so do not constitute a breaking change. Expect to see no change to how component theming works or any visual regressions as a result of this change. - -### Patch Changes - -- Updated dependencies [[`c8194b0`](https://github.com/adobe/spectrum-css/commit/c8194b0a5b6e115d7db680f287eb8a2a9709906b), [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b)]: - - @spectrum-css/tokens@15.1.0 - - @spectrum-css/icon@8.0.0 - ## 5.3.0 ### Minor Changes @@ -160,16 +85,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.5...@spectrum-css/closebutton@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.5...@spectrum-css/closebutton@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -177,8 +99,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.4...@spectrum-css/closebutton@4.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.4...@spectrum-css/closebutton@4.2.5) **Note:** Version bump only for package @spectrum-css/closebutton @@ -186,8 +107,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.3...@spectrum-css/closebutton@4.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.3...@spectrum-css/closebutton@4.2.4) **Note:** Version bump only for package @spectrum-css/closebutton @@ -195,8 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.2...@spectrum-css/closebutton@4.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.2...@spectrum-css/closebutton@4.2.3) **Note:** Version bump only for package @spectrum-css/closebutton @@ -204,8 +123,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.1...@spectrum-css/closebutton@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.2.1...@spectrum-css/closebutton@4.2.2) **Note:** Version bump only for package @spectrum-css/closebutton @@ -213,8 +131,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/closebutton @@ -222,8 +139,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.1.0...@spectrum-css/closebutton@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.1.0...@spectrum-css/closebutton@4.2.0) **Note:** Version bump only for package @spectrum-css/closebutton @@ -231,8 +147,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.18...@spectrum-css/closebutton@4.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.18...@spectrum-css/closebutton@4.1.0) ### ✨ Features @@ -246,8 +161,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.17...@spectrum-css/closebutton@4.0.18) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.17...@spectrum-css/closebutton@4.0.18) **Note:** Version bump only for package @spectrum-css/closebutton @@ -255,8 +169,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.16...@spectrum-css/closebutton@4.0.17) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.16...@spectrum-css/closebutton@4.0.17) **Note:** Version bump only for package @spectrum-css/closebutton @@ -264,8 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.15...@spectrum-css/closebutton@4.0.16) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.15...@spectrum-css/closebutton@4.0.16) **Note:** Version bump only for package @spectrum-css/closebutton @@ -273,8 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.13...@spectrum-css/closebutton@4.0.15) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.13...@spectrum-css/closebutton@4.0.15) **Note:** Version bump only for package @spectrum-css/closebutton @@ -282,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.13...@spectrum-css/closebutton@4.0.14) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.13...@spectrum-css/closebutton@4.0.14) **Note:** Version bump only for package @spectrum-css/closebutton @@ -291,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.12...@spectrum-css/closebutton@4.0.13) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.12...@spectrum-css/closebutton@4.0.13) **Note:** Version bump only for package @spectrum-css/closebutton @@ -300,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.11...@spectrum-css/closebutton@4.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.11...@spectrum-css/closebutton@4.0.12) **Note:** Version bump only for package @spectrum-css/closebutton @@ -309,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.10...@spectrum-css/closebutton@4.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.10...@spectrum-css/closebutton@4.0.11) **Note:** Version bump only for package @spectrum-css/closebutton @@ -318,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.9...@spectrum-css/closebutton@4.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.9...@spectrum-css/closebutton@4.0.10) **Note:** Version bump only for package @spectrum-css/closebutton @@ -327,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.8...@spectrum-css/closebutton@4.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.8...@spectrum-css/closebutton@4.0.9) **Note:** Version bump only for package @spectrum-css/closebutton @@ -336,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.7...@spectrum-css/closebutton@4.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.7...@spectrum-css/closebutton@4.0.8) **Note:** Version bump only for package @spectrum-css/closebutton @@ -345,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.6...@spectrum-css/closebutton@4.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.6...@spectrum-css/closebutton@4.0.7) **Note:** Version bump only for package @spectrum-css/closebutton @@ -354,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.5...@spectrum-css/closebutton@4.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.5...@spectrum-css/closebutton@4.0.6) **Note:** Version bump only for package @spectrum-css/closebutton @@ -363,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.4...@spectrum-css/closebutton@4.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.4...@spectrum-css/closebutton@4.0.5) **Note:** Version bump only for package @spectrum-css/closebutton @@ -372,8 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.3...@spectrum-css/closebutton@4.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.3...@spectrum-css/closebutton@4.0.4) ### 🔙 Reverts @@ -383,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.2...@spectrum-css/closebutton@4.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.2...@spectrum-css/closebutton@4.0.3) **Note:** Version bump only for package @spectrum-css/closebutton @@ -392,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.0...@spectrum-css/closebutton@4.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.0...@spectrum-css/closebutton@4.0.2) **Note:** Version bump only for package @spectrum-css/closebutton @@ -401,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.0...@spectrum-css/closebutton@4.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@4.0.0...@spectrum-css/closebutton@4.0.1) **Note:** Version bump only for package @spectrum-css/closebutton @@ -410,13 +307,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.14...@spectrum-css/closebutton@4.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.14...@spectrum-css/closebutton@4.0.0) \*refactor(closebutton)!: replace focus-ring with focus-visible([a17183f](https://github.com/adobe/spectrum-css/commit/a17183f)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use focus-visible pseudo class for focus styling @@ -427,8 +322,7 @@ remove duplicate focus indicator styling ## 3.1.14 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.13...@spectrum-css/closebutton@3.1.14) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.13...@spectrum-css/closebutton@3.1.14) **Note:** Version bump only for package @spectrum-css/closebutton @@ -436,8 +330,7 @@ remove duplicate focus indicator styling ## 3.1.13 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.12...@spectrum-css/closebutton@3.1.13) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.12...@spectrum-css/closebutton@3.1.13) **Note:** Version bump only for package @spectrum-css/closebutton @@ -445,8 +338,7 @@ remove duplicate focus indicator styling ## 3.1.12 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.11...@spectrum-css/closebutton@3.1.12) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.11...@spectrum-css/closebutton@3.1.12) **Note:** Version bump only for package @spectrum-css/closebutton @@ -454,8 +346,7 @@ remove duplicate focus indicator styling ## 3.1.11 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.10...@spectrum-css/closebutton@3.1.11) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.10...@spectrum-css/closebutton@3.1.11) ### 🐛 Bug fixes @@ -465,8 +356,7 @@ remove duplicate focus indicator styling ## 3.1.10 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.9...@spectrum-css/closebutton@3.1.10) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.9...@spectrum-css/closebutton@3.1.10) **Note:** Version bump only for package @spectrum-css/closebutton @@ -474,8 +364,7 @@ remove duplicate focus indicator styling ## 3.1.9 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.8...@spectrum-css/closebutton@3.1.9) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.8...@spectrum-css/closebutton@3.1.9) **Note:** Version bump only for package @spectrum-css/closebutton @@ -483,8 +372,7 @@ remove duplicate focus indicator styling ## 3.1.8 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.7...@spectrum-css/closebutton@3.1.8) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.7...@spectrum-css/closebutton@3.1.8) **Note:** Version bump only for package @spectrum-css/closebutton @@ -492,8 +380,7 @@ remove duplicate focus indicator styling ## 3.1.7 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.6...@spectrum-css/closebutton@3.1.7) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.6...@spectrum-css/closebutton@3.1.7) **Note:** Version bump only for package @spectrum-css/closebutton @@ -501,8 +388,7 @@ remove duplicate focus indicator styling ## 3.1.6 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.5...@spectrum-css/closebutton@3.1.6) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.5...@spectrum-css/closebutton@3.1.6) **Note:** Version bump only for package @spectrum-css/closebutton @@ -510,8 +396,7 @@ remove duplicate focus indicator styling ## 3.1.5 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.4...@spectrum-css/closebutton@3.1.5) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.4...@spectrum-css/closebutton@3.1.5) **Note:** Version bump only for package @spectrum-css/closebutton @@ -519,8 +404,7 @@ remove duplicate focus indicator styling ## 3.1.4 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.3...@spectrum-css/closebutton@3.1.4) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.3...@spectrum-css/closebutton@3.1.4) ### 🐛 Bug fixes @@ -530,8 +414,7 @@ remove duplicate focus indicator styling ## 3.1.3 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.2...@spectrum-css/closebutton@3.1.3) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.2...@spectrum-css/closebutton@3.1.3) **Note:** Version bump only for package @spectrum-css/closebutton @@ -539,8 +422,7 @@ remove duplicate focus indicator styling ## 3.1.2 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.1...@spectrum-css/closebutton@3.1.2) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/closebutton@3.1.1...@spectrum-css/closebutton@3.1.2) **Note:** Version bump only for package @spectrum-css/closebutton diff --git a/components/closebutton/dist/metadata.json b/components/closebutton/dist/metadata.json index 756fc3d7e62..6c74f8bf61f 100644 --- a/components/closebutton/dist/metadata.json +++ b/components/closebutton/dist/metadata.json @@ -2,45 +2,16 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-CloseButton", + ".spectrum-CloseButton--sizeL", + ".spectrum-CloseButton--sizeS", + ".spectrum-CloseButton--sizeXL", ".spectrum-CloseButton--staticBlack", - ".spectrum-CloseButton--staticBlack.is-focused:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack.is-keyboardFocused:not(:disabled)", - ".spectrum-CloseButton--staticBlack.is-keyboardFocused:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:disabled .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:not(:disabled)", - ".spectrum-CloseButton--staticBlack:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:not(:disabled):active", - ".spectrum-CloseButton--staticBlack:not(:disabled):active .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:not(:disabled):focus .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:not(:disabled):focus-visible", - ".spectrum-CloseButton--staticBlack:not(:disabled):focus-visible .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticBlack:not(:disabled):hover", - ".spectrum-CloseButton--staticBlack:not(:disabled):hover .spectrum-CloseButton-UIIcon", ".spectrum-CloseButton--staticWhite", - ".spectrum-CloseButton--staticWhite.is-focused:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite.is-keyboardFocused:not(:disabled)", - ".spectrum-CloseButton--staticWhite.is-keyboardFocused:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:disabled .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:not(:disabled)", - ".spectrum-CloseButton--staticWhite:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:not(:disabled):active", - ".spectrum-CloseButton--staticWhite:not(:disabled):active .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:not(:disabled):focus .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:not(:disabled):focus-visible", - ".spectrum-CloseButton--staticWhite:not(:disabled):focus-visible .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton--staticWhite:not(:disabled):hover", - ".spectrum-CloseButton--staticWhite:not(:disabled):hover .spectrum-CloseButton-UIIcon", ".spectrum-CloseButton-UIIcon", ".spectrum-CloseButton.is-disabled", ".spectrum-CloseButton.is-focused:not(:disabled) .spectrum-CloseButton-UIIcon", ".spectrum-CloseButton.is-keyboardFocused:not(:disabled)", ".spectrum-CloseButton.is-keyboardFocused:not(:disabled) .spectrum-CloseButton-UIIcon", - ".spectrum-CloseButton.spectrum-CloseButton--sizeL", - ".spectrum-CloseButton.spectrum-CloseButton--sizeM", - ".spectrum-CloseButton.spectrum-CloseButton--sizeS", - ".spectrum-CloseButton.spectrum-CloseButton--sizeXL", - ".spectrum-CloseButton.spectrum-CloseButton--staticBlack", - ".spectrum-CloseButton.spectrum-CloseButton--staticWhite", ".spectrum-CloseButton::-moz-focus-inner", ".spectrum-CloseButton:after", ".spectrum-CloseButton:disabled", @@ -60,7 +31,6 @@ "a.spectrum-CloseButton" ], "modifiers": [ - "--mod-animation-duration-100", "--mod-closebutton-align-self", "--mod-closebutton-animation-duraction", "--mod-closebutton-animation-duration", @@ -72,7 +42,6 @@ "--mod-closebutton-focus-indicator-color", "--mod-closebutton-focus-indicator-gap", "--mod-closebutton-focus-indicator-thickness", - "--mod-closebutton-height", "--mod-closebutton-icon-color-default", "--mod-closebutton-icon-color-disabled", "--mod-closebutton-icon-color-down", @@ -80,14 +49,7 @@ "--mod-closebutton-icon-color-hover", "--mod-closebutton-margin-inline", "--mod-closebutton-margin-top", - "--mod-closebutton-size", - "--mod-closebutton-static-background-color-default", - "--mod-closebutton-static-background-color-down", - "--mod-closebutton-static-background-color-focus", - "--mod-closebutton-static-background-color-hover", - "--mod-closebutton-width", - "--mod-line-height-100", - "--mod-sans-font-family-stack" + "--mod-closebutton-size" ], "component": [ "--spectrum-closebutton-animation-duration", @@ -104,27 +66,22 @@ "--spectrum-closebutton-icon-color-down", "--spectrum-closebutton-icon-color-focus", "--spectrum-closebutton-icon-color-hover", - "--spectrum-closebutton-size", - "--spectrum-closebutton-static-background-color-default", - "--spectrum-closebutton-static-background-color-down", - "--spectrum-closebutton-static-background-color-focus", - "--spectrum-closebutton-static-background-color-hover" + "--spectrum-closebutton-size" ], "global": [ "--spectrum-animation-duration-100", - "--spectrum-black", "--spectrum-component-height-100", "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", + "--spectrum-corner-radius-full", "--spectrum-disabled-content-color", - "--spectrum-disabled-static-black-content-color", - "--spectrum-disabled-static-white-content-color", + "--spectrum-disabled-static-black-background-color", + "--spectrum-disabled-static-white-background-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", "--spectrum-gray-100", - "--spectrum-gray-200", "--spectrum-line-height-100", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", @@ -133,23 +90,12 @@ "--spectrum-sans-font-family-stack", "--spectrum-static-black-focus-indicator-color", "--spectrum-static-white-focus-indicator-color", - "--spectrum-transparent-black-400", - "--spectrum-transparent-black-500", - "--spectrum-transparent-white-400", - "--spectrum-transparent-white-500", - "--spectrum-white" - ], - "system-theme": [ - "--system-close-button-background-color-default", - "--system-close-button-background-color-down", - "--system-close-button-background-color-focus", - "--system-close-button-background-color-hover", - "--system-close-button-static-black-static-background-color-down", - "--system-close-button-static-black-static-background-color-focus", - "--system-close-button-static-black-static-background-color-hover", - "--system-close-button-static-white-static-background-color-down", - "--system-close-button-static-white-static-background-color-focus", - "--system-close-button-static-white-static-background-color-hover" + "--spectrum-transparent-black-100", + "--spectrum-transparent-black-800", + "--spectrum-transparent-black-900", + "--spectrum-transparent-white-100", + "--spectrum-transparent-white-800", + "--spectrum-transparent-white-900" ], "passthroughs": [ "--mod-button-animation-duration", @@ -159,11 +105,9 @@ "high-contrast": [ "--highcontrast-closebutton-background-color-default", "--highcontrast-closebutton-focus-indicator-color", - "--highcontrast-closebutton-icon-color-default", "--highcontrast-closebutton-icon-color-disabled", "--highcontrast-closebutton-icon-color-down", "--highcontrast-closebutton-icon-color-focus", - "--highcontrast-closebutton-icon-color-hover", - "--highcontrast-closebutton-static-background-color-default" + "--highcontrast-closebutton-icon-color-hover" ] } diff --git a/components/closebutton/index.css b/components/closebutton/index.css index 14880d3ee6e..98cec5bd7f4 100644 --- a/components/closebutton/index.css +++ b/components/closebutton/index.css @@ -11,44 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; @import "@spectrum-css/commons/basebutton.css"; -/* Windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-CloseButton { - --highcontrast-closebutton-icon-color-disabled: GrayText; - --highcontrast-closebutton-icon-color-down: Highlight; - --highcontrast-closebutton-icon-color-hover: Highlight; - --highcontrast-closebutton-icon-color-focus: Highlight; - --highcontrast-closebutton-background-color-default: ButtonFace; - --highcontrast-closebutton-focus-indicator-color: ButtonText; - - &:focus-visible { - &::after { - forced-color-adjust: none; - margin: var(--mod-closebutton-focus-indicator-gap, var(--spectrum-closebutton-focus-indicator-gap)); - transition: - opacity var(--mod-closebutton-animation-duration, var(--spectrum-closebutton-animation-duration)) ease-out, - margin var(--mod-closebutton-animation-duraction, var(--spectrum-closebutton-animation-duration)) ease-out; - } - } - } - - .spectrum-CloseButton--staticBlack { - --highcontrast-closebutton-static-background-color-default: ButtonFace; - --highcontrast-closebutton-icon-color-default: Highlight; - --highcontrast-closebutton-icon-color-disabled: GrayText; - } - - .spectrum-CloseButton--staticWhite { - --highcontrast-closebutton-static-background-color-default: ButtonFace; - --highcontrast-closebutton-icon-color-default: Highlight; - --highcontrast-closebutton-icon-color-disabled: Highlight; - } -} - .spectrum-CloseButton { + --spectrum-closebutton-border-radius: var(--spectrum-corner-radius-full); + /* Cross icon */ --spectrum-closebutton-icon-color-default: var(--spectrum-neutral-content-color-default); --spectrum-closebutton-icon-color-hover: var(--spectrum-neutral-content-color-hover); @@ -56,54 +23,104 @@ --spectrum-closebutton-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-content-color); - /* Focus ring */ + /* Focus indicator */ --spectrum-closebutton-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-closebutton-focus-indicator-gap: var(--spectrum-focus-indicator-gap); --spectrum-closebutton-focus-indicator-color: var(--spectrum-focus-indicator-color); + /* Size */ + --spectrum-closebutton-size: var(--spectrum-component-height-100); + --spectrum-closebutton-animation-duration: var(--spectrum-animation-duration-100); - &.spectrum-CloseButton--sizeS { - --spectrum-closebutton-size: var(--spectrum-component-height-75); - --spectrum-closebutton-border-radius: var(--spectrum-component-height-75); - } + /* Background color */ + --spectrum-closebutton-background-color-default: transparent; + --spectrum-closebutton-background-color-hover: var(--spectrum-gray-100); + --spectrum-closebutton-background-color-down: var(--spectrum-gray-100); + --spectrum-closebutton-background-color-focus: var(--spectrum-gray-100); +} - &, - &.spectrum-CloseButton--sizeM { - --spectrum-closebutton-size: var(--spectrum-component-height-100); - --spectrum-closebutton-border-radius: var(--spectrum-component-height-100); - } +.spectrum-CloseButton--sizeS { + --spectrum-closebutton-size: var(--spectrum-component-height-75); +} - &.spectrum-CloseButton--sizeL { - --spectrum-closebutton-size: var(--spectrum-component-height-200); - --spectrum-closebutton-border-radius: var(--spectrum-component-height-200); - } +.spectrum-CloseButton--sizeL { + --spectrum-closebutton-size: var(--spectrum-component-height-200); +} - &.spectrum-CloseButton--sizeXL { - --spectrum-closebutton-size: var(--spectrum-component-height-300); - --spectrum-closebutton-border-radius: var(--spectrum-component-height-300); - } +.spectrum-CloseButton--sizeXL { + --spectrum-closebutton-size: var(--spectrum-component-height-300); +} - &.spectrum-CloseButton--staticWhite { - --spectrum-closebutton-static-background-color-default: transparent; +.spectrum-CloseButton--staticWhite { + /* Cross icon */ + --spectrum-closebutton-icon-color-default: var(--spectrum-transparent-white-800); + --spectrum-closebutton-icon-color-hover: var(--spectrum-transparent-white-900); + --spectrum-closebutton-icon-color-down: var(--spectrum-transparent-white-900); + --spectrum-closebutton-icon-color-focus: var(--spectrum-transparent-white-900); + --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-static-white-background-color); + + /* Background color */ + --spectrum-closebutton-background-color-default: transparent; + --spectrum-closebutton-background-color-hover: var(--spectrum-transparent-white-100); + --spectrum-closebutton-background-color-down: var(--spectrum-transparent-white-100); + --spectrum-closebutton-background-color-focus: var(--spectrum-transparent-white-100); + + /* Focus indicator */ + --spectrum-closebutton-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); +} - --spectrum-closebutton-icon-color-default: var(--spectrum-white); - --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-static-white-content-color); - --spectrum-closebutton-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - } +.spectrum-CloseButton--staticBlack { + /* Cross icon */ + --spectrum-closebutton-icon-color-default: var(--spectrum-transparent-black-800); + --spectrum-closebutton-icon-color-hover: var(--spectrum-transparent-black-900); + --spectrum-closebutton-icon-color-down: var(--spectrum-transparent-black-900); + --spectrum-closebutton-icon-color-focus: var(--spectrum-transparent-black-900); + --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-static-black-background-color); + + /* Background color */ + --spectrum-closebutton-background-color-default: transparent; + --spectrum-closebutton-background-color-hover: var(--spectrum-transparent-black-100); + --spectrum-closebutton-background-color-down: var(--spectrum-transparent-black-100); + --spectrum-closebutton-background-color-focus: var(--spectrum-transparent-black-100); + + /* Focus indicator */ + --spectrum-closebutton-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); +} - &.spectrum-CloseButton--staticBlack { - --spectrum-closebutton-static-background-color-default: transparent; +/* Windows high contrast mode */ +@media (forced-colors: active) { + .spectrum-CloseButton { + --highcontrast-closebutton-icon-color-disabled: GrayText; + --highcontrast-closebutton-icon-color-down: Highlight; + --highcontrast-closebutton-icon-color-hover: Highlight; + --highcontrast-closebutton-icon-color-focus: Highlight; + --highcontrast-closebutton-background-color-default: ButtonFace; + --highcontrast-closebutton-focus-indicator-color: ButtonText; - --spectrum-closebutton-icon-color-default: var(--spectrum-black); - --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-static-black-content-color); - --spectrum-closebutton-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + &:focus-visible::after { + forced-color-adjust: none; + margin: var(--mod-closebutton-focus-indicator-gap, var(--spectrum-closebutton-focus-indicator-gap)); + transition: + opacity var(--mod-closebutton-animation-duration, var(--spectrum-closebutton-animation-duration)) ease-out, + margin var(--mod-closebutton-animation-duraction, var(--spectrum-closebutton-animation-duration)) ease-out; + } } + .spectrum-CloseButton--staticWhite { + --highcontrast-closebutton-icon-color-disabled: Highlight; + } +} + +a.spectrum-CloseButton { + @extend %spectrum-AnchorButton; +} + +.spectrum-CloseButton { @extend %spectrum-BaseButton; - block-size: var(--mod-closebutton-height, var(--spectrum-closebutton-size)); - inline-size: var(--mod-closebutton-width, var(--mod-closebutton-height, var(--spectrum-closebutton-size))); + block-size: var(--mod-closebutton-size, var(--spectrum-closebutton-size)); + inline-size: var(--mod-closebutton-size, var(--spectrum-closebutton-size)); position: relative; @@ -125,7 +142,6 @@ margin-block-start: var(--mod-closebutton-margin-top); align-self: var(--mod-closebutton-align-self); - /* Represents focus ring */ &::after { pointer-events: none; content: ""; @@ -135,7 +151,7 @@ inset-block-end: 0; inset-block-start: 0; margin: calc(var(--mod-closebutton-focus-indicator-gap, var(--spectrum-closebutton-focus-indicator-gap)) * -1); - border-radius: calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(--mod-closebutton-focus-indicator-gap, var(--spectrum-closebutton-focus-indicator-gap))); + border-radius: calc(var(--mod-closebutton-border-radius, var(--spectrum-closebutton-border-radius)) + var(--mod-closebutton-focus-indicator-gap, var(--spectrum-closebutton-focus-indicator-gap))); transition: box-shadow var(--mod-closebutton-animation-duration, var(--spectrum-closebutton-animation-duration)) ease-in-out; } @@ -148,6 +164,7 @@ } } + /* COLORS */ &:not(:disabled) { background-color: var(--highcontrast-closebutton-background-color-default, var(--mod-closebutton-background-color-default, var(--spectrum-closebutton-background-color-default))); @@ -197,59 +214,6 @@ } } -a.spectrum-CloseButton { - @extend %spectrum-AnchorButton; -} - -/* Modifier Classes */ -.spectrum-CloseButton--staticBlack:not(:disabled), -.spectrum-CloseButton--staticWhite:not(:disabled) { - background-color: var(--highcontrast-closebutton-static-background-color-default, var(--mod-closebutton-static-background-color-default, var(--spectrum-closebutton-static-background-color-default))); - - &:hover { - background-color: var(--mod-closebutton-static-background-color-hover, var(--spectrum-closebutton-static-background-color-hover)); - - .spectrum-CloseButton-UIIcon { - color: var(--highcontrast-closebutton-icon-color-default, var(--mod-closebutton-icon-color-default, var(--spectrum-closebutton-icon-color-default))); - } - } - - &:active { - background-color: var(--mod-closebutton-static-background-color-down, var(--spectrum-closebutton-static-background-color-down)); - - .spectrum-CloseButton-UIIcon { - color: var(--highcontrast-closebutton-icon-color-default, var(--mod-closebutton-icon-color-default, var(--spectrum-closebutton-icon-color-default))); - } - } - - &:focus-visible, - &.is-keyboardFocused { - background-color: var(--mod-closebutton-static-background-color-focus, var(--spectrum-closebutton-static-background-color-focus)); - - .spectrum-CloseButton-UIIcon { - color: var(--highcontrast-closebutton-icon-color-default, var(--mod-closebutton-icon-color-default, var(--spectrum-closebutton-icon-color-default))); - } - } - - &:focus, - &.is-focused { - .spectrum-CloseButton-UIIcon { - color: var(--highcontrast-closebutton-icon-color-default, var(--mod-closebutton-icon-color-default, var(--spectrum-closebutton-icon-color-default))); - } - } - - .spectrum-CloseButton-UIIcon { - color: var(--mod-closebutton-icon-color-default, var(--spectrum-closebutton-icon-color-default)); - } -} - -.spectrum-CloseButton--staticBlack:disabled, -.spectrum-CloseButton--staticWhite:disabled { - .spectrum-CloseButton-UIIcon { - color: var(--mod-closebutton-icon-color-disabled, var(--spectrum-closebutton-icon-color-disabled)); - } -} - .spectrum-CloseButton-UIIcon { margin: 0; } diff --git a/components/closebutton/package.json b/components/closebutton/package.json index 39dba44b655..53672366753 100644 --- a/components/closebutton/package.json +++ b/components/closebutton/package.json @@ -25,17 +25,13 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/closebutton/stories/closebutton.stories.js b/components/closebutton/stories/closebutton.stories.js index f048e3e23b0..9407e15a352 100644 --- a/components/closebutton/stories/closebutton.stories.js +++ b/components/closebutton/stories/closebutton.stories.js @@ -53,6 +53,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = CloseButtonGroup.bind({}); diff --git a/components/closebutton/stories/template.js b/components/closebutton/stories/template.js index 644ce705f62..4f6c5d8c00e 100644 --- a/components/closebutton/stories/template.js +++ b/components/closebutton/stories/template.js @@ -6,9 +6,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { capitalize, upperCase } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-CloseButton", @@ -46,6 +43,7 @@ export const Template = ({ size, iconName: getCloseButtonIconName(size, iconSize), setName: "ui", + useRef: false, customClasses: [`${rootClass}-UIIcon`], }, context)} </button> @@ -69,6 +67,7 @@ const getCloseButtonIconName = (size = "m", iconSize = "regular", iconName = "Cr return `${iconName}300`; } } + // Default, "regular" icon size. switch (size) { case "s": @@ -88,14 +87,14 @@ const getCloseButtonIconName = (size = "m", iconSize = "regular", iconName = "Cr */ export const CloseButtonExample = (args, context) => Container({ withBorder: false, - content: html` - ${Container({ + content: [ + Container({ withBorder: false, direction: "column", heading: "Default", content: Template(args, context), - }, context)} - ${Container({ + }, context), + Container({ withBorder: false, direction: "column", heading: "Disabled", @@ -103,6 +102,6 @@ export const CloseButtonExample = (args, context) => Container({ ...args, isDisabled: true, }, context), - }, context)} - `, + }, context), + ], }, context); diff --git a/components/closebutton/themes/express.css b/components/closebutton/themes/express.css deleted file mode 100644 index 06a90e4fee9..00000000000 --- a/components/closebutton/themes/express.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-CloseButton { - --spectrum-closebutton-background-color-default: transparent; - --spectrum-closebutton-background-color-hover: var(--spectrum-gray-300); - --spectrum-closebutton-background-color-down: var(--spectrum-gray-400); - --spectrum-closebutton-background-color-focus: var(--spectrum-gray-300); - } -} diff --git a/components/closebutton/themes/spectrum-two.css b/components/closebutton/themes/spectrum-two.css deleted file mode 100644 index 01479c42fd4..00000000000 --- a/components/closebutton/themes/spectrum-two.css +++ /dev/null @@ -1,33 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-CloseButton { - --spectrum-closebutton-background-color-default: transparent; - --spectrum-closebutton-background-color-hover: var(--spectrum-gray-100); - --spectrum-closebutton-background-color-down: var(--spectrum-gray-200); - --spectrum-closebutton-background-color-focus: var(--spectrum-gray-100); - - &.spectrum-CloseButton--staticWhite { - --spectrum-closebutton-static-background-color-hover: var(--spectrum-transparent-white-400); - --spectrum-closebutton-static-background-color-down: var(--spectrum-transparent-white-500); - --spectrum-closebutton-static-background-color-focus: var(--spectrum-transparent-white-400); - } - - &.spectrum-CloseButton--staticBlack { - --spectrum-closebutton-static-background-color-hover: var(--spectrum-transparent-black-400); - --spectrum-closebutton-static-background-color-down: var(--spectrum-transparent-black-500); - --spectrum-closebutton-static-background-color-focus: var(--spectrum-transparent-black-400); - } - } -} diff --git a/components/closebutton/themes/spectrum.css b/components/closebutton/themes/spectrum.css deleted file mode 100644 index 62e907bae8a..00000000000 --- a/components/closebutton/themes/spectrum.css +++ /dev/null @@ -1,36 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-CloseButton { - --spectrum-closebutton-background-color-hover: var(--spectrum-gray-200); - --spectrum-closebutton-background-color-down: var(--spectrum-gray-300); - --spectrum-closebutton-background-color-focus: var(--spectrum-gray-200); - - &.spectrum-CloseButton--staticWhite { - --spectrum-closebutton-static-background-color-hover: var(--spectrum-transparent-white-300); - --spectrum-closebutton-static-background-color-down: var(--spectrum-transparent-white-400); - --spectrum-closebutton-static-background-color-focus: var(--spectrum-transparent-white-300); - } - - &.spectrum-CloseButton--staticBlack { - --spectrum-closebutton-static-background-color-hover: var(--spectrum-transparent-black-300); - --spectrum-closebutton-static-background-color-down: var(--spectrum-transparent-black-400); - --spectrum-closebutton-static-background-color-focus: var(--spectrum-transparent-black-300); - } - } -} diff --git a/components/coachindicator/CHANGELOG.md b/components/coachindicator/CHANGELOG.md index 36134ae7fb7..a20c3fab784 100644 --- a/components/coachindicator/CHANGELOG.md +++ b/components/coachindicator/CHANGELOG.md @@ -137,16 +137,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.5...@spectrum-css/coachindicator@2.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.5...@spectrum-css/coachindicator@2.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -154,8 +151,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.4...@spectrum-css/coachindicator@1.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.4...@spectrum-css/coachindicator@1.1.5) **Note:** Version bump only for package @spectrum-css/coachindicator @@ -163,8 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.3...@spectrum-css/coachindicator@1.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.3...@spectrum-css/coachindicator@1.1.4) **Note:** Version bump only for package @spectrum-css/coachindicator @@ -172,8 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.2...@spectrum-css/coachindicator@1.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.2...@spectrum-css/coachindicator@1.1.3) **Note:** Version bump only for package @spectrum-css/coachindicator @@ -181,8 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.1...@spectrum-css/coachindicator@1.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.1.1...@spectrum-css/coachindicator@1.1.2) ### 🐛 Bug fixes @@ -192,8 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/coachindicator @@ -201,8 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.0.1...@spectrum-css/coachindicator@1.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.0.1...@spectrum-css/coachindicator@1.1.0) ### ✨ Features @@ -212,8 +203,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.0.0...@spectrum-css/coachindicator@1.0.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachindicator@1.0.0...@spectrum-css/coachindicator@1.0.1) **Note:** Version bump only for package @spectrum-css/coachindicator @@ -221,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.0 -🗓 -2023-12-04 +🗓 2023-12-04 ### ✨ Features diff --git a/components/coachindicator/dist/metadata.json b/components/coachindicator/dist/metadata.json index 9714f9f1ed1..0bed4172eef 100644 --- a/components/coachindicator/dist/metadata.json +++ b/components/coachindicator/dist/metadata.json @@ -6,14 +6,9 @@ ".spectrum-CoachIndicator-ring:first-child", ".spectrum-CoachIndicator-ring:nth-child(2)", ".spectrum-CoachIndicator-ring:nth-child(3)", - ".spectrum-CoachIndicator.spectrum-CoachIndicator--dark", - ".spectrum-CoachIndicator.spectrum-CoachIndicator--light", ".spectrum-CoachIndicator.spectrum-CoachIndicator--quiet", ".spectrum-CoachIndicator.spectrum-CoachIndicator--staticBlack", - ".spectrum-CoachIndicator.spectrum-CoachIndicator--staticWhite", - "0%", - "50%", - "to" + ".spectrum-CoachIndicator.spectrum-CoachIndicator--staticWhite" ], "modifiers": [ "--mod-coach-animation-indicator-ring-center-delay-multiple", @@ -31,11 +26,9 @@ "--mod-coach-indicator-quiet-ring-diameter", "--mod-coach-indicator-ring-block-size", "--mod-coach-indicator-ring-border-size", - "--mod-coach-indicator-ring-dark-color", "--mod-coach-indicator-ring-default-color", "--mod-coach-indicator-ring-diameter", "--mod-coach-indicator-ring-inline-size", - "--mod-coach-indicator-ring-light-color", "--mod-coach-indicator-top" ], "component": [ @@ -60,7 +53,6 @@ "--spectrum-coach-animation-indicator-ring-duration", "--spectrum-white" ], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/coachindicator/index.css b/components/coachindicator/index.css index 8cc7bdb8eda..c3bb2754d30 100644 --- a/components/coachindicator/index.css +++ b/components/coachindicator/index.css @@ -33,18 +33,6 @@ --spectrum-coach-indicator-animation-ring-inner-delay-multiple: var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple, -0.33); } - /* @deprecated .spectrum-CoachIndicator--light */ - &.spectrum-CoachIndicator--light { - /* @deprecated --mod-coach-indicator-ring-light-color, use --mod-coach-indicator-ring-default-color instead */ - --spectrum-coach-indicator-ring-default-color: var(--mod-coach-indicator-ring-light-color, var(--spectrum-white)); - } - - /* @deprecated .spectrum-CoachIndicator--dark */ - &.spectrum-CoachIndicator--dark { - /* @deprecated --mod-coach-indicator-ring-dark-color, use --mod-coach-indicator-ring-default-color instead */ - --spectrum-coach-indicator-ring-default-color: var(--mod-coach-indicator-ring-dark-color, var(--spectrum-black)); - } - &.spectrum-CoachIndicator--staticWhite { --spectrum-coach-indicator-ring-default-color: var(--spectrum-white); } diff --git a/components/coachindicator/package.json b/components/coachindicator/package.json index c1f614d2acb..0947de646be 100644 --- a/components/coachindicator/package.json +++ b/components/coachindicator/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14.6.0 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/coachmark/CHANGELOG.md b/components/coachmark/CHANGELOG.md index c7b75f6c66e..7b05bd4ec77 100644 --- a/components/coachmark/CHANGELOG.md +++ b/components/coachmark/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 8.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/buttongroup@7.0.0-next.4 + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/actionmenu@7.0.0-next.0 + - @spectrum-css/menu@8.0.0-next.0 + ## 9.0.1 ### Patch Changes @@ -192,16 +203,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.5...@spectrum-css/coachmark@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.5...@spectrum-css/coachmark@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -209,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.4...@spectrum-css/coachmark@6.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.4...@spectrum-css/coachmark@6.1.5) **Note:** Version bump only for package @spectrum-css/coachmark @@ -218,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.3...@spectrum-css/coachmark@6.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.3...@spectrum-css/coachmark@6.1.4) **Note:** Version bump only for package @spectrum-css/coachmark @@ -227,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.2...@spectrum-css/coachmark@6.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.2...@spectrum-css/coachmark@6.1.3) **Note:** Version bump only for package @spectrum-css/coachmark @@ -236,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.1...@spectrum-css/coachmark@6.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.1.1...@spectrum-css/coachmark@6.1.2) ### 🐛 Bug fixes @@ -247,8 +251,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/coachmark @@ -256,8 +259,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.0.1...@spectrum-css/coachmark@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.0.1...@spectrum-css/coachmark@6.1.0) ### ✨ Features @@ -267,8 +269,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.0.0...@spectrum-css/coachmark@6.0.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@6.0.0...@spectrum-css/coachmark@6.0.1) **Note:** Version bump only for package @spectrum-css/coachmark @@ -276,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.75...@spectrum-css/coachmark@6.0.0) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.75...@spectrum-css/coachmark@6.0.0) ### ✨ Features @@ -293,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.75 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.73...@spectrum-css/coachmark@5.0.75) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.73...@spectrum-css/coachmark@5.0.75) **Note:** Version bump only for package @spectrum-css/coachmark @@ -302,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.74 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.73...@spectrum-css/coachmark@5.0.74) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.73...@spectrum-css/coachmark@5.0.74) **Note:** Version bump only for package @spectrum-css/coachmark @@ -311,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.73 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.72...@spectrum-css/coachmark@5.0.73) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.72...@spectrum-css/coachmark@5.0.73) **Note:** Version bump only for package @spectrum-css/coachmark @@ -320,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.72 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.71...@spectrum-css/coachmark@5.0.72) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.71...@spectrum-css/coachmark@5.0.72) **Note:** Version bump only for package @spectrum-css/coachmark @@ -329,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.71 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.70...@spectrum-css/coachmark@5.0.71) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.70...@spectrum-css/coachmark@5.0.71) **Note:** Version bump only for package @spectrum-css/coachmark @@ -338,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.70 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.69...@spectrum-css/coachmark@5.0.70) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.69...@spectrum-css/coachmark@5.0.70) **Note:** Version bump only for package @spectrum-css/coachmark @@ -347,8 +341,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.69 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.68...@spectrum-css/coachmark@5.0.69) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.68...@spectrum-css/coachmark@5.0.69) **Note:** Version bump only for package @spectrum-css/coachmark @@ -356,8 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.68 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.67...@spectrum-css/coachmark@5.0.68) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.67...@spectrum-css/coachmark@5.0.68) **Note:** Version bump only for package @spectrum-css/coachmark @@ -365,8 +357,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.67 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.66...@spectrum-css/coachmark@5.0.67) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.66...@spectrum-css/coachmark@5.0.67) **Note:** Version bump only for package @spectrum-css/coachmark @@ -374,8 +365,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.66 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.65...@spectrum-css/coachmark@5.0.66) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.65...@spectrum-css/coachmark@5.0.66) **Note:** Version bump only for package @spectrum-css/coachmark @@ -383,8 +373,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.65 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.64...@spectrum-css/coachmark@5.0.65) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.64...@spectrum-css/coachmark@5.0.65) **Note:** Version bump only for package @spectrum-css/coachmark @@ -392,8 +381,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.64 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.63...@spectrum-css/coachmark@5.0.64) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.63...@spectrum-css/coachmark@5.0.64) **Note:** Version bump only for package @spectrum-css/coachmark @@ -401,8 +389,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.63 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.62...@spectrum-css/coachmark@5.0.63) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.62...@spectrum-css/coachmark@5.0.63) ### 🔙 Reverts @@ -412,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.62 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.61...@spectrum-css/coachmark@5.0.62) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.61...@spectrum-css/coachmark@5.0.62) **Note:** Version bump only for package @spectrum-css/coachmark @@ -421,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.61 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.59...@spectrum-css/coachmark@5.0.61) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.59...@spectrum-css/coachmark@5.0.61) **Note:** Version bump only for package @spectrum-css/coachmark @@ -430,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.60 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.59...@spectrum-css/coachmark@5.0.60) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.59...@spectrum-css/coachmark@5.0.60) **Note:** Version bump only for package @spectrum-css/coachmark @@ -439,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.59 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.58...@spectrum-css/coachmark@5.0.59) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.58...@spectrum-css/coachmark@5.0.59) **Note:** Version bump only for package @spectrum-css/coachmark @@ -448,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.58 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.57...@spectrum-css/coachmark@5.0.58) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.57...@spectrum-css/coachmark@5.0.58) **Note:** Version bump only for package @spectrum-css/coachmark @@ -457,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.57 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.56...@spectrum-css/coachmark@5.0.57) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.56...@spectrum-css/coachmark@5.0.57) **Note:** Version bump only for package @spectrum-css/coachmark @@ -466,8 +447,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.56 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.55...@spectrum-css/coachmark@5.0.56) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.55...@spectrum-css/coachmark@5.0.56) **Note:** Version bump only for package @spectrum-css/coachmark @@ -475,8 +455,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.55 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.54...@spectrum-css/coachmark@5.0.55) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.54...@spectrum-css/coachmark@5.0.55) **Note:** Version bump only for package @spectrum-css/coachmark @@ -484,8 +463,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.54 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.53...@spectrum-css/coachmark@5.0.54) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.53...@spectrum-css/coachmark@5.0.54) **Note:** Version bump only for package @spectrum-css/coachmark @@ -493,8 +471,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.53 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.52...@spectrum-css/coachmark@5.0.53) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.52...@spectrum-css/coachmark@5.0.53) **Note:** Version bump only for package @spectrum-css/coachmark @@ -502,8 +479,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.52 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.51...@spectrum-css/coachmark@5.0.52) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.51...@spectrum-css/coachmark@5.0.52) **Note:** Version bump only for package @spectrum-css/coachmark @@ -511,8 +487,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.51 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.50...@spectrum-css/coachmark@5.0.51) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.50...@spectrum-css/coachmark@5.0.51) **Note:** Version bump only for package @spectrum-css/coachmark @@ -520,8 +495,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.50 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.49...@spectrum-css/coachmark@5.0.50) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.49...@spectrum-css/coachmark@5.0.50) **Note:** Version bump only for package @spectrum-css/coachmark @@ -529,8 +503,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.49 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.48...@spectrum-css/coachmark@5.0.49) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.48...@spectrum-css/coachmark@5.0.49) **Note:** Version bump only for package @spectrum-css/coachmark @@ -538,8 +511,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.48 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.47...@spectrum-css/coachmark@5.0.48) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.47...@spectrum-css/coachmark@5.0.48) ### 🐛 Bug fixes @@ -549,8 +521,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.47 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.46...@spectrum-css/coachmark@5.0.47) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.46...@spectrum-css/coachmark@5.0.47) **Note:** Version bump only for package @spectrum-css/coachmark @@ -558,8 +529,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.46 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.45...@spectrum-css/coachmark@5.0.46) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/coachmark@5.0.45...@spectrum-css/coachmark@5.0.46) **Note:** Version bump only for package @spectrum-css/coachmark diff --git a/components/coachmark/dist/metadata.json b/components/coachmark/dist/metadata.json index 8bc036d5fca..a6bbae0715e 100644 --- a/components/coachmark/dist/metadata.json +++ b/components/coachmark/dist/metadata.json @@ -71,7 +71,7 @@ "--spectrum-body-sans-serif-font-style", "--spectrum-body-sans-serif-font-weight", "--spectrum-border-width-100", - "--spectrum-corner-radius-100", + "--spectrum-corner-radius-large-default", "--spectrum-heading-color", "--spectrum-heading-line-height", "--spectrum-heading-sans-serif-font-weight", @@ -81,13 +81,12 @@ "--spectrum-spacing-200", "--spectrum-spacing-300" ], - "system-theme": [], "passthroughs": [ "--mod-button-edge-to-visual-only", "--mod-buttongroup-justify-content", "--mod-buttongroup-spacing", "--mod-popover-border-width", - "--mod-popover-content-area-spacing-vertical", + "--mod-popover-content-area-spacing", "--mod-popover-corner-radius" ], "high-contrast": [] diff --git a/components/coachmark/index.css b/components/coachmark/index.css index bd8821b3bb1..0ade95bfbec 100644 --- a/components/coachmark/index.css +++ b/components/coachmark/index.css @@ -18,8 +18,8 @@ /* @passthrough start */ --mod-buttongroup-justify-content: flex-end; --mod-popover-border-width: var(--spectrum-border-width-100); - --mod-popover-corner-radius: var(--spectrum-corner-radius-100); - --mod-popover-content-area-spacing-vertical: 0; + --mod-popover-corner-radius: var(--spectrum-corner-radius-large-default); + --mod-popover-content-area-spacing: 0; --mod-button-edge-to-visual-only: 9px; /* @passthrough end */ diff --git a/components/coachmark/package.json b/components/coachmark/package.json index 9e61eb91322..71b1ae420f6 100644 --- a/components/coachmark/package.json +++ b/components/coachmark/package.json @@ -25,13 +25,13 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", + "@spectrum-css/actionbutton": ">=7", "@spectrum-css/actionmenu": ">=6", - "@spectrum-css/button": ">=13", - "@spectrum-css/buttongroup": ">=7", + "@spectrum-css/button": ">=14", + "@spectrum-css/buttongroup": ">=9", "@spectrum-css/menu": ">=7", - "@spectrum-css/popover": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/button": { @@ -45,11 +45,7 @@ "@spectrum-css/buttongroup": "9.0.1", "@spectrum-css/menu": "9.0.1", "@spectrum-css/popover": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/coachmark/stories/coachmark.stories.js b/components/coachmark/stories/coachmark.stories.js index e13b70fce24..975039f95b3 100644 --- a/components/coachmark/stories/coachmark.stories.js +++ b/components/coachmark/stories/coachmark.stories.js @@ -69,6 +69,7 @@ export default { }; export const Default = CoachMarkGroup.bind({}); +Default.title = "Standard"; Default.tags = ["!autodocs"]; Default.args = {}; diff --git a/components/colorarea/CHANGELOG.md b/components/colorarea/CHANGELOG.md index b693f48285e..051d9279c54 100644 --- a/components/colorarea/CHANGELOG.md +++ b/components/colorarea/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## 6.0.0-next.0 + +### Major Changes + +- [#3388](https://github.com/adobe/spectrum-css/pull/3388) [`8aa61a9`](https://github.com/adobe/spectrum-css/commit/8aa61a9a92974b4048ba18b4d33e756af9a37d8e) Thanks [@cdransf](https://github.com/cdransf)! - # colorarea S2 migration + + This change migrates the `colorarea` component to S2. It leverages updated tokens and the `rgba(...)` color function, replacing the existing `TODO` and hardcoded values. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/colorhandle@9.0.0-next.0 + ## 7.0.1 ### Patch Changes @@ -151,16 +165,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.5...@spectrum-css/colorarea@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.5...@spectrum-css/colorarea@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -168,8 +179,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.4...@spectrum-css/colorarea@4.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.4...@spectrum-css/colorarea@4.1.5) **Note:** Version bump only for package @spectrum-css/colorarea @@ -177,8 +187,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.3...@spectrum-css/colorarea@4.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.3...@spectrum-css/colorarea@4.1.4) **Note:** Version bump only for package @spectrum-css/colorarea @@ -186,8 +195,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.2...@spectrum-css/colorarea@4.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.2...@spectrum-css/colorarea@4.1.3) **Note:** Version bump only for package @spectrum-css/colorarea @@ -195,8 +203,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.1...@spectrum-css/colorarea@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.1.1...@spectrum-css/colorarea@4.1.2) **Note:** Version bump only for package @spectrum-css/colorarea @@ -204,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/colorarea @@ -213,8 +219,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.51...@spectrum-css/colorarea@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.51...@spectrum-css/colorarea@4.1.0) ### ✨ Features @@ -224,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.51 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.50...@spectrum-css/colorarea@4.0.51) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.50...@spectrum-css/colorarea@4.0.51) **Note:** Version bump only for package @spectrum-css/colorarea @@ -233,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.50 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.49...@spectrum-css/colorarea@4.0.50) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.49...@spectrum-css/colorarea@4.0.50) **Note:** Version bump only for package @spectrum-css/colorarea @@ -242,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.49 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.47...@spectrum-css/colorarea@4.0.49) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.47...@spectrum-css/colorarea@4.0.49) **Note:** Version bump only for package @spectrum-css/colorarea @@ -251,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.48 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.47...@spectrum-css/colorarea@4.0.48) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.47...@spectrum-css/colorarea@4.0.48) **Note:** Version bump only for package @spectrum-css/colorarea @@ -260,8 +261,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.47 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.46...@spectrum-css/colorarea@4.0.47) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.46...@spectrum-css/colorarea@4.0.47) **Note:** Version bump only for package @spectrum-css/colorarea @@ -269,8 +269,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.46 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.45...@spectrum-css/colorarea@4.0.46) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.45...@spectrum-css/colorarea@4.0.46) **Note:** Version bump only for package @spectrum-css/colorarea @@ -278,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.45 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.44...@spectrum-css/colorarea@4.0.45) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.44...@spectrum-css/colorarea@4.0.45) **Note:** Version bump only for package @spectrum-css/colorarea @@ -287,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.44 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.43...@spectrum-css/colorarea@4.0.44) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.43...@spectrum-css/colorarea@4.0.44) **Note:** Version bump only for package @spectrum-css/colorarea @@ -296,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.43 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.42...@spectrum-css/colorarea@4.0.43) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.42...@spectrum-css/colorarea@4.0.43) **Note:** Version bump only for package @spectrum-css/colorarea @@ -305,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.42 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.41...@spectrum-css/colorarea@4.0.42) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.41...@spectrum-css/colorarea@4.0.42) **Note:** Version bump only for package @spectrum-css/colorarea @@ -314,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.41 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.40...@spectrum-css/colorarea@4.0.41) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.40...@spectrum-css/colorarea@4.0.41) **Note:** Version bump only for package @spectrum-css/colorarea @@ -323,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.40 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.39...@spectrum-css/colorarea@4.0.40) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.39...@spectrum-css/colorarea@4.0.40) **Note:** Version bump only for package @spectrum-css/colorarea @@ -332,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.39 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.38...@spectrum-css/colorarea@4.0.39) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.38...@spectrum-css/colorarea@4.0.39) **Note:** Version bump only for package @spectrum-css/colorarea @@ -341,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.38 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.37...@spectrum-css/colorarea@4.0.38) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.37...@spectrum-css/colorarea@4.0.38) ### 🔙 Reverts @@ -352,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.37 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.36...@spectrum-css/colorarea@4.0.37) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.36...@spectrum-css/colorarea@4.0.37) **Note:** Version bump only for package @spectrum-css/colorarea @@ -361,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.36 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.34...@spectrum-css/colorarea@4.0.36) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.34...@spectrum-css/colorarea@4.0.36) **Note:** Version bump only for package @spectrum-css/colorarea @@ -370,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.35 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.34...@spectrum-css/colorarea@4.0.35) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.34...@spectrum-css/colorarea@4.0.35) **Note:** Version bump only for package @spectrum-css/colorarea @@ -379,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.34 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.33...@spectrum-css/colorarea@4.0.34) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.33...@spectrum-css/colorarea@4.0.34) **Note:** Version bump only for package @spectrum-css/colorarea @@ -388,8 +375,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.33 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.32...@spectrum-css/colorarea@4.0.33) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.32...@spectrum-css/colorarea@4.0.33) **Note:** Version bump only for package @spectrum-css/colorarea @@ -397,8 +383,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.32 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.31...@spectrum-css/colorarea@4.0.32) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.31...@spectrum-css/colorarea@4.0.32) **Note:** Version bump only for package @spectrum-css/colorarea @@ -406,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.31 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.30...@spectrum-css/colorarea@4.0.31) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.30...@spectrum-css/colorarea@4.0.31) **Note:** Version bump only for package @spectrum-css/colorarea @@ -415,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.30 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.29...@spectrum-css/colorarea@4.0.30) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.29...@spectrum-css/colorarea@4.0.30) **Note:** Version bump only for package @spectrum-css/colorarea @@ -424,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.29 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.28...@spectrum-css/colorarea@4.0.29) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.28...@spectrum-css/colorarea@4.0.29) **Note:** Version bump only for package @spectrum-css/colorarea @@ -433,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.28 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.27...@spectrum-css/colorarea@4.0.28) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.27...@spectrum-css/colorarea@4.0.28) ### 🐛 Bug fixes @@ -444,8 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.27 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.26...@spectrum-css/colorarea@4.0.27) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.26...@spectrum-css/colorarea@4.0.27) **Note:** Version bump only for package @spectrum-css/colorarea @@ -453,8 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.26 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.25...@spectrum-css/colorarea@4.0.26) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.25...@spectrum-css/colorarea@4.0.26) **Note:** Version bump only for package @spectrum-css/colorarea @@ -462,8 +441,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.25 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.24...@spectrum-css/colorarea@4.0.25) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.24...@spectrum-css/colorarea@4.0.25) **Note:** Version bump only for package @spectrum-css/colorarea @@ -471,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.24 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.23...@spectrum-css/colorarea@4.0.24) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.23...@spectrum-css/colorarea@4.0.24) **Note:** Version bump only for package @spectrum-css/colorarea @@ -480,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.22...@spectrum-css/colorarea@4.0.23) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.22...@spectrum-css/colorarea@4.0.23) **Note:** Version bump only for package @spectrum-css/colorarea @@ -489,8 +465,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.21...@spectrum-css/colorarea@4.0.22) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.21...@spectrum-css/colorarea@4.0.22) **Note:** Version bump only for package @spectrum-css/colorarea @@ -498,8 +473,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.20...@spectrum-css/colorarea@4.0.21) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.20...@spectrum-css/colorarea@4.0.21) **Note:** Version bump only for package @spectrum-css/colorarea @@ -507,8 +481,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.19...@spectrum-css/colorarea@4.0.20) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.19...@spectrum-css/colorarea@4.0.20) ### 🐛 Bug fixes @@ -518,8 +491,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.18...@spectrum-css/colorarea@4.0.19) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.18...@spectrum-css/colorarea@4.0.19) **Note:** Version bump only for package @spectrum-css/colorarea @@ -527,8 +499,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.17...@spectrum-css/colorarea@4.0.18) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorarea@4.0.17...@spectrum-css/colorarea@4.0.18) **Note:** Version bump only for package @spectrum-css/colorarea diff --git a/components/colorarea/dist/metadata.json b/components/colorarea/dist/metadata.json index ff86d1c0045..9039b7c1028 100644 --- a/components/colorarea/dist/metadata.json +++ b/components/colorarea/dist/metadata.json @@ -23,16 +23,27 @@ "--mod-colorarea-width" ], "component": [ + "--spectrum-color-area-border-opacity", "--spectrum-color-area-border-rounding", "--spectrum-color-area-border-width", "--spectrum-color-area-height", "--spectrum-color-area-minimum-height", "--spectrum-color-area-minimum-width", "--spectrum-color-area-width", - "--spectrum-colorarea-border-color" + "--spectrum-colorarea-border-color", + "--spectrum-colorarea-border-color-rgb", + "--spectrum-colorarea-border-radius", + "--spectrum-colorarea-border-width", + "--spectrum-colorarea-disabled-background-color", + "--spectrum-colorarea-height", + "--spectrum-colorarea-min-height", + "--spectrum-colorarea-min-width", + "--spectrum-colorarea-width" + ], + "global": [ + "--spectrum-disabled-background-color", + "--spectrum-gray-1000-rgb" ], - "global": ["--spectrum-disabled-background-color"], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-colorarea-border-color", diff --git a/components/colorarea/index.css b/components/colorarea/index.css index 6887fac3398..62b41854548 100644 --- a/components/colorarea/index.css +++ b/components/colorarea/index.css @@ -11,41 +11,30 @@ * governing permissions and limitations under the License. */ -/* Windows High Contrast Mode */ -@media (forced-colors: active) { - .spectrum-ColorArea { - --highcontrast-colorarea-border-color-disabled: GrayText; - --highcontrast-colorarea-border-color: Canvas; - --highcontrast-colorarea-fill-color-disabled: Canvas; - } - - .spectrum-ColorArea { - &.is-disabled { - forced-color-adjust: none; - } - } - - .spectrum-ColorArea-gradient, - .spectrum-ColorHandle-color { - forced-color-adjust: none; - } -} - .spectrum-ColorArea { - /* TODO replace with token --spectrum-color-area-border-color and --spectrum-color-area-border-opacity using RGBA function */ - --spectrum-colorarea-border-color: rgb(0 0 0 / 10%); + --spectrum-colorarea-border-radius: var(--spectrum-color-area-border-rounding); + + /* @TODO: leveraging the rgb token in this case to achieve the desired border color implementation as rgb + opacity are required by the `rgba` function. */ + --spectrum-colorarea-border-color-rgb: var(--spectrum-gray-1000-rgb); + --spectrum-colorarea-border-color: rgba(var(--spectrum-colorarea-border-color-rgb), var(--spectrum-color-area-border-opacity)); + --spectrum-colorarea-border-width: var(--spectrum-color-area-border-width); + --spectrum-colorarea-disabled-background-color: var(--spectrum-disabled-background-color); + --spectrum-colorarea-height: var(--spectrum-color-area-height); + --spectrum-colorarea-width: var(--spectrum-color-area-width); + --spectrum-colorarea-min-width: var(--spectrum-color-area-minimum-width); + --spectrum-colorarea-min-height: var(--spectrum-color-area-minimum-height); position: relative; display: inline-block; cursor: default; user-select: none; - min-inline-size: var(--mod-colorarea-min-width, var(--spectrum-color-area-minimum-width)); - min-block-size: var(--mod-colorarea-min-height, var(--spectrum-color-area-minimum-height)); - inline-size: var(--mod-colorarea-width, var(--spectrum-color-area-width)); - block-size: var(--mod-colorarea-height, var(--spectrum-color-area-height)); + min-inline-size: var(--mod-colorarea-min-width, var(--spectrum-colorarea-min-width)); + min-block-size: var(--mod-colorarea-min-height, var(--spectrum-colorarea-min-height)); + inline-size: var(--mod-colorarea-width, var(--spectrum-colorarea-width)); + block-size: var(--mod-colorarea-height, var(--spectrum-colorarea-height)); box-sizing: border-box; - border-radius: var(--mod-colorarea-border-radius, var(--spectrum-color-area-border-rounding)); - border: var(--mod-colorarea-border-width, var(--spectrum-color-area-border-width)) solid var(--highcontrast-colorarea-border-color, var(--mod-colorarea-border-color, var(--spectrum-colorarea-border-color))); + border-radius: var(--mod-colorarea-border-radius, var(--spectrum-colorarea-border-radius)); + border: var(--mod-colorarea-border-width, var(--spectrum-colorarea-border-width)) solid var(--highcontrast-colorarea-border-color, var(--mod-colorarea-border-color, var(--spectrum-colorarea-border-color))); &.is-focused { z-index: 2; @@ -53,8 +42,8 @@ &.is-disabled { pointer-events: none; - background: var(--highcontrast-colorarea-fill-color-disabled, var(--mod-colorarea-disabled-background-color, var(--spectrum-disabled-background-color))); - border: var(--mod-colorarea-border-width, var(--spectrum-color-area-border-width)) solid var(--highcontrast-colorarea-border-color-disabled); + background: var(--highcontrast-colorarea-fill-color-disabled, var(--mod-colorarea-disabled-background-color, var(--spectrum-colorarea-disabled-background-color))); + border: var(--mod-colorarea-border-width, var(--spectrum-colorarea-border-width)) solid var(--highcontrast-colorarea-border-color-disabled); .spectrum-ColorArea-gradient { display: none; @@ -63,7 +52,7 @@ } .spectrum-ColorArea-handle { - transform: translate(calc(var(--mod-colorarea-width, var(--spectrum-color-area-width)) - var(--spectrum-color-area-border-width)), 0); + transform: translate(calc(var(--mod-colorarea-width, var(--spectrum-colorarea-width)) - var(--spectrum-colorarea-border-width)), 0); inset-block-start: 0; &:dir(rtl) { @@ -74,7 +63,9 @@ .spectrum-ColorArea-gradient { inline-size: 100%; block-size: 100%; - border-radius: var(--mod-colorarea-border-radius, var(--spectrum-color-area-border-rounding)); + + /* calc used here to properly calculate the `border-radius` for the gradient such that it aligns with the `border-radius` of the enclosing border */ + border-radius: calc(var(--mod-colorarea-border-radius, var(--spectrum-colorarea-border-radius)) - var(--mod-colorarea-border-width, var(--spectrum-colorarea-border-width))); } .spectrum-ColorArea-slider { @@ -88,3 +79,21 @@ margin: 0; pointer-events: none; } + +/* Windows High Contrast Mode */ +@media (forced-colors: active) { + .spectrum-ColorArea { + --highcontrast-colorarea-border-color-disabled: GrayText; + --highcontrast-colorarea-border-color: Canvas; + --highcontrast-colorarea-fill-color-disabled: Canvas; + + &.is-disabled { + forced-color-adjust: none; + } + } + + .spectrum-ColorArea-gradient, + .spectrum-ColorHandle-color { + forced-color-adjust: none; + } +} diff --git a/components/colorarea/package.json b/components/colorarea/package.json index a8637772ee7..48c715134c9 100644 --- a/components/colorarea/package.json +++ b/components/colorarea/package.json @@ -26,15 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/colorhandle": ">=8", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/colorhandle": "10.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/colorarea/stories/colorarea.stories.js b/components/colorarea/stories/colorarea.stories.js index ec418649f05..f4aa2b0561b 100644 --- a/components/colorarea/stories/colorarea.stories.js +++ b/components/colorarea/stories/colorarea.stories.js @@ -50,6 +50,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = ColorAreaGroup.bind({}); diff --git a/components/colorhandle/CHANGELOG.md b/components/colorhandle/CHANGELOG.md index d052323785d..d9ebf332370 100644 --- a/components/colorhandle/CHANGELOG.md +++ b/components/colorhandle/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 9.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`b91a202`](https://github.com/adobe/spectrum-css/commit/b91a2020be7a590a794938546e2f85f3fd9eef3e), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/colorloupe@6.0.0-next.0 + - @spectrum-css/opacitycheckerboard@3.0.0-next.0 + ## 10.0.1 ### Patch Changes @@ -161,8 +170,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.4...@spectrum-css/colorhandle@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.4...@spectrum-css/colorhandle@8.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -178,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.3...@spectrum-css/colorhandle@7.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.3...@spectrum-css/colorhandle@7.1.4) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -187,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.2...@spectrum-css/colorhandle@7.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.2...@spectrum-css/colorhandle@7.1.3) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -196,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.1...@spectrum-css/colorhandle@7.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.1.1...@spectrum-css/colorhandle@7.1.2) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -205,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/colorhandle @@ -214,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.17...@spectrum-css/colorhandle@7.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.17...@spectrum-css/colorhandle@7.1.0) ### ✨ Features @@ -225,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.17 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.16...@spectrum-css/colorhandle@7.0.17) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.16...@spectrum-css/colorhandle@7.0.17) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -234,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.16 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.15...@spectrum-css/colorhandle@7.0.16) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.15...@spectrum-css/colorhandle@7.0.16) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -243,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.15 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.13...@spectrum-css/colorhandle@7.0.15) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.13...@spectrum-css/colorhandle@7.0.15) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -252,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.14 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.13...@spectrum-css/colorhandle@7.0.14) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.13...@spectrum-css/colorhandle@7.0.14) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -261,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.13 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.12...@spectrum-css/colorhandle@7.0.13) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.12...@spectrum-css/colorhandle@7.0.13) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -270,8 +268,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.11...@spectrum-css/colorhandle@7.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.11...@spectrum-css/colorhandle@7.0.12) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -279,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.10...@spectrum-css/colorhandle@7.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.10...@spectrum-css/colorhandle@7.0.11) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -288,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.9...@spectrum-css/colorhandle@7.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.9...@spectrum-css/colorhandle@7.0.10) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -297,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.8...@spectrum-css/colorhandle@7.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.8...@spectrum-css/colorhandle@7.0.9) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -306,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.7...@spectrum-css/colorhandle@7.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.7...@spectrum-css/colorhandle@7.0.8) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -315,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.6...@spectrum-css/colorhandle@7.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.6...@spectrum-css/colorhandle@7.0.7) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -324,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.5...@spectrum-css/colorhandle@7.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.5...@spectrum-css/colorhandle@7.0.6) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -333,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.4...@spectrum-css/colorhandle@7.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.4...@spectrum-css/colorhandle@7.0.5) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -342,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.3...@spectrum-css/colorhandle@7.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.3...@spectrum-css/colorhandle@7.0.4) ### 🔙 Reverts @@ -353,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.2...@spectrum-css/colorhandle@7.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.2...@spectrum-css/colorhandle@7.0.3) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -362,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.0...@spectrum-css/colorhandle@7.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.0...@spectrum-css/colorhandle@7.0.2) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -371,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.0...@spectrum-css/colorhandle@7.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@7.0.0...@spectrum-css/colorhandle@7.0.1) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -380,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.2...@spectrum-css/colorhandle@7.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.2...@spectrum-css/colorhandle@7.0.0) \*refactor(colorhandle)!: replace focus-ring with focus-visible([3ede96d](https://github.com/adobe/spectrum-css/commit/3ede96d)) @@ -395,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.1...@spectrum-css/colorhandle@6.1.2) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.1...@spectrum-css/colorhandle@6.1.2) ### 🐛 Bug fixes @@ -406,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.0...@spectrum-css/colorhandle@6.1.1) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.1.0...@spectrum-css/colorhandle@6.1.1) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -415,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.2...@spectrum-css/colorhandle@6.1.0) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.2...@spectrum-css/colorhandle@6.1.0) ### ✨ Features @@ -426,8 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.2 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.1...@spectrum-css/colorhandle@6.0.2) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.1...@spectrum-css/colorhandle@6.0.2) ### 🐛 Bug fixes @@ -437,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.0...@spectrum-css/colorhandle@6.0.1) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@6.0.0...@spectrum-css/colorhandle@6.0.1) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -446,8 +426,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.15...@spectrum-css/colorhandle@6.0.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.15...@spectrum-css/colorhandle@6.0.0) \*feat(opacitycheckerboard)!: new component (#1916)([24e9f06](https://github.com/adobe/spectrum-css/commit/24e9f06)), closes[#1916](https://github.com/adobe/spectrum-css/issues/1916) @@ -497,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.15 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.14...@spectrum-css/colorhandle@5.0.15) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.14...@spectrum-css/colorhandle@5.0.15) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -506,8 +484,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.13...@spectrum-css/colorhandle@5.0.14) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.13...@spectrum-css/colorhandle@5.0.14) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -515,8 +492,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.12...@spectrum-css/colorhandle@5.0.13) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.12...@spectrum-css/colorhandle@5.0.13) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -524,8 +500,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.11...@spectrum-css/colorhandle@5.0.12) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.11...@spectrum-css/colorhandle@5.0.12) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -533,8 +508,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.10...@spectrum-css/colorhandle@5.0.11) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.10...@spectrum-css/colorhandle@5.0.11) ### 🐛 Bug fixes @@ -544,8 +518,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.9...@spectrum-css/colorhandle@5.0.10) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.9...@spectrum-css/colorhandle@5.0.10) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -553,8 +526,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.8...@spectrum-css/colorhandle@5.0.9) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.8...@spectrum-css/colorhandle@5.0.9) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -562,8 +534,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.7...@spectrum-css/colorhandle@5.0.8) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.7...@spectrum-css/colorhandle@5.0.8) ### 🐛 Bug fixes @@ -573,8 +544,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.6...@spectrum-css/colorhandle@5.0.7) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.6...@spectrum-css/colorhandle@5.0.7) **Note:** Version bump only for package @spectrum-css/colorhandle @@ -582,8 +552,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.5...@spectrum-css/colorhandle@5.0.6) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorhandle@5.0.5...@spectrum-css/colorhandle@5.0.6) **Note:** Version bump only for package @spectrum-css/colorhandle diff --git a/components/colorhandle/dist/metadata.json b/components/colorhandle/dist/metadata.json index 4d8589ac1c1..cbd2b5d599f 100644 --- a/components/colorhandle/dist/metadata.json +++ b/components/colorhandle/dist/metadata.json @@ -46,7 +46,6 @@ "--spectrum-picked-color", "--spectrum-white" ], - "system-theme": [], "passthroughs": ["--mod-opacity-checkerboard-position"], "high-contrast": [ "--highcontrast-colorhandle-border-color-disabled", diff --git a/components/colorhandle/package.json b/components/colorhandle/package.json index d0a9c8c9770..b1e215a990e 100644 --- a/components/colorhandle/package.json +++ b/components/colorhandle/package.json @@ -27,7 +27,7 @@ "peerDependencies": { "@spectrum-css/colorloupe": ">=5", "@spectrum-css/opacitycheckerboard": ">=2", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/colorloupe": { @@ -37,11 +37,7 @@ "devDependencies": { "@spectrum-css/colorloupe": "7.0.1", "@spectrum-css/opacitycheckerboard": "4.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/colorloupe/CHANGELOG.md b/components/colorloupe/CHANGELOG.md index a57191421d2..c0e522996b1 100644 --- a/components/colorloupe/CHANGELOG.md +++ b/components/colorloupe/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 6.0.0-next.0 + +### Major Changes + +- [#3301](https://github.com/adobe/spectrum-css/pull/3301) [`b91a202`](https://github.com/adobe/spectrum-css/commit/b91a2020be7a590a794938546e2f85f3fd9eef3e) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - Migrates color loupe to Spectrum 2 tokens. Color loupe now uses the new drop shadow tokens `--spectrum-drop-shadow-elevated-x`, `--spectrum-drop-shadow-elevated-y`, `--spectrum-drop-shadow-elevated-blur`, and `--spectrum-drop-shadow-elevated-color` rather than specific color loupe tokens. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 7.0.1 ### Patch Changes @@ -134,16 +145,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.4...@spectrum-css/colorloupe@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.4...@spectrum-css/colorloupe@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -151,8 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.3...@spectrum-css/colorloupe@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.3...@spectrum-css/colorloupe@4.2.4) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -160,8 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.2...@spectrum-css/colorloupe@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.2...@spectrum-css/colorloupe@4.2.3) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -169,8 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.1...@spectrum-css/colorloupe@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.2.1...@spectrum-css/colorloupe@4.2.2) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -178,8 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/colorloupe @@ -187,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.28...@spectrum-css/colorloupe@4.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.28...@spectrum-css/colorloupe@4.2.0) ### ✨ Features @@ -198,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.28 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.27...@spectrum-css/colorloupe@4.1.28) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.27...@spectrum-css/colorloupe@4.1.28) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -207,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.27 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.26...@spectrum-css/colorloupe@4.1.27) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.26...@spectrum-css/colorloupe@4.1.27) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -216,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.26 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.24...@spectrum-css/colorloupe@4.1.26) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.24...@spectrum-css/colorloupe@4.1.26) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -225,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.25 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.24...@spectrum-css/colorloupe@4.1.25) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.24...@spectrum-css/colorloupe@4.1.25) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -234,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.24 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.23...@spectrum-css/colorloupe@4.1.24) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.23...@spectrum-css/colorloupe@4.1.24) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -243,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.23 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.22...@spectrum-css/colorloupe@4.1.23) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.22...@spectrum-css/colorloupe@4.1.23) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -252,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.22 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.21...@spectrum-css/colorloupe@4.1.22) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.21...@spectrum-css/colorloupe@4.1.22) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -261,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.21 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.20...@spectrum-css/colorloupe@4.1.21) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.20...@spectrum-css/colorloupe@4.1.21) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -270,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.20 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.19...@spectrum-css/colorloupe@4.1.20) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.19...@spectrum-css/colorloupe@4.1.20) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -279,8 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.19 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.18...@spectrum-css/colorloupe@4.1.19) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.18...@spectrum-css/colorloupe@4.1.19) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -288,8 +281,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.18 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.17...@spectrum-css/colorloupe@4.1.18) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.17...@spectrum-css/colorloupe@4.1.18) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -297,8 +289,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.17 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.16...@spectrum-css/colorloupe@4.1.17) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.16...@spectrum-css/colorloupe@4.1.17) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -306,8 +297,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.16 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.15...@spectrum-css/colorloupe@4.1.16) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.15...@spectrum-css/colorloupe@4.1.16) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -315,8 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.15 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.14...@spectrum-css/colorloupe@4.1.15) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.14...@spectrum-css/colorloupe@4.1.15) ### 🔙 Reverts @@ -326,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.14 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.13...@spectrum-css/colorloupe@4.1.14) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.13...@spectrum-css/colorloupe@4.1.14) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -335,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.13 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.11...@spectrum-css/colorloupe@4.1.13) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.11...@spectrum-css/colorloupe@4.1.13) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -344,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.12 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.11...@spectrum-css/colorloupe@4.1.12) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.11...@spectrum-css/colorloupe@4.1.12) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -353,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.11 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.10...@spectrum-css/colorloupe@4.1.11) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.10...@spectrum-css/colorloupe@4.1.11) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -362,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.10 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.9...@spectrum-css/colorloupe@4.1.10) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.9...@spectrum-css/colorloupe@4.1.10) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -371,8 +355,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.9 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.8...@spectrum-css/colorloupe@4.1.9) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.8...@spectrum-css/colorloupe@4.1.9) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -380,8 +363,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.8 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.7...@spectrum-css/colorloupe@4.1.8) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.7...@spectrum-css/colorloupe@4.1.8) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -389,8 +371,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.7 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.6...@spectrum-css/colorloupe@4.1.7) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.6...@spectrum-css/colorloupe@4.1.7) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -398,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.6 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.5...@spectrum-css/colorloupe@4.1.6) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.5...@spectrum-css/colorloupe@4.1.6) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -407,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.4...@spectrum-css/colorloupe@4.1.5) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.4...@spectrum-css/colorloupe@4.1.5) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -416,8 +395,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.3...@spectrum-css/colorloupe@4.1.4) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.3...@spectrum-css/colorloupe@4.1.4) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -425,8 +403,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.2...@spectrum-css/colorloupe@4.1.3) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.2...@spectrum-css/colorloupe@4.1.3) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -434,8 +411,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.1...@spectrum-css/colorloupe@4.1.2) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.1...@spectrum-css/colorloupe@4.1.2) ### 🐛 Bug fixes @@ -445,8 +421,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.0...@spectrum-css/colorloupe@4.1.1) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.1.0...@spectrum-css/colorloupe@4.1.1) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -454,8 +429,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.8...@spectrum-css/colorloupe@4.1.0) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.8...@spectrum-css/colorloupe@4.1.0) ### ✨ Features @@ -465,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.7...@spectrum-css/colorloupe@4.0.8) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.7...@spectrum-css/colorloupe@4.0.8) ### 🐛 Bug fixes @@ -476,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.6...@spectrum-css/colorloupe@4.0.7) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.6...@spectrum-css/colorloupe@4.0.7) **Note:** Version bump only for package @spectrum-css/colorloupe @@ -485,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.5...@spectrum-css/colorloupe@4.0.6) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorloupe@4.0.5...@spectrum-css/colorloupe@4.0.6) **Note:** Version bump only for package @spectrum-css/colorloupe diff --git a/components/colorloupe/dist/metadata.json b/components/colorloupe/dist/metadata.json index 245bb476b1f..11ab2606d1e 100644 --- a/components/colorloupe/dist/metadata.json +++ b/components/colorloupe/dist/metadata.json @@ -26,26 +26,39 @@ ], "component": [ "--spectrum-color-loupe-bottom-to-color-handle", - "--spectrum-color-loupe-drop-shadow-blur", - "--spectrum-color-loupe-drop-shadow-color", - "--spectrum-color-loupe-drop-shadow-y", "--spectrum-color-loupe-height", "--spectrum-color-loupe-inner-border", "--spectrum-color-loupe-inner-border-width", "--spectrum-color-loupe-outer-border", "--spectrum-color-loupe-outer-border-width", "--spectrum-color-loupe-width", - "--spectrum-colorloupe-checkerboard-fill" + "--spectrum-colorloupe-animation-distance", + "--spectrum-colorloupe-checkerboard-dark-color", + "--spectrum-colorloupe-checkerboard-fill", + "--spectrum-colorloupe-checkerboard-light-color", + "--spectrum-colorloupe-drop-shadow-blur", + "--spectrum-colorloupe-drop-shadow-color", + "--spectrum-colorloupe-drop-shadow-x", + "--spectrum-colorloupe-drop-shadow-y", + "--spectrum-colorloupe-height", + "--spectrum-colorloupe-inner-border-color", + "--spectrum-colorloupe-inner-border-width", + "--spectrum-colorloupe-offset", + "--spectrum-colorloupe-outer-border-color", + "--spectrum-colorloupe-outer-border-width", + "--spectrum-colorloupe-width" ], "global": [ "--spectrum-color-handle-outer-border-width", "--spectrum-color-handle-size", - "--spectrum-drop-shadow-x", + "--spectrum-drop-shadow-elevated-blur", + "--spectrum-drop-shadow-elevated-color", + "--spectrum-drop-shadow-elevated-x", + "--spectrum-drop-shadow-elevated-y", "--spectrum-opacity-checkerboard-square-dark", "--spectrum-opacity-checkerboard-square-light", "--spectrum-picked-color" ], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-colorloupe-outer-border-color"] } diff --git a/components/colorloupe/index.css b/components/colorloupe/index.css index f793d2fa6b0..adcd988e569 100644 --- a/components/colorloupe/index.css +++ b/components/colorloupe/index.css @@ -12,25 +12,44 @@ */ .spectrum-ColorLoupe { - inline-size: var(--spectrum-color-loupe-width); - block-size: var(--spectrum-color-loupe-height); + --spectrum-colorloupe-width: var(--spectrum-color-loupe-width); + --spectrum-colorloupe-height: var(--spectrum-color-loupe-height); + + --spectrum-colorloupe-offset: var(--spectrum-color-loupe-bottom-to-color-handle); + --spectrum-colorloupe-animation-distance: 8px; /* TODO: replace with forthcoming animation token */ + + --spectrum-colorloupe-drop-shadow-x: var(--spectrum-drop-shadow-elevated-x); + --spectrum-colorloupe-drop-shadow-y: var(--spectrum-drop-shadow-elevated-y); + --spectrum-colorloupe-drop-shadow-blur: var(--spectrum-drop-shadow-elevated-blur); + --spectrum-colorloupe-drop-shadow-color: var(--spectrum-drop-shadow-elevated-color); + + --spectrum-colorloupe-outer-border-width: var(--spectrum-color-loupe-outer-border-width); + --spectrum-colorloupe-inner-border-width: var(--spectrum-color-loupe-inner-border-width); + --spectrum-colorloupe-outer-border-color: var(--spectrum-color-loupe-outer-border); + --spectrum-colorloupe-inner-border-color: var(--spectrum-color-loupe-inner-border); + + --spectrum-colorloupe-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --spectrum-colorloupe-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); + + inline-size: var(--spectrum-colorloupe-width); + block-size: var(--spectrum-colorloupe-height); position: absolute; - transform: translate(0, var(--mod-colorloupe-animation-distance, 8px)); + transform: translate(0, var(--mod-colorloupe-animation-distance, var(--spectrum-colorloupe-animation-distance))); opacity: 0; transform-origin: bottom center; - inset-block-end: calc(var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width) + var(--mod-colorloupe-offset, var(--spectrum-color-loupe-bottom-to-color-handle))); - inset-inline-end: calc(50% - var(--spectrum-color-loupe-width) / 2); + inset-block-end: calc((var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width)) + var(--mod-colorloupe-offset, var(--spectrum-colorloupe-offset))); + inset-inline-end: calc(50% - (var(--spectrum-colorloupe-width) / 2)); transition: transform 100ms ease-in-out, opacity 125ms ease-in-out; pointer-events: none; - filter: drop-shadow(var(--mod-colorloupe-drop-shadow-x, var(--spectrum-drop-shadow-x)) var(--mod-colorloupe-drop-shadow-y, var(--spectrum-color-loupe-drop-shadow-y)) var(--mod-colorloupe-drop-shadow-blur, var(--spectrum-color-loupe-drop-shadow-blur)) var(--mod-colorloupe-drop-shadow-color, var(--spectrum-color-loupe-drop-shadow-color))); + filter: drop-shadow(var(--mod-colorloupe-drop-shadow-x, var(--spectrum-colorloupe-drop-shadow-x)) var(--mod-colorloupe-drop-shadow-y, var(--spectrum-colorloupe-drop-shadow-y)) var(--mod-colorloupe-drop-shadow-blur, var(--spectrum-colorloupe-drop-shadow-blur)) var(--mod-colorloupe-drop-shadow-color, var(--spectrum-colorloupe-drop-shadow-color))); &:dir(rtl) { - inset-inline-end: calc(50% - (var(--spectrum-color-loupe-width) / 2) - 1px); + inset-inline-end: calc(50% - (var(--spectrum-colorloupe-width) / 2) - 1px); } &.is-open { @@ -44,26 +63,27 @@ } .spectrum-ColorLoupe-inner-border { + /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ fill: var(--spectrum-picked-color); - stroke: var(--mod-colorloupe-inner-border-color, var(--spectrum-color-loupe-inner-border)); - stroke-width: var(--mod-colorloupe-inner-border-width, var(--spectrum-color-loupe-inner-border-width)); + stroke: var(--mod-colorloupe-inner-border-color, var(--spectrum-colorloupe-inner-border-color)); + stroke-width: var(--mod-colorloupe-inner-border-width, var(--spectrum-colorloupe-inner-border-width)); } .spectrum-ColorLoupe-outer-border { fill: none; - stroke: var(--highcontrast-colorloupe-outer-border-color, var(--mod-colorloupe-outer-border-color, var(--spectrum-color-loupe-outer-border))); - stroke-width: calc(var(--mod-colorloupe-outer-border-width, var(--spectrum-color-loupe-outer-border-width)) + 2px); + stroke: var(--highcontrast-colorloupe-outer-border-color, var(--mod-colorloupe-outer-border-color, var(--spectrum-colorloupe-outer-border-color))); + stroke-width: calc(var(--mod-colorloupe-outer-border-width, var(--spectrum-colorloupe-outer-border-width)) + 2px); } /* The checkerboard classes use opacity checkerboard tokens for dark and light color. The opacity-checkerboard-square-size token is not able to be used witin the SVG pattern and instead colorloupe docs are using two different patterns toggled by --spectrum-colorloupe-checkerboard-fill */ .spectrum-ColorLoupe-checkerboard-pattern { - fill: var(--spectrum-opacity-checkerboard-square-dark); + fill: var(--spectrum-colorloupe-checkerboard-dark-color); } .spectrum-ColorLoupe-checkerboard-background { - fill: var(--spectrum-opacity-checkerboard-square-light); + fill: var(--spectrum-colorloupe-checkerboard-light-color); } .spectrum-ColorLoupe-checkerboard-fill { diff --git a/components/colorloupe/package.json b/components/colorloupe/package.json index 00a1a5e3730..6e1fdd07171 100644 --- a/components/colorloupe/package.json +++ b/components/colorloupe/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/colorloupe/stories/colorloupe.stories.js b/components/colorloupe/stories/colorloupe.stories.js index f07cdf83ee7..fd827e3994f 100644 --- a/components/colorloupe/stories/colorloupe.stories.js +++ b/components/colorloupe/stories/colorloupe.stories.js @@ -46,6 +46,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = ColorLoupeGroup.bind({}); diff --git a/components/colorslider/CHANGELOG.md b/components/colorslider/CHANGELOG.md index 7faef5e3ee0..a71ce6e0784 100644 --- a/components/colorslider/CHANGELOG.md +++ b/components/colorslider/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 7.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/opacitycheckerboard@3.0.0-next.0 + - @spectrum-css/colorhandle@9.0.0-next.0 + ## 8.0.1 ### Patch Changes @@ -164,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.5...@spectrum-css/colorslider@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.5...@spectrum-css/colorslider@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -181,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.4...@spectrum-css/colorslider@5.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.4...@spectrum-css/colorslider@5.1.5) **Note:** Version bump only for package @spectrum-css/colorslider @@ -190,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.3...@spectrum-css/colorslider@5.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.3...@spectrum-css/colorslider@5.1.4) **Note:** Version bump only for package @spectrum-css/colorslider @@ -199,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.2...@spectrum-css/colorslider@5.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.2...@spectrum-css/colorslider@5.1.3) **Note:** Version bump only for package @spectrum-css/colorslider @@ -208,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.1...@spectrum-css/colorslider@5.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.1.1...@spectrum-css/colorslider@5.1.2) **Note:** Version bump only for package @spectrum-css/colorslider @@ -217,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/colorslider @@ -226,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.14...@spectrum-css/colorslider@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.14...@spectrum-css/colorslider@5.1.0) ### ✨ Features @@ -237,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.13...@spectrum-css/colorslider@5.0.14) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.13...@spectrum-css/colorslider@5.0.14) **Note:** Version bump only for package @spectrum-css/colorslider @@ -246,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.12...@spectrum-css/colorslider@5.0.13) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.12...@spectrum-css/colorslider@5.0.13) **Note:** Version bump only for package @spectrum-css/colorslider @@ -255,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.10...@spectrum-css/colorslider@5.0.12) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.10...@spectrum-css/colorslider@5.0.12) **Note:** Version bump only for package @spectrum-css/colorslider @@ -264,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.10...@spectrum-css/colorslider@5.0.11) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.10...@spectrum-css/colorslider@5.0.11) **Note:** Version bump only for package @spectrum-css/colorslider @@ -273,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.9...@spectrum-css/colorslider@5.0.10) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.9...@spectrum-css/colorslider@5.0.10) **Note:** Version bump only for package @spectrum-css/colorslider @@ -282,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.8...@spectrum-css/colorslider@5.0.9) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.8...@spectrum-css/colorslider@5.0.9) **Note:** Version bump only for package @spectrum-css/colorslider @@ -291,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.7...@spectrum-css/colorslider@5.0.8) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.7...@spectrum-css/colorslider@5.0.8) **Note:** Version bump only for package @spectrum-css/colorslider @@ -300,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.6...@spectrum-css/colorslider@5.0.7) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.6...@spectrum-css/colorslider@5.0.7) **Note:** Version bump only for package @spectrum-css/colorslider @@ -309,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.5...@spectrum-css/colorslider@5.0.6) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.5...@spectrum-css/colorslider@5.0.6) **Note:** Version bump only for package @spectrum-css/colorslider @@ -318,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.4...@spectrum-css/colorslider@5.0.5) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.4...@spectrum-css/colorslider@5.0.5) **Note:** Version bump only for package @spectrum-css/colorslider @@ -327,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.3...@spectrum-css/colorslider@5.0.4) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.3...@spectrum-css/colorslider@5.0.4) **Note:** Version bump only for package @spectrum-css/colorslider @@ -336,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.2...@spectrum-css/colorslider@5.0.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.2...@spectrum-css/colorslider@5.0.3) **Note:** Version bump only for package @spectrum-css/colorslider @@ -345,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.1...@spectrum-css/colorslider@5.0.2) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.1...@spectrum-css/colorslider@5.0.2) **Note:** Version bump only for package @spectrum-css/colorslider @@ -354,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.0...@spectrum-css/colorslider@5.0.1) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@5.0.0...@spectrum-css/colorslider@5.0.1) **Note:** Version bump only for package @spectrum-css/colorslider @@ -363,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.9...@spectrum-css/colorslider@5.0.0) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.9...@spectrum-css/colorslider@5.0.0) ### 🔙 Reverts @@ -548,8 +535,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.9 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.8...@spectrum-css/colorslider@4.0.9) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.8...@spectrum-css/colorslider@4.0.9) **Note:** Version bump only for package @spectrum-css/colorslider @@ -557,8 +543,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.8 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.6...@spectrum-css/colorslider@4.0.8) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.6...@spectrum-css/colorslider@4.0.8) **Note:** Version bump only for package @spectrum-css/colorslider @@ -566,8 +551,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.7 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.6...@spectrum-css/colorslider@4.0.7) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.6...@spectrum-css/colorslider@4.0.7) **Note:** Version bump only for package @spectrum-css/colorslider @@ -575,8 +559,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.6 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.5...@spectrum-css/colorslider@4.0.6) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.5...@spectrum-css/colorslider@4.0.6) **Note:** Version bump only for package @spectrum-css/colorslider @@ -584,8 +567,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.5 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.4...@spectrum-css/colorslider@4.0.5) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.4...@spectrum-css/colorslider@4.0.5) **Note:** Version bump only for package @spectrum-css/colorslider @@ -593,8 +575,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.4 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.3...@spectrum-css/colorslider@4.0.4) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.3...@spectrum-css/colorslider@4.0.4) **Note:** Version bump only for package @spectrum-css/colorslider @@ -602,8 +583,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.3 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.2...@spectrum-css/colorslider@4.0.3) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.2...@spectrum-css/colorslider@4.0.3) **Note:** Version bump only for package @spectrum-css/colorslider @@ -611,8 +591,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.2 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.1...@spectrum-css/colorslider@4.0.2) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.1...@spectrum-css/colorslider@4.0.2) **Note:** Version bump only for package @spectrum-css/colorslider @@ -620,8 +599,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.1 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.0...@spectrum-css/colorslider@4.0.1) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@4.0.0...@spectrum-css/colorslider@4.0.1) **Note:** Version bump only for package @spectrum-css/colorslider @@ -629,8 +607,7 @@ Update devDependencies to use latest version of tokens package. ## 4.0.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.23...@spectrum-css/colorslider@4.0.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.23...@spectrum-css/colorslider@4.0.0) \*feat(opacitycheckerboard)!: new component (#1916)([24e9f06](https://github.com/adobe/spectrum-css/commit/24e9f06)), closes[#1916](https://github.com/adobe/spectrum-css/issues/1916) @@ -680,8 +657,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.23 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.22...@spectrum-css/colorslider@3.0.23) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.22...@spectrum-css/colorslider@3.0.23) **Note:** Version bump only for package @spectrum-css/colorslider @@ -689,8 +665,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.22 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.21...@spectrum-css/colorslider@3.0.22) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.21...@spectrum-css/colorslider@3.0.22) **Note:** Version bump only for package @spectrum-css/colorslider @@ -698,8 +673,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.21 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.20...@spectrum-css/colorslider@3.0.21) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.20...@spectrum-css/colorslider@3.0.21) **Note:** Version bump only for package @spectrum-css/colorslider @@ -707,8 +681,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.20 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.19...@spectrum-css/colorslider@3.0.20) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.19...@spectrum-css/colorslider@3.0.20) **Note:** Version bump only for package @spectrum-css/colorslider @@ -716,8 +689,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.19 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.18...@spectrum-css/colorslider@3.0.19) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.18...@spectrum-css/colorslider@3.0.19) ### 🐛 Bug fixes @@ -727,8 +699,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.18 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.17...@spectrum-css/colorslider@3.0.18) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.17...@spectrum-css/colorslider@3.0.18) **Note:** Version bump only for package @spectrum-css/colorslider @@ -736,8 +707,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.17 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.16...@spectrum-css/colorslider@3.0.17) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.16...@spectrum-css/colorslider@3.0.17) **Note:** Version bump only for package @spectrum-css/colorslider @@ -745,8 +715,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.16 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.15...@spectrum-css/colorslider@3.0.16) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.15...@spectrum-css/colorslider@3.0.16) ### 🐛 Bug fixes @@ -756,8 +725,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.15 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.14...@spectrum-css/colorslider@3.0.15) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.14...@spectrum-css/colorslider@3.0.15) **Note:** Version bump only for package @spectrum-css/colorslider @@ -765,8 +733,7 @@ Update devDependencies to use latest version of tokens package. ## 3.0.14 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.13...@spectrum-css/colorslider@3.0.14) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorslider@3.0.13...@spectrum-css/colorslider@3.0.14) **Note:** Version bump only for package @spectrum-css/colorslider diff --git a/components/colorslider/dist/metadata.json b/components/colorslider/dist/metadata.json index ea202a9f0a0..497550155a7 100644 --- a/components/colorslider/dist/metadata.json +++ b/components/colorslider/dist/metadata.json @@ -37,15 +37,16 @@ "--spectrum-color-slider-border-opacity", "--spectrum-color-slider-border-rounding", "--spectrum-color-slider-border-width", + "--spectrum-color-slider-control-track-width", + "--spectrum-color-slider-fill-color-disabled", "--spectrum-color-slider-length", "--spectrum-color-slider-minimum-length" ], "global": [ "--spectrum-color-control-track-width", "--spectrum-disabled-background-color", - "--spectrum-gray-900-rgb" + "--spectrum-gray-1000-rgb" ], - "system-theme": [], "passthroughs": ["--mod-colorhandle-hitarea-border-radius"], "high-contrast": [ "--highcontrast-color-slider-background-color-disabled", diff --git a/components/colorslider/index.css b/components/colorslider/index.css index 2876596753d..50983a0e53a 100644 --- a/components/colorslider/index.css +++ b/components/colorslider/index.css @@ -11,28 +11,24 @@ * governing permissions and limitations under the License. */ -@media (forced-colors: active) { - .spectrum-ColorSlider { - --highcontrast-color-slider-border-color: CanvasText; - --highcontrast-color-slider-border-color-disabled: GrayText; - --highcontrast-color-slider-background-color-disabled: Canvas; - forced-color-adjust: none; - } -} - .spectrum-ColorSlider { + /* Size and Spacing */ + --spectrum-color-slider-control-track-width: var(--spectrum-color-control-track-width); + /* @todo Refactor with --spectrum-color-slider-border-color once gray rgb token is no longer necessary to workaround nested rgb color token value using rgba(). */ - --spectrum-color-slider-border-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-color-slider-border-opacity)); + --spectrum-color-slider-border-color-default: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-color-slider-border-opacity)); /* @passthrough -- settings for nested color handle */ --mod-colorhandle-hitarea-border-radius: var(--mod-color-slider-handle-hitarea-border-radius, 0px); + --spectrum-color-slider-fill-color-disabled: var(--spectrum-disabled-background-color); + position: relative; display: block; min-inline-size: var(--mod-color-slider-minimum-length, var(--spectrum-color-slider-minimum-length)); inline-size: var(--mod-color-slider-length, var(--spectrum-color-slider-length)); - block-size: var(--mod-color-slider-control-track-width, var(--spectrum-color-control-track-width)); + block-size: var(--mod-color-slider-control-track-width, var(--spectrum-color-slider-control-track-width)); /* Otherwise we randomly drag a file icon */ user-select: none; @@ -58,7 +54,7 @@ min-block-size: var(--mod-color-slider-vertical-minimum-height, var(--mod-color-slider-minimum-length, var(--spectrum-color-slider-minimum-length))); block-size: var(--mod-color-slider-vertical-height, var(--mod-color-slider-length, var(--spectrum-color-slider-length))); min-inline-size: 0; - inline-size: var(--mod-color-slider-vertical-control-track-width, var(--mod-color-slider-control-track-height, var(--spectrum-color-control-track-width))); + inline-size: var(--mod-color-slider-vertical-control-track-width, var(--mod-color-slider-control-track-height, var(--spectrum-color-slider-control-track-width))); .spectrum-ColorSlider-handle { inset-inline-start: 50%; @@ -85,8 +81,8 @@ } .spectrum-ColorSlider.is-disabled & { - --spectrum-color-slider-border-color-local: var(--highcontrast-color-slider-border-color-disabled, var(--mod-color-slider-border-color-disabled, var(--spectrum-disabled-background-color))); - background: var(--highcontrast-color-slider-background-color-disabled, var(--mod-color-slider-background-color-disabled, var(--spectrum-disabled-background-color))); + --spectrum-color-slider-border-color-local: var(--highcontrast-color-slider-border-color-disabled, var(--mod-color-slider-border-color-disabled, var(--spectrum-color-slider-fill-color-disabled))); + background: var(--highcontrast-color-slider-background-color-disabled, var(--mod-color-slider-background-color-disabled, var(--spectrum-color-slider-fill-color-disabled))); } } @@ -114,3 +110,12 @@ margin: 0; pointer-events: none; } + +@media (forced-colors: active) { + .spectrum-ColorSlider { + --highcontrast-color-slider-border-color: CanvasText; + --highcontrast-color-slider-border-color-disabled: GrayText; + --highcontrast-color-slider-background-color-disabled: Canvas; + forced-color-adjust: none; + } +} diff --git a/components/colorslider/package.json b/components/colorslider/package.json index 95c3f3bb92b..902c702e003 100644 --- a/components/colorslider/package.json +++ b/components/colorslider/package.json @@ -27,16 +27,12 @@ "peerDependencies": { "@spectrum-css/colorhandle": ">=8", "@spectrum-css/opacitycheckerboard": ">=2", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/colorhandle": "10.0.1", "@spectrum-css/opacitycheckerboard": "4.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/colorslider/stories/colorslider.stories.js b/components/colorslider/stories/colorslider.stories.js index 633fa48b8be..010b0f31510 100644 --- a/components/colorslider/stories/colorslider.stories.js +++ b/components/colorslider/stories/colorslider.stories.js @@ -19,18 +19,20 @@ export default { component: "ColorSlider", argTypes: { colorHandleStyle: { table: { disable: true } }, - vertical: { table: { disable: true } }, isDisabled, isFocused: { ...isFocused, if: { arg: "isDisabled", truthy: false }, }, - gradientStops: { - name: "Gradient stops", + color: { + name: "Color", description: - "The <linear-color-stop> value of the CSS linear-gradient. Can be multiple stops separated by commas.", - type: { name: "array" }, - table: { disable: true }, + "Supports standard color input or any valid input for the <code>background</code> property such as, <code>linear-gradient(red, blue)</code>.", + type: { name: "string", required: true }, + table: { + type: { summary: "string" }, + }, + control: "color", }, selectedColor: { name: "Selected color", @@ -40,12 +42,19 @@ export default { control: "color", }, gradientType: { - name: "Gradient type", - description: "The gradient can be defined in the markup using CSS or with an image.", - options: ["gradient", "image"], + name: "Color type", + description: + "The color can be defined in the markup using CSS or with an image.", + options: ["color", "image"], control: { type: "select" }, table: { disable: true }, }, + vertical: { + name: "Vertical", + description: "The orientation of the component.", + type: { name: "boolean" }, + control: "boolean", + }, }, args: { rootClass: "spectrum-ColorSlider", @@ -70,8 +79,8 @@ export default { */ export const Default = ColorSliderGroup.bind({}); Default.args = { - gradientStops: - ["rgb(255, 0, 0) 0%", "rgb(255, 255, 0) 17%", "rgb(0, 255, 0) 33%", "rgb(0, 255, 255) 50%", "rgb(0, 0, 255) 67%", "rgb(255, 0, 255) 83%", "rgb(255, 0, 0) 100%"], + color: + "linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)", }; // ********* VRT ONLY ********* // @@ -81,7 +90,7 @@ WithForcedColors.tags = ["!autodocs", "!dev"]; WithForcedColors.parameters = { chromatic: { forcedColors: "active", - modes: disableDefaultModes + modes: disableDefaultModes, }, }; @@ -92,6 +101,8 @@ WithForcedColors.parameters = { export const Vertical = Template.bind({}); Vertical.args = { vertical: true, + color: + "linear-gradient(to bottom, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)", }; Vertical.tags = ["!dev"]; Vertical.parameters = { @@ -100,7 +111,7 @@ Vertical.parameters = { export const Alpha = Template.bind({}); Alpha.args = { - gradientStops: ["rgba(0, 0, 0, 1) 0%", "rgba(0, 0, 0, 0) 100%"], + color: "linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%)", selectedColor: "rgba(0, 0, 0, 1)", }; Alpha.tags = ["!dev"]; diff --git a/components/colorslider/stories/colorslider.test.js b/components/colorslider/stories/colorslider.test.js index 166960e9353..ceb4f5dac81 100644 --- a/components/colorslider/stories/colorslider.test.js +++ b/components/colorslider/stories/colorslider.test.js @@ -14,6 +14,7 @@ export const ColorSliderGroup = Variants({ { testHeading: "Vertical", vertical: true, + color: "linear-gradient(to bottom, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)", wrapperStyles: { // Adjust for the indicator "padding-block": "20px", @@ -21,7 +22,7 @@ export const ColorSliderGroup = Variants({ }, { testHeading: "Alpha", - gradientStops: ["rgba(0, 0, 0, 1) 0%", "rgba(0, 0, 0, 0) 100%"], + color: "linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%)", selectedColor: "rgba(0, 0, 0, 1)", wrapperStyles: { // Adjust for the indicator diff --git a/components/colorslider/stories/template.js b/components/colorslider/stories/template.js index f4c15735012..73f7f123568 100644 --- a/components/colorslider/stories/template.js +++ b/components/colorslider/stories/template.js @@ -7,83 +7,83 @@ import { when } from "lit/directives/when.js"; import "../index.css"; -export const Template = ({ - rootClass = "spectrum-ColorSlider", - customClasses = [], - customStyles = {}, - isDisabled = false, - isFocused = false, - vertical = false, - gradientStops = [ - "rgb(255, 0, 0) 0%", - "rgb(255, 255, 0) 17%", - "rgb(0, 255, 0) 33%", - "rgb(0, 255, 255) 50%", - "rgb(0, 0, 255) 67%", - "rgb(255, 0, 255) 83%", - "rgb(255, 0, 0)", - ], - gradientType = "gradient", - selectedColor = "rgba(255, 0, 0, 1)", - colorHandleStyle = {}, -} = {}, context = {}) => { +export const Template = ( + { + rootClass = "spectrum-ColorSlider", + customClasses = [], + customStyles = {}, + isDisabled = false, + isFocused = false, + vertical = false, + color = "linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)", + gradientType = "gradient", + selectedColor = "rgba(255, 0, 0, 1)", + colorHandleStyle = {}, + } = {}, + context = {}, +) => { const { updateArgs } = context; return html` - <div - class=${classMap({ - [rootClass]: true, - [`${rootClass}--vertical`]: vertical, - "is-disabled": isDisabled, - "is-focused": isFocused, - ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), - })} - style=${styleMap(customStyles)} - @focusin=${function() { - updateArgs({ isFocused: true }); - }} - @focusout=${function() { - updateArgs({ isFocused: false }); - }} - > - ${OpacityCheckerboard({ - customClasses: [`${rootClass}-checkerboard`], - content: [ - when( - gradientType === "image", - () => html`<img - class="${rootClass}-gradient" - role="presentation" - src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAeCAIAAAAkbYJ/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjNBMTBENzk4QkQzMTFFQThDOTdDN0QyNDNGMUNFMzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjNBMTBEN0E4QkQzMTFFQThDOTdDN0QyNDNGMUNFMzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGM0ExMEQ3NzhCRDMxMUVBOEM5N0M3RDI0M0YxQ0UzMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGM0ExMEQ3ODhCRDMxMUVBOEM5N0M3RDI0M0YxQ0UzMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PrmQ8p4AAADbSURBVHja7JFLDsMgDAWNc/9L9h7YiQ0Gou66rGaUWHxegDDN5SPiEm/Uo+3S3LPWIzEy2uqu1Vh1dy3q5TM/ks38yprJbGdXK38GdHwVs94sAtXNas9h/LIK2zE11jlHrI5ksa9a5r+mdJ3E8i+OveISurzCvldr3V/dp91XQLTPvWYdgbFCr/tcp81BqW/bzKxLkz2epxLzPWglS7Y1ERX4axCMYEAwIBgQDAgGBAOCEQwIBgQDggHBgGBAMIIBwYBgQDAgGBAMCAYEIxgQDAgGBAOC4RduAQYALiXYw9aNKvcAAAAASUVORK5CYII=" - />`, - () => html`<div - class="${rootClass}-gradient" - role="presentation" - style=${when(gradientStops && gradientStops.length, () => - styleMap({ - background: `linear-gradient(to ${ - vertical ? "bottom" : "right" - }, ${gradientStops.join(", ")})`, - }) - )} - ></div>` - ), - ], - role: "presentation", - }, context)} - ${ColorHandle({ - isDisabled, - isFocused, - selectedColor, - customClasses: [`${rootClass}-handle`], - customStyles: colorHandleStyle, - }, context)} - <input - type="color" - value=${selectedColor} - class=${classMap({ - [`${rootClass}-slider`]: true - })} /> - </div> - `; + <div + class=${classMap({ + [rootClass]: true, + [`${rootClass}--vertical`]: vertical, + "is-disabled": isDisabled, + "is-focused": isFocused, + ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), + })} + style=${styleMap(customStyles)} + @focusin=${function () { + updateArgs({ isFocused: true }); + }} + @focusout=${function () { + updateArgs({ isFocused: false }); + }} + > + ${OpacityCheckerboard( + { + customClasses: [`${rootClass}-checkerboard`], + content: [ + when( + gradientType === "image", + () => + html`<img + class="${rootClass}-gradient" + role="presentation" + src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAeCAIAAAAkbYJ/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjNBMTBENzk4QkQzMTFFQThDOTdDN0QyNDNGMUNFMzAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjNBMTBEN0E4QkQzMTFFQThDOTdDN0QyNDNGMUNFMzAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGM0ExMEQ3NzhCRDMxMUVBOEM5N0M3RDI0M0YxQ0UzMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGM0ExMEQ3ODhCRDMxMUVBOEM5N0M3RDI0M0YxQ0UzMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PrmQ8p4AAADbSURBVHja7JFLDsMgDAWNc/9L9h7YiQ0Gou66rGaUWHxegDDN5SPiEm/Uo+3S3LPWIzEy2uqu1Vh1dy3q5TM/ks38yprJbGdXK38GdHwVs94sAtXNas9h/LIK2zE11jlHrI5ksa9a5r+mdJ3E8i+OveISurzCvldr3V/dp91XQLTPvWYdgbFCr/tcp81BqW/bzKxLkz2epxLzPWglS7Y1ERX4axCMYEAwIBgQDAgGBAOCEQwIBgQDggHBgGBAMIIBwYBgQDAgGBAMCAYEIxgQDAgGBAOC4RduAQYALiXYw9aNKvcAAAAASUVORK5CYII=" + />`, + () => + html`<div + class="${rootClass}-gradient" + role="presentation" + style=${styleMap({ + background: `${color}`, + })} + ></div>`, + ), + ], + role: "presentation", + }, + context, + )} + ${ColorHandle( + { + isDisabled, + isFocused, + selectedColor, + customClasses: [`${rootClass}-handle`], + customStyles: colorHandleStyle, + }, + context, + )} + <input + type="color" + value=${selectedColor} + class=${classMap({ + [`${rootClass}-slider`]: true, + })} + /> + </div> + `; }; diff --git a/components/colorwheel/CHANGELOG.md b/components/colorwheel/CHANGELOG.md index 79b0d5244ae..e544ed3f46b 100644 --- a/components/colorwheel/CHANGELOG.md +++ b/components/colorwheel/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 5.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`6b41b50`](https://github.com/adobe/spectrum-css/commit/6b41b501768da3db70ae00f6097646583f8fbd01) Thanks [@pfulton](https://github.com/pfulton)! - Restores missing custom properties that were flagged by the linter. The missing properties were copied from the spectrum two theme files in the foundations branch. This clears up all linter errors and warnings for these components. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 5.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`8aa61a9`](https://github.com/adobe/spectrum-css/commit/8aa61a9a92974b4048ba18b4d33e756af9a37d8e), [`b91a202`](https://github.com/adobe/spectrum-css/commit/b91a2020be7a590a794938546e2f85f3fd9eef3e)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/colorarea@6.0.0-next.0 + - @spectrum-css/colorloupe@6.0.0-next.0 + - @spectrum-css/colorhandle@9.0.0-next.0 + ## 6.0.1 ### Patch Changes @@ -179,16 +198,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.5...@spectrum-css/colorwheel@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.5...@spectrum-css/colorwheel@4.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -196,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.4...@spectrum-css/colorwheel@3.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.4...@spectrum-css/colorwheel@3.1.5) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -205,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.3...@spectrum-css/colorwheel@3.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.3...@spectrum-css/colorwheel@3.1.4) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -214,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.2...@spectrum-css/colorwheel@3.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.2...@spectrum-css/colorwheel@3.1.3) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -223,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.1...@spectrum-css/colorwheel@3.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.1.1...@spectrum-css/colorwheel@3.1.2) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -232,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/colorwheel @@ -241,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.51...@spectrum-css/colorwheel@3.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.51...@spectrum-css/colorwheel@3.1.0) ### ✨ Features @@ -252,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.51 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.50...@spectrum-css/colorwheel@3.0.51) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.50...@spectrum-css/colorwheel@3.0.51) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -261,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.50 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.49...@spectrum-css/colorwheel@3.0.50) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.49...@spectrum-css/colorwheel@3.0.50) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -270,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.49 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.47...@spectrum-css/colorwheel@3.0.49) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.47...@spectrum-css/colorwheel@3.0.49) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -279,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.48 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.47...@spectrum-css/colorwheel@3.0.48) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.47...@spectrum-css/colorwheel@3.0.48) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -288,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.47 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.46...@spectrum-css/colorwheel@3.0.47) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.46...@spectrum-css/colorwheel@3.0.47) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -297,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.46 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.45...@spectrum-css/colorwheel@3.0.46) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.45...@spectrum-css/colorwheel@3.0.46) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -306,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.45 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.44...@spectrum-css/colorwheel@3.0.45) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.44...@spectrum-css/colorwheel@3.0.45) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -315,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.44 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.43...@spectrum-css/colorwheel@3.0.44) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.43...@spectrum-css/colorwheel@3.0.44) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -324,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.43 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.42...@spectrum-css/colorwheel@3.0.43) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.42...@spectrum-css/colorwheel@3.0.43) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -333,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.42 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.41...@spectrum-css/colorwheel@3.0.42) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.41...@spectrum-css/colorwheel@3.0.42) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -342,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.41 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.40...@spectrum-css/colorwheel@3.0.41) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.40...@spectrum-css/colorwheel@3.0.41) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -351,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.40 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.39...@spectrum-css/colorwheel@3.0.40) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.39...@spectrum-css/colorwheel@3.0.40) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -360,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.39 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.38...@spectrum-css/colorwheel@3.0.39) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.38...@spectrum-css/colorwheel@3.0.39) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -369,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.38 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.37...@spectrum-css/colorwheel@3.0.38) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.37...@spectrum-css/colorwheel@3.0.38) ### 🔙 Reverts @@ -380,8 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.37 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.36...@spectrum-css/colorwheel@3.0.37) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.36...@spectrum-css/colorwheel@3.0.37) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -389,8 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.36 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.34...@spectrum-css/colorwheel@3.0.36) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.34...@spectrum-css/colorwheel@3.0.36) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -398,8 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.35 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.34...@spectrum-css/colorwheel@3.0.35) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.34...@spectrum-css/colorwheel@3.0.35) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -407,8 +400,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.34 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.33...@spectrum-css/colorwheel@3.0.34) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.33...@spectrum-css/colorwheel@3.0.34) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -416,8 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.33 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.32...@spectrum-css/colorwheel@3.0.33) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.32...@spectrum-css/colorwheel@3.0.33) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -425,8 +416,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.32 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.31...@spectrum-css/colorwheel@3.0.32) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.31...@spectrum-css/colorwheel@3.0.32) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -434,8 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.31 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.30...@spectrum-css/colorwheel@3.0.31) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.30...@spectrum-css/colorwheel@3.0.31) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -443,8 +432,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.30 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.29...@spectrum-css/colorwheel@3.0.30) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.29...@spectrum-css/colorwheel@3.0.30) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -452,8 +440,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.29 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.28...@spectrum-css/colorwheel@3.0.29) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.28...@spectrum-css/colorwheel@3.0.29) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -461,8 +448,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.28 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.27...@spectrum-css/colorwheel@3.0.28) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.27...@spectrum-css/colorwheel@3.0.28) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -470,8 +456,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.27 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.26...@spectrum-css/colorwheel@3.0.27) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.26...@spectrum-css/colorwheel@3.0.27) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -479,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.26 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.25...@spectrum-css/colorwheel@3.0.26) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.25...@spectrum-css/colorwheel@3.0.26) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -488,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.25 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.24...@spectrum-css/colorwheel@3.0.25) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.24...@spectrum-css/colorwheel@3.0.25) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -497,8 +480,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.24 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.23...@spectrum-css/colorwheel@3.0.24) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.23...@spectrum-css/colorwheel@3.0.24) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -506,8 +488,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.23 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.22...@spectrum-css/colorwheel@3.0.23) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.22...@spectrum-css/colorwheel@3.0.23) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -515,8 +496,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.22 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.21...@spectrum-css/colorwheel@3.0.22) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.21...@spectrum-css/colorwheel@3.0.22) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -524,8 +504,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.21 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.20...@spectrum-css/colorwheel@3.0.21) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.20...@spectrum-css/colorwheel@3.0.21) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -533,8 +512,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.20 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.19...@spectrum-css/colorwheel@3.0.20) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.19...@spectrum-css/colorwheel@3.0.20) ### 🐛 Bug fixes @@ -544,8 +522,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.19 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.18...@spectrum-css/colorwheel@3.0.19) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.18...@spectrum-css/colorwheel@3.0.19) **Note:** Version bump only for package @spectrum-css/colorwheel @@ -553,8 +530,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.18 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.17...@spectrum-css/colorwheel@3.0.18) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/colorwheel@3.0.17...@spectrum-css/colorwheel@3.0.18) **Note:** Version bump only for package @spectrum-css/colorwheel diff --git a/components/colorwheel/dist/metadata.json b/components/colorwheel/dist/metadata.json index c321e1aca27..07c9f09723f 100644 --- a/components/colorwheel/dist/metadata.json +++ b/components/colorwheel/dist/metadata.json @@ -50,7 +50,6 @@ "--spectrum-disabled-background-color", "--spectrum-transparent-black-300" ], - "system-theme": ["--system-color-wheel-border-color"], "passthroughs": [], "high-contrast": [ "--highcontrast-colorwheel-border-color-disabled", diff --git a/components/colorwheel/index.css b/components/colorwheel/index.css index e44d21045f0..fe4b7865baf 100644 --- a/components/colorwheel/index.css +++ b/components/colorwheel/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - /* Windows High Contrast Mode */ @media (forced-colors: active) { .spectrum-ColorWheel { @@ -24,9 +22,12 @@ } .spectrum-ColorWheel { + --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-300); + --spectrum-colorwheel-width: var(--mod-colorwheel-width, var(--spectrum-color-wheel-width)); --spectrum-colorwheel-height: var(--mod-colorwheel-height, var(--spectrum-color-wheel-width)); --spectrum-colorwheel-fill-color-disabled: var(--mod-colorwheel-fill-color-disabled, var(--spectrum-disabled-background-color)); + --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-300); --spectrum-colorwheel-border-width: var(--mod-colorwheel-border-width, var(--spectrum-border-width-100)); --spectrum-colorwheel-track-width: var(--mod-colorwheel-track-width, var(--spectrum-color-control-track-width)); diff --git a/components/colorwheel/package.json b/components/colorwheel/package.json index 61b068edc58..1b2b6835be5 100644 --- a/components/colorwheel/package.json +++ b/components/colorwheel/package.json @@ -28,7 +28,7 @@ "@spectrum-css/colorarea": ">=5", "@spectrum-css/colorhandle": ">=8", "@spectrum-css/colorloupe": ">=5", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/colorarea": { @@ -42,11 +42,7 @@ "@spectrum-css/colorarea": "7.0.1", "@spectrum-css/colorhandle": "10.0.1", "@spectrum-css/colorloupe": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/colorwheel/stories/template.js b/components/colorwheel/stories/template.js index 851150ffd37..1d02f5e7823 100644 --- a/components/colorwheel/stories/template.js +++ b/components/colorwheel/stories/template.js @@ -5,9 +5,6 @@ import { classMap } from "lit/directives/class-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-ColorWheel", diff --git a/components/colorwheel/themes/express.css b/components/colorwheel/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/colorwheel/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/colorwheel/themes/spectrum-two.css b/components/colorwheel/themes/spectrum-two.css deleted file mode 100644 index b80c228ebb8..00000000000 --- a/components/colorwheel/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ColorWheel { - --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-300); - } -} diff --git a/components/colorwheel/themes/spectrum.css b/components/colorwheel/themes/spectrum.css deleted file mode 100644 index 9c47a280a66..00000000000 --- a/components/colorwheel/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ColorWheel { - --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-200); - } -} diff --git a/components/combobox/CHANGELOG.md b/components/combobox/CHANGELOG.md index ded2bdc8e8c..a17f87767eb 100644 --- a/components/combobox/CHANGELOG.md +++ b/components/combobox/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 4.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`6b41b50`](https://github.com/adobe/spectrum-css/commit/6b41b501768da3db70ae00f6097646583f8fbd01) Thanks [@pfulton](https://github.com/pfulton)! - Restores missing custom properties that were flagged by the linter. The missing properties were copied from the spectrum two theme files in the foundations branch. This clears up all linter errors and warnings for these components. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f), [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/textfield@7.3.1-next.0 + - @spectrum-css/popover@8.0.0-next.1 + - @spectrum-css/menu@8.0.0-next.1 + - @spectrum-css/pickerbutton@6.0.0-next.1 + +## 4.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/pickerbutton@6.0.0-next.0 + - @spectrum-css/menu@8.0.0-next.0 + ## 4.0.1 ### Patch Changes @@ -186,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.6...@spectrum-css/combobox@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.6...@spectrum-css/combobox@3.0.0) ### ✨ Features @@ -195,11 +217,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -207,8 +227,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.5...@spectrum-css/combobox@2.1.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.5...@spectrum-css/combobox@2.1.6) **Note:** Version bump only for package @spectrum-css/combobox @@ -216,8 +235,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.4...@spectrum-css/combobox@2.1.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.4...@spectrum-css/combobox@2.1.5) **Note:** Version bump only for package @spectrum-css/combobox @@ -225,8 +243,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.3...@spectrum-css/combobox@2.1.4) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.3...@spectrum-css/combobox@2.1.4) **Note:** Version bump only for package @spectrum-css/combobox @@ -234,8 +251,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.3 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.2...@spectrum-css/combobox@2.1.3) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.2...@spectrum-css/combobox@2.1.3) **Note:** Version bump only for package @spectrum-css/combobox @@ -243,8 +259,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/combobox @@ -252,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.0...@spectrum-css/combobox@2.1.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.1.0...@spectrum-css/combobox@2.1.1) **Note:** Version bump only for package @spectrum-css/combobox @@ -261,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.48...@spectrum-css/combobox@2.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.48...@spectrum-css/combobox@2.1.0) **Note:** Version bump only for package @spectrum-css/combobox @@ -270,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.48 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.47...@spectrum-css/combobox@2.0.48) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.47...@spectrum-css/combobox@2.0.48) **Note:** Version bump only for package @spectrum-css/combobox @@ -279,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.47 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.46...@spectrum-css/combobox@2.0.47) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.46...@spectrum-css/combobox@2.0.47) **Note:** Version bump only for package @spectrum-css/combobox @@ -288,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.46 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.45...@spectrum-css/combobox@2.0.46) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.45...@spectrum-css/combobox@2.0.46) **Note:** Version bump only for package @spectrum-css/combobox @@ -297,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.45 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.43...@spectrum-css/combobox@2.0.45) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.43...@spectrum-css/combobox@2.0.45) **Note:** Version bump only for package @spectrum-css/combobox @@ -306,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.44 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.43...@spectrum-css/combobox@2.0.44) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.43...@spectrum-css/combobox@2.0.44) **Note:** Version bump only for package @spectrum-css/combobox @@ -315,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.43 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.42...@spectrum-css/combobox@2.0.43) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.42...@spectrum-css/combobox@2.0.43) **Note:** Version bump only for package @spectrum-css/combobox @@ -324,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.42 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.41...@spectrum-css/combobox@2.0.42) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.41...@spectrum-css/combobox@2.0.42) **Note:** Version bump only for package @spectrum-css/combobox @@ -333,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.41 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.40...@spectrum-css/combobox@2.0.41) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.40...@spectrum-css/combobox@2.0.41) **Note:** Version bump only for package @spectrum-css/combobox @@ -342,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.40 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.39...@spectrum-css/combobox@2.0.40) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.39...@spectrum-css/combobox@2.0.40) **Note:** Version bump only for package @spectrum-css/combobox @@ -351,8 +355,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.39 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.38...@spectrum-css/combobox@2.0.39) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.38...@spectrum-css/combobox@2.0.39) **Note:** Version bump only for package @spectrum-css/combobox @@ -360,8 +363,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.38 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.37...@spectrum-css/combobox@2.0.38) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.37...@spectrum-css/combobox@2.0.38) **Note:** Version bump only for package @spectrum-css/combobox @@ -369,8 +371,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.37 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.36...@spectrum-css/combobox@2.0.37) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.36...@spectrum-css/combobox@2.0.37) **Note:** Version bump only for package @spectrum-css/combobox @@ -378,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.36 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.35...@spectrum-css/combobox@2.0.36) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.35...@spectrum-css/combobox@2.0.36) **Note:** Version bump only for package @spectrum-css/combobox @@ -387,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.35 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.34...@spectrum-css/combobox@2.0.35) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.34...@spectrum-css/combobox@2.0.35) **Note:** Version bump only for package @spectrum-css/combobox @@ -396,8 +395,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.34 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.33...@spectrum-css/combobox@2.0.34) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.33...@spectrum-css/combobox@2.0.34) **Note:** Version bump only for package @spectrum-css/combobox @@ -405,8 +403,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.33 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.32...@spectrum-css/combobox@2.0.33) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.32...@spectrum-css/combobox@2.0.33) **Note:** Version bump only for package @spectrum-css/combobox @@ -414,8 +411,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.32 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.31...@spectrum-css/combobox@2.0.32) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.31...@spectrum-css/combobox@2.0.32) ### 🔙 Reverts @@ -425,8 +421,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.31 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.30...@spectrum-css/combobox@2.0.31) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.30...@spectrum-css/combobox@2.0.31) **Note:** Version bump only for package @spectrum-css/combobox @@ -434,8 +429,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.30 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.28...@spectrum-css/combobox@2.0.30) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.28...@spectrum-css/combobox@2.0.30) **Note:** Version bump only for package @spectrum-css/combobox @@ -443,8 +437,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.29 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.28...@spectrum-css/combobox@2.0.29) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.28...@spectrum-css/combobox@2.0.29) **Note:** Version bump only for package @spectrum-css/combobox @@ -452,8 +445,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.28 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.27...@spectrum-css/combobox@2.0.28) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.27...@spectrum-css/combobox@2.0.28) **Note:** Version bump only for package @spectrum-css/combobox @@ -461,8 +453,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.27 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.26...@spectrum-css/combobox@2.0.27) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.26...@spectrum-css/combobox@2.0.27) **Note:** Version bump only for package @spectrum-css/combobox @@ -470,8 +461,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.26 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.25...@spectrum-css/combobox@2.0.26) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.25...@spectrum-css/combobox@2.0.26) **Note:** Version bump only for package @spectrum-css/combobox @@ -479,8 +469,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.25 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.24...@spectrum-css/combobox@2.0.25) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.24...@spectrum-css/combobox@2.0.25) **Note:** Version bump only for package @spectrum-css/combobox @@ -488,8 +477,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.24 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.23...@spectrum-css/combobox@2.0.24) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.23...@spectrum-css/combobox@2.0.24) **Note:** Version bump only for package @spectrum-css/combobox @@ -497,8 +485,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.23 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.22...@spectrum-css/combobox@2.0.23) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.22...@spectrum-css/combobox@2.0.23) ### 🐛 Bug fixes @@ -508,8 +495,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.22 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.21...@spectrum-css/combobox@2.0.22) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.21...@spectrum-css/combobox@2.0.22) **Note:** Version bump only for package @spectrum-css/combobox @@ -517,8 +503,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.21 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.20...@spectrum-css/combobox@2.0.21) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.20...@spectrum-css/combobox@2.0.21) **Note:** Version bump only for package @spectrum-css/combobox @@ -526,8 +511,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.20 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.19...@spectrum-css/combobox@2.0.20) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.19...@spectrum-css/combobox@2.0.20) **Note:** Version bump only for package @spectrum-css/combobox @@ -535,8 +519,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.19 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.18...@spectrum-css/combobox@2.0.19) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.18...@spectrum-css/combobox@2.0.19) **Note:** Version bump only for package @spectrum-css/combobox @@ -544,8 +527,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.18 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.17...@spectrum-css/combobox@2.0.18) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.17...@spectrum-css/combobox@2.0.18) **Note:** Version bump only for package @spectrum-css/combobox @@ -553,8 +535,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.17 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.16...@spectrum-css/combobox@2.0.17) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.16...@spectrum-css/combobox@2.0.17) **Note:** Version bump only for package @spectrum-css/combobox @@ -562,8 +543,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.16 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.15...@spectrum-css/combobox@2.0.16) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.15...@spectrum-css/combobox@2.0.16) **Note:** Version bump only for package @spectrum-css/combobox @@ -571,8 +551,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.15 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.14...@spectrum-css/combobox@2.0.15) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.14...@spectrum-css/combobox@2.0.15) ### 🐛 Bug fixes @@ -582,8 +561,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.14 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.13...@spectrum-css/combobox@2.0.14) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.13...@spectrum-css/combobox@2.0.14) **Note:** Version bump only for package @spectrum-css/combobox @@ -591,8 +569,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.13 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.12...@spectrum-css/combobox@2.0.13) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/combobox@2.0.12...@spectrum-css/combobox@2.0.13) **Note:** Version bump only for package @spectrum-css/combobox diff --git a/components/combobox/dist/metadata.json b/components/combobox/dist/metadata.json index 97b38d5f400..9670d6e6997 100644 --- a/components/combobox/dist/metadata.json +++ b/components/combobox/dist/metadata.json @@ -18,7 +18,6 @@ ".spectrum-Combobox--quiet.spectrum-Combobox--sizeS", ".spectrum-Combobox--quiet.spectrum-Combobox--sizeXL", ".spectrum-Combobox--sizeL", - ".spectrum-Combobox--sizeM", ".spectrum-Combobox--sizeS", ".spectrum-Combobox--sizeXL", ".spectrum-Combobox-button", @@ -249,14 +248,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-combobox-background-color-disabled", - "--system-combobox-border-color-default", - "--system-combobox-border-color-focus", - "--system-combobox-border-color-focus-hover", - "--system-combobox-border-color-hover", - "--system-combobox-border-color-key-focus" - ], "passthroughs": [ "--mod-picker-button-background-color", "--mod-picker-button-background-color-disabled", diff --git a/components/combobox/index.css b/components/combobox/index.css index 524c396f88c..1c791073855 100644 --- a/components/combobox/index.css +++ b/components/combobox/index.css @@ -11,13 +11,16 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Combobox { - --spectrum-combobox-inline-size: var(--spectrum-field-width); + --spectrum-combobox-border-color-default: var(--spectrum-gray-500); + --spectrum-combobox-border-color-hover: var(--spectrum-gray-600); + --spectrum-combobox-border-color-focus: var(--spectrum-gray-800); + --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-900); + --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-800); + + --spectrum-combobox-background-color-disabled: var(--spectrum-gray-25); + --spectrum-combobox-block-size: var(--spectrum-component-height-100); - --spectrum-combobox-min-inline-size: calc(var(--spectrum-combo-box-minimum-width-multiplier) * var(--spectrum-combobox-block-size)); - --spectrum-combobox-button-width: var(--spectrum-combobox-block-size); --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-100); --spectrum-combobox-font-size: var(--spectrum-font-size-100); @@ -30,6 +33,10 @@ --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-100); --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-100); + --spectrum-combobox-inline-size: var(--spectrum-field-width); + --spectrum-combobox-min-inline-size: calc(var(--spectrum-combo-box-minimum-width-multiplier) * var(--spectrum-combobox-block-size)); + --spectrum-combobox-button-width: var(--spectrum-combobox-block-size); + --spectrum-combobox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-combobox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); --spectrum-combobox-focus-indicator-color: var(--spectrum-focus-indicator-color); @@ -42,6 +49,14 @@ --spectrum-combobox-font-style: var(--spectrum-default-font-style); --spectrum-combobox-line-height: var(--spectrum-line-height-100); + --spectrum-combobox-background-color-disabled: var(--spectrum-gray-25); + + --spectrum-combobox-border-color-default: var(--spectrum-gray-500); + --spectrum-combobox-border-color-hover: var(--spectrum-gray-600); + --spectrum-combobox-border-color-focus: var(--spectrum-gray-800); + --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-900); + --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-800); + --spectrum-combobox-border-color-invalid-default: var(--spectrum-negative-border-color-default); --spectrum-combobox-border-color-invalid-hover: var(--spectrum-negative-border-color-hover); --spectrum-combobox-border-color-invalid-focus: var(--spectrum-negative-border-color-focus); @@ -100,22 +115,6 @@ --spectrum-combobox-border-color-disabled: var(--spectrum-disabled-border-color); } -.spectrum-Combobox, -.spectrum-Combobox--sizeM { - --spectrum-combobox-block-size: var(--spectrum-component-height-100); - --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-combobox-font-size: var(--spectrum-font-size-100); - - --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-medium); - --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-medium); - --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-medium); - --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-medium); - --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-100); - --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-100); - --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-100); -} - .spectrum-Combobox--sizeS { --spectrum-combobox-block-size: var(--spectrum-component-height-75); --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-75); @@ -167,8 +166,13 @@ --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-field-edge-to-text-quiet); --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-medium); --spectrum-combobox-button-inline-offset: calc((var(--mod-combobox-block-size, var(--spectrum-combobox-block-size)) / 2) - (var(--mod-combobox-icon-size, var(--spectrum-combobox-icon-size)) / 2)); + --mod-textfield-border-color-disabled: var(--mod-combobox-border-color-disabled, initial); + /* Settings for nested Picker Button component. */ + --mod-picker-button-background-color-quiet: transparent; + --mod-picker-button-border-color-quiet: transparent; + &.spectrum-Combobox--sizeS { --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-small); } @@ -184,10 +188,6 @@ &.spectrum-Combobox--sizeXL { --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-extra-large); } - - /* Settings for nested Picker Button component. */ - --mod-picker-button-background-color-quiet: transparent; - --mod-picker-button-border-color-quiet: transparent; } @media (forced-colors: active) { diff --git a/components/combobox/package.json b/components/combobox/package.json index 1f6d29bb085..da348034cd3 100644 --- a/components/combobox/package.json +++ b/components/combobox/package.json @@ -27,10 +27,10 @@ "peerDependencies": { "@spectrum-css/menu": ">=7", "@spectrum-css/pickerbutton": ">=5", - "@spectrum-css/popover": ">=7", - "@spectrum-css/progresscircle": ">=3", + "@spectrum-css/popover": ">=8", + "@spectrum-css/progresscircle": ">=5", "@spectrum-css/textfield": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/progresscircle": { @@ -43,11 +43,7 @@ "@spectrum-css/popover": "8.0.1", "@spectrum-css/progresscircle": "5.0.1", "@spectrum-css/textfield": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/combobox/stories/template.js b/components/combobox/stories/template.js index fe68d45cba9..f8cc0dbc1b1 100644 --- a/components/combobox/stories/template.js +++ b/components/combobox/stories/template.js @@ -10,9 +10,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; const Combobox = ({ rootClass = "spectrum-Combobox", @@ -66,7 +63,7 @@ const Combobox = ({ ], customInputClasses: [`${rootClass}-input`], isLoading, - customProgressCircleClasses: ["spectrum-Combobox-progress-circle"], + customInfieldProgressCircleClasses: ["spectrum-Combobox-progress-circle"], name: "field", isReadOnly, value, diff --git a/components/combobox/themes/express.css b/components/combobox/themes/express.css deleted file mode 100644 index 4b554c207db..00000000000 --- a/components/combobox/themes/express.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Combobox { - --spectrum-combobox-border-color-default: var(--spectrum-gray-400); - --spectrum-combobox-border-color-hover: var(--spectrum-gray-500); - --spectrum-combobox-border-color-focus: var(--spectrum-gray-900); - --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-800); - --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-900); - } -} diff --git a/components/combobox/themes/spectrum-two.css b/components/combobox/themes/spectrum-two.css deleted file mode 100644 index 2e6ae242055..00000000000 --- a/components/combobox/themes/spectrum-two.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Combobox { - --spectrum-combobox-border-color-default: var(--spectrum-gray-500); - --spectrum-combobox-border-color-hover: var(--spectrum-gray-600); - --spectrum-combobox-border-color-focus: var(--spectrum-gray-800); - --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-800); - - --spectrum-combobox-background-color-disabled: var(--spectrum-gray-25); - } -} diff --git a/components/combobox/themes/spectrum.css b/components/combobox/themes/spectrum.css deleted file mode 100644 index 4e5bd9ece62..00000000000 --- a/components/combobox/themes/spectrum.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: spectrum) { - .spectrum-Combobox { - --spectrum-combobox-border-color-focus: var(--spectrum-gray-500); - --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-600); - --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-600); - - --spectrum-combobox-background-color-disabled: var(--spectrum-disabled-background-color); - } -} diff --git a/components/commons/CHANGELOG.md b/components/commons/CHANGELOG.md index c6d94113555..0cdd3a89940 100644 --- a/components/commons/CHANGELOG.md +++ b/components/commons/CHANGELOG.md @@ -61,8 +61,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 10.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.1.2...@spectrum-css/commons@10.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.1.2...@spectrum-css/commons@10.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -78,8 +77,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.1.1...@spectrum-css/commons@9.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.1.1...@spectrum-css/commons@9.1.2) **Note:** Version bump only for package @spectrum-css/commons @@ -87,8 +85,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/commons @@ -96,8 +93,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.2...@spectrum-css/commons@9.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.2...@spectrum-css/commons@9.1.0) ### ✨ Features @@ -111,8 +107,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.2 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.1...@spectrum-css/commons@9.0.2) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.1...@spectrum-css/commons@9.0.2) **Note:** Version bump only for package @spectrum-css/commons @@ -120,8 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.0...@spectrum-css/commons@9.0.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@9.0.0...@spectrum-css/commons@9.0.1) **Note:** Version bump only for package @spectrum-css/commons @@ -129,8 +123,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@8.0.1...@spectrum-css/commons@9.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@8.0.1...@spectrum-css/commons@9.0.0) \*feat(overlay)!: migrate to spectrum-tokens (#2165)([0331dae](https://github.com/adobe/spectrum-css/commit/0331dae)), closes[#2165](https://github.com/adobe/spectrum-css/issues/2165) @@ -148,8 +141,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@8.0.0...@spectrum-css/commons@8.0.1) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@8.0.0...@spectrum-css/commons@8.0.1) **Note:** Version bump only for package @spectrum-css/commons @@ -157,8 +149,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.8...@spectrum-css/commons@8.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.8...@spectrum-css/commons@8.0.0) \*refactor(button)!: replace focus-ring with focus-visible([5ec4849](https://github.com/adobe/spectrum-css/commit/5ec4849)) @@ -172,8 +163,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.7...@spectrum-css/commons@7.0.8) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.7...@spectrum-css/commons@7.0.8) ### 🐛 Bug fixes @@ -183,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.6...@spectrum-css/commons@7.0.7) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/commons@7.0.6...@spectrum-css/commons@7.0.7) **Note:** Version bump only for package @spectrum-css/commons diff --git a/components/commons/basebutton.css b/components/commons/basebutton.css index fa015bc145f..ca0caa6bba2 100644 --- a/components/commons/basebutton.css +++ b/components/commons/basebutton.css @@ -29,39 +29,40 @@ /* Remove button the margin in Firefox and Safari. */ margin: 0; - /* @deprecation --mod-sans-font-family-stack has been renamed and will be removed in a future version. */ - font-family: var(--mod-button-font-family, var(--mod-sans-font-family-stack, var(--spectrum-sans-font-family-stack))); + font-family: var(--mod-button-font-family, var(--spectrum-sans-font-family-stack)); + + /* Adjacent buttons should be aligned correctly */ + vertical-align: top; -webkit-font-smoothing: antialiased; /* Font smoothing for Firefox */ -moz-osx-font-smoothing: grayscale; - /* @deprecation --mod-line-height-100 has been renamed and will be removed in a future version. */ - line-height: var(--mod-button-line-height, var(--mod-line-height-100, var(--spectrum-line-height-100))); + line-height: var(--mod-button-line-height, var(--spectrum-line-height-100)); text-decoration: none; /* Remove the inheritance of text transform on button in Edge, Firefox, and IE. */ text-transform: none; - /* Adjacent buttons should be aligned correctly */ - vertical-align: top; - /* stylelint-disable-next-line property-no-vendor-prefix -- Correct the inability to style clickable types in iOS and Safari (normalize). */ -webkit-appearance: button; - border-style: solid; - transition: - background var(--mod-button-animation-duration, var(--mod-animation-duration-100, var(--spectrum-animation-duration-100))) ease-out, - border-color var(--mod-button-animation-duration, var(--mod-animation-duration-100, var(--spectrum-animation-duration-100))) ease-out, - color var(--mod-button-animation-duration, var(--mod-animation-duration-100, var(--spectrum-animation-duration-100))) ease-out, - box-shadow var(--mod-button-animation-duration, var(--mod-animation-duration-100, var(--spectrum-animation-duration-100))) ease-out; + background var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + border-color var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + color var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + box-shadow var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out; /* Fix Firefox */ &::-moz-focus-inner { - border-style: none; + margin-block-start: -2px; + margin-block-end: -2px; padding: 0; + border: 0; + + /* Remove the inner border and padding for button in Firefox. */ + border-style: none; } &:focus { @@ -90,12 +91,11 @@ inset-inline-end: 0; display: block; - - margin: calc(-1 * var(--mod-button-focus-indicator-gap, var(--spectrum-focus-indicator-gap))); + margin: calc(var(--mod-button-focus-indicator-gap, var(--spectrum-focus-indicator-gap)) * -1); transition: - opacity var(--mod-button-animation-duration, var(--mod-button-animation-duration, var(--spectrum-animation-duration-100))) ease-out, - margin var(--mod-button-animation-duration, var(--mod-button-animation-duration, var(--spectrum-animation-duration-100))) ease-out; + opacity var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out, + margin var(--mod-button-animation-duration, var(--spectrum-animation-duration-100)) ease-out; } &:focus-visible::after { diff --git a/components/commons/package.json b/components/commons/package.json index 90e475587c3..cb212c863ca 100644 --- a/components/commons/package.json +++ b/components/commons/package.json @@ -27,10 +27,10 @@ "package.json" ], "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "workspace:^" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/contextualhelp/CHANGELOG.md b/components/contextualhelp/CHANGELOG.md index 5a09b81b5eb..34c3d64783b 100644 --- a/components/contextualhelp/CHANGELOG.md +++ b/components/contextualhelp/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 4.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + ## 5.0.1 ### Patch Changes @@ -172,16 +180,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.5...@spectrum-css/contextualhelp@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.5...@spectrum-css/contextualhelp@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -189,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.4...@spectrum-css/contextualhelp@2.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.4...@spectrum-css/contextualhelp@2.1.5) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -198,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.3...@spectrum-css/contextualhelp@2.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.3...@spectrum-css/contextualhelp@2.1.4) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -207,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.2...@spectrum-css/contextualhelp@2.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.2...@spectrum-css/contextualhelp@2.1.3) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -216,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.1...@spectrum-css/contextualhelp@2.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.1.1...@spectrum-css/contextualhelp@2.1.2) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -225,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -234,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.45...@spectrum-css/contextualhelp@2.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.45...@spectrum-css/contextualhelp@2.1.0) ### ✨ Features @@ -245,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.45 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.44...@spectrum-css/contextualhelp@2.0.45) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.44...@spectrum-css/contextualhelp@2.0.45) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -254,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.44 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.43...@spectrum-css/contextualhelp@2.0.44) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.43...@spectrum-css/contextualhelp@2.0.44) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -263,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.43 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.41...@spectrum-css/contextualhelp@2.0.43) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.41...@spectrum-css/contextualhelp@2.0.43) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -272,8 +268,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.42 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.41...@spectrum-css/contextualhelp@2.0.42) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.41...@spectrum-css/contextualhelp@2.0.42) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -281,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.41 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.40...@spectrum-css/contextualhelp@2.0.41) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.40...@spectrum-css/contextualhelp@2.0.41) ### 🐛 Bug fixes @@ -292,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.40 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.39...@spectrum-css/contextualhelp@2.0.40) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.39...@spectrum-css/contextualhelp@2.0.40) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -301,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.39 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.38...@spectrum-css/contextualhelp@2.0.39) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.38...@spectrum-css/contextualhelp@2.0.39) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -310,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.38 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.37...@spectrum-css/contextualhelp@2.0.38) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.37...@spectrum-css/contextualhelp@2.0.38) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -319,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.37 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.36...@spectrum-css/contextualhelp@2.0.37) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.36...@spectrum-css/contextualhelp@2.0.37) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -328,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.36 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.35...@spectrum-css/contextualhelp@2.0.36) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.35...@spectrum-css/contextualhelp@2.0.36) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -337,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.35 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.34...@spectrum-css/contextualhelp@2.0.35) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.34...@spectrum-css/contextualhelp@2.0.35) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -346,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.34 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.33...@spectrum-css/contextualhelp@2.0.34) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.33...@spectrum-css/contextualhelp@2.0.34) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -355,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.33 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.32...@spectrum-css/contextualhelp@2.0.33) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.32...@spectrum-css/contextualhelp@2.0.33) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -364,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.32 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.31...@spectrum-css/contextualhelp@2.0.32) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.31...@spectrum-css/contextualhelp@2.0.32) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -373,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.31 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.30...@spectrum-css/contextualhelp@2.0.31) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.30...@spectrum-css/contextualhelp@2.0.31) ### 🔙 Reverts @@ -384,8 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.30 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.29...@spectrum-css/contextualhelp@2.0.30) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.29...@spectrum-css/contextualhelp@2.0.30) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -393,8 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.29 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.27...@spectrum-css/contextualhelp@2.0.29) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.27...@spectrum-css/contextualhelp@2.0.29) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -402,8 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.28 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.27...@spectrum-css/contextualhelp@2.0.28) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.27...@spectrum-css/contextualhelp@2.0.28) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -411,8 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.27 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.26...@spectrum-css/contextualhelp@2.0.27) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.26...@spectrum-css/contextualhelp@2.0.27) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -420,8 +400,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.26 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.25...@spectrum-css/contextualhelp@2.0.26) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.25...@spectrum-css/contextualhelp@2.0.26) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -429,8 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.25 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.24...@spectrum-css/contextualhelp@2.0.25) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.24...@spectrum-css/contextualhelp@2.0.25) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -438,8 +416,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.24 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.23...@spectrum-css/contextualhelp@2.0.24) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.23...@spectrum-css/contextualhelp@2.0.24) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -447,8 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.23 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.22...@spectrum-css/contextualhelp@2.0.23) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.22...@spectrum-css/contextualhelp@2.0.23) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -456,8 +432,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.22 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.21...@spectrum-css/contextualhelp@2.0.22) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.21...@spectrum-css/contextualhelp@2.0.22) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -465,8 +440,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.21 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.20...@spectrum-css/contextualhelp@2.0.21) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.20...@spectrum-css/contextualhelp@2.0.21) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -474,8 +448,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.20 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.19...@spectrum-css/contextualhelp@2.0.20) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.19...@spectrum-css/contextualhelp@2.0.20) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -483,8 +456,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.19 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.18...@spectrum-css/contextualhelp@2.0.19) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.18...@spectrum-css/contextualhelp@2.0.19) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -492,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.18 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.17...@spectrum-css/contextualhelp@2.0.18) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.17...@spectrum-css/contextualhelp@2.0.18) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -501,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.17 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.16...@spectrum-css/contextualhelp@2.0.17) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.16...@spectrum-css/contextualhelp@2.0.17) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -510,8 +480,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.16 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.15...@spectrum-css/contextualhelp@2.0.16) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.15...@spectrum-css/contextualhelp@2.0.16) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -519,8 +488,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.15 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.14...@spectrum-css/contextualhelp@2.0.15) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.14...@spectrum-css/contextualhelp@2.0.15) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -528,8 +496,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.14 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.13...@spectrum-css/contextualhelp@2.0.14) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.13...@spectrum-css/contextualhelp@2.0.14) ### 🐛 Bug fixes @@ -539,8 +506,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.13 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.12...@spectrum-css/contextualhelp@2.0.13) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.12...@spectrum-css/contextualhelp@2.0.13) **Note:** Version bump only for package @spectrum-css/contextualhelp @@ -548,8 +514,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.12 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.11...@spectrum-css/contextualhelp@2.0.12) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/contextualhelp@2.0.11...@spectrum-css/contextualhelp@2.0.12) **Note:** Version bump only for package @spectrum-css/contextualhelp diff --git a/components/contextualhelp/dist/metadata.json b/components/contextualhelp/dist/metadata.json index 71d3220dc75..a65b12747bf 100644 --- a/components/contextualhelp/dist/metadata.json +++ b/components/contextualhelp/dist/metadata.json @@ -30,7 +30,6 @@ "--spectrum-spacing-300", "--spectrum-spacing-400" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-contextual-help-body-color", diff --git a/components/contextualhelp/package.json b/components/contextualhelp/package.json index 5d7207386fc..fd3b18786e3 100644 --- a/components/contextualhelp/package.json +++ b/components/contextualhelp/package.json @@ -25,10 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/link": ">=5", - "@spectrum-css/popover": ">=7", - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/link": ">=7", + "@spectrum-css/popover": ">=8", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/link": { @@ -39,11 +39,7 @@ "@spectrum-css/actionbutton": "7.0.1", "@spectrum-css/link": "7.0.1", "@spectrum-css/popover": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/datepicker/CHANGELOG.md b/components/datepicker/CHANGELOG.md index a4a61b40889..44b53f720e3 100644 --- a/components/datepicker/CHANGELOG.md +++ b/components/datepicker/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 4.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f), [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/textfield@7.3.1-next.0 + - @spectrum-css/popover@8.0.0-next.1 + - @spectrum-css/pickerbutton@6.0.0-next.1 + - @spectrum-css/calendar@5.3.1-next.0 + +## 4.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/pickerbutton@6.0.0-next.0 + ## 4.0.1 ### Patch Changes @@ -189,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.4...@spectrum-css/datepicker@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.4...@spectrum-css/datepicker@3.0.0) ### ✨ Features @@ -198,11 +219,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -210,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.3...@spectrum-css/datepicker@2.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.3...@spectrum-css/datepicker@2.1.4) **Note:** Version bump only for package @spectrum-css/datepicker @@ -219,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.2...@spectrum-css/datepicker@2.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.2...@spectrum-css/datepicker@2.1.3) **Note:** Version bump only for package @spectrum-css/datepicker @@ -228,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.1...@spectrum-css/datepicker@2.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.1.1...@spectrum-css/datepicker@2.1.2) **Note:** Version bump only for package @spectrum-css/datepicker @@ -237,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/datepicker @@ -246,8 +261,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.5...@spectrum-css/datepicker@2.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.5...@spectrum-css/datepicker@2.1.0) **Note:** Version bump only for package @spectrum-css/datepicker @@ -255,8 +269,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.5 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.4...@spectrum-css/datepicker@2.0.5) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.4...@spectrum-css/datepicker@2.0.5) **Note:** Version bump only for package @spectrum-css/datepicker @@ -264,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.3...@spectrum-css/datepicker@2.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.3...@spectrum-css/datepicker@2.0.4) **Note:** Version bump only for package @spectrum-css/datepicker @@ -273,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.2...@spectrum-css/datepicker@2.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.2...@spectrum-css/datepicker@2.0.3) **Note:** Version bump only for package @spectrum-css/datepicker @@ -282,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.0...@spectrum-css/datepicker@2.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.0...@spectrum-css/datepicker@2.0.2) **Note:** Version bump only for package @spectrum-css/datepicker @@ -291,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.0...@spectrum-css/datepicker@2.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@2.0.0...@spectrum-css/datepicker@2.0.1) **Note:** Version bump only for package @spectrum-css/datepicker @@ -300,13 +309,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.55...@spectrum-css/datepicker@2.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.55...@spectrum-css/datepicker@2.0.0) \*refactor(datepicker)!: migrate to use spectrum-tokens (#2185)([7de0da2](https://github.com/adobe/spectrum-css/commit/7de0da2)), closes[#2185](https://github.com/adobe/spectrum-css/issues/2185) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates DatePicker to use `@adobe/spectrum-tokens` @@ -381,8 +388,7 @@ Additionally: ## 1.0.55 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.54...@spectrum-css/datepicker@1.0.55) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.54...@spectrum-css/datepicker@1.0.55) **Note:** Version bump only for package @spectrum-css/datepicker @@ -390,8 +396,7 @@ Additionally: ## 1.0.54 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.53...@spectrum-css/datepicker@1.0.54) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.53...@spectrum-css/datepicker@1.0.54) **Note:** Version bump only for package @spectrum-css/datepicker @@ -399,8 +404,7 @@ Additionally: ## 1.0.53 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.52...@spectrum-css/datepicker@1.0.53) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.52...@spectrum-css/datepicker@1.0.53) **Note:** Version bump only for package @spectrum-css/datepicker @@ -408,8 +412,7 @@ Additionally: ## 1.0.52 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.51...@spectrum-css/datepicker@1.0.52) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.51...@spectrum-css/datepicker@1.0.52) **Note:** Version bump only for package @spectrum-css/datepicker @@ -417,8 +420,7 @@ Additionally: ## 1.0.51 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.50...@spectrum-css/datepicker@1.0.51) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.50...@spectrum-css/datepicker@1.0.51) **Note:** Version bump only for package @spectrum-css/datepicker @@ -426,8 +428,7 @@ Additionally: ## 1.0.50 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.49...@spectrum-css/datepicker@1.0.50) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.49...@spectrum-css/datepicker@1.0.50) **Note:** Version bump only for package @spectrum-css/datepicker @@ -435,8 +436,7 @@ Additionally: ## 1.0.49 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.48...@spectrum-css/datepicker@1.0.49) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.48...@spectrum-css/datepicker@1.0.49) **Note:** Version bump only for package @spectrum-css/datepicker @@ -444,8 +444,7 @@ Additionally: ## 1.0.48 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.47...@spectrum-css/datepicker@1.0.48) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.47...@spectrum-css/datepicker@1.0.48) **Note:** Version bump only for package @spectrum-css/datepicker @@ -453,8 +452,7 @@ Additionally: ## 1.0.47 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.46...@spectrum-css/datepicker@1.0.47) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.46...@spectrum-css/datepicker@1.0.47) **Note:** Version bump only for package @spectrum-css/datepicker @@ -462,8 +460,7 @@ Additionally: ## 1.0.46 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.45...@spectrum-css/datepicker@1.0.46) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.45...@spectrum-css/datepicker@1.0.46) **Note:** Version bump only for package @spectrum-css/datepicker @@ -471,8 +468,7 @@ Additionally: ## 1.0.45 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.44...@spectrum-css/datepicker@1.0.45) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.44...@spectrum-css/datepicker@1.0.45) ### 🔙 Reverts @@ -482,8 +478,7 @@ Additionally: ## 1.0.44 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.43...@spectrum-css/datepicker@1.0.44) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.43...@spectrum-css/datepicker@1.0.44) **Note:** Version bump only for package @spectrum-css/datepicker @@ -491,8 +486,7 @@ Additionally: ## 1.0.43 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.41...@spectrum-css/datepicker@1.0.43) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.41...@spectrum-css/datepicker@1.0.43) **Note:** Version bump only for package @spectrum-css/datepicker @@ -500,8 +494,7 @@ Additionally: ## 1.0.42 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.41...@spectrum-css/datepicker@1.0.42) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.41...@spectrum-css/datepicker@1.0.42) **Note:** Version bump only for package @spectrum-css/datepicker @@ -509,8 +502,7 @@ Additionally: ## 1.0.41 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.40...@spectrum-css/datepicker@1.0.41) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.40...@spectrum-css/datepicker@1.0.41) **Note:** Version bump only for package @spectrum-css/datepicker @@ -518,8 +510,7 @@ Additionally: ## 1.0.40 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.39...@spectrum-css/datepicker@1.0.40) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.39...@spectrum-css/datepicker@1.0.40) **Note:** Version bump only for package @spectrum-css/datepicker @@ -527,8 +518,7 @@ Additionally: ## 1.0.39 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.38...@spectrum-css/datepicker@1.0.39) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.38...@spectrum-css/datepicker@1.0.39) **Note:** Version bump only for package @spectrum-css/datepicker @@ -536,8 +526,7 @@ Additionally: ## 1.0.38 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.37...@spectrum-css/datepicker@1.0.38) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.37...@spectrum-css/datepicker@1.0.38) **Note:** Version bump only for package @spectrum-css/datepicker @@ -545,8 +534,7 @@ Additionally: ## 1.0.37 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.36...@spectrum-css/datepicker@1.0.37) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.36...@spectrum-css/datepicker@1.0.37) **Note:** Version bump only for package @spectrum-css/datepicker @@ -554,8 +542,7 @@ Additionally: ## 1.0.36 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.35...@spectrum-css/datepicker@1.0.36) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.35...@spectrum-css/datepicker@1.0.36) **Note:** Version bump only for package @spectrum-css/datepicker @@ -563,8 +550,7 @@ Additionally: ## 1.0.35 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.34...@spectrum-css/datepicker@1.0.35) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.34...@spectrum-css/datepicker@1.0.35) **Note:** Version bump only for package @spectrum-css/datepicker @@ -572,8 +558,7 @@ Additionally: ## 1.0.34 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.33...@spectrum-css/datepicker@1.0.34) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.33...@spectrum-css/datepicker@1.0.34) **Note:** Version bump only for package @spectrum-css/datepicker @@ -581,8 +566,7 @@ Additionally: ## 1.0.33 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.32...@spectrum-css/datepicker@1.0.33) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.32...@spectrum-css/datepicker@1.0.33) **Note:** Version bump only for package @spectrum-css/datepicker @@ -590,8 +574,7 @@ Additionally: ## 1.0.32 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.31...@spectrum-css/datepicker@1.0.32) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.31...@spectrum-css/datepicker@1.0.32) **Note:** Version bump only for package @spectrum-css/datepicker @@ -599,8 +582,7 @@ Additionally: ## 1.0.31 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.30...@spectrum-css/datepicker@1.0.31) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.30...@spectrum-css/datepicker@1.0.31) **Note:** Version bump only for package @spectrum-css/datepicker @@ -608,8 +590,7 @@ Additionally: ## 1.0.30 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.29...@spectrum-css/datepicker@1.0.30) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.29...@spectrum-css/datepicker@1.0.30) **Note:** Version bump only for package @spectrum-css/datepicker @@ -617,8 +598,7 @@ Additionally: ## 1.0.29 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.28...@spectrum-css/datepicker@1.0.29) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.28...@spectrum-css/datepicker@1.0.29) **Note:** Version bump only for package @spectrum-css/datepicker @@ -626,8 +606,7 @@ Additionally: ## 1.0.28 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.27...@spectrum-css/datepicker@1.0.28) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.27...@spectrum-css/datepicker@1.0.28) ### 🐛 Bug fixes @@ -637,8 +616,7 @@ Additionally: ## 1.0.27 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.26...@spectrum-css/datepicker@1.0.27) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.26...@spectrum-css/datepicker@1.0.27) **Note:** Version bump only for package @spectrum-css/datepicker @@ -646,8 +624,7 @@ Additionally: ## 1.0.26 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.25...@spectrum-css/datepicker@1.0.26) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/datepicker@1.0.25...@spectrum-css/datepicker@1.0.26) **Note:** Version bump only for package @spectrum-css/datepicker diff --git a/components/datepicker/dist/metadata.json b/components/datepicker/dist/metadata.json index f52f1b93cd6..cf8fffe86db 100644 --- a/components/datepicker/dist/metadata.json +++ b/components/datepicker/dist/metadata.json @@ -140,7 +140,6 @@ "--spectrum-text-to-visual-100", "--spectrum-workflow-icon-size-100" ], - "system-theme": ["--system-date-picker-initial-height"], "passthroughs": [ "--mod-picker-button-background-color", "--mod-picker-button-background-color-hover-disabled", diff --git a/components/datepicker/index.css b/components/datepicker/index.css index 7b20a28ae6b..2c6cd24fc1f 100644 --- a/components/datepicker/index.css +++ b/components/datepicker/index.css @@ -11,13 +11,14 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-DatePicker { + --spectrum-datepicker-initial-height: var(--spectrum-component-height-100); + --spectrum-datepicker-border-radius: var(--mod-datepicker-border-radius, var(--spectrum-corner-radius-100)); --spectrum-datepicker-border-radius-quiet: var(--mod-datepicker-border-radius-quiet, 0); --spectrum-datepicker-border-width: var(--spectrum-border-width-100); --spectrum-datepicker-min-width: var(--mod-datepicker-min-width, var(--spectrum-field-width)); + --spectrum-datepicker-initial-height: var(--spectrum-component-height-100); --spectrum-datepicker-icon-size: var(--spectrum-workflow-icon-size-100); /* button */ @@ -85,8 +86,10 @@ } &.is-invalid { + /* @passthrough start */ --mod-textfield-icon-spacing-inline-end-invalid: calc(var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-datepicker-invalid-icon-to-button)); --mod-textfield-icon-spacing-inline-end-quiet-invalid: calc(var(--spectrum-datepicker-pickerbutton-width-quiet) + var(--spectrum-datepicker-invalid-icon-to-button-quiet)); + /* @passthrough end */ } &:not(.spectrum-DatePicker--quiet, .is-disabled) { diff --git a/components/datepicker/package.json b/components/datepicker/package.json index 015f3462ebc..9ce5873a3d3 100644 --- a/components/datepicker/package.json +++ b/components/datepicker/package.json @@ -27,20 +27,16 @@ "peerDependencies": { "@spectrum-css/calendar": ">=5", "@spectrum-css/pickerbutton": ">=5", - "@spectrum-css/popover": ">=7", + "@spectrum-css/popover": ">=8", "@spectrum-css/textfield": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/calendar": "7.0.1", "@spectrum-css/pickerbutton": "6.0.1", "@spectrum-css/popover": "8.0.1", "@spectrum-css/textfield": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/datepicker/stories/template.js b/components/datepicker/stories/template.js index 2d56102d24e..eebb928df80 100644 --- a/components/datepicker/stories/template.js +++ b/components/datepicker/stories/template.js @@ -9,9 +9,6 @@ import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const DatePicker = ({ rootClass = "spectrum-DatePicker", diff --git a/components/datepicker/themes/express.css b/components/datepicker/themes/express.css deleted file mode 100644 index ead071e6f18..00000000000 --- a/components/datepicker/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-DatePicker { - --spectrum-datepicker-initial-height: var(--spectrum-component-height-75); - } -} diff --git a/components/datepicker/themes/spectrum-two.css b/components/datepicker/themes/spectrum-two.css deleted file mode 100644 index 05b3ca88ae4..00000000000 --- a/components/datepicker/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-DatePicker { - --spectrum-datepicker-initial-height: var(--spectrum-component-height-100); - } -} diff --git a/components/datepicker/themes/spectrum.css b/components/datepicker/themes/spectrum.css deleted file mode 100644 index 3d81bc564b5..00000000000 --- a/components/datepicker/themes/spectrum.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; diff --git a/components/dial/CHANGELOG.md b/components/dial/CHANGELOG.md index 8bd7ef371ed..09f44f1fb10 100644 --- a/components/dial/CHANGELOG.md +++ b/components/dial/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 3.2.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 5.0.1 ### Patch Changes @@ -128,16 +144,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.4...@spectrum-css/dial@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.4...@spectrum-css/dial@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -145,8 +158,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.3...@spectrum-css/dial@2.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.3...@spectrum-css/dial@2.2.4) **Note:** Version bump only for package @spectrum-css/dial @@ -154,8 +166,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.2...@spectrum-css/dial@2.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.2...@spectrum-css/dial@2.2.3) **Note:** Version bump only for package @spectrum-css/dial @@ -163,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.1...@spectrum-css/dial@2.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.2.1...@spectrum-css/dial@2.2.2) **Note:** Version bump only for package @spectrum-css/dial @@ -172,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/dial @@ -181,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.1.0...@spectrum-css/dial@2.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.1.0...@spectrum-css/dial@2.2.0) **Note:** Version bump only for package @spectrum-css/dial @@ -190,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.5...@spectrum-css/dial@2.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.5...@spectrum-css/dial@2.1.0) ### ✨ Features @@ -201,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.5 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.4...@spectrum-css/dial@2.0.5) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.4...@spectrum-css/dial@2.0.5) **Note:** Version bump only for package @spectrum-css/dial @@ -210,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.4 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.3...@spectrum-css/dial@2.0.4) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.3...@spectrum-css/dial@2.0.4) **Note:** Version bump only for package @spectrum-css/dial @@ -219,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.3 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.1...@spectrum-css/dial@2.0.3) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.1...@spectrum-css/dial@2.0.3) **Note:** Version bump only for package @spectrum-css/dial @@ -228,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.2 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.1...@spectrum-css/dial@2.0.2) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.1...@spectrum-css/dial@2.0.2) **Note:** Version bump only for package @spectrum-css/dial @@ -237,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.1 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.0...@spectrum-css/dial@2.0.1) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@2.0.0...@spectrum-css/dial@2.0.1) **Note:** Version bump only for package @spectrum-css/dial @@ -246,13 +248,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.55...@spectrum-css/dial@2.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.55...@spectrum-css/dial@2.0.0) \*feat(dial)!: migrate to use `@adobe/spectrum-tokens` (#1971)([f116b7e](https://github.com/adobe/spectrum-css/commit/f116b7e)), closes[#1971](https://github.com/adobe/spectrum-css/issues/1971) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates the Dial component to `@adobe/spectrum-tokens` @@ -295,8 +295,7 @@ Uses correct colors & removes duplicate properties ## 1.0.55 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.54...@spectrum-css/dial@1.0.55) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.54...@spectrum-css/dial@1.0.55) **Note:** Version bump only for package @spectrum-css/dial @@ -304,8 +303,7 @@ Uses correct colors & removes duplicate properties ## 1.0.54 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.53...@spectrum-css/dial@1.0.54) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.53...@spectrum-css/dial@1.0.54) ### 🔙 Reverts @@ -315,8 +313,7 @@ Uses correct colors & removes duplicate properties ## 1.0.53 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.52...@spectrum-css/dial@1.0.53) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.52...@spectrum-css/dial@1.0.53) **Note:** Version bump only for package @spectrum-css/dial @@ -324,8 +321,7 @@ Uses correct colors & removes duplicate properties ## 1.0.52 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.51...@spectrum-css/dial@1.0.52) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.51...@spectrum-css/dial@1.0.52) **Note:** Version bump only for package @spectrum-css/dial @@ -333,8 +329,7 @@ Uses correct colors & removes duplicate properties ## 1.0.51 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.50...@spectrum-css/dial@1.0.51) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.50...@spectrum-css/dial@1.0.51) **Note:** Version bump only for package @spectrum-css/dial @@ -342,8 +337,7 @@ Uses correct colors & removes duplicate properties ## 1.0.50 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.49...@spectrum-css/dial@1.0.50) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.49...@spectrum-css/dial@1.0.50) **Note:** Version bump only for package @spectrum-css/dial @@ -351,8 +345,7 @@ Uses correct colors & removes duplicate properties ## 1.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.48...@spectrum-css/dial@1.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.48...@spectrum-css/dial@1.0.49) **Note:** Version bump only for package @spectrum-css/dial @@ -360,8 +353,7 @@ Uses correct colors & removes duplicate properties ## 1.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.47...@spectrum-css/dial@1.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.47...@spectrum-css/dial@1.0.48) **Note:** Version bump only for package @spectrum-css/dial @@ -369,8 +361,7 @@ Uses correct colors & removes duplicate properties ## 1.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.46...@spectrum-css/dial@1.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.46...@spectrum-css/dial@1.0.47) ### 🐛 Bug fixes @@ -380,8 +371,7 @@ Uses correct colors & removes duplicate properties ## 1.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.45...@spectrum-css/dial@1.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.45...@spectrum-css/dial@1.0.46) **Note:** Version bump only for package @spectrum-css/dial @@ -389,8 +379,7 @@ Uses correct colors & removes duplicate properties ## 1.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.44...@spectrum-css/dial@1.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dial@1.0.44...@spectrum-css/dial@1.0.45) **Note:** Version bump only for package @spectrum-css/dial diff --git a/components/dial/dist/metadata.json b/components/dial/dist/metadata.json index 29e38855d6a..49c6d601fe3 100644 --- a/components/dial/dist/metadata.json +++ b/components/dial/dist/metadata.json @@ -116,10 +116,6 @@ "--spectrum-gray-800", "--spectrum-line-height-200" ], - "system-theme": [ - "--system-dial-background-color-default", - "--system-dial-handle-marker-color-key-focus" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-dial-border-color", diff --git a/components/dial/index.css b/components/dial/index.css index 8aee8cef361..4e891ef1b17 100644 --- a/components/dial/index.css +++ b/components/dial/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Dial { + --spectrum-dial-background-color-default: var(--spectrum-gray-75); + --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-25); + --spectrum-dial-handle-marker-color: var(--spectrum-gray-700); --spectrum-dial-border-color: var(--spectrum-gray-700); @@ -24,6 +25,8 @@ --spectrum-dial-min-max-tick-color: var(--spectrum-gray-600); + --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-25); + --spectrum-dial-label-text-color: var(--spectrum-gray-700); --spectrum-dial-label-text-color-disabled: var(--spectrum-gray-700); --spectrum-dial-handle-border-color-disabled: var(--spectrum-gray-400); diff --git a/components/dial/package.json b/components/dial/package.json index 1514b356cae..c028f6cb251 100644 --- a/components/dial/package.json +++ b/components/dial/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/dial/stories/dial.stories.js b/components/dial/stories/dial.stories.js index 9e9970e234b..51c3dbbedfc 100644 --- a/components/dial/stories/dial.stories.js +++ b/components/dial/stories/dial.stories.js @@ -36,6 +36,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = DialGroup.bind(); diff --git a/components/dial/stories/template.js b/components/dial/stories/template.js index c8f25c2175b..547fb97f661 100644 --- a/components/dial/stories/template.js +++ b/components/dial/stories/template.js @@ -5,9 +5,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Dial", diff --git a/components/dial/themes/express.css b/components/dial/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/dial/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/dial/themes/spectrum-two.css b/components/dial/themes/spectrum-two.css deleted file mode 100644 index 410196c3916..00000000000 --- a/components/dial/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Dial { - --spectrum-dial-background-color-default: var(--spectrum-gray-75); - --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-25); - } -} diff --git a/components/dial/themes/spectrum.css b/components/dial/themes/spectrum.css deleted file mode 100644 index 24077607a8b..00000000000 --- a/components/dial/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Dial { - --spectrum-dial-background-color-default: var(--spectrum-gray-100); - --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-50); - } -} diff --git a/components/dialog/CHANGELOG.md b/components/dialog/CHANGELOG.md index 99e889fd1ae..7207759ceb2 100644 --- a/components/dialog/CHANGELOG.md +++ b/components/dialog/CHANGELOG.md @@ -1,5 +1,72 @@ # Change Log +## 11.0.0-next.1 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 11.0.0-next.0 + +### Major Changes + +- [#2860](https://github.com/adobe/spectrum-css/pull/2860) [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Spectrum 2 Standard Dialog Migration + + This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area. + + The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`. + + Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed: + + _New Mods_ + `--mod-standard-dialog-spacing-title-to-header-content` + `--mod-standard-dialog-spacing-title-to-description` + `--mod-standard-dialog-header-content-font-size` + + _Renamed Mods_ + `--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small` + `--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width` + `--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large` + `--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius` + `--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size` + `--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height` + `--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color` + `--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight` + `--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight` + `--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height` + `--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color` + `--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size` + `--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size` + `--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size` + `--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding` + `--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer` + `--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button` + `--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group` + + _Removed Mods_ + `--mod-dialog-confirm-buttongroup-padding-top` + `--mod-dialog-confirm-close-button-size` + `--mod-dialog-confirm-description-margin` + `--mod-dialog-confirm-description-padding` + `--mod-dialog-confirm-divider-block-spacing-end` + `--mod-dialog-confirm-divider-block-spacing-start` + `--mod-dialog-confirm-divider-height` + + Modal and underlay updates + + - Modal component now uses the updated corner rounding. + - Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/modal@5.1.1-next.0 + - @spectrum-css/underlay@4.1.1-next.0 + ## 12.0.1 ### Patch Changes @@ -190,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 10.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.4...@spectrum-css/dialog@10.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.4...@spectrum-css/dialog@10.0.0) ### ✨ Features @@ -199,11 +265,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -211,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.3...@spectrum-css/dialog@9.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.3...@spectrum-css/dialog@9.2.4) **Note:** Version bump only for package @spectrum-css/dialog @@ -220,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.2...@spectrum-css/dialog@9.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.2...@spectrum-css/dialog@9.2.3) **Note:** Version bump only for package @spectrum-css/dialog @@ -229,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.1...@spectrum-css/dialog@9.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.2.1...@spectrum-css/dialog@9.2.2) **Note:** Version bump only for package @spectrum-css/dialog @@ -238,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/dialog @@ -247,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.1.0...@spectrum-css/dialog@9.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.1.0...@spectrum-css/dialog@9.2.0) ### ✨ Features @@ -258,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.5...@spectrum-css/dialog@9.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.5...@spectrum-css/dialog@9.1.0) ### ✨ Features @@ -269,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.5 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.4...@spectrum-css/dialog@9.0.5) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.4...@spectrum-css/dialog@9.0.5) **Note:** Version bump only for package @spectrum-css/dialog @@ -278,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.4 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.3...@spectrum-css/dialog@9.0.4) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.3...@spectrum-css/dialog@9.0.4) **Note:** Version bump only for package @spectrum-css/dialog @@ -287,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.3 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.1...@spectrum-css/dialog@9.0.3) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.1...@spectrum-css/dialog@9.0.3) **Note:** Version bump only for package @spectrum-css/dialog @@ -296,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.2 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.1...@spectrum-css/dialog@9.0.2) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.1...@spectrum-css/dialog@9.0.2) **Note:** Version bump only for package @spectrum-css/dialog @@ -305,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.1 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.0...@spectrum-css/dialog@9.0.1) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@9.0.0...@spectrum-css/dialog@9.0.1) **Note:** Version bump only for package @spectrum-css/dialog @@ -314,13 +367,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.8...@spectrum-css/dialog@9.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.8...@spectrum-css/dialog@9.0.0) \*feat(dialog)!: migrate to spectrum-tokens (#2168)([0811386](https://github.com/adobe/spectrum-css/commit/0811386)), closes[#2168](https://github.com/adobe/spectrum-css/issues/2168) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates to use `@adobe/spectrum-tokens` @@ -334,8 +385,7 @@ Additionally: ## 8.0.8 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.7...@spectrum-css/dialog@8.0.8) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.7...@spectrum-css/dialog@8.0.8) **Note:** Version bump only for package @spectrum-css/dialog @@ -343,8 +393,7 @@ Additionally: ## 8.0.7 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.6...@spectrum-css/dialog@8.0.7) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.6...@spectrum-css/dialog@8.0.7) **Note:** Version bump only for package @spectrum-css/dialog @@ -352,8 +401,7 @@ Additionally: ## 8.0.6 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.5...@spectrum-css/dialog@8.0.6) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.5...@spectrum-css/dialog@8.0.6) **Note:** Version bump only for package @spectrum-css/dialog @@ -361,8 +409,7 @@ Additionally: ## 8.0.5 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.4...@spectrum-css/dialog@8.0.5) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.4...@spectrum-css/dialog@8.0.5) **Note:** Version bump only for package @spectrum-css/dialog @@ -370,8 +417,7 @@ Additionally: ## 8.0.4 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.3...@spectrum-css/dialog@8.0.4) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.3...@spectrum-css/dialog@8.0.4) **Note:** Version bump only for package @spectrum-css/dialog @@ -379,8 +425,7 @@ Additionally: ## 8.0.3 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.2...@spectrum-css/dialog@8.0.3) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.2...@spectrum-css/dialog@8.0.3) **Note:** Version bump only for package @spectrum-css/dialog @@ -388,8 +433,7 @@ Additionally: ## 8.0.2 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.1...@spectrum-css/dialog@8.0.2) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.1...@spectrum-css/dialog@8.0.2) **Note:** Version bump only for package @spectrum-css/dialog @@ -397,8 +441,7 @@ Additionally: ## 8.0.1 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.0...@spectrum-css/dialog@8.0.1) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@8.0.0...@spectrum-css/dialog@8.0.1) **Note:** Version bump only for package @spectrum-css/dialog @@ -406,8 +449,7 @@ Additionally: ## 8.0.0 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@7.0.1...@spectrum-css/dialog@8.0.0) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@7.0.1...@spectrum-css/dialog@8.0.0) ### 🔙 Reverts @@ -415,8 +457,7 @@ Additionally: \*feat(underlay)!: migrate to use spectrum-tokens (#2096)([2e0651a](https://github.com/adobe/spectrum-css/commit/2e0651a)), closes[#2096](https://github.com/adobe/spectrum-css/issues/2096) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Underlay to use `@adobe/spectrum-tokens` @@ -453,8 +494,7 @@ Additionally: ## 7.0.1 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@7.0.0...@spectrum-css/dialog@7.0.1) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@7.0.0...@spectrum-css/dialog@7.0.1) **Note:** Version bump only for package @spectrum-css/dialog @@ -462,13 +502,11 @@ Additionally: ## 7.0.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.67...@spectrum-css/dialog@7.0.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.67...@spectrum-css/dialog@7.0.0) \*feat(dialog)!: major layout updates([526d505](https://github.com/adobe/spectrum-css/commit/526d505)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * Alert variants of Dialog have been removed and placed inside of Alert Dialog @@ -477,8 +515,7 @@ Additionally: ## 6.0.68 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.67...@spectrum-css/dialog@6.0.68) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.67...@spectrum-css/dialog@6.0.68) **Note:** Version bump only for package @spectrum-css/dialog @@ -486,8 +523,7 @@ Additionally: ## 6.0.67 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.66...@spectrum-css/dialog@6.0.67) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.66...@spectrum-css/dialog@6.0.67) **Note:** Version bump only for package @spectrum-css/dialog @@ -495,8 +531,7 @@ Additionally: ## 6.0.66 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.65...@spectrum-css/dialog@6.0.66) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.65...@spectrum-css/dialog@6.0.66) **Note:** Version bump only for package @spectrum-css/dialog @@ -504,8 +539,7 @@ Additionally: ## 6.0.65 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.64...@spectrum-css/dialog@6.0.65) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.64...@spectrum-css/dialog@6.0.65) **Note:** Version bump only for package @spectrum-css/dialog @@ -513,8 +547,7 @@ Additionally: ## 6.0.64 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.63...@spectrum-css/dialog@6.0.64) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.63...@spectrum-css/dialog@6.0.64) **Note:** Version bump only for package @spectrum-css/dialog @@ -522,8 +555,7 @@ Additionally: ## 6.0.63 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.62...@spectrum-css/dialog@6.0.63) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.62...@spectrum-css/dialog@6.0.63) **Note:** Version bump only for package @spectrum-css/dialog @@ -531,8 +563,7 @@ Additionally: ## 6.0.62 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.61...@spectrum-css/dialog@6.0.62) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.61...@spectrum-css/dialog@6.0.62) **Note:** Version bump only for package @spectrum-css/dialog @@ -540,8 +571,7 @@ Additionally: ## 6.0.61 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.60...@spectrum-css/dialog@6.0.61) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.60...@spectrum-css/dialog@6.0.61) **Note:** Version bump only for package @spectrum-css/dialog @@ -549,8 +579,7 @@ Additionally: ## 6.0.60 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.59...@spectrum-css/dialog@6.0.60) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.59...@spectrum-css/dialog@6.0.60) **Note:** Version bump only for package @spectrum-css/dialog @@ -558,8 +587,7 @@ Additionally: ## 6.0.59 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.58...@spectrum-css/dialog@6.0.59) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.58...@spectrum-css/dialog@6.0.59) **Note:** Version bump only for package @spectrum-css/dialog @@ -567,8 +595,7 @@ Additionally: ## 6.0.58 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.57...@spectrum-css/dialog@6.0.58) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.57...@spectrum-css/dialog@6.0.58) **Note:** Version bump only for package @spectrum-css/dialog @@ -576,8 +603,7 @@ Additionally: ## 6.0.57 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.56...@spectrum-css/dialog@6.0.57) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.56...@spectrum-css/dialog@6.0.57) **Note:** Version bump only for package @spectrum-css/dialog @@ -585,8 +611,7 @@ Additionally: ## 6.0.56 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.55...@spectrum-css/dialog@6.0.56) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.55...@spectrum-css/dialog@6.0.56) **Note:** Version bump only for package @spectrum-css/dialog @@ -594,8 +619,7 @@ Additionally: ## 6.0.55 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.54...@spectrum-css/dialog@6.0.55) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.54...@spectrum-css/dialog@6.0.55) ### 🐛 Bug fixes @@ -605,8 +629,7 @@ Additionally: ## 6.0.54 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.53...@spectrum-css/dialog@6.0.54) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.53...@spectrum-css/dialog@6.0.54) **Note:** Version bump only for package @spectrum-css/dialog @@ -614,8 +637,7 @@ Additionally: ## 6.0.53 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.52...@spectrum-css/dialog@6.0.53) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dialog@6.0.52...@spectrum-css/dialog@6.0.53) **Note:** Version bump only for package @spectrum-css/dialog diff --git a/components/dialog/dist/metadata.json b/components/dialog/dist/metadata.json index 812542da227..738156392db 100644 --- a/components/dialog/dist/metadata.json +++ b/components/dialog/dist/metadata.json @@ -2,100 +2,140 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Dialog", - ".spectrum-Dialog .spectrum-Dialog-divider", - ".spectrum-Dialog .spectrum-Dialog-grid", ".spectrum-Dialog .spectrum-Dialog-header", + ".spectrum-Dialog--dismissible .spectrum-Dialog-grid", + ".spectrum-Dialog--dismissible .spectrum-Dialog-grid .spectrum-Dialog-footer", ".spectrum-Dialog--fullscreen", ".spectrum-Dialog--fullscreen .spectrum-Dialog-buttonGroup", + ".spectrum-Dialog--fullscreen .spectrum-Dialog-closeButton", ".spectrum-Dialog--fullscreen .spectrum-Dialog-content", ".spectrum-Dialog--fullscreen .spectrum-Dialog-footer", + ".spectrum-Dialog--fullscreen .spectrum-Dialog-grid", + ".spectrum-Dialog--fullscreen .spectrum-Dialog-header", + ".spectrum-Dialog--fullscreen .spectrum-Dialog-header > .spectrum-Dialog-headerContentWrapper", ".spectrum-Dialog--fullscreen .spectrum-Dialog-heading", - ".spectrum-Dialog--fullscreen .spectrum-Dialog-heading + .spectrum-Dialog-divider", ".spectrum-Dialog--fullscreen.spectrum-Dialog .spectrum-Dialog-grid", ".spectrum-Dialog--fullscreenTakeover", ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-buttonGroup", + ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-closeButton", ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-content", ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-footer", + ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-grid", + ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-header", + ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-header > .spectrum-Dialog-headerContentWrapper", ".spectrum-Dialog--fullscreenTakeover .spectrum-Dialog-heading", ".spectrum-Dialog--fullscreenTakeover.spectrum-Dialog .spectrum-Dialog-grid", - ".spectrum-Dialog--noDivider .spectrum-Dialog-divider", - ".spectrum-Dialog--noDivider .spectrum-Dialog-heading", ".spectrum-Dialog--sizeL", ".spectrum-Dialog--sizeS", ".spectrum-Dialog-buttonGroup", - ".spectrum-Dialog-buttonGroup.spectrum-Dialog-buttonGroup--noFooter", + ".spectrum-Dialog-buttonGroup--noFooter", ".spectrum-Dialog-closeButton", ".spectrum-Dialog-content", ".spectrum-Dialog-footer", - ".spectrum-Dialog-footer > *", - ".spectrum-Dialog-footer > .spectrum-Button + .spectrum-Button", + ".spectrum-Dialog-footer .spectrum-Dialog-footerContent", + ".spectrum-Dialog-footer:has(.spectrum-Dialog-buttonGroup)", + ".spectrum-Dialog-footer:has(.spectrum-Dialog-footerContent)", + ".spectrum-Dialog-grid", ".spectrum-Dialog-header", + ".spectrum-Dialog-header > .spectrum-Dialog-headerContentWrapper", ".spectrum-Dialog-heading", - ".spectrum-Dialog-heading.spectrum-Dialog-heading--noHeader", - ".spectrum-Dialog-hero", - ".spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid", - ".spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid .spectrum-Dialog-buttonGroup", - ".spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid .spectrum-Dialog-footer" + ".spectrum-Dialog-hero" ], "modifiers": [ - "--mod-dialog-confirm-border-radius", - "--mod-dialog-confirm-buttongroup-padding-top", - "--mod-dialog-confirm-close-button-padding", - "--mod-dialog-confirm-close-button-size", - "--mod-dialog-confirm-description-font-weight", - "--mod-dialog-confirm-description-margin", - "--mod-dialog-confirm-description-padding", - "--mod-dialog-confirm-description-text-color", - "--mod-dialog-confirm-description-text-line-height", - "--mod-dialog-confirm-description-text-size", - "--mod-dialog-confirm-divider-block-spacing-end", - "--mod-dialog-confirm-divider-block-spacing-start", - "--mod-dialog-confirm-divider-height", - "--mod-dialog-confirm-footer-padding-top", - "--mod-dialog-confirm-gap-size", - "--mod-dialog-confirm-hero-height", - "--mod-dialog-confirm-large-width", - "--mod-dialog-confirm-medium-width", - "--mod-dialog-confirm-padding-grid", - "--mod-dialog-confirm-small-width", - "--mod-dialog-confirm-title-text-color", - "--mod-dialog-confirm-title-text-line-height", - "--mod-dialog-confirm-title-text-size", - "--mod-dialog-fullscreen-header-text-size", - "--mod-dialog-heading-font-weight", - "--mod-dialog-min-inline-size", - "--mod-dialog-width" - ], - "component": [ - "--spectrum-dialog-confirm-border-radius", - "--spectrum-dialog-confirm-buttongroup-padding-top", - "--spectrum-dialog-confirm-close-button-padding", - "--spectrum-dialog-confirm-close-button-size", - "--spectrum-dialog-confirm-description-padding", - "--spectrum-dialog-confirm-description-text-color", - "--spectrum-dialog-confirm-description-text-size", - "--spectrum-dialog-confirm-divider-block-spacing-end", - "--spectrum-dialog-confirm-divider-block-spacing-start", - "--spectrum-dialog-confirm-gap-size", - "--spectrum-dialog-confirm-hero-height", - "--spectrum-dialog-confirm-padding-grid", - "--spectrum-dialog-confirm-title-text-size" + "--mod-standard-dialog-background-color", + "--mod-standard-dialog-border-radius", + "--mod-standard-dialog-description-font-size", + "--mod-standard-dialog-description-font-weight", + "--mod-standard-dialog-description-line-height", + "--mod-standard-dialog-description-text-color", + "--mod-standard-dialog-header-content-font-size", + "--mod-standard-dialog-heading-font-size", + "--mod-standard-dialog-heading-font-weight", + "--mod-standard-dialog-heading-line-height", + "--mod-standard-dialog-heading-text-color", + "--mod-standard-dialog-hero-block-size", + "--mod-standard-dialog-max-width", + "--mod-standard-dialog-max-width-large", + "--mod-standard-dialog-max-width-small", + "--mod-standard-dialog-min-inline-size", + "--mod-standard-dialog-spacing-description-to-footer", + "--mod-standard-dialog-spacing-edge-to-close-button", + "--mod-standard-dialog-spacing-footer-to-button-group", + "--mod-standard-dialog-spacing-grid-padding", + "--mod-standard-dialog-spacing-title-to-description", + "--mod-standard-dialog-spacing-title-to-header-content", + "--mod-takeover-dialog-grid-spacing", + "--mod-takeover-dialog-spacing-header-content-gap", + "--mod-takeover-dialog-title-font-size" ], + "component": [], "global": [ - "--spectrum-component-bottom-to-text-300", - "--spectrum-component-height-100", - "--spectrum-component-pill-edge-to-text-100", - "--spectrum-gray-800", - "--spectrum-gray-900", - "--spectrum-heading-sans-serif-font-weight", - "--spectrum-line-height-100", - "--spectrum-regular-font-weight", + "--spectrum-background-layer-2-color", + "--spectrum-black-rgb", + "--spectrum-body-color", + "--spectrum-body-sans-serif-font-style", + "--spectrum-body-sans-serif-font-weight", + "--spectrum-corner-radius-extra-large-default", + "--spectrum-heading-color", + "--spectrum-line-height-200", + "--spectrum-overlay-opacity", + "--spectrum-sans-font-family-stack", "--spectrum-spacing-200", "--spectrum-spacing-300", - "--spectrum-spacing-50", - "--spectrum-spacing-600" + "--spectrum-spacing-400", + "--spectrum-spacing-500", + "--spectrum-standard-dialog-background-color", + "--spectrum-standard-dialog-body-font-size", + "--spectrum-standard-dialog-border-radius", + "--spectrum-standard-dialog-description-font-family", + "--spectrum-standard-dialog-description-font-size", + "--spectrum-standard-dialog-description-font-style", + "--spectrum-standard-dialog-description-font-weight", + "--spectrum-standard-dialog-description-line-height", + "--spectrum-standard-dialog-description-text-color", + "--spectrum-standard-dialog-header-content-font-size", + "--spectrum-standard-dialog-heading-font-family", + "--spectrum-standard-dialog-heading-font-size", + "--spectrum-standard-dialog-heading-font-style", + "--spectrum-standard-dialog-heading-font-weight", + "--spectrum-standard-dialog-heading-line-height", + "--spectrum-standard-dialog-heading-text-color", + "--spectrum-standard-dialog-hero-block-size", + "--spectrum-standard-dialog-max-width", + "--spectrum-standard-dialog-maximum-width-large", + "--spectrum-standard-dialog-maximum-width-medium", + "--spectrum-standard-dialog-maximum-width-small", + "--spectrum-standard-dialog-min-inline-size", + "--spectrum-standard-dialog-minimum-width", + "--spectrum-standard-dialog-padding", + "--spectrum-standard-dialog-spacing-description-to-footer", + "--spectrum-standard-dialog-spacing-edge-to-close-button", + "--spectrum-standard-dialog-spacing-edge-to-content", + "--spectrum-standard-dialog-spacing-edge-to-header-content-inline-end", + "--spectrum-standard-dialog-spacing-footer-to-button-group", + "--spectrum-standard-dialog-spacing-grid-padding", + "--spectrum-standard-dialog-spacing-title-to-description", + "--spectrum-standard-dialog-spacing-title-to-header-content", + "--spectrum-standard-dialog-title-font-size", + "--spectrum-takeover-dialog-block-size", + "--spectrum-takeover-dialog-grid-spacing", + "--spectrum-takeover-dialog-height", + "--spectrum-takeover-dialog-inline-size", + "--spectrum-takeover-dialog-spacing-grid-padding", + "--spectrum-takeover-dialog-spacing-header-content-gap", + "--spectrum-takeover-dialog-spacing-header-gap", + "--spectrum-takeover-dialog-spacing-title-to-body", + "--spectrum-takeover-dialog-spacing-title-to-content", + "--spectrum-takeover-dialog-title-font-size", + "--spectrum-takeover-dialog-width", + "--spectrum-title-line-height", + "--spectrum-title-sans-serif-font-style", + "--spectrum-title-sans-serif-font-weight", + "--spectrum-title-size-xxl" + ], + "passthroughs": [ + "--mod-buttongroup-flex-wrap", + "--mod-buttongroup-justify-content" ], - "system-theme": [], - "passthroughs": [], "high-contrast": [] } diff --git a/components/dialog/index.css b/components/dialog/index.css index 39ed5be57c7..b4ea3002d30 100644 --- a/components/dialog/index.css +++ b/components/dialog/index.css @@ -12,200 +12,235 @@ */ .spectrum-Dialog { - --spectrum-dialog-confirm-divider-block-spacing-start: var(--spectrum-spacing-300); - --spectrum-dialog-confirm-divider-block-spacing-end: var(--spectrum-spacing-200); - --spectrum-dialog-confirm-description-text-color: var(--spectrum-gray-800); - --spectrum-dialog-confirm-description-padding: var(--spectrum-spacing-50); - --spectrum-dialog-confirm-gap-size: var(--spectrum-component-pill-edge-to-text-100); - --spectrum-dialog-confirm-buttongroup-padding-top: var(--spectrum-spacing-600); - --spectrum-dialog-confirm-close-button-size: var(--spectrum-component-height-100); - --spectrum-dialog-confirm-close-button-padding: calc(26px - var(--spectrum-component-bottom-to-text-300)); + --spectrum-standard-dialog-max-width: var(--spectrum-standard-dialog-maximum-width-medium); + --spectrum-standard-dialog-min-inline-size: var(--spectrum-standard-dialog-minimum-width); + --spectrum-standard-dialog-border-radius: var(--spectrum-corner-radius-extra-large-default); + + /* Fonts */ + --spectrum-standard-dialog-heading-font-weight: var(--spectrum-title-sans-serif-font-weight); + --spectrum-standard-dialog-heading-font-size: var(--spectrum-standard-dialog-title-font-size); + --spectrum-standard-dialog-heading-font-style: var(--spectrum-title-sans-serif-font-style); + --spectrum-standard-dialog-heading-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-standard-dialog-description-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-standard-dialog-description-font-size: var(--spectrum-standard-dialog-body-font-size); + --spectrum-standard-dialog-description-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-standard-dialog-description-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-standard-dialog-header-content-font-size: var(--spectrum-standard-dialog-body-font-size); + + --spectrum-standard-dialog-heading-line-height: var(--spectrum-title-line-height); + --spectrum-standard-dialog-description-line-height: var(--spectrum-line-height-200); + + /* Colors */ + --spectrum-standard-dialog-heading-text-color: var(--spectrum-heading-color); + --spectrum-standard-dialog-description-text-color: var(--spectrum-body-color); + --spectrum-standard-dialog-background-color: var(--spectrum-background-layer-2-color); + + /* Spacing */ + --spectrum-standard-dialog-padding: var(--spectrum-standard-dialog-spacing-edge-to-content); + --spectrum-standard-dialog-spacing-title-to-description: var(--spectrum-spacing-300); + --spectrum-standard-dialog-spacing-description-to-footer: var(--spectrum-spacing-500); + --spectrum-standard-dialog-spacing-title-to-header-content: var(--spectrum-spacing-400); + --spectrum-standard-dialog-spacing-edge-to-header-content-inline-end: var(--spectrum-spacing-400); + --spectrum-standard-dialog-spacing-footer-to-button-group: var(--spectrum-spacing-400); + + /* Grid */ + --spectrum-standard-dialog-spacing-grid-padding: var(--spectrum-standard-dialog-padding); + --spectrum-standard-dialog-spacing-edge-to-close-button: var(--spectrum-spacing-200); + + /* Hero */ + --spectrum-standard-dialog-hero-block-size: 140px; + + /* Passthrough for nested component(s) */ + --mod-buttongroup-justify-content: flex-end; + --mod-buttongroup-flex-wrap: nowrap; + + /* Fullscreen/fullscreenTakeover */ + --spectrum-takeover-dialog-title-font-size: var(--spectrum-title-size-xxl); + --spectrum-takeover-dialog-grid-spacing: var(--spectrum-takeover-dialog-spacing-grid-padding); + --spectrum-takeover-dialog-spacing-header-content-gap: var(--spectrum-takeover-dialog-spacing-header-gap); + --spectrum-takeover-dialog-spacing-title-to-content: var(--spectrum-takeover-dialog-spacing-title-to-body); + --spectrum-takeover-dialog-inline-size: var(--spectrum-takeover-dialog-width); + --spectrum-takeover-dialog-block-size: var(--spectrum-takeover-dialog-height); +} +.spectrum-Dialog { /* Be a flexbox to allow a full sized content area that scrolls */ display: flex; /* Allow 100% width, taking into account padding */ box-sizing: border-box; - /* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ - inline-size: var(--mod-dialog-width, var(--mod-dialog-confirm-medium-width, 480px)); - min-inline-size: var(--mod-dialog-min-inline-size, 288px); + /* Be no bigger than max-width, but also be 90% if the viewport is smaller than max-width */ + inline-size: var(--mod-standard-dialog-max-width, var(--spectrum-standard-dialog-max-width)); + min-inline-size: var(--mod-standard-dialog-min-inline-size, var(--spectrum-standard-dialog-min-inline-size)); max-inline-size: 100%; - max-block-size: inherit; - + background-color: var(--mod-standard-dialog-background-color, var(--spectrum-standard-dialog-background-color)); outline: none; + border-radius: var(--mod-standard-dialog-border-radius, var(--spectrum-standard-dialog-border-radius)); + overflow: hidden; } .spectrum-Dialog--sizeS { - --mod-dialog-width: var(--mod-dialog-confirm-small-width, 400px); + --spectrum-standard-dialog-max-width: var(--spectrum-standard-dialog-maximum-width-small); + inline-size: var(--mod-standard-dialog-max-width-small, var(--spectrum-standard-dialog-max-width)); } .spectrum-Dialog--sizeL { - --mod-dialog-width: var(--mod-dialog-confirm-large-width, 640px); + --spectrum-standard-dialog-max-width: var(--spectrum-standard-dialog-maximum-width-large); + inline-size: var(--mod-standard-dialog-max-width-large, var(--spectrum-standard-dialog-max-width)); } .spectrum-Dialog-hero { grid-area: hero; - block-size: var(--mod-dialog-confirm-hero-height, var(--spectrum-dialog-confirm-hero-height)); - border-start-start-radius: var(--mod-dialog-confirm-border-radius, var(--spectrum-dialog-confirm-border-radius)); - border-start-end-radius: var(--mod-dialog-confirm-border-radius, var(--spectrum-dialog-confirm-border-radius)); + block-size: var(--mod-standard-dialog-hero-block-size, var(--spectrum-standard-dialog-hero-block-size)); background-size: cover; background-position: center center; - overflow: hidden; } -.spectrum-Dialog .spectrum-Dialog-grid { +/* Non-Dismissible Dialog (no close button) */ +.spectrum-Dialog-grid { display: grid; grid-template-columns: - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0, auto) - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + minmax(0, auto) + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + grid-template-rows: + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); grid-template-areas: - "hero hero hero hero hero hero" - ". . . . . ." - ". heading header header header ." - ". divider divider divider divider ." - ". content content content content ." - ". footer footer buttonGroup buttonGroup ." - ". . . . . ."; - grid-template-rows: auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + "hero hero hero hero hero hero hero" + ". . . . . . ." + ". heading header header header header ." + ". content content content content content ." + ". footer footer footer buttonGroup buttonGroup ." + ". . . . . . ."; inline-size: 100%; } +/* the dialog's heading/title */ .spectrum-Dialog-heading { grid-area: heading; - margin: 0; - - font-size: var(--mod-dialog-confirm-title-text-size, var(--spectrum-dialog-confirm-title-text-size)); - font-weight: var(--mod-dialog-heading-font-weight, var(--spectrum-heading-sans-serif-font-weight)); - line-height: var(--mod-dialog-confirm-title-text-line-height, var(--spectrum-line-height-100)); - color: var(--mod-dialog-confirm-title-text-color, var(--spectrum-gray-900)); + margin-block: 0; + font-size: var(--mod-standard-dialog-heading-font-size, var(--spectrum-standard-dialog-heading-font-size)); + font-weight: var(--mod-standard-dialog-heading-font-weight, var(--spectrum-standard-dialog-heading-font-weight)); + font-style: var(--spectrum-standard-dialog-heading-font-style); + font-family: var(--spectrum-standard-dialog-heading-font-family); + line-height: var(--mod-standard-dialog-heading-line-height, var(--spectrum-standard-dialog-heading-line-height)); + color: var(--mod-standard-dialog-heading-text-color, var(--spectrum-standard-dialog-heading-text-color)); outline: none; /* Hide focus outline */ - - padding-inline-end: var(--mod-dialog-confirm-gap-size, var(--spectrum-dialog-confirm-gap-size)); - - &.spectrum-Dialog-heading--noHeader { - grid-area: heading-start / heading-start / header-end / header-end; - padding-inline-end: 0; - } } +/* the container for the heading and any additional header content */ .spectrum-Dialog-header { grid-area: header; display: flex; + max-inline-size: 100%; + margin-block-end: var(--mod-standard-dialog-spacing-title-to-description, var(--spectrum-standard-dialog-spacing-title-to-description)); + gap: var(--mod-standard-dialog-spacing-title-to-header-content, var(--spectrum-standard-dialog-spacing-title-to-header-content)); - /* Without this, buttons will be stretched */ - align-items: center; - justify-content: flex-end; + /* Without this, buttons will be stretched */ + align-items: flex-start; + justify-content: space-between; box-sizing: border-box; outline: none; /* Hide focus outline around header */ -} - -.spectrum-Dialog .spectrum-Dialog-divider { - grid-area: divider; - inline-size: 100%; - margin-block-start: var(--mod-dialog-confirm-divider-block-spacing-end, var(--spectrum-dialog-confirm-divider-block-spacing-end)); - margin-block-end: var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start)); -} -/* remove top vertical padding of spectrum-Dialog-content from bottom margin of first divider after heading */ -.spectrum-Dialog--fullscreen .spectrum-Dialog-heading + .spectrum-Dialog-divider { - margin-block-end: calc(var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start)) - (var(--mod-dialog-confirm-description-padding, var(--spectrum-dialog-confirm-description-padding)) * 2)); -} - -.spectrum-Dialog--noDivider { - .spectrum-Dialog-divider { - display: none; - } - - .spectrum-Dialog-heading { - padding-block-end: calc(var(--mod-dialog-confirm-divider-block-spacing-end, var(--spectrum-dialog-confirm-divider-block-spacing-end)) + var(--mod-dialog-confirm-divider-block-spacing-start, var(--spectrum-dialog-confirm-divider-block-spacing-start)) + var(--mod-dialog-confirm-divider-height, var(--spectrum-spacing-50))); + /* additional header content should grow/shrink with the text, but only until it takes up half of the header */ + > .spectrum-Dialog-headerContentWrapper { + max-inline-size: fit-content; + flex: 1 1 100%; + font-size: var(--mod-standard-dialog-header-content-font-size, var(--spectrum-standard-dialog-header-content-font-size)); + text-wrap: pretty; } } .spectrum-Dialog-content { grid-area: content; box-sizing: border-box; - - /* - v2 is currently worse, inputs that get focus rings get a slight clipping unless overflow: visible replaces this line - we should think of a better way to handle this, see padding/margin below for fix - */ overflow-y: auto; -webkit-overflow-scrolling: touch; outline: none; /* Hide focus outline */ - - font-size: var(--mod-dialog-confirm-description-text-size, var(--spectrum-dialog-confirm-description-text-size)); - font-weight: var(--mod-dialog-confirm-description-font-weight, var(--spectrum-regular-font-weight)); - line-height: var(--mod-dialog-confirm-description-text-line-height, var(--spectrum-line-height-100)); - color: var(--mod-dialog-confirm-description-text-color, var(--spectrum-dialog-confirm-description-text-color)); - - /* this is kinda dumb, but needed for the keyboard focus rings so they don't get clipped. is there a better way to treat this */ - padding: calc(var(--mod-dialog-confirm-description-padding, var(--spectrum-dialog-confirm-description-padding)) * 2); - margin: 0 var(--mod-dialog-confirm-description-margin, calc(var(--spectrum-spacing-50) * -1)); + font-size: var(--mod-standard-dialog-description-font-size, var(--spectrum-standard-dialog-description-font-size)); + font-weight: var(--mod-standard-dialog-description-font-weight, var(--spectrum-standard-dialog-description-font-weight)); + font-family: var(--spectrum-standard-dialog-description-font-family); + font-style: var(--spectrum-standard-dialog-description-font-style); + line-height: var(--mod-standard-dialog-description-line-height, var(--spectrum-standard-dialog-description-line-height)); + color: var(--mod-standard-dialog-description-text-color, var(--spectrum-standard-dialog-description-text-color)); } .spectrum-Dialog-footer { - grid-area: footer; + grid-area: footer / footer / buttonGroup / buttonGroup; + max-inline-size: 100%; + display: flex; + align-items: flex-end; - /* this padding isn't built into the grid because it disappears with this footer */ - padding-block-start: var(--mod-dialog-confirm-footer-padding-top, var(--spectrum-spacing-600)); + /* this recreates padding between the footer content and button group. It should be safe as button group is always end aligned */ + gap: var(--mod-standard-dialog-spacing-footer-to-button-group, var(--spectrum-standard-dialog-spacing-footer-to-button-group)); - display: flex; - flex-wrap: wrap; + /* this padding isn't built into the grid because it disappears with this footer */ + padding-block-start: var(--mod-standard-dialog-spacing-description-to-footer, var(--spectrum-standard-dialog-spacing-description-to-footer)); outline: none; /* Hide focus outline */ - /* Both selectors are required to override the button + button rule */ - > *, - > .spectrum-Button + .spectrum-Button { - margin-block-end: 0; + .spectrum-Dialog-footerContent { + /* this attempts to give as much space as possible for the button group, particularly to avoid stacking on mobile. Some sizes still may have to stack. */ + flex: 1 1 100%; + } + + &:has(.spectrum-Dialog-footerContent), + &:has(.spectrum-Dialog-buttonGroup) { + justify-content: space-between; } } .spectrum-Dialog-buttonGroup { grid-area: buttonGroup; +} - /* this padding isn't built into the grid because it disappears with this buttonGroup */ - padding-block-start: var(--mod-dialog-confirm-buttongroup-padding-top, var(--spectrum-dialog-confirm-buttongroup-padding-top)); - display: flex; - justify-content: flex-end; - - /* this padding should be safe as button group is always end aligned */ - padding-inline-start: var(--mod-dialog-confirm-gap-size, var(--spectrum-dialog-confirm-gap-size)); - - &.spectrum-Dialog-buttonGroup--noFooter { - grid-area: footer-start / footer-start / buttonGroup-end / buttonGroup-end; - } +.spectrum-Dialog-buttonGroup--noFooter { + padding-block-start: var(--mod-standard-dialog-spacing-description-to-footer, var(--spectrum-standard-dialog-spacing-description-to-footer)); } -.spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid { +/* Dismissible Dialog (with close button) */ +.spectrum-Dialog--dismissible .spectrum-Dialog-grid { grid-template-columns: - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0, auto) - minmax(0, var(--mod-dialog-confirm-close-button-size, var(--spectrum-dialog-confirm-close-button-size))) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + minmax(0, var(--spectrum-standard-dialog-spacing-edge-to-header-content-inline-end)) + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + grid-template-rows: + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); grid-template-areas: - "hero hero hero hero hero hero hero" - ". . . . . closeButton closeButton" - ". heading header header typeIcon closeButton closeButton" - ". divider divider divider divider divider ." - ". content content content content content ." - ". footer footer buttonGroup buttonGroup buttonGroup ." - ". . . . . . ."; - grid-template-rows: auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); - - .spectrum-Dialog-buttonGroup { - display: none; - } + "hero hero hero hero hero hero" + ". . . . closeButton closeButton" + ". heading header header closeButton closeButton" + ". content content content content ." + ". footer footer footer footer ." + ". . . . . ."; .spectrum-Dialog-footer { - grid-area: footer / footer/ buttonGroup / buttonGroup; - color: var(--mod-dialog-confirm-description-text-color, var(--spectrum-dialog-confirm-description-text-color)); + grid-area: footer; } } @@ -216,19 +251,18 @@ align-self: start; justify-self: end; - margin-inline-end: var(--mod-dialog-confirm-close-button-padding, var(--spectrum-dialog-confirm-close-button-padding)); - margin-block-start: var(--mod-dialog-confirm-close-button-padding, var(--spectrum-dialog-confirm-close-button-padding)); + margin-block-start: var(--mod-standard-dialog-spacing-edge-to-close-button, var(--spectrum-standard-dialog-spacing-edge-to-close-button)); + margin-inline-end: var(--mod-standard-dialog-spacing-edge-to-close-button, var(--spectrum-standard-dialog-spacing-edge-to-close-button)); } .spectrum-Dialog--fullscreen { - inline-size: 100%; - block-size: 100%; + inline-size: var(--spectrum-takeover-dialog-inline-size); + block-size: var(--spectrum-takeover-dialog-block-size); } .spectrum-Dialog--fullscreenTakeover { - inline-size: 100%; - block-size: 100%; - + inline-size: var(--spectrum-takeover-dialog-inline-size); + block-size: var(--spectrum-takeover-dialog-block-size); border-radius: 0; } @@ -237,29 +271,50 @@ max-block-size: none; max-inline-size: none; - &.spectrum-Dialog .spectrum-Dialog-grid { + .spectrum-Dialog-grid { display: grid; - grid-template-columns: var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) 1fr auto auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); - grid-template-rows: var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto 1fr var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + grid-template-columns: + var(--mod-takeover-dialog-grid-spacing, var(--spectrum-takeover-dialog-grid-spacing)) + 1fr + auto + auto + var(--mod-takeover-dialog-grid-spacing, var(--spectrum-takeover-dialog-grid-spacing)); + grid-template-rows: + var(--mod-takeover-dialog-grid-spacing, var(--spectrum-takeover-dialog-grid-spacing)) + auto + 1fr + var(--mod-takeover-dialog-grid-spacing, var(--spectrum-takeover-dialog-grid-spacing)); grid-template-areas: ". . . . ." ". heading header buttonGroup ." - ". divider divider divider ." ". content content content ." ". . . . ."; } + .spectrum-Dialog-header { + grid-area: heading; + gap: var(--mod-takeover-dialog-spacing-header-content-gap, var(--spectrum-takeover-dialog-spacing-header-content-gap)); + margin-inline-end: var(--mod-takeover-dialog-spacing-header-content-gap, var(--spectrum-takeover-dialog-spacing-header-content-gap)); + margin-block-end: var(--spectrum-takeover-dialog-spacing-title-to-content); + + /* components in fullscreen/fullscreenTakeover dialogs are centered in the headerContentWrapper */ + > .spectrum-Dialog-headerContentWrapper { + max-inline-size: unset; + display: inline-flex; + justify-content: center; + } + } + .spectrum-Dialog-heading { - font-size: var(--mod-dialog-fullscreen-header-text-size, 28px); + font-size: var(--mod-takeover-dialog-title-font-size, var(--spectrum-takeover-dialog-title-font-size)); } - .spectrum-Dialog-content { - max-block-size: none; + .spectrum-Dialog-closeButton { + display: none; } - .spectrum-Dialog-footer, - .spectrum-Dialog-buttonGroup { - padding-block-start: 0; + .spectrum-Dialog-content { + max-block-size: none; } .spectrum-Dialog-footer { @@ -268,75 +323,119 @@ .spectrum-Dialog-buttonGroup { grid-area: buttonGroup; - align-self: start; } } @media screen and (width <= 700px) { - .spectrum-Dialog .spectrum-Dialog-grid { + .spectrum-Dialog-grid { grid-template-columns: - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0, auto) - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); - grid-template-rows: auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + minmax(0, auto) + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + grid-template-rows: + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + auto + 1fr + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + + /* TODO: investigate if we could refactor the grid to make the footer text/checkbox stack on top of the button group */ grid-template-areas: "hero hero hero hero hero hero" ". . . . . ." - ". heading heading heading heading ." + ". heading heading heading heading ." ". header header header header ." - ". divider divider divider divider ." ". content content content content ." ". footer footer buttonGroup buttonGroup ." ". . . . . ."; } - .spectrum-Dialog.spectrum-Dialog--dismissable .spectrum-Dialog-grid { + .spectrum-Dialog-footer { + flex-direction: column; + } + + .spectrum-Dialog--dismissible .spectrum-Dialog-grid { grid-template-columns: - var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto 1fr auto minmax(0, auto) - minmax(0, var(--mod-dialog-confirm-close-button-size, var(--spectrum-dialog-confirm-close-button-size))) var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); - grid-template-rows: auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + 1fr + auto + minmax(0, auto) + minmax(0, calc(var(--spectrum-standard-dialog-spacing-edge-to-content) - var(--spectrum-standard-dialog-spacing-edge-to-close-button))) + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + grid-template-rows: + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + auto + 1fr + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); grid-template-areas: "hero hero hero hero hero hero hero" ". . . . . closeButton closeButton" - ". heading heading heading heading closeButton closeButton" + ". heading heading heading heading closeButton closeButton" ". header header header header header ." - ". divider divider divider divider divider ." ". content content content content content ." - ". footer footer buttonGroup buttonGroup buttonGroup ." + ". footer footer footer footer footer ." ". . . . . . ."; } .spectrum-Dialog .spectrum-Dialog-header { + display: flex; + flex-direction: column; + align-items: flex-start; justify-content: flex-start; + gap: 0; } .spectrum-Dialog--fullscreen, .spectrum-Dialog--fullscreenTakeover { &.spectrum-Dialog .spectrum-Dialog-grid { display: grid; - grid-template-columns: var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) 1fr var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); - grid-template-rows: var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)) auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); + grid-template-columns: + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + 1fr + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); + grid-template-rows: + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + auto + 1fr + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)) + auto + var(--mod-standard-dialog-spacing-grid-padding, var(--spectrum-standard-dialog-spacing-grid-padding)); grid-template-areas: ". . ." ". heading ." ". header ." - ". divider ." ". content ." + ". . ." ". buttonGroup ." ". . ."; } - .spectrum-Dialog-buttonGroup { - padding-block-start: var(--mod-dialog-confirm-buttongroup-padding-top, var(--spectrum-dialog-confirm-buttongroup-padding-top)); + .spectrum-Dialog-header { + margin-inline-end: 0; } .spectrum-Dialog-heading { - font-size: var(--mod-dialog-confirm-title-text-size, var(--spectrum-dialog-confirm-title-text-size)); + margin-inline-end: 0; } } + + .spectrum-Dialog-heading { + margin-block-end: var(--spectrum-standard-dialog-spacing-title-to-description); + } } @media (forced-colors: active) { .spectrum-Dialog { - border: solid; + border: 1px solid rgba(var(--spectrum-black-rgb), var(--spectrum-overlay-opacity)); } } diff --git a/components/dialog/package.json b/components/dialog/package.json index 7a79268578d..23f29d2ff92 100644 --- a/components/dialog/package.json +++ b/components/dialog/package.json @@ -25,11 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/closebutton": ">=5", - "@spectrum-css/divider": ">=3", - "@spectrum-css/modal": ">=5", - "@spectrum-css/tokens": ">=14 || >=15", - "@spectrum-css/underlay": ">=4" + "@spectrum-css/button": ">=14", + "@spectrum-css/buttongroup": ">=9", + "@spectrum-css/divider": ">=5", + "@spectrum-css/modal": ">=7", + "@spectrum-css/tokens": ">=16", + "@spectrum-css/underlay": ">=6" }, "peerDependenciesMeta": { "@spectrum-css/divider": { @@ -43,16 +44,13 @@ } }, "devDependencies": { - "@spectrum-css/buttongroup": "workspace:^", + "@spectrum-css/button": "14.0.1", + "@spectrum-css/buttongroup": "9.0.1", "@spectrum-css/closebutton": "6.0.1", "@spectrum-css/divider": "5.0.1", "@spectrum-css/modal": "7.0.1", "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/underlay": "6.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/underlay": "6.0.1" }, "keywords": [ "design-system", diff --git a/components/dialog/stories/dialog.stories.js b/components/dialog/stories/dialog.stories.js index 45bec9bc1d1..a203ed06589 100644 --- a/components/dialog/stories/dialog.stories.js +++ b/components/dialog/stories/dialog.stories.js @@ -1,6 +1,8 @@ import { withUnderlayWrapper } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; -import { isOpen, size } from "@spectrum-css/preview/types"; +import { size } from "@spectrum-css/preview/types"; +import { Template as Table } from "@spectrum-css/table/stories/template.js"; +import { Template as Steplist } from "@spectrum-css/steplist/stories/template.js"; import { Template as Typography } from "@spectrum-css/typography/stories/template.js"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; @@ -8,16 +10,32 @@ import { DialogFullscreen, DialogFullscreenTakeover, DialogGroup } from "./dialo import { Template } from "./template.js"; /** - * A dialog displays important information that users need to acknowledge. They appear over the interface and block further interactions. + * A dialog displays important information that users need to acknowledge. They appear over the interface and block further interactions. Standard dialogs are the most frequent type of dialogs. They appear in the center of the screen over the interface and should be used for moderately complex tasks. Takeover dialogs are large types of dialogs. They use the totality of the screen and should be used for modal experiences with complex workflows. + * + * The alert variants that were previously a part of Dialog were moved to their own component, [alert dialog](/docs/components-alert-dialog--docs). + * + * ## Usage with modal component + * When a dialog component is used in tandem with a [modal](/docs/components-modal--docs), implementations should set `--mod-modal-background-color` to `transparent`. This will prevent any background color used in the modal from peeking through from behind the dialog at the rounded corners, allowing the dialog's background color to take precedence. * - * The alert variants that were previously a part of Dialog were moved to their own component, [Alert Dialog](/docs/components-alert-dialog--docs). */ export default { title: "Dialog", component: "Dialog", argTypes: { + size: size(["s", "m", "l"]), heading: { name: "Heading", + description: "Title for the dialog.", + type: { name: "string" }, + table: { + type: { summary: "string" }, + category: "Content", + }, + control: { type: "text" }, + }, + header: { + name: "Additional header content", + description: "Controls header content.", type: { name: "string" }, table: { type: { summary: "string" }, @@ -28,6 +46,7 @@ export default { content: { table: { disable: true } }, hasFooter: { name: "Has footer", + description: "Adds a footer to the dialog, containing the button group, checkbox, and footer text. Currently only supported in the default layout.", type: { name: "boolean" }, table: { type: { summary: "boolean" }, @@ -35,8 +54,28 @@ export default { }, control: "boolean", }, - footer: { table: { disable: true } }, - size: size(["s", "m", "l"]), + footer: { + name: "Footer text", + description: "Text content of the dialog footer. Represents the checkbox label if a checkbox is present, or stands alone if there is no checkbox. Currently only supported in the default layout.", + type: { name: "string" }, + table: { + type: { summary: "string" }, + category: "Content", + }, + control: { type: "text" }, + if: { arg: "hasFooter", truthy: true, }, + }, + hasCheckbox: { + name: "Has checkbox", + description: "Adds a checkbox to the footer content. Currently only supported in the default layout.", + type: { name: "boolean" }, + table: { + type: { summary: "boolean" }, + category: "Content", + }, + control: { type: "boolean" }, + if: { arg: "hasFooter", truthy: true, }, + }, layout: { name: "Layout", type: { name: "string" }, @@ -45,6 +84,7 @@ export default { type: { summary: "string" }, category: "Component", defaultValue: { summary: "Default" }, + disable: true, }, options: ["default", "fullscreen", "fullscreenTakeover"], control: "select", @@ -59,8 +99,8 @@ export default { control: "boolean", if: { arg: "layout", eq: "default" }, }, - hasDivider: { - name: "Divider", + showModal: { + name: "Wrap the dialog in a modal", type: { name: "boolean" }, table: { type: { summary: "boolean" }, @@ -68,42 +108,46 @@ export default { }, control: "boolean", }, - showModal: { - name: "Wrap the dialog in a modal", + hasHeroImage: { + name: "Has hero image", type: { name: "boolean" }, + description: "Adds a cover image to the header of a dialog.", table: { type: { summary: "boolean" }, - category: "Component", + category: "Content", }, control: "boolean", + if: { arg: "layout", eq: "default" }, }, - isOpen, heroImageUrl: { name: "Hero Image", type: { name: "string" }, - description: "Adds a cover image to the header of a dialog.", + description: "Select a cover image for the hero section of a dialog.", + defaultValue: "example-card-portrait.png", table: { type: { summary: "string" }, category: "Content", + defaultValue: { summary: "example-card-portrait.png" }, }, control: { type: "file", accept: ".svg,.png,.jpg,.jpeg,.webc" }, - if: { arg: "layout", eq: "default" }, + if: { arg: "hasHeroImage", truthy: true }, }, }, args: { rootClass: "spectrum-Dialog", hasFooter: true, + footer: "Do not show this message again.", isDismissible: false, - hasDivider: true, isOpen: true, - showModal: true, + showModal: false, size: "m", layout: "default", + hasCheckbox: true, + hasHeroImage: false, }, parameters: { - layout: "fullscreen", actions: { - handles: ["click .spectrum-Dialog button"], + handles: [], }, docs: { story: { @@ -117,22 +161,26 @@ export default { }, packageJson, metadata, + layout: "fullscreen", }, decorators: [ withUnderlayWrapper, ], + tags: ["migrated"], }; -const ExampleContent = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Auctor augue mauris augue neque gravida. Libero volutpat sed ornare arcu. Quisque egestas diam in arcu cursus euismod quis viverra. Posuere ac ut consequat semper viverra nam libero justo laoreet. Enim ut tellus elementum sagittis vitae et leo duis ut. Neque laoreet suspendisse interdum consectetur libero id faucibus nisl. Diam volutpat commodo sed egestas egestas. Dolor magna eget est lorem ipsum dolor. Vitae suscipit tellus mauris a diam maecenas sed. Turpis in eu mi bibendum neque egestas congue. Rhoncus est pellentesque elit ullamcorper dignissim cras lobortis."; +const ExampleContent = "Standard dialog description. This should briefly communicate any additional information or context about the standard dialog title, to help users make one of the decisions offered by the buttons. Make it no more than a few short sentences."; /** - * The default size for dialog is medium. + * The default size for dialog is medium. The default dialog also has a checkbox in the footer. */ export const Default = DialogGroup.bind({}); Default.args = { heading: "Lorem ipsum dolor sit amet, consectetur adipiscing elit", + header: "* Required", + showModal: true, content: [ - (passthroughs, context) => Typography({ + (passthroughs, context) => Typography({ semantics: "body", size: "m", content: [ ExampleContent ], @@ -165,7 +213,7 @@ DefaultLarge.args = { }; /** - * A dialog that can be dismissed without taking an action. Dismissible dialogs should never have buttons. + * A dialog that can be dismissed without taking an action. */ export const Dismissible = Template.bind({}); Dismissible.tags = ["!dev"]; @@ -177,25 +225,12 @@ Dismissible.args = { isDismissible: true, }; -/** - * Dialogs can forgo the divider if they have content that spans the entire width of the dialog. - */ -export const NoDivider = Template.bind({}); -NoDivider.tags = ["!dev"]; -NoDivider.parameters = { - chromatic: { disableSnapshot: true }, -}; -NoDivider.args = { - ...Default.args, - isDismissible: true, - hasDivider: false, -}; - /** * Dialogs can have a hero or cover image header. */ export const WithHero = Template.bind({}); WithHero.tags = ["!dev"]; +WithHero.storyName = "With hero image"; WithHero.parameters = { docs: { story: { @@ -206,9 +241,7 @@ WithHero.parameters = { }; WithHero.args = { ...Default.args, - isDismissible: true, hasHeroImage: true, - heroImageUrl: "example-card-portrait.png", }; /** @@ -217,54 +250,121 @@ WithHero.args = { export const WithScroll = Template.bind({}); WithScroll.args = { ...Default.args, + content: [ ExampleContent, ExampleContent, ExampleContent, ExampleContent ], customStyles: { "max-block-size": "400px", } }; +WithScroll.storyName = "Scrollable"; WithScroll.tags = ["!dev"]; WithScroll.parameters = { chromatic: { disableSnapshot: true }, }; /** - * A fullscreen dialog will automatically fill almost all of the available screen space. A margin is included around the outside of the dialog. + * The fullscreen variant shows a large dialog background, only revealing a small portion of the page around the outside of the dialog, behind an overlay. The size of the dialog varies with the size of the screen, in both width and height. + * + * Fullscreen dialogs do not support a close button, and are not dismissible. + * + * Implementations may swap out the extra header content and body content for other components, like the [steplist](/docs/components-steplist--docs) and [table](/docs/components-table--docs) seen in this example. Components in the extra header content area will be centered. */ export const Fullscreen = DialogFullscreen.bind({}); +Fullscreen.args = { + ...Default.args, + header:[ + (passthroughs, context) => Steplist({ + ...passthroughs, + items: [ + { + label: "Enter records", + isComplete: true, + }, + { + label: "Confirmation", + isComplete: true, + }, + { + label: "Summary", + isSelected: true, + }, + ], + }, context), + ], + content: [ + (passthroughs, context) => Table({ + ...passthroughs, + showThumbnails: true, + rowItems: [ + { + cellContent: ["Table Row Alpha", "Test", "2"], + }, + { + cellContent: ["Table Row Bravo", "Test", "28"], + }, + { + cellContent: [ + "Table Row Charlie. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.", + "Test", + "23", + ], + }, + { + cellContent: ["Table Row Delta", "Test", "7"], + }, + { + cellContent: ["Summary Row", "", "60"], + isSummaryRow: true, + }, + ], + }, context), + ], + layout: "fullscreen", + hasFooter: false, +}; Fullscreen.parameters = { chromatic: { disableSnapshot: true }, design: { type: "figma", url: "https://www.figma.com/design/Mngz9H7WZLbrCvGQf3GnsY/S2-%2F-Desktop?node-id=61935-5399", - }, + } }; -Fullscreen.args = { - ...Default.args, - layout: "fullscreen", + +// TODO: Because storybook doesn't support for multiple conditionals, we've removed the hasFooter +// arg from the control table for the fullscreen and fullscreenTakeover stories only. Ideally, we +// could have some of our controls display when more than one arg is met to avoid custom argTypes. +// For instance, hasCheckbox would appear when layout: "default", AND footer is truthy. +// https://github.com/storybookjs/storybook/discussions/18542 +Fullscreen.argTypes = { + hasFooter: { table: { disable: true, } }, + header: { table: { disable: true, } }, }; /** - * A fullscreen takeover dialog will fill all of the available screen space. + * The fullscreen takeover variant is similar to the fullscreen variant except that the background covers the entire screen. The page behind the dialog is not visible. This variant should be reserved for workflows where displaying a second dialog on top of the first one is to be expected. + * + * Fullscreen takeover dialogs do not support a close button, and are not dismissible. */ export const FullscreenTakeover = DialogFullscreenTakeover.bind({}); +FullscreenTakeover.storyName = "Fullscreen takeover"; FullscreenTakeover.parameters = { chromatic: { disableSnapshot: true }, design: { type: "figma", url: "https://www.figma.com/design/Mngz9H7WZLbrCvGQf3GnsY/S2-%2F-Desktop?node-id=61935-5399", - }, + } }; FullscreenTakeover.args = { ...Default.args, layout: "fullscreenTakeover", - content: [ () => Typography({ - semantics: "body", - size: "m", - content: [ ExampleContent, ExampleContent, ExampleContent, ExampleContent ], - })], + hasFooter: false, + content: [ ExampleContent, ExampleContent, ExampleContent, ExampleContent, ExampleContent, ExampleContent, ExampleContent, ExampleContent ], +}; +FullscreenTakeover.argTypes = { + hasFooter: { table: { disable: true, } }, }; // ********* VRT ONLY ********* // -export const WithForcedColors = DialogGroup.bind({}); +export const WithForcedColors = Default.bind({}); WithForcedColors.args = Default.args; WithForcedColors.tags = ["!autodocs", "!dev"]; WithForcedColors.parameters = { diff --git a/components/dialog/stories/dialog.test.js b/components/dialog/stories/dialog.test.js index f9b5acb6b2e..a6b6b177114 100644 --- a/components/dialog/stories/dialog.test.js +++ b/components/dialog/stories/dialog.test.js @@ -42,41 +42,34 @@ export const DialogGroup = Variants({ }, { testHeading: "With hero/cover image", + hasHeroImage: true, heroImageUrl: "example-card-portrait.png", }, { testHeading: "With hero/cover image, dismissible", + hasHeroImage: true, heroImageUrl: "example-card-portrait.png", isDismissible: true, hasFooter: false, }, - { - testHeading: "No divider", - hasDivider: false, - }, - { - testHeading: "No divider, dismissible", - hasDivider: false, - isDismissible: true, - hasFooter: false, - }, - { - testHeading: "With hero/cover image, no divider", - hasDivider: false, - heroImageUrl: "example-card-portrait.png", - }, - { - testHeading: "With hero/cover image, no divider, dismissible", - hasDivider: false, - isDismissible: true, - hasFooter: false, - heroImageUrl: "example-card-portrait.png", - }, ], }); export const DialogFullscreen = Variants({ - Template, + Template: (args, context) => { + const { parameters: { showTestingGrid = false } = {} } = context; + + return Template({ + ...args, + /* + * Custom styles were added to make sure the VRTs catch the rounded corners + */ + customStyles: { + margin: showTestingGrid ? "16px" : undefined, + "background-color": showTestingGrid ? "var(--spectrum-gray-100)" : undefined, + }, + }, context); + }, withSizes: false, wrapperStyles: { "background-color": "var(--spectrum-gray-50)" diff --git a/components/dialog/stories/template.js b/components/dialog/stories/template.js index 86d2af5d050..1f20f54109c 100644 --- a/components/dialog/stories/template.js +++ b/components/dialog/stories/template.js @@ -1,6 +1,6 @@ import { Template as ButtonGroup } from "@spectrum-css/buttongroup/stories/template.js"; +import { Template as Checkbox } from "@spectrum-css/checkbox/stories/template.js"; import { Template as CloseButton } from "@spectrum-css/closebutton/stories/template.js"; -import { Template as Divider } from "@spectrum-css/divider/stories/template.js"; import { Template as Modal } from "@spectrum-css/modal/stories/template.js"; import { getRandomId, renderContent } from "@spectrum-css/preview/decorators"; import { html } from "lit"; @@ -14,17 +14,19 @@ import "../index.css"; export const Template = ({ rootClass = "spectrum-Dialog", isDismissible = false, - hasDivider = true, isOpen = true, showModal = false, hasFooter = false, heading, + header = [], + hasCheckbox = false, content = [], footer = [], customClasses = [], id = getRandomId("dialog"), size = "m", layout, + hasHeroImage = false, heroImageUrl, customStyles = {}, } = {}, context = {}) => { @@ -38,10 +40,9 @@ export const Template = ({ <div class=${classMap({ [rootClass]: true, - [`${rootClass}--dismissable`]: isDismissible && ["fullscreen", "fullscreenTakeover"].every(l => layout !== l), + [`${rootClass}--dismissible`]: isDismissible && ["fullscreen", "fullscreenTakeover"].every(l => layout !== l), [`${rootClass}--${layout}`]: typeof layout !== "undefined", [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined", - [`${rootClass}--noDivider`]: !hasDivider, ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), })} id=${ifDefined(id)} @@ -51,72 +52,129 @@ export const Template = ({ style=${ifDefined(styleMap(customStyles))} > <div class="${rootClass}-grid"> - ${when(typeof heroImageUrl !== "undefined", () => + ${when(hasHeroImage, () => html` <div class="spectrum-Dialog-hero" - style="background-image:url(${heroImageUrl})"> + style="background-image:url(${heroImageUrl ? heroImageUrl : "example-card-portrait.png"})"> </div> ` )} - ${when(heading, () => html` - <h1 class="${rootClass}-heading">${heading}</h1> - `)} - ${when(hasDivider, () => - Divider({ - horizontal: true, - customClasses: [`${rootClass}-divider`], - }, context), + <div class="${rootClass}-header"> + ${when(heading, () => html` + <h1 class="${rootClass}-heading">${heading}</h1> + `)} + ${when(header, () => html` + <div class="${rootClass}-headerContentWrapper"> + <div class="${rootClass}-headerContent"> + ${renderContent(header)} + </div> + </div> + `, )} - <section class="${rootClass}-content"> - ${renderContent(content)} - </section> - ${when(hasFooter, () => { - return html` - <footer class="${rootClass}-footer" style=${styleMap({ - "justify-content": "flex-end", - })}> - ${when(typeof footer !== "undefined" && Array.isArray(footer) && footer.length > 0, - () => renderContent(footer), - )} - ${when(!isDismissible, () => html ` - ${ButtonGroup({ - items: [ - { - label: "Cancel", - treatment: "outline", - variant: "secondary", - }, - { - label: "Save", - treatment: "fill", - variant: "accent" - }, - ], - }, context)} - ` - )} - </footer> - `; - })} - ${when(isDismissible && layout !== "fullscreen" && layout !== "fullscreenTakeover", () => + </div> + <section class="${rootClass}-content">${renderContent(content)}</section> + ${when(isDismissible, () => CloseButton({ customClasses: [`${rootClass}-closeButton`], onclick: toggleOpen, }, context) )} + ${when(layout === "fullscreen" || layout === "fullscreenTakeover", () => html` + <div class="${rootClass}-buttonGroup"> + ${ButtonGroup({ + items: [ + { + label: "Cancel", + treatment: "outline", + variant: "secondary", + }, + { + label: "Save", + treatment: "fill", + variant: "accent" + }, + ], + onclick: () => { + updateArgs(toggleOpen); + }, + }, context)} + </div> + `)} + ${when(hasFooter, () => html` + <footer class="${rootClass}-footer"> + ${when(typeof footer !== "undefined", () => html` + <div class="${rootClass}-footerContent"> + ${when(hasCheckbox, () => html` + ${Checkbox({ + label: footer, + }, context)} + `, + () => + renderContent(footer) + )} + </div> + <div class="${rootClass}-buttonGroup"> + ${ButtonGroup({ + items: [ + { + label: "Cancel", + treatment: "outline", + variant: "secondary", + }, + { + label: "Save", + treatment: "fill", + variant: "accent" + }, + ], + onclick: () => { + updateArgs(toggleOpen); + }, + }, context)} + </div> + `, + () => html` + <div class="${rootClass}-noFooter"></div> + <div class="${rootClass}-buttonGroup"> + ${ButtonGroup({ + items: [ + { + label: "Cancel", + treatment: "outline", + variant: "secondary", + }, + { + label: "Save", + treatment: "fill", + variant: "accent" + }, + ], + onclick: () => { + updateArgs(toggleOpen); + }, + }, context)} + </div> + ` + )} + </footer> + `, + () => html` + <div class="${rootClass}-noFooter"></div> + `)} </div> </div> `; if (showModal) { - return html` - ${Modal({ - isOpen, - content: [ () => Dialog], - variant: layout, - }, context)} - `; + return Modal({ + isOpen, + content: Dialog, + variant: layout, + customStyles: { + "--mod-modal-background-color": "transparent" + }, + }, context); } else { return Dialog; diff --git a/components/divider/CHANGELOG.md b/components/divider/CHANGELOG.md index c087775a834..8cebc3961ba 100644 --- a/components/divider/CHANGELOG.md +++ b/components/divider/CHANGELOG.md @@ -122,16 +122,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.5...@spectrum-css/divider@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.5...@spectrum-css/divider@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,8 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.4...@spectrum-css/divider@2.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.4...@spectrum-css/divider@2.2.5) **Note:** Version bump only for package @spectrum-css/divider @@ -148,8 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.3...@spectrum-css/divider@2.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.3...@spectrum-css/divider@2.2.4) **Note:** Version bump only for package @spectrum-css/divider @@ -157,8 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.2...@spectrum-css/divider@2.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.2...@spectrum-css/divider@2.2.3) **Note:** Version bump only for package @spectrum-css/divider @@ -166,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.1...@spectrum-css/divider@2.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.2.1...@spectrum-css/divider@2.2.2) **Note:** Version bump only for package @spectrum-css/divider @@ -175,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/divider @@ -184,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.35...@spectrum-css/divider@2.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.35...@spectrum-css/divider@2.2.0) ### ✨ Features @@ -195,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.35 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.34...@spectrum-css/divider@2.1.35) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.34...@spectrum-css/divider@2.1.35) **Note:** Version bump only for package @spectrum-css/divider @@ -204,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.34 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.33...@spectrum-css/divider@2.1.34) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.33...@spectrum-css/divider@2.1.34) **Note:** Version bump only for package @spectrum-css/divider @@ -213,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.33 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.31...@spectrum-css/divider@2.1.33) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.31...@spectrum-css/divider@2.1.33) **Note:** Version bump only for package @spectrum-css/divider @@ -222,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.32 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.31...@spectrum-css/divider@2.1.32) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.31...@spectrum-css/divider@2.1.32) **Note:** Version bump only for package @spectrum-css/divider @@ -231,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.31 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.30...@spectrum-css/divider@2.1.31) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.30...@spectrum-css/divider@2.1.31) **Note:** Version bump only for package @spectrum-css/divider @@ -240,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.30 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.29...@spectrum-css/divider@2.1.30) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.29...@spectrum-css/divider@2.1.30) **Note:** Version bump only for package @spectrum-css/divider @@ -249,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.29 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.28...@spectrum-css/divider@2.1.29) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.28...@spectrum-css/divider@2.1.29) **Note:** Version bump only for package @spectrum-css/divider @@ -258,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.28 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.27...@spectrum-css/divider@2.1.28) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.27...@spectrum-css/divider@2.1.28) **Note:** Version bump only for package @spectrum-css/divider @@ -267,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.27 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.26...@spectrum-css/divider@2.1.27) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.26...@spectrum-css/divider@2.1.27) **Note:** Version bump only for package @spectrum-css/divider @@ -276,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.26 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.25...@spectrum-css/divider@2.1.26) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.25...@spectrum-css/divider@2.1.26) **Note:** Version bump only for package @spectrum-css/divider @@ -285,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.25 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.24...@spectrum-css/divider@2.1.25) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.24...@spectrum-css/divider@2.1.25) **Note:** Version bump only for package @spectrum-css/divider @@ -294,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.24 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.23...@spectrum-css/divider@2.1.24) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.23...@spectrum-css/divider@2.1.24) **Note:** Version bump only for package @spectrum-css/divider @@ -303,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.23 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.22...@spectrum-css/divider@2.1.23) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.22...@spectrum-css/divider@2.1.23) **Note:** Version bump only for package @spectrum-css/divider @@ -312,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.22 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.21...@spectrum-css/divider@2.1.22) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.21...@spectrum-css/divider@2.1.22) ### 🔙 Reverts @@ -323,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.21 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.20...@spectrum-css/divider@2.1.21) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.20...@spectrum-css/divider@2.1.21) **Note:** Version bump only for package @spectrum-css/divider @@ -332,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.20 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.18...@spectrum-css/divider@2.1.20) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.18...@spectrum-css/divider@2.1.20) **Note:** Version bump only for package @spectrum-css/divider @@ -341,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.19 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.18...@spectrum-css/divider@2.1.19) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.18...@spectrum-css/divider@2.1.19) **Note:** Version bump only for package @spectrum-css/divider @@ -350,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.18 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.17...@spectrum-css/divider@2.1.18) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.17...@spectrum-css/divider@2.1.18) **Note:** Version bump only for package @spectrum-css/divider @@ -359,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.17 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.16...@spectrum-css/divider@2.1.17) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.16...@spectrum-css/divider@2.1.17) **Note:** Version bump only for package @spectrum-css/divider @@ -368,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.16 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.15...@spectrum-css/divider@2.1.16) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.15...@spectrum-css/divider@2.1.16) **Note:** Version bump only for package @spectrum-css/divider @@ -377,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.15 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.14...@spectrum-css/divider@2.1.15) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.14...@spectrum-css/divider@2.1.15) **Note:** Version bump only for package @spectrum-css/divider @@ -386,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.14 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.13...@spectrum-css/divider@2.1.14) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.13...@spectrum-css/divider@2.1.14) **Note:** Version bump only for package @spectrum-css/divider @@ -395,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.13 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.12...@spectrum-css/divider@2.1.13) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.12...@spectrum-css/divider@2.1.13) **Note:** Version bump only for package @spectrum-css/divider @@ -404,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.12 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.11...@spectrum-css/divider@2.1.12) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.11...@spectrum-css/divider@2.1.12) **Note:** Version bump only for package @spectrum-css/divider @@ -413,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.11 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.10...@spectrum-css/divider@2.1.11) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.10...@spectrum-css/divider@2.1.11) **Note:** Version bump only for package @spectrum-css/divider @@ -422,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.10 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.9...@spectrum-css/divider@2.1.10) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.9...@spectrum-css/divider@2.1.10) **Note:** Version bump only for package @spectrum-css/divider @@ -431,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.9 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.8...@spectrum-css/divider@2.1.9) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.8...@spectrum-css/divider@2.1.9) **Note:** Version bump only for package @spectrum-css/divider @@ -440,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.8 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.7...@spectrum-css/divider@2.1.8) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.7...@spectrum-css/divider@2.1.8) **Note:** Version bump only for package @spectrum-css/divider @@ -449,8 +412,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.7 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.6...@spectrum-css/divider@2.1.7) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.6...@spectrum-css/divider@2.1.7) **Note:** Version bump only for package @spectrum-css/divider @@ -458,8 +420,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.6 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.5...@spectrum-css/divider@2.1.6) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.5...@spectrum-css/divider@2.1.6) ### 🐛 Bug fixes @@ -469,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.5 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.4...@spectrum-css/divider@2.1.5) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.4...@spectrum-css/divider@2.1.5) **Note:** Version bump only for package @spectrum-css/divider @@ -478,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.3...@spectrum-css/divider@2.1.4) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/divider@2.1.3...@spectrum-css/divider@2.1.4) **Note:** Version bump only for package @spectrum-css/divider diff --git a/components/divider/dist/metadata.json b/components/divider/dist/metadata.json index a485bf25e3b..15fa0043a7b 100644 --- a/components/divider/dist/metadata.json +++ b/components/divider/dist/metadata.json @@ -42,11 +42,6 @@ "--spectrum-transparent-white-200", "--spectrum-transparent-white-800" ], - "system-theme": [ - "--system-divider-background-color", - "--system-divider-background-color-static-black", - "--system-divider-background-color-static-white" - ], "passthroughs": [], "high-contrast": ["--highcontrast-divider-background-color"] } diff --git a/components/divider/index.css b/components/divider/index.css index 188aeea7ecf..c1095df1c09 100644 --- a/components/divider/index.css +++ b/components/divider/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - /* windows high contrast mode */ @media (forced-colors: active) { .spectrum-Divider { @@ -21,6 +19,15 @@ } .spectrum-Divider { + /* background colors */ + --spectrum-divider-background-color: var(--spectrum-gray-200); + + /* static white background colors */ + --spectrum-divider-background-color-static-white: var(--spectrum-transparent-white-200); + + /* static black background colors */ + --spectrum-divider-background-color-static-black: var(--spectrum-transparent-black-200); + --spectrum-divider-thickness: var(--spectrum-divider-thickness-medium); } @@ -82,8 +89,7 @@ /* vertical dividers */ .spectrum-Divider--vertical { inline-size: var(--mod-divider-thickness, var(--spectrum-divider-thickness)); + margin-block: var(--mod-divider-vertical-margin, 0); block-size: var(--mod-divider-vertical-height, 100%); - - margin-block: var(--mod-divider-vertical-margin); - align-self: var(--mod-divider-vertical-align); + align-self: var(--mod-divider-vertical-align, flex-start); } diff --git a/components/divider/package.json b/components/divider/package.json index 7508cbc28c1..c95a871d5ce 100644 --- a/components/divider/package.json +++ b/components/divider/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/divider/stories/template.js b/components/divider/stories/template.js index ac2ffa2a4c1..cd3d9bc1a64 100644 --- a/components/divider/stories/template.js +++ b/components/divider/stories/template.js @@ -4,9 +4,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { capitalize, upperCase } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Divider", diff --git a/components/divider/themes/express.css b/components/divider/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/divider/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/divider/themes/spectrum-two.css b/components/divider/themes/spectrum-two.css deleted file mode 100644 index 58f8de9a767..00000000000 --- a/components/divider/themes/spectrum-two.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Divider { - /* background colors */ - --spectrum-divider-background-color: var(--spectrum-gray-200); - - /* static white background colors */ - --spectrum-divider-background-color-static-white: var(--spectrum-transparent-white-200); - - /* static black background colors */ - --spectrum-divider-background-color-static-black: var(--spectrum-transparent-black-200); - } -} diff --git a/components/divider/themes/spectrum.css b/components/divider/themes/spectrum.css deleted file mode 100644 index ecfe3f3a46a..00000000000 --- a/components/divider/themes/spectrum.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Divider { - /* background colors */ - --spectrum-divider-background-color: var(--spectrum-gray-300); - - /* static white background colors */ - --spectrum-divider-background-color-static-white: var(--spectrum-transparent-white-300); - - /* static black background colors */ - --spectrum-divider-background-color-static-black: var(--spectrum-transparent-black-300); - } -} diff --git a/components/dropindicator/CHANGELOG.md b/components/dropindicator/CHANGELOG.md index b139b2b2c89..7343ad9eb5c 100644 --- a/components/dropindicator/CHANGELOG.md +++ b/components/dropindicator/CHANGELOG.md @@ -143,16 +143,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.4...@spectrum-css/dropindicator@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.4...@spectrum-css/dropindicator@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +157,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.3...@spectrum-css/dropindicator@4.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.3...@spectrum-css/dropindicator@4.1.4) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -169,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.2...@spectrum-css/dropindicator@4.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.2...@spectrum-css/dropindicator@4.1.3) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -178,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.1...@spectrum-css/dropindicator@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.1.1...@spectrum-css/dropindicator@4.1.2) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -187,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/dropindicator @@ -196,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.4...@spectrum-css/dropindicator@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.4...@spectrum-css/dropindicator@4.1.0) ### ✨ Features @@ -207,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.3...@spectrum-css/dropindicator@4.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.3...@spectrum-css/dropindicator@4.0.4) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -216,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.2...@spectrum-css/dropindicator@4.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.2...@spectrum-css/dropindicator@4.0.3) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -225,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.0...@spectrum-css/dropindicator@4.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.0...@spectrum-css/dropindicator@4.0.2) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -234,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.0...@spectrum-css/dropindicator@4.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@4.0.0...@spectrum-css/dropindicator@4.0.1) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -243,13 +231,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.54...@spectrum-css/dropindicator@4.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.54...@spectrum-css/dropindicator@4.0.0) \*feat(dropindicator)!: migrate to spectrum tokens (#2198)([da24515](https://github.com/adobe/spectrum-css/commit/da24515)), closes[#2198](https://github.com/adobe/spectrum-css/issues/2198) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates DropIndicator to use `@adobe/spectrum-tokens` @@ -258,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.54 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.53...@spectrum-css/dropindicator@3.0.54) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.53...@spectrum-css/dropindicator@3.0.54) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -267,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.53 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.52...@spectrum-css/dropindicator@3.0.53) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.52...@spectrum-css/dropindicator@3.0.53) ### 🔙 Reverts @@ -278,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.52 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.51...@spectrum-css/dropindicator@3.0.52) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.51...@spectrum-css/dropindicator@3.0.52) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -287,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.51 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.50...@spectrum-css/dropindicator@3.0.51) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.50...@spectrum-css/dropindicator@3.0.51) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -296,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.50 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.49...@spectrum-css/dropindicator@3.0.50) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.49...@spectrum-css/dropindicator@3.0.50) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -305,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.48...@spectrum-css/dropindicator@3.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.48...@spectrum-css/dropindicator@3.0.49) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -314,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.47...@spectrum-css/dropindicator@3.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.47...@spectrum-css/dropindicator@3.0.48) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -323,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.46...@spectrum-css/dropindicator@3.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.46...@spectrum-css/dropindicator@3.0.47) ### 🐛 Bug fixes @@ -334,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.45...@spectrum-css/dropindicator@3.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.45...@spectrum-css/dropindicator@3.0.46) **Note:** Version bump only for package @spectrum-css/dropindicator @@ -343,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.44...@spectrum-css/dropindicator@3.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropindicator@3.0.44...@spectrum-css/dropindicator@3.0.45) **Note:** Version bump only for package @spectrum-css/dropindicator diff --git a/components/dropindicator/dist/metadata.json b/components/dropindicator/dist/metadata.json index dd3a7a50810..294d6ad70bb 100644 --- a/components/dropindicator/dist/metadata.json +++ b/components/dropindicator/dist/metadata.json @@ -23,7 +23,6 @@ "--spectrum-dropindicator-color" ], "global": ["--spectrum-border-width-200"], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-dropindicator-color"] } diff --git a/components/dropindicator/package.json b/components/dropindicator/package.json index 5a598a6854b..48dc413fae7 100644 --- a/components/dropindicator/package.json +++ b/components/dropindicator/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/dropzone/CHANGELOG.md b/components/dropzone/CHANGELOG.md index 874c348e83d..7e9eec50bf9 100644 --- a/components/dropzone/CHANGELOG.md +++ b/components/dropzone/CHANGELOG.md @@ -167,16 +167,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.5...@spectrum-css/dropzone@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.5...@spectrum-css/dropzone@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -184,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.4...@spectrum-css/dropzone@5.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.4...@spectrum-css/dropzone@5.2.5) **Note:** Version bump only for package @spectrum-css/dropzone @@ -193,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.3...@spectrum-css/dropzone@5.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.3...@spectrum-css/dropzone@5.2.4) **Note:** Version bump only for package @spectrum-css/dropzone @@ -202,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.2...@spectrum-css/dropzone@5.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.2...@spectrum-css/dropzone@5.2.3) **Note:** Version bump only for package @spectrum-css/dropzone @@ -211,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.1...@spectrum-css/dropzone@5.2.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.2.1...@spectrum-css/dropzone@5.2.2) **Note:** Version bump only for package @spectrum-css/dropzone @@ -220,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/dropzone @@ -229,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.1.0...@spectrum-css/dropzone@5.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.1.0...@spectrum-css/dropzone@5.2.0) **Note:** Version bump only for package @spectrum-css/dropzone @@ -238,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.31...@spectrum-css/dropzone@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.31...@spectrum-css/dropzone@5.1.0) ### ✨ Features @@ -249,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.31 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.30...@spectrum-css/dropzone@5.0.31) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.30...@spectrum-css/dropzone@5.0.31) **Note:** Version bump only for package @spectrum-css/dropzone @@ -258,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.30 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.29...@spectrum-css/dropzone@5.0.30) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.29...@spectrum-css/dropzone@5.0.30) ### 🐛 Bug fixes @@ -269,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.29 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.27...@spectrum-css/dropzone@5.0.29) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.27...@spectrum-css/dropzone@5.0.29) ### 🐛 Bug fixes @@ -280,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.28 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.27...@spectrum-css/dropzone@5.0.28) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.27...@spectrum-css/dropzone@5.0.28) **Note:** Version bump only for package @spectrum-css/dropzone @@ -289,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.27 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.26...@spectrum-css/dropzone@5.0.27) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.26...@spectrum-css/dropzone@5.0.27) **Note:** Version bump only for package @spectrum-css/dropzone @@ -298,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.26 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.25...@spectrum-css/dropzone@5.0.26) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.25...@spectrum-css/dropzone@5.0.26) **Note:** Version bump only for package @spectrum-css/dropzone @@ -307,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.25 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.24...@spectrum-css/dropzone@5.0.25) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.24...@spectrum-css/dropzone@5.0.25) **Note:** Version bump only for package @spectrum-css/dropzone @@ -316,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.24 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.23...@spectrum-css/dropzone@5.0.24) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.23...@spectrum-css/dropzone@5.0.24) **Note:** Version bump only for package @spectrum-css/dropzone @@ -325,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.23 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.22...@spectrum-css/dropzone@5.0.23) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.22...@spectrum-css/dropzone@5.0.23) **Note:** Version bump only for package @spectrum-css/dropzone @@ -334,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.22 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.21...@spectrum-css/dropzone@5.0.22) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.21...@spectrum-css/dropzone@5.0.22) **Note:** Version bump only for package @spectrum-css/dropzone @@ -343,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.21 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.20...@spectrum-css/dropzone@5.0.21) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.20...@spectrum-css/dropzone@5.0.21) **Note:** Version bump only for package @spectrum-css/dropzone @@ -352,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.20 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.19...@spectrum-css/dropzone@5.0.20) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.19...@spectrum-css/dropzone@5.0.20) **Note:** Version bump only for package @spectrum-css/dropzone @@ -361,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.19 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.18...@spectrum-css/dropzone@5.0.19) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.18...@spectrum-css/dropzone@5.0.19) **Note:** Version bump only for package @spectrum-css/dropzone @@ -370,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.18 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.17...@spectrum-css/dropzone@5.0.18) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.17...@spectrum-css/dropzone@5.0.18) ### 🔙 Reverts @@ -381,8 +357,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.17 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.16...@spectrum-css/dropzone@5.0.17) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.16...@spectrum-css/dropzone@5.0.17) **Note:** Version bump only for package @spectrum-css/dropzone @@ -390,8 +365,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.16 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.14...@spectrum-css/dropzone@5.0.16) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.14...@spectrum-css/dropzone@5.0.16) **Note:** Version bump only for package @spectrum-css/dropzone @@ -399,8 +373,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.15 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.14...@spectrum-css/dropzone@5.0.15) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.14...@spectrum-css/dropzone@5.0.15) **Note:** Version bump only for package @spectrum-css/dropzone @@ -408,8 +381,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.13...@spectrum-css/dropzone@5.0.14) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.13...@spectrum-css/dropzone@5.0.14) **Note:** Version bump only for package @spectrum-css/dropzone @@ -417,8 +389,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.12...@spectrum-css/dropzone@5.0.13) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.12...@spectrum-css/dropzone@5.0.13) **Note:** Version bump only for package @spectrum-css/dropzone @@ -426,8 +397,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.11...@spectrum-css/dropzone@5.0.12) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.11...@spectrum-css/dropzone@5.0.12) **Note:** Version bump only for package @spectrum-css/dropzone @@ -435,8 +405,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.10...@spectrum-css/dropzone@5.0.11) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.10...@spectrum-css/dropzone@5.0.11) **Note:** Version bump only for package @spectrum-css/dropzone @@ -444,8 +413,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.9...@spectrum-css/dropzone@5.0.10) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.9...@spectrum-css/dropzone@5.0.10) **Note:** Version bump only for package @spectrum-css/dropzone @@ -453,8 +421,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.8...@spectrum-css/dropzone@5.0.9) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.8...@spectrum-css/dropzone@5.0.9) **Note:** Version bump only for package @spectrum-css/dropzone @@ -462,8 +429,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.7...@spectrum-css/dropzone@5.0.8) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.7...@spectrum-css/dropzone@5.0.8) **Note:** Version bump only for package @spectrum-css/dropzone @@ -471,8 +437,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.6...@spectrum-css/dropzone@5.0.7) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.6...@spectrum-css/dropzone@5.0.7) **Note:** Version bump only for package @spectrum-css/dropzone @@ -480,8 +445,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.5...@spectrum-css/dropzone@5.0.6) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.5...@spectrum-css/dropzone@5.0.6) **Note:** Version bump only for package @spectrum-css/dropzone @@ -489,8 +453,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.4...@spectrum-css/dropzone@5.0.5) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.4...@spectrum-css/dropzone@5.0.5) **Note:** Version bump only for package @spectrum-css/dropzone @@ -498,8 +461,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.3...@spectrum-css/dropzone@5.0.4) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.3...@spectrum-css/dropzone@5.0.4) **Note:** Version bump only for package @spectrum-css/dropzone @@ -507,8 +469,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.2...@spectrum-css/dropzone@5.0.3) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.2...@spectrum-css/dropzone@5.0.3) ### 🐛 Bug fixes @@ -518,8 +479,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.1...@spectrum-css/dropzone@5.0.2) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.1...@spectrum-css/dropzone@5.0.2) **Note:** Version bump only for package @spectrum-css/dropzone @@ -527,8 +487,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.0...@spectrum-css/dropzone@5.0.1) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/dropzone@5.0.0...@spectrum-css/dropzone@5.0.1) **Note:** Version bump only for package @spectrum-css/dropzone diff --git a/components/dropzone/dist/metadata.json b/components/dropzone/dist/metadata.json index 3044ecfc906..dbbe449c8a9 100644 --- a/components/dropzone/dist/metadata.json +++ b/components/dropzone/dist/metadata.json @@ -24,9 +24,11 @@ "--mod-drop-zone-body-font-style", "--mod-drop-zone-body-font-weight", "--mod-drop-zone-body-line-height", + "--mod-drop-zone-body-to-action", "--mod-drop-zone-border-color", "--mod-drop-zone-border-color-hover", "--mod-drop-zone-border-style", + "--mod-drop-zone-border-style--dragged", "--mod-drop-zone-border-style-dragged", "--mod-drop-zone-border-width", "--mod-drop-zone-content-background-color", @@ -62,14 +64,44 @@ "--spectrum-drop-zone-background-color-opacity", "--spectrum-drop-zone-background-color-opacity-filled", "--spectrum-drop-zone-background-color-rgb", + "--spectrum-drop-zone-body-color", + "--spectrum-drop-zone-body-font-family", + "--spectrum-drop-zone-body-font-size", + "--spectrum-drop-zone-body-font-style", + "--spectrum-drop-zone-body-font-weight", + "--spectrum-drop-zone-body-line-height", "--spectrum-drop-zone-body-size", + "--spectrum-drop-zone-body-to-action", "--spectrum-drop-zone-border-color", "--spectrum-drop-zone-border-color-hover", "--spectrum-drop-zone-border-width", "--spectrum-drop-zone-cjk-title-size", "--spectrum-drop-zone-content-background-color", + "--spectrum-drop-zone-content-bottom-to-text", + "--spectrum-drop-zone-content-color", + "--spectrum-drop-zone-content-edge-to-text", + "--spectrum-drop-zone-content-font-family", + "--spectrum-drop-zone-content-font-size", + "--spectrum-drop-zone-content-font-style", + "--spectrum-drop-zone-content-font-weight", + "--spectrum-drop-zone-content-height", + "--spectrum-drop-zone-content-line-height", + "--spectrum-drop-zone-content-max-width", "--spectrum-drop-zone-content-maximum-width", + "--spectrum-drop-zone-content-top-to-text", + "--spectrum-drop-zone-corner-radius", + "--spectrum-drop-zone-heading-color", + "--spectrum-drop-zone-heading-font-family", + "--spectrum-drop-zone-heading-font-size", + "--spectrum-drop-zone-heading-font-style", + "--spectrum-drop-zone-heading-font-weight", + "--spectrum-drop-zone-heading-line-height", + "--spectrum-drop-zone-heading-to-body", "--spectrum-drop-zone-illustration-color", + "--spectrum-drop-zone-illustration-color-hover", + "--spectrum-drop-zone-illustration-to-heading", + "--spectrum-drop-zone-illustration-to-title", + "--spectrum-drop-zone-padding", "--spectrum-drop-zone-title-size", "--spectrum-drop-zone-width" ], @@ -96,16 +128,16 @@ "--spectrum-line-height-100", "--spectrum-neutral-visual-color", "--spectrum-sans-font-family-stack", + "--spectrum-spacing-200", + "--spectrum-spacing-300", "--spectrum-spacing-400", "--spectrum-spacing-75", "--spectrum-white" ], - "system-theme": ["--system-drop-zone-border-color"], "passthroughs": [ "--mod-actionbutton-edge-to-text", "--mod-actionbutton-font-size", "--mod-actionbutton-label-color", - "--mod-illustrated-message-content-maximum-width", "--mod-illustrated-message-description-color", "--mod-illustrated-message-description-font-family", "--mod-illustrated-message-description-font-size", @@ -113,18 +145,19 @@ "--mod-illustrated-message-description-font-weight", "--mod-illustrated-message-description-line-height", "--mod-illustrated-message-description-position", + "--mod-illustrated-message-description-to-action", "--mod-illustrated-message-description-z-index", "--mod-illustrated-message-display", - "--mod-illustrated-message-heading-to-body", "--mod-illustrated-message-heading-to-description", "--mod-illustrated-message-illustration-color", + "--mod-illustrated-message-illustration-to-heading", "--mod-illustrated-message-title-color", "--mod-illustrated-message-title-font-family", "--mod-illustrated-message-title-font-size", "--mod-illustrated-message-title-font-style", "--mod-illustrated-message-title-font-weight", "--mod-illustrated-message-title-line-height", - "--mod-illustrated-message-title-to-heading" + "--mod-illustrated-message-vertical-maximum-width" ], "high-contrast": [ "--highcontrast-drop-zone-border-color-hover", diff --git a/components/dropzone/index.css b/components/dropzone/index.css index 2b3fbefe0c7..4f0f4fb322e 100644 --- a/components/dropzone/index.css +++ b/components/dropzone/index.css @@ -11,75 +11,135 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-DropZone { + --spectrum-drop-zone-padding: var(--spectrum-spacing-400); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-illustration-to-heading: var(--spectrum-spacing-400); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-to-body: var(--spectrum-spacing-75); + --spectrum-drop-zone-border-width: var(--spectrum-border-width-200); + --spectrum-drop-zone-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-drop-zone-border-color: var(--spectrum-gray-200); + + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-font-family: var(--spectrum-sans-font-family-stack); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-font-size: var(--spectrum-drop-zone-title-size); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-line-height: var(--spectrum-heading-line-height); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-color: var(--spectrum-heading-color); + + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-font-family: var(--spectrum-sans-font-family-stack); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-font-style: var(--spectrum-body-sans-serif-font-style); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-font-size: var(--spectrum-drop-zone-body-size); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-line-height: var(--spectrum-body-line-height); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-color: var(--spectrum-body-color); + --spectrum-drop-zone-background-color: var(--spectrum-drop-zone-background-color-rgb); --spectrum-drop-zone-border-color-hover: var(--spectrum-accent-visual-color); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ --spectrum-drop-zone-illustration-color: var(--spectrum-neutral-visual-color); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-illustration-color-hover: var(--spectrum-accent-visual-color); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-illustration-to-title: var(--spectrum-spacing-200); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-body-to-action: var(--spectrum-spacing-300); + + /* Filled styles */ + --spectrum-drop-zone-content-height: var(--spectrum-component-height-300); + --spectrum-drop-zone-content-max-width: var(--spectrum-drop-zone-content-maximum-width); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-content-edge-to-text: var(--spectrum-component-edge-to-text-300); + --spectrum-drop-zone-content-top-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-drop-zone-content-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + + --spectrum-drop-zone-content-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-drop-zone-content-font-weight: var(--spectrum-bold-font-weight); + --spectrum-drop-zone-content-font-style: var(--spectrum-default-font-style); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-content-font-size: var(--spectrum-font-size-300); + --spectrum-drop-zone-content-line-height: var(--spectrum-line-height-100); + --spectrum-drop-zone-content-background-color: var(--spectrum-accent-visual-color); + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-content-color: var(--spectrum-white); - /* @passthrough start -- IllustratedMessage -- settings for a nested illustrated message */ - --mod-illustrated-message-content-maximum-width: var(--mod-drop-zone-content-maximum-width, var(--spectrum-drop-zone-content-maximum-width)); + /* Settings for a nested illustrated message */ + --mod-illustrated-message-vertical-maximum-width: var(--mod-drop-zone-content-maximum-width, var(--spectrum-drop-zone-content-maximum-width)); --mod-illustrated-message-illustration-color: var(--mod-drop-zone-illustration-color, var(--spectrum-drop-zone-illustration-color)); - --mod-illustrated-message-title-to-heading: var(--mod-drop-zone-illustration-to-heading, var(--spectrum-spacing-400)); - --mod-illustrated-message-heading-to-body: var(--mod-drop-zone-heading-to-body, var(--spectrum-spacing-75)); - --mod-illustrated-message-title-font-family: var(--mod-drop-zone-heading-font-family, var(--spectrum-sans-font-family-stack)); - --mod-illustrated-message-title-font-weight: var(--mod-drop-zone-heading-font-weight, var(--spectrum-heading-sans-serif-font-weight)); - --mod-illustrated-message-title-font-style: var(--mod-drop-zone-heading-font-style, var(--spectrum-heading-sans-serif-font-style)); - --mod-illustrated-message-title-font-size: var(--mod-drop-zone-heading-font-size, var(--spectrum-drop-zone-title-size)); - --mod-illustrated-message-title-line-height: var(--mod-drop-zone-heading-line-height, var(--spectrum-heading-line-height)); - --mod-illustrated-message-title-color: var(--mod-drop-zone-heading-color, var(--spectrum-heading-color)); + --mod-illustrated-message-illustration-to-heading: var(--mod-drop-zone-illustration-to-heading, var(--spectrum-drop-zone-illustration-to-heading)); + --mod-illustrated-message-heading-to-description: var(--mod-drop-zone-heading-to-body, var(--spectrum-drop-zone-heading-to-body)); + --mod-illustrated-message-description-to-action: var(--mod-drop-zone-body-to-action, var(--spectrum-drop-zone-body-to-action)); + --mod-illustrated-message-title-font-family: var(--mod-drop-zone-heading-font-family, var(--spectrum-drop-zone-heading-font-family)); + --mod-illustrated-message-title-font-weight: var(--mod-drop-zone-heading-font-weight, var(--spectrum-drop-zone-heading-font-weight)); + --mod-illustrated-message-title-font-style: var(--mod-drop-zone-heading-font-style, var(--spectrum-drop-zone-heading-font-style)); + --mod-illustrated-message-title-font-size: var(--mod-drop-zone-heading-font-size, var(--spectrum-drop-zone-heading-font-size)); + --mod-illustrated-message-title-line-height: var(--mod-drop-zone-heading-line-height, var(--spectrum-drop-zone-heading-line-height)); + --mod-illustrated-message-title-color: var(--mod-drop-zone-heading-color, var(--spectrum-drop-zone-heading-color)); --mod-illustrated-message-description-position: relative; --mod-illustrated-message-description-z-index: 10; - --mod-illustrated-message-heading-to-description: 0; - --mod-illustrated-message-description-font-family: var(--mod-drop-zone-body-font-family, var(--spectrum-sans-font-family-stack)); - --mod-illustrated-message-description-font-weight: var(--mod-drop-zone-body-font-weight, var(--spectrum-body-sans-serif-font-weight)); - --mod-illustrated-message-description-font-style: var(--mod-drop-zone-body-font-style, var(--spectrum-body-sans-serif-font-style)); - --mod-illustrated-message-description-font-size: var(--mod-drop-zone-body-font-size, var(--spectrum-drop-zone-body-size)); - --mod-illustrated-message-description-line-height: var(--mod-drop-zone-body-line-height, var(--spectrum-body-line-height)); - --mod-illustrated-message-description-color: var(--mod-drop-zone-body-color, var(--spectrum-body-color)); - /* @passthrough end */ - - /* @passthrough start -- ActionButton settings for a nested actionbutton */ - --mod-actionbutton-font-size: var(--mod-drop-zone-content-font-size, var(--spectrum-font-size-300)); - --mod-actionbutton-label-color: var(--mod-drop-zone-content-color, var(--spectrum-white)); - --mod-actionbutton-edge-to-text: var(--mod-drop-zone-content-edge-to-text, var(--spectrum-component-edge-to-text-300)); - /* @passthrough end */ + --mod-illustrated-message-description-font-family: var(--mod-drop-zone-body-font-family, var(--spectrum-drop-zone-body-font-family)); + --mod-illustrated-message-description-font-weight: var(--mod-drop-zone-body-font-weight, var(--spectrum-drop-zone-body-font-weight)); + --mod-illustrated-message-description-font-style: var(--mod-drop-zone-body-font-style, var(--spectrum-drop-zone-body-font-style)); + --mod-illustrated-message-description-font-size: var(--mod-drop-zone-body-font-size, var(--spectrum-drop-zone-body-font-size)); + --mod-illustrated-message-description-line-height: var(--mod-drop-zone-body-line-height, var(--spectrum-drop-zone-body-line-height)); + --mod-illustrated-message-description-color: var(--mod-drop-zone-body-color, var(--spectrum-drop-zone-body-color)); + + /* Settings for a nested actionbutton */ + --mod-actionbutton-font-size: var(--mod-drop-zone-content-font-size, var(--spectrum-drop-zone-content-font-size)); + --mod-actionbutton-label-color: var(--mod-drop-zone-content-color, var(--spectrum-drop-zone-content-color)); + --mod-actionbutton-edge-to-text: var(--mod-drop-zone-content-edge-to-text, var(--spectrum-drop-zone-content-edge-to-text)); + + /* cjk language support */ + &:lang(ja), + &:lang(zh), + &:lang(ko) { + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ + --spectrum-drop-zone-heading-font-size: var(--spectrum-drop-zone-cjk-title-size); + } +} +.spectrum-DropZone { box-sizing: border-box; inline-size: var(--mod-drop-zone-width, var(--spectrum-drop-zone-width)); - padding: calc(var(--mod-drop-zone-padding, var(--spectrum-spacing-400)) - var(--mod-drop-zone-border-width, var(--spectrum-drop-zone-border-width))); + padding: calc(var(--mod-drop-zone-padding, var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width, var(--spectrum-drop-zone-border-width))); text-align: center; border-color: var(--mod-drop-zone-border-color, var(--spectrum-drop-zone-border-color)); border-width: var(--mod-drop-zone-border-width, var(--spectrum-drop-zone-border-width)); - border-radius: var(--mod-drop-zone-corner-radius, var(--spectrum-corner-radius-100)); + border-radius: var(--mod-drop-zone-corner-radius, var(--spectrum-drop-zone-corner-radius)); border-style: var(--mod-drop-zone-border-style, dashed); - background-color: var(--mod-drop-zone-background-color, var(--spectrum-drop-zone-background-color)); background-size: cover; - - &:lang(ja), - &:lang(zh), - &:lang(ko) { - /* @passthrough -- updated value for cjk font size */ - --mod-illustrated-message-title-font-size: var(--spectrum-drop-zone-cjk-title-size); - } + background-color: var(--mod-drop-zone-background-color, var(--spectrum-drop-zone-background-color)); &.is-dragged { - --mod-drop-zone-border-style: var(--mod-drop-zone-border-style-dragged, solid); + /* @deprecation --mod-drop-zone-border-style--dragged will be removed during the S2 migration; please update your code to --mod-drop-zone-border-style-dragged */ + --mod-drop-zone-border-style: var(--mod-drop-zone-border-style--dragged, var(--mod-drop-zone-border-style-dragged, solid)); --mod-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color), var(--mod-drop-zone-background-color-opacity, var(--spectrum-drop-zone-background-color-opacity))); - --mod-drop-zone-border-color: var(--highcontrast-drop-zone-border-color-hover, var(--mod-drop-zone-border-color-hover, var(--spectrum-drop-zone-border-color-hover))); + --spectrum-drop-zone-border-color: var(--highcontrast-drop-zone-border-color-hover, var(--mod-drop-zone-border-color-hover, var(--spectrum-drop-zone-border-color-hover))); - /* @passthrough -- Updated values for a nested illustrated message when state changes */ - --mod-illustrated-message-illustration-color: var(--mod-drop-zone-illustration-color-hover, var(--spectrum-accent-visual-color)); + /* Updated values for a nested illustrated message when state changes */ + --mod-illustrated-message-illustration-color: var(--mod-drop-zone-illustration-color-hover, var(--spectrum-drop-zone-illustration-color-hover)); } &.is-filled { /* note: the below applies to .is-filled.is-dragged but works here b/c dragged is the only state applying background color */ --mod-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color), var(--mod-drop-zone-background-color-opacity-filled, var(--spectrum-drop-zone-background-color-opacity-filled))); - /* @passthrough -- Updated values for a nested illustrated message when state changes */ + /* Updated values for a nested illustrated message when state changes */ --mod-illustrated-message-display: none; } @@ -89,8 +149,7 @@ &:focus-visible { --mod-drop-zone-border-style: solid; - --mod-drop-zone-border-color: var(--highcontrast-drop-zone-border-color-hover, var(--mod-drop-zone-border-color-hover, var(--spectrum-drop-zone-border-color-hover))); - + --spectrum-drop-zone-border-color: var(--highcontrast-drop-zone-border-color-hover, var(--mod-drop-zone-border-color-hover, var(--spectrum-drop-zone-border-color-hover))); outline: 0; } } @@ -107,16 +166,16 @@ .spectrum-DropZone-button { box-sizing: border-box; border: none; - block-size: var(--mod-drop-zone-content-height, var(--spectrum-component-height-300)); - max-inline-size: var(--mod-drop-zone-content-max-width, var(--spectrum-drop-zone-content-maximum-width)); - padding-block-start: var(--mod-drop-zone-content-top-to-text, var(--spectrum-component-top-to-text-300)); - padding-block-end: var(--mod-drop-zone-content-bottom-to-text, var(--spectrum-component-bottom-to-text-300)); + block-size: var(--mod-drop-zone-content-height, var(--spectrum-drop-zone-content-height)); + max-inline-size: var(--mod-drop-zone-content-max-width, var(--spectrum-drop-zone-content-max-width)); + padding-block-start: var(--mod-drop-zone-content-top-to-text, var(--spectrum-drop-zone-content-top-to-text)); + padding-block-end: var(--mod-drop-zone-content-bottom-to-text, var(--spectrum-drop-zone-content-bottom-to-text)); background-color: var(--mod-drop-zone-content-background-color, var(--spectrum-drop-zone-content-background-color)); - font-family: var(--mod-drop-zone-content-font-family, var(--spectrum-sans-font-family-stack)); - font-weight: var(--mod-drop-zone-content-font-weight, var(--spectrum-bold-font-weight)); - font-style: var(--mod-drop-zone-content-font-style, var(--spectrum-default-font-style)); - line-height: var(--mod-drop-zone-content-line-height, var(--spectrum-line-height-100)); + font-family: var(--mod-drop-zone-content-font-family, var(--spectrum-drop-zone-content-font-family)); + font-weight: var(--mod-drop-zone-content-font-weight, var(--spectrum-drop-zone-content-font-weight)); + font-style: var(--mod-drop-zone-content-font-style, var(--spectrum-drop-zone-content-font-style)); + line-height: var(--mod-drop-zone-content-line-height, var(--spectrum-drop-zone-content-line-height)); &:hover, &:focus { @@ -127,11 +186,13 @@ /********* WHCM *********/ @media (forced-colors: active) { .spectrum-DropZone { + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ --highcontrast-drop-zone-illustration-color: CanvasText; --highcontrast-drop-zone-border-color-hover: Highlight; - /* @passthrough -- updated values for a nested illustrated message when in a high contrast state */ + /* Updated values for a nested illustrated message when in a high contrast state */ + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used in illustrated */ --highcontrast-illustrated-message-illustration-color: var(--highcontrast-drop-zone-illustration-color); } } diff --git a/components/dropzone/package.json b/components/dropzone/package.json index 8883f207a50..73eac84e4f3 100644 --- a/components/dropzone/package.json +++ b/components/dropzone/package.json @@ -25,10 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", + "@spectrum-css/actionbutton": ">=7", "@spectrum-css/illustratedmessage": ">=7", "@spectrum-css/link": ">=5", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/actionbutton": { @@ -42,11 +42,7 @@ "@spectrum-css/actionbutton": "7.0.1", "@spectrum-css/illustratedmessage": "9.0.1", "@spectrum-css/link": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/dropzone/stories/dropzone.stories.js b/components/dropzone/stories/dropzone.stories.js index 9d0d7e4c3d2..7bca0bd87a7 100644 --- a/components/dropzone/stories/dropzone.stories.js +++ b/components/dropzone/stories/dropzone.stories.js @@ -27,12 +27,16 @@ export default { if: { arg: "isDragged", truthy: true }, }, ...IllustratedMessage.argTypes, + hasButtons: { table: { disable: true }}, + isHorizontal: { table: { disable: true }}, label: ActionButton.argTypes.label, }, args: { rootClass: "spectrum-DropZone", isDragged: false, isFilled: false, + title: "Drag and drop your file", + description: "Or, select a file from your computer.", }, parameters: { design: { @@ -46,14 +50,12 @@ export default { export const Default = DropzoneGroup.bind({}); Default.args = { - heading: "Drag and drop your file", description: [ () => { return html`${Link({ url: "#", text: "Select a file" })} from your computer.`; }, ], label: "Drop file to replace", - useAccentColor: true, customStyles: { width: "300px", }, diff --git a/components/dropzone/stories/template.js b/components/dropzone/stories/template.js index 9eb2dfface7..b9d6013a0b0 100644 --- a/components/dropzone/stories/template.js +++ b/components/dropzone/stories/template.js @@ -7,9 +7,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-DropZone", @@ -17,7 +14,7 @@ export const Template = ({ isFilled = false, customClasses = [], customStyles = {}, - heading, + title, description, label, id = getRandomId("dropzone"), @@ -35,7 +32,7 @@ export const Template = ({ tabindex="0" style=${styleMap(customStyles)} > - ${IllustratedMessage({ heading, description }, context)} + ${IllustratedMessage({ title, description }, context)} <div class="${rootClass}-content"> ${ActionButton( diff --git a/components/dropzone/themes/express.css b/components/dropzone/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/dropzone/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/dropzone/themes/spectrum-two.css b/components/dropzone/themes/spectrum-two.css deleted file mode 100644 index cf71b766c33..00000000000 --- a/components/dropzone/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-DropZone { - --spectrum-drop-zone-border-color: var(--spectrum-gray-200); - } -} diff --git a/components/dropzone/themes/spectrum.css b/components/dropzone/themes/spectrum.css deleted file mode 100644 index 0760508568f..00000000000 --- a/components/dropzone/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-DropZone { - --spectrum-drop-zone-border-color: var(--spectrum-gray-300); - } -} diff --git a/components/fieldgroup/CHANGELOG.md b/components/fieldgroup/CHANGELOG.md index ff401cbe6cc..40bcc6fb3ea 100644 --- a/components/fieldgroup/CHANGELOG.md +++ b/components/fieldgroup/CHANGELOG.md @@ -172,16 +172,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.4...@spectrum-css/fieldgroup@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.4...@spectrum-css/fieldgroup@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -189,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.3...@spectrum-css/fieldgroup@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.3...@spectrum-css/fieldgroup@4.2.4) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -198,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.2...@spectrum-css/fieldgroup@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.2...@spectrum-css/fieldgroup@4.2.3) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -207,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.1...@spectrum-css/fieldgroup@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.2.1...@spectrum-css/fieldgroup@4.2.2) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -216,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -225,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.1.1...@spectrum-css/fieldgroup@4.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.1.1...@spectrum-css/fieldgroup@4.2.0) ### ✨ Features @@ -236,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.1.0...@spectrum-css/fieldgroup@4.1.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.1.0...@spectrum-css/fieldgroup@4.1.1) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -245,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.80...@spectrum-css/fieldgroup@4.1.0) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.80...@spectrum-css/fieldgroup@4.1.0) ### ✨ Features @@ -256,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.80 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.78...@spectrum-css/fieldgroup@4.0.80) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.78...@spectrum-css/fieldgroup@4.0.80) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -265,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.79 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.78...@spectrum-css/fieldgroup@4.0.79) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.78...@spectrum-css/fieldgroup@4.0.79) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -274,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.78 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.77...@spectrum-css/fieldgroup@4.0.78) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.77...@spectrum-css/fieldgroup@4.0.78) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -283,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.77 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.76...@spectrum-css/fieldgroup@4.0.77) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.76...@spectrum-css/fieldgroup@4.0.77) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -292,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.76 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.75...@spectrum-css/fieldgroup@4.0.76) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.75...@spectrum-css/fieldgroup@4.0.76) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -301,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.75 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.74...@spectrum-css/fieldgroup@4.0.75) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.74...@spectrum-css/fieldgroup@4.0.75) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -310,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.74 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.73...@spectrum-css/fieldgroup@4.0.74) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.73...@spectrum-css/fieldgroup@4.0.74) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -319,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.73 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.72...@spectrum-css/fieldgroup@4.0.73) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.72...@spectrum-css/fieldgroup@4.0.73) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -328,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.72 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.71...@spectrum-css/fieldgroup@4.0.72) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.71...@spectrum-css/fieldgroup@4.0.72) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -337,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.71 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.70...@spectrum-css/fieldgroup@4.0.71) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.70...@spectrum-css/fieldgroup@4.0.71) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -346,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.70 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.69...@spectrum-css/fieldgroup@4.0.70) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.69...@spectrum-css/fieldgroup@4.0.70) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -355,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.69 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.68...@spectrum-css/fieldgroup@4.0.69) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.68...@spectrum-css/fieldgroup@4.0.69) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -364,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.68 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.67...@spectrum-css/fieldgroup@4.0.68) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.67...@spectrum-css/fieldgroup@4.0.68) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -373,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.67 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.66...@spectrum-css/fieldgroup@4.0.67) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.66...@spectrum-css/fieldgroup@4.0.67) ### 🔙 Reverts @@ -384,8 +360,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.66 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.65...@spectrum-css/fieldgroup@4.0.66) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.65...@spectrum-css/fieldgroup@4.0.66) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -393,8 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.65 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.63...@spectrum-css/fieldgroup@4.0.65) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.63...@spectrum-css/fieldgroup@4.0.65) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -402,8 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.64 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.63...@spectrum-css/fieldgroup@4.0.64) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.63...@spectrum-css/fieldgroup@4.0.64) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -411,8 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.63 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.62...@spectrum-css/fieldgroup@4.0.63) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.62...@spectrum-css/fieldgroup@4.0.63) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -420,8 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.62 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.61...@spectrum-css/fieldgroup@4.0.62) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.61...@spectrum-css/fieldgroup@4.0.62) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -429,8 +400,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.61 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.60...@spectrum-css/fieldgroup@4.0.61) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.60...@spectrum-css/fieldgroup@4.0.61) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -438,8 +408,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.60 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.59...@spectrum-css/fieldgroup@4.0.60) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.59...@spectrum-css/fieldgroup@4.0.60) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -447,8 +416,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.59 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.58...@spectrum-css/fieldgroup@4.0.59) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.58...@spectrum-css/fieldgroup@4.0.59) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -456,8 +424,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.58 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.57...@spectrum-css/fieldgroup@4.0.58) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.57...@spectrum-css/fieldgroup@4.0.58) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -465,8 +432,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.57 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.56...@spectrum-css/fieldgroup@4.0.57) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.56...@spectrum-css/fieldgroup@4.0.57) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -474,8 +440,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.56 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.55...@spectrum-css/fieldgroup@4.0.56) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.55...@spectrum-css/fieldgroup@4.0.56) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -483,8 +448,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.55 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.54...@spectrum-css/fieldgroup@4.0.55) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.54...@spectrum-css/fieldgroup@4.0.55) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -492,8 +456,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.54 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.53...@spectrum-css/fieldgroup@4.0.54) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.53...@spectrum-css/fieldgroup@4.0.54) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -501,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.53 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.52...@spectrum-css/fieldgroup@4.0.53) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.52...@spectrum-css/fieldgroup@4.0.53) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -510,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.52 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.51...@spectrum-css/fieldgroup@4.0.52) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.51...@spectrum-css/fieldgroup@4.0.52) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -519,8 +480,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.51 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.50...@spectrum-css/fieldgroup@4.0.51) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.50...@spectrum-css/fieldgroup@4.0.51) ### 🐛 Bug fixes @@ -530,8 +490,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.50 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.49...@spectrum-css/fieldgroup@4.0.50) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.49...@spectrum-css/fieldgroup@4.0.50) **Note:** Version bump only for package @spectrum-css/fieldgroup @@ -539,8 +498,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.49 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.48...@spectrum-css/fieldgroup@4.0.49) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldgroup@4.0.48...@spectrum-css/fieldgroup@4.0.49) **Note:** Version bump only for package @spectrum-css/fieldgroup diff --git a/components/fieldgroup/dist/metadata.json b/components/fieldgroup/dist/metadata.json index c8875b9d3a9..3c2343b1019 100644 --- a/components/fieldgroup/dist/metadata.json +++ b/components/fieldgroup/dist/metadata.json @@ -13,7 +13,6 @@ "modifiers": [], "component": [], "global": ["--spectrum-spacing-300"], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/fieldgroup/package.json b/components/fieldgroup/package.json index 7167117832e..85c1dc562ea 100644 --- a/components/fieldgroup/package.json +++ b/components/fieldgroup/package.json @@ -25,10 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/checkbox": ">=9", + "@spectrum-css/checkbox": ">=10", "@spectrum-css/helptext": ">=5", "@spectrum-css/radio": ">=9", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/checkbox": { @@ -45,11 +45,7 @@ "@spectrum-css/checkbox": "10.0.1", "@spectrum-css/helptext": "7.0.1", "@spectrum-css/radio": "10.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/fieldlabel/CHANGELOG.md b/components/fieldlabel/CHANGELOG.md index 8a435f363d1..5ec875e4079 100644 --- a/components/fieldlabel/CHANGELOG.md +++ b/components/fieldlabel/CHANGELOG.md @@ -143,16 +143,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.6...@spectrum-css/fieldlabel@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.6...@spectrum-css/fieldlabel@8.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +157,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.5...@spectrum-css/fieldlabel@7.3.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.5...@spectrum-css/fieldlabel@7.3.6) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -169,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.4...@spectrum-css/fieldlabel@7.3.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.4...@spectrum-css/fieldlabel@7.3.5) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -178,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.3...@spectrum-css/fieldlabel@7.3.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.3...@spectrum-css/fieldlabel@7.3.4) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -187,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.2...@spectrum-css/fieldlabel@7.3.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.2...@spectrum-css/fieldlabel@7.3.3) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -196,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.1...@spectrum-css/fieldlabel@7.3.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.3.1...@spectrum-css/fieldlabel@7.3.2) ### 🐛 Bug fixes @@ -207,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -216,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.3.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.2.1...@spectrum-css/fieldlabel@7.3.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.2.1...@spectrum-css/fieldlabel@7.3.0) ### ✨ Features @@ -227,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.2.0...@spectrum-css/fieldlabel@7.2.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.2.0...@spectrum-css/fieldlabel@7.2.1) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -236,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.0 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.5...@spectrum-css/fieldlabel@7.2.0) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.5...@spectrum-css/fieldlabel@7.2.0) ### ✨ Features @@ -247,8 +235,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.5 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.3...@spectrum-css/fieldlabel@7.1.5) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.3...@spectrum-css/fieldlabel@7.1.5) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -256,8 +243,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.4 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.3...@spectrum-css/fieldlabel@7.1.4) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.3...@spectrum-css/fieldlabel@7.1.4) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -265,8 +251,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.3 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.2...@spectrum-css/fieldlabel@7.1.3) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.2...@spectrum-css/fieldlabel@7.1.3) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -274,8 +259,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.2 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.1...@spectrum-css/fieldlabel@7.1.2) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.1...@spectrum-css/fieldlabel@7.1.2) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -283,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.1 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.0...@spectrum-css/fieldlabel@7.1.1) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.1.0...@spectrum-css/fieldlabel@7.1.1) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -292,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.0 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.35...@spectrum-css/fieldlabel@7.1.0) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.35...@spectrum-css/fieldlabel@7.1.0) ### ✨ Features @@ -303,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.35 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.34...@spectrum-css/fieldlabel@7.0.35) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.34...@spectrum-css/fieldlabel@7.0.35) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -312,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.34 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.33...@spectrum-css/fieldlabel@7.0.34) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.33...@spectrum-css/fieldlabel@7.0.34) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -321,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.33 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.32...@spectrum-css/fieldlabel@7.0.33) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.32...@spectrum-css/fieldlabel@7.0.33) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -330,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.32 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.31...@spectrum-css/fieldlabel@7.0.32) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.31...@spectrum-css/fieldlabel@7.0.32) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -339,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.31 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.30...@spectrum-css/fieldlabel@7.0.31) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.30...@spectrum-css/fieldlabel@7.0.31) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -348,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.30 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.29...@spectrum-css/fieldlabel@7.0.30) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.29...@spectrum-css/fieldlabel@7.0.30) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -357,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.29 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.28...@spectrum-css/fieldlabel@7.0.29) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.28...@spectrum-css/fieldlabel@7.0.29) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -366,8 +341,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.28 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.27...@spectrum-css/fieldlabel@7.0.28) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.27...@spectrum-css/fieldlabel@7.0.28) ### 🔙 Reverts @@ -377,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.27 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.26...@spectrum-css/fieldlabel@7.0.27) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.26...@spectrum-css/fieldlabel@7.0.27) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -386,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.26 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.24...@spectrum-css/fieldlabel@7.0.26) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.24...@spectrum-css/fieldlabel@7.0.26) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -395,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.25 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.24...@spectrum-css/fieldlabel@7.0.25) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.24...@spectrum-css/fieldlabel@7.0.25) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -404,8 +375,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.24 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.23...@spectrum-css/fieldlabel@7.0.24) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.23...@spectrum-css/fieldlabel@7.0.24) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -413,8 +383,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.23 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.22...@spectrum-css/fieldlabel@7.0.23) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.22...@spectrum-css/fieldlabel@7.0.23) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -422,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.22 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.21...@spectrum-css/fieldlabel@7.0.22) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.21...@spectrum-css/fieldlabel@7.0.22) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -431,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.21 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.20...@spectrum-css/fieldlabel@7.0.21) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.20...@spectrum-css/fieldlabel@7.0.21) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -440,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.20 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.19...@spectrum-css/fieldlabel@7.0.20) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.19...@spectrum-css/fieldlabel@7.0.20) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -449,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.19 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.18...@spectrum-css/fieldlabel@7.0.19) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.18...@spectrum-css/fieldlabel@7.0.19) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -458,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.18 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.17...@spectrum-css/fieldlabel@7.0.18) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.17...@spectrum-css/fieldlabel@7.0.18) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -467,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.17 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.16...@spectrum-css/fieldlabel@7.0.17) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.16...@spectrum-css/fieldlabel@7.0.17) ### 🐛 Bug fixes @@ -478,8 +441,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.16 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.15...@spectrum-css/fieldlabel@7.0.16) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.15...@spectrum-css/fieldlabel@7.0.16) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -487,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.15 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.14...@spectrum-css/fieldlabel@7.0.15) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.14...@spectrum-css/fieldlabel@7.0.15) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -496,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.14 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.13...@spectrum-css/fieldlabel@7.0.14) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.13...@spectrum-css/fieldlabel@7.0.14) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -505,8 +465,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.13 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.12...@spectrum-css/fieldlabel@7.0.13) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.12...@spectrum-css/fieldlabel@7.0.13) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -514,8 +473,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.12 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.11...@spectrum-css/fieldlabel@7.0.12) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.11...@spectrum-css/fieldlabel@7.0.12) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -523,8 +481,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.11 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.10...@spectrum-css/fieldlabel@7.0.11) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.10...@spectrum-css/fieldlabel@7.0.11) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -532,8 +489,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.10 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.9...@spectrum-css/fieldlabel@7.0.10) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.9...@spectrum-css/fieldlabel@7.0.10) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -541,8 +497,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.9 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.8...@spectrum-css/fieldlabel@7.0.9) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.8...@spectrum-css/fieldlabel@7.0.9) ### 🐛 Bug fixes @@ -552,8 +507,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.7...@spectrum-css/fieldlabel@7.0.8) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.7...@spectrum-css/fieldlabel@7.0.8) **Note:** Version bump only for package @spectrum-css/fieldlabel @@ -561,8 +515,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.6...@spectrum-css/fieldlabel@7.0.7) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/fieldlabel@7.0.6...@spectrum-css/fieldlabel@7.0.7) **Note:** Version bump only for package @spectrum-css/fieldlabel diff --git a/components/fieldlabel/dist/metadata.json b/components/fieldlabel/dist/metadata.json index cc26c19a022..2a55dbd82f4 100644 --- a/components/fieldlabel/dist/metadata.json +++ b/components/fieldlabel/dist/metadata.json @@ -5,9 +5,10 @@ ".spectrum-FieldLabel--left", ".spectrum-FieldLabel--right", ".spectrum-FieldLabel--sizeL", - ".spectrum-FieldLabel--sizeM", ".spectrum-FieldLabel--sizeS", ".spectrum-FieldLabel--sizeXL", + ".spectrum-FieldLabel--staticBlack", + ".spectrum-FieldLabel--staticWhite", ".spectrum-FieldLabel-requiredIcon", ".spectrum-FieldLabel.is-disabled", ".spectrum-FieldLabel:lang(ja)", @@ -15,35 +16,20 @@ ".spectrum-FieldLabel:lang(zh)" ], "modifiers": [ - "--mod-disabled-content-color", - "--mod-field-label-asterisk-vertical-align", - "--mod-field-label-bottom-to-text", - "--mod-field-label-text-to-asterisk", - "--mod-field-label-top-to-text", - "--mod-fieldlabel-color", + "--mod-fieldlabel-asterisk-vertical-align", + "--mod-fieldlabel-bottom-to-text", "--mod-fieldlabel-font-size", "--mod-fieldlabel-font-weight", "--mod-fieldlabel-line-height", "--mod-fieldlabel-line-height-cjk", - "--mod-fieldlabel-margin-block", - "--mod-fieldlabel-margin-block-end", - "--mod-fieldlabel-margin-block-start", - "--mod-fieldlabel-margin-inline", - "--mod-fieldlabel-margin-inline-end", - "--mod-fieldlabel-margin-inline-start", "--mod-fieldlabel-min-height", - "--mod-fieldlabel-padding-block", "--mod-fieldlabel-padding-inline", "--mod-fieldlabel-side-margin-block-start", - "--mod-fieldlabel-side-padding-right" + "--mod-fieldlabel-side-padding-right", + "--mod-fieldlabel-text-to-asterisk", + "--mod-fieldlabel-top-to-text" ], "component": [ - "--spectrum-field-label-bottom-to-text", - "--spectrum-field-label-font-size", - "--spectrum-field-label-min-height", - "--spectrum-field-label-side-margin-block-start", - "--spectrum-field-label-side-padding-right", - "--spectrum-field-label-text-to-asterisk", "--spectrum-field-label-text-to-asterisk-extra-large", "--spectrum-field-label-text-to-asterisk-large", "--spectrum-field-label-text-to-asterisk-medium", @@ -52,30 +38,44 @@ "--spectrum-field-label-top-margin-large", "--spectrum-field-label-top-margin-medium", "--spectrum-field-label-top-margin-small", - "--spectrum-field-label-top-to-text" + "--spectrum-fieldlabel-bottom-to-text", + "--spectrum-fieldlabel-color", + "--spectrum-fieldlabel-font-size", + "--spectrum-fieldlabel-font-weight", + "--spectrum-fieldlabel-line-height", + "--spectrum-fieldlabel-min-height", + "--spectrum-fieldlabel-side-margin-block-start", + "--spectrum-fieldlabel-side-padding-right", + "--spectrum-fieldlabel-text-to-asterisk", + "--spectrum-fieldlabel-top-to-text" ], "global": [ + "--spectrum-black", "--spectrum-cjk-line-height-100", "--spectrum-component-bottom-to-text-100", "--spectrum-component-bottom-to-text-200", + "--spectrum-component-bottom-to-text-300", "--spectrum-component-bottom-to-text-75", "--spectrum-component-height-100", "--spectrum-component-height-200", + "--spectrum-component-height-300", "--spectrum-component-height-75", "--spectrum-component-top-to-text-100", "--spectrum-component-top-to-text-200", + "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", "--spectrum-disabled-content-color", "--spectrum-font-size-100", "--spectrum-font-size-200", + "--spectrum-font-size-300", "--spectrum-font-size-75", "--spectrum-line-height-100", "--spectrum-neutral-subdued-content-color-default", "--spectrum-regular-font-weight", "--spectrum-spacing-100", - "--spectrum-spacing-200" + "--spectrum-spacing-200", + "--spectrum-white" ], - "system-theme": [], "passthroughs": [], - "high-contrast": ["--highcontrast-field-label-content-color"] + "high-contrast": ["--highcontrast-fieldlabel-disabled-content-color"] } diff --git a/components/fieldlabel/index.css b/components/fieldlabel/index.css index 4e5b4653efd..174875f109a 100644 --- a/components/fieldlabel/index.css +++ b/components/fieldlabel/index.css @@ -11,104 +11,111 @@ * governing permissions and limitations under the License. */ -/* @todo align modifiers to use field-label or fieldlabel but not both */ +.spectrum-FieldLabel { + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-100); + --spectrum-fieldlabel-color: var(--spectrum-neutral-subdued-content-color-default); + + --spectrum-fieldlabel-top-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-fieldlabel-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --spectrum-fieldlabel-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); -.spectrum-FieldLabel, -.spectrum-FieldLabel--sizeM { - --spectrum-field-label-min-height: var(--spectrum-component-height-75); - --spectrum-field-label-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); - --spectrum-field-label-font-size: var(--spectrum-font-size-75); + --spectrum-fieldlabel-font-size: var(--spectrum-font-size-100); + --spectrum-fieldlabel-font-weight: var(--spectrum-regular-font-weight); + --spectrum-fieldlabel-line-height: var(--spectrum-line-height-100); - --spectrum-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); - --spectrum-field-label-side-padding-right: var(--spectrum-spacing-200); + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); + + /* CJK (Chinese, Japanese, and Korean) language support */ + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --mod-fieldlabel-line-height: var(--mod-fieldlabel-line-height-cjk, var(--spectrum-cjk-line-height-100)); + } - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + /********* Disabled state *********/ + &.is-disabled { + --spectrum-fieldlabel-color: var(--highcontrast-fieldlabel-disabled-content-color, var(--spectrum-disabled-content-color)); + } } .spectrum-FieldLabel--sizeS { - --spectrum-field-label-min-height: var(--spectrum-component-height-75); - --spectrum-field-label-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); - --spectrum-field-label-font-size: var(--spectrum-font-size-75); + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-75); + --spectrum-fieldlabel-top-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-fieldlabel-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --spectrum-fieldlabel-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); - --spectrum-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-small); - --spectrum-field-label-side-padding-right: var(--spectrum-spacing-100); + --spectrum-fieldlabel-font-size: var(--spectrum-font-size-75); - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-small); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-100); } .spectrum-FieldLabel--sizeL { - --spectrum-field-label-min-height: var(--spectrum-component-height-100); - --spectrum-field-label-top-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); - --spectrum-field-label-font-size: var(--spectrum-font-size-100); + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-200); + --spectrum-fieldlabel-top-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-fieldlabel-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --spectrum-fieldlabel-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); - --spectrum-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-large); - --spectrum-field-label-side-padding-right: var(--spectrum-spacing-200); + --spectrum-fieldlabel-font-size: var(--spectrum-font-size-200); - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-large); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); } .spectrum-FieldLabel--sizeXL { - --spectrum-field-label-min-height: var(--spectrum-component-height-200); - --spectrum-field-label-top-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-200); - --spectrum-field-label-font-size: var(--spectrum-font-size-200); + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-300); + --spectrum-fieldlabel-top-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-fieldlabel-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --spectrum-fieldlabel-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-extra-large); + + --spectrum-fieldlabel-font-size: var(--spectrum-font-size-300); - --spectrum-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-extra-large); - --spectrum-field-label-side-padding-right: var(--spectrum-spacing-200); + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-extra-large); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); +} - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-extra-large); +.spectrum-FieldLabel--staticBlack { + --spectrum-fieldlabel-color: var(--spectrum-black); +} + +.spectrum-FieldLabel--staticWhite { + --spectrum-fieldlabel-color: var(--spectrum-white); } .spectrum-FieldLabel { display: block; box-sizing: border-box; - min-block-size: var(--mod-fieldlabel-min-height, var(--spectrum-field-label-min-height)); + min-block-size: var(--mod-fieldlabel-min-height, var(--spectrum-fieldlabel-min-height)); - padding-block: var(--mod-fieldlabel-padding-block, var(--mod-field-label-top-to-text, var(--spectrum-field-label-top-to-text)) var(--mod-field-label-bottom-to-text, var(--spectrum-field-label-bottom-to-text))); + padding-block: var(--mod-fieldlabel-top-to-text, var(--spectrum-fieldlabel-top-to-text)) var(--mod-fieldlabel-bottom-to-text, var(--spectrum-fieldlabel-bottom-to-text)); padding-inline: var(--mod-fieldlabel-padding-inline, 0); - margin-block: var(--mod-fieldlabel-margin-block, var(--mod-fieldlabel-margin-block-start, 0) var(--mod-fieldlabel-margin-block-end, 0)); - margin-inline: var(--mod-fieldlabel-margin-inline, var(--mod-fieldlabel-margin-inline-start, 0) var(--mod-fieldlabel-margin-inline-end, 0)); - font-size: var(--mod-fieldlabel-font-size, var(--spectrum-field-label-font-size)); - font-weight: var(--mod-fieldlabel-font-weight, var(--spectrum-regular-font-weight)); + font-size: var(--mod-fieldlabel-font-size, var(--spectrum-fieldlabel-font-size)); + font-weight: var(--mod-fieldlabel-font-weight, var(--spectrum-fieldlabel-font-weight)); - line-height: var(--mod-fieldlabel-line-height, var(--spectrum-line-height-100)); + line-height: var(--mod-fieldlabel-line-height, var(--spectrum-fieldlabel-line-height)); -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto; - color: var(--highcontrast-field-label-content-color, var(--mod-fieldlabel-color, var(--spectrum-neutral-subdued-content-color-default))); - - /* CJK (Chinese, Japanese, and Korean) language support */ - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --mod-fieldlabel-line-height: var(--mod-fieldlabel-line-height-cjk, var(--spectrum-cjk-line-height-100)); - } - - /********* Disabled state *********/ - &.is-disabled { - --mod-fieldlabel-color: var(--mod-disabled-content-color, var(--spectrum-disabled-content-color)); - } + color: var(--spectrum-fieldlabel-color); } .spectrum-FieldLabel-requiredIcon { color: inherit; margin-block: 0; - margin-inline: var(--mod-field-label-text-to-asterisk, var(--spectrum-field-label-text-to-asterisk)) 0; - vertical-align: var(--mod-field-label-asterisk-vertical-align, baseline); + margin-inline: var(--mod-fieldlabel-text-to-asterisk, var(--spectrum-fieldlabel-text-to-asterisk)) 0; + vertical-align: var(--mod-fieldlabel-asterisk-vertical-align, baseline); } .spectrum-FieldLabel--left, .spectrum-FieldLabel--right { display: inline-block; - margin-block-start: var(--mod-fieldlabel-side-margin-block-start, var(--spectrum-field-label-side-margin-block-start)); + margin-block-start: var(--mod-fieldlabel-side-margin-block-start, var(--spectrum-fieldlabel-side-margin-block-start)); margin-block-end: 0; - margin-inline-end: var(--mod-fieldlabel-side-padding-right, var(--spectrum-field-label-side-padding-right)); + margin-inline-end: var(--mod-fieldlabel-side-padding-right, var(--spectrum-fieldlabel-side-padding-right)); vertical-align: top; } @@ -119,7 +126,7 @@ /********* WHCM *********/ @media (forced-colors: active) { - .spectrum-FieldLabel.is-disabled { - --highcontrast-field-label-content-color: GrayText; + .spectrum-FieldLabel { + --highcontrast-fieldlabel-disabled-content-color: GrayText; } } diff --git a/components/fieldlabel/package.json b/components/fieldlabel/package.json index 354e08147f5..d4ab8434009 100644 --- a/components/fieldlabel/package.json +++ b/components/fieldlabel/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/fieldlabel/stories/fieldlabel.stories.js b/components/fieldlabel/stories/fieldlabel.stories.js index 1a268284d7f..296ef716310 100644 --- a/components/fieldlabel/stories/fieldlabel.stories.js +++ b/components/fieldlabel/stories/fieldlabel.stories.js @@ -1,6 +1,6 @@ import { Sizes } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; -import { isDisabled, isRequired, size } from "@spectrum-css/preview/types"; +import { isDisabled, isRequired, size, staticColor } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; import { FieldLabelGroup } from "./fieldlabel.test.js"; @@ -35,6 +35,7 @@ export default { }, isDisabled, isRequired, + staticColor, }, args: { rootClass: "spectrum-FieldLabel", @@ -52,6 +53,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** @@ -136,6 +138,32 @@ Disabled.parameters = { chromatic: { disableSnapshot: true }, }; +/** + * Use static white on dark color or image backgrounds, regardless of color theme. Make sure that the background and the link color meet the minimum color contrast ratio. + */ +export const StaticWhite = Default.bind({}); +StaticWhite.storyName = "Static white"; +StaticWhite.args = { + staticColor: "white", +}; +StaticWhite.tags = ["!dev"]; +StaticWhite.parameters = { + chromatic: { disableSnapshot: true }, +}; + +/** + * Use static black on light color or image backgrounds, regardless of color theme. Make sure that the background and the link color meet the minimum color contrast ratio. + */ +export const StaticBlack = Default.bind({}); +StaticBlack.storyName = "Static black"; +StaticBlack.args = { + staticColor: "black", +}; +StaticBlack.tags = ["!dev"]; +StaticBlack.parameters = { + chromatic: { disableSnapshot: true }, +}; + // ********* VRT ONLY ********* // export const WithForcedColors = FieldLabelGroup.bind({}); WithForcedColors.args = Default.args; diff --git a/components/fieldlabel/stories/template.js b/components/fieldlabel/stories/template.js index 7f5477e4d5f..d5e4a14b42e 100644 --- a/components/fieldlabel/stories/template.js +++ b/components/fieldlabel/stories/template.js @@ -5,6 +5,7 @@ import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; +import { capitalize, lowerCase } from "lodash-es"; import "../index.css"; @@ -20,6 +21,7 @@ export const Template = ({ alignment, isDisabled, isRequired, + staticColor, } = {}, context = {}) => { if (!label) { console.warn("FieldLabel: please provide a label for the field label."); @@ -49,6 +51,7 @@ export const Template = ({ [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined", [`${rootClass}--${alignment}`]: typeof alignment !== "undefined", + [`${rootClass}--static${capitalize(lowerCase(staticColor))}`]: typeof staticColor !== "undefined", "is-disabled": isDisabled, ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), })} diff --git a/components/floatingactionbutton/CHANGELOG.md b/components/floatingactionbutton/CHANGELOG.md index 60d085fb073..4d3bba669e1 100644 --- a/components/floatingactionbutton/CHANGELOG.md +++ b/components/floatingactionbutton/CHANGELOG.md @@ -122,16 +122,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.5...@spectrum-css/floatingactionbutton@2.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.5...@spectrum-css/floatingactionbutton@2.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,8 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.4...@spectrum-css/floatingactionbutton@1.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.4...@spectrum-css/floatingactionbutton@1.2.5) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -148,8 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.3...@spectrum-css/floatingactionbutton@1.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.3...@spectrum-css/floatingactionbutton@1.2.4) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -157,8 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.2...@spectrum-css/floatingactionbutton@1.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.2...@spectrum-css/floatingactionbutton@1.2.3) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -166,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.1...@spectrum-css/floatingactionbutton@1.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.2.1...@spectrum-css/floatingactionbutton@1.2.2) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -175,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -184,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.1.0...@spectrum-css/floatingactionbutton@1.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.1.0...@spectrum-css/floatingactionbutton@1.2.0) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -193,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.37...@spectrum-css/floatingactionbutton@1.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.37...@spectrum-css/floatingactionbutton@1.1.0) ### ✨ Features @@ -204,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.37 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.36...@spectrum-css/floatingactionbutton@1.0.37) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.36...@spectrum-css/floatingactionbutton@1.0.37) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -213,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.36 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.35...@spectrum-css/floatingactionbutton@1.0.36) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.35...@spectrum-css/floatingactionbutton@1.0.36) ### 🐛 Bug fixes @@ -224,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.35 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.33...@spectrum-css/floatingactionbutton@1.0.35) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.33...@spectrum-css/floatingactionbutton@1.0.35) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -233,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.34 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.33...@spectrum-css/floatingactionbutton@1.0.34) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.33...@spectrum-css/floatingactionbutton@1.0.34) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -242,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.33 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.32...@spectrum-css/floatingactionbutton@1.0.33) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.32...@spectrum-css/floatingactionbutton@1.0.33) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -251,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.32 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.31...@spectrum-css/floatingactionbutton@1.0.32) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.31...@spectrum-css/floatingactionbutton@1.0.32) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -260,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.31 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.30...@spectrum-css/floatingactionbutton@1.0.31) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.30...@spectrum-css/floatingactionbutton@1.0.31) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -269,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.30 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.29...@spectrum-css/floatingactionbutton@1.0.30) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.29...@spectrum-css/floatingactionbutton@1.0.30) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -278,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.29 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.28...@spectrum-css/floatingactionbutton@1.0.29) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.28...@spectrum-css/floatingactionbutton@1.0.29) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -287,8 +268,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.28 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.27...@spectrum-css/floatingactionbutton@1.0.28) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.27...@spectrum-css/floatingactionbutton@1.0.28) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -296,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.27 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.26...@spectrum-css/floatingactionbutton@1.0.27) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.26...@spectrum-css/floatingactionbutton@1.0.27) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -305,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.26 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.25...@spectrum-css/floatingactionbutton@1.0.26) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.25...@spectrum-css/floatingactionbutton@1.0.26) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -314,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.25 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.24...@spectrum-css/floatingactionbutton@1.0.25) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.24...@spectrum-css/floatingactionbutton@1.0.25) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -323,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.24 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.23...@spectrum-css/floatingactionbutton@1.0.24) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.23...@spectrum-css/floatingactionbutton@1.0.24) ### 🔙 Reverts @@ -334,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.23 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.22...@spectrum-css/floatingactionbutton@1.0.23) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.22...@spectrum-css/floatingactionbutton@1.0.23) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -343,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.22 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.20...@spectrum-css/floatingactionbutton@1.0.22) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.20...@spectrum-css/floatingactionbutton@1.0.22) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -352,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.21 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.20...@spectrum-css/floatingactionbutton@1.0.21) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.20...@spectrum-css/floatingactionbutton@1.0.21) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -361,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.20 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.19...@spectrum-css/floatingactionbutton@1.0.20) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.19...@spectrum-css/floatingactionbutton@1.0.20) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -370,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.19 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.18...@spectrum-css/floatingactionbutton@1.0.19) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.18...@spectrum-css/floatingactionbutton@1.0.19) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -379,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.18 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.17...@spectrum-css/floatingactionbutton@1.0.18) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.17...@spectrum-css/floatingactionbutton@1.0.18) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -388,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.17 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.16...@spectrum-css/floatingactionbutton@1.0.17) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.16...@spectrum-css/floatingactionbutton@1.0.17) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -397,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.16 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.15...@spectrum-css/floatingactionbutton@1.0.16) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.15...@spectrum-css/floatingactionbutton@1.0.16) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -406,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.15 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.14...@spectrum-css/floatingactionbutton@1.0.15) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.14...@spectrum-css/floatingactionbutton@1.0.15) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -415,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.14 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.13...@spectrum-css/floatingactionbutton@1.0.14) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.13...@spectrum-css/floatingactionbutton@1.0.14) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -424,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.13 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.12...@spectrum-css/floatingactionbutton@1.0.13) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.12...@spectrum-css/floatingactionbutton@1.0.13) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -433,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.12 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.11...@spectrum-css/floatingactionbutton@1.0.12) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.11...@spectrum-css/floatingactionbutton@1.0.12) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -442,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.11 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.10...@spectrum-css/floatingactionbutton@1.0.11) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.10...@spectrum-css/floatingactionbutton@1.0.11) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -451,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.10 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.9...@spectrum-css/floatingactionbutton@1.0.10) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.9...@spectrum-css/floatingactionbutton@1.0.10) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -460,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.9 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.8...@spectrum-css/floatingactionbutton@1.0.9) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.8...@spectrum-css/floatingactionbutton@1.0.9) ### 🐛 Bug fixes @@ -471,8 +432,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.8 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.7...@spectrum-css/floatingactionbutton@1.0.8) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.7...@spectrum-css/floatingactionbutton@1.0.8) **Note:** Version bump only for package @spectrum-css/floatingactionbutton @@ -480,8 +440,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.7 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.6...@spectrum-css/floatingactionbutton@1.0.7) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/floatingactionbutton@1.0.6...@spectrum-css/floatingactionbutton@1.0.7) **Note:** Version bump only for package @spectrum-css/floatingactionbutton diff --git a/components/floatingactionbutton/dist/metadata.json b/components/floatingactionbutton/dist/metadata.json index 7daf062a329..0ddd22d190a 100644 --- a/components/floatingactionbutton/dist/metadata.json +++ b/components/floatingactionbutton/dist/metadata.json @@ -72,7 +72,6 @@ "--spectrum-white", "--spectrum-workflow-icon-size-200" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-floating-action-button-background-color", diff --git a/components/floatingactionbutton/package.json b/components/floatingactionbutton/package.json index 27f469958bd..df3b074a751 100644 --- a/components/floatingactionbutton/package.json +++ b/components/floatingactionbutton/package.json @@ -26,14 +26,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/form/dist/metadata.json b/components/form/dist/metadata.json index 88655f8edd3..c07dfdca8d9 100644 --- a/components/form/dist/metadata.json +++ b/components/form/dist/metadata.json @@ -31,7 +31,6 @@ "--spectrum-spacing-200", "--spectrum-spacing-300" ], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-form-item-disabled-content-color"] } diff --git a/components/form/stories/form.stories.js b/components/form/stories/form.stories.js index 0d2438b9ab9..faeef1c8a02 100644 --- a/components/form/stories/form.stories.js +++ b/components/form/stories/form.stories.js @@ -108,6 +108,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** diff --git a/components/helptext/CHANGELOG.md b/components/helptext/CHANGELOG.md index 66f4cb82953..2fc5e972f5b 100644 --- a/components/helptext/CHANGELOG.md +++ b/components/helptext/CHANGELOG.md @@ -143,16 +143,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.5...@spectrum-css/helptext@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.5...@spectrum-css/helptext@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +157,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.4...@spectrum-css/helptext@4.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.4...@spectrum-css/helptext@4.1.5) **Note:** Version bump only for package @spectrum-css/helptext @@ -169,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.3...@spectrum-css/helptext@4.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.3...@spectrum-css/helptext@4.1.4) **Note:** Version bump only for package @spectrum-css/helptext @@ -178,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.2...@spectrum-css/helptext@4.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.2...@spectrum-css/helptext@4.1.3) **Note:** Version bump only for package @spectrum-css/helptext @@ -187,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.1...@spectrum-css/helptext@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.1.1...@spectrum-css/helptext@4.1.2) **Note:** Version bump only for package @spectrum-css/helptext @@ -196,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/helptext @@ -205,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.64...@spectrum-css/helptext@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.64...@spectrum-css/helptext@4.1.0) ### ✨ Features @@ -216,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.64 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.63...@spectrum-css/helptext@4.0.64) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.63...@spectrum-css/helptext@4.0.64) **Note:** Version bump only for package @spectrum-css/helptext @@ -225,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.63 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.62...@spectrum-css/helptext@4.0.63) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.62...@spectrum-css/helptext@4.0.63) **Note:** Version bump only for package @spectrum-css/helptext @@ -234,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.62 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.60...@spectrum-css/helptext@4.0.62) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.60...@spectrum-css/helptext@4.0.62) **Note:** Version bump only for package @spectrum-css/helptext @@ -243,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.61 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.60...@spectrum-css/helptext@4.0.61) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.60...@spectrum-css/helptext@4.0.61) **Note:** Version bump only for package @spectrum-css/helptext @@ -252,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.60 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.59...@spectrum-css/helptext@4.0.60) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.59...@spectrum-css/helptext@4.0.60) **Note:** Version bump only for package @spectrum-css/helptext @@ -261,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.59 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.58...@spectrum-css/helptext@4.0.59) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.58...@spectrum-css/helptext@4.0.59) **Note:** Version bump only for package @spectrum-css/helptext @@ -270,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.58 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.57...@spectrum-css/helptext@4.0.58) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.57...@spectrum-css/helptext@4.0.58) **Note:** Version bump only for package @spectrum-css/helptext @@ -279,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.57 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.56...@spectrum-css/helptext@4.0.57) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.56...@spectrum-css/helptext@4.0.57) **Note:** Version bump only for package @spectrum-css/helptext @@ -288,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.56 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.55...@spectrum-css/helptext@4.0.56) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.55...@spectrum-css/helptext@4.0.56) **Note:** Version bump only for package @spectrum-css/helptext @@ -297,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.55 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.54...@spectrum-css/helptext@4.0.55) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.54...@spectrum-css/helptext@4.0.55) **Note:** Version bump only for package @spectrum-css/helptext @@ -306,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.54 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.53...@spectrum-css/helptext@4.0.54) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.53...@spectrum-css/helptext@4.0.54) **Note:** Version bump only for package @spectrum-css/helptext @@ -315,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.53 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.52...@spectrum-css/helptext@4.0.53) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.52...@spectrum-css/helptext@4.0.53) **Note:** Version bump only for package @spectrum-css/helptext @@ -324,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.52 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.51...@spectrum-css/helptext@4.0.52) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.51...@spectrum-css/helptext@4.0.52) **Note:** Version bump only for package @spectrum-css/helptext @@ -333,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.51 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.50...@spectrum-css/helptext@4.0.51) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.50...@spectrum-css/helptext@4.0.51) ### 🔙 Reverts @@ -344,8 +321,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.50 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.49...@spectrum-css/helptext@4.0.50) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.49...@spectrum-css/helptext@4.0.50) **Note:** Version bump only for package @spectrum-css/helptext @@ -353,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.49 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.47...@spectrum-css/helptext@4.0.49) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.47...@spectrum-css/helptext@4.0.49) **Note:** Version bump only for package @spectrum-css/helptext @@ -362,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.48 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.47...@spectrum-css/helptext@4.0.48) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.47...@spectrum-css/helptext@4.0.48) **Note:** Version bump only for package @spectrum-css/helptext @@ -371,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.47 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.46...@spectrum-css/helptext@4.0.47) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.46...@spectrum-css/helptext@4.0.47) **Note:** Version bump only for package @spectrum-css/helptext @@ -380,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.46 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.45...@spectrum-css/helptext@4.0.46) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.45...@spectrum-css/helptext@4.0.46) **Note:** Version bump only for package @spectrum-css/helptext @@ -389,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.45 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.44...@spectrum-css/helptext@4.0.45) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.44...@spectrum-css/helptext@4.0.45) **Note:** Version bump only for package @spectrum-css/helptext @@ -398,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.44 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.43...@spectrum-css/helptext@4.0.44) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.43...@spectrum-css/helptext@4.0.44) **Note:** Version bump only for package @spectrum-css/helptext @@ -407,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.43 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.42...@spectrum-css/helptext@4.0.43) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.42...@spectrum-css/helptext@4.0.43) **Note:** Version bump only for package @spectrum-css/helptext @@ -416,8 +385,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.41...@spectrum-css/helptext@4.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.41...@spectrum-css/helptext@4.0.42) **Note:** Version bump only for package @spectrum-css/helptext @@ -425,8 +393,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.40...@spectrum-css/helptext@4.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.40...@spectrum-css/helptext@4.0.41) **Note:** Version bump only for package @spectrum-css/helptext @@ -434,8 +401,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.39...@spectrum-css/helptext@4.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.39...@spectrum-css/helptext@4.0.40) **Note:** Version bump only for package @spectrum-css/helptext @@ -443,8 +409,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.38...@spectrum-css/helptext@4.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.38...@spectrum-css/helptext@4.0.39) **Note:** Version bump only for package @spectrum-css/helptext @@ -452,8 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.37...@spectrum-css/helptext@4.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.37...@spectrum-css/helptext@4.0.38) **Note:** Version bump only for package @spectrum-css/helptext @@ -461,8 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.36...@spectrum-css/helptext@4.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.36...@spectrum-css/helptext@4.0.37) **Note:** Version bump only for package @spectrum-css/helptext @@ -470,8 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.35...@spectrum-css/helptext@4.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.35...@spectrum-css/helptext@4.0.36) ### 🐛 Bug fixes @@ -481,8 +443,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.34...@spectrum-css/helptext@4.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.34...@spectrum-css/helptext@4.0.35) **Note:** Version bump only for package @spectrum-css/helptext @@ -490,8 +451,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.33...@spectrum-css/helptext@4.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/helptext@4.0.33...@spectrum-css/helptext@4.0.34) **Note:** Version bump only for package @spectrum-css/helptext diff --git a/components/helptext/dist/metadata.json b/components/helptext/dist/metadata.json index f730c33a671..5eab153c21a 100644 --- a/components/helptext/dist/metadata.json +++ b/components/helptext/dist/metadata.json @@ -77,7 +77,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-helptext-content-color-default", diff --git a/components/helptext/package.json b/components/helptext/package.json index cf41d7c3f2a..15c6ebf5b1b 100644 --- a/components/helptext/package.json +++ b/components/helptext/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/icon/CHANGELOG.md b/components/icon/CHANGELOG.md index 5a23b0939d7..9234f6867a9 100644 --- a/components/icon/CHANGELOG.md +++ b/components/icon/CHANGELOG.md @@ -129,16 +129,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.5...@spectrum-css/icon@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.5...@spectrum-css/icon@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -146,8 +142,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.4...@spectrum-css/icon@6.0.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.4...@spectrum-css/icon@6.0.5) **Note:** Version bump only for package @spectrum-css/icon @@ -155,8 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.3...@spectrum-css/icon@6.0.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.3...@spectrum-css/icon@6.0.4) **Note:** Version bump only for package @spectrum-css/icon @@ -164,8 +158,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.2...@spectrum-css/icon@6.0.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.2...@spectrum-css/icon@6.0.3) **Note:** Version bump only for package @spectrum-css/icon @@ -173,8 +166,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.1...@spectrum-css/icon@6.0.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@6.0.1...@spectrum-css/icon@6.0.2) **Note:** Version bump only for package @spectrum-css/icon @@ -182,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/icon @@ -191,13 +182,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.1.0...@spectrum-css/icon@6.0.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.1.0...@spectrum-css/icon@6.0.0) \*refactor(icon)!: tokens migration (#2347)([b63631a](https://github.com/adobe/spectrum-css/commit/b63631a)), closes[#2347](https://github.com/adobe/spectrum-css/issues/2347) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrate Icon from DNA tokens to Spectrum tokens. @@ -318,8 +307,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 5.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.0.1...@spectrum-css/icon@5.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.0.1...@spectrum-css/icon@5.1.0) ### ✨ Features @@ -329,8 +317,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 5.0.1 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.0.0...@spectrum-css/icon@5.0.1) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@5.0.0...@spectrum-css/icon@5.0.1) **Note:** Version bump only for package @spectrum-css/icon @@ -338,13 +325,11 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 5.0.0 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.5...@spectrum-css/icon@5.0.0) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.5...@spectrum-css/icon@5.0.0) \*feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * - @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. @@ -355,8 +340,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.5 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.3...@spectrum-css/icon@4.0.5) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.3...@spectrum-css/icon@4.0.5) **Note:** Version bump only for package @spectrum-css/icon @@ -364,8 +348,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.4 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.3...@spectrum-css/icon@4.0.4) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.3...@spectrum-css/icon@4.0.4) **Note:** Version bump only for package @spectrum-css/icon @@ -373,8 +356,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.3 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.2...@spectrum-css/icon@4.0.3) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.2...@spectrum-css/icon@4.0.3) **Note:** Version bump only for package @spectrum-css/icon @@ -382,8 +364,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.2 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.1...@spectrum-css/icon@4.0.2) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.1...@spectrum-css/icon@4.0.2) ### 🔙 Reverts @@ -393,8 +374,7 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.1 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.0...@spectrum-css/icon@4.0.1) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@4.0.0...@spectrum-css/icon@4.0.1) **Note:** Version bump only for package @spectrum-css/icon @@ -402,13 +382,11 @@ includes the new custom-vars for the xxl and xxs workflow icon sizes. ## 4.0.0 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.50...@spectrum-css/icon@4.0.0) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.50...@spectrum-css/icon@4.0.0) \*feat(sidenav)!: use spectrum-tokens (#1901)([8851dd9](https://github.com/adobe/spectrum-css/commit/8851dd9)), closes[#1901](https://github.com/adobe/spectrum-css/issues/1901) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * Migrates Side Nav to use `@adobe/spectrum-tokens` @@ -515,8 +493,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.50 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.49...@spectrum-css/icon@3.0.50) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.49...@spectrum-css/icon@3.0.50) ### 🐛 Bug fixes @@ -526,8 +503,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.48...@spectrum-css/icon@3.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.48...@spectrum-css/icon@3.0.49) **Note:** Version bump only for package @spectrum-css/icon @@ -535,8 +511,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.47...@spectrum-css/icon@3.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.47...@spectrum-css/icon@3.0.48) **Note:** Version bump only for package @spectrum-css/icon @@ -544,8 +519,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.46...@spectrum-css/icon@3.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.46...@spectrum-css/icon@3.0.47) ### 🐛 Bug fixes @@ -555,8 +529,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.45...@spectrum-css/icon@3.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.45...@spectrum-css/icon@3.0.46) **Note:** Version bump only for package @spectrum-css/icon @@ -564,8 +537,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.44...@spectrum-css/icon@3.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/icon@3.0.44...@spectrum-css/icon@3.0.45) **Note:** Version bump only for package @spectrum-css/icon diff --git a/components/icon/dist/metadata.json b/components/icon/dist/metadata.json index 7f5d27e3789..590503e05b8 100644 --- a/components/icon/dist/metadata.json +++ b/components/icon/dist/metadata.json @@ -170,7 +170,6 @@ "--spectrum-workflow-icon-size-xxl", "--spectrum-workflow-icon-size-xxs" ], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/icon/package.json b/components/icon/package.json index ebdcfa98e7c..bd1696e2418 100644 --- a/components/icon/package.json +++ b/components/icon/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/illustratedmessage/CHANGELOG.md b/components/illustratedmessage/CHANGELOG.md index ab5c5ae6ff0..c3f70bdc8f3 100644 --- a/components/illustratedmessage/CHANGELOG.md +++ b/components/illustratedmessage/CHANGELOG.md @@ -143,16 +143,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.5...@spectrum-css/illustratedmessage@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.5...@spectrum-css/illustratedmessage@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +157,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.4...@spectrum-css/illustratedmessage@6.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.4...@spectrum-css/illustratedmessage@6.1.5) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -169,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.3...@spectrum-css/illustratedmessage@6.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.3...@spectrum-css/illustratedmessage@6.1.4) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -178,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.2...@spectrum-css/illustratedmessage@6.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.2...@spectrum-css/illustratedmessage@6.1.3) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -187,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.1...@spectrum-css/illustratedmessage@6.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.1.1...@spectrum-css/illustratedmessage@6.1.2) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -196,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -205,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.31...@spectrum-css/illustratedmessage@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.31...@spectrum-css/illustratedmessage@6.1.0) ### ✨ Features @@ -216,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.31 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.30...@spectrum-css/illustratedmessage@6.0.31) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.30...@spectrum-css/illustratedmessage@6.0.31) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -225,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.30 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.29...@spectrum-css/illustratedmessage@6.0.30) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.29...@spectrum-css/illustratedmessage@6.0.30) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -234,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.29 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.27...@spectrum-css/illustratedmessage@6.0.29) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.27...@spectrum-css/illustratedmessage@6.0.29) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -243,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.28 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.27...@spectrum-css/illustratedmessage@6.0.28) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.27...@spectrum-css/illustratedmessage@6.0.28) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -252,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.27 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.26...@spectrum-css/illustratedmessage@6.0.27) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.26...@spectrum-css/illustratedmessage@6.0.27) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -261,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.26 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.25...@spectrum-css/illustratedmessage@6.0.26) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.25...@spectrum-css/illustratedmessage@6.0.26) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -270,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.25 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.24...@spectrum-css/illustratedmessage@6.0.25) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.24...@spectrum-css/illustratedmessage@6.0.25) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -279,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.24 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.23...@spectrum-css/illustratedmessage@6.0.24) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.23...@spectrum-css/illustratedmessage@6.0.24) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -288,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.23 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.22...@spectrum-css/illustratedmessage@6.0.23) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.22...@spectrum-css/illustratedmessage@6.0.23) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -297,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.22 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.21...@spectrum-css/illustratedmessage@6.0.22) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.21...@spectrum-css/illustratedmessage@6.0.22) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -306,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.21 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.20...@spectrum-css/illustratedmessage@6.0.21) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.20...@spectrum-css/illustratedmessage@6.0.21) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -315,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.20 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.19...@spectrum-css/illustratedmessage@6.0.20) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.19...@spectrum-css/illustratedmessage@6.0.20) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -324,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.19 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.18...@spectrum-css/illustratedmessage@6.0.19) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.18...@spectrum-css/illustratedmessage@6.0.19) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -333,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.18 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.17...@spectrum-css/illustratedmessage@6.0.18) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.17...@spectrum-css/illustratedmessage@6.0.18) ### 🔙 Reverts @@ -344,8 +321,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.17 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.16...@spectrum-css/illustratedmessage@6.0.17) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.16...@spectrum-css/illustratedmessage@6.0.17) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -353,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.16 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.14...@spectrum-css/illustratedmessage@6.0.16) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.14...@spectrum-css/illustratedmessage@6.0.16) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -362,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.15 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.14...@spectrum-css/illustratedmessage@6.0.15) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.14...@spectrum-css/illustratedmessage@6.0.15) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -371,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.14 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.13...@spectrum-css/illustratedmessage@6.0.14) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.13...@spectrum-css/illustratedmessage@6.0.14) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -380,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.13 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.12...@spectrum-css/illustratedmessage@6.0.13) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.12...@spectrum-css/illustratedmessage@6.0.13) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -389,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.12 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.11...@spectrum-css/illustratedmessage@6.0.12) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.11...@spectrum-css/illustratedmessage@6.0.12) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -398,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.11 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.10...@spectrum-css/illustratedmessage@6.0.11) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.10...@spectrum-css/illustratedmessage@6.0.11) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -407,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.10 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.9...@spectrum-css/illustratedmessage@6.0.10) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.9...@spectrum-css/illustratedmessage@6.0.10) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -416,8 +385,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.9 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.8...@spectrum-css/illustratedmessage@6.0.9) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.8...@spectrum-css/illustratedmessage@6.0.9) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -425,8 +393,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.8 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.7...@spectrum-css/illustratedmessage@6.0.8) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.7...@spectrum-css/illustratedmessage@6.0.8) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -434,8 +401,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.7 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.6...@spectrum-css/illustratedmessage@6.0.7) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.6...@spectrum-css/illustratedmessage@6.0.7) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -443,8 +409,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.6 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.5...@spectrum-css/illustratedmessage@6.0.6) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.5...@spectrum-css/illustratedmessage@6.0.6) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -452,8 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.5 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.4...@spectrum-css/illustratedmessage@6.0.5) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.4...@spectrum-css/illustratedmessage@6.0.5) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -461,8 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.4 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.3...@spectrum-css/illustratedmessage@6.0.4) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.3...@spectrum-css/illustratedmessage@6.0.4) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -470,8 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.3 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.2...@spectrum-css/illustratedmessage@6.0.3) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.2...@spectrum-css/illustratedmessage@6.0.3) ### 🐛 Bug fixes @@ -481,8 +443,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.2 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.1...@spectrum-css/illustratedmessage@6.0.2) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.1...@spectrum-css/illustratedmessage@6.0.2) **Note:** Version bump only for package @spectrum-css/illustratedmessage @@ -490,8 +451,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.0...@spectrum-css/illustratedmessage@6.0.1) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/illustratedmessage@6.0.0...@spectrum-css/illustratedmessage@6.0.1) **Note:** Version bump only for package @spectrum-css/illustratedmessage diff --git a/components/illustratedmessage/dist/metadata.json b/components/illustratedmessage/dist/metadata.json index 24de798ac33..12705f6822e 100644 --- a/components/illustratedmessage/dist/metadata.json +++ b/components/illustratedmessage/dist/metadata.json @@ -2,7 +2,18 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-IllustratedMessage", - ".spectrum-IllustratedMessage-accent", + ".spectrum-IllustratedMessage--horizontal", + ".spectrum-IllustratedMessage--horizontal .spectrum-IllustratedMessage-illustration", + ".spectrum-IllustratedMessage--sizeL", + ".spectrum-IllustratedMessage--sizeL:lang(ja)", + ".spectrum-IllustratedMessage--sizeL:lang(ko)", + ".spectrum-IllustratedMessage--sizeL:lang(zh)", + ".spectrum-IllustratedMessage--sizeS", + ".spectrum-IllustratedMessage--sizeS:lang(ja)", + ".spectrum-IllustratedMessage--sizeS:lang(ko)", + ".spectrum-IllustratedMessage--sizeS:lang(zh)", + ".spectrum-IllustratedMessage-actions", + ".spectrum-IllustratedMessage-content", ".spectrum-IllustratedMessage-description", ".spectrum-IllustratedMessage-heading", ".spectrum-IllustratedMessage-illustration", @@ -11,23 +22,24 @@ ".spectrum-IllustratedMessage:lang(zh)" ], "modifiers": [ - "--mod-illustrated-message-content-maximum-width", "--mod-illustrated-message-description-color", "--mod-illustrated-message-description-font-family", "--mod-illustrated-message-description-font-size", "--mod-illustrated-message-description-font-style", "--mod-illustrated-message-description-font-weight", "--mod-illustrated-message-description-line-height", - "--mod-illustrated-message-description-max-inline-size", "--mod-illustrated-message-description-pointer-events", "--mod-illustrated-message-description-position", + "--mod-illustrated-message-description-to-action", "--mod-illustrated-message-description-z-index", "--mod-illustrated-message-display", - "--mod-illustrated-message-heading-max-inline-size", - "--mod-illustrated-message-heading-to-body", "--mod-illustrated-message-heading-to-description", - "--mod-illustrated-message-illustration-accent-color", + "--mod-illustrated-message-horizontal-maximum-width", + "--mod-illustrated-message-illustrated-inline-size", + "--mod-illustrated-message-illustration-block-size", "--mod-illustrated-message-illustration-color", + "--mod-illustrated-message-illustration-size", + "--mod-illustrated-message-illustration-to-heading", "--mod-illustrated-message-pointer-events", "--mod-illustrated-message-title-color", "--mod-illustrated-message-title-font-family", @@ -35,51 +47,55 @@ "--mod-illustrated-message-title-font-style", "--mod-illustrated-message-title-font-weight", "--mod-illustrated-message-title-line-height", - "--mod-illustrated-message-title-to-heading" + "--mod-illustrated-message-vertical-maximum-width" ], "component": [ - "--spectrum-illustrated-message-body-size", - "--spectrum-illustrated-message-cjk-title-size", "--spectrum-illustrated-message-description-color", "--spectrum-illustrated-message-description-font-family", "--spectrum-illustrated-message-description-font-size", "--spectrum-illustrated-message-description-font-style", "--spectrum-illustrated-message-description-font-weight", "--spectrum-illustrated-message-description-line-height", - "--spectrum-illustrated-message-description-max-inline-size", - "--spectrum-illustrated-message-heading-max-inline-size", + "--spectrum-illustrated-message-description-to-action", "--spectrum-illustrated-message-heading-to-description", - "--spectrum-illustrated-message-illustration-accent-color", + "--spectrum-illustrated-message-horizontal-maximum-width", "--spectrum-illustrated-message-illustration-color", - "--spectrum-illustrated-message-maximum-width", + "--spectrum-illustrated-message-illustration-size", + "--spectrum-illustrated-message-illustration-to-content", + "--spectrum-illustrated-message-illustration-to-heading", + "--spectrum-illustrated-message-large-body-font-size", + "--spectrum-illustrated-message-large-cjk-title-font-size", + "--spectrum-illustrated-message-large-title-font-size", + "--spectrum-illustrated-message-medium-body-font-size", + "--spectrum-illustrated-message-medium-cjk-title-font-size", + "--spectrum-illustrated-message-medium-title-font-size", + "--spectrum-illustrated-message-small-body-font-size", + "--spectrum-illustrated-message-small-cjk-title-font-size", + "--spectrum-illustrated-message-small-title-font-size", "--spectrum-illustrated-message-title-color", "--spectrum-illustrated-message-title-font-family", "--spectrum-illustrated-message-title-font-size", "--spectrum-illustrated-message-title-font-style", "--spectrum-illustrated-message-title-font-weight", "--spectrum-illustrated-message-title-line-height", - "--spectrum-illustrated-message-title-size", - "--spectrum-illustrated-message-title-to-heading" + "--spectrum-illustrated-message-vertical-maximum-width" ], "global": [ - "--spectrum-accent-visual-color", "--spectrum-body-color", - "--spectrum-body-line-height", "--spectrum-body-sans-serif-font-style", "--spectrum-body-sans-serif-font-weight", "--spectrum-heading-color", - "--spectrum-heading-line-height", - "--spectrum-heading-sans-serif-font-style", - "--spectrum-heading-sans-serif-font-weight", - "--spectrum-neutral-visual-color", + "--spectrum-line-height-200", + "--spectrum-neutral-content-color-default", "--spectrum-sans-font-family-stack", - "--spectrum-spacing-400", - "--spectrum-spacing-75" + "--spectrum-spacing-100", + "--spectrum-spacing-200", + "--spectrum-spacing-300", + "--spectrum-spacing-75", + "--spectrum-title-line-height", + "--spectrum-title-sans-serif-font-style", + "--spectrum-title-sans-serif-font-weight" ], - "system-theme": [], - "passthroughs": [], - "high-contrast": [ - "--highcontrast-illustrated-message-illustration-accent-color", - "--highcontrast-illustrated-message-illustration-color" - ] + "passthroughs": ["--mod-buttongroup-justify-content"], + "high-contrast": ["--highcontrast-illustrated-message-illustration-color"] } diff --git a/components/illustratedmessage/index.css b/components/illustratedmessage/index.css index 6b588504d11..39894c695a1 100644 --- a/components/illustratedmessage/index.css +++ b/components/illustratedmessage/index.css @@ -1,82 +1,96 @@ /*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ +Copyright 2024 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 -@media (forced-colors: active) { - .spectrum-IllustratedMessage { - --highcontrast-illustrated-message-illustration-color: CanvasText; - --highcontrast-illustrated-message-illustration-accent-color: Highlight; - } -} +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ .spectrum-IllustratedMessage { /* Size & Spacing */ - --spectrum-illustrated-message-description-max-inline-size: var(--spectrum-illustrated-message-maximum-width); - --spectrum-illustrated-message-heading-max-inline-size: var(--spectrum-illustrated-message-maximum-width); - --spectrum-illustrated-message-title-to-heading: var(--spectrum-spacing-400); --spectrum-illustrated-message-heading-to-description: var(--spectrum-spacing-75); + --spectrum-illustrated-message-illustration-to-heading: var(--spectrum-spacing-200); + --spectrum-illustrated-message-illustration-to-content: var(--spectrum-spacing-200); + --spectrum-illustrated-message-description-to-action: var(--spectrum-spacing-300); + /* @passthrough -- settings for nested button group */ + --mod-buttongroup-justify-content: center; /* Illustration */ - --spectrum-illustrated-message-illustration-color: var(--spectrum-neutral-visual-color); - --spectrum-illustrated-message-illustration-accent-color: var(--spectrum-accent-visual-color); + --spectrum-illustrated-message-illustration-color: var(--spectrum-neutral-content-color-default); + --spectrum-illustrated-message-illustration-size: 96px; /* Title */ --spectrum-illustrated-message-title-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-illustrated-message-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-illustrated-message-title-font-style: var(--spectrum-heading-sans-serif-font-style); - --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-title-size); - --spectrum-illustrated-message-title-line-height: var(--spectrum-heading-line-height); + --spectrum-illustrated-message-title-font-weight: var(--spectrum-title-sans-serif-font-weight); + --spectrum-illustrated-message-title-font-style: var(--spectrum-title-sans-serif-font-style); + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-medium-title-font-size); + --spectrum-illustrated-message-title-line-height: var(--spectrum-title-line-height); --spectrum-illustrated-message-title-color: var(--spectrum-heading-color); /* Description */ --spectrum-illustrated-message-description-font-family: var(--spectrum-sans-font-family-stack); --spectrum-illustrated-message-description-font-weight: var(--spectrum-body-sans-serif-font-weight); --spectrum-illustrated-message-description-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-illustrated-message-description-font-size: var(--spectrum-illustrated-message-body-size); - --spectrum-illustrated-message-description-line-height: var(--spectrum-body-line-height); + --spectrum-illustrated-message-description-font-size: var(--spectrum-illustrated-message-medium-body-font-size); + --spectrum-illustrated-message-description-line-height: var(--spectrum-line-height-200); --spectrum-illustrated-message-description-color: var(--spectrum-body-color); - block-size: 100%; - - display: var(--mod-illustrated-message-display, flex); - flex-direction: column; - align-items: center; - justify-content: center; + /* CJK (Chinese, Japanese, and Korean) language support */ + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-medium-cjk-title-font-size); + } +} - text-align: center; - pointer-events: var(--mod-illustrated-message-pointer-events, auto); - max-inline-size: var(--mod-illustrated-message-content-maximum-width); +.spectrum-IllustratedMessage--sizeS { + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-small-title-font-size); + --spectrum-illustrated-message-description-font-size: var(--spectrum-illustrated-message-small-body-font-size); - /* CJK (Chinese, Japanese, and Korean) language support */ &:lang(ja), &:lang(zh), &:lang(ko) { - --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-small-cjk-title-font-size); } } -.spectrum-IllustratedMessage-illustration { - margin-block-end: var(--mod-illustrated-message-title-to-heading, var(--spectrum-illustrated-message-title-to-heading)); - color: var(--highcontrast-illustrated-message-illustration-color, var(--mod-illustrated-message-illustration-color, var(--spectrum-illustrated-message-illustration-color))); - fill: currentColor; - stroke: currentColor; +.spectrum-IllustratedMessage--sizeL { + --spectrum-illustrated-message-illustration-size: 160px; + --spectrum-illustrated-message-illustration-to-heading: var(--spectrum-spacing-100); + --spectrum-illustrated-message-illustration-to-content: var(--spectrum-spacing-100); + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-large-title-font-size); + --spectrum-illustrated-message-description-font-size: var(--spectrum-illustrated-message-large-body-font-size); + + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-illustrated-message-title-font-size: var(--spectrum-illustrated-message-large-cjk-title-font-size); + } } -.spectrum-IllustratedMessage-accent { - color: var(--highcontrast-illustrated-message-illustration-accent-color, var(--mod-illustrated-message-illustration-accent-color, var(--spectrum-illustrated-message-illustration-accent-color))); +.spectrum-IllustratedMessage { + block-size: 100%; + display: var(--mod-illustrated-message-display, grid); + grid-template-areas: + ". illustration ." + "body body body"; + text-align: center; + pointer-events: var(--mod-illustrated-message-pointer-events, auto); + max-inline-size: var(--mod-illustrated-message-vertical-maximum-width, var(--spectrum-illustrated-message-vertical-maximum-width)); +} - /* Safari 16.3 🐛🛠️: Repeated stroke/fill properties is a workaround for a currentcolor bug that was fixed in 16.4. */ +.spectrum-IllustratedMessage-illustration { + margin-block-end: var(--mod-illustrated-message-illustration-to-heading, var(--spectrum-illustrated-message-illustration-to-heading)); + color: var(--highcontrast-illustrated-message-illustration-color, var(--mod-illustrated-message-illustration-color, var(--spectrum-illustrated-message-illustration-color))); fill: currentColor; stroke: currentColor; + block-size: var(--mod-illustrated-message-illustration-block-size, var(--mod-illustrated-message-illustration-size, var(--spectrum-illustrated-message-illustration-size))); + inline-size: var(--mod-illustrated-message-illustrated-inline-size, var(--mod-illustrated-message-illustration-size, var(--spectrum-illustrated-message-illustration-size))); + grid-area: illustration; } .spectrum-IllustratedMessage-heading { @@ -88,9 +102,8 @@ color: var(--mod-illustrated-message-title-color, var(--spectrum-illustrated-message-title-color)); - max-inline-size: var(--mod-illustrated-message-heading-max-inline-size, var(--spectrum-illustrated-message-heading-max-inline-size)); margin-block-start: 0; - margin-block-end: var(--mod-illustrated-message-heading-to-body, 0); + margin-block-end: var(--mod-illustrated-message-heading-to-description, var(--spectrum-illustrated-message-heading-to-description)); } .spectrum-IllustratedMessage-description { @@ -106,7 +119,32 @@ color: var(--mod-illustrated-message-description-color, var(--spectrum-illustrated-message-description-color)); - max-inline-size: var(--mod-illustrated-message-description-max-inline-size, var(--spectrum-illustrated-message-description-max-inline-size)); - margin-block-start: var(--mod-illustrated-message-heading-to-description, var(--spectrum-illustrated-message-heading-to-description)); - margin-block-end: 0; + margin-block: 0; +} + +.spectrum-IllustratedMessage--horizontal { + --mod-buttongroup-justify-content: flex-start; + max-inline-size: var(--mod-illustrated-message-horizontal-maximum-width, var(--spectrum-illustrated-message-horizontal-maximum-width)); + text-align: start; + gap: var(--spectrum-illustrated-message-illustration-to-content); + grid-template-areas: "illustration body"; + align-items: center; + + .spectrum-IllustratedMessage-illustration { + margin-block-end: 0; + } +} + +.spectrum-IllustratedMessage-actions { + margin-block-start: var(--mod-illustrated-message-description-to-action, var(--spectrum-illustrated-message-description-to-action)); +} + +.spectrum-IllustratedMessage-content { + grid-area: body; +} + +@media (forced-colors: active) { + .spectrum-IllustratedMessage { + --highcontrast-illustrated-message-illustration-color: CanvasText; + } } diff --git a/components/illustratedmessage/package.json b/components/illustratedmessage/package.json index c7af2826541..bd280a12b07 100644 --- a/components/illustratedmessage/package.json +++ b/components/illustratedmessage/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15", - "@spectrum-css/typography": ">=6" + "@spectrum-css/tokens": ">=16", + "@spectrum-css/typography": ">=8" }, "devDependencies": { "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/typography": "8.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/typography": "8.0.1" }, "keywords": [ "design-system", diff --git a/components/illustratedmessage/stories/illustratedmessage.stories.js b/components/illustratedmessage/stories/illustratedmessage.stories.js index 2b00b063d31..794accd74da 100644 --- a/components/illustratedmessage/stories/illustratedmessage.stories.js +++ b/components/illustratedmessage/stories/illustratedmessage.stories.js @@ -1,20 +1,38 @@ -import { Template as Link } from "@spectrum-css/link/stories/template.js"; +import { Sizes } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; -import { html } from "lit"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; import { IllustratedMessageGroup } from "./illustratedmessage.test.js"; import { Template } from "./template.js"; /** - * The Illustrated Message displays an illustration along with a heading and description. Optionally, part of the illustration can use an accent color. It can be used for status and errors, or as a call to action. For example, the Drop Zone component makes use of Illustrated Message as an area to drag and drop files. + * The Illustrated Message displays an illustration along with a heading, description and group of buttons. It can be used for status and errors, or as a call to action. For example, the Drop Zone component makes use of Illustrated Message as an area to drag and drop files. */ export default { title: "Illustrated message", component: "IllustratedMessage", argTypes: { - useAccentColor: { - name: "Illustration accent color", + title: { + name: "Title", + type: { name: "string" }, + table: { + type: { summary: "string" }, + category: "Content", + }, + control: "text", + }, + description: { + name: "Description", + type: { name: "string" }, + table: { + type: { summary: "string" }, + category: "Content", + }, + control: "text", + }, + isHorizontal: { + name: "Horizontal orientation", + description: "The default content orientation is vertical. Add the horizontal class to horizontally align the illustration with the content. The illustration will align left or right determined by the global direction of the text.", type: { name: "boolean" }, table: { type: { summary: "boolean" }, @@ -22,26 +40,33 @@ export default { }, control: "boolean", }, - heading: { - name: "Heading", - type: { name: "string" }, + size: { + name: "Size", + type: { name: "string", required: true }, table: { type: { summary: "string" }, - category: "Content", + category: "Component", }, - control: "text", + options: ["s", "m", "l"], + control: "select", }, - description: { - name: "Description", + hasButtons: { + name: "Show button group", + type: { name: "boolean" }, table: { - category: "Content", - disable: true, + type: { summary: "boolean" }, + category: "Component", }, + control: "boolean", }, }, args: { rootClass: "spectrum-IllustratedMessage", - useAccentColor: false, + isHorizontal: false, + size: "m", + hasButtons: true, + title: "Error 404: Page not found", + description: "This page isn't available. Try checking the URL or visit a different page.", }, parameters: { design: { @@ -50,32 +75,22 @@ export default { }, packageJson, metadata, + layout: "centered" }, }; export const Default = IllustratedMessageGroup.bind({}); -Default.args = { - heading: "Error 404: Page not found", - description: [ - "This page isn't available. Try checking the URL or visit a different page.", - ], -}; +Default.args = {}; /** - * To use the accent color, the class `.spectrum-IllustratedMessage-accent` can be added to element(s) within the illustration SVG. - */ -export const AccentColor = Template.bind({}); -AccentColor.tags = ["!dev"]; -AccentColor.args = { - heading: "Drag and drop your file", - description: [ - () => { - return html`${Link({ url: "#", text: "Select a file" })} from your computer.`; - }, - ], - useAccentColor: true, + * Horizontal illustrated messages are displayed on extra large screen sizes or in a menu. +*/ +export const Horizontal = Template.bind({}); +Horizontal.tags = ["!dev"]; +Horizontal.args = { + isHorizontal: true }; -AccentColor.parameters = { +Horizontal.parameters = { chromatic: { disableSnapshot: true }, }; @@ -88,3 +103,21 @@ WithForcedColors.parameters = { modes: disableDefaultModes }, }; +/** + * Illustrated message comes in three sizes: small, medium, and large. + * - Small illustrated message is typically used in quick or in-line actions. + * - The medium size is the default, and often used in panels. + * - The large size illustrated message is generally used in full page layouts and dialogs. + */ +export const Sizing = (args, context) => Sizes({ + Template: Template, + withBorder: false, + withHeader: false, + ...args +}, context); + +Sizing.args = {}; +Sizing.tags = ["!dev"]; +Sizing.parameters = { + chromatic: { disableSnapshot: true }, +}; diff --git a/components/illustratedmessage/stories/illustratedmessage.test.js b/components/illustratedmessage/stories/illustratedmessage.test.js index 2b7b85946a1..a6da8059521 100644 --- a/components/illustratedmessage/stories/illustratedmessage.test.js +++ b/components/illustratedmessage/stories/illustratedmessage.test.js @@ -1,25 +1,17 @@ -import { Template as Link } from "@spectrum-css/link/stories/template.js"; import { Variants } from "@spectrum-css/preview/decorators"; -import { html } from "lit"; import { Template } from "./template.js"; export const IllustratedMessageGroup = Variants({ Template, testData: [{ - heading: "Error 404: Page not found", - description: [ - "This page isn't available. Try checking the URL or visit a different page.", - ], - useAccentColor: false, - }, { - testHeading: "With accent color", - heading: "Drag and drop your file", - description: [ - () => { - return html`${Link({ url: "#", text: "Select a file" })} from your computer.`; - }, - ], - useAccentColor: true, - } + }, + { + testHeading: "Horizontal layout", + isHorizontal: true + }, + { + testHeading: "W/o button group", + hasButtons: false + }, ], }); diff --git a/components/illustratedmessage/stories/template.js b/components/illustratedmessage/stories/template.js index ace824ddae9..8ee5daa77b0 100644 --- a/components/illustratedmessage/stories/template.js +++ b/components/illustratedmessage/stories/template.js @@ -1,4 +1,4 @@ -import { Template as Typography } from "@spectrum-css/typography/stories/template.js"; +import { Template as ButtonGroup } from "@spectrum-css/buttongroup/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { when } from "lit/directives/when.js"; @@ -7,111 +7,76 @@ import "../index.css"; export const Template = ({ rootClass = "spectrum-IllustratedMessage", - heading, + title, description, customClasses = [], - useAccentColor = false, -} = {}, context = {}) => { + hasButtons = false, + isHorizontal = false, + size = "m", + customIllustration, +}) => { + const descriptionContent = Array.isArray(description) + ? description + : [() => html`${description}`]; return html` - <div - class=${classMap({ - [rootClass]: true, - ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), - })} - > - ${illustrationSvgMarkup(useAccentColor)} - ${when(heading, () => - Typography({ - semantics: "heading", - "size": "m", - customClasses: [`${rootClass}-heading`], - content: [heading], - }, context) + <div + class=${classMap({ + [rootClass]: true, + [`${rootClass}--horizontal`]: isHorizontal, + [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined" && size !== "m", + ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), + })} + > + ${customIllustration + ? customIllustration() + : illustrationSvgMarkup(size)} + <div class="${rootClass}-content"> + ${when( + title, + () => + html`<h2 class="${rootClass}-heading"> + ${title} + </h2>` )} - ${when(description, () => - Typography({ - semantics: "body", - "size": "s", - customClasses: [`${rootClass}-description`], - content: [ - ...description.map((c) => (typeof c === "function" ? c({}) : c)) - ], - }, context) + ${when( + descriptionContent, + () => + html`<p + class="${rootClass}-description" + > + ${descriptionContent.map((c) => + typeof c === "function" ? c({}) : c + )} + </p>` + )} + ${when(hasButtons, () => + ButtonGroup({ + size, + customClasses: ["spectrum-IllustratedMessage-actions"], + items: [ + { + variant: "secondary", + treatment: "outline", + label: "Remind me later", + }, + { + variant: "accent", + treatment: "fill", + label: "Rate now", + }, + ] + }) )} </div> - `; + </div> +`; }; -const illustrationSvgMarkup = (withAccentColorClass = false) => html` - <svg - class="spectrum-IllustratedMessage-illustration" - width="199" - height="98" - viewBox="0 0 199 97.7" - > - <defs> - <style> - .cls-1, - .cls-2 { - fill: none; - stroke-linecap: round; - stroke-linejoin: round; - } - - .cls-1 { - stroke-width: 3px; - } - - .cls-2 { - stroke-width: 2px; - } - </style> - </defs> - <path - class="cls-1 ${withAccentColorClass - ? "spectrum-IllustratedMessage-accent" - : ""}" - d="M110.53,85.66,100.26,95.89a1.09,1.09,0,0,1-1.52,0L88.47,85.66" - /> - <line - class="cls-1 ${withAccentColorClass - ? "spectrum-IllustratedMessage-accent" - : ""}" - x1="99.5" - y1="95.5" - x2="99.5" - y2="58.5" - /> - <path class="cls-1" d="M105.5,73.5h19a2,2,0,0,0,2-2v-43" /> - <path - class="cls-1" - d="M126.5,22.5h-19a2,2,0,0,1-2-2V1.5h-31a2,2,0,0,0-2,2v68a2,2,0,0,0,2,2h19" - /> - <line class="cls-1" x1="105.5" y1="1.5" x2="126.5" y2="22.5" /> - <path - class="cls-2" - d="M47.93,50.49a5,5,0,1,0-4.83-5A4.93,4.93,0,0,0,47.93,50.49Z" - /> - <path - class="cls-2" - d="M36.6,65.93,42.05,60A2.06,2.06,0,0,1,45,60l12.68,13.2" - /> - <path - class="cls-2" - d="M3.14,73.23,22.42,53.76a1.65,1.65,0,0,1,2.38,0l19.05,19.7" - /> - <path - class="cls-1" - d="M139.5,36.5H196A1.49,1.49,0,0,1,197.5,38V72A1.49,1.49,0,0,1,196,73.5H141A1.49,1.49,0,0,1,139.5,72V32A1.49,1.49,0,0,1,141,30.5H154a2.43,2.43,0,0,1,1.67.66l6,5.66" - /> - <rect - class="cls-1" - x="1.5" - y="34.5" - width="58" - height="39" - rx="2" - ry="2" - /> - </svg> -`; +const illustrationSvgMarkup = (size = "m") => { + const computedSize = size === "l" ? 160 : 96; + return html` + <svg class="spectrum-IllustratedMessage-illustration" xmlns="http://www.w3.org/2000/svg" width=${computedSize} height=${computedSize} viewBox="0 0 160 160" fill="none" preserveAspectRatio="xMinYMid slice"> + <path fill-rule="evenodd" clip-rule="evenodd" d="M56.2825 50.793C61.8957 37.7312 74.5092 28.5 89.3299 28.5C108.539 28.5 124.014 43.962 125.409 63.2651C140.627 65.9995 152 79.7949 152 96.1349C152 114.396 137.783 129.5 119.883 129.5C119.853 129.5 119.825 129.5 119.8 129.499C119.775 129.5 119.751 129.5 119.726 129.5H31.8807C31.7163 129.5 31.5543 129.49 31.3951 129.471C18.254 129.016 8 117.815 8 104.385C8 94.2115 13.8616 85.3693 22.4022 81.4428C22.3022 80.4808 22.2483 79.4993 22.2483 78.4996C22.2483 62.9094 34.3921 49.9713 49.734 49.9713C51.9924 49.9713 54.1854 50.2579 56.2825 50.793ZM32.2594 121.5H119.543C119.611 121.497 119.679 121.496 119.747 121.496C119.774 121.496 119.799 121.496 119.821 121.497C119.848 121.497 119.87 121.498 119.889 121.498C119.904 121.499 119.919 121.499 119.931 121.5C133.067 121.473 144 110.292 144 96.1349C144 82.4618 133.788 71.5539 121.259 70.8142C119.114 70.6875 117.453 68.8895 117.495 66.7416C117.5 66.5158 117.504 66.4133 117.507 66.3391C117.51 66.2659 117.512 66.2201 117.512 66.1104C117.512 49.5915 104.732 36.5 89.3299 36.5C76.895 36.5 66.2004 45.0052 62.5117 57.0028C62.1777 58.0892 61.3973 58.9822 60.3655 59.4587C59.3337 59.9353 58.1478 59.9504 57.1042 59.5002C54.8242 58.5168 52.3404 57.9713 49.734 57.9713C39.1343 57.9713 30.2483 66.9966 30.2483 78.4996C30.2483 80.0856 30.4387 81.6435 30.7778 83.175C31.235 85.2398 30.0059 87.3038 27.9726 87.8855C21.1678 89.8321 16 96.3955 16 104.385C16 113.898 23.2726 121.333 31.9497 121.483C32.054 121.485 32.1573 121.49 32.2594 121.5ZM119.959 121.501L119.957 121.501C119.967 121.501 119.973 121.502 119.959 121.501Z" /> + </svg> + `; +}; diff --git a/components/infieldbutton/CHANGELOG.md b/components/infieldbutton/CHANGELOG.md index ee4ed4bb390..9229f5a8822 100644 --- a/components/infieldbutton/CHANGELOG.md +++ b/components/infieldbutton/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.2.1-next.0 + +### Patch Changes + +- [#3517](https://github.com/adobe/spectrum-css/pull/3517) [`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751) Thanks [@cdransf](https://github.com/cdransf)! - Define undefined properties from theme directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 6.0.1 ### Patch Changes @@ -150,16 +159,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.4...@spectrum-css/infieldbutton@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.4...@spectrum-css/infieldbutton@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -167,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.3...@spectrum-css/infieldbutton@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.3...@spectrum-css/infieldbutton@4.2.4) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -176,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.2...@spectrum-css/infieldbutton@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.2...@spectrum-css/infieldbutton@4.2.3) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -185,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.1...@spectrum-css/infieldbutton@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.2.1...@spectrum-css/infieldbutton@4.2.2) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -194,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -203,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.1.0...@spectrum-css/infieldbutton@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.1.0...@spectrum-css/infieldbutton@4.2.0) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -212,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.6...@spectrum-css/infieldbutton@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.6...@spectrum-css/infieldbutton@4.1.0) ### ✨ Features @@ -229,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.5...@spectrum-css/infieldbutton@4.0.6) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.5...@spectrum-css/infieldbutton@4.0.6) ### 🐛 Bug fixes @@ -241,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.4...@spectrum-css/infieldbutton@4.0.5) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.4...@spectrum-css/infieldbutton@4.0.5) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -250,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.2...@spectrum-css/infieldbutton@4.0.4) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.2...@spectrum-css/infieldbutton@4.0.4) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -259,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.2...@spectrum-css/infieldbutton@4.0.3) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.2...@spectrum-css/infieldbutton@4.0.3) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -268,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.1...@spectrum-css/infieldbutton@4.0.2) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.1...@spectrum-css/infieldbutton@4.0.2) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -277,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.0...@spectrum-css/infieldbutton@4.0.1) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@4.0.0...@spectrum-css/infieldbutton@4.0.1) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -286,13 +280,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.14...@spectrum-css/infieldbutton@4.0.0) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.14...@spectrum-css/infieldbutton@4.0.0) \*feat(stepper)!: stepper migrate tokens (#1960)([3a4c217](https://github.com/adobe/spectrum-css/commit/3a4c217)), closes[#1960](https://github.com/adobe/spectrum-css/issues/1960) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Stepper to use `@adobe/spectrum-tokens` @@ -411,8 +403,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.14 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.13...@spectrum-css/infieldbutton@3.0.14) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.13...@spectrum-css/infieldbutton@3.0.14) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -420,8 +411,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.13 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.12...@spectrum-css/infieldbutton@3.0.13) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.12...@spectrum-css/infieldbutton@3.0.13) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -429,8 +419,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.12 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.11...@spectrum-css/infieldbutton@3.0.12) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.11...@spectrum-css/infieldbutton@3.0.12) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -438,8 +427,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.11 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.10...@spectrum-css/infieldbutton@3.0.11) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.10...@spectrum-css/infieldbutton@3.0.11) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -447,8 +435,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.9...@spectrum-css/infieldbutton@3.0.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.9...@spectrum-css/infieldbutton@3.0.10) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -456,8 +443,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.8...@spectrum-css/infieldbutton@3.0.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.8...@spectrum-css/infieldbutton@3.0.9) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -465,8 +451,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.8 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.7...@spectrum-css/infieldbutton@3.0.8) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.7...@spectrum-css/infieldbutton@3.0.8) ### 🔙 Reverts @@ -476,8 +461,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.6...@spectrum-css/infieldbutton@3.0.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.6...@spectrum-css/infieldbutton@3.0.7) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -485,8 +469,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.4...@spectrum-css/infieldbutton@3.0.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.4...@spectrum-css/infieldbutton@3.0.6) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -494,8 +477,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.5 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.4...@spectrum-css/infieldbutton@3.0.5) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.4...@spectrum-css/infieldbutton@3.0.5) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -503,8 +485,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.3...@spectrum-css/infieldbutton@3.0.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.3...@spectrum-css/infieldbutton@3.0.4) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -512,8 +493,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.3 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.2...@spectrum-css/infieldbutton@3.0.3) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.2...@spectrum-css/infieldbutton@3.0.3) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -521,8 +501,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.2 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.1...@spectrum-css/infieldbutton@3.0.2) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.1...@spectrum-css/infieldbutton@3.0.2) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -530,8 +509,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.0...@spectrum-css/infieldbutton@3.0.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@3.0.0...@spectrum-css/infieldbutton@3.0.1) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -539,13 +517,11 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 3.0.0 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.27...@spectrum-css/infieldbutton@3.0.0) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.27...@spectrum-css/infieldbutton@3.0.0) \*feat(infieldbutton)!: migrate to spectrum tokens([5198fe0](https://github.com/adobe/spectrum-css/commit/5198fe0)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * updates infield button to use `@adobe/spectrum-tokens` @@ -556,8 +532,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.27 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.26...@spectrum-css/infieldbutton@2.0.27) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.26...@spectrum-css/infieldbutton@2.0.27) ### 🐛 Bug fixes @@ -567,8 +542,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.26 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.25...@spectrum-css/infieldbutton@2.0.26) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.25...@spectrum-css/infieldbutton@2.0.26) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -576,8 +550,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.25 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.24...@spectrum-css/infieldbutton@2.0.25) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.24...@spectrum-css/infieldbutton@2.0.25) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -585,8 +558,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.24 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.23...@spectrum-css/infieldbutton@2.0.24) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.23...@spectrum-css/infieldbutton@2.0.24) ### 🐛 Bug fixes @@ -596,8 +568,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.23 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.22...@spectrum-css/infieldbutton@2.0.23) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.22...@spectrum-css/infieldbutton@2.0.23) **Note:** Version bump only for package @spectrum-css/infieldbutton @@ -605,8 +576,7 @@ docs(infieldbutton): remove small stacked variant from docs ## 2.0.22 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.21...@spectrum-css/infieldbutton@2.0.22) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/infieldbutton@2.0.21...@spectrum-css/infieldbutton@2.0.22) **Note:** Version bump only for package @spectrum-css/infieldbutton diff --git a/components/infieldbutton/dist/metadata.json b/components/infieldbutton/dist/metadata.json index 0f740ffe77e..9b4476f0a4a 100644 --- a/components/infieldbutton/dist/metadata.json +++ b/components/infieldbutton/dist/metadata.json @@ -138,18 +138,6 @@ "--spectrum-neutral-content-color-hover", "--spectrum-neutral-content-color-key-focus" ], - "system-theme": [ - "--system-infield-button-background-color", - "--system-infield-button-background-color-down", - "--system-infield-button-background-color-hover", - "--system-infield-button-background-color-key-focus", - "--system-infield-button-border-color", - "--system-infield-button-border-radius", - "--system-infield-button-border-radius-reset", - "--system-infield-button-border-width", - "--system-infield-button-stacked-bottom-border-radius-end-start", - "--system-infield-button-stacked-top-border-radius-start-start" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-infield-button-border-color", diff --git a/components/infieldbutton/index.css b/components/infieldbutton/index.css index ab1533eeacc..84bb9389975 100644 --- a/components/infieldbutton/index.css +++ b/components/infieldbutton/index.css @@ -11,9 +11,22 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-InfieldButton { + --spectrum-infield-button-border-width: var(--spectrum-border-width-100); + --spectrum-infield-button-border-color: inherit; + + --spectrum-infield-button-border-radius: var(--spectrum-corner-radius-100); + --spectrum-infield-button-border-radius-reset: 0; + + /* Have to call these out specifically due to Express differences */ + --spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-infield-button-border-radius-reset); + --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-infield-button-border-radius-reset); + + --spectrum-infield-button-background-color: var(--spectrum-gray-50); + --spectrum-infield-button-background-color-hover: var(--spectrum-gray-100); + --spectrum-infield-button-background-color-down: var(--spectrum-gray-200); + --spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-100); + /* Medium size is the default */ --spectrum-infield-button-height: var(--spectrum-component-height-100); --spectrum-infield-button-width: var(--spectrum-component-height-100); diff --git a/components/infieldbutton/package.json b/components/infieldbutton/package.json index 061df148738..0ccc374ab1f 100644 --- a/components/infieldbutton/package.json +++ b/components/infieldbutton/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/infieldbutton/stories/template.js b/components/infieldbutton/stories/template.js index 7f0b4ee8db1..5cc77d42045 100644 --- a/components/infieldbutton/stories/template.js +++ b/components/infieldbutton/stories/template.js @@ -4,9 +4,6 @@ import { classMap } from "lit/directives/class-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ( { diff --git a/components/infieldbutton/themes/express.css b/components/infieldbutton/themes/express.css deleted file mode 100644 index 1d930d4cfee..00000000000 --- a/components/infieldbutton/themes/express.css +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-InfieldButton { - --spectrum-infield-button-border-width: 0; - --spectrum-infield-button-border-color: transparent; - - --spectrum-infield-button-border-radius: var(--spectrum-corner-radius-75); - --spectrum-infield-button-border-radius-reset: var(--spectrum-corner-radius-75); - - --spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-corner-radius-75); - --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-corner-radius-75); - - --spectrum-infield-button-background-color: var(--spectrum-gray-200); - --spectrum-infield-button-background-color-hover: var(--spectrum-gray-300); - --spectrum-infield-button-background-color-down: var(--spectrum-gray-400); - --spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-300); - } -} diff --git a/components/infieldbutton/themes/spectrum-two.css b/components/infieldbutton/themes/spectrum-two.css deleted file mode 100644 index 69b060d4e03..00000000000 --- a/components/infieldbutton/themes/spectrum-two.css +++ /dev/null @@ -1,31 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-InfieldButton { - --spectrum-infield-button-border-width: var(--spectrum-border-width-100); - --spectrum-infield-button-border-color: inherit; - - --spectrum-infield-button-border-radius: var(--spectrum-corner-radius-100); - --spectrum-infield-button-border-radius-reset: 0; - - /* Have to call these out specifically due to Express differences */ - --spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-infield-button-border-radius-reset); - --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-infield-button-border-radius-reset); - - --spectrum-infield-button-background-color: var(--spectrum-gray-50); - --spectrum-infield-button-background-color-hover: var(--spectrum-gray-100); - --spectrum-infield-button-background-color-down: var(--spectrum-gray-200); - --spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-100); - } -} diff --git a/components/infieldbutton/themes/spectrum.css b/components/infieldbutton/themes/spectrum.css deleted file mode 100644 index ff95c7c2dce..00000000000 --- a/components/infieldbutton/themes/spectrum.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-InfieldButton { - --spectrum-infield-button-background-color: var(--spectrum-gray-75); - --spectrum-infield-button-background-color-hover: var(--spectrum-gray-200); - --spectrum-infield-button-background-color-down: var(--spectrum-gray-300); - --spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-200); - } -} diff --git a/components/infieldprogresscircle/CHANGELOG.md b/components/infieldprogresscircle/CHANGELOG.md new file mode 100644 index 00000000000..fadf26a5457 --- /dev/null +++ b/components/infieldprogresscircle/CHANGELOG.md @@ -0,0 +1,9 @@ +# @spectrum-css/infieldprogresscircle + +## 1.0.0-next.0 + +### Major Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`f5b76b3`](https://github.com/adobe/spectrum-css/commit/f5b76b395d7144d09c0ab1c7fa0829938a641fc3) Thanks [@pfulton](https://github.com/pfulton)! - ## Infield Progresscircle S2 Migration + + In-field progress circle is a new component created to replace progress circle (size S) in t-shirt size components. The button, textfield, combo box, and picker `template.js` files have all been updated to call for infield progress circles. This component comes in four sizes: (S, M, L, XL), has updated color variants (default, white, black), and has a unified track thickness. diff --git a/components/infieldprogresscircle/README.md b/components/infieldprogresscircle/README.md new file mode 100644 index 00000000000..4d411cc9502 --- /dev/null +++ b/components/infieldprogresscircle/README.md @@ -0,0 +1,7 @@ +# @spectrum-css/infieldprogresscircle + +> The Spectrum CSS infield progress circle component + +This package is part of the [Spectrum CSS project](https://github.com/adobe/spectrum-css). + +See the [Spectrum CSS documentation](https://opensource.adobe.com/spectrum-css/) and [Spectrum CSS on GitHub](https://github.com/adobe/spectrum-css) for details. diff --git a/components/infieldprogresscircle/dist/metadata.json b/components/infieldprogresscircle/dist/metadata.json new file mode 100644 index 00000000000..ffc95f11390 --- /dev/null +++ b/components/infieldprogresscircle/dist/metadata.json @@ -0,0 +1,25 @@ +{ + "sourceFile": "index.css", + "selectors": [ + ".spectrum-InfieldProgressCircle", + ".spectrum-InfieldProgressCircle .spectrum-ProgressCircle-fill", + ".spectrum-InfieldProgressCircle--sizeL", + ".spectrum-InfieldProgressCircle--sizeS", + ".spectrum-InfieldProgressCircle--sizeXL" + ], + "modifiers": [], + "component": [ + "--spectrum-in-field-progress-circle-edge-to-fill", + "--spectrum-in-field-progress-circle-size-100", + "--spectrum-in-field-progress-circle-size-200", + "--spectrum-in-field-progress-circle-size-300", + "--spectrum-in-field-progress-circle-size-75", + "--spectrum-infieldprogresscircle-padding-block" + ], + "global": ["--spectrum-progress-circle-thickness-small"], + "passthroughs": [ + "--mod-progress-circle-size", + "--mod-progress-circle-thickness" + ], + "high-contrast": [] +} diff --git a/components/infieldprogresscircle/index.css b/components/infieldprogresscircle/index.css new file mode 100644 index 00000000000..e3525eccc40 --- /dev/null +++ b/components/infieldprogresscircle/index.css @@ -0,0 +1,37 @@ +/*! +Copyright 2025 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ + +.spectrum-InfieldProgressCircle { + --mod-progress-circle-thickness: var(--spectrum-progress-circle-thickness-small); + --mod-progress-circle-size: var(--spectrum-in-field-progress-circle-size-100); + --spectrum-infieldprogresscircle-padding-block: var(--spectrum-in-field-progress-circle-edge-to-fill); +} + +.spectrum-InfieldProgressCircle--sizeS { + --mod-progress-circle-size: var(--spectrum-in-field-progress-circle-size-75); +} + +.spectrum-InfieldProgressCircle--sizeL { + --mod-progress-circle-size: var(--spectrum-in-field-progress-circle-size-200); +} + +.spectrum-InfieldProgressCircle--sizeXL { + --mod-progress-circle-size: var(--spectrum-in-field-progress-circle-size-300); +} + +.spectrum-InfieldProgressCircle { + padding-block: var(--spectrum-infieldprogresscircle-padding-block); + + .spectrum-ProgressCircle-fill { + stroke-linecap: square; + } +} diff --git a/components/infieldprogresscircle/package.json b/components/infieldprogresscircle/package.json new file mode 100644 index 00000000000..96874a62e59 --- /dev/null +++ b/components/infieldprogresscircle/package.json @@ -0,0 +1,52 @@ +{ + "name": "@spectrum-css/infieldprogresscircle", + "version": "1.0.0-next.0", + "description": "The Spectrum CSS infieldprogresscircle component", + "license": "Apache-2.0", + "author": "Adobe", + "homepage": "https://opensource.adobe.com/spectrum-css/?path=/docs/components-in-field-progress-circle--docs", + "repository": { + "type": "git", + "url": "https://github.com/adobe/spectrum-css.git", + "directory": "components/infieldprogresscircle" + }, + "bugs": { + "url": "https://github.com/adobe/spectrum-css/issues" + }, + "exports": { + ".": "./dist/index.css", + "./*.md": "./*.md", + "./dist/*": "./dist/*", + "./index-*.css": "./dist/index-*.css", + "./index.css": "./dist/index.css", + "./metadata.json": "./dist/metadata.json", + "./package.json": "./package.json", + "./stories/*": "./stories/*" + }, + "main": "dist/index.css", + "peerDependencies": { + "@spectrum-css/tokens": ">=16" + }, + "devDependencies": { + "@spectrum-css/tokens": "16.0.0" + }, + "keywords": [ + "design-system", + "spectrum", + "spectrum-css", + "adobe", + "adobe-spectrum", + "component", + "css" + ], + "publishConfig": { + "access": "public" + }, + "spectrum": [ + { + "guidelines": "https://spectrum.adobe.com/page/progress-circle", + "rootClass": "spectrum-InfieldProgressCircle", + "swc": "https://opensource.adobe.com/spectrum-web-components/components/progress-circle/" + } + ] +} diff --git a/components/infieldprogresscircle/project.json b/components/infieldprogresscircle/project.json new file mode 100644 index 00000000000..ff11b0651fc --- /dev/null +++ b/components/infieldprogresscircle/project.json @@ -0,0 +1,17 @@ +{ + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "infieldprogresscircle", + "tags": ["component"], + "targets": { + "build": {}, + "clean": {}, + "compare": {}, + "format": {}, + "lint": {}, + "report": {}, + "test": { + "defaultConfiguration": "scope" + }, + "validate": {} + } +} diff --git a/components/infieldprogresscircle/stories/infieldprogresscircle.stories.js b/components/infieldprogresscircle/stories/infieldprogresscircle.stories.js new file mode 100644 index 00000000000..e8c60ee9d6d --- /dev/null +++ b/components/infieldprogresscircle/stories/infieldprogresscircle.stories.js @@ -0,0 +1,121 @@ +import { Sizes } from "@spectrum-css/preview/decorators"; +import { disableDefaultModes } from "@spectrum-css/preview/modes"; +import { size } from "@spectrum-css/preview/types"; +import { default as ProgressCircle } from "@spectrum-css/progresscircle/stories/progresscircle.stories.js"; +import metadata from "../dist/metadata.json"; +import packageJson from "../package.json"; +import { InfieldProgressCircleGroup } from "./infieldprogresscircle.test.js"; +import { Template } from "./template.js"; + +/** + * In-field progress circles are used in t-shirt size components such as [buttons](/docs/components-button--docs), [combo boxes](/docs/components-combobox--docs), and [pickers](/docs/components-picker--docs). The in-field progress circle can be used in place of an icon or in tight spaces when space is limited both vertically and horizontally. +*/ + +export default { + title: "In-field progress circle", + component: "InfieldProgressCircle", + argTypes: { + ...ProgressCircle.argTypes, + size: size(["s", "m", "l", "xl"]), + }, + args: { + ...ProgressCircle.args, + rootClass: "spectrum-InfieldProgressCircle", + }, + parameters: { + ...ProgressCircle.parameters, + design: { + type: "figma", + url: "https://www.figma.com/design/eoZHKJH9a3LJkHYCGt60Vb/S2-token-specs?node-id=14970-6050", + }, + packageJson, + metadata, + } +}; + +export const Default = InfieldProgressCircleGroup.bind({}); +Default.args = {}; + +// ********* VRT ONLY ********* // +export const WithForcedColors = InfieldProgressCircleGroup.bind({}); +WithForcedColors.args = Default.args; +WithForcedColors.tags = ["!autodocs", "!dev"]; +WithForcedColors.parameters = { + chromatic: { + forcedColors: "active", + modes: disableDefaultModes, + }, +}; + +// ********* DOCS ONLY ********* // + +export const Sizing = (args, context) => Sizes({ + Template, + withHeading: false, + withBorder: false, + ...args, +}, context); +Sizing.args = {}; +Sizing.tags = ["!dev"]; +Sizing.parameters = { + chromatic: { disableSnapshot: true }, +}; + +/** + * The indeterminate progress circle displays a repeating animation for the inner fill. + */ +export const Indeterminate = (args, context) => Sizes({ + Template, + withHeading: false, + withBorder: false, + ...args, +}, context); +Indeterminate.args = { + isIndeterminate: true, +}; +Indeterminate.tags = ["!dev"]; +Indeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; + +export const StaticWhiteDeterminate = Sizing.bind({}); +StaticWhiteDeterminate.tags = ["!dev"]; +StaticWhiteDeterminate.storyName = "Static white, default"; +StaticWhiteDeterminate.args = { + staticColor: "white", +}; +StaticWhiteDeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; + +export const StaticWhiteIndeterminate = Sizing.bind({}); +StaticWhiteIndeterminate.tags = ["!dev"]; +StaticWhiteIndeterminate.storyName = "Static white, indeterminate"; +StaticWhiteIndeterminate.args = { + staticColor: "white", + isIndeterminate: true, +}; +StaticWhiteIndeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; + +export const StaticBlackDeterminate = Sizing.bind({}); +StaticBlackDeterminate.tags = ["!dev"]; +StaticBlackDeterminate.storyName = "Static black, default"; +StaticBlackDeterminate.args = { + staticColor: "black", +}; +StaticBlackDeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; + +export const StaticBlackIndeterminate = Sizing.bind({}); +StaticBlackIndeterminate.tags = ["!dev"]; +StaticBlackIndeterminate.storyName = "Static black, indeterminate"; +StaticBlackIndeterminate.args = { + staticColor: "black", + isIndeterminate: true, +}; +StaticBlackIndeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; diff --git a/components/infieldprogresscircle/stories/infieldprogresscircle.test.js b/components/infieldprogresscircle/stories/infieldprogresscircle.test.js new file mode 100644 index 00000000000..2ef07f947ab --- /dev/null +++ b/components/infieldprogresscircle/stories/infieldprogresscircle.test.js @@ -0,0 +1,25 @@ +import { Variants } from "@spectrum-css/preview/decorators"; +import { Template } from "./template.js"; + +export const InfieldProgressCircleGroup = Variants({ + Template, + testData: [ + { + testHeading: "Default", + }, + { + testHeading: "Static white", + staticColor: "white", + }, + { + testHeading: "Static black", + staticColor: "black", + }, + ], + stateData: [ + { + testHeading: "Indeterminate", + isIndeterminate: true, + } + ] +}); diff --git a/components/infieldprogresscircle/stories/template.js b/components/infieldprogresscircle/stories/template.js new file mode 100644 index 00000000000..7f8fc1f8de1 --- /dev/null +++ b/components/infieldprogresscircle/stories/template.js @@ -0,0 +1,21 @@ +import { Template as ProgressCircle } from "@spectrum-css/progresscircle/stories/template.js"; +import { capitalize } from "lodash-es"; +import "../index.css"; + +export const Template = ({ + customClasses = [], + rootClass = "spectrum-InfieldProgressCircle", + size = "m", + staticColor, + ...item +} = {}, context = {}) => ProgressCircle({ + customClasses: [ + rootClass, + typeof size !== "undefined" ? `${rootClass}--size${size.toUpperCase()}` : null, + typeof staticColor !== "undefined" ? `${rootClass}--static${capitalize(staticColor)}` : null, + ...customClasses + ].filter(Boolean), + size, + staticColor, + ...item +}, context ); diff --git a/components/inlinealert/CHANGELOG.md b/components/inlinealert/CHANGELOG.md index 10c9deb8c00..1a00d7e79dd 100644 --- a/components/inlinealert/CHANGELOG.md +++ b/components/inlinealert/CHANGELOG.md @@ -152,16 +152,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.6...@spectrum-css/inlinealert@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.6...@spectrum-css/inlinealert@8.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -169,8 +166,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.5...@spectrum-css/inlinealert@7.1.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.5...@spectrum-css/inlinealert@7.1.6) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -178,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.4...@spectrum-css/inlinealert@7.1.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.4...@spectrum-css/inlinealert@7.1.5) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -187,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.3...@spectrum-css/inlinealert@7.1.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.3...@spectrum-css/inlinealert@7.1.4) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -196,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.2...@spectrum-css/inlinealert@7.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.2...@spectrum-css/inlinealert@7.1.3) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -205,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.1...@spectrum-css/inlinealert@7.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.1.1...@spectrum-css/inlinealert@7.1.2) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -214,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/inlinealert @@ -223,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.56...@spectrum-css/inlinealert@7.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.56...@spectrum-css/inlinealert@7.1.0) ### ✨ Features @@ -234,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.56 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.55...@spectrum-css/inlinealert@7.0.56) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.55...@spectrum-css/inlinealert@7.0.56) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -243,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.55 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.54...@spectrum-css/inlinealert@7.0.55) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.54...@spectrum-css/inlinealert@7.0.55) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -252,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.54 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.52...@spectrum-css/inlinealert@7.0.54) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.52...@spectrum-css/inlinealert@7.0.54) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -261,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.53 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.52...@spectrum-css/inlinealert@7.0.53) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.52...@spectrum-css/inlinealert@7.0.53) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -270,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.52 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.51...@spectrum-css/inlinealert@7.0.52) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.51...@spectrum-css/inlinealert@7.0.52) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -279,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.51 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.50...@spectrum-css/inlinealert@7.0.51) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.50...@spectrum-css/inlinealert@7.0.51) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -288,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.50 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.49...@spectrum-css/inlinealert@7.0.50) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.49...@spectrum-css/inlinealert@7.0.50) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -297,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.49 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.48...@spectrum-css/inlinealert@7.0.49) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.48...@spectrum-css/inlinealert@7.0.49) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -306,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.48 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.47...@spectrum-css/inlinealert@7.0.48) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.47...@spectrum-css/inlinealert@7.0.48) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -315,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.47 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.46...@spectrum-css/inlinealert@7.0.47) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.46...@spectrum-css/inlinealert@7.0.47) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -324,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.46 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.45...@spectrum-css/inlinealert@7.0.46) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.45...@spectrum-css/inlinealert@7.0.46) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -333,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.45 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.44...@spectrum-css/inlinealert@7.0.45) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.44...@spectrum-css/inlinealert@7.0.45) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -342,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.44 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.43...@spectrum-css/inlinealert@7.0.44) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.43...@spectrum-css/inlinealert@7.0.44) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -351,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.43 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.42...@spectrum-css/inlinealert@7.0.43) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.42...@spectrum-css/inlinealert@7.0.43) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -360,8 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.42 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.41...@spectrum-css/inlinealert@7.0.42) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.41...@spectrum-css/inlinealert@7.0.42) ### 🔙 Reverts @@ -371,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.41 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.40...@spectrum-css/inlinealert@7.0.41) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.40...@spectrum-css/inlinealert@7.0.41) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -380,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.40 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.38...@spectrum-css/inlinealert@7.0.40) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.38...@spectrum-css/inlinealert@7.0.40) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -389,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.39 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.38...@spectrum-css/inlinealert@7.0.39) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.38...@spectrum-css/inlinealert@7.0.39) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -398,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.38 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.37...@spectrum-css/inlinealert@7.0.38) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.37...@spectrum-css/inlinealert@7.0.38) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -407,8 +378,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.37 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.36...@spectrum-css/inlinealert@7.0.37) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.36...@spectrum-css/inlinealert@7.0.37) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -416,8 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.36 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.35...@spectrum-css/inlinealert@7.0.36) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.35...@spectrum-css/inlinealert@7.0.36) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -425,8 +394,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.35 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.34...@spectrum-css/inlinealert@7.0.35) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.34...@spectrum-css/inlinealert@7.0.35) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -434,8 +402,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.34 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.33...@spectrum-css/inlinealert@7.0.34) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.33...@spectrum-css/inlinealert@7.0.34) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -443,8 +410,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.33 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.32...@spectrum-css/inlinealert@7.0.33) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.32...@spectrum-css/inlinealert@7.0.33) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -452,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.32 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.31...@spectrum-css/inlinealert@7.0.32) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.31...@spectrum-css/inlinealert@7.0.32) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -461,8 +426,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.31 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.30...@spectrum-css/inlinealert@7.0.31) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.30...@spectrum-css/inlinealert@7.0.31) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -470,8 +434,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.30 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.29...@spectrum-css/inlinealert@7.0.30) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.29...@spectrum-css/inlinealert@7.0.30) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -479,8 +442,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.29 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.28...@spectrum-css/inlinealert@7.0.29) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.28...@spectrum-css/inlinealert@7.0.29) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -488,8 +450,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.28 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.27...@spectrum-css/inlinealert@7.0.28) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.27...@spectrum-css/inlinealert@7.0.28) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -497,8 +458,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.27 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.26...@spectrum-css/inlinealert@7.0.27) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.26...@spectrum-css/inlinealert@7.0.27) ### 🐛 Bug fixes @@ -508,8 +468,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.26 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.25...@spectrum-css/inlinealert@7.0.26) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.25...@spectrum-css/inlinealert@7.0.26) **Note:** Version bump only for package @spectrum-css/inlinealert @@ -517,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.25 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.24...@spectrum-css/inlinealert@7.0.25) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/inlinealert@7.0.24...@spectrum-css/inlinealert@7.0.25) **Note:** Version bump only for package @spectrum-css/inlinealert diff --git a/components/inlinealert/dist/metadata.json b/components/inlinealert/dist/metadata.json index 935c89f08a3..bd5894d28c9 100644 --- a/components/inlinealert/dist/metadata.json +++ b/components/inlinealert/dist/metadata.json @@ -98,7 +98,6 @@ "--spectrum-spacing-400", "--spectrum-workflow-icon-size-100" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-inlinealert-background-color", diff --git a/components/inlinealert/package.json b/components/inlinealert/package.json index 10124eb4df0..13b9826ee9f 100644 --- a/components/inlinealert/package.json +++ b/components/inlinealert/package.json @@ -25,9 +25,9 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/button": { @@ -37,11 +37,7 @@ "devDependencies": { "@spectrum-css/button": "14.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/link/CHANGELOG.md b/components/link/CHANGELOG.md index 9532dd2b599..eb8dd86ac38 100644 --- a/components/link/CHANGELOG.md +++ b/components/link/CHANGELOG.md @@ -122,16 +122,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.5...@spectrum-css/link@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.5...@spectrum-css/link@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,8 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.4...@spectrum-css/link@4.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.4...@spectrum-css/link@4.2.5) **Note:** Version bump only for package @spectrum-css/link @@ -148,8 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.3...@spectrum-css/link@4.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.3...@spectrum-css/link@4.2.4) **Note:** Version bump only for package @spectrum-css/link @@ -157,8 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.2...@spectrum-css/link@4.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.2...@spectrum-css/link@4.2.3) **Note:** Version bump only for package @spectrum-css/link @@ -166,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.1...@spectrum-css/link@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.2.1...@spectrum-css/link@4.2.2) **Note:** Version bump only for package @spectrum-css/link @@ -175,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/link @@ -184,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.1.0...@spectrum-css/link@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.1.0...@spectrum-css/link@4.2.0) **Note:** Version bump only for package @spectrum-css/link @@ -193,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.75...@spectrum-css/link@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.75...@spectrum-css/link@4.1.0) ### ✨ Features @@ -204,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.75 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.74...@spectrum-css/link@4.0.75) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.74...@spectrum-css/link@4.0.75) **Note:** Version bump only for package @spectrum-css/link @@ -213,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.74 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.73...@spectrum-css/link@4.0.74) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.73...@spectrum-css/link@4.0.74) **Note:** Version bump only for package @spectrum-css/link @@ -222,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.73 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.71...@spectrum-css/link@4.0.73) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.71...@spectrum-css/link@4.0.73) **Note:** Version bump only for package @spectrum-css/link @@ -231,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.72 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.71...@spectrum-css/link@4.0.72) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.71...@spectrum-css/link@4.0.72) **Note:** Version bump only for package @spectrum-css/link @@ -240,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.71 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.70...@spectrum-css/link@4.0.71) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.70...@spectrum-css/link@4.0.71) **Note:** Version bump only for package @spectrum-css/link @@ -249,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.70 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.69...@spectrum-css/link@4.0.70) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.69...@spectrum-css/link@4.0.70) **Note:** Version bump only for package @spectrum-css/link @@ -258,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.69 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.68...@spectrum-css/link@4.0.69) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.68...@spectrum-css/link@4.0.69) **Note:** Version bump only for package @spectrum-css/link @@ -267,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.68 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.67...@spectrum-css/link@4.0.68) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.67...@spectrum-css/link@4.0.68) **Note:** Version bump only for package @spectrum-css/link @@ -276,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.67 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.66...@spectrum-css/link@4.0.67) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.66...@spectrum-css/link@4.0.67) **Note:** Version bump only for package @spectrum-css/link @@ -285,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.66 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.65...@spectrum-css/link@4.0.66) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.65...@spectrum-css/link@4.0.66) **Note:** Version bump only for package @spectrum-css/link @@ -294,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.65 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.64...@spectrum-css/link@4.0.65) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.64...@spectrum-css/link@4.0.65) **Note:** Version bump only for package @spectrum-css/link @@ -303,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.64 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.63...@spectrum-css/link@4.0.64) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.63...@spectrum-css/link@4.0.64) **Note:** Version bump only for package @spectrum-css/link @@ -312,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.63 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.62...@spectrum-css/link@4.0.63) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.62...@spectrum-css/link@4.0.63) **Note:** Version bump only for package @spectrum-css/link @@ -321,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.62 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.61...@spectrum-css/link@4.0.62) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.61...@spectrum-css/link@4.0.62) ### 🔙 Reverts @@ -332,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.61 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.60...@spectrum-css/link@4.0.61) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.60...@spectrum-css/link@4.0.61) **Note:** Version bump only for package @spectrum-css/link @@ -341,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.60 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.58...@spectrum-css/link@4.0.60) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.58...@spectrum-css/link@4.0.60) **Note:** Version bump only for package @spectrum-css/link @@ -350,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.59 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.58...@spectrum-css/link@4.0.59) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.58...@spectrum-css/link@4.0.59) **Note:** Version bump only for package @spectrum-css/link @@ -359,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.58 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.57...@spectrum-css/link@4.0.58) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.57...@spectrum-css/link@4.0.58) **Note:** Version bump only for package @spectrum-css/link @@ -368,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.57 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.56...@spectrum-css/link@4.0.57) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.56...@spectrum-css/link@4.0.57) **Note:** Version bump only for package @spectrum-css/link @@ -377,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.56 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.55...@spectrum-css/link@4.0.56) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.55...@spectrum-css/link@4.0.56) **Note:** Version bump only for package @spectrum-css/link @@ -386,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.55 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.54...@spectrum-css/link@4.0.55) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.54...@spectrum-css/link@4.0.55) **Note:** Version bump only for package @spectrum-css/link @@ -395,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.54 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.53...@spectrum-css/link@4.0.54) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.53...@spectrum-css/link@4.0.54) **Note:** Version bump only for package @spectrum-css/link @@ -404,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.53 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.52...@spectrum-css/link@4.0.53) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.52...@spectrum-css/link@4.0.53) **Note:** Version bump only for package @spectrum-css/link @@ -413,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.52 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.51...@spectrum-css/link@4.0.52) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.51...@spectrum-css/link@4.0.52) **Note:** Version bump only for package @spectrum-css/link @@ -422,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.51 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.50...@spectrum-css/link@4.0.51) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.50...@spectrum-css/link@4.0.51) **Note:** Version bump only for package @spectrum-css/link @@ -431,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.50 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.49...@spectrum-css/link@4.0.50) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.49...@spectrum-css/link@4.0.50) **Note:** Version bump only for package @spectrum-css/link @@ -440,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.48...@spectrum-css/link@4.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.48...@spectrum-css/link@4.0.49) **Note:** Version bump only for package @spectrum-css/link @@ -449,8 +412,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.47...@spectrum-css/link@4.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.47...@spectrum-css/link@4.0.48) **Note:** Version bump only for package @spectrum-css/link @@ -458,8 +420,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.46...@spectrum-css/link@4.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.46...@spectrum-css/link@4.0.47) ### 🐛 Bug fixes @@ -469,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.45...@spectrum-css/link@4.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.45...@spectrum-css/link@4.0.46) **Note:** Version bump only for package @spectrum-css/link @@ -478,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.44...@spectrum-css/link@4.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/link@4.0.44...@spectrum-css/link@4.0.45) **Note:** Version bump only for package @spectrum-css/link diff --git a/components/link/dist/metadata.json b/components/link/dist/metadata.json index 9befaceefc4..ad90df33840 100644 --- a/components/link/dist/metadata.json +++ b/components/link/dist/metadata.json @@ -42,7 +42,6 @@ "--spectrum-neutral-content-color-key-focus", "--spectrum-white" ], - "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-link-text-color"] } diff --git a/components/link/package.json b/components/link/package.json index 405ead4365a..33177da8fdb 100644 --- a/components/link/package.json +++ b/components/link/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/logicbutton/CHANGELOG.md b/components/logicbutton/CHANGELOG.md index 334812889a7..3ac08750dbc 100644 --- a/components/logicbutton/CHANGELOG.md +++ b/components/logicbutton/CHANGELOG.md @@ -130,8 +130,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.4...@spectrum-css/logicbutton@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.4...@spectrum-css/logicbutton@4.0.0) ### 🐛 Bug fixes @@ -151,8 +150,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.3.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.3...@spectrum-css/logicbutton@3.3.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.3...@spectrum-css/logicbutton@3.3.4) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -160,8 +158,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.3.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.2...@spectrum-css/logicbutton@3.3.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.2...@spectrum-css/logicbutton@3.3.3) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -169,8 +166,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.3.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.1...@spectrum-css/logicbutton@3.3.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.3.1...@spectrum-css/logicbutton@3.3.2) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -178,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/logicbutton @@ -187,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.3.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.2.0...@spectrum-css/logicbutton@3.3.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.2.0...@spectrum-css/logicbutton@3.3.0) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -196,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.1.0...@spectrum-css/logicbutton@3.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.1.0...@spectrum-css/logicbutton@3.2.0) ### ✨ Features @@ -211,8 +204,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.5...@spectrum-css/logicbutton@3.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.5...@spectrum-css/logicbutton@3.1.0) ### ✨ Features @@ -222,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.5 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.4...@spectrum-css/logicbutton@3.0.5) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.4...@spectrum-css/logicbutton@3.0.5) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -231,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.4 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.3...@spectrum-css/logicbutton@3.0.4) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.3...@spectrum-css/logicbutton@3.0.4) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -240,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.3 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.1...@spectrum-css/logicbutton@3.0.3) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.1...@spectrum-css/logicbutton@3.0.3) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -249,8 +238,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.2 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.1...@spectrum-css/logicbutton@3.0.2) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.1...@spectrum-css/logicbutton@3.0.2) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -258,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.1 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.0...@spectrum-css/logicbutton@3.0.1) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@3.0.0...@spectrum-css/logicbutton@3.0.1) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -267,13 +254,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.2...@spectrum-css/logicbutton@3.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.2...@spectrum-css/logicbutton@3.0.0) \*feat(logicbutton)!: migrate to use spectrum-tokens (#2175)([f4dc972](https://github.com/adobe/spectrum-css/commit/f4dc972)), closes[#2175](https://github.com/adobe/spectrum-css/issues/2175)[#714](https://github.com/adobe/spectrum-css/issues/714) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates to use `@adobe/spectrum-tokens` @@ -302,8 +287,7 @@ Adds some extra room between the example buttons in the docs site. ## 2.0.2 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.1...@spectrum-css/logicbutton@2.0.2) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.1...@spectrum-css/logicbutton@2.0.2) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -311,8 +295,7 @@ Adds some extra room between the example buttons in the docs site. ## 2.0.1 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.0...@spectrum-css/logicbutton@2.0.1) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@2.0.0...@spectrum-css/logicbutton@2.0.1) ### 🔙 Reverts @@ -322,13 +305,11 @@ Adds some extra room between the example buttons in the docs site. ## 2.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.36...@spectrum-css/logicbutton@2.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.36...@spectrum-css/logicbutton@2.0.0) \*refactor(logicbutton)!: replace focus-ring with focus-visible([1bee468](https://github.com/adobe/spectrum-css/commit/1bee468)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use focus-visible psuedo class for focus styling @@ -337,8 +318,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.36 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.35...@spectrum-css/logicbutton@1.2.36) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.35...@spectrum-css/logicbutton@1.2.36) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -346,8 +326,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.35 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.34...@spectrum-css/logicbutton@1.2.35) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.34...@spectrum-css/logicbutton@1.2.35) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -355,8 +334,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.34 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.33...@spectrum-css/logicbutton@1.2.34) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.33...@spectrum-css/logicbutton@1.2.34) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -364,8 +342,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.33 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.32...@spectrum-css/logicbutton@1.2.33) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.32...@spectrum-css/logicbutton@1.2.33) ### 🐛 Bug fixes @@ -375,8 +352,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.32 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.31...@spectrum-css/logicbutton@1.2.32) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.31...@spectrum-css/logicbutton@1.2.32) **Note:** Version bump only for package @spectrum-css/logicbutton @@ -384,8 +360,7 @@ Adds some extra room between the example buttons in the docs site. ## 1.2.31 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.30...@spectrum-css/logicbutton@1.2.31) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/logicbutton@1.2.30...@spectrum-css/logicbutton@1.2.31) **Note:** Version bump only for package @spectrum-css/logicbutton diff --git a/components/logicbutton/dist/metadata.json b/components/logicbutton/dist/metadata.json index 6adfbf58b24..195d8c87082 100644 --- a/components/logicbutton/dist/metadata.json +++ b/components/logicbutton/dist/metadata.json @@ -15,9 +15,7 @@ ".spectrum-LogicButton:focus-visible:after" ], "modifiers": [ - "--mod-animation-duration-100", "--mod-focus-indicator-gap", - "--mod-line-height-100", "--mod-logic-button-and-background-color", "--mod-logic-button-and-background-color-disabled", "--mod-logic-button-and-background-color-hover", @@ -46,8 +44,7 @@ "--mod-logic-button-or-border-color-hover-disabled", "--mod-logic-button-or-text-color", "--mod-logic-button-or-text-color-disabled", - "--mod-logic-button-padding", - "--mod-sans-font-family-stack" + "--mod-logic-button-padding" ], "component": [ "--spectrum-logic-button-and-background-color", @@ -88,16 +85,6 @@ "--spectrum-sans-font-family-stack", "--spectrum-white" ], - "system-theme": [ - "--system-logic-button-and-background-color-disabled", - "--system-logic-button-and-background-color-hover-disabled", - "--system-logic-button-and-border-color-disabled", - "--system-logic-button-and-border-color-hover-disabled", - "--system-logic-button-or-background-color-disabled", - "--system-logic-button-or-background-color-hover-disabled", - "--system-logic-button-or-border-color-disabled", - "--system-logic-button-or-border-color-hover-disabled" - ], "passthroughs": [ "--mod-button-animation-duration", "--mod-button-focus-indicator-gap", diff --git a/components/logicbutton/index.css b/components/logicbutton/index.css index 4429907705b..8e1c2658fbf 100644 --- a/components/logicbutton/index.css +++ b/components/logicbutton/index.css @@ -12,9 +12,18 @@ */ @import "@spectrum-css/commons/basebutton.css"; -@import "./themes/spectrum-two.css"; .spectrum-LogicButton { + --spectrum-logic-button-and-background-color-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-and-border-color-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-and-background-color-hover-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-and-border-color-hover-disabled: var(--spectrum-gray-100); + + --spectrum-logic-button-or-background-color-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-or-border-color-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-or-background-color-hover-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-or-border-color-hover-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-border-radius: var(--spectrum-corner-radius-100); --spectrum-logic-button-and-text-color: var(--spectrum-white); diff --git a/components/logicbutton/package.json b/components/logicbutton/package.json index eb48d4cce9b..4c6360c191e 100644 --- a/components/logicbutton/package.json +++ b/components/logicbutton/package.json @@ -25,15 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/commons": "11.0.0", + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/logicbutton/stories/template.js b/components/logicbutton/stories/template.js index 5b0730616ef..02f5b3aa028 100644 --- a/components/logicbutton/stories/template.js +++ b/components/logicbutton/stories/template.js @@ -2,9 +2,6 @@ import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-LogicButton", diff --git a/components/logicbutton/themes/express.css b/components/logicbutton/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/logicbutton/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/logicbutton/themes/spectrum-two.css b/components/logicbutton/themes/spectrum-two.css deleted file mode 100644 index c0bd0d1b3fb..00000000000 --- a/components/logicbutton/themes/spectrum-two.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-LogicButton { - --spectrum-logic-button-and-background-color-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-and-border-color-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-and-background-color-hover-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-and-border-color-hover-disabled: var(--spectrum-gray-100); - - --spectrum-logic-button-or-background-color-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-or-border-color-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-or-background-color-hover-disabled: var(--spectrum-gray-100); - --spectrum-logic-button-or-border-color-hover-disabled: var(--spectrum-gray-100); - } -} diff --git a/components/logicbutton/themes/spectrum.css b/components/logicbutton/themes/spectrum.css deleted file mode 100644 index 4aa43a01048..00000000000 --- a/components/logicbutton/themes/spectrum.css +++ /dev/null @@ -1,30 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-LogicButton { - --spectrum-logic-button-and-background-color-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-and-border-color-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-and-background-color-hover-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-and-border-color-hover-disabled: var(--spectrum-gray-200); - - --spectrum-logic-button-or-background-color-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-or-border-color-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-or-background-color-hover-disabled: var(--spectrum-gray-200); - --spectrum-logic-button-or-border-color-hover-disabled: var(--spectrum-gray-200); - } -} diff --git a/components/menu/CHANGELOG.md b/components/menu/CHANGELOG.md index a5f24804f7e..bfc4ff642d9 100644 --- a/components/menu/CHANGELOG.md +++ b/components/menu/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 8.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/switch@5.2.1-next.0 + - @spectrum-css/tokens@14.0.0-next.12 + +## 8.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/tray@4.0.0-next.0 + ## 9.0.1 ### Patch Changes @@ -221,16 +239,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.5...@spectrum-css/menu@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.5...@spectrum-css/menu@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -238,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.4...@spectrum-css/menu@6.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.4...@spectrum-css/menu@6.1.5) ### 🐛 Bug fixes @@ -249,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.3...@spectrum-css/menu@6.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.3...@spectrum-css/menu@6.1.4) **Note:** Version bump only for package @spectrum-css/menu @@ -258,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.2...@spectrum-css/menu@6.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.2...@spectrum-css/menu@6.1.3) **Note:** Version bump only for package @spectrum-css/menu @@ -267,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.1...@spectrum-css/menu@6.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.1.1...@spectrum-css/menu@6.1.2) **Note:** Version bump only for package @spectrum-css/menu @@ -276,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/menu @@ -285,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.0.0...@spectrum-css/menu@6.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@6.0.0...@spectrum-css/menu@6.1.0) ### 🐛 Bug fixes @@ -296,8 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.2.1...@spectrum-css/menu@6.0.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.2.1...@spectrum-css/menu@6.0.0) ### ✨ Features @@ -305,8 +313,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*fix(menu)!: reimplement text truncating (#2299)([9752d02](https://github.com/adobe/spectrum-css/commit/9752d02)), closes[#2299](https://github.com/adobe/spectrum-css/issues/2299) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * removes flex-based display, renames classes, reintroduces truncation @@ -332,8 +339,7 @@ Additionally: ## 5.2.1 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.2.0...@spectrum-css/menu@5.2.1) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.2.0...@spectrum-css/menu@5.2.1) **Note:** Version bump only for package @spectrum-css/menu @@ -341,8 +347,7 @@ Additionally: ## 5.2.0 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.5...@spectrum-css/menu@5.2.0) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.5...@spectrum-css/menu@5.2.0) ### ✨ Features @@ -356,8 +361,7 @@ Additionally: ## 5.1.5 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.3...@spectrum-css/menu@5.1.5) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.3...@spectrum-css/menu@5.1.5) **Note:** Version bump only for package @spectrum-css/menu @@ -365,8 +369,7 @@ Additionally: ## 5.1.4 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.3...@spectrum-css/menu@5.1.4) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.3...@spectrum-css/menu@5.1.4) **Note:** Version bump only for package @spectrum-css/menu @@ -374,8 +377,7 @@ Additionally: ## 5.1.3 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.2...@spectrum-css/menu@5.1.3) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.2...@spectrum-css/menu@5.1.3) **Note:** Version bump only for package @spectrum-css/menu @@ -383,8 +385,7 @@ Additionally: ## 5.1.2 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.1...@spectrum-css/menu@5.1.2) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.1...@spectrum-css/menu@5.1.2) ### 🐛 Bug fixes @@ -394,8 +395,7 @@ Additionally: ## 5.1.1 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.0...@spectrum-css/menu@5.1.1) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.1.0...@spectrum-css/menu@5.1.1) **Note:** Version bump only for package @spectrum-css/menu @@ -403,8 +403,7 @@ Additionally: ## 5.1.0 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.12...@spectrum-css/menu@5.1.0) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.12...@spectrum-css/menu@5.1.0) ### ✨ Features @@ -414,8 +413,7 @@ Additionally: ## 5.0.12 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.11...@spectrum-css/menu@5.0.12) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.11...@spectrum-css/menu@5.0.12) **Note:** Version bump only for package @spectrum-css/menu @@ -423,8 +421,7 @@ Additionally: ## 5.0.11 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.10...@spectrum-css/menu@5.0.11) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.10...@spectrum-css/menu@5.0.11) **Note:** Version bump only for package @spectrum-css/menu @@ -432,8 +429,7 @@ Additionally: ## 5.0.10 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.9...@spectrum-css/menu@5.0.10) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.9...@spectrum-css/menu@5.0.10) **Note:** Version bump only for package @spectrum-css/menu @@ -441,8 +437,7 @@ Additionally: ## 5.0.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.8...@spectrum-css/menu@5.0.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.8...@spectrum-css/menu@5.0.9) **Note:** Version bump only for package @spectrum-css/menu @@ -450,8 +445,7 @@ Additionally: ## 5.0.8 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.7...@spectrum-css/menu@5.0.8) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.7...@spectrum-css/menu@5.0.8) **Note:** Version bump only for package @spectrum-css/menu @@ -459,8 +453,7 @@ Additionally: ## 5.0.7 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.6...@spectrum-css/menu@5.0.7) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.6...@spectrum-css/menu@5.0.7) ### 🔙 Reverts @@ -470,8 +463,7 @@ Additionally: ## 5.0.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.5...@spectrum-css/menu@5.0.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.5...@spectrum-css/menu@5.0.6) **Note:** Version bump only for package @spectrum-css/menu @@ -479,8 +471,7 @@ Additionally: ## 5.0.5 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.3...@spectrum-css/menu@5.0.5) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.3...@spectrum-css/menu@5.0.5) **Note:** Version bump only for package @spectrum-css/menu @@ -488,8 +479,7 @@ Additionally: ## 5.0.4 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.3...@spectrum-css/menu@5.0.4) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.3...@spectrum-css/menu@5.0.4) **Note:** Version bump only for package @spectrum-css/menu @@ -497,8 +487,7 @@ Additionally: ## 5.0.3 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.2...@spectrum-css/menu@5.0.3) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.2...@spectrum-css/menu@5.0.3) **Note:** Version bump only for package @spectrum-css/menu @@ -506,8 +495,7 @@ Additionally: ## 5.0.2 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.1...@spectrum-css/menu@5.0.2) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.1...@spectrum-css/menu@5.0.2) **Note:** Version bump only for package @spectrum-css/menu @@ -515,8 +503,7 @@ Additionally: ## 5.0.1 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.0...@spectrum-css/menu@5.0.1) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@5.0.0...@spectrum-css/menu@5.0.1) **Note:** Version bump only for package @spectrum-css/menu @@ -524,8 +511,7 @@ Additionally: ## 5.0.0 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.50...@spectrum-css/menu@5.0.0) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.50...@spectrum-css/menu@5.0.0) ### ✨ Features @@ -725,8 +711,7 @@ Adds new standard section about -mod custom properties. ## 4.0.50 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.49...@spectrum-css/menu@4.0.50) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.49...@spectrum-css/menu@4.0.50) **Note:** Version bump only for package @spectrum-css/menu @@ -734,8 +719,7 @@ Adds new standard section about -mod custom properties. ## 4.0.49 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.48...@spectrum-css/menu@4.0.49) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.48...@spectrum-css/menu@4.0.49) **Note:** Version bump only for package @spectrum-css/menu @@ -743,8 +727,7 @@ Adds new standard section about -mod custom properties. ## 4.0.48 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.47...@spectrum-css/menu@4.0.48) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.47...@spectrum-css/menu@4.0.48) **Note:** Version bump only for package @spectrum-css/menu @@ -752,8 +735,7 @@ Adds new standard section about -mod custom properties. ## 4.0.47 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.46...@spectrum-css/menu@4.0.47) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.46...@spectrum-css/menu@4.0.47) **Note:** Version bump only for package @spectrum-css/menu @@ -761,8 +743,7 @@ Adds new standard section about -mod custom properties. ## 4.0.46 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.45...@spectrum-css/menu@4.0.46) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.45...@spectrum-css/menu@4.0.46) **Note:** Version bump only for package @spectrum-css/menu @@ -770,8 +751,7 @@ Adds new standard section about -mod custom properties. ## 4.0.45 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.44...@spectrum-css/menu@4.0.45) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.44...@spectrum-css/menu@4.0.45) **Note:** Version bump only for package @spectrum-css/menu @@ -779,8 +759,7 @@ Adds new standard section about -mod custom properties. ## 4.0.44 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.43...@spectrum-css/menu@4.0.44) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.43...@spectrum-css/menu@4.0.44) **Note:** Version bump only for package @spectrum-css/menu @@ -788,8 +767,7 @@ Adds new standard section about -mod custom properties. ## 4.0.43 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.42...@spectrum-css/menu@4.0.43) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.42...@spectrum-css/menu@4.0.43) **Note:** Version bump only for package @spectrum-css/menu @@ -797,8 +775,7 @@ Adds new standard section about -mod custom properties. ## 4.0.42 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.41...@spectrum-css/menu@4.0.42) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.41...@spectrum-css/menu@4.0.42) **Note:** Version bump only for package @spectrum-css/menu @@ -806,8 +783,7 @@ Adds new standard section about -mod custom properties. ## 4.0.41 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.40...@spectrum-css/menu@4.0.41) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.40...@spectrum-css/menu@4.0.41) ### 🐛 Bug fixes @@ -817,8 +793,7 @@ Adds new standard section about -mod custom properties. ## 4.0.40 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.39...@spectrum-css/menu@4.0.40) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.39...@spectrum-css/menu@4.0.40) **Note:** Version bump only for package @spectrum-css/menu @@ -826,8 +801,7 @@ Adds new standard section about -mod custom properties. ## 4.0.39 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.38...@spectrum-css/menu@4.0.39) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/menu@4.0.38...@spectrum-css/menu@4.0.39) **Note:** Version bump only for package @spectrum-css/menu diff --git a/components/menu/dist/metadata.json b/components/menu/dist/metadata.json index a1732cd9a20..3ac9cf238e1 100644 --- a/components/menu/dist/metadata.json +++ b/components/menu/dist/metadata.json @@ -338,7 +338,6 @@ "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", - "--spectrum-corner-radius-100", "--spectrum-disabled-content-color", "--spectrum-divider-thickness-medium", "--spectrum-divider-thickness-small", @@ -380,16 +379,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-menu-item-background-color-down", - "--system-menu-item-background-color-hover", - "--system-menu-item-background-color-key-focus", - "--system-menu-item-corner-radius", - "--system-menu-item-focus-indicator-offset", - "--system-menu-item-focus-indicator-outline-style", - "--system-menu-item-focus-indicator-shadow", - "--system-menu-item-spacing-multiplier" - ], "passthroughs": [ "--mod-checkbox-text-to-control", "--mod-checkbox-top-to-text", diff --git a/components/menu/index.css b/components/menu/index.css index 66f146f0348..89f80829625 100644 --- a/components/menu/index.css +++ b/components/menu/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - @media (forced-colors: active) { .spectrum-Menu { --highcontrast-menu-item-background-color-default: ButtonFace; @@ -81,6 +79,10 @@ } .spectrum-Menu { + --spectrum-menu-item-background-color-hover: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-down: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-top-to-action: var(--spectrum-spacing-50); --spectrum-menu-item-top-to-checkbox: var(--spectrum-spacing-50); @@ -411,8 +413,10 @@ grid-template-rows: 1fr auto; .spectrum-Menu-itemCheckbox { + /* @passthrough start */ --mod-checkbox-top-to-text: 0; --mod-checkbox-text-to-control: 0; + /* @passthrough end */ min-block-size: 0; diff --git a/components/menu/package.json b/components/menu/package.json index 61fbe598403..3fb89b0dbaf 100644 --- a/components/menu/package.json +++ b/components/menu/package.json @@ -25,11 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/divider": ">=3", - "@spectrum-css/icon": ">=7", + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/divider": ">=5", + "@spectrum-css/icon": ">=9", "@spectrum-css/switch": ">=5", - "@spectrum-css/tokens": ">=14 || >=15", + "@spectrum-css/tokens": ">=16", "@spectrum-css/tray": ">=3" }, "peerDependenciesMeta": { @@ -52,11 +52,7 @@ "@spectrum-css/icon": "9.0.1", "@spectrum-css/switch": "6.0.1", "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/tray": "5.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tray": "5.0.1" }, "keywords": [ "design-system", diff --git a/components/menu/stories/template.js b/components/menu/stories/template.js index c50482cb696..79c4136fdad 100644 --- a/components/menu/stories/template.js +++ b/components/menu/stories/template.js @@ -13,9 +13,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; /** * Get the tray submenu back arrow name with scale number (defined in design spec). diff --git a/components/menu/themes/express.css b/components/menu/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/menu/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/menu/themes/spectrum-two.css b/components/menu/themes/spectrum-two.css deleted file mode 100644 index 11951a42550..00000000000 --- a/components/menu/themes/spectrum-two.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Menu { - --spectrum-menu-item-background-color-hover: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); - --spectrum-menu-item-background-color-down: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); - --spectrum-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-transparent-black-200-opacity)); - - --spectrum-menu-item-corner-radius: var(--spectrum-corner-radius-100); - - /* Focus state styling */ - --spectrum-menu-item-focus-indicator-shadow: none; - --spectrum-menu-item-focus-indicator-offset: var(--spectrum-spacing-50); - --spectrum-menu-item-spacing-multiplier: 1; - --spectrum-menu-item-focus-indicator-outline-style: solid; - } -} diff --git a/components/menu/themes/spectrum.css b/components/menu/themes/spectrum.css deleted file mode 100644 index 0836ce0774f..00000000000 --- a/components/menu/themes/spectrum.css +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Menu { - --spectrum-menu-item-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-transparent-black-200-opacity)); - --spectrum-menu-item-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-transparent-black-200-opacity)); - --spectrum-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-transparent-black-200-opacity)); - - --spectrum-menu-item-corner-radius: 0; - - /* Focus state styling */ - --spectrum-menu-item-focus-indicator-shadow: inset; - --spectrum-menu-item-focus-indicator-offset: 0; - --spectrum-menu-item-spacing-multiplier: 0; - --spectrum-menu-item-focus-indicator-outline-style: none; - } -} diff --git a/components/meter/dist/metadata.json b/components/meter/dist/metadata.json index 9bfe3424ce7..12d5893d69d 100644 --- a/components/meter/dist/metadata.json +++ b/components/meter/dist/metadata.json @@ -5,8 +5,7 @@ ".spectrum-Meter.is-negative", ".spectrum-Meter.is-notice", ".spectrum-Meter.is-positive", - ".spectrum-Meter.spectrum-Meter--sizeL", - ".spectrum-Meter.spectrum-Meter--sizeS" + ".spectrum-Meter.spectrum-Meter--sizeL" ], "modifiers": [ "--mod-meter-inline-size", @@ -27,9 +26,9 @@ "--spectrum-font-size-75", "--spectrum-negative-visual-color", "--spectrum-notice-visual-color", - "--spectrum-positive-visual-color" + "--spectrum-positive-visual-color", + "--spectrum-progressbar-size-2500" ], - "system-theme": [], "passthroughs": [ "--mod-progressbar-fill-color", "--mod-progressbar-font-size", diff --git a/components/meter/index.css b/components/meter/index.css index b51a393aa73..2db081b1e9d 100644 --- a/components/meter/index.css +++ b/components/meter/index.css @@ -17,14 +17,12 @@ --mod-progressbar-max-size: var(--mod-meter-max-width, var(--spectrum-meter-maximum-width)); --mod-progressbar-min-size: var(--mod-meter-min-width, var(--spectrum-meter-minimum-width)); - &, - &.spectrum-Meter--sizeS { - --mod-progressbar-thickness: var(--spectrum-meter-thickness-small); - --mod-progressbar-font-size: var(--spectrum-font-size-75); - --mod-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); - } + --mod-progressbar-thickness: var(--spectrum-meter-thickness-small); + --mod-progressbar-font-size: var(--spectrum-font-size-75); + --mod-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); &.spectrum-Meter--sizeL { + --mod-progressbar-size-default: var(--mod-meter-inline-size, var(--spectrum-progressbar-size-2500)); --mod-progressbar-thickness: var(--spectrum-meter-thickness-large); --mod-progressbar-font-size: var(--spectrum-font-size-100); --mod-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); diff --git a/components/meter/stories/meter.stories.js b/components/meter/stories/meter.stories.js index 15603bc9d7c..cbb31433a4b 100644 --- a/components/meter/stories/meter.stories.js +++ b/components/meter/stories/meter.stories.js @@ -48,6 +48,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** diff --git a/components/miller/CHANGELOG.md b/components/miller/CHANGELOG.md index 305ad5bdd3e..96e797cfa6d 100644 --- a/components/miller/CHANGELOG.md +++ b/components/miller/CHANGELOG.md @@ -161,16 +161,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.4...@spectrum-css/miller@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.4...@spectrum-css/miller@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -178,8 +174,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.3...@spectrum-css/miller@5.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.3...@spectrum-css/miller@5.1.4) **Note:** Version bump only for package @spectrum-css/miller @@ -187,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.2...@spectrum-css/miller@5.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.2...@spectrum-css/miller@5.1.3) **Note:** Version bump only for package @spectrum-css/miller @@ -196,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.1...@spectrum-css/miller@5.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.1.1...@spectrum-css/miller@5.1.2) **Note:** Version bump only for package @spectrum-css/miller @@ -205,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/miller @@ -214,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.4...@spectrum-css/miller@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.4...@spectrum-css/miller@5.1.0) ### ✨ Features @@ -225,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.3...@spectrum-css/miller@5.0.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.3...@spectrum-css/miller@5.0.4) **Note:** Version bump only for package @spectrum-css/miller @@ -234,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.2...@spectrum-css/miller@5.0.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.2...@spectrum-css/miller@5.0.3) **Note:** Version bump only for package @spectrum-css/miller @@ -243,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.0...@spectrum-css/miller@5.0.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.0...@spectrum-css/miller@5.0.2) **Note:** Version bump only for package @spectrum-css/miller @@ -252,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.0...@spectrum-css/miller@5.0.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@5.0.0...@spectrum-css/miller@5.0.1) **Note:** Version bump only for package @spectrum-css/miller @@ -261,13 +248,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@4.0.0...@spectrum-css/miller@5.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@4.0.0...@spectrum-css/miller@5.0.0) \*refactor(assetlist)!: migrate to spectrum tokens (#2211)([32149e5](https://github.com/adobe/spectrum-css/commit/32149e5)), closes[#2211](https://github.com/adobe/spectrum-css/issues/2211) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates AssetList to use `@adobe/spectrum-tokens`. @@ -310,13 +295,11 @@ Additionally: ## 4.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.85...@spectrum-css/miller@4.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.85...@spectrum-css/miller@4.0.0) \*feat(millercolumns)!: migrate to spectrum-tokens (#2191)([aa163d2](https://github.com/adobe/spectrum-css/commit/aa163d2)), closes[#2191](https://github.com/adobe/spectrum-css/issues/2191) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates MillerColumns to use `@adobe/spectrum-tokens` @@ -334,8 +317,7 @@ Additionally: ## 3.0.85 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.84...@spectrum-css/miller@3.0.85) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.84...@spectrum-css/miller@3.0.85) **Note:** Version bump only for package @spectrum-css/miller @@ -343,8 +325,7 @@ Additionally: ## 3.0.84 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.83...@spectrum-css/miller@3.0.84) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.83...@spectrum-css/miller@3.0.84) **Note:** Version bump only for package @spectrum-css/miller @@ -352,8 +333,7 @@ Additionally: ## 3.0.83 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.82...@spectrum-css/miller@3.0.83) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.82...@spectrum-css/miller@3.0.83) **Note:** Version bump only for package @spectrum-css/miller @@ -361,8 +341,7 @@ Additionally: ## 3.0.82 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.81...@spectrum-css/miller@3.0.82) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.81...@spectrum-css/miller@3.0.82) **Note:** Version bump only for package @spectrum-css/miller @@ -370,8 +349,7 @@ Additionally: ## 3.0.81 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.80...@spectrum-css/miller@3.0.81) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.80...@spectrum-css/miller@3.0.81) **Note:** Version bump only for package @spectrum-css/miller @@ -379,8 +357,7 @@ Additionally: ## 3.0.80 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.79...@spectrum-css/miller@3.0.80) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.79...@spectrum-css/miller@3.0.80) **Note:** Version bump only for package @spectrum-css/miller @@ -388,8 +365,7 @@ Additionally: ## 3.0.79 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.78...@spectrum-css/miller@3.0.79) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.78...@spectrum-css/miller@3.0.79) **Note:** Version bump only for package @spectrum-css/miller @@ -397,8 +373,7 @@ Additionally: ## 3.0.78 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.77...@spectrum-css/miller@3.0.78) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.77...@spectrum-css/miller@3.0.78) **Note:** Version bump only for package @spectrum-css/miller @@ -406,8 +381,7 @@ Additionally: ## 3.0.77 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.76...@spectrum-css/miller@3.0.77) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.76...@spectrum-css/miller@3.0.77) ### 🔙 Reverts @@ -417,8 +391,7 @@ Additionally: ## 3.0.76 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.75...@spectrum-css/miller@3.0.76) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.75...@spectrum-css/miller@3.0.76) **Note:** Version bump only for package @spectrum-css/miller @@ -426,8 +399,7 @@ Additionally: ## 3.0.75 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.73...@spectrum-css/miller@3.0.75) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.73...@spectrum-css/miller@3.0.75) **Note:** Version bump only for package @spectrum-css/miller @@ -435,8 +407,7 @@ Additionally: ## 3.0.74 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.73...@spectrum-css/miller@3.0.74) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.73...@spectrum-css/miller@3.0.74) **Note:** Version bump only for package @spectrum-css/miller @@ -444,8 +415,7 @@ Additionally: ## 3.0.73 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.72...@spectrum-css/miller@3.0.73) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.72...@spectrum-css/miller@3.0.73) **Note:** Version bump only for package @spectrum-css/miller @@ -453,8 +423,7 @@ Additionally: ## 3.0.72 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.71...@spectrum-css/miller@3.0.72) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.71...@spectrum-css/miller@3.0.72) **Note:** Version bump only for package @spectrum-css/miller @@ -462,8 +431,7 @@ Additionally: ## 3.0.71 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.70...@spectrum-css/miller@3.0.71) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.70...@spectrum-css/miller@3.0.71) **Note:** Version bump only for package @spectrum-css/miller @@ -471,8 +439,7 @@ Additionally: ## 3.0.70 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.69...@spectrum-css/miller@3.0.70) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.69...@spectrum-css/miller@3.0.70) **Note:** Version bump only for package @spectrum-css/miller @@ -480,8 +447,7 @@ Additionally: ## 3.0.69 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.68...@spectrum-css/miller@3.0.69) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.68...@spectrum-css/miller@3.0.69) **Note:** Version bump only for package @spectrum-css/miller @@ -489,8 +455,7 @@ Additionally: ## 3.0.68 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.67...@spectrum-css/miller@3.0.68) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.67...@spectrum-css/miller@3.0.68) **Note:** Version bump only for package @spectrum-css/miller @@ -498,8 +463,7 @@ Additionally: ## 3.0.67 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.66...@spectrum-css/miller@3.0.67) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.66...@spectrum-css/miller@3.0.67) **Note:** Version bump only for package @spectrum-css/miller @@ -507,8 +471,7 @@ Additionally: ## 3.0.66 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.65...@spectrum-css/miller@3.0.66) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.65...@spectrum-css/miller@3.0.66) **Note:** Version bump only for package @spectrum-css/miller @@ -516,8 +479,7 @@ Additionally: ## 3.0.65 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.64...@spectrum-css/miller@3.0.65) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.64...@spectrum-css/miller@3.0.65) **Note:** Version bump only for package @spectrum-css/miller @@ -525,8 +487,7 @@ Additionally: ## 3.0.64 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.63...@spectrum-css/miller@3.0.64) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.63...@spectrum-css/miller@3.0.64) **Note:** Version bump only for package @spectrum-css/miller @@ -534,8 +495,7 @@ Additionally: ## 3.0.63 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.62...@spectrum-css/miller@3.0.63) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.62...@spectrum-css/miller@3.0.63) **Note:** Version bump only for package @spectrum-css/miller @@ -543,8 +503,7 @@ Additionally: ## 3.0.62 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.61...@spectrum-css/miller@3.0.62) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.61...@spectrum-css/miller@3.0.62) **Note:** Version bump only for package @spectrum-css/miller @@ -552,8 +511,7 @@ Additionally: ## 3.0.61 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.60...@spectrum-css/miller@3.0.61) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.60...@spectrum-css/miller@3.0.61) ### 🐛 Bug fixes @@ -563,8 +521,7 @@ Additionally: ## 3.0.60 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.59...@spectrum-css/miller@3.0.60) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.59...@spectrum-css/miller@3.0.60) **Note:** Version bump only for package @spectrum-css/miller @@ -572,8 +529,7 @@ Additionally: ## 3.0.59 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.58...@spectrum-css/miller@3.0.59) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/miller@3.0.58...@spectrum-css/miller@3.0.59) **Note:** Version bump only for package @spectrum-css/miller diff --git a/components/miller/dist/metadata.json b/components/miller/dist/metadata.json index adb2109144c..fbb3770d558 100644 --- a/components/miller/dist/metadata.json +++ b/components/miller/dist/metadata.json @@ -13,7 +13,6 @@ ], "component": [], "global": ["--spectrum-spacing-100"], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/miller/package.json b/components/miller/package.json index 18de9d83e08..1bd52b85299 100644 --- a/components/miller/package.json +++ b/components/miller/package.json @@ -26,19 +26,15 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/assetlist": ">=6", - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/assetlist": "8.0.1", "@spectrum-css/checkbox": "10.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/modal/CHANGELOG.md b/components/modal/CHANGELOG.md index 75a7860ecf2..471bd7edb7c 100644 --- a/components/modal/CHANGELOG.md +++ b/components/modal/CHANGELOG.md @@ -1,5 +1,59 @@ # Change Log +## 5.1.1-next.0 + +### Patch Changes + +- [#2860](https://github.com/adobe/spectrum-css/pull/2860) [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Spectrum 2 Standard Dialog Migration + + This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area. + + The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`. + + Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed: + + _New Mods_ + `--mod-standard-dialog-spacing-title-to-header-content` + `--mod-standard-dialog-spacing-title-to-description` + `--mod-standard-dialog-header-content-font-size` + + _Renamed Mods_ + `--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small` + `--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width` + `--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large` + `--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius` + `--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size` + `--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height` + `--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color` + `--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight` + `--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight` + `--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height` + `--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color` + `--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size` + `--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size` + `--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size` + `--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding` + `--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer` + `--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button` + `--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group` + + _Removed Mods_ + `--mod-dialog-confirm-buttongroup-padding-top` + `--mod-dialog-confirm-close-button-size` + `--mod-dialog-confirm-description-margin` + `--mod-dialog-confirm-description-padding` + `--mod-dialog-confirm-divider-block-spacing-end` + `--mod-dialog-confirm-divider-block-spacing-start` + `--mod-dialog-confirm-divider-height` + + Modal and underlay updates + + - Modal component now uses the updated corner rounding. + - Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens. + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 7.0.1 ### Patch Changes @@ -136,16 +190,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.6...@spectrum-css/modal@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.6...@spectrum-css/modal@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -153,8 +204,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.5...@spectrum-css/modal@4.2.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.5...@spectrum-css/modal@4.2.6) **Note:** Version bump only for package @spectrum-css/modal @@ -162,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.4...@spectrum-css/modal@4.2.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.4...@spectrum-css/modal@4.2.5) **Note:** Version bump only for package @spectrum-css/modal @@ -171,8 +220,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.3...@spectrum-css/modal@4.2.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.3...@spectrum-css/modal@4.2.4) **Note:** Version bump only for package @spectrum-css/modal @@ -180,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.2...@spectrum-css/modal@4.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.2...@spectrum-css/modal@4.2.3) **Note:** Version bump only for package @spectrum-css/modal @@ -189,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.1...@spectrum-css/modal@4.2.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.2.1...@spectrum-css/modal@4.2.2) **Note:** Version bump only for package @spectrum-css/modal @@ -198,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/modal @@ -207,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.1.0...@spectrum-css/modal@4.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.1.0...@spectrum-css/modal@4.2.0) ### ✨ Features @@ -219,8 +263,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.5...@spectrum-css/modal@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.5...@spectrum-css/modal@4.1.0) ### ✨ Features @@ -230,8 +273,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.5 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.4...@spectrum-css/modal@4.0.5) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.4...@spectrum-css/modal@4.0.5) **Note:** Version bump only for package @spectrum-css/modal @@ -239,8 +281,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.4 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.3...@spectrum-css/modal@4.0.4) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.3...@spectrum-css/modal@4.0.4) **Note:** Version bump only for package @spectrum-css/modal @@ -248,8 +289,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.3 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.1...@spectrum-css/modal@4.0.3) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.1...@spectrum-css/modal@4.0.3) **Note:** Version bump only for package @spectrum-css/modal @@ -257,8 +297,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.2 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.1...@spectrum-css/modal@4.0.2) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.1...@spectrum-css/modal@4.0.2) **Note:** Version bump only for package @spectrum-css/modal @@ -266,8 +305,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.1 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.0...@spectrum-css/modal@4.0.1) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@4.0.0...@spectrum-css/modal@4.0.1) **Note:** Version bump only for package @spectrum-css/modal @@ -275,8 +313,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 4.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.1.0...@spectrum-css/modal@4.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.1.0...@spectrum-css/modal@4.0.0) ### 🔙 Reverts @@ -284,8 +321,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum \*feat(modal)!: diy migration (#2164)([0b83f13](https://github.com/adobe/spectrum-css/commit/0b83f13)), closes[#2164](https://github.com/adobe/spectrum-css/issues/2164) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Modal to use `@adobe/spectrum-tokens` @@ -312,8 +348,7 @@ chore: updated css properties ## 3.1.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.49...@spectrum-css/modal@3.1.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.49...@spectrum-css/modal@3.1.0) ### 🐛 Bug fixes @@ -323,8 +358,7 @@ chore: updated css properties ## 3.0.49 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.48...@spectrum-css/modal@3.0.49) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.48...@spectrum-css/modal@3.0.49) **Note:** Version bump only for package @spectrum-css/modal @@ -332,8 +366,7 @@ chore: updated css properties ## 3.0.48 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.47...@spectrum-css/modal@3.0.48) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.47...@spectrum-css/modal@3.0.48) **Note:** Version bump only for package @spectrum-css/modal @@ -341,8 +374,7 @@ chore: updated css properties ## 3.0.47 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.46...@spectrum-css/modal@3.0.47) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.46...@spectrum-css/modal@3.0.47) **Note:** Version bump only for package @spectrum-css/modal @@ -350,8 +382,7 @@ chore: updated css properties ## 3.0.46 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.45...@spectrum-css/modal@3.0.46) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.45...@spectrum-css/modal@3.0.46) **Note:** Version bump only for package @spectrum-css/modal @@ -359,8 +390,7 @@ chore: updated css properties ## 3.0.45 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.44...@spectrum-css/modal@3.0.45) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.44...@spectrum-css/modal@3.0.45) ### 🐛 Bug fixes @@ -370,8 +400,7 @@ chore: updated css properties ## 3.0.44 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.43...@spectrum-css/modal@3.0.44) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.43...@spectrum-css/modal@3.0.44) **Note:** Version bump only for package @spectrum-css/modal @@ -379,8 +408,7 @@ chore: updated css properties ## 3.0.43 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.42...@spectrum-css/modal@3.0.43) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/modal@3.0.42...@spectrum-css/modal@3.0.43) **Note:** Version bump only for package @spectrum-css/modal diff --git a/components/modal/dist/metadata.json b/components/modal/dist/metadata.json index 950d9fca3c6..43de95295b1 100644 --- a/components/modal/dist/metadata.json +++ b/components/modal/dist/metadata.json @@ -15,24 +15,26 @@ "--mod-modal-background-color", "--mod-modal-confirm-border-radius", "--mod-modal-confirm-entry-animation-delay", - "--mod-modal-confirm-entry-animation-distance", "--mod-modal-confirm-entry-animation-duration", "--mod-modal-confirm-exit-animation-delay", "--mod-modal-confirm-exit-animation-duration", "--mod-modal-fullscreen-margin", "--mod-modal-max-height", "--mod-modal-max-width", - "--mod-modal-transition-animation-duration", - "--mod-overlay-animation-duration", - "--mod-overlay-animation-duration-opened" + "--mod-modal-transition-animation-duration" ], "component": [ "--spectrum-modal-background-color", + "--spectrum-modal-confirm-border-radius", "--spectrum-modal-confirm-entry-animation-delay", "--spectrum-modal-confirm-entry-animation-duration", "--spectrum-modal-confirm-exit-animation-delay", "--spectrum-modal-confirm-exit-animation-duration", - "--spectrum-modal-fullscreen-margin" + "--spectrum-modal-fullscreen-margin", + "--spectrum-modal-max-height", + "--spectrum-modal-max-width", + "--spectrum-modal-takeover-window-to-edge", + "--spectrum-modal-transition-animation-duration" ], "global": [ "--spectrum-animation-duration-0", @@ -41,12 +43,11 @@ "--spectrum-animation-duration-500", "--spectrum-animation-ease-in", "--spectrum-animation-ease-out", - "--spectrum-animation-linear", - "--spectrum-background-layer-2-color", - "--spectrum-corner-radius-100", - "--spectrum-dialog-confirm-entry-animation-distance" + "--spectrum-corner-radius-extra-large-default", + "--spectrum-dialog-confirm-entry-animation-distance", + "--spectrum-gray-75", + "--spectrum-window-to-edge" ], - "system-theme": ["--system-modal-background-color"], "passthroughs": [], "high-contrast": [] } diff --git a/components/modal/index.css b/components/modal/index.css index 8a5e2e9ad95..2829b930d18 100644 --- a/components/modal/index.css +++ b/components/modal/index.css @@ -11,20 +11,23 @@ * governing permissions and limitations under the License. */ -@import "@spectrum-css/commons/overlay.css"; -@import "./themes/spectrum-two.css"; - .spectrum-Modal { --spectrum-modal-confirm-entry-animation-duration: var(--mod-modal-confirm-entry-animation-duration, var(--spectrum-animation-duration-500)); - /* @deprecated --mod-overlay-animation-duration-opened in favor of --mod-modal-confirm-entry-animation-delay */ - --spectrum-modal-confirm-entry-animation-delay: var(--mod-overlay-animation-duration-opened, var(--mod-modal-confirm-entry-animation-delay, var(--spectrum-animation-duration-200))); + --spectrum-modal-confirm-entry-animation-delay: var(--mod-modal-confirm-entry-animation-delay, var(--spectrum-animation-duration-200)); - /* @deprecated --mod-overlay-animation-duration in favor of --mod-modal-confirm-exit-animation-duration */ - --spectrum-modal-confirm-exit-animation-duration: var(--mod-overlay-animation-duration, var(--mod-modal-confirm-exit-animation-duration, var(--spectrum-animation-duration-100))); + --spectrum-modal-confirm-exit-animation-duration: var(--mod-modal-confirm-exit-animation-duration, var(--spectrum-animation-duration-100)); --spectrum-modal-confirm-exit-animation-delay: var(--mod-modal-confirm-exit-animation-delay, var(--spectrum-animation-duration-0)); /* Distance between top and bottom of modal and edge of window for fullscreen modal */ - --spectrum-modal-fullscreen-margin: var(--mod-modal-fullscreen-margin, 32px); + --spectrum-modal-fullscreen-margin: var(--spectrum-window-to-edge); + --spectrum-modal-takeover-window-to-edge: 0; + --spectrum-modal-max-height: 90vh; + --spectrum-modal-max-width: 90%; + + --spectrum-modal-background-color: var(--mod-modal-background-color, var(--spectrum-gray-75)); + --spectrum-modal-confirm-border-radius: var(--mod-modal-confirm-border-radius, var(--spectrum-corner-radius-extra-large-default)); + + --spectrum-modal-transition-animation-duration: var(--mod-modal-transition-animation-duration, var(--spectrum-animation-duration-100)); } /* Used to position the modal */ @@ -46,6 +49,9 @@ * We use the stretch value to counteract this where supported. */ block-size: 100vh; + /* stylelint-disable-next-line value-no-vendor-prefix */ + block-size: -moz-available; + /* stylelint-disable-next-line value-no-vendor-prefix */ block-size: -webkit-fill-available; /* autoprefixer: ignore next -- -moz-available providing inconsistent results; want to fall FF back to 100vh */ @@ -60,7 +66,7 @@ z-index: 2; /* Be invisible by default */ - transition: visibility 0ms linear var(--mod-modal-transition-animation-duration, var(--spectrum-animation-duration-100)); + transition: visibility 0ms linear var(--spectrum-modal-transition-animation-duration); &.is-open { visibility: visible; @@ -72,17 +78,17 @@ opacity: 0; /* Start offset by the animation distance -- @note this is using the global dialog token */ - transform: translateY(var(--mod-modal-confirm-entry-animation-distance, var(--spectrum-dialog-confirm-entry-animation-distance))); + transform: translateY(var(--spectrum-dialog-confirm-entry-animation-distance)); /* Appear above underlay */ z-index: 2; /* Don't be bigger than the screen */ - max-block-size: var(--mod-modal-max-height, 90vh); - max-inline-size: var(--mod-modal-max-width, 90%); + max-block-size: var(--mod-modal-max-height, var(--spectrum-modal-max-height)); + max-inline-size: var(--mod-modal-max-width, var(--spectrum-modal-max-width)); - background: var(--mod-modal-background-color, var(--spectrum-modal-background-color)); - border-radius: var(--mod-modal-confirm-border-radius, var(--spectrum-corner-radius-100)); + background: var(--spectrum-modal-background-color); + border-radius: var(--spectrum-modal-confirm-border-radius); overflow: hidden; outline: none; /* Firefox shows outline */ pointer-events: auto; @@ -90,8 +96,8 @@ /* Exit animations */ transition: opacity var(--spectrum-modal-confirm-exit-animation-duration) var(--spectrum-animation-ease-in) var(--spectrum-modal-confirm-exit-animation-delay), - visibility var(--spectrum-animation-duration-0) var(--spectrum-animation-linear) calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration)), - transform var(--spectrum-animation-duration-0) var(--spectrum-animation-linear) calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration)); + visibility 0ms linear calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration)), + transform 0ms linear calc(var(--spectrum-modal-confirm-exit-animation-delay) + var(--spectrum-modal-confirm-exit-animation-duration)); &.is-open { pointer-events: auto; @@ -125,17 +131,15 @@ /** @unofficial */ .spectrum-Modal--fullscreen { position: fixed; - inset-inline-start: var(--spectrum-modal-fullscreen-margin); - inset-block-start: var(--spectrum-modal-fullscreen-margin); - inset-inline-end: var(--spectrum-modal-fullscreen-margin); - inset-block-end: var(--spectrum-modal-fullscreen-margin); + inset-block: var(--mod-modal-fullscreen-margin, var(--spectrum-modal-fullscreen-margin)); + inset-inline: var(--mod-modal-fullscreen-margin, var(--spectrum-modal-fullscreen-margin)); max-inline-size: none; max-block-size: none; } .spectrum-Modal--fullscreenTakeover { position: fixed; - inset: 0; + inset: var(--spectrum-modal-takeover-window-to-edge); max-inline-size: none; max-block-size: none; diff --git a/components/modal/package.json b/components/modal/package.json index 13527aa11eb..603f6cd4173 100644 --- a/components/modal/package.json +++ b/components/modal/package.json @@ -25,15 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/commons": "11.0.0", + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/modal/stories/template.js b/components/modal/stories/template.js index 07a52b89131..9abbf49ebea 100644 --- a/components/modal/stories/template.js +++ b/components/modal/stories/template.js @@ -5,9 +5,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; /** * Just the modal markup. diff --git a/components/modal/themes/express.css b/components/modal/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/modal/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/modal/themes/spectrum-two.css b/components/modal/themes/spectrum-two.css deleted file mode 100644 index c31756dcdae..00000000000 --- a/components/modal/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Modal { - --spectrum-modal-background-color: var(--spectrum-background-layer-2-color); - } -} diff --git a/components/modal/themes/spectrum.css b/components/modal/themes/spectrum.css deleted file mode 100644 index f637e6f343e..00000000000 --- a/components/modal/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Modal { - --spectrum-modal-background-color: var(--spectrum-gray-100); - } -} diff --git a/components/opacitycheckerboard/CHANGELOG.md b/components/opacitycheckerboard/CHANGELOG.md index 0626bad41f5..e0afdad84ff 100644 --- a/components/opacitycheckerboard/CHANGELOG.md +++ b/components/opacitycheckerboard/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 3.0.0-next.0 + +### Major Changes + +- [#3394](https://github.com/adobe/spectrum-css/pull/3394) [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586) Thanks [@cdransf](https://github.com/cdransf)! - # thumbnail-opacity-checkerboard S2 migration + + Adds thumbnail specific `thumbnail-opacity-checkerboard-square-size` token aliased to `--spectrum-opacity-checkerboard-size`. This impacts the display of the `opacity-checkerboard` when used within the `thumbnail` component. + + This also corrects an issue with a token name in the `thumbnail` component by renaming `--spectrum-thumbnail-border-color-opacity` to `--spectrum-thumbnail-border-opacity`. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 4.0.1 ### Patch Changes @@ -122,16 +137,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.5...@spectrum-css/opacitycheckerboard@2.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.5...@spectrum-css/opacitycheckerboard@2.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,8 +151,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.4...@spectrum-css/opacitycheckerboard@1.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.4...@spectrum-css/opacitycheckerboard@1.1.5) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -148,8 +159,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.3...@spectrum-css/opacitycheckerboard@1.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.3...@spectrum-css/opacitycheckerboard@1.1.4) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -157,8 +167,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.2...@spectrum-css/opacitycheckerboard@1.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.2...@spectrum-css/opacitycheckerboard@1.1.3) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -166,8 +175,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -175,8 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.0...@spectrum-css/opacitycheckerboard@1.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.1.0...@spectrum-css/opacitycheckerboard@1.1.1) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -184,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.9...@spectrum-css/opacitycheckerboard@1.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.9...@spectrum-css/opacitycheckerboard@1.1.0) ### ✨ Features @@ -195,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.9 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.8...@spectrum-css/opacitycheckerboard@1.0.9) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.8...@spectrum-css/opacitycheckerboard@1.0.9) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -204,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.8 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.7...@spectrum-css/opacitycheckerboard@1.0.8) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.7...@spectrum-css/opacitycheckerboard@1.0.8) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -213,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.7 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.5...@spectrum-css/opacitycheckerboard@1.0.7) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.5...@spectrum-css/opacitycheckerboard@1.0.7) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -222,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.6 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.5...@spectrum-css/opacitycheckerboard@1.0.6) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.5...@spectrum-css/opacitycheckerboard@1.0.6) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -231,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.5 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.4...@spectrum-css/opacitycheckerboard@1.0.5) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.4...@spectrum-css/opacitycheckerboard@1.0.5) ### 🐛 Bug fixes @@ -246,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.3...@spectrum-css/opacitycheckerboard@1.0.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.3...@spectrum-css/opacitycheckerboard@1.0.4) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -255,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.3 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.2...@spectrum-css/opacitycheckerboard@1.0.3) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.2...@spectrum-css/opacitycheckerboard@1.0.3) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -264,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.2 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.1...@spectrum-css/opacitycheckerboard@1.0.2) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.1...@spectrum-css/opacitycheckerboard@1.0.2) ### 🐛 Bug fixes @@ -275,8 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.1 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.0...@spectrum-css/opacitycheckerboard@1.0.1) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/opacitycheckerboard@1.0.0...@spectrum-css/opacitycheckerboard@1.0.1) **Note:** Version bump only for package @spectrum-css/opacitycheckerboard @@ -284,13 +281,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.0.0 -🗓 -2023-07-24 +🗓 2023-07-24 \*feat(opacitycheckerboard)!: new component (#1916)([24e9f06](https://github.com/adobe/spectrum-css/commit/24e9f06)), closes[#1916](https://github.com/adobe/spectrum-css/issues/1916) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * creates new Opacity Checkerboard component and uses it within Swatch, Color Handle, Thumbnail, Color Slider. diff --git a/components/opacitycheckerboard/dist/metadata.json b/components/opacitycheckerboard/dist/metadata.json index 51c1a155873..31fd76317b9 100644 --- a/components/opacitycheckerboard/dist/metadata.json +++ b/components/opacitycheckerboard/dist/metadata.json @@ -1,6 +1,9 @@ { "sourceFile": "index.css", - "selectors": [".spectrum-OpacityCheckerboard"], + "selectors": [ + ".spectrum-OpacityCheckerboard", + ".spectrum-OpacityCheckerboard--sizeS" + ], "modifiers": [ "--mod-opacity-checkerboard-dark", "--mod-opacity-checkerboard-light", @@ -8,12 +11,16 @@ "--mod-opacity-checkerboard-size" ], "component": [ + "--spectrum-opacity-checkerboard-dark", + "--spectrum-opacity-checkerboard-light", + "--spectrum-opacity-checkerboard-position", + "--spectrum-opacity-checkerboard-size", "--spectrum-opacity-checkerboard-square-dark", "--spectrum-opacity-checkerboard-square-light", - "--spectrum-opacity-checkerboard-square-size" + "--spectrum-opacity-checkerboard-square-size-medium", + "--spectrum-opacity-checkerboard-square-size-small" ], "global": [], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/opacitycheckerboard/index.css b/components/opacitycheckerboard/index.css index 675449dd8dd..8f1700294f0 100644 --- a/components/opacitycheckerboard/index.css +++ b/components/opacitycheckerboard/index.css @@ -12,7 +12,19 @@ */ .spectrum-OpacityCheckerboard { - background: repeating-conic-gradient(var(--mod-opacity-checkerboard-light, var(--spectrum-opacity-checkerboard-square-light)) 0% 25%, var(--mod-opacity-checkerboard-dark, var(--spectrum-opacity-checkerboard-square-dark)) 0% 50%) var(--mod-opacity-checkerboard-position, left top) / calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-square-size)) * 2) calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-square-size)) * 2); + --spectrum-opacity-checkerboard-dark: var(--mod-opacity-checkerboard-dark, var(--spectrum-opacity-checkerboard-square-dark)); + --spectrum-opacity-checkerboard-light: var(--mod-opacity-checkerboard-light, var(--spectrum-opacity-checkerboard-square-light)); + --spectrum-opacity-checkerboard-size: var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-square-size-medium)); + + --spectrum-opacity-checkerboard-position: var(--mod-opacity-checkerboard-position, left top); +} + +.spectrum-OpacityCheckerboard--sizeS { + --spectrum-opacity-checkerboard-size: var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-square-size-small)); +} + +.spectrum-OpacityCheckerboard { + background: repeating-conic-gradient(var(--spectrum-opacity-checkerboard-light) 0% 25%, var(--spectrum-opacity-checkerboard-dark) 0% 50%) var(--spectrum-opacity-checkerboard-position) / calc(var(--spectrum-opacity-checkerboard-size) * 2) calc(var(--spectrum-opacity-checkerboard-size) * 2); } @media (forced-colors: active) { diff --git a/components/opacitycheckerboard/package.json b/components/opacitycheckerboard/package.json index 4196f739273..9af2a12111c 100644 --- a/components/opacitycheckerboard/package.json +++ b/components/opacitycheckerboard/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/opacitycheckerboard/stories/opacitycheckerboard.stories.js b/components/opacitycheckerboard/stories/opacitycheckerboard.stories.js index e908a5cd05b..7640544d884 100644 --- a/components/opacitycheckerboard/stories/opacitycheckerboard.stories.js +++ b/components/opacitycheckerboard/stories/opacitycheckerboard.stories.js @@ -20,6 +20,16 @@ export default { control: "text", description: "Value for <code>--mod-opacity-checkerboard-position</code>. Accepts any valid CSS background-position property value.", }, + size: { + name: "Size", + type: { name: "string", required: true }, + table: { + type: { summary: "string" }, + category: "Component", + }, + options: ["s", "m"], + control: "select", + }, }, args: { rootClass: "spectrum-OpacityCheckerboard", @@ -33,6 +43,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = OpacityCheckboardGroup.bind({}); diff --git a/components/page/dist/metadata.json b/components/page/dist/metadata.json index cb8c8163de8..4e3ac035552 100644 --- a/components/page/dist/metadata.json +++ b/components/page/dist/metadata.json @@ -7,10 +7,6 @@ "--spectrum-page-content-tap-highlight" ], "global": ["--spectrum-gray-75", "--spectrum-transparent-black-25"], - "system-theme": [ - "--system-root-page-background-color", - "--system-root-page-content-tap-highlight" - ], "passthroughs": [], "high-contrast": [] } diff --git a/components/page/index.css b/components/page/index.css index 7a29f49a2e2..b5ce5555917 100644 --- a/components/page/index.css +++ b/components/page/index.css @@ -11,11 +11,9 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - :root { - background: var(--mod-page-background, var(--spectrum-page-background-color)); + background: var(--mod-page-background, var(--spectrum-page-background-color, var(--spectrum-gray-75))); /* The highlight that appears over a link while it's being tapped */ - -webkit-tap-highlight-color: var(--mod-page-content-tap-highlight, var(--spectrum-page-content-tap-highlight)); + -webkit-tap-highlight-color: var(--mod-page-content-tap-highlight, var(--spectrum-page-content-tap-highlight, var(--spectrum-transparent-black-25))); } diff --git a/components/page/package.json b/components/page/package.json index 168387b60b6..e7b8cb8843b 100644 --- a/components/page/package.json +++ b/components/page/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/page/stories/template.js b/components/page/stories/template.js index 570ca98b244..395f6d48390 100644 --- a/components/page/stories/template.js +++ b/components/page/stories/template.js @@ -2,9 +2,6 @@ import { renderContent } from "@spectrum-css/preview/decorators"; import { html } from "lit"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ content = [] } = {}, context = {}) => { return html`${renderContent(content, { context })}`; diff --git a/components/page/themes/express.css b/components/page/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/page/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/page/themes/spectrum-two.css b/components/page/themes/spectrum-two.css deleted file mode 100644 index 896ecf506cc..00000000000 --- a/components/page/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - :root { - --spectrum-page-background-color: var(--spectrum-gray-75); - --spectrum-page-content-tap-highlight: var(--spectrum-transparent-black-25); - } -} diff --git a/components/page/themes/spectrum.css b/components/page/themes/spectrum.css deleted file mode 100644 index f6c120c2d43..00000000000 --- a/components/page/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - :root { - --spectrum-page-background-color: var(--spectrum-gray-100); - --spectrum-page-content-tap-highlight: var(--spectrum-transparent-black-100); - } -} diff --git a/components/pagination/CHANGELOG.md b/components/pagination/CHANGELOG.md index 862b04fc666..a7c6fcc01f8 100644 --- a/components/pagination/CHANGELOG.md +++ b/components/pagination/CHANGELOG.md @@ -170,25 +170,20 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.6...@spectrum-css/pagination@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.6...@spectrum-css/pagination@8.0.0) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css <a name="7.1.6"></a> ## 7.1.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.5...@spectrum-css/pagination@7.1.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.5...@spectrum-css/pagination@7.1.6) **Note:** Version bump only for package @spectrum-css/pagination @@ -196,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.4...@spectrum-css/pagination@7.1.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.4...@spectrum-css/pagination@7.1.5) **Note:** Version bump only for package @spectrum-css/pagination @@ -205,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.4 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.3...@spectrum-css/pagination@7.1.4) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.3...@spectrum-css/pagination@7.1.4) **Note:** Version bump only for package @spectrum-css/pagination @@ -214,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.3 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/pagination @@ -223,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.2 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.1...@spectrum-css/pagination@7.1.2) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.1...@spectrum-css/pagination@7.1.2) **Note:** Version bump only for package @spectrum-css/pagination @@ -232,30 +223,27 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.0...@spectrum-css/pagination@7.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.1.0...@spectrum-css/pagination@7.1.1) ### 🐛 Bug fixes -\*deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-css/issues/2437))([ff5dda6](https://github.com/adobe/spectrum-css/commit/ff5dda6)) +- deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-css/issues/2437))([ff5dda6](https://github.com/adobe/spectrum-css/commit/ff5dda6)) <a name="7.1.0"></a> ## 7.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.5...@spectrum-css/pagination@7.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.5...@spectrum-css/pagination@7.1.0) ### ✨ Features -\*remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) +- remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) <a name="7.0.5"></a> ## 7.0.5 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.4...@spectrum-css/pagination@7.0.5) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.4...@spectrum-css/pagination@7.0.5) **Note:** Version bump only for package @spectrum-css/pagination @@ -263,17 +251,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.4 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.3...@spectrum-css/pagination@7.0.4) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.3...@spectrum-css/pagination@7.0.4) **Note:** Version bump only for package @spectrum-css/pagination -<a name="7.0.3"></a> +<a name="7.0.3"></a>' ## 7.0.3 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.1...@spectrum-css/pagination@7.0.3) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.1...@spectrum-css/pagination@7.0.3) **Note:** Version bump only for package @spectrum-css/pagination @@ -281,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.1...@spectrum-css/pagination@7.0.2) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.1...@spectrum-css/pagination@7.0.2) **Note:** Version bump only for package @spectrum-css/pagination @@ -290,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.0...@spectrum-css/pagination@7.0.1) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@7.0.0...@spectrum-css/pagination@7.0.1) **Note:** Version bump only for package @spectrum-css/pagination @@ -299,16 +283,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.50...@spectrum-css/pagination@7.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.50...@spectrum-css/pagination@7.0.0) -\*feat(pagination)!: migrate to spectrum tokens package([f29a74d](https://github.com/adobe/spectrum-css/commit/f29a74d)) +- feat(pagination)!: migrate to spectrum tokens package([f29a74d](https://github.com/adobe/spectrum-css/commit/f29a74d)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - Replaces DNA tokens with Spectrum tokens. +- Replaces DNA tokens with Spectrum tokens. Update build to use Spectrum tokens. Remove skin.css and incorporate its CSS into index.css. @@ -347,8 +328,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.50 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.49...@spectrum-css/pagination@6.0.50) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.49...@spectrum-css/pagination@6.0.50) **Note:** Version bump only for package @spectrum-css/pagination @@ -356,8 +336,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.49 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.48...@spectrum-css/pagination@6.0.49) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.48...@spectrum-css/pagination@6.0.49) **Note:** Version bump only for package @spectrum-css/pagination @@ -365,8 +344,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.48 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.47...@spectrum-css/pagination@6.0.48) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.47...@spectrum-css/pagination@6.0.48) **Note:** Version bump only for package @spectrum-css/pagination @@ -374,8 +352,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.47 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.46...@spectrum-css/pagination@6.0.47) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.46...@spectrum-css/pagination@6.0.47) **Note:** Version bump only for package @spectrum-css/pagination @@ -383,8 +360,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.46 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.45...@spectrum-css/pagination@6.0.46) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.45...@spectrum-css/pagination@6.0.46) **Note:** Version bump only for package @spectrum-css/pagination @@ -392,8 +368,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.45 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.44...@spectrum-css/pagination@6.0.45) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.44...@spectrum-css/pagination@6.0.45) **Note:** Version bump only for package @spectrum-css/pagination @@ -401,8 +376,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.44 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.43...@spectrum-css/pagination@6.0.44) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.43...@spectrum-css/pagination@6.0.44) **Note:** Version bump only for package @spectrum-css/pagination @@ -410,8 +384,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.43 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.42...@spectrum-css/pagination@6.0.43) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.42...@spectrum-css/pagination@6.0.43) **Note:** Version bump only for package @spectrum-css/pagination @@ -419,8 +392,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.42 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.41...@spectrum-css/pagination@6.0.42) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.41...@spectrum-css/pagination@6.0.42) **Note:** Version bump only for package @spectrum-css/pagination @@ -428,19 +400,17 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.41 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.40...@spectrum-css/pagination@6.0.41) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.40...@spectrum-css/pagination@6.0.41) ### 🔙 Reverts -\*gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) +- gulp and build updates ([#2121](https://github.com/adobe/spectrum-css/issues/2121))([03a37f5](https://github.com/adobe/spectrum-css/commit/03a37f5)), closes[#2099](https://github.com/adobe/spectrum-css/issues/2099) <a name="6.0.40"></a> ## 6.0.40 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.39...@spectrum-css/pagination@6.0.40) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.39...@spectrum-css/pagination@6.0.40) **Note:** Version bump only for package @spectrum-css/pagination @@ -448,8 +418,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.39 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.37...@spectrum-css/pagination@6.0.39) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.37...@spectrum-css/pagination@6.0.39) **Note:** Version bump only for package @spectrum-css/pagination @@ -457,8 +426,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.38 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.37...@spectrum-css/pagination@6.0.38) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.37...@spectrum-css/pagination@6.0.38) **Note:** Version bump only for package @spectrum-css/pagination @@ -466,8 +434,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.37 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.36...@spectrum-css/pagination@6.0.37) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.36...@spectrum-css/pagination@6.0.37) **Note:** Version bump only for package @spectrum-css/pagination @@ -475,8 +442,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.36 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.35...@spectrum-css/pagination@6.0.36) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.35...@spectrum-css/pagination@6.0.36) **Note:** Version bump only for package @spectrum-css/pagination @@ -484,8 +450,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.35 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.34...@spectrum-css/pagination@6.0.35) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.34...@spectrum-css/pagination@6.0.35) **Note:** Version bump only for package @spectrum-css/pagination @@ -493,8 +458,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.34 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.33...@spectrum-css/pagination@6.0.34) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.33...@spectrum-css/pagination@6.0.34) **Note:** Version bump only for package @spectrum-css/pagination @@ -502,19 +466,17 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.33 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.32...@spectrum-css/pagination@6.0.33) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.32...@spectrum-css/pagination@6.0.33) ### 🐛 Bug fixes -\*icon sizing in Storybook story templates ([#2037](https://github.com/adobe/spectrum-css/issues/2037))([c90c8a3](https://github.com/adobe/spectrum-css/commit/c90c8a3)) +- icon sizing in Storybook story templates ([#2037](https://github.com/adobe/spectrum-css/issues/2037))([c90c8a3](https://github.com/adobe/spectrum-css/commit/c90c8a3)) <a name="6.0.32"></a> ## 6.0.32 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.31...@spectrum-css/pagination@6.0.32) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.31...@spectrum-css/pagination@6.0.32) **Note:** Version bump only for package @spectrum-css/pagination @@ -522,8 +484,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.31 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.30...@spectrum-css/pagination@6.0.31) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.30...@spectrum-css/pagination@6.0.31) **Note:** Version bump only for package @spectrum-css/pagination @@ -531,8 +492,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.30 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.29...@spectrum-css/pagination@6.0.30) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.29...@spectrum-css/pagination@6.0.30) **Note:** Version bump only for package @spectrum-css/pagination @@ -540,8 +500,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.29 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.28...@spectrum-css/pagination@6.0.29) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.28...@spectrum-css/pagination@6.0.29) **Note:** Version bump only for package @spectrum-css/pagination @@ -549,8 +508,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.28 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.27...@spectrum-css/pagination@6.0.28) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.27...@spectrum-css/pagination@6.0.28) **Note:** Version bump only for package @spectrum-css/pagination @@ -558,8 +516,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.27 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.26...@spectrum-css/pagination@6.0.27) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.26...@spectrum-css/pagination@6.0.27) **Note:** Version bump only for package @spectrum-css/pagination @@ -567,19 +524,17 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.26 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.25...@spectrum-css/pagination@6.0.26) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.25...@spectrum-css/pagination@6.0.26) ### 🐛 Bug fixes -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) +- restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) <a name="6.0.25"></a> ## 6.0.25 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.24...@spectrum-css/pagination@6.0.25) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.24...@spectrum-css/pagination@6.0.25) **Note:** Version bump only for package @spectrum-css/pagination @@ -587,8 +542,7 @@ Add the "Button style" version of Pagination from the docs to Storybook. ## 6.0.24 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.23...@spectrum-css/pagination@6.0.24) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pagination@6.0.23...@spectrum-css/pagination@6.0.24) **Note:** Version bump only for package @spectrum-css/pagination diff --git a/components/pagination/dist/metadata.json b/components/pagination/dist/metadata.json index 7a0b21fe8dd..e44857f71b9 100644 --- a/components/pagination/dist/metadata.json +++ b/components/pagination/dist/metadata.json @@ -34,7 +34,6 @@ "--spectrum-logical-rotation", "--spectrum-neutral-subdued-content-color-default" ], - "system-theme": [], "passthroughs": ["--mod-textfield-min-width", "--mod-textfield-width"], "high-contrast": [] } diff --git a/components/pagination/package.json b/components/pagination/package.json index e30cfda69c2..edea4c16559 100644 --- a/components/pagination/package.json +++ b/components/pagination/package.json @@ -25,22 +25,18 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/button": ">=13", - "@spectrum-css/icon": ">=7", + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/button": ">=14", + "@spectrum-css/icon": ">=9", "@spectrum-css/textfield": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/actionbutton": "7.0.1", "@spectrum-css/button": "14.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/textfield": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/pagination/stories/pagination.stories.js b/components/pagination/stories/pagination.stories.js index 7fa6fa909e1..a9098d40630 100644 --- a/components/pagination/stories/pagination.stories.js +++ b/components/pagination/stories/pagination.stories.js @@ -71,6 +71,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** diff --git a/components/picker/CHANGELOG.md b/components/picker/CHANGELOG.md index 46bd1be14fe..09934534a59 100644 --- a/components/picker/CHANGELOG.md +++ b/components/picker/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 9.0.0-next.1 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/menu@8.0.0-next.0 + +## 9.0.0-next.0 + +### Major Changes + +- [#2697](https://github.com/adobe/spectrum-css/pull/2697) [`5d730fe`](https://github.com/adobe/spectrum-css/commit/5d730fe711c7469b7216ece9638a4a157429fa17) Thanks [@jawinn](https://github.com/jawinn)! - #### Spectrum 2 migration + + Picker now uses Spectrum 2 tokens and specifications. A few notable changes: + + - The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`. + - The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`. + - The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`. + - The mod custom property `--mod-picker-spacing-text-to-alert-icon-inline-start` has been renamed to `--mod-picker-spacing-text-to-icon-inline-end`. This removed the fallback that was marked as deprecated in a previous version. + - The mod custom property `--mod-picker-spacing-text-to-icon` has been removed. Use `--mod-picker-spacing-text-to-icon-inline-end` for the spacing between text and visual (indicator or disclosure), or `--mod-picker-spacing-starting-icon-to-text` for the space between the optional workflow icon and the text. + ## 9.0.1 ### Patch Changes @@ -198,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.7...@spectrum-css/picker@8.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.7...@spectrum-css/picker@8.0.0) ### ✨ Features @@ -224,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.7 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.6...@spectrum-css/picker@7.2.7) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.6...@spectrum-css/picker@7.2.7) **Note:** Version bump only for package @spectrum-css/picker @@ -233,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.6 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.5...@spectrum-css/picker@7.2.6) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.5...@spectrum-css/picker@7.2.6) **Note:** Version bump only for package @spectrum-css/picker @@ -242,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.5 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.4...@spectrum-css/picker@7.2.5) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.4...@spectrum-css/picker@7.2.5) **Note:** Version bump only for package @spectrum-css/picker @@ -251,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.4 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.3...@spectrum-css/picker@7.2.4) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.3...@spectrum-css/picker@7.2.4) **Note:** Version bump only for package @spectrum-css/picker @@ -260,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.3 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.2...@spectrum-css/picker@7.2.3) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.2...@spectrum-css/picker@7.2.3) ### 🐛 Bug fixes @@ -271,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/picker @@ -280,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.0...@spectrum-css/picker@7.2.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.2.0...@spectrum-css/picker@7.2.1) **Note:** Version bump only for package @spectrum-css/picker @@ -289,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.1.0...@spectrum-css/picker@7.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.1.0...@spectrum-css/picker@7.2.0) **Note:** Version bump only for package @spectrum-css/picker @@ -298,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.1.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.19...@spectrum-css/picker@7.1.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.19...@spectrum-css/picker@7.1.0) ### ✨ Features @@ -314,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.19 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.18...@spectrum-css/picker@7.0.19) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.18...@spectrum-css/picker@7.0.19) ### 🐛 Bug fixes @@ -326,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.18 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.17...@spectrum-css/picker@7.0.18) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.17...@spectrum-css/picker@7.0.18) **Note:** Version bump only for package @spectrum-css/picker @@ -335,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.17 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.16...@spectrum-css/picker@7.0.17) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.16...@spectrum-css/picker@7.0.17) **Note:** Version bump only for package @spectrum-css/picker @@ -344,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.16 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.14...@spectrum-css/picker@7.0.16) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.14...@spectrum-css/picker@7.0.16) **Note:** Version bump only for package @spectrum-css/picker @@ -353,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.15 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.14...@spectrum-css/picker@7.0.15) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.14...@spectrum-css/picker@7.0.15) **Note:** Version bump only for package @spectrum-css/picker @@ -362,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.14 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.13...@spectrum-css/picker@7.0.14) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.13...@spectrum-css/picker@7.0.14) **Note:** Version bump only for package @spectrum-css/picker @@ -371,8 +378,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.13 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.12...@spectrum-css/picker@7.0.13) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.12...@spectrum-css/picker@7.0.13) **Note:** Version bump only for package @spectrum-css/picker @@ -380,8 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.12 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.11...@spectrum-css/picker@7.0.12) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.11...@spectrum-css/picker@7.0.12) **Note:** Version bump only for package @spectrum-css/picker @@ -389,8 +394,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.11 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.10...@spectrum-css/picker@7.0.11) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.10...@spectrum-css/picker@7.0.11) **Note:** Version bump only for package @spectrum-css/picker @@ -398,8 +402,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.10 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.9...@spectrum-css/picker@7.0.10) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.9...@spectrum-css/picker@7.0.10) **Note:** Version bump only for package @spectrum-css/picker @@ -407,8 +410,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.9 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.8...@spectrum-css/picker@7.0.9) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.8...@spectrum-css/picker@7.0.9) **Note:** Version bump only for package @spectrum-css/picker @@ -416,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.8 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.7...@spectrum-css/picker@7.0.8) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.7...@spectrum-css/picker@7.0.8) **Note:** Version bump only for package @spectrum-css/picker @@ -425,8 +426,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.7 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.6...@spectrum-css/picker@7.0.7) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.6...@spectrum-css/picker@7.0.7) **Note:** Version bump only for package @spectrum-css/picker @@ -434,8 +434,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.5...@spectrum-css/picker@7.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.5...@spectrum-css/picker@7.0.6) **Note:** Version bump only for package @spectrum-css/picker @@ -443,8 +442,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.4...@spectrum-css/picker@7.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.4...@spectrum-css/picker@7.0.5) **Note:** Version bump only for package @spectrum-css/picker @@ -452,8 +450,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.3...@spectrum-css/picker@7.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.3...@spectrum-css/picker@7.0.4) ### 🔙 Reverts @@ -463,8 +460,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.2...@spectrum-css/picker@7.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.2...@spectrum-css/picker@7.0.3) **Note:** Version bump only for package @spectrum-css/picker @@ -472,8 +468,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.0...@spectrum-css/picker@7.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.0...@spectrum-css/picker@7.0.2) **Note:** Version bump only for package @spectrum-css/picker @@ -481,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.0...@spectrum-css/picker@7.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@7.0.0...@spectrum-css/picker@7.0.1) **Note:** Version bump only for package @spectrum-css/picker @@ -490,8 +484,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.2...@spectrum-css/picker@7.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.2...@spectrum-css/picker@7.0.0) \*refactor(picker)!: remove focus-ring([e37b430](https://github.com/adobe/spectrum-css/commit/e37b430)) @@ -505,8 +498,7 @@ We've migrated away from the `focus-ring` class in favor of the native `:focus-v ## 6.0.2 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.1...@spectrum-css/picker@6.0.2) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.1...@spectrum-css/picker@6.0.2) ### 🐛 Bug fixes @@ -516,8 +508,7 @@ We've migrated away from the `focus-ring` class in favor of the native `:focus-v ## 6.0.1 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.0...@spectrum-css/picker@6.0.1) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@6.0.0...@spectrum-css/picker@6.0.1) **Note:** Version bump only for package @spectrum-css/picker @@ -525,8 +516,7 @@ We've migrated away from the `focus-ring` class in favor of the native `:focus-v ## 6.0.0 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@5.0.1...@spectrum-css/picker@6.0.0) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@5.0.1...@spectrum-css/picker@6.0.0) ### 🐛 Bug fixes @@ -555,8 +545,7 @@ Additionally: ## 5.0.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@5.0.0...@spectrum-css/picker@5.0.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@5.0.0...@spectrum-css/picker@5.0.1) **Note:** Version bump only for package @spectrum-css/picker @@ -564,13 +553,11 @@ Additionally: ## 5.0.0 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.22...@spectrum-css/picker@5.0.0) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.22...@spectrum-css/picker@5.0.0) \*feat(pickerbutton)!: migrate to use spectrum tokens (#1940)([ad6051d](https://github.com/adobe/spectrum-css/commit/ad6051d)), closes[#1940](https://github.com/adobe/spectrum-css/issues/1940) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates the Picker Button component to use `@adobe/spectrum-tokens` @@ -638,8 +625,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.22 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.21...@spectrum-css/picker@4.0.22) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.21...@spectrum-css/picker@4.0.22) ### 🐛 Bug fixes @@ -649,8 +635,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.21 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.20...@spectrum-css/picker@4.0.21) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.20...@spectrum-css/picker@4.0.21) **Note:** Version bump only for package @spectrum-css/picker @@ -658,8 +643,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.20 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.19...@spectrum-css/picker@4.0.20) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.19...@spectrum-css/picker@4.0.20) **Note:** Version bump only for package @spectrum-css/picker @@ -667,8 +651,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.19 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.18...@spectrum-css/picker@4.0.19) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.18...@spectrum-css/picker@4.0.19) **Note:** Version bump only for package @spectrum-css/picker @@ -676,8 +659,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.18 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.17...@spectrum-css/picker@4.0.18) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.17...@spectrum-css/picker@4.0.18) **Note:** Version bump only for package @spectrum-css/picker @@ -685,8 +667,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.17 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.16...@spectrum-css/picker@4.0.17) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.16...@spectrum-css/picker@4.0.17) **Note:** Version bump only for package @spectrum-css/picker @@ -694,8 +675,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.16 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.15...@spectrum-css/picker@4.0.16) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.15...@spectrum-css/picker@4.0.16) **Note:** Version bump only for package @spectrum-css/picker @@ -703,8 +683,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.15 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.14...@spectrum-css/picker@4.0.15) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.14...@spectrum-css/picker@4.0.15) **Note:** Version bump only for package @spectrum-css/picker @@ -712,8 +691,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.14 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.13...@spectrum-css/picker@4.0.14) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.13...@spectrum-css/picker@4.0.14) ### 🐛 Bug fixes @@ -723,8 +701,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.13 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.12...@spectrum-css/picker@4.0.13) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.12...@spectrum-css/picker@4.0.13) **Note:** Version bump only for package @spectrum-css/picker @@ -732,8 +709,7 @@ removes padding from uiicononly class to allow for larger icons in slots ## 4.0.12 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.11...@spectrum-css/picker@4.0.12) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/picker@4.0.11...@spectrum-css/picker@4.0.12) **Note:** Version bump only for package @spectrum-css/picker diff --git a/components/picker/dist/metadata.json b/components/picker/dist/metadata.json index 8b62a6c4c3a..754e012f599 100644 --- a/components/picker/dist/metadata.json +++ b/components/picker/dist/metadata.json @@ -2,32 +2,23 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Picker", - ".spectrum-Picker + .spectrum-Popover--bottom.is-open", + ".spectrum-Picker + .spectrum-Popover--bottom-start.is-open", ".spectrum-Picker .spectrum-Picker-icon", ".spectrum-Picker .spectrum-Picker-label", ".spectrum-Picker .spectrum-ProgressCircle", ".spectrum-Picker--quiet", - ".spectrum-Picker--quiet .spectrum-Picker-menuIcon", - ".spectrum-Picker--quiet.is-keyboardFocused", ".spectrum-Picker--quiet.is-keyboardFocused:after", - ".spectrum-Picker--quiet.is-open", ".spectrum-Picker--quiet.spectrum-Picker--sideLabel", - ".spectrum-Picker--quiet.spectrum-Picker.is-disabled", - ".spectrum-Picker--quiet.spectrum-Picker:disabled", - ".spectrum-Picker--quiet:active", ".spectrum-Picker--quiet:after", - ".spectrum-Picker--quiet:focus-visible", ".spectrum-Picker--quiet:focus-visible:after", - ".spectrum-Picker--quiet:hover", ".spectrum-Picker--sideLabel", ".spectrum-Picker--sizeL", - ".spectrum-Picker--sizeL + .spectrum-Popover--bottom.is-open", + ".spectrum-Picker--sizeL + .spectrum-Popover--bottom-start.is-open", ".spectrum-Picker--sizeS", - ".spectrum-Picker--sizeS + .spectrum-Popover--bottom.is-open", + ".spectrum-Picker--sizeS + .spectrum-Popover--bottom-start.is-open", ".spectrum-Picker--sizeXL", - ".spectrum-Picker--sizeXL + .spectrum-Popover--bottom.is-open", + ".spectrum-Picker--sizeXL + .spectrum-Popover--bottom-start.is-open", ".spectrum-Picker-label", - ".spectrum-Picker-label ~ .spectrum-Picker-menuIcon", ".spectrum-Picker-label.is-placeholder", ".spectrum-Picker-label.is-placeholder:active", ".spectrum-Picker-label.is-placeholder:hover", @@ -39,7 +30,7 @@ ".spectrum-Picker.is-disabled .spectrum-Picker-label.is-placeholder", ".spectrum-Picker.is-disabled .spectrum-Picker-menuIcon", ".spectrum-Picker.is-disabled .spectrum-Picker-validationIcon", - ".spectrum-Picker.is-invalid .spectrum-Picker-label", + ".spectrum-Picker.is-disabled:not(.spectrum-Picker--quiet)", ".spectrum-Picker.is-invalid.is-keyboardFocused:not(:disabled, .is-disabled)", ".spectrum-Picker.is-invalid.is-open:not(:disabled, .is-disabled)", ".spectrum-Picker.is-invalid.is-open:not(:disabled, .is-disabled):hover", @@ -52,12 +43,12 @@ ".spectrum-Picker.is-keyboardFocused .spectrum-Picker-menuIcon", ".spectrum-Picker.is-keyboardFocused.is-placeholder", ".spectrum-Picker.is-keyboardFocused:after", - ".spectrum-Picker.is-loading .spectrum-Picker-label", + ".spectrum-Picker.is-loading", ".spectrum-Picker.is-loading .spectrum-Picker-menuIcon", - ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled)", - ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled) .spectrum-Picker-menuIcon", - ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled):hover", - ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled):hover .spectrum-Picker-menuIcon", + ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled, .is-loading)", + ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled, .is-loading) .spectrum-Picker-menuIcon", + ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled, .is-loading):hover", + ".spectrum-Picker.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled, .is-loading):hover .spectrum-Picker-menuIcon", ".spectrum-Picker.is-placeholder:active .spectrum-Picker-label", ".spectrum-Picker.is-placeholder:focus-visible", ".spectrum-Picker::-moz-focus-inner", @@ -69,16 +60,18 @@ ".spectrum-Picker:disabled .spectrum-Picker-label.is-placeholder", ".spectrum-Picker:disabled .spectrum-Picker-menuIcon", ".spectrum-Picker:disabled .spectrum-Picker-validationIcon", + ".spectrum-Picker:disabled:not(.spectrum-Picker--quiet)", ".spectrum-Picker:focus", ".spectrum-Picker:focus-visible", ".spectrum-Picker:focus-visible .spectrum-Picker-menuIcon", ".spectrum-Picker:focus-visible:after", ".spectrum-Picker:hover", - ".spectrum-Picker:hover .spectrum-Picker-menuIcon" + ".spectrum-Picker:hover .spectrum-Picker-menuIcon", + ".spectrum-Picker:lang(ja) .spectrum-Picker-label", + ".spectrum-Picker:lang(ko) .spectrum-Picker-label", + ".spectrum-Picker:lang(zh) .spectrum-Picker-label" ], "modifiers": [ - "--mod-animation-duration-100", - "--mod-line-height-100", "--mod-picker-animation-duration", "--mod-picker-background-color-active", "--mod-picker-background-color-default", @@ -123,7 +116,11 @@ "--mod-picker-icon-color-hover-open", "--mod-picker-icon-color-key-focus", "--mod-picker-inline-size", + "--mod-picker-inline-size-quiet", "--mod-picker-line-height", + "--mod-picker-line-height-cjk", + "--mod-picker-min-inline-size", + "--mod-picker-min-inline-size-quiet", "--mod-picker-placeholder-font-style", "--mod-picker-placeholder-font-weight", "--mod-picker-spacing-bottom-to-text", @@ -135,14 +132,12 @@ "--mod-picker-spacing-label-to-picker", "--mod-picker-spacing-label-to-picker-quiet", "--mod-picker-spacing-picker-to-popover", - "--mod-picker-spacing-text-to-alert-icon-inline-start", - "--mod-picker-spacing-text-to-icon", + "--mod-picker-spacing-starting-icon-to-text", "--mod-picker-spacing-text-to-icon-inline-end", "--mod-picker-spacing-top-to-alert-icon", "--mod-picker-spacing-top-to-disclosure-icon", "--mod-picker-spacing-top-to-progress-circle", - "--mod-picker-spacing-top-to-text", - "--mod-sans-font-family-stack" + "--mod-picker-spacing-top-to-text" ], "component": [ "--spectrum-picker-animation-duration", @@ -157,7 +152,6 @@ "--spectrum-picker-border-color-active", "--spectrum-picker-border-color-default", "--spectrum-picker-border-color-default-open", - "--spectrum-picker-border-color-disabled", "--spectrum-picker-border-color-error-active", "--spectrum-picker-border-color-error-default", "--spectrum-picker-border-color-error-default-open", @@ -192,18 +186,18 @@ "--spectrum-picker-icon-color-key-focus", "--spectrum-picker-inline-size", "--spectrum-picker-line-height", + "--spectrum-picker-line-height-cjk", + "--spectrum-picker-min-inline-size", "--spectrum-picker-minimum-width-multiplier", "--spectrum-picker-placeholder-font-style", "--spectrum-picker-spacing-bottom-to-text", "--spectrum-picker-spacing-edge-to-disclosure-icon", - "--spectrum-picker-spacing-edge-to-disclosure-icon-quiet", "--spectrum-picker-spacing-edge-to-text", - "--spectrum-picker-spacing-edge-to-text-quiet", "--spectrum-picker-spacing-icon-to-disclosure-icon", "--spectrum-picker-spacing-label-to-picker", "--spectrum-picker-spacing-label-to-picker-quiet", "--spectrum-picker-spacing-picker-to-popover", - "--spectrum-picker-spacing-text-to-icon", + "--spectrum-picker-spacing-starting-icon-to-text", "--spectrum-picker-spacing-text-to-icon-inline-end", "--spectrum-picker-spacing-top-to-alert-icon", "--spectrum-picker-spacing-top-to-disclosure-icon", @@ -216,7 +210,8 @@ ], "global": [ "--spectrum-animation-duration-100", - "--spectrum-border-width-100", + "--spectrum-border-width-200", + "--spectrum-cjk-line-height-100", "--spectrum-component-bottom-to-text-100", "--spectrum-component-bottom-to-text-200", "--spectrum-component-bottom-to-text-300", @@ -229,6 +224,8 @@ "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", + "--spectrum-component-size-difference-down", + "--spectrum-component-size-width-ratio-down", "--spectrum-component-to-menu-extra-large", "--spectrum-component-to-menu-large", "--spectrum-component-to-menu-medium", @@ -237,10 +234,23 @@ "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", - "--spectrum-corner-radius-100", + "--spectrum-component-top-to-workflow-icon-100", + "--spectrum-component-top-to-workflow-icon-200", + "--spectrum-component-top-to-workflow-icon-300", + "--spectrum-component-top-to-workflow-icon-75", + "--spectrum-corner-radius-medium-size-extra-large", + "--spectrum-corner-radius-medium-size-large", + "--spectrum-corner-radius-medium-size-medium", + "--spectrum-corner-radius-medium-size-small", "--spectrum-default-font-style", "--spectrum-disabled-background-color", "--spectrum-disabled-content-color", + "--spectrum-downstate-height", + "--spectrum-downstate-width", + "--spectrum-field-default-width-extra-large", + "--spectrum-field-default-width-large", + "--spectrum-field-default-width-medium", + "--spectrum-field-default-width-small", "--spectrum-field-edge-to-text-quiet", "--spectrum-field-end-edge-to-disclosure-icon-100", "--spectrum-field-end-edge-to-disclosure-icon-200", @@ -251,14 +261,6 @@ "--spectrum-field-label-to-component-quiet-large", "--spectrum-field-label-to-component-quiet-medium", "--spectrum-field-label-to-component-quiet-small", - "--spectrum-field-text-to-alert-icon-extra-large", - "--spectrum-field-text-to-alert-icon-large", - "--spectrum-field-text-to-alert-icon-medium", - "--spectrum-field-text-to-alert-icon-small", - "--spectrum-field-top-to-alert-icon-extra-large", - "--spectrum-field-top-to-alert-icon-large", - "--spectrum-field-top-to-alert-icon-medium", - "--spectrum-field-top-to-alert-icon-small", "--spectrum-field-top-to-disclosure-icon-100", "--spectrum-field-top-to-disclosure-icon-200", "--spectrum-field-top-to-disclosure-icon-300", @@ -267,7 +269,6 @@ "--spectrum-field-top-to-progress-circle-large", "--spectrum-field-top-to-progress-circle-medium", "--spectrum-field-top-to-progress-circle-small", - "--spectrum-field-width", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", @@ -277,12 +278,6 @@ "--spectrum-font-size-75", "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-500", - "--spectrum-gray-600", - "--spectrum-gray-700", - "--spectrum-gray-800", - "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-negative-border-color-default", "--spectrum-negative-border-color-down", @@ -304,22 +299,6 @@ "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-75" ], - "system-theme": [ - "--system-picker-background-color-active", - "--system-picker-background-color-default", - "--system-picker-background-color-default-open", - "--system-picker-background-color-hover", - "--system-picker-background-color-hover-open", - "--system-picker-background-color-key-focus", - "--system-picker-border-color-active", - "--system-picker-border-color-default", - "--system-picker-border-color-default-open", - "--system-picker-border-color-disabled", - "--system-picker-border-color-hover", - "--system-picker-border-color-hover-open", - "--system-picker-border-color-key-focus", - "--system-picker-border-width" - ], "passthroughs": [ "--mod-button-animation-duration", "--mod-button-font-family", diff --git a/components/picker/index.css b/components/picker/index.css index 53dcb003ce3..ace3bd34cd6 100644 --- a/components/picker/index.css +++ b/components/picker/index.css @@ -11,44 +11,70 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; @import "@spectrum-css/commons/basebutton.css"; .spectrum-Picker { - /* font */ + /* Font */ --spectrum-picker-font-size: var(--spectrum-font-size-100); --spectrum-picker-font-weight: var(--spectrum-regular-font-weight); --spectrum-picker-placeholder-font-style: var(--spectrum-default-font-style); --spectrum-picker-line-height: var(--spectrum-line-height-100); + --spectrum-picker-line-height-cjk: var(--spectrum-cjk-line-height-100); - /* height */ + /* Dimensions */ --spectrum-picker-block-size: var(--spectrum-component-height-100); - --spectrum-picker-inline-size: var(--spectrum-field-width); + --spectrum-picker-inline-size: var(--spectrum-field-default-width-medium); + --spectrum-picker-min-inline-size: calc(var(--spectrum-picker-minimum-width-multiplier) * var(--mod-picker-block-size, var(--spectrum-picker-block-size))); - /* border */ - --spectrum-picker-border-radius: var(--spectrum-corner-radius-100); + /* Border */ + --spectrum-picker-border-radius: var(--spectrum-corner-radius-medium-size-medium); + --spectrum-picker-border-width: var(--spectrum-border-width-200); - /* spacing */ + /* Spacing */ --spectrum-picker-spacing-top-to-text: var(--spectrum-component-top-to-text-100); --spectrum-picker-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-100); --spectrum-picker-spacing-edge-to-text: var(--spectrum-component-edge-to-text-100); - --spectrum-picker-spacing-edge-to-text-quiet: var(--spectrum-field-edge-to-text-quiet); + + /* Space from label component to Picker component. */ --spectrum-picker-spacing-label-to-picker: var(--spectrum-field-label-to-component); + --spectrum-picker-spacing-label-to-picker-quiet: var(--spectrum-field-label-to-component-quiet-medium); + + /* Space from optional starting icon to the text. */ + --spectrum-picker-spacing-starting-icon-to-text: var(--spectrum-text-to-visual-100); + + /* Space from text to either the disclosure icon or the alert/progress visual if present. */ + --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-text-to-visual-100); - --spectrum-picker-spacing-text-to-icon: var(--spectrum-text-to-visual-100); - --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-medium); + /* Space from alert/progress visual to the disclosure icon (chevron). */ --spectrum-picker-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-medium); - --spectrum-picker-spacing-label-to-picker-quiet: var(--spectrum-field-label-to-component-quiet-medium); - --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-medium); + + --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-component-top-to-workflow-icon-100); --spectrum-picker-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-medium); --spectrum-picker-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-100); --spectrum-picker-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-100); - --spectrum-picker-spacing-edge-to-disclosure-icon-quiet: var(--spectrum-picker-end-edge-to-disclousure-icon-quiet); - /* animation */ + & + .spectrum-Popover--bottom-start.is-open { + --spectrum-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-medium); + } + + /* Animation */ --spectrum-picker-animation-duration: var(--spectrum-animation-duration-100); - /* color */ + /* Color */ + --spectrum-picker-background-color-default: var(--spectrum-gray-100); + --spectrum-picker-background-color-default-open: var(--spectrum-gray-200); + --spectrum-picker-background-color-hover: var(--spectrum-gray-200); + --spectrum-picker-background-color-hover-open: var(--spectrum-gray-200); + --spectrum-picker-background-color-active: var(--spectrum-gray-200); + --spectrum-picker-background-color-key-focus: var(--spectrum-gray-200); + + --spectrum-picker-border-color-default: transparent; + --spectrum-picker-border-color-default-open: transparent; + --spectrum-picker-border-color-hover: transparent; + --spectrum-picker-border-color-hover-open: transparent; + --spectrum-picker-border-color-active: transparent; + --spectrum-picker-border-color-key-focus: transparent; + --spectrum-picker-font-color-default: var(--spectrum-neutral-content-color-default); --spectrum-picker-font-color-default-open: var(--spectrum-neutral-content-color-focus); --spectrum-picker-font-color-hover: var(--spectrum-neutral-content-color-hover); @@ -76,122 +102,107 @@ --spectrum-picker-font-color-disabled: var(--spectrum-disabled-content-color); --spectrum-picker-icon-color-disabled: var(--spectrum-disabled-content-color); - /* special cases for focus indicator */ + /* focus indicator */ --spectrum-picker-focus-indicator-gap: var(--spectrum-focus-indicator-gap); --spectrum-picker-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-picker-focus-indicator-color: var(--spectrum-focus-indicator-color); - - & + .spectrum-Popover--bottom.is-open { - --spectrum-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-medium); - } } .spectrum-Picker--sizeS { --spectrum-picker-font-size: var(--spectrum-font-size-75); --spectrum-picker-block-size: var(--spectrum-component-height-75); + --spectrum-picker-inline-size: var(--spectrum-field-default-width-small); + --spectrum-picker-border-radius: var(--spectrum-corner-radius-medium-size-small); --spectrum-picker-spacing-top-to-text: var(--spectrum-component-top-to-text-75); --spectrum-picker-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-75); --spectrum-picker-spacing-edge-to-text: var(--spectrum-component-edge-to-text-75); - --spectrum-picker-spacing-text-to-icon: var(--spectrum-text-to-visual-75); - --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-small); + --spectrum-picker-spacing-starting-icon-to-text: var(--spectrum-text-to-visual-75); + --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-text-to-visual-75); --spectrum-picker-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-small); --spectrum-picker-spacing-label-to-picker-quiet: var(--spectrum-field-label-to-component-quiet-small); - --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-small); + --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-component-top-to-workflow-icon-75); --spectrum-picker-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-small); --spectrum-picker-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-75); --spectrum-picker-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-75); - & + .spectrum-Popover--bottom.is-open { + & + .spectrum-Popover--bottom-start.is-open { --spectrum-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-small); } } .spectrum-Picker--sizeL { --spectrum-picker-font-size: var(--spectrum-font-size-200); + --spectrum-picker-inline-size: var(--spectrum-field-default-width-large); --spectrum-picker-block-size: var(--spectrum-component-height-200); + --spectrum-picker-border-radius: var(--spectrum-corner-radius-medium-size-large); --spectrum-picker-spacing-top-to-text: var(--spectrum-component-top-to-text-200); --spectrum-picker-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-200); --spectrum-picker-spacing-edge-to-text: var(--spectrum-component-edge-to-text-200); - --spectrum-picker-spacing-text-to-icon: var(--spectrum-text-to-visual-200); - --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-large); + --spectrum-picker-spacing-starting-icon-to-text: var(--spectrum-text-to-visual-200); + --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-text-to-visual-200); --spectrum-picker-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-large); --spectrum-picker-spacing-label-to-picker-quiet: var(--spectrum-field-label-to-component-quiet-large); - --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-large); + --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-component-top-to-workflow-icon-200); --spectrum-picker-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-large); --spectrum-picker-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-200); --spectrum-picker-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-200); - & + .spectrum-Popover--bottom.is-open { + & + .spectrum-Popover--bottom-start.is-open { --spectrum-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-large); } } .spectrum-Picker--sizeXL { --spectrum-picker-font-size: var(--spectrum-font-size-300); + --spectrum-picker-inline-size: var(--spectrum-field-default-width-extra-large); --spectrum-picker-block-size: var(--spectrum-component-height-300); + --spectrum-picker-border-radius: var(--spectrum-corner-radius-medium-size-extra-large); --spectrum-picker-spacing-top-to-text: var(--spectrum-component-top-to-text-300); --spectrum-picker-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-300); --spectrum-picker-spacing-edge-to-text: var(--spectrum-component-edge-to-text-300); - --spectrum-picker-spacing-text-to-icon: var(--spectrum-text-to-visual-300); - --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-extra-large); + --spectrum-picker-spacing-starting-icon-to-text: var(--spectrum-text-to-visual-300); + --spectrum-picker-spacing-text-to-icon-inline-end: var(--spectrum-text-to-visual-300); --spectrum-picker-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-extra-large); --spectrum-picker-spacing-label-to-picker-quiet: var(--spectrum-field-label-to-component-quiet-extra-large); - --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-extra-large); + --spectrum-picker-spacing-top-to-alert-icon: var(--spectrum-component-top-to-workflow-icon-300); --spectrum-picker-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-extra-large); --spectrum-picker-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-300); --spectrum-picker-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-300); - & + .spectrum-Popover--bottom.is-open { + & + .spectrum-Popover--bottom-start.is-open { --spectrum-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-extra-large); } } -/* Windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Picker { - --highcontrast-picker-focus-indicator-color: Highlight; - - --highcontrast-picker-border-color-default: ButtonBorder; - --highcontrast-picker-border-color-hover: Highlight; - --highcontrast-picker-border-color-disabled: GrayText; - - --highcontrast-picker-content-color-default: ButtonText; - --highcontrast-picker-content-color-disabled: GrayText; - --highcontrast-picker-background-color: ButtonFace; - - &:focus-visible, - &.is-keyboardFocused { - --highcontrast-picker-border-color-hover: ButtonText; - } - - /* Focus indicator */ - &::after { - /* Make sure default transparent border stays transparent. */ - forced-color-adjust: none; - } - - .spectrum-Picker-label { - /* Remove additional text backplate added in WHCM (Edge). */ - forced-color-adjust: none; - } - } +.spectrum-Picker--quiet { + --spectrum-picker-background-color-default: transparent; + --spectrum-picker-background-color-default-open: transparent; + --spectrum-picker-background-color-hover: transparent; + --spectrum-picker-background-color-hover-open: transparent; + --spectrum-picker-background-color-active: transparent; + --spectrum-picker-background-color-key-focus: transparent; + --spectrum-picker-background-color-disabled: transparent; + + --spectrum-picker-min-inline-size: var(--mod-picker-min-inline-size-quiet, 0); + --spectrum-picker-inline-size: var(--mod-picker-inline-size-quiet, auto); + --spectrum-picker-spacing-edge-to-text: var(--mod-picker-spacing-edge-to-text-quiet, var(--spectrum-field-edge-to-text-quiet)); + --spectrum-picker-spacing-edge-to-disclosure-icon: var(--mod-picker-spacing-edge-to-disclosure-icon-quiet, var(--spectrum-picker-end-edge-to-disclousure-icon-quiet)); + --spectrum-picker-spacing-label-to-picker: var(--mod-picker-spacing-label-to-picker-quiet, var(--spectrum-picker-spacing-label-to-picker-quiet)); } .spectrum-Picker { @extend %spectrum-BaseButton; - /* Layout */ display: flex; box-sizing: border-box; - /* Minimum width is 2 times the height */ max-inline-size: 100%; - min-inline-size: calc(var(--spectrum-picker-minimum-width-multiplier) * var(--mod-picker-block-size, var(--spectrum-picker-block-size))); + min-inline-size: var(--mod-picker-min-inline-size, var(--spectrum-picker-min-inline-size)); inline-size: var(--mod-picker-inline-size, var(--spectrum-picker-inline-size)); block-size: var(--mod-picker-block-size, var(--spectrum-picker-block-size)); - padding-block: 0; - margin-block-start: var(--mod-picker-spacing-label-to-picker, var(--spectrum-picker-spacing-label-to-picker)); + margin-block-start: var(--mod-picker-spacing-label-to-picker, var(--spectrum-picker-spacing-label-to-picker)); + padding-block: 0; padding-inline-start: var(--mod-picker-spacing-edge-to-text, var(--spectrum-picker-spacing-edge-to-text)); padding-inline-end: var(--mod-picker-spacing-edge-to-disclosure-icon, var(--spectrum-picker-spacing-edge-to-disclosure-icon)); @@ -242,6 +253,7 @@ &:active { background-color: var(--highcontrast-picker-background-color, var(--mod-picker-background-color-active, var(--spectrum-picker-background-color-active))); border-color: var(--highcontrast-picker-border-color-default, var(--mod-picker-border-active, var(--spectrum-picker-border-color-active))); + transform: perspective(max(var(--spectrum-downstate-height), var(--spectrum-downstate-width) * var(--spectrum-component-size-width-ratio-down))) translateZ(var(--spectrum-component-size-difference-down)); /* Focus indicator */ &::after { @@ -274,7 +286,7 @@ } } - &.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled) { + &.is-open:not(.spectrum-Picker--quiet, :disabled, .is-disabled, .is-loading) { color: var(--highcontrast-picker-content-color-default, var(--mod-picker-font-color-default-open, var(--spectrum-picker-font-color-default-open))); background-color: var(--highcontrast-picker-background-color, var(--mod-picker-background-color-default-open, var(--spectrum-picker-background-color-default-open))); border-color: var(--highcontrast-picker-border-color-default, var(--mod-picker-border-default-open, var(--spectrum-picker-border-color-default-open))); @@ -322,32 +334,17 @@ border-color: var(--highcontrast-picker-border-color-default, var(--mod-picker-border-color-error-key-focus, var(--spectrum-picker-border-color-error-key-focus))); } } +} - &.is-loading { - .spectrum-Picker-menuIcon { - color: var(--highcontrast-picker-content-color-disabled, var(--mod-picker-icon-color-disabled, var(--spectrum-picker-icon-color-disabled))); - } - } - - &.is-loading, - &.is-invalid { - .spectrum-Picker-label { - /* @deprecation --mod-picker-spacing-text-to-alert-icon-inline-start has been renamed to --mod-picker-spacing-text-to-icon-inline-end - and will be removed in a future version. */ - margin-inline-end: var(--mod-picker-spacing-text-to-icon-inline-end, var(--mod-picker-spacing-text-to-alert-icon-inline-start, var(--spectrum-picker-spacing-text-to-icon-inline-end))); - } - } - - .spectrum-Picker-icon { - flex-shrink: 0; - margin-inline-end: var(--mod-picker-spacing-text-to-icon, var(--spectrum-picker-spacing-text-to-icon)); - } +/* Optional workflow icon that appears before the text within the picker. */ +.spectrum-Picker .spectrum-Picker-icon { + flex-shrink: 0; + margin-inline-end: var(--mod-picker-spacing-starting-icon-to-text, var(--spectrum-picker-spacing-starting-icon-to-text)); } +/* Value: the text within the Picker (current value or placeholder) */ .spectrum-Picker-label { - /* Be the biggest, but also shrink! */ flex: 1 1 auto; - white-space: nowrap; overflow: hidden; @@ -358,14 +355,14 @@ text-overflow: ellipsis; text-align: start; - padding-block-start: var(--mod-picker-spacing-top-to-text, var(--spectrum-picker-spacing-top-to-text)); - padding-block-end: calc(var(--mod-picker-spacing-bottom-to-text, var(--spectrum-picker-spacing-bottom-to-text)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); + margin-block-start: var(--mod-picker-spacing-top-to-text, var(--spectrum-picker-spacing-top-to-text)); + margin-block-end: calc(var(--mod-picker-spacing-bottom-to-text, var(--spectrum-picker-spacing-bottom-to-text)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); + margin-inline-end: var(--mod-picker-spacing-text-to-icon-inline-end, var(--spectrum-picker-spacing-text-to-icon-inline-end)); &.is-placeholder { font-weight: var(--mod-picker-placeholder-font-weight, var(--spectrum-picker-font-weight)); font-style: var(--mod-picker-placeholder-font-style, var(--spectrum-picker-placeholder-font-style)); transition: color var(--mod-picker-animation-duration, var(--spectrum-picker-animation-duration)) ease-in-out; - color: var(--highcontrast-picker-content-color-default, var(--mod-picker-font-color-default, var(--spectrum-picker-font-color-default))); &:hover { @@ -376,19 +373,23 @@ color: var(--highcontrast-picker-content-color-default, var(--mod-picker-font-color-active, var(--spectrum-picker-font-color-active))); } } + + /* CJK (Chinese, Japanese, and Korean) language support */ + .spectrum-Picker:lang(ja) &, + .spectrum-Picker:lang(zh) &, + .spectrum-Picker:lang(ko) & { + line-height: var(--mod-picker-line-height-cjk, var(--spectrum-picker-line-height-cjk)); + } } -/* The picker chevron */ +/* Disclosure icon (chevron) */ .spectrum-Picker-menuIcon { display: inline-block; position: relative; vertical-align: top; - transition: color var(--mod-picker-animation-duration, var(--spectrum-picker-animation-duration)) ease-out; flex-shrink: 0; - - margin-inline-start: var(--mod-picker-spacing-icon-to-disclosure-icon, var(--spectrum-picker-spacing-icon-to-disclosure-icon)); margin-block: var(--mod-picker-spacing-top-to-disclosure-icon, var(--spectrum-picker-spacing-top-to-disclosure-icon)); - + transition: color var(--mod-picker-animation-duration, var(--spectrum-picker-animation-duration)) ease-out; color: var(--highcontrast-picker-content-color-default, var(--mod-picker-icon-color-default, var(--spectrum-picker-icon-color-default))); &:active { @@ -397,56 +398,39 @@ } .spectrum-Picker-validationIcon { - flex-shrink: 0; margin-block-start: calc(var(--mod-picker-spacing-top-to-alert-icon, var(--spectrum-picker-spacing-top-to-alert-icon)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); margin-block-end: calc(var(--mod-picker-spacing-top-to-alert-icon, var(--spectrum-picker-spacing-top-to-alert-icon)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); + margin-inline-end: var(--mod-picker-spacing-icon-to-disclosure-icon, var(--spectrum-picker-spacing-icon-to-disclosure-icon)); + flex-shrink: 0; } .spectrum-Picker .spectrum-ProgressCircle { margin-block-start: calc(var(--mod-picker-spacing-top-to-progress-circle, var(--spectrum-picker-spacing-top-to-progress-circle)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); margin-block-end: calc(var(--mod-picker-spacing-top-to-progress-circle, var(--spectrum-picker-spacing-top-to-progress-circle)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width))); + margin-inline-end: var(--mod-picker-spacing-icon-to-disclosure-icon, var(--spectrum-picker-spacing-icon-to-disclosure-icon)); } -.spectrum-Picker-label ~ .spectrum-Picker-menuIcon { - margin-inline-start: var(--mod-picker-spacing-text-to-icon, var(--spectrum-picker-spacing-text-to-icon)); -} - -.spectrum-Picker + .spectrum-Popover--bottom.is-open { +.spectrum-Picker + .spectrum-Popover--bottom-start.is-open { transform: translateY(var(--mod-picker-spacing-picker-to-popover, var(--spectrum-picker-spacing-picker-to-popover))); } .spectrum-Picker--quiet { - inline-size: auto; - min-inline-size: 0; border: none; border-radius: 0; - padding-inline: var(--mod-picker-spacing-edge-to-text-quiet, var(--spectrum-picker-spacing-edge-to-text-quiet)); - margin-block-start: calc(var(--mod-picker-spacing-label-to-picker-quiet, var(--spectrum-picker-spacing-label-to-picker-quiet)) + (1px)); color: var(--highcontrast-picker-content-color-default, var(--mod-picker-font-color-default, var(--spectrum-picker-font-color-default))); - background-color: var(--highcontrast-picker-background-color, transparent); &.spectrum-Picker--sideLabel { margin-block-start: 0; } - .spectrum-Picker-menuIcon { - margin-inline-end: var(--mod-picker-spacing-edge-to-disclosure-icon-quiet, var(--spectrum-picker-spacing-edge-to-disclosure-icon-quiet)); - } - &::after { border: none; block-size: auto; inline-size: auto; } - &:hover { - background-color: var(--highcontrast-picker-background-color, transparent); - } - &:focus-visible, &.is-keyboardFocused { - background-color: var(--highcontrast-picker-background-color, transparent); - /* Focus indicator changes from a ring to a line underneath. */ &::after { border: none; @@ -455,16 +439,6 @@ margin: calc((var(--mod-picker-focus-indicator-gap, var(--spectrum-picker-focus-indicator-gap)) + var(--mod-picker-border-width, var(--spectrum-picker-border-width))) * -1) 0; } } - - &:active, - &.is-open { - background-color: var(--highcontrast-picker-background-color, transparent); - } - - &.spectrum-Picker:disabled, - &.spectrum-Picker.is-disabled { - background-color: var(--highcontrast-picker-background-color, transparent); - } } .spectrum-Picker--sideLabel { @@ -472,16 +446,20 @@ vertical-align: top; } -/* Disabled state: +/* Disabled and loading states: Make sure this appears after any use of :hover while postcss-hover-media-feature is being used. The plugin moves all hover styles within a media query that changes the order of the CSS, affecting styles with the same specificity. */ .spectrum-Picker:disabled, .spectrum-Picker.is-disabled { cursor: default; - background-color: var(--highcontrast-picker-background-color, var(--mod-picker-background-color-disabled, var(--spectrum-picker-background-color-disabled))); - border-color: var(--highcontrast-picker-border-color-disabled, var(--spectrum-picker-border-color-disabled)); + transform: none; + border-color: var(--highcontrast-picker-border-color-disabled, transparent); color: var(--highcontrast-picker-content-color-disabled, var(--mod-picker-font-color-disabled, var(--spectrum-picker-font-color-disabled))); + &:not(.spectrum-Picker--quiet) { + background-color: var(--highcontrast-picker-background-color, var(--mod-picker-background-color-disabled, var(--spectrum-picker-background-color-disabled))); + } + .spectrum-Picker-icon, .spectrum-Picker-menuIcon, .spectrum-Picker-validationIcon { @@ -492,3 +470,42 @@ color: var(--highcontrast-picker-content-color-disabled, var(--mod-picker-font-color-disabled, var(--spectrum-picker-font-color-disabled))); } } + +.spectrum-Picker.is-loading { + transform: none; + + .spectrum-Picker-menuIcon { + color: var(--highcontrast-picker-content-color-disabled, var(--mod-picker-icon-color-disabled, var(--spectrum-picker-icon-color-disabled))); + } +} + +/* Forced colors / high contrast mode */ +@media (forced-colors: active) { + .spectrum-Picker { + --highcontrast-picker-focus-indicator-color: Highlight; + + --highcontrast-picker-border-color-default: ButtonBorder; + --highcontrast-picker-border-color-hover: Highlight; + --highcontrast-picker-border-color-disabled: GrayText; + + --highcontrast-picker-content-color-default: ButtonText; + --highcontrast-picker-content-color-disabled: GrayText; + --highcontrast-picker-background-color: ButtonFace; + + &:focus-visible, + &.is-keyboardFocused { + --highcontrast-picker-border-color-hover: ButtonText; + } + + /* Focus indicator */ + &::after { + /* Make sure default transparent border stays transparent. */ + forced-color-adjust: none; + } + + .spectrum-Picker-label { + /* Remove additional text backplate added in WHCM (Edge). */ + forced-color-adjust: none; + } + } +} diff --git a/components/picker/package.json b/components/picker/package.json index 193570e4e10..f012b2bf495 100644 --- a/components/picker/package.json +++ b/components/picker/package.json @@ -26,11 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/helptext": ">=5", - "@spectrum-css/icon": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/menu": ">=7", - "@spectrum-css/popover": ">=7", - "@spectrum-css/progresscircle": ">=3", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8", + "@spectrum-css/progresscircle": ">=5", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/helptext": { @@ -41,17 +41,13 @@ } }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/helptext": "7.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/menu": "9.0.1", "@spectrum-css/popover": "8.0.1", "@spectrum-css/progresscircle": "5.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/picker/stories/picker.stories.js b/components/picker/stories/picker.stories.js index c2fa56e619d..45c32f3872a 100644 --- a/components/picker/stories/picker.stories.js +++ b/components/picker/stories/picker.stories.js @@ -1,5 +1,6 @@ +import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js"; import { WithDividers as MenuStories } from "@spectrum-css/menu/stories/menu.stories.js"; -import { Sizes } from "@spectrum-css/preview/decorators"; +import { Sizes, withDownStateDimensionCapture } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; import { isActive, isDisabled, isHovered, isInvalid, isKeyboardFocused, isLoading, isOpen, isQuiet, size } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; @@ -17,7 +18,7 @@ export default { size: size(["s", "m", "l", "xl"]), label: { name: "Label", - description: "The text for the field label", + description: "The label text that is displayed above or to the side of the Picker. This uses a separate Label component outside of the Picker markup.", type: { name: "string" }, table: { type: { summary: "string" }, @@ -32,33 +33,28 @@ export default { type: { summary: "string" }, category: "Component", }, + control: { + type: "select", + labels: { + side: "side (inline start)", + }, + }, options: ["top", "side"], - control: { type: "select" }, }, withSwitch: { - name: "Show switch component", - description: "Display a separate switch component after the picker. Helpful for testing alignment with the picker when using the side label.", + name: "Display Switch component", + description: "Displays a Switch component after the Picker. This is used for testing the vertical alignment between the side label, Picker, and Switch.", type: { name: "boolean" }, table: { type: { summary: "boolean" }, - category: "Advanced", + category: "Content", }, control: "boolean", if: { arg: "labelPosition", eq: "side" }, }, - showWorkflowIcon: { - name: "Show workflow icon", - description: "Display optional workflow icon before the value or placeholder", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "Advanced", - }, - control: "boolean", - }, placeholder: { - name: "Placeholder", - description: "The placeholder text prompts a user to select an option from the picker menu. It disappears once a user selects an option. This will not be displayed if the `value` control is set.", + name: "Value or placeholder", + description: "The text within the Picker that represents its current value or placeholder.", type: { name: "string" }, table: { type: { summary: "string" }, @@ -66,15 +62,16 @@ export default { }, control: { type: "text" }, }, - currentValue: { - name: "Value", - description: "The value shows the option that a user has selected.", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Content", - }, - control: { type: "text" }, + contentIconName: { + ...(IconStories?.argTypes?.iconName ?? {}), + name: "Icon", + description: "Optional workflow icon that appears before the value/placeholder text within the picker.", + if: false, + }, + isQuiet: { + ...isQuiet, + description: "An alternative way to display the Picker without a visible background.", + name: "Quiet styling", }, helpText: { name: "Help text", @@ -86,12 +83,18 @@ export default { }, control: { type: "text" }, }, - isQuiet, isOpen, isKeyboardFocused, isDisabled, - isLoading, - isInvalid, + isLoading: { + ...isLoading, + description: "When in the loading state, a progress circle will display next to the disclosure icon.", + if: { arg: "isDisabled", eq: false } + }, + isInvalid: { + ...isInvalid, + description: "When in the invalid state, some styles change on the Picker, and an invalid icon displays next to the disclosure icon.", + }, isHovered, isActive, popoverContent: { table: { disable: true } }, @@ -139,7 +142,14 @@ export default { }, packageJson, metadata, + downState: { + selectors: [".spectrum-Picker:not(:disabled, .is-disabled, .is-loading)"], + }, }, + decorators: [ + withDownStateDimensionCapture, + ], + tags: ["migrated"], }; export const Default = PickerGroup.bind({}); diff --git a/components/picker/stories/template.js b/components/picker/stories/template.js index 5bce15f0744..0d8bec6d42f 100644 --- a/components/picker/stories/template.js +++ b/components/picker/stories/template.js @@ -1,42 +1,48 @@ import { Template as FieldLabel } from "@spectrum-css/fieldlabel/stories/template.js"; import { Template as HelpText } from "@spectrum-css/helptext/stories/template.js"; import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; +import { Template as InfieldProgressCircle } from "@spectrum-css/infieldprogresscircle/stories/template.js"; import { Template as Popover } from "@spectrum-css/popover/stories/template.js"; import { Container, getRandomId } from "@spectrum-css/preview/decorators"; -import { Template as ProgressCircle } from "@spectrum-css/progresscircle/stories/template.js"; import { Template as Switch } from "@spectrum-css/switch/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; +import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; /** - * Template for Picker only (no popover or help text). + * Template for just the Picker. Does not include sibling Label and Help text. */ export const Picker = ({ rootClass = "spectrum-Picker", + id = getRandomId("picker"), size = "m", - labelPosition, - placeholder = "", - currentValue = "", + labelPosition = "top", + placeholder, + contentIconName, isQuiet = false, isKeyboardFocused = false, - showWorkflowIcon = false, isOpen = false, isInvalid = false, isLoading = false, isDisabled = false, isHovered = false, isActive = false, + ariaLabeledBy, customClasses = [], customStyles = {}, - onclick, } = {}, context = {}) => { + const { updateArgs } = context; + + // Use the chevron from the UI icon set for each size, as defined in the design spec. + let disclosureIconName = "ChevronDown100"; + if (size == "s") { disclosureIconName = "ChevronDown75"; } + else if (size == "l") { disclosureIconName = "ChevronDown200"; } + else if (size == "xl") { disclosureIconName = "ChevronDown300"; } + return html` <button class=${classMap({ @@ -44,7 +50,7 @@ export const Picker = ({ [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined", [`${rootClass}--quiet`]: isQuiet, - [`${rootClass}--sideLabel`]: labelPosition != "top", + [`${rootClass}--sideLabel`]: labelPosition == "side", ["is-invalid"]: isInvalid, ["is-open"]: isOpen, ["is-loading"]: isLoading, @@ -55,27 +61,25 @@ export const Picker = ({ })} ?disabled=${isDisabled} aria-haspopup="listbox" + id=${id} style=${styleMap(customStyles)} type="button" - @click=${onclick} + @click=${function() { + updateArgs({ isOpen: !isOpen }); + }} + aria-labelledby=${ifDefined(ariaLabeledBy)} > - ${when(showWorkflowIcon, () => + ${when(contentIconName, () => Icon({ + iconName: contentIconName, size, - setName: "workflow", - iconName: "Image", - customClasses: [`${rootClass}-icon`], - }, context) - )} - <span - class=${classMap({ - [`${rootClass}-label`]: true, - ["is-placeholder"]: !currentValue, - })} - >${currentValue ? currentValue : placeholder}</span> + customClasses: ["spectrum-Picker-icon"], + }, context)) + } + <span class="${rootClass}-label is-placeholder">${placeholder}</span> ${when(isLoading, () => - ProgressCircle({ - size: "s", + InfieldProgressCircle({ + size: size, isIndeterminate: true, }, context) )} @@ -90,12 +94,7 @@ export const Picker = ({ ${Icon({ size, setName: "ui", - iconName: { - s: "ChevronDown75", - m: "ChevronDown100", - l: "ChevronDown200", - xl: "ChevronDown300", - }[size ?? "m"], + iconName: disclosureIconName, customClasses: [`${rootClass}-menuIcon`], }, context)} </button> @@ -103,92 +102,102 @@ export const Picker = ({ }; /** - * Picker template including adjacent popover and help text. + * Picker template used along with other sibling components, such as Field label and Help text. */ export const Template = ({ - rootClass = "spectrum-Picker", size = "m", label, labelPosition = "top", - placeholder = "", - currentValue = "", - helpText = "", + placeholder, + helpText, isQuiet = false, - isKeyboardFocused = false, - showWorkflowIcon = false, isOpen = false, isInvalid = false, - isLoading = false, isDisabled = false, - isReadOnly = false, - isHovered = false, - isActive = false, + isLoading = false, withSwitch = false, fieldLabelStyle = {}, - customClasses = [], - customStyles = {}, + fieldLabelId = getRandomId("fieldlabel"), + customPopoverStyles = { + // Demonstrate popover at 100% of the width of the Picker. + minInlineSize: "100%", + "--mod-menu-inline-size": "100%", + // Helps ensure that Popover appears below the Picker, with side labels layout. + display: "block", + }, popoverContent = [], - id = getRandomId("picker"), } = {}, context = {}) => { - const { updateArgs } = context; + const pickerMarkup = Picker({ + size, + isQuiet, + isOpen, + isInvalid, + isDisabled, + isLoading, + placeholder, + popoverContent, + labelPosition, + ariaLabeledBy: fieldLabelId, + }, context); - return html` - ${when(label, () => - FieldLabel({ - size, - label, - isDisabled, - customStyles: fieldLabelStyle, - alignment: labelPosition === "side" ? "left" : undefined, - }, context) - )} - ${Popover({ - isOpen: isOpen && !isDisabled, - withTip: false, - position: "bottom-start", - trigger: (passthroughs, context) => Picker({ - ...passthroughs, - rootClass, - size, - placeholder, - currentValue, - isQuiet, - showWorkflowIcon, - isKeyboardFocused, - isOpen, - isInvalid, - isLoading, - isDisabled, - isReadOnly, - isHovered, - isActive, - customClasses, - customStyles, - labelPosition, - id, - onclick: function() { - updateArgs({ isOpen: !isOpen }); - }, - }, context), - content: popoverContent, - }, context)} - ${when(helpText, () => - HelpText({ - text: helpText, - variant: isInvalid ? "negative" : "neutral", - hideIcon: true, - }, context) - )} - ${when(withSwitch, () => - Switch({ - size, - label: "Toggle switch", - customStyles: { - "padding-inline-start": "15px" + const popoverMarkup = popoverContent.length !== 0 ? Popover({ + isOpen: isOpen && !isDisabled && !isLoading, + withTip: false, + position: "bottom-start", + isQuiet, + content: popoverContent, + size, + customStyles: customPopoverStyles, + popoverWrapperStyles: { + "display": "block", + }, + }, context) : ""; + + const helpTextMarkup = helpText ? HelpText({ + size, + text: helpText, + variant: isInvalid ? "negative" : "neutral", + hideIcon: true, + isDisabled, + }, context) : ""; + + const markup = html` + <div + style=${styleMap({ + position: "relative", + display: "inline-block", + ...(labelPosition == "side") && { + display: "flex", + flexWrap: "nowrap", } - }, context) - )} - `; + })} + > + ${when(label, () => + FieldLabel({ + size, + label, + isDisabled, + style: fieldLabelStyle, + alignment: labelPosition == "side" ? "left" : undefined, + id: fieldLabelId, + }, context) + )} + ${labelPosition == "side" + ? html`<div style="display: inline-block; position: relative;">${pickerMarkup} ${popoverMarkup} ${helpTextMarkup}</div>` + : html`${pickerMarkup} ${popoverMarkup} ${helpTextMarkup}` + } + ${when(withSwitch, () => + Switch({ + size, + label: "Toggle switch", + id: fieldLabelId + "-switch", + customStyles: { + "padding-inline-start": "15px" + } + }, context) + )} + </div>`; + return markup; }; /** diff --git a/components/picker/themes/express.css b/components/picker/themes/express.css deleted file mode 100644 index bb521933e6b..00000000000 --- a/components/picker/themes/express.css +++ /dev/null @@ -1,36 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Picker { - --spectrum-picker-background-color-default: var(--spectrum-gray-200); - --spectrum-picker-background-color-default-open: var(--spectrum-gray-300); - --spectrum-picker-background-color-hover: var(--spectrum-gray-300); - --spectrum-picker-background-color-hover-open: var(--spectrum-gray-300); - --spectrum-picker-background-color-active: var(--spectrum-gray-400); - --spectrum-picker-background-color-key-focus: var(--spectrum-gray-300); - - --spectrum-picker-border-color-default: transparent; - --spectrum-picker-border-color-default-open: transparent; - --spectrum-picker-border-color-hover: transparent; - --spectrum-picker-border-color-hover-open: transparent; - --spectrum-picker-border-color-active: transparent; - --spectrum-picker-border-color-key-focus: transparent; - - --spectrum-picker-border-width: 0px; - } -} diff --git a/components/picker/themes/spectrum-two.css b/components/picker/themes/spectrum-two.css deleted file mode 100644 index 3d481512294..00000000000 --- a/components/picker/themes/spectrum-two.css +++ /dev/null @@ -1,33 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Picker { - --spectrum-picker-background-color-default: var(--spectrum-gray-100); - --spectrum-picker-background-color-default-open: var(--spectrum-gray-100); - --spectrum-picker-background-color-hover: var(--spectrum-gray-200); - --spectrum-picker-background-color-hover-open: var(--spectrum-gray-200); - --spectrum-picker-background-color-active: var(--spectrum-gray-200); - --spectrum-picker-background-color-key-focus: var(--spectrum-gray-200); - - --spectrum-picker-border-color-default: var(--spectrum-gray-800); - --spectrum-picker-border-color-default-open: var(--spectrum-gray-500); - --spectrum-picker-border-color-hover: var(--spectrum-gray-600); - --spectrum-picker-border-color-hover-open: var(--spectrum-gray-900); - --spectrum-picker-border-color-active: var(--spectrum-gray-700); - --spectrum-picker-border-color-key-focus: var(--spectrum-gray-900); - --spectrum-picker-border-color-disabled: var(--spectrum-gray-300); - - --spectrum-picker-border-width: var(--spectrum-border-width-100); - } -} diff --git a/components/picker/themes/spectrum.css b/components/picker/themes/spectrum.css deleted file mode 100644 index 0e15e162fe0..00000000000 --- a/components/picker/themes/spectrum.css +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Picker { - --spectrum-picker-background-color-default: var(--spectrum-gray-75); - --spectrum-picker-background-color-default-open: var(--spectrum-gray-200); - --spectrum-picker-background-color-active: var(--spectrum-gray-300); - --spectrum-picker-background-color-hover: var(--spectrum-gray-200); - --spectrum-picker-background-color-hover-open: var(--spectrum-gray-200); - --spectrum-picker-background-color-key-focus: var(--spectrum-gray-200); - - --spectrum-picker-border-color-default: var(--spectrum-gray-500); - --spectrum-picker-border-color-hover-open: var(--spectrum-gray-600); - --spectrum-picker-border-color-key-focus: var(--spectrum-gray-600); - --spectrum-picker-border-color-disabled: transparent; - } -} diff --git a/components/pickerbutton/CHANGELOG.md b/components/pickerbutton/CHANGELOG.md index 630fbcaef1b..2b7a2717582 100644 --- a/components/pickerbutton/CHANGELOG.md +++ b/components/pickerbutton/CHANGELOG.md @@ -1,5 +1,32 @@ # Change Log +## 6.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/popover@8.0.0-next.1 + - @spectrum-css/menu@8.0.0-next.1 + +## 6.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/popover@8.0.0-next.0 + - @spectrum-css/menu@8.0.0-next.0 + ## 6.0.1 ### Patch Changes @@ -156,8 +183,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.5...@spectrum-css/pickerbutton@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.5...@spectrum-css/pickerbutton@5.0.0) ### ✨ Features @@ -165,11 +191,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -177,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.4...@spectrum-css/pickerbutton@4.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.4...@spectrum-css/pickerbutton@4.1.5) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -186,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.3...@spectrum-css/pickerbutton@4.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.3...@spectrum-css/pickerbutton@4.1.4) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -195,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.2...@spectrum-css/pickerbutton@4.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.2...@spectrum-css/pickerbutton@4.1.3) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -204,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -213,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.0...@spectrum-css/pickerbutton@4.1.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.1.0...@spectrum-css/pickerbutton@4.1.1) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -222,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.23...@spectrum-css/pickerbutton@4.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.23...@spectrum-css/pickerbutton@4.1.0) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -231,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.22...@spectrum-css/pickerbutton@4.0.23) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.22...@spectrum-css/pickerbutton@4.0.23) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -240,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.21...@spectrum-css/pickerbutton@4.0.22) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.21...@spectrum-css/pickerbutton@4.0.22) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -249,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.20...@spectrum-css/pickerbutton@4.0.21) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.20...@spectrum-css/pickerbutton@4.0.21) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -258,8 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.18...@spectrum-css/pickerbutton@4.0.20) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.18...@spectrum-css/pickerbutton@4.0.20) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -267,8 +281,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.18...@spectrum-css/pickerbutton@4.0.19) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.18...@spectrum-css/pickerbutton@4.0.19) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -276,8 +289,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.17...@spectrum-css/pickerbutton@4.0.18) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.17...@spectrum-css/pickerbutton@4.0.18) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -285,8 +297,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.16...@spectrum-css/pickerbutton@4.0.17) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.16...@spectrum-css/pickerbutton@4.0.17) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -294,8 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.15...@spectrum-css/pickerbutton@4.0.16) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.15...@spectrum-css/pickerbutton@4.0.16) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -303,8 +313,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.14...@spectrum-css/pickerbutton@4.0.15) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.14...@spectrum-css/pickerbutton@4.0.15) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -312,8 +321,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.13...@spectrum-css/pickerbutton@4.0.14) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.13...@spectrum-css/pickerbutton@4.0.14) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -321,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.12...@spectrum-css/pickerbutton@4.0.13) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.12...@spectrum-css/pickerbutton@4.0.13) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -330,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.11...@spectrum-css/pickerbutton@4.0.12) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.11...@spectrum-css/pickerbutton@4.0.12) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -339,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.10...@spectrum-css/pickerbutton@4.0.11) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.10...@spectrum-css/pickerbutton@4.0.11) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -348,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.9...@spectrum-css/pickerbutton@4.0.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.9...@spectrum-css/pickerbutton@4.0.10) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -357,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.8...@spectrum-css/pickerbutton@4.0.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.8...@spectrum-css/pickerbutton@4.0.9) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -366,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.7...@spectrum-css/pickerbutton@4.0.8) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.7...@spectrum-css/pickerbutton@4.0.8) ### 🔙 Reverts @@ -377,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.6...@spectrum-css/pickerbutton@4.0.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.6...@spectrum-css/pickerbutton@4.0.7) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -386,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.4...@spectrum-css/pickerbutton@4.0.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.4...@spectrum-css/pickerbutton@4.0.6) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -395,8 +395,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.4...@spectrum-css/pickerbutton@4.0.5) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.4...@spectrum-css/pickerbutton@4.0.5) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -404,8 +403,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.3...@spectrum-css/pickerbutton@4.0.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.3...@spectrum-css/pickerbutton@4.0.4) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -413,8 +411,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.2...@spectrum-css/pickerbutton@4.0.3) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.2...@spectrum-css/pickerbutton@4.0.3) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -422,8 +419,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.1...@spectrum-css/pickerbutton@4.0.2) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.1...@spectrum-css/pickerbutton@4.0.2) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -431,8 +427,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.0...@spectrum-css/pickerbutton@4.0.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@4.0.0...@spectrum-css/pickerbutton@4.0.1) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -440,8 +435,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.34...@spectrum-css/pickerbutton@4.0.0) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.34...@spectrum-css/pickerbutton@4.0.0) \*feat(pickerbutton)!: migrate to use spectrum tokens (#1940)([ad6051d](https://github.com/adobe/spectrum-css/commit/ad6051d)), closes[#1940](https://github.com/adobe/spectrum-css/issues/1940) @@ -478,8 +472,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.34 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.33...@spectrum-css/pickerbutton@3.0.34) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.33...@spectrum-css/pickerbutton@3.0.34) ### 🐛 Bug fixes @@ -489,8 +482,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.33 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.32...@spectrum-css/pickerbutton@3.0.33) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.32...@spectrum-css/pickerbutton@3.0.33) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -498,8 +490,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.32 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.31...@spectrum-css/pickerbutton@3.0.32) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.31...@spectrum-css/pickerbutton@3.0.32) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -507,8 +498,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.31 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.30...@spectrum-css/pickerbutton@3.0.31) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.30...@spectrum-css/pickerbutton@3.0.31) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -516,8 +506,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.30 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.29...@spectrum-css/pickerbutton@3.0.30) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.29...@spectrum-css/pickerbutton@3.0.30) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -525,8 +514,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.29 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.28...@spectrum-css/pickerbutton@3.0.29) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.28...@spectrum-css/pickerbutton@3.0.29) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -534,8 +522,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.28 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.27...@spectrum-css/pickerbutton@3.0.28) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.27...@spectrum-css/pickerbutton@3.0.28) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -543,8 +530,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.27 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.26...@spectrum-css/pickerbutton@3.0.27) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.26...@spectrum-css/pickerbutton@3.0.27) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -552,8 +538,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.26 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.25...@spectrum-css/pickerbutton@3.0.26) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.25...@spectrum-css/pickerbutton@3.0.26) ### 🐛 Bug fixes @@ -563,8 +548,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.25 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.24...@spectrum-css/pickerbutton@3.0.25) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.24...@spectrum-css/pickerbutton@3.0.25) **Note:** Version bump only for package @spectrum-css/pickerbutton @@ -572,8 +556,7 @@ The `.spectrum-PickerButton-UIIcon` class no longer matches our naming conventio ## 3.0.24 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.23...@spectrum-css/pickerbutton@3.0.24) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/pickerbutton@3.0.23...@spectrum-css/pickerbutton@3.0.24) **Note:** Version bump only for package @spectrum-css/pickerbutton diff --git a/components/pickerbutton/dist/metadata.json b/components/pickerbutton/dist/metadata.json index 27643d6fd25..c6186980d83 100644 --- a/components/pickerbutton/dist/metadata.json +++ b/components/pickerbutton/dist/metadata.json @@ -107,12 +107,13 @@ "global": [ "--spectrum-animation-duration-100", "--spectrum-body-sans-serif-font-weight", + "--spectrum-border-width-100", "--spectrum-component-height-100", "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", + "--spectrum-corner-radius-100", "--spectrum-corner-radius-200", - "--spectrum-corner-radius-75", "--spectrum-default-font-style", "--spectrum-disabled-background-color", "--spectrum-disabled-content-color", @@ -137,18 +138,6 @@ "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-50" ], - "system-theme": [ - "--system-picker-button-background-color", - "--system-picker-button-background-color-down", - "--system-picker-button-background-color-hover", - "--system-picker-button-background-color-key-focus", - "--system-picker-button-border-color", - "--system-picker-button-border-radius", - "--system-picker-button-border-radius-rounded-sided", - "--system-picker-button-border-radius-sided", - "--system-picker-button-border-width", - "--system-picker-button-padding" - ], "passthroughs": [], "high-contrast": [] } diff --git a/components/pickerbutton/index.css b/components/pickerbutton/index.css index d9404687aca..65e1f840c19 100644 --- a/components/pickerbutton/index.css +++ b/components/pickerbutton/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-PickerButton { + /* Bring back --spectrum-in-field-button-edge-to-fill when S2 tokens available */ + --spectrum-picker-button-padding: 4px; + --spectrum-picker-button-height: var(--spectrum-component-height-100); --spectrum-picker-button-width: var(--spectrum-component-height-100); --spectrum-picker-button-gap: var(--spectrum-text-to-visual-50); @@ -36,7 +37,17 @@ --spectrum-picker-button-font-weight: var(--spectrum-body-sans-serif-font-weight); --spectrum-picker-button-font-size: var(--spectrum-font-size-100); + --spectrum-picker-button-border-color: inherit; + --spectrum-picker-button-border-radius: var(--spectrum-corner-radius-100); + --spectrum-picker-button-border-radius-rounded-sided: 0; + --spectrum-picker-button-border-radius-sided: 0; + --spectrum-picker-button-border-width: var(--spectrum-border-width-100); --spectrum-picker-button-border-radius-rounded: var(--spectrum-corner-radius-200); + + --spectrum-picker-button-background-color: var(--spectrum-gray-50); + --spectrum-picker-button-background-color-hover: var(--spectrum-gray-100); + --spectrum-picker-button-background-color-down: var(--spectrum-gray-200); + --spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-100); --spectrum-picker-button-background-animation-duration: var(--spectrum-animation-duration-100); &:hover { diff --git a/components/pickerbutton/package.json b/components/pickerbutton/package.json index 08c3b20dadf..1070422394d 100644 --- a/components/pickerbutton/package.json +++ b/components/pickerbutton/package.json @@ -25,20 +25,16 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/menu": ">=7", - "@spectrum-css/popover": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", "@spectrum-css/menu": "9.0.1", "@spectrum-css/popover": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/pickerbutton/stories/template.js b/components/pickerbutton/stories/template.js index 3df4f85b636..6adcb7398fd 100644 --- a/components/pickerbutton/stories/template.js +++ b/components/pickerbutton/stories/template.js @@ -8,9 +8,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-PickerButton", diff --git a/components/pickerbutton/themes/express.css b/components/pickerbutton/themes/express.css deleted file mode 100644 index 9dbd1a7fa4a..00000000000 --- a/components/pickerbutton/themes/express.css +++ /dev/null @@ -1,33 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-PickerButton { - --spectrum-picker-button-background-color: var(--spectrum-gray-200); - --spectrum-picker-button-background-color-hover: var(--spectrum-gray-300); - --spectrum-picker-button-background-color-down: var(--spectrum-gray-400); - --spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-300); - - --spectrum-picker-button-border-color: none; - --spectrum-picker-button-border-radius: var(--spectrum-corner-radius-75); - --spectrum-picker-button-border-radius-rounded-sided: var(--spectrum-corner-radius-200); - --spectrum-picker-button-border-radius-sided: var(--spectrum-corner-radius-75); - --spectrum-picker-button-border-width: 0px; - - --spectrum-picker-button-padding: var(--spectrum-in-field-button-edge-to-fill); - } -} diff --git a/components/pickerbutton/themes/spectrum-two.css b/components/pickerbutton/themes/spectrum-two.css deleted file mode 100644 index fb132a104e9..00000000000 --- a/components/pickerbutton/themes/spectrum-two.css +++ /dev/null @@ -1,30 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-PickerButton { - --spectrum-picker-button-background-color: var(--spectrum-gray-50); - --spectrum-picker-button-background-color-hover: var(--spectrum-gray-100); - --spectrum-picker-button-background-color-down: var(--spectrum-gray-200); - --spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-100); - - --spectrum-picker-button-border-color: none; - --spectrum-picker-button-border-radius: var(--spectrum-corner-radius-75); - --spectrum-picker-button-border-radius-rounded-sided: var(--spectrum-corner-radius-200); - --spectrum-picker-button-border-radius-sided: var(--spectrum-corner-radius-75); - --spectrum-picker-button-border-width: 0px; - - /* Bring back --spectrum-in-field-button-edge-to-fill when S2 tokens available */ - --spectrum-picker-button-padding: 4px; - } -} diff --git a/components/pickerbutton/themes/spectrum.css b/components/pickerbutton/themes/spectrum.css deleted file mode 100644 index 85c3b9aaf9e..00000000000 --- a/components/pickerbutton/themes/spectrum.css +++ /dev/null @@ -1,33 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-PickerButton { - --spectrum-picker-button-background-color: var(--spectrum-gray-75); - --spectrum-picker-button-background-color-hover: var(--spectrum-gray-200); - --spectrum-picker-button-background-color-down: var(--spectrum-gray-300); - --spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-200); - - --spectrum-picker-button-border-color: inherit; - --spectrum-picker-button-border-radius: var(--spectrum-corner-radius-100); - --spectrum-picker-button-border-radius-rounded-sided: 0; - --spectrum-picker-button-border-radius-sided: 0; - --spectrum-picker-button-border-width: var(--spectrum-border-width-100); - - --spectrum-picker-button-padding: var(--spectrum-in-field-button-edge-to-fill); - } -} diff --git a/components/popover/CHANGELOG.md b/components/popover/CHANGELOG.md index 227f78dae10..26c7b30d92a 100644 --- a/components/popover/CHANGELOG.md +++ b/components/popover/CHANGELOG.md @@ -1,5 +1,26 @@ # Change Log +## 8.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f)]: + - @spectrum-css/dialog@11.0.0-next.1 + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/menu@8.0.0-next.1 + +## 8.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/dialog@11.0.0-next.0 + - @spectrum-css/alertdialog@2.1.1-next.0 + - @spectrum-css/menu@8.0.0-next.0 + ## 8.0.1 ### Patch Changes @@ -185,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.5...@spectrum-css/popover@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.5...@spectrum-css/popover@7.0.0) ### ✨ Features @@ -194,11 +214,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -206,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.4...@spectrum-css/popover@6.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.4...@spectrum-css/popover@6.2.5) **Note:** Version bump only for package @spectrum-css/popover @@ -215,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.3...@spectrum-css/popover@6.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.3...@spectrum-css/popover@6.2.4) **Note:** Version bump only for package @spectrum-css/popover @@ -224,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.2...@spectrum-css/popover@6.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.2...@spectrum-css/popover@6.2.3) **Note:** Version bump only for package @spectrum-css/popover @@ -233,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.1...@spectrum-css/popover@6.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.2.1...@spectrum-css/popover@6.2.2) **Note:** Version bump only for package @spectrum-css/popover @@ -242,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/popover @@ -251,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.1.0...@spectrum-css/popover@6.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.1.0...@spectrum-css/popover@6.2.0) ### ✨ Features @@ -263,8 +275,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.84...@spectrum-css/popover@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.84...@spectrum-css/popover@6.1.0) ### ✨ Features @@ -274,8 +285,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.84 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.83...@spectrum-css/popover@6.0.84) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.83...@spectrum-css/popover@6.0.84) **Note:** Version bump only for package @spectrum-css/popover @@ -283,8 +293,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.83 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.82...@spectrum-css/popover@6.0.83) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.82...@spectrum-css/popover@6.0.83) ### 🐛 Bug fixes @@ -296,8 +305,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.82 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.80...@spectrum-css/popover@6.0.82) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.80...@spectrum-css/popover@6.0.82) **Note:** Version bump only for package @spectrum-css/popover @@ -305,8 +313,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.81 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.80...@spectrum-css/popover@6.0.81) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.80...@spectrum-css/popover@6.0.81) **Note:** Version bump only for package @spectrum-css/popover @@ -314,8 +321,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.80 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.79...@spectrum-css/popover@6.0.80) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.79...@spectrum-css/popover@6.0.80) **Note:** Version bump only for package @spectrum-css/popover @@ -323,8 +329,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.79 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.78...@spectrum-css/popover@6.0.79) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.78...@spectrum-css/popover@6.0.79) **Note:** Version bump only for package @spectrum-css/popover @@ -332,8 +337,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.78 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.77...@spectrum-css/popover@6.0.78) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.77...@spectrum-css/popover@6.0.78) ### 🐛 Bug fixes @@ -343,8 +347,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.77 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.76...@spectrum-css/popover@6.0.77) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.76...@spectrum-css/popover@6.0.77) **Note:** Version bump only for package @spectrum-css/popover @@ -352,8 +355,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.76 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.75...@spectrum-css/popover@6.0.76) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.75...@spectrum-css/popover@6.0.76) **Note:** Version bump only for package @spectrum-css/popover @@ -361,8 +363,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.75 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.74...@spectrum-css/popover@6.0.75) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.74...@spectrum-css/popover@6.0.75) **Note:** Version bump only for package @spectrum-css/popover @@ -370,8 +371,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.74 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.73...@spectrum-css/popover@6.0.74) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.73...@spectrum-css/popover@6.0.74) **Note:** Version bump only for package @spectrum-css/popover @@ -379,8 +379,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.73 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.72...@spectrum-css/popover@6.0.73) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.72...@spectrum-css/popover@6.0.73) **Note:** Version bump only for package @spectrum-css/popover @@ -388,8 +387,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.72 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.71...@spectrum-css/popover@6.0.72) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.71...@spectrum-css/popover@6.0.72) **Note:** Version bump only for package @spectrum-css/popover @@ -397,8 +395,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.71 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.70...@spectrum-css/popover@6.0.71) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.70...@spectrum-css/popover@6.0.71) **Note:** Version bump only for package @spectrum-css/popover @@ -406,8 +403,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.70 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.69...@spectrum-css/popover@6.0.70) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.69...@spectrum-css/popover@6.0.70) ### 🔙 Reverts @@ -417,8 +413,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.69 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.68...@spectrum-css/popover@6.0.69) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.68...@spectrum-css/popover@6.0.69) **Note:** Version bump only for package @spectrum-css/popover @@ -426,8 +421,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.68 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.66...@spectrum-css/popover@6.0.68) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.66...@spectrum-css/popover@6.0.68) **Note:** Version bump only for package @spectrum-css/popover @@ -435,8 +429,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.67 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.66...@spectrum-css/popover@6.0.67) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.66...@spectrum-css/popover@6.0.67) **Note:** Version bump only for package @spectrum-css/popover @@ -444,8 +437,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.66 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.65...@spectrum-css/popover@6.0.66) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.65...@spectrum-css/popover@6.0.66) **Note:** Version bump only for package @spectrum-css/popover @@ -453,8 +445,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.65 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.64...@spectrum-css/popover@6.0.65) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.64...@spectrum-css/popover@6.0.65) **Note:** Version bump only for package @spectrum-css/popover @@ -462,8 +453,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.64 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.63...@spectrum-css/popover@6.0.64) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.63...@spectrum-css/popover@6.0.64) **Note:** Version bump only for package @spectrum-css/popover @@ -471,8 +461,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.63 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.62...@spectrum-css/popover@6.0.63) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.62...@spectrum-css/popover@6.0.63) **Note:** Version bump only for package @spectrum-css/popover @@ -480,8 +469,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.62 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.61...@spectrum-css/popover@6.0.62) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.61...@spectrum-css/popover@6.0.62) ### 🐛 Bug fixes @@ -491,8 +479,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.61 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.60...@spectrum-css/popover@6.0.61) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.60...@spectrum-css/popover@6.0.61) **Note:** Version bump only for package @spectrum-css/popover @@ -500,8 +487,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.60 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.59...@spectrum-css/popover@6.0.60) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.59...@spectrum-css/popover@6.0.60) **Note:** Version bump only for package @spectrum-css/popover @@ -509,8 +495,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.59 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.58...@spectrum-css/popover@6.0.59) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.58...@spectrum-css/popover@6.0.59) **Note:** Version bump only for package @spectrum-css/popover @@ -518,8 +503,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.58 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.57...@spectrum-css/popover@6.0.58) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.57...@spectrum-css/popover@6.0.58) **Note:** Version bump only for package @spectrum-css/popover @@ -527,8 +511,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.57 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.56...@spectrum-css/popover@6.0.57) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.56...@spectrum-css/popover@6.0.57) **Note:** Version bump only for package @spectrum-css/popover @@ -536,8 +519,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.56 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.55...@spectrum-css/popover@6.0.56) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.55...@spectrum-css/popover@6.0.56) **Note:** Version bump only for package @spectrum-css/popover @@ -545,8 +527,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.55 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.54...@spectrum-css/popover@6.0.55) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.54...@spectrum-css/popover@6.0.55) **Note:** Version bump only for package @spectrum-css/popover @@ -554,8 +535,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.54 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.53...@spectrum-css/popover@6.0.54) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.53...@spectrum-css/popover@6.0.54) **Note:** Version bump only for package @spectrum-css/popover @@ -563,8 +543,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.53 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.52...@spectrum-css/popover@6.0.53) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.52...@spectrum-css/popover@6.0.53) ### 🐛 Bug fixes @@ -574,8 +553,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.52 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.51...@spectrum-css/popover@6.0.52) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.51...@spectrum-css/popover@6.0.52) **Note:** Version bump only for package @spectrum-css/popover @@ -583,8 +561,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 6.0.51 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.50...@spectrum-css/popover@6.0.51) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/popover@6.0.50...@spectrum-css/popover@6.0.51) ### 🐛 Bug fixes diff --git a/components/popover/dist/metadata.json b/components/popover/dist/metadata.json index 25e49b3553f..e9c998d8752 100644 --- a/components/popover/dist/metadata.json +++ b/components/popover/dist/metadata.json @@ -104,51 +104,53 @@ "--mod-popover-background-color", "--mod-popover-border-color", "--mod-popover-border-width", - "--mod-popover-content-area-spacing-vertical", + "--mod-popover-content-area-spacing", "--mod-popover-corner-radius", + "--mod-popover-drop-shadow-blur", + "--mod-popover-drop-shadow-color", + "--mod-popover-drop-shadow-x", + "--mod-popover-drop-shadow-y", "--mod-popover-filter", "--mod-popover-pointer-edge-spacing", "--mod-popover-pointer-height", - "--mod-popover-pointer-width", - "--mod-popover-shadow-blur", - "--mod-popover-shadow-color", - "--mod-popover-shadow-horizontal", - "--mod-popover-shadow-vertical" + "--mod-popover-pointer-width" ], "component": [ "--spectrum-popover-animation-distance", "--spectrum-popover-background-color", - "--spectrum-popover-border-color", + "--spectrum-popover-border-color-rgb", + "--spectrum-popover-border-color-with-transparency", + "--spectrum-popover-border-opacity", + "--spectrum-popover-border-transparency", "--spectrum-popover-border-width", - "--spectrum-popover-content-area-spacing-vertical", + "--spectrum-popover-content-area-spacing", "--spectrum-popover-corner-radius", + "--spectrum-popover-drop-shadow-blur", + "--spectrum-popover-drop-shadow-color", + "--spectrum-popover-drop-shadow-x", + "--spectrum-popover-drop-shadow-y", + "--spectrum-popover-edge-to-content-area", "--spectrum-popover-filter", "--spectrum-popover-pointer-edge-offset", "--spectrum-popover-pointer-edge-spacing", "--spectrum-popover-pointer-height", "--spectrum-popover-pointer-width", - "--spectrum-popover-shadow-blur", - "--spectrum-popover-shadow-color", - "--spectrum-popover-shadow-horizontal", - "--spectrum-popover-shadow-vertical", "--spectrum-popover-tip-height", - "--spectrum-popover-tip-width", - "--spectrum-popover-top-to-content-area" + "--spectrum-popover-tip-width" ], "global": [ "--spectrum-animation-duration-0", "--spectrum-animation-duration-100", "--spectrum-background-layer-2-color", "--spectrum-border-width-100", - "--spectrum-corner-radius-100", - "--spectrum-drop-shadow-blur", - "--spectrum-drop-shadow-color", - "--spectrum-drop-shadow-x", - "--spectrum-drop-shadow-y", - "--spectrum-gray-400", + "--spectrum-corner-radius-large-default", + "--spectrum-drop-shadow-elevated-blur", + "--spectrum-drop-shadow-elevated-color", + "--spectrum-drop-shadow-elevated-x", + "--spectrum-drop-shadow-elevated-y", + "--spectrum-gray-200-rgb", "--spectrum-spacing-100" ], - "system-theme": ["--system-popover-border-width"], "passthroughs": [], "high-contrast": ["--highcontrast-popover-border-color"] } diff --git a/components/popover/index.css b/components/popover/index.css index 9e6c3443904..8f3ed71d6a8 100644 --- a/components/popover/index.css +++ b/components/popover/index.css @@ -11,48 +11,47 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; @import "@spectrum-css/commons/overlay.css"; .spectrum-Popover { - /* animation distance is equal to and responsible for popover offset */ + /* animation distance is equal to and responsible for popover offset ("spacing" tip to source) */ --spectrum-popover-animation-distance: var(--spectrum-spacing-100); --spectrum-popover-background-color: var(--spectrum-background-layer-2-color); - --spectrum-popover-border-color: var(--spectrum-gray-400); + + /* TODO: Cannot use popover-border-color token until the value no longer has the rgba() function alpha/opacity. We should be able to refactor instances of `--spectrum-popover-border-color-rgb` with `--spectrum-popover-border-color` once this is available. */ + /* --spectrum-popover-border-color-default: var(--spectrum-popover-border-color); */ + --spectrum-popover-border-color-rgb: var(--spectrum-gray-200-rgb); + --spectrum-popover-border-transparency: var(--spectrum-popover-border-opacity); + --spectrum-popover-border-color-with-transparency: rgba(var(--spectrum-popover-border-color-rgb), var(--spectrum-popover-border-transparency)); + + --spectrum-popover-border-width: var(--spectrum-border-width-100); /* popover inner padding */ - --spectrum-popover-content-area-spacing-vertical: var(--spectrum-popover-top-to-content-area); + --spectrum-popover-content-area-spacing: var(--spectrum-popover-edge-to-content-area); /* popover drop shadow */ - --spectrum-popover-shadow-horizontal: var(--spectrum-drop-shadow-x); - --spectrum-popover-shadow-vertical: var(--spectrum-drop-shadow-y); - --spectrum-popover-shadow-blur: var(--spectrum-drop-shadow-blur); - --spectrum-popover-shadow-color: var(--spectrum-drop-shadow-color); + --spectrum-popover-drop-shadow-x: var(--spectrum-drop-shadow-elevated-x); + --spectrum-popover-drop-shadow-y: var(--spectrum-drop-shadow-elevated-y); + --spectrum-popover-drop-shadow-blur: var(--spectrum-drop-shadow-elevated-blur); + --spectrum-popover-drop-shadow-color: var(--spectrum-drop-shadow-elevated-color); /* popover corner radius */ - --spectrum-popover-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-popover-corner-radius: var(--spectrum-corner-radius-large-default); /* pointer tip dimensions */ --spectrum-popover-pointer-width: var(--spectrum-popover-tip-width); --spectrum-popover-pointer-height: var(--spectrum-popover-tip-height); /* pointer tip - default spacing to edge - corner radius plus half of tip width to neutralize override */ - --spectrum-popover-pointer-edge-offset: calc(var(--spectrum-corner-radius-100) + (var(--spectrum-popover-tip-width) / 2)); + --spectrum-popover-pointer-edge-offset: calc(var(--spectrum-popover-corner-radius) + (var(--spectrum-popover-tip-width) / 2)); /* pointer tip - spacing to edge will center pointer to source - apply in markup by setting '--spectrum-popover-pointer-edge-offset' value == half of source */ --spectrum-popover-pointer-edge-spacing: calc(var(--spectrum-popover-pointer-edge-offset) - (var(--spectrum-popover-tip-width) / 2)); } -/* windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Popover { - --highcontrast-popover-border-color: CanvasText; - } -} - .spectrum-Popover { - --spectrum-popover-filter: drop-shadow(var(--mod-popover-shadow-horizontal, var(--spectrum-popover-shadow-horizontal)) var(--mod-popover-shadow-vertical, var(--spectrum-popover-shadow-vertical)) var(--mod-popover-shadow-blur, var(--spectrum-popover-shadow-blur)) var(--mod-popover-shadow-color, var(--spectrum-popover-shadow-color))); + --spectrum-popover-filter: drop-shadow(var(--mod-popover-drop-shadow-x, var(--spectrum-popover-drop-shadow-x)) var(--mod-popover-drop-shadow-y, var(--spectrum-popover-drop-shadow-y)) var(--mod-popover-drop-shadow-blur, var(--spectrum-popover-drop-shadow-blur)) var(--mod-popover-drop-shadow-color, var(--spectrum-popover-drop-shadow-color))); @extend %spectrum-overlay; box-sizing: border-box; @@ -60,14 +59,15 @@ outline: none; /* Hide focus outline */ - padding: var(--mod-popover-content-area-spacing-vertical, var(--spectrum-popover-content-area-spacing-vertical)) 0; + padding: var(--mod-popover-content-area-spacing, var(--spectrum-popover-content-area-spacing)); display: inline-flex; flex-direction: column; border-style: solid; border-radius: var(--mod-popover-corner-radius, var(--spectrum-popover-corner-radius)); - border-color: var(--highcontrast-popover-border-color, var(--mod-popover-border-color, var(--spectrum-popover-border-color))); + border-color: var(--highcontrast-popover-border-color, var(--mod-popover-border-color, var(--spectrum-popover-border-color-with-transparency))); + border-width: var(--mod-popover-border-width, var(--spectrum-popover-border-width)); background-color: var(--mod-popover-background-color, var(--spectrum-popover-background-color)); @@ -81,7 +81,7 @@ stroke-linecap: square; stroke-linejoin: miter; fill: var(--mod-popover-background-color, var(--spectrum-popover-background-color)); - stroke: var(--highcontrast-popover-border-color, var(--mod-popover-border-color, var(--spectrum-popover-border-color))); + stroke: var(--highcontrast-popover-border-color, var(--mod-popover-border-color, var(--spectrum-popover-border-color-with-transparency))); stroke-width: var(--mod-popover-border-width, var(--spectrum-popover-border-width)); } } @@ -145,7 +145,7 @@ &.spectrum-Popover--withTip { /* tip size minus where it overlaps with popover border */ /* stylelint-disable-next-line csstools/use-logical -- intentional, right stays on the same side even for RTL */ - margin-left: calc(var(--mod-popover-pointer-width, var(--spectrum-popover-pointer-width)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); + margin-left: calc(var(--mod-popover-pointer-height, var(--spectrum-popover-pointer-height)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); } /* popover animates towards right ⮕ */ @@ -162,7 +162,7 @@ &.spectrum-Popover--withTip { /* tip size minus where it overlaps with popover border */ /* stylelint-disable-next-line csstools/use-logical -- intentional, left stays on the same side even for RTL */ - margin-right: calc(var(--mod-popover-pointer-width, var(--spectrum-popover-pointer-width)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); + margin-right: calc(var(--mod-popover-pointer-height, var(--spectrum-popover-pointer-height)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); } /* popover animates towards left ⬅ */ @@ -178,7 +178,7 @@ /* spacing to include tip in calculation of offset from source */ &.spectrum-Popover--withTip { /* tip size minus where it overlaps with popover border */ - margin-inline-end: calc(var(--mod-popover-pointer-width, var(--spectrum-popover-pointer-width)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); + margin-inline-end: calc(var(--mod-popover-pointer-height, var(--spectrum-popover-pointer-height)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); } /* LTR read, popover animates towards left ⬅ */ @@ -199,7 +199,7 @@ /* spacing to include tip in calculation of offset from source */ &.spectrum-Popover--withTip { /* tip size minus where it overlaps with popover border */ - margin-inline-start: calc(var(--mod-popover-pointer-width, var(--spectrum-popover-pointer-width)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); + margin-inline-start: calc(var(--mod-popover-pointer-height, var(--spectrum-popover-pointer-height)) - var(--mod-popover-border-width, var(--spectrum-popover-border-width))); } /* LTR read, popover animates towards right ⮕ */ @@ -412,3 +412,10 @@ } } } + +/* windows high contrast mode */ +@media (forced-colors: active) { + .spectrum-Popover { + --highcontrast-popover-border-color: CanvasText; + } +} diff --git a/components/popover/package.json b/components/popover/package.json index 6b049a612e2..ed18078eb04 100644 --- a/components/popover/package.json +++ b/components/popover/package.json @@ -27,9 +27,9 @@ "peerDependencies": { "@spectrum-css/alertdialog": ">=2", "@spectrum-css/dialog": ">=10", - "@spectrum-css/divider": ">=3", + "@spectrum-css/divider": ">=5", "@spectrum-css/menu": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/divider": { @@ -41,15 +41,11 @@ }, "devDependencies": { "@spectrum-css/alertdialog": "4.0.1", - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/dialog": "12.0.1", "@spectrum-css/divider": "5.0.1", "@spectrum-css/menu": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/popover/stories/popover.stories.js b/components/popover/stories/popover.stories.js index e5e7f986607..844b18eeeff 100644 --- a/components/popover/stories/popover.stories.js +++ b/components/popover/stories/popover.stories.js @@ -12,11 +12,12 @@ import { FixedWidthSourceTemplate, Template, TipPlacementVariants } from "./temp /** * A popover is used to display transient content (menus, options, additional actions, etc.) and appears when clicking/tapping on a source (tools, buttons, etc.). - * It stands out via its visual style (stroke and drop shadow) and floats on top of the rest of the interface. + * It stands out via its visual style (stroke and/or drop shadow) and floats on top of the rest of the interface. * + * ## Usage notes * - Popover's position and distance to its source should be handled by the implementation. Positioning in Storybook is only for demonstration purposes. - * - When the `.is-open` class is present, popover is offset from the source by the spacing value defined in `--spectrum-popover-animation-distance`. This - * offset is done with a CSS transform and animates with a CSS transition. + * - When the `.is-open` class is present, popover is offset from the source by the spacing value defined in `--spectrum-popover-animation-distance`. This offset is done with a CSS transform and animates with a CSS transition. + * - There may be cases where a popover has another sibling popover. Implementations can add `margin` styles to the sibling popover, set to `--spectrum-popover-animation-distance`, within their popover position calculations. See [the nested popover story](/docs/components-popover--docs#nested) below for an example. */ export default { title: "Popover", @@ -81,8 +82,8 @@ export default { isOpen: true, withTip: false, position: "bottom", - popoverHeight: 142, - popoverWidth: 89, + popoverHeight: 158, + popoverWidth: 105, }, parameters: { layout: "centered", @@ -101,10 +102,10 @@ export default { }; /** - * By default, popovers do not have a tip. Popovers without a tip should be used when the source has a - * visually distinct down state, in order to show the connection between the popover and its source. + * By default, popovers do not have a tip and are positioned at the top. Popovers without a tip should be used when the source has a + * visually distinct [down state](/docs/foundations-down-state--docs), in order to show the connection between the popover and its source. * - * This example uses the [menu](?path=/docs/components-menu--docs) component within the popover, and a button as the source. + * This example uses the [menu](/docs/components-menu--docs) component within the popover, has a position of `bottom`, and uses a button as the source. */ export const Default = PopoverGroup.bind({}); Default.args = { @@ -163,6 +164,10 @@ Nested.args = { (passthroughs, context) => Template({ position: "end-top", isOpen: true, + customStyles: { + // nested popover spacing so that adjacent `.spectrum-Popover` divs don't "touch" + "margin": "var(--spectrum-popover-animation-distance)", + }, trigger: (passthroughs, context) => ActionButton({ label: "More actions", ...passthroughs, @@ -231,7 +236,7 @@ WithTip.parameters = { */ // @see https://opensource.adobe.com/spectrum-web-components/components/popover/#dialog-popovers export const DialogStyle = Template.bind({}); -DialogStyle.storyName = "Dialog style content"; +DialogStyle.storyName = "Dialog-style content"; DialogStyle.tags = ["!dev"]; DialogStyle.args = { withTip: true, diff --git a/components/popover/stories/popover.test.js b/components/popover/stories/popover.test.js index ad179e3b70e..846d9bd15c4 100644 --- a/components/popover/stories/popover.test.js +++ b/components/popover/stories/popover.test.js @@ -30,8 +30,8 @@ export const PopoverGroup = Variants({ "end-top", "end-bottom", ].map((position) => { - const popoverHeight = 142; - const popoverWidth = 89; + const popoverHeight = 158; + const popoverWidth = 105; let wrapperStyles = { "justify-content": "center", diff --git a/components/popover/stories/template.js b/components/popover/stories/template.js index 6d7e55375e2..3ff8ee18be9 100644 --- a/components/popover/stories/template.js +++ b/components/popover/stories/template.js @@ -8,9 +8,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Popover", @@ -24,8 +21,8 @@ export const Template = ({ triggerId = getRandomId("popover-trigger"), customStyles = {}, popoverWrapperStyles = {}, - popoverHeight = 142, - popoverWidth = 89, + popoverHeight = 158, + popoverWidth = 105, popoverAlignment = {}, skipAlignment = false, trigger, diff --git a/components/popover/themes/express.css b/components/popover/themes/express.css deleted file mode 100644 index 32c92bf71b5..00000000000 --- a/components/popover/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Popover { - --spectrum-popover-border-width: 0; - } -} diff --git a/components/popover/themes/spectrum-two.css b/components/popover/themes/spectrum-two.css deleted file mode 100644 index 80c0cdc94c4..00000000000 --- a/components/popover/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Popover { - --spectrum-popover-border-width: var(--spectrum-border-width-100); - } -} diff --git a/components/popover/themes/spectrum.css b/components/popover/themes/spectrum.css deleted file mode 100644 index 3d81bc564b5..00000000000 --- a/components/popover/themes/spectrum.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; diff --git a/components/progressbar/CHANGELOG.md b/components/progressbar/CHANGELOG.md index 8135957f8d3..f92d34caf5d 100644 --- a/components/progressbar/CHANGELOG.md +++ b/components/progressbar/CHANGELOG.md @@ -1,5 +1,32 @@ # Change Log +## 5.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 5.0.0-next.0 + +### Major Changes + +- [#2659](https://github.com/adobe/spectrum-css/pull/2659) [`bd38eaa`](https://github.com/adobe/spectrum-css/commit/bd38eaa8c8597c066f1fe61d70130a7f310bcca4) Thanks [@mdt2](https://github.com/mdt2)! - feat(progressbar): S2 migration + + Progress bar now uses Spectrum 2 tokens and specifications. This migration includes updated colors, font sizes, and spacing. No mods were harmed in the migration of this component (all `--mod` properties remain the same). + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + ## 6.0.1 ### Patch Changes @@ -175,32 +202,25 @@ Output for all component CSS files is now being run through a lightweight optimi - @spectrum-css/fieldlabel@>=8 - @spectrum-css/tokens@>=14 -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - <a name="4.0.0"></a> ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.5...@spectrum-css/progressbar@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.5...@spectrum-css/progressbar@4.0.0) -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss -- Imports added to index.css and themes/express.css +- Imports added to `index.css` and `themes/express.css` <a name="3.1.5"></a> ## 3.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.4...@spectrum-css/progressbar@3.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.4...@spectrum-css/progressbar@3.1.5) **Note:** Version bump only for package @spectrum-css/progressbar @@ -208,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.3...@spectrum-css/progressbar@3.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.3...@spectrum-css/progressbar@3.1.4) **Note:** Version bump only for package @spectrum-css/progressbar @@ -217,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.2...@spectrum-css/progressbar@3.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.2...@spectrum-css/progressbar@3.1.3) **Note:** Version bump only for package @spectrum-css/progressbar @@ -226,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.1...@spectrum-css/progressbar@3.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.1.1...@spectrum-css/progressbar@3.1.2) **Note:** Version bump only for package @spectrum-css/progressbar @@ -235,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/progressbar @@ -244,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.81...@spectrum-css/progressbar@3.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.81...@spectrum-css/progressbar@3.1.0) ### ✨ Features @@ -255,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.81 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.80...@spectrum-css/progressbar@3.0.81) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.80...@spectrum-css/progressbar@3.0.81) **Note:** Version bump only for package @spectrum-css/progressbar @@ -264,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.80 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.79...@spectrum-css/progressbar@3.0.80) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.79...@spectrum-css/progressbar@3.0.80) **Note:** Version bump only for package @spectrum-css/progressbar @@ -273,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.79 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.77...@spectrum-css/progressbar@3.0.79) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.77...@spectrum-css/progressbar@3.0.79) **Note:** Version bump only for package @spectrum-css/progressbar @@ -282,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.78 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.77...@spectrum-css/progressbar@3.0.78) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.77...@spectrum-css/progressbar@3.0.78) **Note:** Version bump only for package @spectrum-css/progressbar @@ -291,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.77 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.76...@spectrum-css/progressbar@3.0.77) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.76...@spectrum-css/progressbar@3.0.77) **Note:** Version bump only for package @spectrum-css/progressbar @@ -300,8 +310,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.76 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.75...@spectrum-css/progressbar@3.0.76) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.75...@spectrum-css/progressbar@3.0.76) **Note:** Version bump only for package @spectrum-css/progressbar @@ -309,8 +318,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.75 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.74...@spectrum-css/progressbar@3.0.75) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.74...@spectrum-css/progressbar@3.0.75) **Note:** Version bump only for package @spectrum-css/progressbar @@ -318,8 +326,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.74 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.73...@spectrum-css/progressbar@3.0.74) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.73...@spectrum-css/progressbar@3.0.74) **Note:** Version bump only for package @spectrum-css/progressbar @@ -327,8 +334,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.73 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.72...@spectrum-css/progressbar@3.0.73) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.72...@spectrum-css/progressbar@3.0.73) **Note:** Version bump only for package @spectrum-css/progressbar @@ -336,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.72 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.71...@spectrum-css/progressbar@3.0.72) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.71...@spectrum-css/progressbar@3.0.72) **Note:** Version bump only for package @spectrum-css/progressbar @@ -345,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.71 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.70...@spectrum-css/progressbar@3.0.71) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.70...@spectrum-css/progressbar@3.0.71) **Note:** Version bump only for package @spectrum-css/progressbar @@ -354,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.70 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.69...@spectrum-css/progressbar@3.0.70) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.69...@spectrum-css/progressbar@3.0.70) **Note:** Version bump only for package @spectrum-css/progressbar @@ -363,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.69 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.68...@spectrum-css/progressbar@3.0.69) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.68...@spectrum-css/progressbar@3.0.69) **Note:** Version bump only for package @spectrum-css/progressbar @@ -372,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.68 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.67...@spectrum-css/progressbar@3.0.68) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.67...@spectrum-css/progressbar@3.0.68) **Note:** Version bump only for package @spectrum-css/progressbar @@ -381,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.67 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.66...@spectrum-css/progressbar@3.0.67) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.66...@spectrum-css/progressbar@3.0.67) **Note:** Version bump only for package @spectrum-css/progressbar @@ -390,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.66 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.65...@spectrum-css/progressbar@3.0.66) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.65...@spectrum-css/progressbar@3.0.66) ### 🐛 Bug fixes @@ -409,8 +408,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.65 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.64...@spectrum-css/progressbar@3.0.65) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.64...@spectrum-css/progressbar@3.0.65) **Note:** Version bump only for package @spectrum-css/progressbar @@ -418,8 +416,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.64 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.62...@spectrum-css/progressbar@3.0.64) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.62...@spectrum-css/progressbar@3.0.64) **Note:** Version bump only for package @spectrum-css/progressbar @@ -427,8 +424,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.63 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.62...@spectrum-css/progressbar@3.0.63) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.62...@spectrum-css/progressbar@3.0.63) **Note:** Version bump only for package @spectrum-css/progressbar @@ -436,8 +432,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.62 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.61...@spectrum-css/progressbar@3.0.62) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.61...@spectrum-css/progressbar@3.0.62) **Note:** Version bump only for package @spectrum-css/progressbar @@ -445,8 +440,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.61 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.60...@spectrum-css/progressbar@3.0.61) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.60...@spectrum-css/progressbar@3.0.61) **Note:** Version bump only for package @spectrum-css/progressbar @@ -454,8 +448,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.60 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.59...@spectrum-css/progressbar@3.0.60) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.59...@spectrum-css/progressbar@3.0.60) **Note:** Version bump only for package @spectrum-css/progressbar @@ -463,8 +456,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.59 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.58...@spectrum-css/progressbar@3.0.59) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.58...@spectrum-css/progressbar@3.0.59) **Note:** Version bump only for package @spectrum-css/progressbar @@ -472,8 +464,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.58 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.57...@spectrum-css/progressbar@3.0.58) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.57...@spectrum-css/progressbar@3.0.58) **Note:** Version bump only for package @spectrum-css/progressbar @@ -481,8 +472,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.57 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.56...@spectrum-css/progressbar@3.0.57) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.56...@spectrum-css/progressbar@3.0.57) **Note:** Version bump only for package @spectrum-css/progressbar @@ -490,8 +480,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.56 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.55...@spectrum-css/progressbar@3.0.56) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.55...@spectrum-css/progressbar@3.0.56) **Note:** Version bump only for package @spectrum-css/progressbar @@ -499,8 +488,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.55 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.54...@spectrum-css/progressbar@3.0.55) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.54...@spectrum-css/progressbar@3.0.55) **Note:** Version bump only for package @spectrum-css/progressbar @@ -508,8 +496,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.54 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.53...@spectrum-css/progressbar@3.0.54) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.53...@spectrum-css/progressbar@3.0.54) **Note:** Version bump only for package @spectrum-css/progressbar @@ -517,8 +504,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.53 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.52...@spectrum-css/progressbar@3.0.53) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.52...@spectrum-css/progressbar@3.0.53) **Note:** Version bump only for package @spectrum-css/progressbar @@ -526,8 +512,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.52 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.51...@spectrum-css/progressbar@3.0.52) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.51...@spectrum-css/progressbar@3.0.52) **Note:** Version bump only for package @spectrum-css/progressbar @@ -535,8 +520,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.51 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.50...@spectrum-css/progressbar@3.0.51) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.50...@spectrum-css/progressbar@3.0.51) **Note:** Version bump only for package @spectrum-css/progressbar @@ -544,8 +528,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.50 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.49...@spectrum-css/progressbar@3.0.50) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.49...@spectrum-css/progressbar@3.0.50) **Note:** Version bump only for package @spectrum-css/progressbar @@ -553,8 +536,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.48...@spectrum-css/progressbar@3.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.48...@spectrum-css/progressbar@3.0.49) **Note:** Version bump only for package @spectrum-css/progressbar @@ -562,8 +544,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.47...@spectrum-css/progressbar@3.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.47...@spectrum-css/progressbar@3.0.48) **Note:** Version bump only for package @spectrum-css/progressbar @@ -571,8 +552,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.46...@spectrum-css/progressbar@3.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.46...@spectrum-css/progressbar@3.0.47) ### 🐛 Bug fixes @@ -582,8 +562,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.45...@spectrum-css/progressbar@3.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.45...@spectrum-css/progressbar@3.0.46) **Note:** Version bump only for package @spectrum-css/progressbar @@ -591,8 +570,7 @@ Meter now uses the class `spectrum-Meter` on the parent `div`. ## 3.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.44...@spectrum-css/progressbar@3.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progressbar@3.0.44...@spectrum-css/progressbar@3.0.45) **Note:** Version bump only for package @spectrum-css/progressbar diff --git a/components/progressbar/dist/metadata.json b/components/progressbar/dist/metadata.json index 3294d6c477a..25c7fd682a6 100644 --- a/components/progressbar/dist/metadata.json +++ b/components/progressbar/dist/metadata.json @@ -2,27 +2,31 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-ProgressBar", + ".spectrum-ProgressBar .spectrum-ProgressBar-fill", + ".spectrum-ProgressBar .spectrum-ProgressBar-label", + ".spectrum-ProgressBar .spectrum-ProgressBar-label:lang(ja)", + ".spectrum-ProgressBar .spectrum-ProgressBar-label:lang(ko)", + ".spectrum-ProgressBar .spectrum-ProgressBar-label:lang(zh)", + ".spectrum-ProgressBar .spectrum-ProgressBar-percentage", + ".spectrum-ProgressBar .spectrum-ProgressBar-percentage:lang(ja)", + ".spectrum-ProgressBar .spectrum-ProgressBar-percentage:lang(ko)", + ".spectrum-ProgressBar .spectrum-ProgressBar-percentage:lang(zh)", + ".spectrum-ProgressBar .spectrum-ProgressBar-track", ".spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill", + ".spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill:dir(rtl)", + ".spectrum-ProgressBar--sideLabel", ".spectrum-ProgressBar--sideLabel .spectrum-ProgressBar-label", ".spectrum-ProgressBar--sideLabel .spectrum-ProgressBar-percentage", ".spectrum-ProgressBar--sideLabel .spectrum-ProgressBar-track", ".spectrum-ProgressBar--sizeL", - ".spectrum-ProgressBar--sizeM", ".spectrum-ProgressBar--sizeS", ".spectrum-ProgressBar--sizeXL", - ".spectrum-ProgressBar-fill", - ".spectrum-ProgressBar-label", - ".spectrum-ProgressBar-percentage", + ".spectrum-ProgressBar--staticWhite .spectrum-ProgressBar-fill", + ".spectrum-ProgressBar--staticWhite .spectrum-ProgressBar-label", + ".spectrum-ProgressBar--staticWhite .spectrum-ProgressBar-percentage", + ".spectrum-ProgressBar--staticWhite .spectrum-ProgressBar-track", ".spectrum-ProgressBar-track", - ".spectrum-ProgressBar.spectrum-ProgressBar--sideLabel", - ".spectrum-ProgressBar.spectrum-ProgressBar--staticWhite", - ".spectrum-ProgressBar:dir(rtl)", - ".spectrum-ProgressBar:lang(ja)", - ".spectrum-ProgressBar:lang(ko)", - ".spectrum-ProgressBar:lang(zh)", - "0%", - "[dir=\"rtl\"] .spectrum-ProgressBar", - "to" + "[dir=\"rtl\"] .spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill" ], "modifiers": [ "--mod-progressbar-animation-duration-indeterminate", @@ -42,18 +46,19 @@ "--mod-progressbar-spacing-top-to-text", "--mod-progressbar-text-color", "--mod-progressbar-thickness", - "--mod-progressbar-track-color" + "--mod-progressbar-track-color", + "--mod-spacing-progressbar-label-to-text" ], "component": [ "--spectrum-progress-bar-maximum-width", "--spectrum-progress-bar-minimum-width", "--spectrum-progress-bar-thickness-extra-large", "--spectrum-progress-bar-thickness-large", + "--spectrum-progress-bar-thickness-medium", "--spectrum-progress-bar-thickness-small", "--spectrum-progressbar-animation-duration-indeterminate", "--spectrum-progressbar-animation-ease-in-out-indeterminate", "--spectrum-progressbar-corner-radius", - "--spectrum-progressbar-dir-indeterminate-multiplier", "--spectrum-progressbar-fill-color", "--spectrum-progressbar-fill-color-white", "--spectrum-progressbar-fill-size-indeterminate", @@ -67,22 +72,16 @@ "--spectrum-progressbar-size-2500", "--spectrum-progressbar-size-2800", "--spectrum-progressbar-size-default", - "--spectrum-progressbar-sized-font-size", - "--spectrum-progressbar-sized-size-default", - "--spectrum-progressbar-sized-spacing-top-to-text", - "--spectrum-progressbar-sized-thickness", "--spectrum-progressbar-spacing-label-to-progressbar", "--spectrum-progressbar-spacing-label-to-text", "--spectrum-progressbar-spacing-top-to-text", - "--spectrum-progressbar-static-white-track-color", "--spectrum-progressbar-text-color", "--spectrum-progressbar-thickness", "--spectrum-progressbar-track-color", - "--spectrum-progressbar-track-color-default", "--spectrum-progressbar-track-color-white" ], "global": [ - "--spectrum-accent-color-900", + "--spectrum-accent-content-color-default", "--spectrum-animation-duration-2000", "--spectrum-animation-ease-in-out", "--spectrum-cjk-line-height-100", @@ -90,25 +89,24 @@ "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", - "--spectrum-corner-radius-100", + "--spectrum-corner-radius-full", "--spectrum-font-size-100", "--spectrum-font-size-200", + "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-200", + "--spectrum-gray-300", "--spectrum-line-height-100", - "--spectrum-neutral-content-color-default", + "--spectrum-neutral-subdued-content-color-default", "--spectrum-spacing-200", "--spectrum-spacing-75", - "--spectrum-transparent-white-400", - "--spectrum-white" + "--spectrum-transparent-white-300", + "--spectrum-transparent-white-700", + "--spectrum-transparent-white-900" ], - "system-theme": [ - "--system-progress-bar-track-color", - "--system-progress-bar-track-color-white" - ], - "passthroughs": ["--mod-fieldlabel-font-size"], + "passthroughs": [], "high-contrast": [ "--highcontrast-progressbar-fill-color", + "--highcontrast-progressbar-fill-color-white", "--highcontrast-progressbar-track-color" ] } diff --git a/components/progressbar/index.css b/components/progressbar/index.css index 648c492df0f..a45e9285b09 100644 --- a/components/progressbar/index.css +++ b/components/progressbar/index.css @@ -11,50 +11,13 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - -.spectrum-ProgressBar, -.spectrum-ProgressBar--sizeM { - --spectrum-progressbar-sized-size-default: var(--spectrum-progressbar-size-2400); - --spectrum-progressbar-sized-font-size: var(--spectrum-font-size-75); - /* @todo should this be --spectrum-progress-bar-thickness-medium? */ - --spectrum-progressbar-sized-thickness: var(--spectrum-progress-bar-thickness-large); - --spectrum-progressbar-sized-spacing-top-to-text: var(--spectrum-component-top-to-text-100); -} - -.spectrum-ProgressBar--sizeS { - --spectrum-progressbar-sized-size-default: var(--spectrum-progressbar-size-2400); - --spectrum-progressbar-sized-font-size: var(--spectrum-font-size-75); - --spectrum-progressbar-sized-thickness: var(--spectrum-progress-bar-thickness-small); - --spectrum-progressbar-sized-spacing-top-to-text: var(--spectrum-component-top-to-text-75); -} - -.spectrum-ProgressBar--sizeL { - --spectrum-progressbar-sized-size-default: var(--spectrum-progressbar-size-2500); - --spectrum-progressbar-sized-font-size: var(--spectrum-font-size-100); - --spectrum-progressbar-sized-thickness: var(--spectrum-progress-bar-thickness-large); - --spectrum-progressbar-sized-spacing-top-to-text: var(--spectrum-component-top-to-text-200); -} - -.spectrum-ProgressBar--sizeXL { - --spectrum-progressbar-sized-size-default: var(--spectrum-progressbar-size-2800); - --spectrum-progressbar-sized-font-size: var(--spectrum-font-size-200); - --spectrum-progressbar-sized-thickness: var(--spectrum-progress-bar-thickness-extra-large); - --spectrum-progressbar-sized-spacing-top-to-text: var(--spectrum-component-top-to-text-300); -} - .spectrum-ProgressBar { - --spectrum-progressbar-size-default: var(--mod-progressbar-size-default, var(--spectrum-progressbar-sized-size-default)); - --spectrum-progressbar-font-size: var(--mod-progressbar-font-size, var(--spectrum-progressbar-sized-font-size)); - --spectrum-progressbar-thickness: var(--mod-progressbar-thickness, var(--spectrum-progressbar-sized-thickness)); - --spectrum-progressbar-spacing-top-to-text: var(--mod-progressbar-spacing-top-to-text, var(--spectrum-progressbar-sized-spacing-top-to-text)); - - --spectrum-progressbar-animation-ease-in-out-indeterminate: var(--mod-progressbar-animation-ease-in-out-indeterminate, var(--spectrum-animation-ease-in-out)); - --spectrum-progressbar-animation-duration-indeterminate: var(--mod-progressbar-animation-duration-indeterminate, var(--spectrum-animation-duration-2000)); - --spectrum-progressbar-corner-radius: var(--spectrum-corner-radius-100); + /* Static tokens */ + --spectrum-progressbar-animation-ease-in-out-indeterminate: var(--spectrum-animation-ease-in-out); + --spectrum-progressbar-animation-duration-indeterminate: var(--spectrum-animation-duration-2000); + --spectrum-progressbar-corner-radius: var(--spectrum-corner-radius-full); - --spectrum-progressbar-fill-size-indeterminate: var(--mod-progressbar-fill-size-indeterminate, 70%); - --spectrum-progressbar-dir-indeterminate-multiplier: 1; + --spectrum-progressbar-fill-size-indeterminate: 70%; /* --spectrum-global-dimension-static-size-2400 */ --spectrum-progressbar-size-2400: 192px; @@ -66,50 +29,56 @@ --spectrum-progressbar-size-2800: 224px; /* Size */ - --spectrum-progressbar-line-height-cjk: var(--mod-progressbar-line-height-cjk, var(--spectrum-cjk-line-height-100)); + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); - --spectrum-progressbar-min-size: var(--mod-progressbar-min-size, var(--spectrum-progress-bar-minimum-width)); - --spectrum-progressbar-max-size: var(--mod-progressbar-max-size, var(--spectrum-progress-bar-maximum-width)); + --spectrum-progressbar-font-size: var(--spectrum-font-size-100); + --spectrum-progressbar-line-height: var(--spectrum-line-height-100); + --spectrum-progressbar-line-height-cjk: var(--spectrum-cjk-line-height-100); - --spectrum-progressbar-line-height: var(--mod-progressbar-line-height, var(--spectrum-line-height-100)); + --spectrum-progressbar-min-size: var(--spectrum-progress-bar-minimum-width); + --spectrum-progressbar-max-size: var(--spectrum-progress-bar-maximum-width); + + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-medium); /* Spacing */ - --spectrum-progressbar-spacing-label-to-progressbar: var(--mod-progressbar-spacing-label-to-progressbar, var(--spectrum-spacing-75)); - --spectrum-progressbar-spacing-label-to-text: var(--mod-progressbar-spacing-label-to-text, var(--spectrum-spacing-200)); + --spectrum-progressbar-spacing-label-to-progressbar: var(--spectrum-spacing-75); + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-progressbar-spacing-label-to-text: var(--spectrum-spacing-200); /* Color */ - --spectrum-progressbar-fill-color: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color, var(--spectrum-accent-color-900))); - --spectrum-progressbar-track-color-default: var(--highcontrast-progressbar-track-color, var(--mod-progressbar-track-color, var(--spectrum-progressbar-track-color))); + --spectrum-progressbar-text-color: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-progressbar-track-color: var(--spectrum-gray-300); + --spectrum-progressbar-fill-color: var(--spectrum-accent-content-color-default); + --spectrum-progressbar-label-and-value-white: var(--spectrum-transparent-white-700); + --spectrum-progressbar-track-color-white: var(--spectrum-transparent-white-300); + --spectrum-progressbar-fill-color-white: var(--spectrum-transparent-white-900); +} - --spectrum-progressbar-text-color: var(--mod-progressbar-text-color, var(--spectrum-neutral-content-color-default)); - --spectrum-progressbar-label-and-value-white: var(--mod-progressbar-label-and-value-white, var(--spectrum-white)); - --spectrum-progressbar-fill-color-white: var(--mod-progressbar-fill-color-white, var(--spectrum-white)); - --spectrum-progressbar-static-white-track-color: var(--spectrum-progressbar-track-color-white); +.spectrum-ProgressBar--sizeS { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); - /* @passthrough */ - --mod-fieldlabel-font-size: var(--spectrum-progressbar-font-size); + --spectrum-progressbar-font-size: var(--spectrum-font-size-75); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-small); - &:dir(rtl) { - --spectrum-progressbar-dir-indeterminate-multiplier: -1; - } + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); +} - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --mod-progressbar-line-height: var(--spectrum-progressbar-line-height-cjk); - } +.spectrum-ProgressBar--sizeL { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2500); + + --spectrum-progressbar-font-size: var(--spectrum-font-size-200); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-large); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); } -@media (forced-colors: active) { - .spectrum-ProgressBar { - --highcontrast-progressbar-fill-color: ButtonText; - --highcontrast-progressbar-track-color: ButtonFace; - } +.spectrum-ProgressBar--sizeXL { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2800); - .spectrum-ProgressBar-track { - forced-color-adjust: none; - border: 1px solid ButtonText; - } + --spectrum-progressbar-font-size: var(--spectrum-font-size-300); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-extra-large); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-300); } .spectrum-ProgressBar { @@ -118,99 +87,151 @@ flex-flow: row wrap; justify-content: space-between; align-items: center; + font-size: var(--mod-progressbar-font-size, var(--spectrum-progressbar-font-size)); vertical-align: top; + word-break: break-word; - inline-size: var(--spectrum-progressbar-size-default); - max-inline-size: var(--spectrum-progressbar-max-size); - min-inline-size: var(--spectrum-progressbar-min-size); + inline-size: var(--mod-progressbar-size-default, var(--spectrum-progressbar-size-default)); + max-inline-size: var(--mod-progressbar-max-size, var(--spectrum-progressbar-max-size)); + min-inline-size: var(--mod-progressbar-min-size, var(--spectrum-progressbar-min-size)); - &.spectrum-ProgressBar--sideLabel { - flex-flow: row; - justify-content: space-between; + /* Label and Percentage */ + .spectrum-ProgressBar-label, + .spectrum-ProgressBar-percentage { + text-align: start; + margin-block-start: var(--mod-progressbar-spacing-top-to-text, var(--spectrum-progressbar-spacing-top-to-text)); + margin-block-end: var(--mod-progressbar-spacing-label-to-progressbar, var(--spectrum-progressbar-spacing-label-to-progressbar)); + + line-height: var(--mod-progressbar-line-height, var(--spectrum-progressbar-line-height)); + + &:lang(ja), + &:lang(zh), + &:lang(ko) { + line-height: var(--mod-progressbar-line-height-cjk, var(--spectrum-progressbar-line-height-cjk)); + } + + color: var(--mod-progressbar-text-color, var(--spectrum-progressbar-text-color)); } - &.spectrum-ProgressBar--staticWhite { - --mod-progressbar-fill-color: var(--spectrum-progressbar-fill-color-white); - --mod-progressbar-text-color: var(--spectrum-progressbar-label-and-value-white); - --mod-progressbar-track-color: var(--spectrum-progressbar-static-white-track-color); + /* Label */ + .spectrum-ProgressBar-label { + flex: 1 1 0%; } -} -/* Label and Percentage */ -.spectrum-ProgressBar-label, -.spectrum-ProgressBar-percentage { - text-align: start; - margin-block-start: var(--spectrum-progressbar-spacing-top-to-text); - margin-block-end: var(--spectrum-progressbar-spacing-label-to-progressbar); + /* Percentage */ + .spectrum-ProgressBar-percentage { + align-self: flex-start; + margin-inline-start: var(--mod-progressbar-spacing-label-to-text, var(--spectrum-progressbar-spacing-label-to-text)); + word-break: normal; + } + + /* Track */ + .spectrum-ProgressBar-track { + /* Visually apply border radius to child elements */ + overflow: hidden; + inline-size: 100%; + block-size: var(--mod-progressbar-thickness, var(--spectrum-progressbar-thickness)); + border-radius: var(--spectrum-progressbar-corner-radius); + + background: var(--highcontrast-progressbar-track-color, var(--mod-progressbar-track-color, var(--spectrum-progressbar-track-color))); + } - line-height: var(--spectrum-progressbar-line-height); - color: var(--spectrum-progressbar-text-color); + .spectrum-ProgressBar-fill { + border: none; + block-size: var(--mod-progressbar-thickness, var(--spectrum-progressbar-thickness)); + transition: width 1s; + background: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color, var(--spectrum-progressbar-fill-color))); + } +} + +.spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill { + inline-size: var(--mod-progressbar-fill-size-indeterminate, var(--spectrum-progressbar-fill-size-indeterminate)); + position: relative; + animation-timing-function: var(--mod-progressbar-animation-ease-in-out-indeterminate, var(--spectrum-progressbar-animation-ease-in-out-indeterminate)); + will-change: transform; } -/* Label */ -.spectrum-ProgressBar-label { - flex: 1 1 0%; +/* Variants */ +/* Side Label */ +.spectrum-ProgressBar--sideLabel { + display: inline-flex; + flex-flow: row; + justify-content: space-between; + word-break: normal; + + .spectrum-ProgressBar-track { + flex: 1 1 var(--mod-progressbar-size-default, var(--spectrum-progressbar-size-default)); + } - .spectrum-ProgressBar--sideLabel & { + .spectrum-ProgressBar-label { flex-grow: 0; - margin-inline-end: var(--spectrum-progressbar-spacing-label-to-text); + margin-inline-end: var(--mod-progressbar-spacing-label-to-text, var(--spectrum-progressbar-spacing-label-to-text)); margin-block-end: 0; + margin-block-start: 0; } -} - -/* Percentage */ -.spectrum-ProgressBar-percentage { - align-self: flex-start; - margin-inline-start: var(--spectrum-progressbar-spacing-label-to-text); - .spectrum-ProgressBar--sideLabel & { + .spectrum-ProgressBar-percentage { order: 3; text-align: end; + margin-inline-start: var(--mod-spacing-progressbar-label-to-text, var(--spectrum-progressbar-spacing-label-to-text)); margin-block-end: 0; + margin-block-start: 0; } } -/* Track */ -.spectrum-ProgressBar-track { - /* Visually apply border radius to child elements */ - overflow: hidden; - inline-size: 100%; - block-size: var(--spectrum-progressbar-thickness); - border-radius: var(--spectrum-progressbar-corner-radius); +/* Static White */ +.spectrum-ProgressBar--staticWhite { + .spectrum-ProgressBar-fill { + color: var(--mod-progressbar-label-and-value-white, var(--spectrum-progressbar-label-and-value-white)); + background: var(--highcontrast-progressbar-fill-color-white, var(--mod-progressbar-fill-color-white, var(--spectrum-progressbar-fill-color-white))); + } - background: var(--spectrum-progressbar-track-color-default); + .spectrum-ProgressBar-label, + .spectrum-ProgressBar-percentage { + color: var(--mod-progressbar-label-and-value-white, var(--spectrum-progressbar-label-and-value-white)); + } - .spectrum-ProgressBar--sideLabel & { - flex: 1 1 var(--spectrum-progressbar-size-default); + .spectrum-ProgressBar-track { + background: var(--spectrum-progressbar-track-color-white); } } -.spectrum-ProgressBar-fill { - block-size: var(--spectrum-progressbar-thickness); - - border: none; - background: var(--spectrum-progressbar-fill-color); +/* Animations */ +.spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill { + animation: indeterminate-loop-ltr var(--mod-progressbar-animation-duration-indeterminate, var(--spectrum-progressbar-animation-duration-indeterminate)) infinite; +} - transition: width 1s; +.spectrum-ProgressBar--indeterminate .spectrum-ProgressBar-fill:dir(rtl) { + animation: indeterminate-loop-rtl var(--mod-progressbar-animation-duration-indeterminate, var(--spectrum-progressbar-animation-duration-indeterminate)) infinite; +} - .spectrum-ProgressBar--indeterminate & { - position: relative; - inline-size: var(--spectrum-progressbar-fill-size-indeterminate); +@keyframes indeterminate-loop-ltr { + from { + transform: translate(calc(-1 * var(--mod-progressbar-fill-size-indeterminate, var(--spectrum-progressbar-fill-size-indeterminate)))); + } - will-change: transform; - animation-name: indeterminate-loop; - animation-timing-function: var(--spectrum-progressbar-animation-ease-in-out-indeterminate); - animation-duration: var(--spectrum-progressbar-animation-duration-indeterminate); - animation-iteration-count: infinite; + to { + transform: translate(var(--mod-progressbar-size-default, var(--spectrum-progressbar-size-default))); } } -@keyframes indeterminate-loop { +@keyframes indeterminate-loop-rtl { from { - transform: translate(calc(-1 * var(--spectrum-progressbar-dir-indeterminate-multiplier) * var(--spectrum-progressbar-fill-size-indeterminate))); + transform: translate(var(--mod-progressbar-size-default, var(--spectrum-progressbar-fill-size-indeterminate))); } to { - transform: translate(calc(var(--spectrum-progressbar-dir-indeterminate-multiplier) * var(--spectrum-progressbar-size-default))); + transform: translate(calc(-1 * var(--mod-progressbar-size-default, var(--spectrum-progressbar-size-default)))); + } +} + +@media (forced-colors: active) { + .spectrum-ProgressBar-track { + --highcontrast-progressbar-fill-color: ButtonText; + --highcontrast-progressbar-track-color: ButtonFace; + --highcontrast-progressbar-fill-color-white: ButtonText; + + forced-color-adjust: none; + border: 1px solid ButtonText; } } diff --git a/components/progressbar/package.json b/components/progressbar/package.json index 3b66efd230f..42cb789776d 100644 --- a/components/progressbar/package.json +++ b/components/progressbar/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/fieldlabel": ">=8", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/fieldlabel": ">=10", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/fieldlabel": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/fieldlabel": "10.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/progressbar/stories/progressbar.stories.js b/components/progressbar/stories/progressbar.stories.js index 4468a701277..3a6a620c07a 100644 --- a/components/progressbar/stories/progressbar.stories.js +++ b/components/progressbar/stories/progressbar.stories.js @@ -21,12 +21,12 @@ export default { customWidth: { name: "Custom width", defaultValue: 192, - description: "Adjust the width of the component between 48px and 768px. 192px is the default width on desktop, while 240px is the default on mobile.", + description: "A number to adjust the width of the component. Spectrum 2 specifications limit the component width to be between 48px and 768px.", type: { name: "number" }, table: { type: { summary: "number" }, category: "Component", - defaultValue: { summary: 192 }, + defaultValue: { summary: 200 }, }, control: { type: "range", min: 48, max: 768,}, }, @@ -87,7 +87,7 @@ export default { label: "Loading", labelPosition: "top", value: 0, - customWidth: 192, + customWidth: 200, isIndeterminate: false, showValueLabel: true, }, @@ -99,6 +99,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** diff --git a/components/progressbar/stories/template.js b/components/progressbar/stories/template.js index c358879721c..30c9cfeb827 100644 --- a/components/progressbar/stories/template.js +++ b/components/progressbar/stories/template.js @@ -7,9 +7,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { capitalize } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-ProgressBar", diff --git a/components/progressbar/themes/express.css b/components/progressbar/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/progressbar/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/progressbar/themes/spectrum-two.css b/components/progressbar/themes/spectrum-two.css deleted file mode 100644 index 3b705ef64c4..00000000000 --- a/components/progressbar/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ProgressBar { - --spectrum-progressbar-track-color: var(--spectrum-gray-200); - --spectrum-progressbar-track-color-white: var(--spectrum-transparent-white-400); - } -} diff --git a/components/progressbar/themes/spectrum.css b/components/progressbar/themes/spectrum.css deleted file mode 100644 index 3760cc4cfc4..00000000000 --- a/components/progressbar/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ProgressBar { - --spectrum-progressbar-track-color: var(--spectrum-gray-300); - --spectrum-progressbar-track-color-white: var(--spectrum-transparent-white-300); - } -} diff --git a/components/progresscircle/CHANGELOG.md b/components/progresscircle/CHANGELOG.md index 3c38be2aff7..634f80b46ad 100644 --- a/components/progresscircle/CHANGELOG.md +++ b/components/progresscircle/CHANGELOG.md @@ -128,8 +128,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.3...@spectrum-css/progresscircle@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.3...@spectrum-css/progresscircle@3.0.0) ### 🐛 Bug fixes @@ -149,8 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.3 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.2...@spectrum-css/progresscircle@2.2.3) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.2...@spectrum-css/progresscircle@2.2.3) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -158,8 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.2 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.1...@spectrum-css/progresscircle@2.2.2) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.1...@spectrum-css/progresscircle@2.2.2) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -167,8 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.1 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.0...@spectrum-css/progresscircle@2.2.1) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.2.0...@spectrum-css/progresscircle@2.2.1) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -176,8 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.0 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.1.1...@spectrum-css/progresscircle@2.2.0) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.1.1...@spectrum-css/progresscircle@2.2.0) ### ✨ Features @@ -187,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/progresscircle @@ -196,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.75...@spectrum-css/progresscircle@2.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.75...@spectrum-css/progresscircle@2.1.0) ### ✨ Features @@ -207,8 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.75 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.74...@spectrum-css/progresscircle@2.0.75) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.74...@spectrum-css/progresscircle@2.0.75) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -216,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.74 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.73...@spectrum-css/progresscircle@2.0.74) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.73...@spectrum-css/progresscircle@2.0.74) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -225,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.73 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.71...@spectrum-css/progresscircle@2.0.73) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.71...@spectrum-css/progresscircle@2.0.73) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -234,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.72 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.71...@spectrum-css/progresscircle@2.0.72) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.71...@spectrum-css/progresscircle@2.0.72) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -243,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.71 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.70...@spectrum-css/progresscircle@2.0.71) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.70...@spectrum-css/progresscircle@2.0.71) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -252,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.70 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.69...@spectrum-css/progresscircle@2.0.70) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.69...@spectrum-css/progresscircle@2.0.70) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -261,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.69 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.68...@spectrum-css/progresscircle@2.0.69) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.68...@spectrum-css/progresscircle@2.0.69) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -270,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.68 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.67...@spectrum-css/progresscircle@2.0.68) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.67...@spectrum-css/progresscircle@2.0.68) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -279,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.67 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.66...@spectrum-css/progresscircle@2.0.67) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.66...@spectrum-css/progresscircle@2.0.67) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -288,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.66 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.65...@spectrum-css/progresscircle@2.0.66) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.65...@spectrum-css/progresscircle@2.0.66) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -297,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.65 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.64...@spectrum-css/progresscircle@2.0.65) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.64...@spectrum-css/progresscircle@2.0.65) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -306,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.64 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.63...@spectrum-css/progresscircle@2.0.64) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.63...@spectrum-css/progresscircle@2.0.64) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -315,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.63 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.62...@spectrum-css/progresscircle@2.0.63) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.62...@spectrum-css/progresscircle@2.0.63) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -324,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.62 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.61...@spectrum-css/progresscircle@2.0.62) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.61...@spectrum-css/progresscircle@2.0.62) ### 🔙 Reverts @@ -335,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.61 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.60...@spectrum-css/progresscircle@2.0.61) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.60...@spectrum-css/progresscircle@2.0.61) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -344,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.60 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.58...@spectrum-css/progresscircle@2.0.60) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.58...@spectrum-css/progresscircle@2.0.60) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -353,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.59 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.58...@spectrum-css/progresscircle@2.0.59) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.58...@spectrum-css/progresscircle@2.0.59) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -362,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.58 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.57...@spectrum-css/progresscircle@2.0.58) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.57...@spectrum-css/progresscircle@2.0.58) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -371,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.57 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.56...@spectrum-css/progresscircle@2.0.57) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.56...@spectrum-css/progresscircle@2.0.57) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -380,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.56 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.55...@spectrum-css/progresscircle@2.0.56) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.55...@spectrum-css/progresscircle@2.0.56) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -389,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.55 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.54...@spectrum-css/progresscircle@2.0.55) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.54...@spectrum-css/progresscircle@2.0.55) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -398,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.54 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.53...@spectrum-css/progresscircle@2.0.54) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.53...@spectrum-css/progresscircle@2.0.54) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -407,8 +378,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.53 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.52...@spectrum-css/progresscircle@2.0.53) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.52...@spectrum-css/progresscircle@2.0.53) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -416,8 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.52 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.51...@spectrum-css/progresscircle@2.0.52) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.51...@spectrum-css/progresscircle@2.0.52) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -425,8 +394,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.51 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.50...@spectrum-css/progresscircle@2.0.51) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.50...@spectrum-css/progresscircle@2.0.51) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -434,8 +402,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.50 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.49...@spectrum-css/progresscircle@2.0.50) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.49...@spectrum-css/progresscircle@2.0.50) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -443,8 +410,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.49 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.48...@spectrum-css/progresscircle@2.0.49) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.48...@spectrum-css/progresscircle@2.0.49) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -452,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.48 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.47...@spectrum-css/progresscircle@2.0.48) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.47...@spectrum-css/progresscircle@2.0.48) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -461,8 +426,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.47 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.46...@spectrum-css/progresscircle@2.0.47) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.46...@spectrum-css/progresscircle@2.0.47) ### 🐛 Bug fixes @@ -472,8 +436,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.46 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.45...@spectrum-css/progresscircle@2.0.46) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.45...@spectrum-css/progresscircle@2.0.46) **Note:** Version bump only for package @spectrum-css/progresscircle @@ -481,8 +444,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.45 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.44...@spectrum-css/progresscircle@2.0.45) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/progresscircle@2.0.44...@spectrum-css/progresscircle@2.0.45) **Note:** Version bump only for package @spectrum-css/progresscircle diff --git a/components/progresscircle/animation.css b/components/progresscircle/animation.css index 176d4da4c17..433f642948b 100644 --- a/components/progresscircle/animation.css +++ b/components/progresscircle/animation.css @@ -11,500 +11,23 @@ * governing permissions and limitations under the License. */ -.spectrum-ProgressCircle--indeterminate-fill-submask-2 { - animation: 1s infinite linear spectrum-fill-mask-2; -} - -@keyframes spectrum-fill-mask-1 { +@keyframes spectrum-fills-rotate { 0% { - transform: rotate(90deg); - } - - 1.69% { - transform: rotate(72.3deg); - } - - 3.39% { - transform: rotate(55.5deg); - } - - 5.08% { - transform: rotate(40.3deg); - } - - 6.78% { - transform: rotate(25deg); - } - - 8.47% { - transform: rotate(10.6deg); - } - - 10.17% { - transform: rotate(0deg); - } - - 11.86% { - transform: rotate(0deg); - } - - 13.56% { - transform: rotate(0deg); - } - - 15.25% { - transform: rotate(0deg); - } - - 16.95% { - transform: rotate(0deg); - } - - 18.64% { - transform: rotate(0deg); - } - - 20.34% { - transform: rotate(0deg); - } - - 22.03% { - transform: rotate(0deg); - } - - 23.73% { - transform: rotate(0deg); - } - - 25.42% { - transform: rotate(0deg); - } - - 27.12% { - transform: rotate(0deg); - } - - 28.81% { - transform: rotate(0deg); - } - - 30.51% { - transform: rotate(0deg); - } - - 32.2% { - transform: rotate(0deg); - } - - 33.9% { - transform: rotate(0deg); - } - - 35.59% { - transform: rotate(0deg); - } - - 37.29% { - transform: rotate(0deg); - } - - 38.98% { - transform: rotate(0deg); - } - - 40.68% { - transform: rotate(0deg); - } - - 42.37% { - transform: rotate(5.3deg); - } - - 44.07% { - transform: rotate(13.4deg); - } - - 45.76% { - transform: rotate(20.6deg); - } - - 47.46% { - transform: rotate(29deg); - } - - 49.15% { - transform: rotate(36.5deg); - } - - 50.85% { - transform: rotate(42.6deg); - } - - 52.54% { - transform: rotate(48.8deg); - } - - 54.24% { - transform: rotate(54.2deg); - } - - 55.93% { - transform: rotate(59.4deg); - } - - 57.63% { - transform: rotate(63.2deg); - } - - 59.32% { - transform: rotate(67.2deg); - } - - 61.02% { - transform: rotate(70.8deg); - } - - 62.71% { - transform: rotate(73.8deg); - } - - 64.41% { - transform: rotate(76.2deg); - } - - 66.1% { - transform: rotate(78.7deg); - } - - 67.8% { - transform: rotate(80.6deg); - } - - 69.49% { - transform: rotate(82.6deg); - } - - 71.19% { - transform: rotate(83.7deg); - } - - 72.88% { - transform: rotate(85deg); - } - - 74.58% { - transform: rotate(86.3deg); - } - - 76.27% { - transform: rotate(87deg); - } - - 77.97% { - transform: rotate(87.7deg); - } - - 79.66% { - transform: rotate(88.3deg); - } - - 81.36% { - transform: rotate(88.6deg); - } - - 83.05% { - transform: rotate(89.2deg); - } - - 84.75% { - transform: rotate(89.2deg); - } - - 86.44% { - transform: rotate(89.5deg); - } - - 88.14% { - transform: rotate(89.9deg); - } - - 89.83% { - transform: rotate(89.7deg); - } - - 91.53% { - transform: rotate(90.1deg); - } - - 93.22% { - transform: rotate(90.2deg); - } - - 94.92% { - transform: rotate(90.1deg); - } - - 96.61% { - transform: rotate(90deg); - } - - 98.31% { - transform: rotate(89.8deg); + transform: rotate(-90deg); } 100% { - transform: rotate(90deg); + transform: rotate(270deg); } } -@keyframes spectrum-fill-mask-2 { - 0% { - transform: rotate(180deg); - } - - 1.69% { - transform: rotate(180deg); - } - - 3.39% { - transform: rotate(180deg); - } - - 5.08% { - transform: rotate(180deg); - } - - 6.78% { - transform: rotate(180deg); - } - - 8.47% { - transform: rotate(180deg); - } - - 10.17% { - transform: rotate(179.2deg); - } - - 11.86% { - transform: rotate(164deg); - } - - 13.56% { - transform: rotate(151.8deg); - } - - 15.25% { - transform: rotate(140.8deg); - } - - 16.95% { - transform: rotate(130.3deg); - } - - 18.64% { - transform: rotate(120.4deg); - } - - 20.34% { - transform: rotate(110.8deg); - } - - 22.03% { - transform: rotate(101.6deg); - } - - 23.73% { - transform: rotate(93.5deg); - } - - 25.42% { - transform: rotate(85.4deg); - } - - 27.12% { - transform: rotate(78.1deg); - } - - 28.81% { - transform: rotate(71.2deg); - } - - 30.51% { - transform: rotate(89.1deg); - } - - 32.2% { - transform: rotate(105.5deg); - } - - 33.9% { - transform: rotate(121.3deg); - } - - 35.59% { - transform: rotate(135.5deg); - } - - 37.29% { - transform: rotate(148.4deg); - } - - 38.98% { - transform: rotate(161deg); - } - - 40.68% { - transform: rotate(173.5deg); - } - - 42.37% { - transform: rotate(180deg); - } - - 44.07% { - transform: rotate(180deg); - } - - 45.76% { - transform: rotate(180deg); - } - - 47.46% { - transform: rotate(180deg); - } - - 49.15% { - transform: rotate(180deg); - } - - 50.85% { - transform: rotate(180deg); - } - - 52.54% { - transform: rotate(180deg); - } - - 54.24% { - transform: rotate(180deg); - } - - 55.93% { - transform: rotate(180deg); - } - - 57.63% { - transform: rotate(180deg); - } - - 59.32% { - transform: rotate(180deg); - } - - 61.02% { - transform: rotate(180deg); - } - - 62.71% { - transform: rotate(180deg); - } - - 64.41% { - transform: rotate(180deg); - } - - 66.1% { - transform: rotate(180deg); - } - - 67.8% { - transform: rotate(180deg); - } - - 69.49% { - transform: rotate(180deg); - } - - 71.19% { - transform: rotate(180deg); - } - - 72.88% { - transform: rotate(180deg); - } - - 74.58% { - transform: rotate(180deg); - } - - 76.27% { - transform: rotate(180deg); - } - - 77.97% { - transform: rotate(180deg); - } - - 79.66% { - transform: rotate(180deg); - } - - 81.36% { - transform: rotate(180deg); - } - - 83.05% { - transform: rotate(180deg); - } - - 84.75% { - transform: rotate(180deg); - } - - 86.44% { - transform: rotate(180deg); - } - - 88.14% { - transform: rotate(180deg); - } - - 89.83% { - transform: rotate(180deg); - } - - 91.53% { - transform: rotate(180deg); - } - - 93.22% { - transform: rotate(180deg); - } - - 94.92% { - transform: rotate(180deg); - } - - 96.61% { - transform: rotate(180deg); - } - - 98.31% { - transform: rotate(180deg); - } - +@keyframes spectrum-dashoffset-animation { + 0%, 100% { - transform: rotate(180deg); + stroke-dashoffset: 75px; } -} -@keyframes spectrum-fills-rotate { - 0% { - transform: rotate(-90deg); - } - - 100% { - transform: rotate(270deg); + 30% { + stroke-dashoffset: 20px; } } diff --git a/components/progresscircle/dist/metadata.json b/components/progresscircle/dist/metadata.json index 82493f14621..a252d2638db 100644 --- a/components/progresscircle/dist/metadata.json +++ b/components/progresscircle/dist/metadata.json @@ -2,96 +2,25 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-ProgressCircle", - ".spectrum-ProgressCircle--indeterminate .spectrum-ProgressCircle-fillSubMask1", - ".spectrum-ProgressCircle--indeterminate .spectrum-ProgressCircle-fillSubMask2", - ".spectrum-ProgressCircle--indeterminate .spectrum-ProgressCircle-fills", - ".spectrum-ProgressCircle--indeterminate-fill-submask-2", + ".spectrum-ProgressCircle--indeterminate .spectrum-ProgressCircle-fill", + ".spectrum-ProgressCircle--sizeL", + ".spectrum-ProgressCircle--sizeS", ".spectrum-ProgressCircle-fill", - ".spectrum-ProgressCircle-fillMask1", - ".spectrum-ProgressCircle-fillMask2", - ".spectrum-ProgressCircle-fillSubMask1", - ".spectrum-ProgressCircle-fillSubMask2", - ".spectrum-ProgressCircle-fills", ".spectrum-ProgressCircle-track", - ".spectrum-ProgressCircle.spectrum-ProgressCircle--large", - ".spectrum-ProgressCircle.spectrum-ProgressCircle--medium", - ".spectrum-ProgressCircle.spectrum-ProgressCircle--small", - ".spectrum-ProgressCircle.spectrum-ProgressCircle--staticWhite .spectrum-ProgressCircle-fill", - ".spectrum-ProgressCircle.spectrum-ProgressCircle--staticWhite .spectrum-ProgressCircle-track", - "0%", - "1.69%", - "10.17%", - "11.86%", - "13.56%", - "15.25%", - "16.95%", - "18.64%", - "20.34%", - "22.03%", - "23.73%", - "25.42%", - "27.12%", - "28.81%", - "3.39%", - "30.51%", - "32.2%", - "33.9%", - "35.59%", - "37.29%", - "38.98%", - "40.68%", - "42.37%", - "44.07%", - "45.76%", - "47.46%", - "49.15%", - "5.08%", - "50.85%", - "52.54%", - "54.24%", - "55.93%", - "57.63%", - "59.32%", - "6.78%", - "61.02%", - "62.71%", - "64.41%", - "66.1%", - "67.8%", - "69.49%", - "71.19%", - "72.88%", - "74.58%", - "76.27%", - "77.97%", - "79.66%", - "8.47%", - "81.36%", - "83.05%", - "84.75%", - "86.44%", - "88.14%", - "89.83%", - "91.53%", - "93.22%", - "94.92%", - "96.61%", - "98.31%", - "to" + ".spectrum-ProgressCircle.spectrum-ProgressCircle--staticBlack", + ".spectrum-ProgressCircle.spectrum-ProgressCircle--staticWhite", + ".spectrum-ProgressCircle:not(.spectrum-ProgressCircle--indeterminate) .spectrum-innerCircle", + ".spectrum-ProgressCircle:not(.spectrum-ProgressCircle--indeterminate) .spectrum-outerCircle" ], "modifiers": [ "--mod-progress-circle-fill-border-color", - "--mod-progress-circle-fill-border-color-over-background", "--mod-progress-circle-position", "--mod-progress-circle-size", "--mod-progress-circle-thickness", - "--mod-progress-circle-track-border-color", - "--mod-progress-circle-track-border-color-over-background", - "--mod-progress-circle-track-border-style" + "--mod-progress-circle-track-border-color" ], "component": [ "--spectrum-progress-circle-fill-border-color", - "--spectrum-progress-circle-fill-border-color-over-background", "--spectrum-progress-circle-size", "--spectrum-progress-circle-size-large", "--spectrum-progress-circle-size-medium", @@ -100,27 +29,19 @@ "--spectrum-progress-circle-thickness-large", "--spectrum-progress-circle-thickness-medium", "--spectrum-progress-circle-thickness-small", - "--spectrum-progress-circle-track-border-color", - "--spectrum-progress-circle-track-border-color-over-background", - "--spectrum-progress-circle-track-border-style" + "--spectrum-progress-circle-track-border-color" ], "global": [ "--spectrum-accent-content-color-default", - "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-transparent-white-1000", - "--spectrum-transparent-white-300", - "--spectrum-transparent-white-400", - "--spectrum-transparent-white-900" - ], - "system-theme": [ - "--system-progress-circle-fill-border-color-over-background", - "--system-progress-circle-track-border-color", - "--system-progress-circle-track-border-color-over-background" + "--spectrum-static-black-track-color", + "--spectrum-static-black-track-indicator-color", + "--spectrum-static-white-track-color", + "--spectrum-static-white-track-indicator-color", + "--spectrum-track-color" ], "passthroughs": [], "high-contrast": [ "--highcontrast-progress-circle-fill-border-color", - "--highcontrast-progress-circle-fill-border-color-over-background" + "--highcontrast-progress-circle-track-color" ] } diff --git a/components/progresscircle/index.css b/components/progresscircle/index.css index 019cbb78bbd..d2adf1c18dd 100644 --- a/components/progresscircle/index.css +++ b/components/progresscircle/index.css @@ -1,66 +1,40 @@ /*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ +Copyright 2024 Adobe. All rights reserved. +This file is licensed to you under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. You may obtain a copy +of the License at http://www.apache.org/licenses/LICENSE-2.0 -@import "./themes/spectrum-two.css"; +Unless required by applicable law or agreed to in writing, software distributed under +the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS +OF ANY KIND, either express or implied. See the License for the specific language +governing permissions and limitations under the License. +*/ -/* windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-ProgressCircle { - /* fill is bright color */ - --highcontrast-progress-circle-fill-border-color: Highlight; - - /* fill over background is bright color */ - --highcontrast-progress-circle-fill-border-color-over-background: Highlight; - } - - /* track double for visibility */ - .spectrum-ProgressCircle-track { - --spectrum-progress-circle-track-border-style: double; - } -} +@import "animation.css"; .spectrum-ProgressCircle { /* circle unfilled border color */ - --spectrum-progress-circle-track-border-color: var(--spectrum-gray-300); + --spectrum-progress-circle-track-border-color: var(--spectrum-track-color); /* circle progress fill border color */ --spectrum-progress-circle-fill-border-color: var(--spectrum-accent-content-color-default); - /* over background unfilled border color */ - --spectrum-progress-circle-track-border-color-over-background: var(--spectrum-transparent-white-300); - - /* over background progress fill border color */ - --spectrum-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-900); - - /* track border style */ - --spectrum-progress-circle-track-border-style: solid; - - &.spectrum-ProgressCircle--small { - --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-small); - --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-small); - } + /* default size and thickness */ + --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-medium); + --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); +} - &, - &.spectrum-ProgressCircle--medium { - --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-medium); - --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); - } +.spectrum-ProgressCircle--sizeS { + --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-small); + --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-small); +} - &.spectrum-ProgressCircle--large { - --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-large); - --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-large); - } +.spectrum-ProgressCircle--sizeL { + --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-large); + --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-large); +} +.spectrum-ProgressCircle { display: inline-block; inline-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); block-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); @@ -70,591 +44,66 @@ /* Fix for Safari rendering bug */ /* more info: https://github.com/adobe/spectrum-web-components/issues/1392 */ transform: translate3d(0, 0, 0); -} - -.spectrum-ProgressCircle-track { - box-sizing: border-box; - inline-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); - block-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); - border-style: var(--mod-progress-circle-track-border-style, var(--spectrum-progress-circle-track-border-style)); - border-width: var(--mod-progress-circle-thickness, var(--spectrum-progress-circle-thickness)); - border-radius: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); - border-color: var(--mod-progress-circle-track-border-color, var(--spectrum-progress-circle-track-border-color)); -} + &.spectrum-ProgressCircle--staticWhite { + --spectrum-progress-circle-track-border-color: var(--spectrum-static-white-track-color); + --spectrum-progress-circle-fill-border-color: var(--spectrum-static-white-track-indicator-color); + } -/* circle progress fill parent container */ -.spectrum-ProgressCircle-fills { - position: absolute; - inset-block-start: 0; - inset-inline-start: 0; - inline-size: 100%; - block-size: 100%; + &.spectrum-ProgressCircle--staticBlack { + --spectrum-progress-circle-track-border-color: var(--spectrum-static-black-track-color); + --spectrum-progress-circle-fill-border-color: var(--spectrum-static-black-track-indicator-color); + } } -/* circle progress filled */ +.spectrum-ProgressCircle-track, .spectrum-ProgressCircle-fill { box-sizing: border-box; inline-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); block-size: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); - - border-style: solid; - border-width: var(--mod-progress-circle-thickness, var(--spectrum-progress-circle-thickness)); - border-radius: var(--mod-progress-circle-size, var(--spectrum-progress-circle-size)); - border-color: var(--highcontrast-progress-circle-fill-border-color, var(--mod-progress-circle-fill-border-color, var(--spectrum-progress-circle-fill-border-color))); } -/* circle colors over background */ -.spectrum-ProgressCircle.spectrum-ProgressCircle--staticWhite { - .spectrum-ProgressCircle-track { - border-color: var(--mod-progress-circle-track-border-color-over-background, var(--spectrum-progress-circle-track-border-color-over-background)); - } - - .spectrum-ProgressCircle-fill { - border-color: var(--highcontrast-progress-circle-fill-border-color-over-background, var(--mod-progress-circle-fill-border-color-over-background, var(--spectrum-progress-circle-fill-border-color-over-background))); - } -} - -/* animation masks - circle fill progress */ -.spectrum-ProgressCircle-fillMask1, -.spectrum-ProgressCircle-fillMask2 { - inline-size: 50%; - block-size: 100%; - transform-origin: 100% center; - transform: rotate(180deg); - overflow: hidden; - position: absolute; -} - -.spectrum-ProgressCircle-fillSubMask1, -.spectrum-ProgressCircle-fillSubMask2 { - inline-size: 100%; - block-size: 100%; - transform-origin: 100% center; - overflow: hidden; - transform: rotate(-180deg); +.spectrum-ProgressCircle-track { + stroke-width: var(--mod-progress-circle-thickness, var(--spectrum-progress-circle-thickness)); + stroke: var(--highcontrast-progress-circle-track-color, var(--mod-progress-circle-track-border-color, var(--spectrum-progress-circle-track-border-color))); } -.spectrum-ProgressCircle-fillMask2 { - transform: rotate(0deg); +/* circle progress filled */ +.spectrum-ProgressCircle-fill { + stroke-width: var(--mod-progress-circle-thickness, var(--spectrum-progress-circle-thickness)); + stroke: var(--highcontrast-progress-circle-fill-border-color, var(--mod-progress-circle-fill-border-color, var(--spectrum-progress-circle-fill-border-color))); + transform: rotate(-90deg); + transform-origin: center; } /* animation masks - circle indeterminate with continuous animation */ .spectrum-ProgressCircle--indeterminate { - .spectrum-ProgressCircle-fills { + .spectrum-ProgressCircle-fill { will-change: transform; - transform: translateZ(0); - animation: 1s infinite cubic-bezier(0.25, 0.78, 0.48, 0.89) spectrum-fills-rotate; + animation: + 1s cubic-bezier(0.6, 0.1, 0.3, 0.9) infinite spectrum-fills-rotate, + 1s cubic-bezier(0.25, 0.1, 0.25, 1.3) infinite spectrum-dashoffset-animation; transform-origin: center; } - - .spectrum-ProgressCircle-fillSubMask1 { - will-change: transform; - transform: translateZ(0); - animation: 1s infinite linear spectrum-fill-mask-1; - } - - .spectrum-ProgressCircle-fillSubMask2 { - will-change: transform; - transform: translateZ(0); - animation: 1s infinite linear spectrum-fill-mask-2; - } -} - -.spectrum-ProgressCircle--indeterminate-fill-submask-2 { - animation: 1s infinite linear spectrum-fill-mask-2; } -@keyframes spectrum-fill-mask-1 { - 0% { - transform: rotate(90deg); - } - - 1.69% { - transform: rotate(72.3deg); - } - - 3.39% { - transform: rotate(55.5deg); - } - - 5.08% { - transform: rotate(40.3deg); - } - - 6.78% { - transform: rotate(25deg); - } - - 8.47% { - transform: rotate(10.6deg); - } - - 10.17% { - transform: rotate(0deg); - } - - 11.86% { - transform: rotate(0deg); - } - - 13.56% { - transform: rotate(0deg); - } - - 15.25% { - transform: rotate(0deg); - } - - 16.95% { - transform: rotate(0deg); - } - - 18.64% { - transform: rotate(0deg); - } - - 20.34% { - transform: rotate(0deg); - } - - 22.03% { - transform: rotate(0deg); - } - - 23.73% { - transform: rotate(0deg); - } - - 25.42% { - transform: rotate(0deg); - } - - 27.12% { - transform: rotate(0deg); - } - - 28.81% { - transform: rotate(0deg); - } - - 30.51% { - transform: rotate(0deg); - } - - 32.2% { - transform: rotate(0deg); - } - - 33.9% { - transform: rotate(0deg); - } - - 35.59% { - transform: rotate(0deg); - } - - 37.29% { - transform: rotate(0deg); - } - - 38.98% { - transform: rotate(0deg); - } - - 40.68% { - transform: rotate(0deg); - } - - 42.37% { - transform: rotate(5.3deg); - } - - 44.07% { - transform: rotate(13.4deg); - } - - 45.76% { - transform: rotate(20.6deg); - } - - 47.46% { - transform: rotate(29deg); - } - - 49.15% { - transform: rotate(36.5deg); - } - - 50.85% { - transform: rotate(42.6deg); - } - - 52.54% { - transform: rotate(48.8deg); - } - - 54.24% { - transform: rotate(54.2deg); - } - - 55.93% { - transform: rotate(59.4deg); - } - - 57.63% { - transform: rotate(63.2deg); - } - - 59.32% { - transform: rotate(67.2deg); - } - - 61.02% { - transform: rotate(70.8deg); - } - - 62.71% { - transform: rotate(73.8deg); - } - - 64.41% { - transform: rotate(76.2deg); - } - - 66.1% { - transform: rotate(78.7deg); - } - - 67.8% { - transform: rotate(80.6deg); - } - - 69.49% { - transform: rotate(82.6deg); - } - - 71.19% { - transform: rotate(83.7deg); - } - - 72.88% { - transform: rotate(85deg); - } - - 74.58% { - transform: rotate(86.3deg); - } - - 76.27% { - transform: rotate(87deg); - } - - 77.97% { - transform: rotate(87.7deg); - } - - 79.66% { - transform: rotate(88.3deg); - } - - 81.36% { - transform: rotate(88.6deg); - } - - 83.05% { - transform: rotate(89.2deg); - } - - 84.75% { - transform: rotate(89.2deg); - } - - 86.44% { - transform: rotate(89.5deg); - } - - 88.14% { - transform: rotate(89.9deg); - } - - 89.83% { - transform: rotate(89.7deg); - } - - 91.53% { - transform: rotate(90.1deg); - } - - 93.22% { - transform: rotate(90.2deg); - } - - 94.92% { - transform: rotate(90.1deg); - } - - 96.61% { - transform: rotate(90deg); - } - - 98.31% { - transform: rotate(89.8deg); - } - - 100% { - transform: rotate(90deg); - } -} - -@keyframes spectrum-fill-mask-2 { - 0% { - transform: rotate(180deg); - } - - 1.69% { - transform: rotate(180deg); - } - - 3.39% { - transform: rotate(180deg); - } - - 5.08% { - transform: rotate(180deg); - } - - 6.78% { - transform: rotate(180deg); - } - - 8.47% { - transform: rotate(180deg); - } - - 10.17% { - transform: rotate(179.2deg); - } - - 11.86% { - transform: rotate(164deg); - } - - 13.56% { - transform: rotate(151.8deg); - } - - 15.25% { - transform: rotate(140.8deg); - } - - 16.95% { - transform: rotate(130.3deg); - } - - 18.64% { - transform: rotate(120.4deg); - } - - 20.34% { - transform: rotate(110.8deg); - } - - 22.03% { - transform: rotate(101.6deg); - } - - 23.73% { - transform: rotate(93.5deg); - } - - 25.42% { - transform: rotate(85.4deg); - } - - 27.12% { - transform: rotate(78.1deg); - } - - 28.81% { - transform: rotate(71.2deg); - } - - 30.51% { - transform: rotate(89.1deg); - } - - 32.2% { - transform: rotate(105.5deg); - } - - 33.9% { - transform: rotate(121.3deg); - } - - 35.59% { - transform: rotate(135.5deg); - } - - 37.29% { - transform: rotate(148.4deg); - } - - 38.98% { - transform: rotate(161deg); - } - - 40.68% { - transform: rotate(173.5deg); - } - - 42.37% { - transform: rotate(180deg); - } - - 44.07% { - transform: rotate(180deg); - } - - 45.76% { - transform: rotate(180deg); - } - - 47.46% { - transform: rotate(180deg); - } - - 49.15% { - transform: rotate(180deg); - } - - 50.85% { - transform: rotate(180deg); - } - - 52.54% { - transform: rotate(180deg); - } - - 54.24% { - transform: rotate(180deg); - } - - 55.93% { - transform: rotate(180deg); - } - - 57.63% { - transform: rotate(180deg); - } - - 59.32% { - transform: rotate(180deg); - } - - 61.02% { - transform: rotate(180deg); - } - - 62.71% { - transform: rotate(180deg); - } - - 64.41% { - transform: rotate(180deg); - } - - 66.1% { - transform: rotate(180deg); - } - - 67.8% { - transform: rotate(180deg); - } - - 69.49% { - transform: rotate(180deg); - } - - 71.19% { - transform: rotate(180deg); - } - - 72.88% { - transform: rotate(180deg); - } - - 74.58% { - transform: rotate(180deg); - } - - 76.27% { - transform: rotate(180deg); - } - - 77.97% { - transform: rotate(180deg); - } - - 79.66% { - transform: rotate(180deg); - } - - 81.36% { - transform: rotate(180deg); - } - - 83.05% { - transform: rotate(180deg); - } - - 84.75% { - transform: rotate(180deg); - } - - 86.44% { - transform: rotate(180deg); - } - - 88.14% { - transform: rotate(180deg); - } - - 89.83% { - transform: rotate(180deg); - } - - 91.53% { - transform: rotate(180deg); - } - - 93.22% { - transform: rotate(180deg); - } - - 94.92% { - transform: rotate(180deg); - } - - 96.61% { - transform: rotate(180deg); - } - - 98.31% { - transform: rotate(180deg); - } - - 100% { - transform: rotate(180deg); +/* windows high contrast mode */ +@media (forced-colors: active) { + .spectrum-ProgressCircle { + /* fill is bright color */ + --highcontrast-progress-circle-fill-border-color: Highlight; + --highcontrast-progress-circle-track-color: Background; } -} -@keyframes spectrum-fills-rotate { - 0% { - transform: rotate(-90deg); - } + .spectrum-ProgressCircle:not(.spectrum-ProgressCircle--indeterminate) { + .spectrum-innerCircle { + stroke: CanvasText; + } - 100% { - transform: rotate(270deg); + .spectrum-outerCircle { + border: 1px solid; + border-color: CanvasText; + border-radius: 50%; + } } } diff --git a/components/progresscircle/package.json b/components/progresscircle/package.json index 6fd1b1052f6..6be05513cf3 100644 --- a/components/progresscircle/package.json +++ b/components/progresscircle/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/progresscircle/stories/progresscircle.stories.js b/components/progresscircle/stories/progresscircle.stories.js index f64c2f2780a..9146a54f0f1 100644 --- a/components/progresscircle/stories/progresscircle.stories.js +++ b/components/progresscircle/stories/progresscircle.stories.js @@ -15,16 +15,28 @@ export default { argTypes: { size: size(["s", "m", "l"]), isIndeterminate, - staticColor: { - ...staticColor, - options: ["white"], - }, + staticColor, + value: { + name: "Percent filled", + type: { name: "number" }, + table: { + type: { summary: "number" }, + category: "Content", + }, + control: { + type: "range", + min: 0, + max: 100 + }, + if: { arg: "isIndeterminate", truthy: false }, + } }, args: { rootClass: "spectrum-ProgressCircle", size: "m", isIndeterminate: false, staticColor: undefined, + value: 43 }, parameters: { design: { @@ -102,3 +114,25 @@ StaticWhiteIndeterminate.args = { StaticWhiteIndeterminate.parameters = { chromatic: { disableSnapshot: true }, }; + +export const StaticBlackDeterminate = Sizing.bind({}); +StaticBlackDeterminate.tags = ["!dev"]; +StaticBlackDeterminate.storyName = "Static black, default"; +StaticBlackDeterminate.args = { + staticColor: "black", + isIndeterminate: false, +}; +StaticBlackDeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; + +export const StaticBlackIndeterminate = Sizing.bind({}); +StaticBlackIndeterminate.tags = ["!dev"]; +StaticBlackIndeterminate.storyName = "Static black, indeterminate"; +StaticBlackIndeterminate.args = { + staticColor: "black", + isIndeterminate: true, +}; +StaticBlackIndeterminate.parameters = { + chromatic: { disableSnapshot: true }, +}; diff --git a/components/progresscircle/stories/progresscircle.test.js b/components/progresscircle/stories/progresscircle.test.js index 26c9d8e078c..83fe05791dc 100644 --- a/components/progresscircle/stories/progresscircle.test.js +++ b/components/progresscircle/stories/progresscircle.test.js @@ -11,6 +11,10 @@ export const ProgressCircleGroup = Variants({ testHeading: "Static white", staticColor: "white", }, + { + testHeading: "Static black", + staticColor: "black", + }, ], stateData: [ { diff --git a/components/progresscircle/stories/template.js b/components/progresscircle/stories/template.js index 2e27221f91a..1890e58d4b0 100644 --- a/components/progresscircle/stories/template.js +++ b/components/progresscircle/stories/template.js @@ -4,10 +4,9 @@ import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; +import { capitalize } from "lodash-es"; + import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ id = getRandomId("progress-circle"), @@ -18,45 +17,48 @@ export const Template = ({ size = "m", staticColor, isIndeterminate = false, -} = {}) => { - let sizeClassName = "medium"; - switch (size) { - case "s": - sizeClassName = "small"; - break; - case "l": - sizeClassName = "large"; - break; - default: - sizeClassName = "medium"; - } + value, +}) => { + + let strokeWidth = size === "s" ? 2 : size === "l" ? 4 : 3; + + // SVG strokes are centered, so subtract half the stroke width from the radius to create an inner stroke. + let radius = `calc(50% - ${strokeWidth / 2}px)`; + + let insideRadius = `calc(50% - ${strokeWidth / 1}px)`; return html` <div class=${classMap({ [rootClass]: true, - [`${rootClass}--${sizeClassName}`]: typeof size !== "undefined", [`${rootClass}--indeterminate`]: isIndeterminate, - [`${rootClass}--staticWhite`]: staticColor === "white", + [`${rootClass}--static${capitalize(staticColor)}`]: typeof staticColor !== "undefined", + [`${rootClass}--size${size?.toUpperCase()}`]: typeof size !== "undefined" && size !== "m", ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), })} id=${ifDefined(id)} style=${styleMap(customStyles)} data-testid=${ifDefined(testId)} > - <div class="spectrum-ProgressCircle-track"></div> - <div class="spectrum-ProgressCircle-fills"> - <div class="spectrum-ProgressCircle-fillMask1"> - <div class="spectrum-ProgressCircle-fillSubMask1"> - <div class="spectrum-ProgressCircle-fill"></div> - </div> - </div> - <div class="spectrum-ProgressCircle-fillMask2"> - <div class="spectrum-ProgressCircle-fillSubMask2"> - <div class="spectrum-ProgressCircle-fill"></div> - </div> - </div> - </div> + <svg fill="none" width="100%" height="100%" class="spectrum-outerCircle"> + <circle class="spectrum-innerCircle" cx="50%" cy="50%" r=${insideRadius} stroke-width="2" /> + <circle + cx="50%" + cy="50%" + class="spectrum-ProgressCircle-track" + r=${radius} + /> + <circle + cx="50%" + cy="50%" + r=${radius} + class="spectrum-ProgressCircle-fill" + pathLength="100" + stroke-dasharray="100 200" + stroke-dashoffset=${100 - value} + stroke-linecap="round" + /> + </svg> </div> `; -}; \ No newline at end of file +}; diff --git a/components/progresscircle/themes/express.css b/components/progresscircle/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/progresscircle/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/progresscircle/themes/spectrum-two.css b/components/progresscircle/themes/spectrum-two.css deleted file mode 100644 index 93464f22940..00000000000 --- a/components/progresscircle/themes/spectrum-two.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-ProgressCircle { - /* circle unfilled border color */ - --spectrum-progress-circle-track-border-color: var(--spectrum-gray-200); - - --spectrum-progress-circle-track-border-color-over-background: var(--spectrum-transparent-white-400); - --spectrum-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-1000); - } -} diff --git a/components/progresscircle/themes/spectrum.css b/components/progresscircle/themes/spectrum.css deleted file mode 100644 index 2d0e45eece1..00000000000 --- a/components/progresscircle/themes/spectrum.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-ProgressCircle { - /* circle unfilled border color */ - --spectrum-progress-circle-track-border-color: var(--spectrum-gray-300); - - --spectrum-progress-circle-track-border-color-over-background: var(--spectrum-transparent-white-300); - --spectrum-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-900); - } -} diff --git a/components/radio/CHANGELOG.md b/components/radio/CHANGELOG.md index f7948e07055..982b571554b 100644 --- a/components/radio/CHANGELOG.md +++ b/components/radio/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 9.4.2-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 10.0.1 ### Patch Changes @@ -168,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.5...@spectrum-css/radio@9.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.5...@spectrum-css/radio@9.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -185,8 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.4...@spectrum-css/radio@8.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.4...@spectrum-css/radio@8.1.5) **Note:** Version bump only for package @spectrum-css/radio @@ -194,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.3...@spectrum-css/radio@8.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.3...@spectrum-css/radio@8.1.4) **Note:** Version bump only for package @spectrum-css/radio @@ -203,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.2...@spectrum-css/radio@8.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.2...@spectrum-css/radio@8.1.3) **Note:** Version bump only for package @spectrum-css/radio @@ -212,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.1...@spectrum-css/radio@8.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.1.1...@spectrum-css/radio@8.1.2) **Note:** Version bump only for package @spectrum-css/radio @@ -221,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/radio @@ -230,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.19...@spectrum-css/radio@8.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.19...@spectrum-css/radio@8.1.0) **Note:** Version bump only for package @spectrum-css/radio @@ -239,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.19 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.18...@spectrum-css/radio@8.0.19) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.18...@spectrum-css/radio@8.0.19) **Note:** Version bump only for package @spectrum-css/radio @@ -248,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.18 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.17...@spectrum-css/radio@8.0.18) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.17...@spectrum-css/radio@8.0.18) **Note:** Version bump only for package @spectrum-css/radio @@ -257,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.17 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.16...@spectrum-css/radio@8.0.17) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.16...@spectrum-css/radio@8.0.17) ### 🐛 Bug fixes @@ -268,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.16 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.14...@spectrum-css/radio@8.0.16) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.14...@spectrum-css/radio@8.0.16) **Note:** Version bump only for package @spectrum-css/radio @@ -277,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.15 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.14...@spectrum-css/radio@8.0.15) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.14...@spectrum-css/radio@8.0.15) **Note:** Version bump only for package @spectrum-css/radio @@ -286,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.14 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.13...@spectrum-css/radio@8.0.14) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.13...@spectrum-css/radio@8.0.14) **Note:** Version bump only for package @spectrum-css/radio @@ -295,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.13 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.12...@spectrum-css/radio@8.0.13) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.12...@spectrum-css/radio@8.0.13) **Note:** Version bump only for package @spectrum-css/radio @@ -304,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.12 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.11...@spectrum-css/radio@8.0.12) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.11...@spectrum-css/radio@8.0.12) **Note:** Version bump only for package @spectrum-css/radio @@ -313,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.11 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.10...@spectrum-css/radio@8.0.11) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.10...@spectrum-css/radio@8.0.11) **Note:** Version bump only for package @spectrum-css/radio @@ -322,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.10 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.9...@spectrum-css/radio@8.0.10) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.9...@spectrum-css/radio@8.0.10) **Note:** Version bump only for package @spectrum-css/radio @@ -331,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.9 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.8...@spectrum-css/radio@8.0.9) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.8...@spectrum-css/radio@8.0.9) **Note:** Version bump only for package @spectrum-css/radio @@ -340,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.8 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.7...@spectrum-css/radio@8.0.8) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.7...@spectrum-css/radio@8.0.8) **Note:** Version bump only for package @spectrum-css/radio @@ -349,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.7 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.6...@spectrum-css/radio@8.0.7) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.6...@spectrum-css/radio@8.0.7) **Note:** Version bump only for package @spectrum-css/radio @@ -358,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.5...@spectrum-css/radio@8.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.5...@spectrum-css/radio@8.0.6) **Note:** Version bump only for package @spectrum-css/radio @@ -367,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.5 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.4...@spectrum-css/radio@8.0.5) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.4...@spectrum-css/radio@8.0.5) **Note:** Version bump only for package @spectrum-css/radio @@ -376,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.4 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.3...@spectrum-css/radio@8.0.4) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.3...@spectrum-css/radio@8.0.4) ### 🔙 Reverts @@ -387,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.2...@spectrum-css/radio@8.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.2...@spectrum-css/radio@8.0.3) **Note:** Version bump only for package @spectrum-css/radio @@ -396,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.0...@spectrum-css/radio@8.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.0...@spectrum-css/radio@8.0.2) **Note:** Version bump only for package @spectrum-css/radio @@ -405,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.0...@spectrum-css/radio@8.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@8.0.0...@spectrum-css/radio@8.0.1) **Note:** Version bump only for package @spectrum-css/radio @@ -414,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.46...@spectrum-css/radio@8.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.46...@spectrum-css/radio@8.0.0) \*refactor(radio)!: remove focus-ring([30849cf](https://github.com/adobe/spectrum-css/commit/30849cf)) @@ -429,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.46 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.45...@spectrum-css/radio@7.0.46) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.45...@spectrum-css/radio@7.0.46) ### 🐛 Bug fixes @@ -440,8 +428,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.45 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.44...@spectrum-css/radio@7.0.45) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.44...@spectrum-css/radio@7.0.45) **Note:** Version bump only for package @spectrum-css/radio @@ -449,8 +436,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.44 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.43...@spectrum-css/radio@7.0.44) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.43...@spectrum-css/radio@7.0.44) **Note:** Version bump only for package @spectrum-css/radio @@ -458,8 +444,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.43 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.42...@spectrum-css/radio@7.0.43) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.42...@spectrum-css/radio@7.0.43) **Note:** Version bump only for package @spectrum-css/radio @@ -467,8 +452,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.41...@spectrum-css/radio@7.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.41...@spectrum-css/radio@7.0.42) **Note:** Version bump only for package @spectrum-css/radio @@ -476,8 +460,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.40...@spectrum-css/radio@7.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.40...@spectrum-css/radio@7.0.41) **Note:** Version bump only for package @spectrum-css/radio @@ -485,8 +468,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.39...@spectrum-css/radio@7.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.39...@spectrum-css/radio@7.0.40) **Note:** Version bump only for package @spectrum-css/radio @@ -494,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.38...@spectrum-css/radio@7.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.38...@spectrum-css/radio@7.0.39) **Note:** Version bump only for package @spectrum-css/radio @@ -503,8 +484,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.37...@spectrum-css/radio@7.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.37...@spectrum-css/radio@7.0.38) **Note:** Version bump only for package @spectrum-css/radio @@ -512,8 +492,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.36...@spectrum-css/radio@7.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.36...@spectrum-css/radio@7.0.37) **Note:** Version bump only for package @spectrum-css/radio @@ -521,8 +500,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.35...@spectrum-css/radio@7.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.35...@spectrum-css/radio@7.0.36) ### 🐛 Bug fixes @@ -532,8 +510,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.34...@spectrum-css/radio@7.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.34...@spectrum-css/radio@7.0.35) **Note:** Version bump only for package @spectrum-css/radio @@ -541,8 +518,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.33...@spectrum-css/radio@7.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/radio@7.0.33...@spectrum-css/radio@7.0.34) **Note:** Version bump only for package @spectrum-css/radio diff --git a/components/radio/dist/metadata.json b/components/radio/dist/metadata.json index b94c6dfcf90..fdeccc96e85 100644 --- a/components/radio/dist/metadata.json +++ b/components/radio/dist/metadata.json @@ -12,7 +12,6 @@ ".spectrum-Radio--emphasized:focus .spectrum-Radio-input:checked + .spectrum-Radio-button:before", ".spectrum-Radio--emphasized:hover .spectrum-Radio-input:checked + .spectrum-Radio-button:before", ".spectrum-Radio--sizeL", - ".spectrum-Radio--sizeM", ".spectrum-Radio--sizeS", ".spectrum-Radio--sizeXL", ".spectrum-Radio-button", @@ -127,7 +126,6 @@ "--spectrum-accent-color-1100", "--spectrum-accent-color-900", "--spectrum-animation-duration-100", - "--spectrum-border-width-200", "--spectrum-cjk-line-height-100", "--spectrum-component-bottom-to-text-100", "--spectrum-component-bottom-to-text-200", @@ -167,13 +165,6 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-radio-button-background-color", - "--system-radio-button-border-color-default", - "--system-radio-button-border-color-down", - "--system-radio-button-border-color-focus", - "--system-radio-button-border-color-hover" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-radio-button-background-color", diff --git a/components/radio/index.css b/components/radio/index.css index f531d01f8dd..36b03e7bdca 100644 --- a/components/radio/index.css +++ b/components/radio/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - /* * Radio: * ::before is to style the input circle (selection indicator) @@ -20,6 +18,8 @@ */ .spectrum-Radio { + --spectrum-radio-button-background-color: var(--spectrum-gray-50); + /* state colors for all themes */ --spectrum-radio-neutral-content-color: var(--spectrum-neutral-content-color-default); --spectrum-radio-neutral-content-color-hover: var(--spectrum-neutral-content-color-hover); @@ -41,8 +41,11 @@ --spectrum-radio-emphasized-accent-color-down: var(--spectrum-accent-color-1100); --spectrum-radio-emphasized-accent-color-focus: var(--spectrum-accent-color-1000); - /* selection indicator all themes */ - --spectrum-radio-border-width: var(--spectrum-border-width-200); + /* unchecked selection indicator */ + --spectrum-radio-button-border-color-default: var(--spectrum-gray-600); + --spectrum-radio-button-border-color-hover: var(--spectrum-gray-700); + --spectrum-radio-button-border-color-down: var(--spectrum-gray-800); + --spectrum-radio-button-border-color-focus: var(--spectrum-gray-700); /* checked selection indicator */ --spectrum-radio-button-checked-border-color-default: var(--spectrum-neutral-background-color-selected-default); @@ -55,16 +58,6 @@ /* animation all themes */ --spectrum-radio-animation-duration: var(--spectrum-animation-duration-100); - /* CJK language support all themes */ - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-radio-line-height-cjk: var(--spectrum-cjk-line-height-100); - } -} - -.spectrum-Radio, -.spectrum-Radio--sizeM { --spectrum-radio-height: var(--spectrum-component-height-100); --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); @@ -74,6 +67,13 @@ --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); --spectrum-radio-font-size: var(--spectrum-font-size-100); + + /* CJK language support all themes */ + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-radio-line-height-cjk: var(--spectrum-cjk-line-height-100); + } } .spectrum-Radio--sizeS { diff --git a/components/radio/package.json b/components/radio/package.json index 5b0e2c07f7c..c657e6a4aad 100644 --- a/components/radio/package.json +++ b/components/radio/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/radio/stories/template.js b/components/radio/stories/template.js index 68c3cbf0e96..50ba8484b2f 100644 --- a/components/radio/stories/template.js +++ b/components/radio/stories/template.js @@ -5,9 +5,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Radio", diff --git a/components/radio/themes/express.css b/components/radio/themes/express.css deleted file mode 100644 index 8565459259d..00000000000 --- a/components/radio/themes/express.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Radio { - /* selection indicator */ - --spectrum-radio-button-border-color-default: var(--spectrum-gray-800); - --spectrum-radio-button-border-color-hover: var(--spectrum-gray-900); - --spectrum-radio-button-border-color-down: var(--spectrum-gray-900); - --spectrum-radio-button-border-color-focus: var(--spectrum-gray-900); - } -} diff --git a/components/radio/themes/spectrum-two.css b/components/radio/themes/spectrum-two.css deleted file mode 100644 index 48b980fc0e4..00000000000 --- a/components/radio/themes/spectrum-two.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Radio { - /* selection indicator */ - --spectrum-radio-button-border-color-default: var(--spectrum-gray-600); - --spectrum-radio-button-border-color-hover: var(--spectrum-gray-700); - --spectrum-radio-button-border-color-down: var(--spectrum-gray-800); - --spectrum-radio-button-border-color-focus: var(--spectrum-gray-700); - - --spectrum-radio-button-background-color: var(--spectrum-gray-50); - } -} diff --git a/components/radio/themes/spectrum.css b/components/radio/themes/spectrum.css deleted file mode 100644 index 33772fcc7c9..00000000000 --- a/components/radio/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Radio { - --spectrum-radio-button-background-color: var(--spectrum-gray-75); - } -} diff --git a/components/rating/CHANGELOG.md b/components/rating/CHANGELOG.md index ae918dea207..258994483b9 100644 --- a/components/rating/CHANGELOG.md +++ b/components/rating/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.2.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 6.0.1 ### Patch Changes @@ -144,8 +153,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.4...@spectrum-css/rating@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.4...@spectrum-css/rating@5.0.0) ### ✨ Features @@ -153,11 +161,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -165,8 +171,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.3...@spectrum-css/rating@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.3...@spectrum-css/rating@4.2.4) **Note:** Version bump only for package @spectrum-css/rating @@ -174,8 +179,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.2...@spectrum-css/rating@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.2...@spectrum-css/rating@4.2.3) **Note:** Version bump only for package @spectrum-css/rating @@ -183,8 +187,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.1...@spectrum-css/rating@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.2.1...@spectrum-css/rating@4.2.2) **Note:** Version bump only for package @spectrum-css/rating @@ -192,8 +195,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/rating @@ -201,8 +203,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.1.0...@spectrum-css/rating@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.1.0...@spectrum-css/rating@4.2.0) **Note:** Version bump only for package @spectrum-css/rating @@ -210,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.35...@spectrum-css/rating@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.35...@spectrum-css/rating@4.1.0) ### ✨ Features @@ -221,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.35 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.34...@spectrum-css/rating@4.0.35) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.34...@spectrum-css/rating@4.0.35) **Note:** Version bump only for package @spectrum-css/rating @@ -230,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.34 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.33...@spectrum-css/rating@4.0.34) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.33...@spectrum-css/rating@4.0.34) **Note:** Version bump only for package @spectrum-css/rating @@ -239,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.33 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.31...@spectrum-css/rating@4.0.33) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.31...@spectrum-css/rating@4.0.33) **Note:** Version bump only for package @spectrum-css/rating @@ -248,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.32 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.31...@spectrum-css/rating@4.0.32) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.31...@spectrum-css/rating@4.0.32) **Note:** Version bump only for package @spectrum-css/rating @@ -257,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.31 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.30...@spectrum-css/rating@4.0.31) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.30...@spectrum-css/rating@4.0.31) **Note:** Version bump only for package @spectrum-css/rating @@ -266,8 +261,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.30 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.29...@spectrum-css/rating@4.0.30) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.29...@spectrum-css/rating@4.0.30) **Note:** Version bump only for package @spectrum-css/rating @@ -275,8 +269,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.29 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.28...@spectrum-css/rating@4.0.29) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.28...@spectrum-css/rating@4.0.29) **Note:** Version bump only for package @spectrum-css/rating @@ -284,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.28 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.27...@spectrum-css/rating@4.0.28) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.27...@spectrum-css/rating@4.0.28) **Note:** Version bump only for package @spectrum-css/rating @@ -293,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.27 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.26...@spectrum-css/rating@4.0.27) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.26...@spectrum-css/rating@4.0.27) **Note:** Version bump only for package @spectrum-css/rating @@ -302,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.26 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.25...@spectrum-css/rating@4.0.26) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.25...@spectrum-css/rating@4.0.26) **Note:** Version bump only for package @spectrum-css/rating @@ -311,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.25 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.24...@spectrum-css/rating@4.0.25) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.24...@spectrum-css/rating@4.0.25) **Note:** Version bump only for package @spectrum-css/rating @@ -320,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.24 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.23...@spectrum-css/rating@4.0.24) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.23...@spectrum-css/rating@4.0.24) **Note:** Version bump only for package @spectrum-css/rating @@ -329,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.22...@spectrum-css/rating@4.0.23) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.22...@spectrum-css/rating@4.0.23) **Note:** Version bump only for package @spectrum-css/rating @@ -338,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.21...@spectrum-css/rating@4.0.22) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.21...@spectrum-css/rating@4.0.22) ### 🔙 Reverts @@ -349,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.20...@spectrum-css/rating@4.0.21) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.20...@spectrum-css/rating@4.0.21) **Note:** Version bump only for package @spectrum-css/rating @@ -358,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.18...@spectrum-css/rating@4.0.20) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.18...@spectrum-css/rating@4.0.20) **Note:** Version bump only for package @spectrum-css/rating @@ -367,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.18...@spectrum-css/rating@4.0.19) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.18...@spectrum-css/rating@4.0.19) **Note:** Version bump only for package @spectrum-css/rating @@ -376,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.17...@spectrum-css/rating@4.0.18) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.17...@spectrum-css/rating@4.0.18) **Note:** Version bump only for package @spectrum-css/rating @@ -385,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.16...@spectrum-css/rating@4.0.17) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.16...@spectrum-css/rating@4.0.17) **Note:** Version bump only for package @spectrum-css/rating @@ -394,8 +375,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.15...@spectrum-css/rating@4.0.16) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.15...@spectrum-css/rating@4.0.16) **Note:** Version bump only for package @spectrum-css/rating @@ -403,8 +383,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.14...@spectrum-css/rating@4.0.15) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.14...@spectrum-css/rating@4.0.15) **Note:** Version bump only for package @spectrum-css/rating @@ -412,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.13...@spectrum-css/rating@4.0.14) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.13...@spectrum-css/rating@4.0.14) **Note:** Version bump only for package @spectrum-css/rating @@ -421,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.12...@spectrum-css/rating@4.0.13) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.12...@spectrum-css/rating@4.0.13) **Note:** Version bump only for package @spectrum-css/rating @@ -430,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.11...@spectrum-css/rating@4.0.12) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.11...@spectrum-css/rating@4.0.12) **Note:** Version bump only for package @spectrum-css/rating @@ -439,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.10...@spectrum-css/rating@4.0.11) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.10...@spectrum-css/rating@4.0.11) **Note:** Version bump only for package @spectrum-css/rating @@ -448,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.9...@spectrum-css/rating@4.0.10) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.9...@spectrum-css/rating@4.0.10) **Note:** Version bump only for package @spectrum-css/rating @@ -457,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.8...@spectrum-css/rating@4.0.9) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.8...@spectrum-css/rating@4.0.9) **Note:** Version bump only for package @spectrum-css/rating @@ -466,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.7...@spectrum-css/rating@4.0.8) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.7...@spectrum-css/rating@4.0.8) **Note:** Version bump only for package @spectrum-css/rating @@ -475,8 +447,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.6...@spectrum-css/rating@4.0.7) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.6...@spectrum-css/rating@4.0.7) ### 🐛 Bug fixes @@ -486,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.5...@spectrum-css/rating@4.0.6) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.5...@spectrum-css/rating@4.0.6) **Note:** Version bump only for package @spectrum-css/rating @@ -495,8 +465,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.4...@spectrum-css/rating@4.0.5) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/rating@4.0.4...@spectrum-css/rating@4.0.5) **Note:** Version bump only for package @spectrum-css/rating diff --git a/components/rating/dist/metadata.json b/components/rating/dist/metadata.json index 75ee43e0895..f0ab77b22a9 100644 --- a/components/rating/dist/metadata.json +++ b/components/rating/dist/metadata.json @@ -101,13 +101,6 @@ "--spectrum-neutral-subdued-content-color-key-focus", "--spectrum-workflow-icon-size-100" ], - "system-theme": [ - "--system-rating-icon-color-default", - "--system-rating-icon-color-down", - "--system-rating-icon-color-hover", - "--system-rating-icon-color-key-focus", - "--system-rating-indicator-border-radius" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-rating-emphasized-icon-color-default", diff --git a/components/rating/index.css b/components/rating/index.css index 02c76194916..38ee34ef285 100644 --- a/components/rating/index.css +++ b/components/rating/index.css @@ -11,12 +11,23 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Rating { + --spectrum-rating-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-rating-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-rating-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + + --spectrum-rating-indicator-border-radius: 2px; + /* Icon */ --spectrum-rating-icon-height: var(--spectrum-workflow-icon-size-100); --spectrum-rating-icon-width: var(--spectrum-workflow-icon-size-100); + --spectrum-rating-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-rating-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-rating-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + + /* Focus ring */ --spectrum-rating-border-radius: var(--spectrum-corner-radius-100); @@ -27,8 +38,9 @@ /* Spacing (top/bottom edge to icon) */ --spectrum-rating-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); - /* Indicator height */ + /* Indicator */ --spectrum-rating-indicator-height: var(--spectrum-border-width-200); + --spectrum-rating-indicator-border-radius: 2px; /* Colors */ /* selected + emphasized */ diff --git a/components/rating/package.json b/components/rating/package.json index a2a5937f850..f9110074980 100644 --- a/components/rating/package.json +++ b/components/rating/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/rating/stories/template.js b/components/rating/stories/template.js index 47ea5c5f61a..245694af8fa 100644 --- a/components/rating/stories/template.js +++ b/components/rating/stories/template.js @@ -6,9 +6,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { repeat } from "lit/directives/repeat.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Rating", diff --git a/components/rating/themes/express.css b/components/rating/themes/express.css deleted file mode 100644 index 1a0d5c792b2..00000000000 --- a/components/rating/themes/express.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Rating { - --spectrum-rating-icon-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-rating-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-rating-icon-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - } -} diff --git a/components/rating/themes/spectrum-two.css b/components/rating/themes/spectrum-two.css deleted file mode 100644 index 0c2a8df9260..00000000000 --- a/components/rating/themes/spectrum-two.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Rating { - --spectrum-rating-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-rating-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-rating-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - - --spectrum-rating-indicator-border-radius: 2px; - } -} diff --git a/components/rating/themes/spectrum.css b/components/rating/themes/spectrum.css deleted file mode 100644 index c99df8e652f..00000000000 --- a/components/rating/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Rating { - --spectrum-rating-indicator-border-radius: var(--spectrum-corner-radius-75); - } -} diff --git a/components/search/CHANGELOG.md b/components/search/CHANGELOG.md index 253da2b6da2..43b8954b2cf 100644 --- a/components/search/CHANGELOG.md +++ b/components/search/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 7.4.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`6b41b50`](https://github.com/adobe/spectrum-css/commit/6b41b501768da3db70ae00f6097646583f8fbd01) Thanks [@pfulton](https://github.com/pfulton)! - Restores missing custom properties that were flagged by the linter. The missing properties were copied from the spectrum two theme files in the foundations branch. This clears up all linter errors and warnings for these components. + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f)]: + - @spectrum-css/clearbutton@6.4.1-next.0 + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/textfield@7.3.1-next.0 + ## 8.0.1 ### Patch Changes @@ -200,16 +211,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.4...@spectrum-css/search@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.4...@spectrum-css/search@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -217,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.3...@spectrum-css/search@6.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.3...@spectrum-css/search@6.2.4) **Note:** Version bump only for package @spectrum-css/search @@ -226,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.2...@spectrum-css/search@6.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.2...@spectrum-css/search@6.2.3) **Note:** Version bump only for package @spectrum-css/search @@ -235,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.1...@spectrum-css/search@6.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.2.1...@spectrum-css/search@6.2.2) **Note:** Version bump only for package @spectrum-css/search @@ -244,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/search @@ -253,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.1.0...@spectrum-css/search@6.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.1.0...@spectrum-css/search@6.2.0) **Note:** Version bump only for package @spectrum-css/search @@ -262,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.30...@spectrum-css/search@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.30...@spectrum-css/search@6.1.0) ### ✨ Features @@ -273,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.30 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.29...@spectrum-css/search@6.0.30) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.29...@spectrum-css/search@6.0.30) **Note:** Version bump only for package @spectrum-css/search @@ -282,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.29 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.28...@spectrum-css/search@6.0.29) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.28...@spectrum-css/search@6.0.29) **Note:** Version bump only for package @spectrum-css/search @@ -291,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.28 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.26...@spectrum-css/search@6.0.28) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.26...@spectrum-css/search@6.0.28) **Note:** Version bump only for package @spectrum-css/search @@ -300,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.27 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.26...@spectrum-css/search@6.0.27) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.26...@spectrum-css/search@6.0.27) **Note:** Version bump only for package @spectrum-css/search @@ -309,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.26 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.25...@spectrum-css/search@6.0.26) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.25...@spectrum-css/search@6.0.26) **Note:** Version bump only for package @spectrum-css/search @@ -318,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.25 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.24...@spectrum-css/search@6.0.25) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.24...@spectrum-css/search@6.0.25) **Note:** Version bump only for package @spectrum-css/search @@ -327,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.24 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.23...@spectrum-css/search@6.0.24) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.23...@spectrum-css/search@6.0.24) **Note:** Version bump only for package @spectrum-css/search @@ -336,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.23 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.22...@spectrum-css/search@6.0.23) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.22...@spectrum-css/search@6.0.23) **Note:** Version bump only for package @spectrum-css/search @@ -345,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.22 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.21...@spectrum-css/search@6.0.22) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.21...@spectrum-css/search@6.0.22) **Note:** Version bump only for package @spectrum-css/search @@ -354,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.21 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.20...@spectrum-css/search@6.0.21) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.20...@spectrum-css/search@6.0.21) **Note:** Version bump only for package @spectrum-css/search @@ -363,8 +355,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.20 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.19...@spectrum-css/search@6.0.20) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.19...@spectrum-css/search@6.0.20) **Note:** Version bump only for package @spectrum-css/search @@ -372,8 +363,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.19 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.18...@spectrum-css/search@6.0.19) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.18...@spectrum-css/search@6.0.19) **Note:** Version bump only for package @spectrum-css/search @@ -381,8 +371,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.18 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.17...@spectrum-css/search@6.0.18) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.17...@spectrum-css/search@6.0.18) **Note:** Version bump only for package @spectrum-css/search @@ -390,8 +379,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.17 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.16...@spectrum-css/search@6.0.17) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.16...@spectrum-css/search@6.0.17) **Note:** Version bump only for package @spectrum-css/search @@ -399,8 +387,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.16 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.15...@spectrum-css/search@6.0.16) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.15...@spectrum-css/search@6.0.16) ### 🔙 Reverts @@ -410,8 +397,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.15 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.14...@spectrum-css/search@6.0.15) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.14...@spectrum-css/search@6.0.15) **Note:** Version bump only for package @spectrum-css/search @@ -419,8 +405,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.14 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.12...@spectrum-css/search@6.0.14) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.12...@spectrum-css/search@6.0.14) **Note:** Version bump only for package @spectrum-css/search @@ -428,8 +413,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.13 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.12...@spectrum-css/search@6.0.13) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.12...@spectrum-css/search@6.0.13) **Note:** Version bump only for package @spectrum-css/search @@ -437,8 +421,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.12 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.11...@spectrum-css/search@6.0.12) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.11...@spectrum-css/search@6.0.12) **Note:** Version bump only for package @spectrum-css/search @@ -446,8 +429,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.11 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.10...@spectrum-css/search@6.0.11) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.10...@spectrum-css/search@6.0.11) **Note:** Version bump only for package @spectrum-css/search @@ -455,8 +437,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.10 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.9...@spectrum-css/search@6.0.10) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.9...@spectrum-css/search@6.0.10) **Note:** Version bump only for package @spectrum-css/search @@ -464,8 +445,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.9 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.8...@spectrum-css/search@6.0.9) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.8...@spectrum-css/search@6.0.9) **Note:** Version bump only for package @spectrum-css/search @@ -473,8 +453,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.8 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.7...@spectrum-css/search@6.0.8) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.7...@spectrum-css/search@6.0.8) **Note:** Version bump only for package @spectrum-css/search @@ -482,8 +461,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.7 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.6...@spectrum-css/search@6.0.7) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.6...@spectrum-css/search@6.0.7) **Note:** Version bump only for package @spectrum-css/search @@ -491,8 +469,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.6 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.5...@spectrum-css/search@6.0.6) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.5...@spectrum-css/search@6.0.6) **Note:** Version bump only for package @spectrum-css/search @@ -500,8 +477,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.5 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.4...@spectrum-css/search@6.0.5) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.4...@spectrum-css/search@6.0.5) **Note:** Version bump only for package @spectrum-css/search @@ -509,8 +485,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.4 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.3...@spectrum-css/search@6.0.4) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.3...@spectrum-css/search@6.0.4) **Note:** Version bump only for package @spectrum-css/search @@ -518,8 +493,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.3 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.2...@spectrum-css/search@6.0.3) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.2...@spectrum-css/search@6.0.3) **Note:** Version bump only for package @spectrum-css/search @@ -527,8 +501,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.2 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.1...@spectrum-css/search@6.0.2) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.1...@spectrum-css/search@6.0.2) **Note:** Version bump only for package @spectrum-css/search @@ -536,8 +509,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.0...@spectrum-css/search@6.0.1) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@6.0.0...@spectrum-css/search@6.0.1) **Note:** Version bump only for package @spectrum-css/search @@ -545,13 +517,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@5.0.23...@spectrum-css/search@6.0.0) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@5.0.23...@spectrum-css/search@6.0.0) \*chore(search)!: core tokens migration (#1761)([b54d8ef](https://github.com/adobe/spectrum-css/commit/b54d8ef)), closes[#1761](https://github.com/adobe/spectrum-css/issues/1761) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Search to use `@adobe/spectrum-tokens` @@ -560,8 +530,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.23 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@5.0.22...@spectrum-css/search@5.0.23) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/search@5.0.22...@spectrum-css/search@5.0.23) **Note:** Version bump only for package @spectrum-css/search diff --git a/components/search/dist/metadata.json b/components/search/dist/metadata.json index 5dacd2f6ba3..6222364ff13 100644 --- a/components/search/dist/metadata.json +++ b/components/search/dist/metadata.json @@ -26,7 +26,6 @@ ".spectrum-Search-textfield:hover .spectrum-Search-icon", ".spectrum-Search.is-disabled .spectrum-Search-clearButton", ".spectrum-Search.spectrum-Search--sizeL", - ".spectrum-Search.spectrum-Search--sizeM", ".spectrum-Search.spectrum-Search--sizeS", ".spectrum-Search.spectrum-Search--sizeXL", ".spectrum-Search:not(.spectrum-Search--quiet) .spectrum-Search-icon", @@ -149,24 +148,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-search-background-color", - "--system-search-border-color-default", - "--system-search-border-color-focus", - "--system-search-border-color-focus-hover", - "--system-search-border-color-hover", - "--system-search-border-color-key-focus", - "--system-search-border-radius", - "--system-search-edge-to-visual", - "--system-search-size-l-border-radius", - "--system-search-size-l-edge-to-visual", - "--system-search-size-m-border-radius", - "--system-search-size-m-edge-to-visual", - "--system-search-size-s-border-radius", - "--system-search-size-s-edge-to-visual", - "--system-search-size-xl-border-radius", - "--system-search-size-xl-edge-to-visual" - ], "passthroughs": [ "--mod-textfield-background-color", "--mod-textfield-background-color-disabled", diff --git a/components/search/index.css b/components/search/index.css index 842123e839a..18a8de66124 100644 --- a/components/search/index.css +++ b/components/search/index.css @@ -11,9 +11,33 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; + .spectrum-Search { + --spectrum-search-border-color-default: var(--spectrum-gray-500); + --spectrum-search-border-color-hover: var(--spectrum-gray-600); + --spectrum-search-border-color-focus: var(--spectrum-gray-800); + --spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); + --spectrum-search-border-color-key-focus: var(--spectrum-gray-900); + + --spectrum-search-background-color: var(--spectrum-gray-25); + + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); + + &.spectrum-Search--sizeS { + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-75); + } + + &.spectrum-Search--sizeL { + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-200); + } + + &.spectrum-Search--sizeXL { + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-300); + } -.spectrum-Search { /* Size / Spacing */ --spectrum-search-inline-size: var(--spectrum-field-width); --spectrum-search-block-size: var(--spectrum-component-height-100); @@ -25,6 +49,8 @@ --spectrum-search-to-help-text: var(--spectrum-help-text-to-component); --spectrum-search-top-to-text: var(--spectrum-component-top-to-text-100); --spectrum-search-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); /* Focus Indicator */ --spectrum-search-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); @@ -43,6 +69,12 @@ --spectrum-search-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); --spectrum-search-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --spectrum-search-border-color-default: var(--spectrum-gray-500); + --spectrum-search-border-color-hover: var(--spectrum-gray-600); + --spectrum-search-border-color-focus: var(--spectrum-gray-800); + --spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); + --spectrum-search-border-color-key-focus: var(--spectrum-gray-900); + /* Background and Border */ --spectrum-search-border-width: var(--spectrum-border-width-100); @@ -94,18 +126,21 @@ --spectrum-search-block-size: var(--spectrum-component-height-75); --spectrum-search-icon-size: var(--spectrum-workflow-icon-size-75); --spectrum-search-text-to-icon: var(--spectrum-text-to-visual-75); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-75); } .spectrum-Search--sizeL { --spectrum-search-block-size: var(--spectrum-component-height-200); --spectrum-search-icon-size: var(--spectrum-workflow-icon-size-200); --spectrum-search-text-to-icon: var(--spectrum-text-to-visual-200); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-200); } .spectrum-Search--sizeXL { --spectrum-search-block-size: var(--spectrum-component-height-300); --spectrum-search-icon-size: var(--spectrum-workflow-icon-size-300); --spectrum-search-text-to-icon: var(--spectrum-text-to-visual-300); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-300); } @media (forced-colors: active) { diff --git a/components/search/package.json b/components/search/package.json index 5c52076f0cb..3b718d9dcce 100644 --- a/components/search/package.json +++ b/components/search/package.json @@ -26,19 +26,15 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/clearbutton": ">=6", - "@spectrum-css/icon": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/textfield": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/clearbutton": "7.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/textfield": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/search/stories/template.js b/components/search/stories/template.js index 364c8d8fde6..09570d33581 100644 --- a/components/search/stories/template.js +++ b/components/search/stories/template.js @@ -7,9 +7,6 @@ import { classMap } from "lit/directives/class-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Search", diff --git a/components/search/themes/express.css b/components/search/themes/express.css deleted file mode 100644 index 002ab9cecb6..00000000000 --- a/components/search/themes/express.css +++ /dev/null @@ -1,47 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Search { - --spectrum-search-border-color-default: var(--spectrum-gray-400); - --spectrum-search-border-color-hover: var(--spectrum-gray-500); - --spectrum-search-border-color-focus: var(--spectrum-gray-800); - --spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - - &, - &.spectrum-Search--sizeM { - --spectrum-search-border-radius: calc(var(--spectrum-component-height-100) / 2); - --spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); - } - - &.spectrum-Search--sizeS { - --spectrum-search-border-radius: calc(var(--spectrum-component-height-75) / 2); - --spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-75); - } - - &.spectrum-Search--sizeL { - --spectrum-search-border-radius: calc(var(--spectrum-component-height-200) / 2); - --spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-200); - } - - &.spectrum-Search--sizeXL { - --spectrum-search-border-radius: calc(var(--spectrum-component-height-300) / 2); - --spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-300); - } - } -} diff --git a/components/search/themes/spectrum-two.css b/components/search/themes/spectrum-two.css deleted file mode 100644 index 85a34114a0a..00000000000 --- a/components/search/themes/spectrum-two.css +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Search { - --spectrum-search-border-color-default: var(--spectrum-gray-500); - --spectrum-search-border-color-hover: var(--spectrum-gray-600); - --spectrum-search-border-color-focus: var(--spectrum-gray-800); - --spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - - --spectrum-search-background-color: var(--spectrum-gray-25); - - &, - &.spectrum-Search--sizeM { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - } - - &.spectrum-Search--sizeS { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-75); - } - - &.spectrum-Search--sizeL { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-200); - } - - &.spectrum-Search--sizeXL { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-300); - } - } -} diff --git a/components/search/themes/spectrum.css b/components/search/themes/spectrum.css deleted file mode 100644 index 4fd1a9aae94..00000000000 --- a/components/search/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Search { - --spectrum-search-background-color: var(--spectrum-gray-50); - } -} diff --git a/components/sidenav/CHANGELOG.md b/components/sidenav/CHANGELOG.md index 627996a9574..e9a0329d5dc 100644 --- a/components/sidenav/CHANGELOG.md +++ b/components/sidenav/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.2.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 7.0.1 ### Patch Changes @@ -149,16 +158,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.4...@spectrum-css/sidenav@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.4...@spectrum-css/sidenav@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -166,8 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.3...@spectrum-css/sidenav@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.3...@spectrum-css/sidenav@4.2.4) **Note:** Version bump only for package @spectrum-css/sidenav @@ -175,8 +180,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.2...@spectrum-css/sidenav@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.2...@spectrum-css/sidenav@4.2.3) **Note:** Version bump only for package @spectrum-css/sidenav @@ -184,8 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.1...@spectrum-css/sidenav@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.2.1...@spectrum-css/sidenav@4.2.2) **Note:** Version bump only for package @spectrum-css/sidenav @@ -193,8 +196,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/sidenav @@ -202,8 +204,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.1.0...@spectrum-css/sidenav@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.1.0...@spectrum-css/sidenav@4.2.0) **Note:** Version bump only for package @spectrum-css/sidenav @@ -211,8 +212,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.19...@spectrum-css/sidenav@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.19...@spectrum-css/sidenav@4.1.0) ### ✨ Features @@ -222,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.18...@spectrum-css/sidenav@4.0.19) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.18...@spectrum-css/sidenav@4.0.19) **Note:** Version bump only for package @spectrum-css/sidenav @@ -231,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.17...@spectrum-css/sidenav@4.0.18) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.17...@spectrum-css/sidenav@4.0.18) **Note:** Version bump only for package @spectrum-css/sidenav @@ -240,8 +238,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.15...@spectrum-css/sidenav@4.0.17) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.15...@spectrum-css/sidenav@4.0.17) **Note:** Version bump only for package @spectrum-css/sidenav @@ -249,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.15...@spectrum-css/sidenav@4.0.16) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.15...@spectrum-css/sidenav@4.0.16) **Note:** Version bump only for package @spectrum-css/sidenav @@ -258,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.14...@spectrum-css/sidenav@4.0.15) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.14...@spectrum-css/sidenav@4.0.15) ### 🐛 Bug fixes @@ -269,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.13...@spectrum-css/sidenav@4.0.14) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.13...@spectrum-css/sidenav@4.0.14) **Note:** Version bump only for package @spectrum-css/sidenav @@ -278,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.12...@spectrum-css/sidenav@4.0.13) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.12...@spectrum-css/sidenav@4.0.13) **Note:** Version bump only for package @spectrum-css/sidenav @@ -287,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.11...@spectrum-css/sidenav@4.0.12) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.11...@spectrum-css/sidenav@4.0.12) **Note:** Version bump only for package @spectrum-css/sidenav @@ -296,8 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.10...@spectrum-css/sidenav@4.0.11) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.10...@spectrum-css/sidenav@4.0.11) **Note:** Version bump only for package @spectrum-css/sidenav @@ -305,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.9...@spectrum-css/sidenav@4.0.10) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.9...@spectrum-css/sidenav@4.0.10) **Note:** Version bump only for package @spectrum-css/sidenav @@ -314,8 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.8...@spectrum-css/sidenav@4.0.9) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.8...@spectrum-css/sidenav@4.0.9) **Note:** Version bump only for package @spectrum-css/sidenav @@ -323,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.7...@spectrum-css/sidenav@4.0.8) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.7...@spectrum-css/sidenav@4.0.8) **Note:** Version bump only for package @spectrum-css/sidenav @@ -332,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.6...@spectrum-css/sidenav@4.0.7) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.6...@spectrum-css/sidenav@4.0.7) **Note:** Version bump only for package @spectrum-css/sidenav @@ -341,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.5...@spectrum-css/sidenav@4.0.6) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.5...@spectrum-css/sidenav@4.0.6) ### 🔙 Reverts @@ -352,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.4...@spectrum-css/sidenav@4.0.5) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.4...@spectrum-css/sidenav@4.0.5) **Note:** Version bump only for package @spectrum-css/sidenav @@ -361,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.2...@spectrum-css/sidenav@4.0.4) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.2...@spectrum-css/sidenav@4.0.4) **Note:** Version bump only for package @spectrum-css/sidenav @@ -370,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.2...@spectrum-css/sidenav@4.0.3) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.2...@spectrum-css/sidenav@4.0.3) **Note:** Version bump only for package @spectrum-css/sidenav @@ -379,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.1...@spectrum-css/sidenav@4.0.2) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.1...@spectrum-css/sidenav@4.0.2) **Note:** Version bump only for package @spectrum-css/sidenav @@ -388,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.0...@spectrum-css/sidenav@4.0.1) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@4.0.0...@spectrum-css/sidenav@4.0.1) **Note:** Version bump only for package @spectrum-css/sidenav @@ -397,13 +378,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.51...@spectrum-css/sidenav@4.0.0) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.51...@spectrum-css/sidenav@4.0.0) \*feat(sidenav)!: use spectrum-tokens (#1901)([8851dd9](https://github.com/adobe/spectrum-css/commit/8851dd9)), closes[#1901](https://github.com/adobe/spectrum-css/issues/1901) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * Migrates Side Nav to use `@adobe/spectrum-tokens` @@ -510,8 +489,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.51 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.50...@spectrum-css/sidenav@3.0.51) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.50...@spectrum-css/sidenav@3.0.51) **Note:** Version bump only for package @spectrum-css/sidenav @@ -519,8 +497,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.50 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.49...@spectrum-css/sidenav@3.0.50) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.49...@spectrum-css/sidenav@3.0.50) **Note:** Version bump only for package @spectrum-css/sidenav @@ -528,8 +505,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.49 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.48...@spectrum-css/sidenav@3.0.49) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.48...@spectrum-css/sidenav@3.0.49) **Note:** Version bump only for package @spectrum-css/sidenav @@ -537,8 +513,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.48 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.47...@spectrum-css/sidenav@3.0.48) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.47...@spectrum-css/sidenav@3.0.48) ### 🐛 Bug fixes @@ -548,8 +523,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.47 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.46...@spectrum-css/sidenav@3.0.47) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.46...@spectrum-css/sidenav@3.0.47) **Note:** Version bump only for package @spectrum-css/sidenav @@ -557,8 +531,7 @@ This reverts commit a404f9505d8125277ed5eda0312289a0468a527f. ## 3.0.46 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.45...@spectrum-css/sidenav@3.0.46) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/sidenav@3.0.45...@spectrum-css/sidenav@3.0.46) **Note:** Version bump only for package @spectrum-css/sidenav diff --git a/components/sidenav/dist/metadata.json b/components/sidenav/dist/metadata.json index a0be758aa57..0215529e384 100644 --- a/components/sidenav/dist/metadata.json +++ b/components/sidenav/dist/metadata.json @@ -180,15 +180,6 @@ "--spectrum-text-to-visual-100", "--spectrum-workflow-icon-size-100" ], - "system-theme": [ - "--system-side-nav-background-hover", - "--system-side-nav-background-hover-selected", - "--system-side-nav-background-key-focus", - "--system-side-nav-background-key-focus-selected", - "--system-side-nav-item-background-default-selected", - "--system-side-nav-item-background-down", - "--system-side-nav-item-background-down-selected" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-sidenav-background-hover", diff --git a/components/sidenav/index.css b/components/sidenav/index.css index c0b75855d42..f75a07ca5fc 100644 --- a/components/sidenav/index.css +++ b/components/sidenav/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - @media (forced-colors: active) { /* forced-color-adjust: preserve-parent-color addresses svg bug on icon hover */ .spectrum-SideNav { @@ -47,6 +45,15 @@ } .spectrum-SideNav { + --spectrum-sidenav-background-hover: var(--spectrum-gray-100); + --spectrum-sidenav-item-background-down: var(--spectrum-gray-200); + --spectrum-sidenav-background-key-focus: var(--spectrum-gray-100); + + --spectrum-sidenav-item-background-default-selected: var(--spectrum-gray-100); + --spectrum-sidenav-background-hover-selected: var(--spectrum-gray-200); + --spectrum-sidenav-item-background-down-selected: var(--spectrum-gray-200); + --spectrum-sidenav-background-key-focus-selected: var(--spectrum-gray-100); + /* focus indicator */ --spectrum-sidenav-focus-ring-size: var(--spectrum-focus-indicator-thickness); --spectrum-sidenav-focus-ring-gap: var(--spectrum-focus-indicator-gap); @@ -78,6 +85,13 @@ /* color - background */ --spectrum-sidenav-background-disabled: transparent; --spectrum-sidenav-background-default: transparent; + --spectrum-sidenav-background-hover: var(--spectrum-gray-100); + --spectrum-sidenav-item-background-down: var(--spectrum-gray-200); + --spectrum-sidenav-background-key-focus: var(--spectrum-gray-100); + --spectrum-sidenav-item-background-default-selected: var(--spectrum-gray-100); + --spectrum-sidenav-background-hover-selected: var(--spectrum-gray-200); + --spectrum-sidenav-item-background-down-selected: var(--spectrum-gray-200); + --spectrum-sidenav-background-key-focus-selected: var(--spectrum-gray-100); /* color font */ --spectrum-sidenav-header-color: var(--spectrum-gray-600); diff --git a/components/sidenav/package.json b/components/sidenav/package.json index 70658f85478..be03341092d 100644 --- a/components/sidenav/package.json +++ b/components/sidenav/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/sidenav/stories/template.js b/components/sidenav/stories/template.js index 3aa9960e809..d3a832ab03a 100644 --- a/components/sidenav/stories/template.js +++ b/components/sidenav/stories/template.js @@ -7,9 +7,6 @@ import { repeat } from "lit/directives/repeat.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-SideNav", diff --git a/components/sidenav/themes/express.css b/components/sidenav/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/sidenav/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/sidenav/themes/spectrum-two.css b/components/sidenav/themes/spectrum-two.css deleted file mode 100644 index 85869d92dbe..00000000000 --- a/components/sidenav/themes/spectrum-two.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-SideNav { - --spectrum-sidenav-background-hover: var(--spectrum-gray-100); - --spectrum-sidenav-item-background-down: var(--spectrum-gray-200); - --spectrum-sidenav-background-key-focus: var(--spectrum-gray-100); - - --spectrum-sidenav-item-background-default-selected: var(--spectrum-gray-100); - --spectrum-sidenav-background-hover-selected: var(--spectrum-gray-200); - --spectrum-sidenav-item-background-down-selected: var(--spectrum-gray-200); - --spectrum-sidenav-background-key-focus-selected: var(--spectrum-gray-100); - } -} diff --git a/components/sidenav/themes/spectrum.css b/components/sidenav/themes/spectrum.css deleted file mode 100644 index 51828a4d8bf..00000000000 --- a/components/sidenav/themes/spectrum.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-SideNav { - --spectrum-sidenav-background-hover: var(--spectrum-gray-200); - --spectrum-sidenav-item-background-down: var(--spectrum-gray-300); - --spectrum-sidenav-background-key-focus: var(--spectrum-gray-200); - - --spectrum-sidenav-item-background-default-selected: var(--spectrum-gray-200); - --spectrum-sidenav-background-hover-selected: var(--spectrum-gray-300); - --spectrum-sidenav-item-background-down-selected: var(--spectrum-gray-300); - --spectrum-sidenav-background-key-focus-selected: var(--spectrum-gray-200); - } -} diff --git a/components/slider/CHANGELOG.md b/components/slider/CHANGELOG.md index bdb8b62a23f..3b55157cb04 100644 --- a/components/slider/CHANGELOG.md +++ b/components/slider/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 5.5.2-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/stepper@6.3.1-next.0 + ## 6.0.1 ### Patch Changes @@ -201,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.5...@spectrum-css/slider@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.5...@spectrum-css/slider@5.0.0) ### ✨ Features @@ -210,11 +219,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -222,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.4...@spectrum-css/slider@4.3.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.4...@spectrum-css/slider@4.3.5) **Note:** Version bump only for package @spectrum-css/slider @@ -231,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.3...@spectrum-css/slider@4.3.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.3...@spectrum-css/slider@4.3.4) **Note:** Version bump only for package @spectrum-css/slider @@ -240,8 +245,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.2...@spectrum-css/slider@4.3.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.2...@spectrum-css/slider@4.3.3) **Note:** Version bump only for package @spectrum-css/slider @@ -249,8 +253,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.1...@spectrum-css/slider@4.3.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.3.1...@spectrum-css/slider@4.3.2) ### 🐛 Bug fixes @@ -260,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/slider @@ -269,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.3.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.2.1...@spectrum-css/slider@4.3.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.2.1...@spectrum-css/slider@4.3.0) **Note:** Version bump only for package @spectrum-css/slider @@ -278,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.2.0...@spectrum-css/slider@4.2.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.2.0...@spectrum-css/slider@4.2.1) ### 🐛 Bug fixes @@ -289,8 +289,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.19...@spectrum-css/slider@4.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.19...@spectrum-css/slider@4.2.0) ### ✨ Features @@ -300,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.19 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.18...@spectrum-css/slider@4.1.19) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.18...@spectrum-css/slider@4.1.19) ### 🐛 Bug fixes @@ -311,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.18 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.17...@spectrum-css/slider@4.1.18) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.17...@spectrum-css/slider@4.1.18) **Note:** Version bump only for package @spectrum-css/slider @@ -320,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.17 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.15...@spectrum-css/slider@4.1.17) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.15...@spectrum-css/slider@4.1.17) **Note:** Version bump only for package @spectrum-css/slider @@ -329,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.16 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.15...@spectrum-css/slider@4.1.16) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.15...@spectrum-css/slider@4.1.16) **Note:** Version bump only for package @spectrum-css/slider @@ -338,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.15 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.14...@spectrum-css/slider@4.1.15) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.14...@spectrum-css/slider@4.1.15) ### 🐛 Bug fixes @@ -363,8 +357,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.14 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.13...@spectrum-css/slider@4.1.14) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.13...@spectrum-css/slider@4.1.14) **Note:** Version bump only for package @spectrum-css/slider @@ -372,8 +365,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.13 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.12...@spectrum-css/slider@4.1.13) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.12...@spectrum-css/slider@4.1.13) **Note:** Version bump only for package @spectrum-css/slider @@ -381,8 +373,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.12 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.11...@spectrum-css/slider@4.1.12) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.11...@spectrum-css/slider@4.1.12) **Note:** Version bump only for package @spectrum-css/slider @@ -390,8 +381,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.11 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.10...@spectrum-css/slider@4.1.11) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.10...@spectrum-css/slider@4.1.11) **Note:** Version bump only for package @spectrum-css/slider @@ -399,8 +389,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.10 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.9...@spectrum-css/slider@4.1.10) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.9...@spectrum-css/slider@4.1.10) **Note:** Version bump only for package @spectrum-css/slider @@ -408,8 +397,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.9 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.8...@spectrum-css/slider@4.1.9) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.8...@spectrum-css/slider@4.1.9) **Note:** Version bump only for package @spectrum-css/slider @@ -417,8 +405,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.8 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.7...@spectrum-css/slider@4.1.8) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.7...@spectrum-css/slider@4.1.8) **Note:** Version bump only for package @spectrum-css/slider @@ -426,8 +413,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.7 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.6...@spectrum-css/slider@4.1.7) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.6...@spectrum-css/slider@4.1.7) **Note:** Version bump only for package @spectrum-css/slider @@ -435,8 +421,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.6 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.5...@spectrum-css/slider@4.1.6) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.5...@spectrum-css/slider@4.1.6) **Note:** Version bump only for package @spectrum-css/slider @@ -444,8 +429,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.5 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.4...@spectrum-css/slider@4.1.5) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.4...@spectrum-css/slider@4.1.5) ### 🔙 Reverts @@ -455,8 +439,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.4 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.3...@spectrum-css/slider@4.1.4) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.3...@spectrum-css/slider@4.1.4) **Note:** Version bump only for package @spectrum-css/slider @@ -464,8 +447,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.1...@spectrum-css/slider@4.1.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.1...@spectrum-css/slider@4.1.3) **Note:** Version bump only for package @spectrum-css/slider @@ -473,8 +455,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.2 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.1...@spectrum-css/slider@4.1.2) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.1...@spectrum-css/slider@4.1.2) **Note:** Version bump only for package @spectrum-css/slider @@ -482,8 +463,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.1 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.0...@spectrum-css/slider@4.1.1) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.1.0...@spectrum-css/slider@4.1.1) **Note:** Version bump only for package @spectrum-css/slider @@ -491,8 +471,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.1.0 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.19...@spectrum-css/slider@4.1.0) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.19...@spectrum-css/slider@4.1.0) ### ✨ Features @@ -502,8 +481,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.19 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.18...@spectrum-css/slider@4.0.19) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.18...@spectrum-css/slider@4.0.19) **Note:** Version bump only for package @spectrum-css/slider @@ -511,8 +489,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.18 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.17...@spectrum-css/slider@4.0.18) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.17...@spectrum-css/slider@4.0.18) **Note:** Version bump only for package @spectrum-css/slider @@ -520,8 +497,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.17 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.16...@spectrum-css/slider@4.0.17) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.16...@spectrum-css/slider@4.0.17) **Note:** Version bump only for package @spectrum-css/slider @@ -529,8 +505,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.16 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.15...@spectrum-css/slider@4.0.16) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.15...@spectrum-css/slider@4.0.16) **Note:** Version bump only for package @spectrum-css/slider @@ -538,8 +513,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.15 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.14...@spectrum-css/slider@4.0.15) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.14...@spectrum-css/slider@4.0.15) **Note:** Version bump only for package @spectrum-css/slider @@ -547,8 +521,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.14 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.13...@spectrum-css/slider@4.0.14) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.13...@spectrum-css/slider@4.0.14) **Note:** Version bump only for package @spectrum-css/slider @@ -556,8 +529,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.13 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.12...@spectrum-css/slider@4.0.13) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.12...@spectrum-css/slider@4.0.13) **Note:** Version bump only for package @spectrum-css/slider @@ -565,8 +537,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.12 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.11...@spectrum-css/slider@4.0.12) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.11...@spectrum-css/slider@4.0.12) **Note:** Version bump only for package @spectrum-css/slider @@ -574,8 +545,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.11 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.10...@spectrum-css/slider@4.0.11) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.10...@spectrum-css/slider@4.0.11) **Note:** Version bump only for package @spectrum-css/slider @@ -583,8 +553,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.10 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.9...@spectrum-css/slider@4.0.10) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.9...@spectrum-css/slider@4.0.10) **Note:** Version bump only for package @spectrum-css/slider @@ -592,8 +561,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.9 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.8...@spectrum-css/slider@4.0.9) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.8...@spectrum-css/slider@4.0.9) ### 🐛 Bug fixes @@ -603,8 +571,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.8 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.7...@spectrum-css/slider@4.0.8) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.7...@spectrum-css/slider@4.0.8) **Note:** Version bump only for package @spectrum-css/slider @@ -612,8 +579,7 @@ Implementations should also bubble the following class to the `.spectrum-Slider- ## 4.0.7 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.6...@spectrum-css/slider@4.0.7) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/slider@4.0.6...@spectrum-css/slider@4.0.7) **Note:** Version bump only for package @spectrum-css/slider diff --git a/components/slider/dist/metadata.json b/components/slider/dist/metadata.json index 9cc5b6e39fa..78f17a358a4 100644 --- a/components/slider/dist/metadata.json +++ b/components/slider/dist/metadata.json @@ -84,7 +84,6 @@ ".spectrum-Slider.is-disabled.spectrum-Slider--range .spectrum-Slider-track:not(:first-of-type, :last-of-type):before", ".spectrum-Slider.spectrum-Slider--ramp .spectrum-Slider-handle", ".spectrum-Slider.spectrum-Slider--sizeL", - ".spectrum-Slider.spectrum-Slider--sizeM", ".spectrum-Slider.spectrum-Slider--sizeS", ".spectrum-Slider.spectrum-Slider--sizeXL", ".spectrum-Slider:dir(rtl)", @@ -259,29 +258,6 @@ "--spectrum-spacing-900", "--spectrum-text-to-visual-75" ], - "system-theme": [ - "--system-slider-handle-background-color", - "--system-slider-handle-background-color-disabled", - "--system-slider-handle-border-color", - "--system-slider-handle-border-color-down", - "--system-slider-handle-border-color-hover", - "--system-slider-handle-border-color-key-focus", - "--system-slider-handle-border-radius", - "--system-slider-handle-disabled-background-color", - "--system-slider-handle-focus-ring-color-key-focus", - "--system-slider-ramp-handle-background-color", - "--system-slider-ramp-track-color", - "--system-slider-ramp-track-color-disabled", - "--system-slider-size-l-handle-border-radius", - "--system-slider-size-m-handle-border-radius", - "--system-slider-size-s-handle-border-radius", - "--system-slider-size-xl-handle-border-radius", - "--system-slider-tick-mark-color", - "--system-slider-ticks-handle-background-color", - "--system-slider-track-color", - "--system-slider-track-corner-radius", - "--system-slider-track-fill-color" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-slider-filled-track-fill-color", diff --git a/components/slider/index.css b/components/slider/index.css index b0e907d2132..7d78b6adb38 100644 --- a/components/slider/index.css +++ b/components/slider/index.css @@ -11,9 +11,42 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Slider { + --spectrum-slider-track-color: var(--spectrum-gray-200); + --spectrum-slider-track-fill-color: var(--spectrum-gray-700); + --spectrum-slider-ramp-track-color: var(--spectrum-gray-400); + --spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-100); + + --spectrum-slider-handle-background-color: transparent; + --spectrum-slider-handle-background-color-disabled: transparent; + --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-75); + --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-75); + --spectrum-slider-handle-border-color: var(--spectrum-gray-700); + --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-75); + + --spectrum-slider-tick-mark-color: var(--spectrum-gray-200); + + --spectrum-slider-handle-border-color-hover: var(--spectrum-gray-800); + --spectrum-slider-handle-border-color-down: var(--spectrum-gray-800); + --spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-800); + --spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); + + --spectrum-slider-track-corner-radius: 2px; + + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); + + &.spectrum-Slider--sizeS { + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); + } + + &.spectrum-Slider--sizeL { + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); + } + + &.spectrum-Slider--sizeXL { + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); + } + /* default sizing, matches t-shirt size M */ --spectrum-slider-font-size: var(--spectrum-font-size-75); --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-medium); @@ -43,6 +76,10 @@ --spectrum-slider-tick-handle-background-color: var(--spectrum-gray-100); /* colors */ + --spectrum-slider-track-color: var(--spectrum-gray-200); + --spectrum-slider-track-fill-color: var(--spectrum-gray-700); + --spectrum-slider-ramp-track-color: var(--spectrum-gray-400); + --spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-100); --spectrum-slider-track-color-disabled: var(--spectrum-disabled-background-color); --spectrum-slider-track-fill-color-disabled: var(--spectrum-disabled-background-color); --spectrum-slider-handle-border-color-disabled: var(--spectrum-disabled-border-color); @@ -51,6 +88,19 @@ --spectrum-slider-label-text-color-disabled: var(--spectrum-disabled-content-color); --spectrum-slider-tick-mark-color-disabled: var(--spectrum-disabled-background-color); --spectrum-slider-ramp-handle-border-color-active: var(--spectrum-gray-100); + --spectrum-slider-handle-background-color: transparent; + --spectrum-slider-handle-background-color-disabled: transparent; + --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-75); + --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-75); + --spectrum-slider-handle-border-color: var(--spectrum-gray-700); + --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-75); + --spectrum-slider-tick-mark-color: var(--spectrum-gray-200); + + + --spectrum-slider-handle-border-color-hover: var(--spectrum-gray-800); + --spectrum-slider-handle-border-color-down: var(--spectrum-gray-800); + --spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-800); + --spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); /* values */ --spectrum-slider-input-left: calc(var(--spectrum-slider-handle-margin-left) / 4); @@ -58,6 +108,10 @@ --spectrum-slider-range-track-reset: 0; + --spectrum-slider-track-corner-radius: 2px; + + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); + position: relative; /* Don't let z-index'd child elements float above other things on the page */ @@ -85,6 +139,7 @@ --spectrum-slider-label-top-to-text: var(--spectrum-component-top-to-text-75); --spectrum-slider-control-to-field-label: var(--spectrum-slider-control-to-field-label-small); --spectrum-slider-value-side-padding-inline: var(--spectrum-spacing-100); + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); } .spectrum-Slider--sizeL { @@ -95,6 +150,7 @@ --spectrum-slider-label-top-to-text: var(--spectrum-component-top-to-text-100); --spectrum-slider-control-to-field-label: var(--spectrum-slider-control-to-field-label-large); --spectrum-slider-value-side-padding-inline: var(--spectrum-spacing-200); + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); /* TODO: placeholder value for sideLabel variant value width */ --spectrum-slider-value-inline-size: 18px; @@ -108,6 +164,7 @@ --spectrum-slider-label-top-to-text: var(--spectrum-component-top-to-text-200); --spectrum-slider-control-to-field-label: var(--spectrum-slider-control-to-field-label-extra-large); --spectrum-slider-value-side-padding-inline: var(--spectrum-spacing-200); + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); /* TODO: placeholder value for sideLabel variant value width */ --spectrum-slider-value-inline-size: 22px; diff --git a/components/slider/package.json b/components/slider/package.json index 315ef6fb44f..15a0d67b845 100644 --- a/components/slider/package.json +++ b/components/slider/package.json @@ -26,15 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/stepper": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/stepper": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/slider/stories/template.js b/components/slider/stories/template.js index becef6ade92..bc625452855 100644 --- a/components/slider/stories/template.js +++ b/components/slider/stories/template.js @@ -7,9 +7,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Slider", diff --git a/components/slider/themes/express.css b/components/slider/themes/express.css deleted file mode 100644 index f9f149f4d93..00000000000 --- a/components/slider/themes/express.css +++ /dev/null @@ -1,39 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Slider { - --spectrum-slider-track-color: var(--spectrum-gray-200); - --spectrum-slider-track-fill-color: var(--spectrum-gray-600); - --spectrum-slider-ramp-track-color: var(--spectrum-gray-300); - --spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - - --spectrum-slider-handle-background-color: var(--spectrum-gray-50); - --spectrum-slider-handle-background-color-disabled: var(--spectrum-gray-50); - --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-50); - --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-50); - --spectrum-slider-handle-border-color: var(--spectrum-gray-800); - --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-50); - - --spectrum-slider-tick-mark-color: var(--spectrum-gray-200); - - --spectrum-slider-handle-border-color-hover: var(--spectrum-gray-900); - --spectrum-slider-handle-border-color-down: var(--spectrum-gray-900); - --spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-900); - --spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); - } -} diff --git a/components/slider/themes/spectrum-two.css b/components/slider/themes/spectrum-two.css deleted file mode 100644 index b118d77cffd..00000000000 --- a/components/slider/themes/spectrum-two.css +++ /dev/null @@ -1,54 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Slider { - --spectrum-slider-track-color: var(--spectrum-gray-200); - --spectrum-slider-track-fill-color: var(--spectrum-gray-700); - --spectrum-slider-ramp-track-color: var(--spectrum-gray-400); - --spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-100); - - --spectrum-slider-handle-background-color: transparent; - --spectrum-slider-handle-background-color-disabled: transparent; - --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-75); - --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-75); - --spectrum-slider-handle-border-color: var(--spectrum-gray-700); - --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-75); - - --spectrum-slider-tick-mark-color: var(--spectrum-gray-200); - - --spectrum-slider-handle-border-color-hover: var(--spectrum-gray-800); - --spectrum-slider-handle-border-color-down: var(--spectrum-gray-800); - --spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-800); - --spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); - - --spectrum-slider-track-corner-radius: 2px; - - &, - &.spectrum-Slider--sizeM { - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); - } - - &.spectrum-Slider--sizeS { - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-500); - } - - &.spectrum-Slider--sizeL { - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); - } - - &.spectrum-Slider--sizeXL { - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-500) * 4); - } - } -} diff --git a/components/slider/themes/spectrum.css b/components/slider/themes/spectrum.css deleted file mode 100644 index f411427cc8d..00000000000 --- a/components/slider/themes/spectrum.css +++ /dev/null @@ -1,45 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Slider { - --spectrum-slider-track-color: var(--spectrum-gray-300); - --spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-100); - --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-100); - --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-100); - --spectrum-slider-tick-mark-color: var(--spectrum-gray-300); - --spectrum-slider-track-corner-radius: var(--spectrum-corner-radius-75); - - &, - &.spectrum-Slider--sizeM { - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); - } - - &.spectrum-Slider--sizeS { - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); - } - - &.spectrum-Slider--sizeL { - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); - } - - &.spectrum-Slider--sizeXL { - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); - } - } -} diff --git a/components/splitview/CHANGELOG.md b/components/splitview/CHANGELOG.md index 91517c37f4f..d7aa881ea73 100644 --- a/components/splitview/CHANGELOG.md +++ b/components/splitview/CHANGELOG.md @@ -128,16 +128,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.4...@spectrum-css/splitview@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.4...@spectrum-css/splitview@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -145,8 +141,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.3...@spectrum-css/splitview@4.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.3...@spectrum-css/splitview@4.2.4) **Note:** Version bump only for package @spectrum-css/splitview @@ -154,8 +149,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.2...@spectrum-css/splitview@4.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.2...@spectrum-css/splitview@4.2.3) **Note:** Version bump only for package @spectrum-css/splitview @@ -163,8 +157,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.1...@spectrum-css/splitview@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.2.1...@spectrum-css/splitview@4.2.2) **Note:** Version bump only for package @spectrum-css/splitview @@ -172,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/splitview @@ -181,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.1.0...@spectrum-css/splitview@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.1.0...@spectrum-css/splitview@4.2.0) **Note:** Version bump only for package @spectrum-css/splitview @@ -190,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.10...@spectrum-css/splitview@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.10...@spectrum-css/splitview@4.1.0) ### ✨ Features @@ -201,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.9...@spectrum-css/splitview@4.0.10) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.9...@spectrum-css/splitview@4.0.10) **Note:** Version bump only for package @spectrum-css/splitview @@ -210,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.8...@spectrum-css/splitview@4.0.9) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.8...@spectrum-css/splitview@4.0.9) **Note:** Version bump only for package @spectrum-css/splitview @@ -219,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.6...@spectrum-css/splitview@4.0.8) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.6...@spectrum-css/splitview@4.0.8) **Note:** Version bump only for package @spectrum-css/splitview @@ -228,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.6...@spectrum-css/splitview@4.0.7) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.6...@spectrum-css/splitview@4.0.7) **Note:** Version bump only for package @spectrum-css/splitview @@ -237,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.5...@spectrum-css/splitview@4.0.6) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.5...@spectrum-css/splitview@4.0.6) **Note:** Version bump only for package @spectrum-css/splitview @@ -246,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.4...@spectrum-css/splitview@4.0.5) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.4...@spectrum-css/splitview@4.0.5) **Note:** Version bump only for package @spectrum-css/splitview @@ -255,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.3...@spectrum-css/splitview@4.0.4) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.3...@spectrum-css/splitview@4.0.4) **Note:** Version bump only for package @spectrum-css/splitview @@ -264,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.2...@spectrum-css/splitview@4.0.3) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.2...@spectrum-css/splitview@4.0.3) **Note:** Version bump only for package @spectrum-css/splitview @@ -273,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.1...@spectrum-css/splitview@4.0.2) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.1...@spectrum-css/splitview@4.0.2) **Note:** Version bump only for package @spectrum-css/splitview @@ -282,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.0...@spectrum-css/splitview@4.0.1) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@4.0.0...@spectrum-css/splitview@4.0.1) **Note:** Version bump only for package @spectrum-css/splitview @@ -291,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.48...@spectrum-css/splitview@4.0.0) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.48...@spectrum-css/splitview@4.0.0) ### 🔙 Reverts @@ -300,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat(splitview)!: migrate to spectrum tokens (#2103)([4f39c5d](https://github.com/adobe/spectrum-css/commit/4f39c5d)), closes[#2103](https://github.com/adobe/spectrum-css/issues/2103) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates SplitView to use `@adobe/spectrum-tokens` @@ -327,8 +305,7 @@ fix max nesting depth ## 3.0.48 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.47...@spectrum-css/splitview@3.0.48) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.47...@spectrum-css/splitview@3.0.48) **Note:** Version bump only for package @spectrum-css/splitview @@ -336,8 +313,7 @@ fix max nesting depth ## 3.0.47 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.46...@spectrum-css/splitview@3.0.47) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.46...@spectrum-css/splitview@3.0.47) **Note:** Version bump only for package @spectrum-css/splitview @@ -345,8 +321,7 @@ fix max nesting depth ## 3.0.46 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.45...@spectrum-css/splitview@3.0.46) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.45...@spectrum-css/splitview@3.0.46) **Note:** Version bump only for package @spectrum-css/splitview @@ -354,8 +329,7 @@ fix max nesting depth ## 3.0.45 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.44...@spectrum-css/splitview@3.0.45) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.44...@spectrum-css/splitview@3.0.45) **Note:** Version bump only for package @spectrum-css/splitview @@ -363,8 +337,7 @@ fix max nesting depth ## 3.0.44 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.43...@spectrum-css/splitview@3.0.44) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.43...@spectrum-css/splitview@3.0.44) ### 🐛 Bug fixes @@ -374,8 +347,7 @@ fix max nesting depth ## 3.0.43 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.42...@spectrum-css/splitview@3.0.43) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.42...@spectrum-css/splitview@3.0.43) **Note:** Version bump only for package @spectrum-css/splitview @@ -383,8 +355,7 @@ fix max nesting depth ## 3.0.42 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.41...@spectrum-css/splitview@3.0.42) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/splitview@3.0.41...@spectrum-css/splitview@3.0.42) **Note:** Version bump only for package @spectrum-css/splitview diff --git a/components/splitview/dist/metadata.json b/components/splitview/dist/metadata.json index 4902e8e2368..c6925723f7c 100644 --- a/components/splitview/dist/metadata.json +++ b/components/splitview/dist/metadata.json @@ -81,11 +81,6 @@ "--spectrum-gray-75", "--spectrum-gray-800" ], - "system-theme": [ - "--system-split-view-background-color", - "--system-split-view-gripper-border-radius", - "--system-split-view-handle-background-color" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-splitview-handle-background-color", diff --git a/components/splitview/index.css b/components/splitview/index.css index 81ca706a34d..990108806d3 100644 --- a/components/splitview/index.css +++ b/components/splitview/index.css @@ -11,9 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-SplitView { + --spectrum-splitview-background-color: var(--spectrum-gray-75); + --spectrum-splitview-handle-background-color: var(--spectrum-gray-200); + --spectrum-splitview-gripper-border-radius: 2px; + --spectrum-splitview-vertical-width: 100%; --spectrum-splitview-vertical-gripper-width: 50%; --spectrum-splitview-vertical-gripper-outer-width: 100%; diff --git a/components/splitview/package.json b/components/splitview/package.json index 144485f6191..1689b0731d9 100644 --- a/components/splitview/package.json +++ b/components/splitview/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/splitview/stories/template.js b/components/splitview/stories/template.js index 4fb08b911dd..aacdd00a3e7 100644 --- a/components/splitview/stories/template.js +++ b/components/splitview/stories/template.js @@ -3,9 +3,6 @@ import { classMap } from "lit/directives/class-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-SplitView", diff --git a/components/splitview/themes/express.css b/components/splitview/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/splitview/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/splitview/themes/spectrum-two.css b/components/splitview/themes/spectrum-two.css deleted file mode 100644 index 14ef6131e5a..00000000000 --- a/components/splitview/themes/spectrum-two.css +++ /dev/null @@ -1,20 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-SplitView { - --spectrum-splitview-background-color: var(--spectrum-gray-75); - --spectrum-splitview-handle-background-color: var(--spectrum-gray-200); - --spectrum-splitview-gripper-border-radius: 2px; - } -} diff --git a/components/splitview/themes/spectrum.css b/components/splitview/themes/spectrum.css deleted file mode 100644 index 209e46a4b3b..00000000000 --- a/components/splitview/themes/spectrum.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-SplitView { - --spectrum-splitview-background-color: var(--spectrum-gray-100); - --spectrum-splitview-handle-background-color: var(--spectrum-gray-300); - --spectrum-splitview-gripper-border-radius: var(--spectrum-corner-radius-75); - } -} diff --git a/components/statuslight/CHANGELOG.md b/components/statuslight/CHANGELOG.md index 3e79ee85ebc..065b9289ee5 100644 --- a/components/statuslight/CHANGELOG.md +++ b/components/statuslight/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 8.0.0-next.0 + +### Major Changes + +- [#2818](https://github.com/adobe/spectrum-css/pull/2818) [`2f8ef28`](https://github.com/adobe/spectrum-css/commit/2f8ef28aa58063553de30026de81bbc965e91157) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Spectrum 2 Status light migration + + New non-semantic colors were added to the variants list, while the `accent` semantic variant was removed. There were also some new and updated color and text-to-visual tokens used to match the designs, along with normalizing font family, font style, and font weight. + + New mods added: + + - `--mod-statuslight-font-family` + - `--mod-statuslight-font-style` + - `--mod-statuslight-nonsemantic-brown-color` + - `--mod-statuslight-nonsemantic-cinnamon-color` + - `--mod-statuslight-nonsemantic-pink-color` + - `--mod-statuslight-nonsemantic-silver-color` + - `--mod-statuslight-nonsemantic-turquoise-color` + + Removed mods: + + - `--mod-statuslight-semantic-accent-color` + ## 9.0.1 ### Patch Changes @@ -134,16 +156,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.6...@spectrum-css/statuslight@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.6...@spectrum-css/statuslight@7.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -151,8 +170,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.5...@spectrum-css/statuslight@6.1.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.5...@spectrum-css/statuslight@6.1.6) **Note:** Version bump only for package @spectrum-css/statuslight @@ -160,8 +178,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.4...@spectrum-css/statuslight@6.1.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.4...@spectrum-css/statuslight@6.1.5) **Note:** Version bump only for package @spectrum-css/statuslight @@ -169,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.3...@spectrum-css/statuslight@6.1.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.3...@spectrum-css/statuslight@6.1.4) **Note:** Version bump only for package @spectrum-css/statuslight @@ -178,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.2...@spectrum-css/statuslight@6.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.2...@spectrum-css/statuslight@6.1.3) **Note:** Version bump only for package @spectrum-css/statuslight @@ -187,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.1...@spectrum-css/statuslight@6.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.1.1...@spectrum-css/statuslight@6.1.2) **Note:** Version bump only for package @spectrum-css/statuslight @@ -196,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/statuslight @@ -205,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.62...@spectrum-css/statuslight@6.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.62...@spectrum-css/statuslight@6.1.0) ### ✨ Features @@ -216,8 +228,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.62 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.61...@spectrum-css/statuslight@6.0.62) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.61...@spectrum-css/statuslight@6.0.62) **Note:** Version bump only for package @spectrum-css/statuslight @@ -225,8 +236,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.61 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.60...@spectrum-css/statuslight@6.0.61) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.60...@spectrum-css/statuslight@6.0.61) **Note:** Version bump only for package @spectrum-css/statuslight @@ -234,8 +244,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.60 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.58...@spectrum-css/statuslight@6.0.60) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.58...@spectrum-css/statuslight@6.0.60) **Note:** Version bump only for package @spectrum-css/statuslight @@ -243,8 +252,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.59 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.58...@spectrum-css/statuslight@6.0.59) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.58...@spectrum-css/statuslight@6.0.59) **Note:** Version bump only for package @spectrum-css/statuslight @@ -252,8 +260,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.58 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.57...@spectrum-css/statuslight@6.0.58) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.57...@spectrum-css/statuslight@6.0.58) **Note:** Version bump only for package @spectrum-css/statuslight @@ -261,8 +268,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.57 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.56...@spectrum-css/statuslight@6.0.57) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.56...@spectrum-css/statuslight@6.0.57) **Note:** Version bump only for package @spectrum-css/statuslight @@ -270,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.56 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.55...@spectrum-css/statuslight@6.0.56) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.55...@spectrum-css/statuslight@6.0.56) **Note:** Version bump only for package @spectrum-css/statuslight @@ -279,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.55 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.54...@spectrum-css/statuslight@6.0.55) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.54...@spectrum-css/statuslight@6.0.55) **Note:** Version bump only for package @spectrum-css/statuslight @@ -288,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.54 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.53...@spectrum-css/statuslight@6.0.54) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.53...@spectrum-css/statuslight@6.0.54) **Note:** Version bump only for package @spectrum-css/statuslight @@ -297,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.53 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.52...@spectrum-css/statuslight@6.0.53) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.52...@spectrum-css/statuslight@6.0.53) **Note:** Version bump only for package @spectrum-css/statuslight @@ -306,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.52 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.51...@spectrum-css/statuslight@6.0.52) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.51...@spectrum-css/statuslight@6.0.52) **Note:** Version bump only for package @spectrum-css/statuslight @@ -315,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.51 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.50...@spectrum-css/statuslight@6.0.51) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.50...@spectrum-css/statuslight@6.0.51) **Note:** Version bump only for package @spectrum-css/statuslight @@ -324,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.50 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.49...@spectrum-css/statuslight@6.0.50) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.49...@spectrum-css/statuslight@6.0.50) **Note:** Version bump only for package @spectrum-css/statuslight @@ -333,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.49 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.48...@spectrum-css/statuslight@6.0.49) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.48...@spectrum-css/statuslight@6.0.49) ### 🔙 Reverts @@ -344,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.48 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.47...@spectrum-css/statuslight@6.0.48) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.47...@spectrum-css/statuslight@6.0.48) **Note:** Version bump only for package @spectrum-css/statuslight @@ -353,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.47 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.45...@spectrum-css/statuslight@6.0.47) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.45...@spectrum-css/statuslight@6.0.47) **Note:** Version bump only for package @spectrum-css/statuslight @@ -362,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.46 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.45...@spectrum-css/statuslight@6.0.46) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.45...@spectrum-css/statuslight@6.0.46) **Note:** Version bump only for package @spectrum-css/statuslight @@ -371,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.45 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.44...@spectrum-css/statuslight@6.0.45) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.44...@spectrum-css/statuslight@6.0.45) **Note:** Version bump only for package @spectrum-css/statuslight @@ -380,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.44 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.43...@spectrum-css/statuslight@6.0.44) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.43...@spectrum-css/statuslight@6.0.44) **Note:** Version bump only for package @spectrum-css/statuslight @@ -389,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.43 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.42...@spectrum-css/statuslight@6.0.43) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.42...@spectrum-css/statuslight@6.0.43) **Note:** Version bump only for package @spectrum-css/statuslight @@ -398,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.42 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.41...@spectrum-css/statuslight@6.0.42) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.41...@spectrum-css/statuslight@6.0.42) **Note:** Version bump only for package @spectrum-css/statuslight @@ -407,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.41 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.40...@spectrum-css/statuslight@6.0.41) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.40...@spectrum-css/statuslight@6.0.41) **Note:** Version bump only for package @spectrum-css/statuslight @@ -416,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.40 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.39...@spectrum-css/statuslight@6.0.40) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.39...@spectrum-css/statuslight@6.0.40) **Note:** Version bump only for package @spectrum-css/statuslight @@ -425,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.39 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.38...@spectrum-css/statuslight@6.0.39) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.38...@spectrum-css/statuslight@6.0.39) **Note:** Version bump only for package @spectrum-css/statuslight @@ -434,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.38 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.37...@spectrum-css/statuslight@6.0.38) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.37...@spectrum-css/statuslight@6.0.38) **Note:** Version bump only for package @spectrum-css/statuslight @@ -443,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.37 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.36...@spectrum-css/statuslight@6.0.37) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.36...@spectrum-css/statuslight@6.0.37) **Note:** Version bump only for package @spectrum-css/statuslight @@ -452,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.36 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.35...@spectrum-css/statuslight@6.0.36) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.35...@spectrum-css/statuslight@6.0.36) **Note:** Version bump only for package @spectrum-css/statuslight @@ -461,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.35 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.34...@spectrum-css/statuslight@6.0.35) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.34...@spectrum-css/statuslight@6.0.35) **Note:** Version bump only for package @spectrum-css/statuslight @@ -470,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.34 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.33...@spectrum-css/statuslight@6.0.34) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.33...@spectrum-css/statuslight@6.0.34) ### 🐛 Bug fixes @@ -481,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.33 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.32...@spectrum-css/statuslight@6.0.33) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.32...@spectrum-css/statuslight@6.0.33) **Note:** Version bump only for package @spectrum-css/statuslight @@ -490,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.32 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.31...@spectrum-css/statuslight@6.0.32) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/statuslight@6.0.31...@spectrum-css/statuslight@6.0.32) **Note:** Version bump only for package @spectrum-css/statuslight diff --git a/components/statuslight/dist/metadata.json b/components/statuslight/dist/metadata.json index 7c7c6a7587f..f48621da4c8 100644 --- a/components/statuslight/dist/metadata.json +++ b/components/statuslight/dist/metadata.json @@ -2,10 +2,11 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-StatusLight", - ".spectrum-StatusLight--accent:before", ".spectrum-StatusLight--blue:before", + ".spectrum-StatusLight--brown:before", ".spectrum-StatusLight--celery:before", ".spectrum-StatusLight--chartreuse:before", + ".spectrum-StatusLight--cinnamon:before", ".spectrum-StatusLight--cyan:before", ".spectrum-StatusLight--fuchsia:before", ".spectrum-StatusLight--gray:before", @@ -18,14 +19,16 @@ ".spectrum-StatusLight--neutral:before", ".spectrum-StatusLight--notice:before", ".spectrum-StatusLight--orange:before", + ".spectrum-StatusLight--pink:before", ".spectrum-StatusLight--positive:before", ".spectrum-StatusLight--purple:before", ".spectrum-StatusLight--red:before", ".spectrum-StatusLight--seafoam:before", + ".spectrum-StatusLight--silver:before", ".spectrum-StatusLight--sizeL", - ".spectrum-StatusLight--sizeM", ".spectrum-StatusLight--sizeS", ".spectrum-StatusLight--sizeXL", + ".spectrum-StatusLight--turquoise:before", ".spectrum-StatusLight--yellow:before", ".spectrum-StatusLight:before", ".spectrum-StatusLight:lang(ja)", @@ -37,14 +40,18 @@ "--mod-statuslight-content-color-default", "--mod-statuslight-corner-radius", "--mod-statuslight-dot-size", + "--mod-statuslight-font-family", "--mod-statuslight-font-size", + "--mod-statuslight-font-style", "--mod-statuslight-font-weight", "--mod-statuslight-height", "--mod-statuslight-line-height", "--mod-statuslight-line-height-cjk", "--mod-statuslight-nonsemantic-blue-color", + "--mod-statuslight-nonsemantic-brown-color", "--mod-statuslight-nonsemantic-celery-color", "--mod-statuslight-nonsemantic-chartreuse-color", + "--mod-statuslight-nonsemantic-cinnamon-color", "--mod-statuslight-nonsemantic-cyan-color", "--mod-statuslight-nonsemantic-fuchsia-color", "--mod-statuslight-nonsemantic-gray-color", @@ -52,11 +59,13 @@ "--mod-statuslight-nonsemantic-indigo-color", "--mod-statuslight-nonsemantic-magenta-color", "--mod-statuslight-nonsemantic-orange-color", + "--mod-statuslight-nonsemantic-pink-color", "--mod-statuslight-nonsemantic-purple-color", "--mod-statuslight-nonsemantic-red-color", "--mod-statuslight-nonsemantic-seafoam-color", + "--mod-statuslight-nonsemantic-silver-color", + "--mod-statuslight-nonsemantic-turquoise-color", "--mod-statuslight-nonsemantic-yellow-color", - "--mod-statuslight-semantic-accent-color", "--mod-statuslight-semantic-info-color", "--mod-statuslight-semantic-negative-color", "--mod-statuslight-semantic-neutral-color", @@ -73,6 +82,10 @@ "--spectrum-status-light-dot-size-large", "--spectrum-status-light-dot-size-medium", "--spectrum-status-light-dot-size-small", + "--spectrum-status-light-text-to-visual-100", + "--spectrum-status-light-text-to-visual-200", + "--spectrum-status-light-text-to-visual-300", + "--spectrum-status-light-text-to-visual-75", "--spectrum-status-light-top-to-dot-extra-large", "--spectrum-status-light-top-to-dot-large", "--spectrum-status-light-top-to-dot-medium", @@ -81,14 +94,18 @@ "--spectrum-statuslight-content-color-default", "--spectrum-statuslight-corner-radius", "--spectrum-statuslight-dot-size", + "--spectrum-statuslight-font-family", "--spectrum-statuslight-font-size", + "--spectrum-statuslight-font-style", "--spectrum-statuslight-font-weight", "--spectrum-statuslight-height", "--spectrum-statuslight-line-height", "--spectrum-statuslight-line-height-cjk", "--spectrum-statuslight-nonsemantic-blue-color", + "--spectrum-statuslight-nonsemantic-brown-color", "--spectrum-statuslight-nonsemantic-celery-color", "--spectrum-statuslight-nonsemantic-chartreuse-color", + "--spectrum-statuslight-nonsemantic-cinnamon-color", "--spectrum-statuslight-nonsemantic-cyan-color", "--spectrum-statuslight-nonsemantic-fuchsia-color", "--spectrum-statuslight-nonsemantic-gray-color", @@ -96,9 +113,12 @@ "--spectrum-statuslight-nonsemantic-indigo-color", "--spectrum-statuslight-nonsemantic-magenta-color", "--spectrum-statuslight-nonsemantic-orange-color", + "--spectrum-statuslight-nonsemantic-pink-color", "--spectrum-statuslight-nonsemantic-purple-color", "--spectrum-statuslight-nonsemantic-red-color", "--spectrum-statuslight-nonsemantic-seafoam-color", + "--spectrum-statuslight-nonsemantic-silver-color", + "--spectrum-statuslight-nonsemantic-turquoise-color", "--spectrum-statuslight-nonsemantic-yellow-color", "--spectrum-statuslight-semantic-accent-color", "--spectrum-statuslight-semantic-info-color", @@ -117,8 +137,10 @@ "--spectrum-accent-visual-color", "--spectrum-blue-visual-color", "--spectrum-border-width-100", + "--spectrum-brown-visual-color", "--spectrum-celery-visual-color", "--spectrum-chartreuse-visual-color", + "--spectrum-cinnamon-visual-color", "--spectrum-cjk-line-height-100", "--spectrum-component-bottom-to-text-100", "--spectrum-component-bottom-to-text-200", @@ -132,12 +154,16 @@ "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", + "--spectrum-corner-radius-full", "--spectrum-cyan-visual-color", + "--spectrum-default-font-family", + "--spectrum-default-font-style", "--spectrum-font-size-100", "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", "--spectrum-fuchsia-visual-color", + "--spectrum-gray-600", "--spectrum-gray-visual-color", "--spectrum-green-visual-color", "--spectrum-indigo-visual-color", @@ -150,17 +176,16 @@ "--spectrum-neutral-visual-color", "--spectrum-notice-visual-color", "--spectrum-orange-visual-color", + "--spectrum-pink-visual-color", "--spectrum-positive-visual-color", "--spectrum-purple-visual-color", "--spectrum-red-visual-color", + "--spectrum-regular-font-weight", "--spectrum-seafoam-visual-color", - "--spectrum-text-to-visual-100", - "--spectrum-text-to-visual-200", - "--spectrum-text-to-visual-300", - "--spectrum-text-to-visual-75", + "--spectrum-silver-visual-color", + "--spectrum-turquoise-visual-color", "--spectrum-yellow-visual-color" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-statuslight-content-color-default", diff --git a/components/statuslight/index.css b/components/statuslight/index.css index aed7e351d88..f1788a51779 100644 --- a/components/statuslight/index.css +++ b/components/statuslight/index.css @@ -11,17 +11,57 @@ * governing permissions and limitations under the License. */ -.spectrum-StatusLight, -.spectrum-StatusLight--sizeM { +.spectrum-StatusLight { + /* Static tokens */ + --spectrum-statuslight-corner-radius: var(--spectrum-corner-radius-full); + --spectrum-statuslight-border-width: var(--spectrum-border-width-100); + + /* Size */ --spectrum-statuslight-height: var(--spectrum-component-height-100); --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-medium); + --spectrum-statuslight-line-height: var(--spectrum-line-height-100); + --spectrum-statuslight-line-height-cjk: var(--spectrum-cjk-line-height-100); + /* Font */ + --spectrum-statuslight-font-family: var(--spectrum-default-font-family); + --spectrum-statuslight-font-weight: var(--spectrum-regular-font-weight); + --spectrum-statuslight-font-style: var(--spectrum-default-font-style); --spectrum-statuslight-font-size: var(--spectrum-font-size-100); - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-text-to-visual-100); + /* Space */ + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-status-light-text-to-visual-100); --spectrum-statuslight-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-medium); --spectrum-statuslight-spacing-top-to-label: var(--spectrum-component-top-to-text-100); --spectrum-statuslight-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); + + /* Color */ + --spectrum-statuslight-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-statuslight-subdued-content-color-default: var(--spectrum-gray-600); + --spectrum-statuslight-semantic-neutral-color: var(--spectrum-neutral-visual-color); + --spectrum-statuslight-semantic-negative-color: var(--spectrum-negative-visual-color); + --spectrum-statuslight-semantic-info-color: var(--spectrum-informative-visual-color); + --spectrum-statuslight-semantic-notice-color: var(--spectrum-notice-visual-color); + --spectrum-statuslight-semantic-positive-color: var(--spectrum-positive-visual-color); + + --spectrum-statuslight-nonsemantic-gray-color: var(--spectrum-gray-visual-color); + --spectrum-statuslight-nonsemantic-red-color: var(--spectrum-red-visual-color); + --spectrum-statuslight-nonsemantic-orange-color: var(--spectrum-orange-visual-color); + --spectrum-statuslight-nonsemantic-yellow-color: var(--spectrum-yellow-visual-color); + --spectrum-statuslight-nonsemantic-chartreuse-color: var(--spectrum-chartreuse-visual-color); + --spectrum-statuslight-nonsemantic-celery-color: var(--spectrum-celery-visual-color); + --spectrum-statuslight-nonsemantic-green-color: var(--spectrum-green-visual-color); + --spectrum-statuslight-nonsemantic-seafoam-color: var(--spectrum-seafoam-visual-color); + --spectrum-statuslight-nonsemantic-cyan-color: var(--spectrum-cyan-visual-color); + --spectrum-statuslight-nonsemantic-blue-color: var(--spectrum-blue-visual-color); + --spectrum-statuslight-nonsemantic-indigo-color: var(--spectrum-indigo-visual-color); + --spectrum-statuslight-nonsemantic-purple-color: var(--spectrum-purple-visual-color); + --spectrum-statuslight-nonsemantic-fuchsia-color: var(--spectrum-fuchsia-visual-color); + --spectrum-statuslight-nonsemantic-magenta-color: var(--spectrum-magenta-visual-color); + --spectrum-statuslight-nonsemantic-pink-color: var(--spectrum-pink-visual-color); + --spectrum-statuslight-nonsemantic-turquoise-color: var(--spectrum-turquoise-visual-color); + --spectrum-statuslight-nonsemantic-cinnamon-color: var(--spectrum-cinnamon-visual-color); + --spectrum-statuslight-nonsemantic-brown-color: var(--spectrum-brown-visual-color); + --spectrum-statuslight-nonsemantic-silver-color: var(--spectrum-silver-visual-color); } .spectrum-StatusLight--sizeS { @@ -30,7 +70,7 @@ --spectrum-statuslight-font-size: var(--spectrum-font-size-75); - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-text-to-visual-75); + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-status-light-text-to-visual-75); --spectrum-statuslight-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-small); --spectrum-statuslight-spacing-top-to-label: var(--spectrum-component-top-to-text-75); --spectrum-statuslight-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-75); @@ -42,7 +82,7 @@ --spectrum-statuslight-font-size: var(--spectrum-font-size-200); - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-text-to-visual-200); + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-status-light-text-to-visual-200); --spectrum-statuslight-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-large); --spectrum-statuslight-spacing-top-to-label: var(--spectrum-component-top-to-text-200); --spectrum-statuslight-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-200); @@ -54,7 +94,7 @@ --spectrum-statuslight-font-size: var(--spectrum-font-size-300); - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-text-to-visual-300); + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-status-light-text-to-visual-300); --spectrum-statuslight-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-extra-large); --spectrum-statuslight-spacing-top-to-label: var(--spectrum-component-top-to-text-300); --spectrum-statuslight-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-300); @@ -104,6 +144,8 @@ font-size: var(--mod-statuslight-font-size, var(--spectrum-statuslight-font-size)); font-weight: var(--mod-statuslight-font-weight, var(--spectrum-statuslight-font-weight)); + font-family: var(--mod-statuslight-font-family, var(--spectrum-statuslight-font-family)); + font-style: var(--mod-statuslight-font-style, var(--spectrum-statuslight-font-style)); line-height: var(--mod-statuslight-line-height, var(--spectrum-statuslight-line-height)); @@ -117,8 +159,6 @@ /* Dot */ &::before { - --spectrum-statuslight-spacing-computed-top-to-dot: calc(var(--mod-statuslight-spacing-top-to-dot, var(--spectrum-statuslight-spacing-top-to-dot)) - var(--mod-statuslight-spacing-top-to-label, var(--spectrum-statuslight-spacing-top-to-label))); - content: ""; flex-grow: 0; flex-shrink: 0; @@ -127,6 +167,7 @@ block-size: var(--mod-statuslight-dot-size, var(--spectrum-statuslight-dot-size)); border-radius: var(--mod-statuslight-corner-radius, var(--spectrum-statuslight-corner-radius)); + --spectrum-statuslight-spacing-computed-top-to-dot: calc(var(--mod-statuslight-spacing-top-to-dot, var(--spectrum-statuslight-spacing-top-to-dot)) - var(--mod-statuslight-spacing-top-to-label, var(--spectrum-statuslight-spacing-top-to-label))); margin-block-start: var(--spectrum-statuslight-spacing-computed-top-to-dot); margin-inline-end: var(--mod-statuslight-spacing-dot-to-label, var(--spectrum-statuslight-spacing-dot-to-label)); } @@ -134,8 +175,6 @@ /* Semantic Colors */ .spectrum-StatusLight--neutral { - font-style: italic; - color: var(--highcontrast-statuslight-subdued-content-color-default, var(--mod-statuslight-subdued-content-color-default, var(--spectrum-statuslight-subdued-content-color-default))); &::before { @@ -143,10 +182,6 @@ } } -.spectrum-StatusLight--accent::before { - background-color: var(--mod-statuslight-semantic-accent-color, var(--spectrum-statuslight-semantic-accent-color)); -} - .spectrum-StatusLight--info::before { background-color: var(--mod-statuslight-semantic-info-color, var(--spectrum-statuslight-semantic-info-color)); } @@ -220,13 +255,32 @@ background-color: var(--mod-statuslight-nonsemantic-magenta-color, var(--spectrum-statuslight-nonsemantic-magenta-color)); } +.spectrum-StatusLight--pink::before { + background-color: var(--mod-statuslight-nonsemantic-pink-color, var(--spectrum-statuslight-nonsemantic-pink-color)); +} + +.spectrum-StatusLight--turquoise::before { + background-color: var(--mod-statuslight-nonsemantic-turquoise-color, var(--spectrum-statuslight-nonsemantic-turquoise-color)); +} + +.spectrum-StatusLight--cinnamon::before { + background-color: var(--mod-statuslight-nonsemantic-cinnamon-color, var(--spectrum-statuslight-nonsemantic-cinnamon-color)); +} + +.spectrum-StatusLight--brown::before { + background-color: var(--mod-statuslight-nonsemantic-brown-color, var(--spectrum-statuslight-nonsemantic-brown-color)); +} + +.spectrum-StatusLight--silver::before { + background-color: var(--mod-statuslight-nonsemantic-silver-color, var(--spectrum-statuslight-nonsemantic-silver-color)); +} + @media (forced-colors: active) { .spectrum-StatusLight { + forced-color-adjust: none; --highcontrast-statuslight-content-color-default: CanvasText; --highcontrast-statuslight-subdued-content-color-default: CanvasText; - forced-color-adjust: none; - /* Dot */ &::before { forced-color-adjust: none; diff --git a/components/statuslight/package.json b/components/statuslight/package.json index 96ca0b18b4b..4cb50fb3d48 100644 --- a/components/statuslight/package.json +++ b/components/statuslight/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/statuslight/stories/statuslight.stories.js b/components/statuslight/stories/statuslight.stories.js index b385bcc9da3..567bea4c55d 100644 --- a/components/statuslight/stories/statuslight.stories.js +++ b/components/statuslight/stories/statuslight.stories.js @@ -33,26 +33,30 @@ export default { category: "Component", }, options: [ - "accent", "info", "neutral", "positive", "notice", "negative", - "gray", - "red", - "orange", "yellow", "chartreuse", "celery", - "green", "seafoam", "cyan", - "blue", "indigo", "purple", "fuchsia", "magenta", + "gray", + "red", + "orange", + "green", + "blue", + "pink", + "turquoise", + "cinnamon", + "brown", + "silver", ], control: "select", }, @@ -72,6 +76,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; /** diff --git a/components/steplist/CHANGELOG.md b/components/steplist/CHANGELOG.md index bb06c214257..d63a73e8ba3 100644 --- a/components/steplist/CHANGELOG.md +++ b/components/steplist/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 6.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`5a0ce6e`](https://github.com/adobe/spectrum-css/commit/5a0ce6e5c1908679bd87a63969b99a105faea265)]: + - @spectrum-css/tooltip@7.0.0-next.0 + ## 7.0.1 ### Patch Changes @@ -158,16 +165,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.4...@spectrum-css/steplist@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.4...@spectrum-css/steplist@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -175,8 +179,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.3...@spectrum-css/steplist@4.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.3...@spectrum-css/steplist@4.1.4) **Note:** Version bump only for package @spectrum-css/steplist @@ -184,8 +187,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.2...@spectrum-css/steplist@4.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.2...@spectrum-css/steplist@4.1.3) **Note:** Version bump only for package @spectrum-css/steplist @@ -193,8 +195,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.1...@spectrum-css/steplist@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.1.1...@spectrum-css/steplist@4.1.2) **Note:** Version bump only for package @spectrum-css/steplist @@ -202,8 +203,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/steplist @@ -211,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.9...@spectrum-css/steplist@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.9...@spectrum-css/steplist@4.1.0) ### ✨ Features @@ -222,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.8...@spectrum-css/steplist@4.0.9) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.8...@spectrum-css/steplist@4.0.9) **Note:** Version bump only for package @spectrum-css/steplist @@ -231,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.7...@spectrum-css/steplist@4.0.8) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.7...@spectrum-css/steplist@4.0.8) ### 🐛 Bug fixes @@ -242,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.5...@spectrum-css/steplist@4.0.7) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.5...@spectrum-css/steplist@4.0.7) **Note:** Version bump only for package @spectrum-css/steplist @@ -251,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.5...@spectrum-css/steplist@4.0.6) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.5...@spectrum-css/steplist@4.0.6) **Note:** Version bump only for package @spectrum-css/steplist @@ -260,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.4...@spectrum-css/steplist@4.0.5) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.4...@spectrum-css/steplist@4.0.5) **Note:** Version bump only for package @spectrum-css/steplist @@ -269,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.3...@spectrum-css/steplist@4.0.4) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.3...@spectrum-css/steplist@4.0.4) **Note:** Version bump only for package @spectrum-css/steplist @@ -278,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.2...@spectrum-css/steplist@4.0.3) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.2...@spectrum-css/steplist@4.0.3) **Note:** Version bump only for package @spectrum-css/steplist @@ -287,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.1...@spectrum-css/steplist@4.0.2) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.1...@spectrum-css/steplist@4.0.2) **Note:** Version bump only for package @spectrum-css/steplist @@ -296,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.0...@spectrum-css/steplist@4.0.1) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@4.0.0...@spectrum-css/steplist@4.0.1) **Note:** Version bump only for package @spectrum-css/steplist @@ -305,13 +295,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.78...@spectrum-css/steplist@4.0.0) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.78...@spectrum-css/steplist@4.0.0) \*feat(steplist)!: migrate to spectrum tokens([5b0f4aa](https://github.com/adobe/spectrum-css/commit/5b0f4aa)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates to use spectrum-tokens @@ -320,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.78 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.77...@spectrum-css/steplist@3.0.78) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.77...@spectrum-css/steplist@3.0.78) **Note:** Version bump only for package @spectrum-css/steplist @@ -329,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.77 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.76...@spectrum-css/steplist@3.0.77) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.76...@spectrum-css/steplist@3.0.77) **Note:** Version bump only for package @spectrum-css/steplist @@ -338,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.76 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.75...@spectrum-css/steplist@3.0.76) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.75...@spectrum-css/steplist@3.0.76) **Note:** Version bump only for package @spectrum-css/steplist @@ -347,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.75 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.74...@spectrum-css/steplist@3.0.75) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.74...@spectrum-css/steplist@3.0.75) ### 🔙 Reverts @@ -358,8 +342,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.74 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.73...@spectrum-css/steplist@3.0.74) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.73...@spectrum-css/steplist@3.0.74) **Note:** Version bump only for package @spectrum-css/steplist @@ -367,8 +350,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.73 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.71...@spectrum-css/steplist@3.0.73) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.71...@spectrum-css/steplist@3.0.73) **Note:** Version bump only for package @spectrum-css/steplist @@ -376,8 +358,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.72 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.71...@spectrum-css/steplist@3.0.72) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.71...@spectrum-css/steplist@3.0.72) **Note:** Version bump only for package @spectrum-css/steplist @@ -385,8 +366,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.71 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.70...@spectrum-css/steplist@3.0.71) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.70...@spectrum-css/steplist@3.0.71) **Note:** Version bump only for package @spectrum-css/steplist @@ -394,8 +374,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.70 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.69...@spectrum-css/steplist@3.0.70) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.69...@spectrum-css/steplist@3.0.70) **Note:** Version bump only for package @spectrum-css/steplist @@ -403,8 +382,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.69 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.68...@spectrum-css/steplist@3.0.69) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.68...@spectrum-css/steplist@3.0.69) **Note:** Version bump only for package @spectrum-css/steplist @@ -412,8 +390,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.68 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.67...@spectrum-css/steplist@3.0.68) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.67...@spectrum-css/steplist@3.0.68) **Note:** Version bump only for package @spectrum-css/steplist @@ -421,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.67 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.66...@spectrum-css/steplist@3.0.67) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.66...@spectrum-css/steplist@3.0.67) **Note:** Version bump only for package @spectrum-css/steplist @@ -430,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.66 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.65...@spectrum-css/steplist@3.0.66) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.65...@spectrum-css/steplist@3.0.66) **Note:** Version bump only for package @spectrum-css/steplist @@ -439,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.65 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.64...@spectrum-css/steplist@3.0.65) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.64...@spectrum-css/steplist@3.0.65) **Note:** Version bump only for package @spectrum-css/steplist @@ -448,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.64 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.63...@spectrum-css/steplist@3.0.64) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.63...@spectrum-css/steplist@3.0.64) **Note:** Version bump only for package @spectrum-css/steplist @@ -457,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.63 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.62...@spectrum-css/steplist@3.0.63) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.62...@spectrum-css/steplist@3.0.63) **Note:** Version bump only for package @spectrum-css/steplist @@ -466,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.62 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.61...@spectrum-css/steplist@3.0.62) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.61...@spectrum-css/steplist@3.0.62) **Note:** Version bump only for package @spectrum-css/steplist @@ -475,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.61 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.60...@spectrum-css/steplist@3.0.61) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.60...@spectrum-css/steplist@3.0.61) **Note:** Version bump only for package @spectrum-css/steplist @@ -484,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.60 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.59...@spectrum-css/steplist@3.0.60) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.59...@spectrum-css/steplist@3.0.60) ### 🐛 Bug fixes @@ -495,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.59 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.58...@spectrum-css/steplist@3.0.59) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.58...@spectrum-css/steplist@3.0.59) **Note:** Version bump only for package @spectrum-css/steplist @@ -504,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.58 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.57...@spectrum-css/steplist@3.0.58) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/steplist@3.0.57...@spectrum-css/steplist@3.0.58) **Note:** Version bump only for package @spectrum-css/steplist diff --git a/components/steplist/dist/metadata.json b/components/steplist/dist/metadata.json index 3e4e5dc0bed..57745bc4c4c 100644 --- a/components/steplist/dist/metadata.json +++ b/components/steplist/dist/metadata.json @@ -91,10 +91,6 @@ "--spectrum-gray-700", "--spectrum-gray-800" ], - "system-theme": [ - "--system-steplist-incomplete-marker-border-color", - "--system-steplist-incomplete-segment-border-block-end-color" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-steplist-complete-marker-background-color", diff --git a/components/steplist/index.css b/components/steplist/index.css index 7fc57091919..62900591018 100644 --- a/components/steplist/index.css +++ b/components/steplist/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Steplist { + --spectrum-steplist-incomplete-marker-border-color: var(--spectrum-gray-200); + --spectrum-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-200); + /* The width of a step */ --spectrum-steplist-step-width: 80px; diff --git a/components/steplist/package.json b/components/steplist/package.json index 983ed512607..c0e88e61373 100644 --- a/components/steplist/package.json +++ b/components/steplist/package.json @@ -25,8 +25,8 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16", "@spectrum-css/tooltip": ">=6" }, "peerDependenciesMeta": { @@ -37,11 +37,7 @@ "devDependencies": { "@spectrum-css/icon": "9.0.1", "@spectrum-css/tokens": "16.0.0", - "@spectrum-css/tooltip": "7.0.1", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tooltip": "7.0.1" }, "keywords": [ "design-system", diff --git a/components/steplist/stories/template.js b/components/steplist/stories/template.js index ea9a57ef420..7edfdf8199b 100644 --- a/components/steplist/stories/template.js +++ b/components/steplist/stories/template.js @@ -6,9 +6,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { repeat } from "lit/directives/repeat.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const SteplistItem = ({ rootClass = "spectrum-Steplist-item", diff --git a/components/steplist/themes/express.css b/components/steplist/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/steplist/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/steplist/themes/spectrum-two.css b/components/steplist/themes/spectrum-two.css deleted file mode 100644 index 649e9fb4d3a..00000000000 --- a/components/steplist/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Steplist { - --spectrum-steplist-incomplete-marker-border-color: var(--spectrum-gray-200); - --spectrum-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-200); - } -} diff --git a/components/steplist/themes/spectrum.css b/components/steplist/themes/spectrum.css deleted file mode 100644 index bfe1e5f6f8c..00000000000 --- a/components/steplist/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Steplist { - --spectrum-steplist-incomplete-marker-border-color: var(--spectrum-gray-300); - --spectrum-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-300); - } -} diff --git a/components/stepper/CHANGELOG.md b/components/stepper/CHANGELOG.md index 63b4dfbe129..00d55629b13 100644 --- a/components/stepper/CHANGELOG.md +++ b/components/stepper/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 6.3.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`8d65de0`](https://github.com/adobe/spectrum-css/commit/8d65de0233a6b12e72002b47e9484dbe5f0636be) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to align `spectrum-two` with `s2-foundations-redux`/`main`, mostly defining unused custom properties, but addresses any other lint warnings or inconsistencies noted in the following components: + + **Calendar**: Defines 1 previously undefined custom property to align with `main` and `s2-foundations-redux` + **Dial**: Defines 6 previously undefined custom properties, removes 3 unused custom properties + **Pickerbutton**: Defines 9 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Progressbar**: Removes 3 unused custom properties, reverts background-color to background to accommodate gradients + **Radio**: Defines 4 previously undefined custom properties to align with `main` and `s2-foundations-redux` + **Stepper**: moves high contrast block further down to align with other components' CSS structure, defines multiple undefined custom properties, adds disable-next-line comment to suppress no-unused-custom-properties warning + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f)]: + - @spectrum-css/infieldbutton@5.2.1-next.0 + - @spectrum-css/actionbutton@6.2.1-next.0 + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/textfield@7.3.1-next.0 + ## 7.0.1 ### Patch Changes @@ -199,16 +218,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.5...@spectrum-css/stepper@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.5...@spectrum-css/stepper@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -216,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.4...@spectrum-css/stepper@5.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.4...@spectrum-css/stepper@5.1.5) **Note:** Version bump only for package @spectrum-css/stepper @@ -225,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.3...@spectrum-css/stepper@5.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.3...@spectrum-css/stepper@5.1.4) **Note:** Version bump only for package @spectrum-css/stepper @@ -234,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.2...@spectrum-css/stepper@5.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.2...@spectrum-css/stepper@5.1.3) **Note:** Version bump only for package @spectrum-css/stepper @@ -243,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.1...@spectrum-css/stepper@5.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.1.1...@spectrum-css/stepper@5.1.2) **Note:** Version bump only for package @spectrum-css/stepper @@ -252,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/stepper @@ -261,8 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.7...@spectrum-css/stepper@5.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.7...@spectrum-css/stepper@5.1.0) **Note:** Version bump only for package @spectrum-css/stepper @@ -270,8 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.6...@spectrum-css/stepper@5.0.7) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.6...@spectrum-css/stepper@5.0.7) ### 🐛 Bug fixes @@ -287,8 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.5...@spectrum-css/stepper@5.0.6) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.5...@spectrum-css/stepper@5.0.6) ### 🐛 Bug fixes @@ -299,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.4...@spectrum-css/stepper@5.0.5) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.4...@spectrum-css/stepper@5.0.5) **Note:** Version bump only for package @spectrum-css/stepper @@ -308,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.2...@spectrum-css/stepper@5.0.4) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.2...@spectrum-css/stepper@5.0.4) **Note:** Version bump only for package @spectrum-css/stepper @@ -317,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.2...@spectrum-css/stepper@5.0.3) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.2...@spectrum-css/stepper@5.0.3) **Note:** Version bump only for package @spectrum-css/stepper @@ -326,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.1...@spectrum-css/stepper@5.0.2) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.1...@spectrum-css/stepper@5.0.2) **Note:** Version bump only for package @spectrum-css/stepper @@ -335,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.0...@spectrum-css/stepper@5.0.1) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@5.0.0...@spectrum-css/stepper@5.0.1) **Note:** Version bump only for package @spectrum-css/stepper @@ -344,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.59...@spectrum-css/stepper@5.0.0) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.59...@spectrum-css/stepper@5.0.0) \*feat(stepper)!: stepper migrate tokens (#1960)([3a4c217](https://github.com/adobe/spectrum-css/commit/3a4c217)), closes[#1960](https://github.com/adobe/spectrum-css/issues/1960) @@ -473,8 +475,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.59 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.58...@spectrum-css/stepper@4.0.59) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.58...@spectrum-css/stepper@4.0.59) **Note:** Version bump only for package @spectrum-css/stepper @@ -482,8 +483,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.58 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.57...@spectrum-css/stepper@4.0.58) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.57...@spectrum-css/stepper@4.0.58) **Note:** Version bump only for package @spectrum-css/stepper @@ -491,8 +491,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.57 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.56...@spectrum-css/stepper@4.0.57) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.56...@spectrum-css/stepper@4.0.57) **Note:** Version bump only for package @spectrum-css/stepper @@ -500,8 +499,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.56 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.55...@spectrum-css/stepper@4.0.56) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.55...@spectrum-css/stepper@4.0.56) **Note:** Version bump only for package @spectrum-css/stepper @@ -509,8 +507,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.55 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.54...@spectrum-css/stepper@4.0.55) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.54...@spectrum-css/stepper@4.0.55) **Note:** Version bump only for package @spectrum-css/stepper @@ -518,8 +515,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.54 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.53...@spectrum-css/stepper@4.0.54) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.53...@spectrum-css/stepper@4.0.54) **Note:** Version bump only for package @spectrum-css/stepper @@ -527,8 +523,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.53 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.52...@spectrum-css/stepper@4.0.53) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.52...@spectrum-css/stepper@4.0.53) **Note:** Version bump only for package @spectrum-css/stepper @@ -536,8 +531,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.52 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.51...@spectrum-css/stepper@4.0.52) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.51...@spectrum-css/stepper@4.0.52) ### 🔙 Reverts @@ -547,8 +541,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.51 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.50...@spectrum-css/stepper@4.0.51) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.50...@spectrum-css/stepper@4.0.51) **Note:** Version bump only for package @spectrum-css/stepper @@ -556,8 +549,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.50 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.48...@spectrum-css/stepper@4.0.50) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.48...@spectrum-css/stepper@4.0.50) **Note:** Version bump only for package @spectrum-css/stepper @@ -565,8 +557,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.49 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.48...@spectrum-css/stepper@4.0.49) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.48...@spectrum-css/stepper@4.0.49) **Note:** Version bump only for package @spectrum-css/stepper @@ -574,8 +565,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.48 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.47...@spectrum-css/stepper@4.0.48) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.47...@spectrum-css/stepper@4.0.48) **Note:** Version bump only for package @spectrum-css/stepper @@ -583,8 +573,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.47 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.46...@spectrum-css/stepper@4.0.47) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.46...@spectrum-css/stepper@4.0.47) **Note:** Version bump only for package @spectrum-css/stepper @@ -592,8 +581,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.46 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.45...@spectrum-css/stepper@4.0.46) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.45...@spectrum-css/stepper@4.0.46) **Note:** Version bump only for package @spectrum-css/stepper @@ -601,8 +589,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.45 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.44...@spectrum-css/stepper@4.0.45) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.44...@spectrum-css/stepper@4.0.45) **Note:** Version bump only for package @spectrum-css/stepper @@ -610,8 +597,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.44 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.43...@spectrum-css/stepper@4.0.44) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.43...@spectrum-css/stepper@4.0.44) **Note:** Version bump only for package @spectrum-css/stepper @@ -619,8 +605,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.43 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.42...@spectrum-css/stepper@4.0.43) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.42...@spectrum-css/stepper@4.0.43) **Note:** Version bump only for package @spectrum-css/stepper @@ -628,8 +613,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.42 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.41...@spectrum-css/stepper@4.0.42) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.41...@spectrum-css/stepper@4.0.42) **Note:** Version bump only for package @spectrum-css/stepper @@ -637,8 +621,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.41 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.40...@spectrum-css/stepper@4.0.41) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.40...@spectrum-css/stepper@4.0.41) **Note:** Version bump only for package @spectrum-css/stepper @@ -646,8 +629,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.40 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.39...@spectrum-css/stepper@4.0.40) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.39...@spectrum-css/stepper@4.0.40) **Note:** Version bump only for package @spectrum-css/stepper @@ -655,8 +637,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.39 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.38...@spectrum-css/stepper@4.0.39) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.38...@spectrum-css/stepper@4.0.39) **Note:** Version bump only for package @spectrum-css/stepper @@ -664,8 +645,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.38 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.37...@spectrum-css/stepper@4.0.38) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.37...@spectrum-css/stepper@4.0.38) **Note:** Version bump only for package @spectrum-css/stepper @@ -673,8 +653,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.37 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.36...@spectrum-css/stepper@4.0.37) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.36...@spectrum-css/stepper@4.0.37) ### 🐛 Bug fixes @@ -684,8 +663,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.36 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.35...@spectrum-css/stepper@4.0.36) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.35...@spectrum-css/stepper@4.0.36) **Note:** Version bump only for package @spectrum-css/stepper @@ -693,8 +671,7 @@ ellipsis at medium size, instead of 3. Was a matter of 1 or 2 pixels. ## 4.0.35 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.34...@spectrum-css/stepper@4.0.35) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/stepper@4.0.34...@spectrum-css/stepper@4.0.35) **Note:** Version bump only for package @spectrum-css/stepper diff --git a/components/stepper/dist/metadata.json b/components/stepper/dist/metadata.json index 3d08677cea2..6b3f887214a 100644 --- a/components/stepper/dist/metadata.json +++ b/components/stepper/dist/metadata.json @@ -115,7 +115,6 @@ "global": [ "--spectrum-animation-duration-100", "--spectrum-border-width-100", - "--spectrum-border-width-200", "--spectrum-component-height-100", "--spectrum-component-height-200", "--spectrum-component-height-300", @@ -126,7 +125,6 @@ "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", "--spectrum-gray-25", - "--spectrum-gray-300", "--spectrum-gray-50", "--spectrum-gray-500", "--spectrum-gray-600", @@ -143,31 +141,6 @@ "--spectrum-negative-border-color-key-focus", "--spectrum-text-field-minimum-width-multiplier" ], - "system-theme": [ - "--system-stepper-border-color-default", - "--system-stepper-border-color-disabled", - "--system-stepper-border-color-focus", - "--system-stepper-border-color-focus-hover", - "--system-stepper-border-color-focus-hover-invalid", - "--system-stepper-border-color-focus-invalid", - "--system-stepper-border-color-hover", - "--system-stepper-border-color-invalid", - "--system-stepper-border-color-keyboard-focus", - "--system-stepper-border-color-keyboard-focus-invalid", - "--system-stepper-border-width", - "--system-stepper-button-border-width", - "--system-stepper-button-border-width-disabled", - "--system-stepper-buttons-background-color", - "--system-stepper-buttons-background-color-disabled", - "--system-stepper-buttons-border-color", - "--system-stepper-buttons-border-color-focus", - "--system-stepper-buttons-border-color-hover", - "--system-stepper-buttons-border-color-keyboard-focus", - "--system-stepper-buttons-border-style", - "--system-stepper-buttons-border-width", - "--system-stepper-quiet-button-edge-to-fill", - "--system-stepper-quiet-buttons-border-style" - ], "passthroughs": [ "--mod-infield-button-border-block-end-width", "--mod-infield-button-border-color", diff --git a/components/stepper/index.css b/components/stepper/index.css index e7654a6de4b..f5c206e179f 100644 --- a/components/stepper/index.css +++ b/components/stepper/index.css @@ -11,68 +11,14 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - -/* --- High contrast settings --- */ -@media (forced-colors: active) { - .spectrum-Stepper { - --highcontrast-stepper-border-color: CanvasText; - --highcontrast-stepper-border-color-hover: Highlight; - --highcontrast-stepper-border-color-focus: Highlight; - --highcontrast-stepper-border-color-focus-hover: Highlight; - --highcontrast-stepper-border-color-keyboard-focus: CanvasText; - --highcontrast-stepper-focus-indicator-color: Highlight; - - &.is-invalid { - --highcontrast-stepper-border-color: Highlight; - --highcontrast-stepper-border-color-hover: Highlight; - --highcontrast-stepper-border-color-focus: Highlight; - --highcontrast-stepper-border-color-focus-hover: Highlight; - --highcontrast-stepper-border-color-keyboard-focus: Highlight; - } - - &.is-disabled { - --highcontrast-stepper-border-color: GrayText; - --highcontrast-stepper-buttons-border-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); - } - - &:not(.is-disabled) { - &:hover { - --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-hover); - } - - &.is-focused, - &:focus { - --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-focus); - - &:hover { - --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-focus-hover); - } - } - - &.is-keyboardFocused, - &:focus-visible { - --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-keyboard-focus); - } - } - } - - /* @passthrough start */ - .spectrum-Stepper-input { - --highcontrast-textfield-border-color: var(--highcontrast-stepper-border-color); - } - /* @passthrough end */ - - /* @passthrough start */ - .spectrum-Stepper-button { - --highcontrast-infield-button-border-color: var(--highcontrast-stepper-border-color); - --highcontrast-infield-button-border-color-active: var(--highcontrast-stepper-border-color); - } - /* @passthrough end */ -} - /* --- Component-level definitions --- */ .spectrum-Stepper { + --spectrum-stepper-border-width: var(--spectrum-border-width-100); + --spectrum-stepper-border-color-default: var(--spectrum-gray-500); + --spectrum-stepper-border-color-hover: var(--spectrum-gray-600); + --spectrum-stepper-border-color-focus: var(--spectrum-gray-800); + --spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-800); + --spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); --spectrum-stepper-border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color-default))); --spectrum-stepper-border-radius: var(--mod-stepper-border-radius, var(--spectrum-corner-radius-100)); @@ -88,6 +34,26 @@ --spectrum-stepper-height: var(--mod-stepper-height, var(--spectrum-component-height-100)); } + --spectrum-stepper-buttons-border-style: none; + --spectrum-stepper-buttons-border-width: 0; + --spectrum-stepper-buttons-border-color: var(--spectrum-gray-500); + --spectrum-stepper-buttons-background-color: var(--spectrum-gray-25); + --spectrum-stepper-buttons-border-color-hover: var(--spectrum-gray-600); + --spectrum-stepper-buttons-border-color-focus: var(--spectrum-gray-800); + --spectrum-stepper-buttons-border-color-keyboard-focus: var(--spectrum-gray-900); + + --spectrum-stepper-button-border-width: var(--spectrum-border-width-100); + + /** Invalid **/ + --spectrum-stepper-border-color-invalid: var(--spectrum-negative-border-color-default); + --spectrum-stepper-border-color-focus-invalid: var(--spectrum-negative-border-color-focus); + --spectrum-stepper-border-color-focus-hover-invalid: var(--spectrum-negative-border-color-focus-hover); + --spectrum-stepper-border-color-keyboard-focus-invalid: var(--spectrum-negative-border-color-key-focus); + + /** Disabled **/ + --spectrum-stepper-button-border-width-disabled: var(--spectrum-border-width-100); + --spectrum-stepper-buttons-background-color-disabled: var(--spectrum-gray-50); + &.spectrum-Stepper--sizeS { --spectrum-stepper-button-width: var(--mod-stepper-button-width, var(--spectrum-in-field-button-width-stacked-small)); --spectrum-stepper-height: var(--mod-stepper-height, var(--spectrum-component-height-75)); @@ -136,6 +102,9 @@ } &.spectrum-Stepper--quiet { + /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- used by --mod-infield-button-inner-edge-to-fill and --mod-infield-button-edge-to-fill */ + --spectrum-stepper-button-edge-to-fill: 0; + --mod-stepper-buttons-background-color: transparent; /* quiet hover */ @@ -156,6 +125,64 @@ } } +/* --- High contrast settings --- */ +@media (forced-colors: active) { + .spectrum-Stepper { + --highcontrast-stepper-border-color: CanvasText; + --highcontrast-stepper-border-color-hover: Highlight; + --highcontrast-stepper-border-color-focus: Highlight; + --highcontrast-stepper-border-color-focus-hover: Highlight; + --highcontrast-stepper-border-color-keyboard-focus: CanvasText; + --highcontrast-stepper-focus-indicator-color: Highlight; + + &.is-invalid { + --highcontrast-stepper-border-color: Highlight; + --highcontrast-stepper-border-color-hover: Highlight; + --highcontrast-stepper-border-color-focus: Highlight; + --highcontrast-stepper-border-color-focus-hover: Highlight; + --highcontrast-stepper-border-color-keyboard-focus: Highlight; + } + + &.is-disabled { + --highcontrast-stepper-border-color: GrayText; + --highcontrast-stepper-buttons-border-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); + } + + &:not(.is-disabled) { + &:hover { + --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-hover); + } + + &.is-focused, + &:focus { + --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-focus); + + &:hover { + --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-focus-hover); + } + } + + &.is-keyboardFocused, + &:focus-visible { + --highcontrast-stepper-border-color: var(--highcontrast-stepper-border-color-keyboard-focus); + } + } + } + + /* @passthrough start */ + .spectrum-Stepper-input { + --highcontrast-textfield-border-color: var(--highcontrast-stepper-border-color); + } + /* @passthrough end */ + + /* @passthrough start */ + .spectrum-Stepper-button { + --highcontrast-infield-button-border-color: var(--highcontrast-stepper-border-color); + --highcontrast-infield-button-border-color-active: var(--highcontrast-stepper-border-color); + } + /* @passthrough end */ +} + /* --- Component-level passthroughs for nested components --- */ /* @passthrough start -- MODS for sub components */ .spectrum-Stepper { diff --git a/components/stepper/package.json b/components/stepper/package.json index 95a4455b95b..71bbd3d9795 100644 --- a/components/stepper/package.json +++ b/components/stepper/package.json @@ -25,11 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/actionbutton": ">=6", - "@spectrum-css/icon": ">=7", + "@spectrum-css/actionbutton": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/infieldbutton": ">=5", "@spectrum-css/textfield": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/infieldbutton": { @@ -41,11 +41,7 @@ "@spectrum-css/icon": "9.0.1", "@spectrum-css/infieldbutton": "6.0.1", "@spectrum-css/textfield": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/stepper/stories/template.js b/components/stepper/stories/template.js index fbb818b72f3..fb14155af87 100644 --- a/components/stepper/stories/template.js +++ b/components/stepper/stories/template.js @@ -8,9 +8,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Stepper", diff --git a/components/stepper/themes/express.css b/components/stepper/themes/express.css deleted file mode 100644 index 724f4e973ff..00000000000 --- a/components/stepper/themes/express.css +++ /dev/null @@ -1,53 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Stepper { - --spectrum-stepper-border-width: var(--spectrum-border-width-200); - --spectrum-stepper-border-color-default: var(--spectrum-gray-400); - --spectrum-stepper-border-color-hover: var(--spectrum-gray-500); - --spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - --spectrum-stepper-border-color-disabled: var(--spectrum-disabled-background-color); - - --spectrum-stepper-buttons-border-style: solid; - --spectrum-stepper-buttons-border-width: var(--spectrum-border-width-200); - --spectrum-stepper-buttons-border-color: transparent; - --spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --spectrum-stepper-buttons-border-color-hover: transparent; - --spectrum-stepper-buttons-border-color-focus: transparent; - --spectrum-stepper-buttons-border-color-keyboard-focus: transparent; - - --spectrum-stepper-button-border-width: 0; - - /** Invalid **/ - --spectrum-stepper-border-color-invalid: transparent; - --spectrum-stepper-border-color-focus-invalid: transparent; - --spectrum-stepper-border-color-focus-hover-invalid: transparent; - --spectrum-stepper-border-color-keyboard-focus-invalid: transparent; - - /** Disabled **/ - --spectrum-stepper-button-border-width-disabled: 0; - --spectrum-stepper-buttons-background-color-disabled: var(--spectrum-disabled-background-color); - } - - .spectrum-Stepper--quiet { - --spectrum-stepper-buttons-border-style: none; - --spectrum-stepper-button-edge-to-fill: 0; - } -} diff --git a/components/stepper/themes/spectrum-two.css b/components/stepper/themes/spectrum-two.css deleted file mode 100644 index 5fc7af36cae..00000000000 --- a/components/stepper/themes/spectrum-two.css +++ /dev/null @@ -1,49 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Stepper { - --spectrum-stepper-border-width: var(--spectrum-border-width-100); - --spectrum-stepper-border-color-default: var(--spectrum-gray-500); - --spectrum-stepper-border-color-hover: var(--spectrum-gray-600); - --spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-800); - --spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - - --spectrum-stepper-buttons-border-style: none; - --spectrum-stepper-buttons-border-width: 0; - --spectrum-stepper-buttons-border-color: var(--spectrum-gray-500); - --spectrum-stepper-buttons-background-color: var(--spectrum-gray-25); - --spectrum-stepper-buttons-border-color-hover: var(--spectrum-gray-600); - --spectrum-stepper-buttons-border-color-focus: var(--spectrum-gray-800); - --spectrum-stepper-buttons-border-color-keyboard-focus: var(--spectrum-gray-900); - - --spectrum-stepper-button-border-width: var(--spectrum-border-width-100); - - /** Invalid **/ - --spectrum-stepper-border-color-invalid: var(--spectrum-negative-border-color-default); - --spectrum-stepper-border-color-focus-invalid: var(--spectrum-negative-border-color-focus); - --spectrum-stepper-border-color-focus-hover-invalid: var(--spectrum-negative-border-color-focus-hover); - --spectrum-stepper-border-color-keyboard-focus-invalid: var(--spectrum-negative-border-color-key-focus); - - /** Disabled **/ - --spectrum-stepper-border-color-disabled: var(--spectrum-gray-300); - --spectrum-stepper-button-border-width-disabled: var(--spectrum-border-width-200); - --spectrum-stepper-buttons-background-color-disabled: var(--spectrum-gray-50); - } - - .spectrum-Stepper--quiet { - --spectrum-stepper-buttons-border-style: none; - --spectrum-stepper-button-edge-to-fill: 0; - } -} diff --git a/components/stepper/themes/spectrum.css b/components/stepper/themes/spectrum.css deleted file mode 100644 index 1b904f9f952..00000000000 --- a/components/stepper/themes/spectrum.css +++ /dev/null @@ -1,25 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Stepper { - --spectrum-stepper-border-color-disabled: transparent; - --spectrum-stepper-button-border-width-disabled: var(--spectrum-border-width-100); - --spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --spectrum-stepper-buttons-background-color-disabled: var(--spectrum-gray-100); - } -} diff --git a/components/swatch/CHANGELOG.md b/components/swatch/CHANGELOG.md index 0731f9a0092..7ef720d8b2a 100644 --- a/components/swatch/CHANGELOG.md +++ b/components/swatch/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 7.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/opacitycheckerboard@3.0.0-next.0 + ## 8.0.1 ### Patch Changes @@ -166,16 +174,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.5...@spectrum-css/swatch@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.5...@spectrum-css/swatch@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -183,8 +187,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.4...@spectrum-css/swatch@5.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.4...@spectrum-css/swatch@5.1.5) **Note:** Version bump only for package @spectrum-css/swatch @@ -192,8 +195,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.3...@spectrum-css/swatch@5.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.3...@spectrum-css/swatch@5.1.4) **Note:** Version bump only for package @spectrum-css/swatch @@ -201,8 +203,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.2...@spectrum-css/swatch@5.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.2...@spectrum-css/swatch@5.1.3) **Note:** Version bump only for package @spectrum-css/swatch @@ -210,8 +211,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.1...@spectrum-css/swatch@5.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.1.1...@spectrum-css/swatch@5.1.2) **Note:** Version bump only for package @spectrum-css/swatch @@ -219,8 +219,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/swatch @@ -228,8 +227,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.22...@spectrum-css/swatch@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.22...@spectrum-css/swatch@5.1.0) ### ✨ Features @@ -244,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.22 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.21...@spectrum-css/swatch@5.0.22) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.21...@spectrum-css/swatch@5.0.22) **Note:** Version bump only for package @spectrum-css/swatch @@ -253,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.21 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.20...@spectrum-css/swatch@5.0.21) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.20...@spectrum-css/swatch@5.0.21) **Note:** Version bump only for package @spectrum-css/swatch @@ -262,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.20 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.18...@spectrum-css/swatch@5.0.20) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.18...@spectrum-css/swatch@5.0.20) **Note:** Version bump only for package @spectrum-css/swatch @@ -271,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.19 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.18...@spectrum-css/swatch@5.0.19) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.18...@spectrum-css/swatch@5.0.19) **Note:** Version bump only for package @spectrum-css/swatch @@ -280,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.18 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.17...@spectrum-css/swatch@5.0.18) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.17...@spectrum-css/swatch@5.0.18) **Note:** Version bump only for package @spectrum-css/swatch @@ -289,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.17 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.16...@spectrum-css/swatch@5.0.17) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.16...@spectrum-css/swatch@5.0.17) **Note:** Version bump only for package @spectrum-css/swatch @@ -298,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.16 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.15...@spectrum-css/swatch@5.0.16) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.15...@spectrum-css/swatch@5.0.16) **Note:** Version bump only for package @spectrum-css/swatch @@ -307,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.15 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.14...@spectrum-css/swatch@5.0.15) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.14...@spectrum-css/swatch@5.0.15) **Note:** Version bump only for package @spectrum-css/swatch @@ -316,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.14 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.13...@spectrum-css/swatch@5.0.14) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.13...@spectrum-css/swatch@5.0.14) **Note:** Version bump only for package @spectrum-css/swatch @@ -325,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.13 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.12...@spectrum-css/swatch@5.0.13) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.12...@spectrum-css/swatch@5.0.13) **Note:** Version bump only for package @spectrum-css/swatch @@ -334,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.11...@spectrum-css/swatch@5.0.12) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.11...@spectrum-css/swatch@5.0.12) **Note:** Version bump only for package @spectrum-css/swatch @@ -343,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.10...@spectrum-css/swatch@5.0.11) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.10...@spectrum-css/swatch@5.0.11) **Note:** Version bump only for package @spectrum-css/swatch @@ -352,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.9...@spectrum-css/swatch@5.0.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.9...@spectrum-css/swatch@5.0.10) **Note:** Version bump only for package @spectrum-css/swatch @@ -361,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.8...@spectrum-css/swatch@5.0.9) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.8...@spectrum-css/swatch@5.0.9) ### 🔙 Reverts @@ -372,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.7...@spectrum-css/swatch@5.0.8) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.7...@spectrum-css/swatch@5.0.8) **Note:** Version bump only for package @spectrum-css/swatch @@ -381,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.5...@spectrum-css/swatch@5.0.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.5...@spectrum-css/swatch@5.0.7) **Note:** Version bump only for package @spectrum-css/swatch @@ -390,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.5...@spectrum-css/swatch@5.0.6) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.5...@spectrum-css/swatch@5.0.6) **Note:** Version bump only for package @spectrum-css/swatch @@ -399,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.4...@spectrum-css/swatch@5.0.5) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.4...@spectrum-css/swatch@5.0.5) **Note:** Version bump only for package @spectrum-css/swatch @@ -408,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.3...@spectrum-css/swatch@5.0.4) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.3...@spectrum-css/swatch@5.0.4) **Note:** Version bump only for package @spectrum-css/swatch @@ -417,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.2...@spectrum-css/swatch@5.0.3) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.2...@spectrum-css/swatch@5.0.3) **Note:** Version bump only for package @spectrum-css/swatch @@ -426,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.1...@spectrum-css/swatch@5.0.2) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.1...@spectrum-css/swatch@5.0.2) ### 🐛 Bug fixes @@ -437,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.0...@spectrum-css/swatch@5.0.1) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@5.0.0...@spectrum-css/swatch@5.0.1) **Note:** Version bump only for package @spectrum-css/swatch @@ -446,13 +422,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.31...@spectrum-css/swatch@5.0.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.31...@spectrum-css/swatch@5.0.0) \*feat(opacitycheckerboard)!: new component (#1916)([24e9f06](https://github.com/adobe/spectrum-css/commit/24e9f06)), closes[#1916](https://github.com/adobe/spectrum-css/issues/1916) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * creates new Opacity Checkerboard component and uses it within Swatch, Color Handle, Thumbnail, Color Slider. @@ -497,8 +471,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.31 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.30...@spectrum-css/swatch@4.0.31) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.30...@spectrum-css/swatch@4.0.31) **Note:** Version bump only for package @spectrum-css/swatch @@ -506,8 +479,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.30 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.29...@spectrum-css/swatch@4.0.30) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.29...@spectrum-css/swatch@4.0.30) **Note:** Version bump only for package @spectrum-css/swatch @@ -515,8 +487,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.29 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.28...@spectrum-css/swatch@4.0.29) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.28...@spectrum-css/swatch@4.0.29) **Note:** Version bump only for package @spectrum-css/swatch @@ -524,8 +495,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.28 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.27...@spectrum-css/swatch@4.0.28) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.27...@spectrum-css/swatch@4.0.28) **Note:** Version bump only for package @spectrum-css/swatch @@ -533,8 +503,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.27 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.26...@spectrum-css/swatch@4.0.27) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.26...@spectrum-css/swatch@4.0.27) ### 🐛 Bug fixes @@ -544,8 +513,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.26 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.25...@spectrum-css/swatch@4.0.26) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.25...@spectrum-css/swatch@4.0.26) ### 🐛 Bug fixes @@ -555,8 +523,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.25 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.24...@spectrum-css/swatch@4.0.25) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.24...@spectrum-css/swatch@4.0.25) **Note:** Version bump only for package @spectrum-css/swatch @@ -564,8 +531,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.24 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.23...@spectrum-css/swatch@4.0.24) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.23...@spectrum-css/swatch@4.0.24) ### 🐛 Bug fixes @@ -575,8 +541,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.22...@spectrum-css/swatch@4.0.23) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.22...@spectrum-css/swatch@4.0.23) **Note:** Version bump only for package @spectrum-css/swatch @@ -584,8 +549,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.21...@spectrum-css/swatch@4.0.22) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatch@4.0.21...@spectrum-css/swatch@4.0.22) **Note:** Version bump only for package @spectrum-css/swatch diff --git a/components/swatch/dist/metadata.json b/components/swatch/dist/metadata.json index d982d68bbd2..e3affcc83cb 100644 --- a/components/swatch/dist/metadata.json +++ b/components/swatch/dist/metadata.json @@ -23,7 +23,6 @@ ".spectrum-Swatch--roundingNone:before", ".spectrum-Swatch--sizeL", ".spectrum-Swatch--sizeM", - ".spectrum-Swatch--sizeS", ".spectrum-Swatch--sizeXS", ".spectrum-Swatch-disabledIcon", ".spectrum-Swatch-disabledIcon path:first-child", @@ -73,7 +72,6 @@ "component": [ "--spectrum-swatch-border-color", "--spectrum-swatch-border-color-light", - "--spectrum-swatch-border-color-opacity", "--spectrum-swatch-border-color-selected", "--spectrum-swatch-border-radius", "--spectrum-swatch-border-thickness", @@ -107,22 +105,17 @@ "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", - "--spectrum-gray-1000-rgb", "--spectrum-gray-25", "--spectrum-gray-800", "--spectrum-gray-900", "--spectrum-picked-color", "--spectrum-red-900", + "--spectrum-white", "--spectrum-workflow-icon-size-100", "--spectrum-workflow-icon-size-200", "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-swatch-border-color", - "--system-swatch-disabled-icon-color", - "--system-swatch-inner-border-color-selected" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-swatch-background-color-selected", diff --git a/components/swatch/index.css b/components/swatch/index.css index 14f706be43b..f0f03dbaac9 100644 --- a/components/swatch/index.css +++ b/components/swatch/index.css @@ -11,7 +11,48 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; + /* @note: default sizing for swatch is small */ +.spectrum-Swatch { + /* Placeholder tokens */ + --spectrum-swatch-focus-indicator-border-radius: var(--mod-swatch-focus-indicator-border-radius, 8px); + --spectrum-swatch-icon-border-color: var(--mod-swatch-icon-border-color, rgb(0 0 0 / 51%)); + + /* Size */ + --spectrum-swatch-size: var(--mod-swatch-size, var(--spectrum-swatch-size-small)); + --spectrum-swatch-border-radius: var(--mod-swatch-border-radius, var(--spectrum-corner-radius-100)); + --spectrum-swatch-border-thickness: var(--mod-swatch-border-thickness, var(--spectrum-border-width-100)); + --spectrum-swatch-border-thickness-selected: var(--mod-swatch-border-thickness-selected, var(--spectrum-border-width-200)); + --spectrum-swatch-disabled-icon-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-workflow-icon-size-75)); + --spectrum-swatch-slash-thickness: var(--mod-swatch-slash-thickness, var(--spectrum-swatch-slash-thickness-small)); + --spectrum-swatch-focus-indicator-thickness: var(--mod-swatch-focus-indicator-thickness, var(--spectrum-focus-indicator-thickness)); + --spectrum-swatch-focus-indicator-gap: var(--mod-swatch-focus-indicator-gap, var(--spectrum-focus-indicator-gap)); + + /* Color */ + --spectrum-swatch-border-color-selected: var(--highcontrast-swatch-border-color-selected, var(--mod-swatch-border-color-selected, var(--spectrum-gray-900))); + --spectrum-swatch-inner-border-color-selected: var(--highcontrast-swatch-background-color-selected, var(--mod-swatch-inner-border-color-selected, var(--spectrum-gray-25))); + --spectrum-swatch-disabled-icon-color: var(--highcontrast-swatch-disabled-icon-color, var(--mod-swatch-disabled-icon-color, var(--spectrum-white))); + --spectrum-swatch-dash-icon-color: var(--spectrum-gray-800); + --spectrum-swatch-slash-icon-color: var(--highcontrast-swatch-fill-foreground-color, var(--mod-swatch-slash-icon-color, var(--spectrum-red-900))); + --spectrum-swatch-focus-indicator-color: var(--highcontrast-swatch-focus-indicator-color, var(--mod-swatch-focus-indicator-color, var(--spectrum-focus-indicator-color))); +} + +.spectrum-Swatch--sizeXS { + --spectrum-swatch-size: var(--mod-swatch-size, var(--spectrum-swatch-size-extra-small)); + --spectrum-swatch-disabled-icon-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-workflow-icon-size-50)); + --spectrum-swatch-slash-thickness: var(--mod-swatch-slash-thickness, var(--spectrum-swatch-slash-thickness-extra-small)); +} + +.spectrum-Swatch--sizeM { + --spectrum-swatch-size: var(--mod-swatch-size, var(--spectrum-swatch-size-medium)); + --spectrum-swatch-disabled-icon-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-workflow-icon-size-100)); + --spectrum-swatch-slash-thickness: var(--mod-swatch-slash-thickness, var(--spectrum-swatch-slash-thickness-medium)); +} + +.spectrum-Swatch--sizeL { + --spectrum-swatch-size: var(--mod-swatch-size, var(--spectrum-swatch-size-large)); + --spectrum-swatch-disabled-icon-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-workflow-icon-size-200)); + --spectrum-swatch-slash-thickness: var(--mod-swatch-slash-thickness, var(--spectrum-swatch-slash-thickness-large)); +} /* Windows high contrast mode */ @media (forced-colors: active) { @@ -26,54 +67,17 @@ .spectrum-Swatch-fill { forced-color-adjust: none; } - } - .spectrum-Swatch[disabled], - .spectrum-Swatch.is-disabled { - --highcontrast-swatch-border-color: GrayText; + &[disabled], + &.is-disabled { + --highcontrast-swatch-border-color: GrayText; + } } } -.spectrum-Swatch, -.spectrum-Swatch--sizeS { - --spectrum-swatch-size: var(--spectrum-swatch-size-small); - --spectrum-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-small); -} - -.spectrum-Swatch--sizeXS { - --spectrum-swatch-size: var(--spectrum-swatch-size-extra-small); - --spectrum-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-50); - --spectrum-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-extra-small); -} - -.spectrum-Swatch--sizeM { - --spectrum-swatch-size: var(--spectrum-swatch-size-medium); - --spectrum-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-medium); -} - -.spectrum-Swatch--sizeL { - --spectrum-swatch-size: var(--spectrum-swatch-size-large); - --spectrum-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-large); -} - .spectrum-Swatch { - --spectrum-swatch-focus-indicator-border-radius: 8px; - --spectrum-swatch-icon-border-color: rgb(0 0 0 / 51%); - --spectrum-swatch-border-radius: var(--spectrum-corner-radius-100); - --spectrum-swatch-border-thickness: var(--spectrum-border-width-100); - --spectrum-swatch-border-thickness-selected: var(--spectrum-border-width-200); - --spectrum-swatch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-swatch-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-swatch-border-color-selected: var(--spectrum-gray-900); - --spectrum-swatch-dash-icon-color: var(--spectrum-gray-800); - --spectrum-swatch-slash-icon-color: var(--spectrum-red-900); - --spectrum-swatch-focus-indicator-color: var(--spectrum-focus-indicator-color); - - inline-size: var(--mod-swatch-size, var(--spectrum-swatch-size)); - block-size: var(--mod-swatch-size, var(--spectrum-swatch-size)); + inline-size: var(--spectrum-swatch-size); + block-size: var(--spectrum-swatch-size); display: flex; align-items: center; @@ -88,24 +92,24 @@ user-select: none; .spectrum-Swatch-disabledIcon { - inline-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-swatch-disabled-icon-size)); - block-size: var(--mod-swatch-disabled-icon-size, var(--spectrum-swatch-disabled-icon-size)); + inline-size: var(--spectrum-swatch-disabled-icon-size); + block-size: var(--spectrum-swatch-disabled-icon-size); } &, &::before { - border-radius: var(--mod-swatch-border-radius, var(--spectrum-swatch-border-radius)); + border-radius: var(--spectrum-swatch-border-radius); } &.is-selected { - background: var(--highcontrast-swatch-background-color-selected, var(--mod-swatch-inner-border-color-selected, var(--spectrum-swatch-inner-border-color-selected))); + background: var(--spectrum-swatch-inner-border-color-selected); .spectrum-Swatch-fill { clip-path: polygon( - calc(var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2) calc(var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2), - calc(100% - var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2) calc(var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2), - calc(100% - var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2) calc(100% - var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2), - calc(var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2) calc(100% - var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2) + calc(var(--spectrum-swatch-border-thickness-selected) * 2) calc(var(--spectrum-swatch-border-thickness-selected) * 2), + calc(100% - var(--spectrum-swatch-border-thickness-selected) * 2) calc(var(--spectrum-swatch-border-thickness-selected) * 2), + calc(100% - var(--spectrum-swatch-border-thickness-selected) * 2) calc(100% - var(--spectrum-swatch-border-thickness-selected) * 2), + calc(var(--spectrum-swatch-border-thickness-selected) * 2) calc(100% - var(--spectrum-swatch-border-thickness-selected) * 2) ); /* no border radius when selected */ @@ -147,12 +151,12 @@ background-image: none; &::after { - inline-size: var(--mod-swatch-slash-thickness, var(--spectrum-swatch-slash-thickness)); + inline-size: var(--spectrum-swatch-slash-thickness); content: ""; position: absolute; transform: rotate(-45deg); block-size: 200%; /* just needs to be bigger than a swatch */ - background: var(--highcontrast-swatch-fill-foreground-color, var(--mod-swatch-slash-icon-color, var(--spectrum-swatch-slash-icon-color))); + background: var(--spectrum-swatch-slash-icon-color); } } @@ -174,9 +178,9 @@ position: absolute; inset: 0; - border-width: var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)); + border-width: var(--spectrum-swatch-border-thickness-selected); border-style: solid; - border-color: var(--highcontrast-swatch-border-color-selected, var(--mod-swatch-border-color-selected, var(--spectrum-swatch-border-color-selected))); + border-color: var(--spectrum-swatch-border-color-selected); opacity: 0; @@ -187,14 +191,14 @@ &::after { content: ""; position: absolute; - inset: calc(-2 * var(--mod-swatch-focus-indicator-gap, var(--spectrum-swatch-focus-indicator-gap))); + inset: calc(-2 * var(--spectrum-swatch-focus-indicator-gap)); opacity: 0; - border-width: var(--mod-swatch-focus-indicator-thickness, var(--spectrum-swatch-focus-indicator-thickness)); + border-width: var(--spectrum-swatch-focus-indicator-thickness); border-style: solid; - border-color: var(--highcontrast-swatch-focus-indicator-color, var(--mod-swatch-focus-indicator-color, var(--spectrum-swatch-focus-indicator-color))); - border-radius: var(--mod-swatch-focus-indicator-border-radius, var(--spectrum-swatch-focus-indicator-border-radius)); + border-color: var(--spectrum-swatch-focus-indicator-color); + border-radius: var(--spectrum-swatch-focus-indicator-border-radius); transition: opacity var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-in-out; } @@ -227,6 +231,8 @@ position: absolute; inset: 0; z-index: 0; + + /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ background: var(--spectrum-picked-color, transparent); /* Swatch border */ @@ -248,7 +254,7 @@ .spectrum-Swatch--lightBorder { .spectrum-Swatch-fill { &::before { - box-shadow: inset 0 0 0 var(--mod-swatch-border-thickness, var(--spectrum-swatch-border-thickness)) var(--mod-swatch-border-color-light, var(--spectrum-swatch-border-color-light)); + box-shadow: inset 0 0 0 var(--spectrum-swatch-border-thickness) var(--mod-swatch-border-color-light, var(--spectrum-swatch-border-color-light)); } } } @@ -256,6 +262,8 @@ .spectrum-Swatch-mixedValueIcon { display: none; pointer-events: none; + + /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ color: var(--spectrum-picked-color, transparent); } @@ -266,22 +274,22 @@ display: none; pointer-events: none; - color: var(--highcontrast-swatch-disabled-icon-color, var(--mod-swatch-disabled-icon-color, var(--spectrum-swatch-disabled-icon-color))); - stroke: var(--highcontrast-swatch-disabled-icon-color, var(--mod-swatch-disabled-icon-color, var(--spectrum-swatch-disabled-icon-color))); + color: var(--spectrum-swatch-disabled-icon-color); + stroke: var(--spectrum-swatch-disabled-icon-color); /* Icon fill color */ path:first-child { - fill: var(--highcontrast-swatch-disabled-icon-color, var(--mod-swatch-disabled-icon-color, var(--spectrum-swatch-disabled-icon-color))); + fill: var(--spectrum-swatch-disabled-icon-color); } /* Icon outline color - does not need a highcontrast token because the icon fill color provides contrast. */ path:last-child { - fill: var(--mod-swatch-icon-border-color, var(--spectrum-swatch-icon-border-color)); + fill: var(--spectrum-swatch-icon-border-color); } } .spectrum-Swatch--rectangle { - inline-size: calc(var(--mod-swatch-size, var(--spectrum-swatch-size)) * 2); + inline-size: calc(var(--spectrum-swatch-size) * 2); } /* Variant: Rounding - None */ @@ -311,7 +319,7 @@ } &.is-selected .spectrum-Swatch-fill { - clip-path: circle(calc(50% - (var(--mod-swatch-border-thickness-selected, var(--spectrum-swatch-border-thickness-selected)) * 2)) at 50% 50%); + clip-path: circle(calc(50% - (var(--spectrum-swatch-border-thickness-selected) * 2)) at 50% 50%); } } } diff --git a/components/swatch/package.json b/components/swatch/package.json index 7f6e76bf975..18f3f8ffeba 100644 --- a/components/swatch/package.json +++ b/components/swatch/package.json @@ -25,16 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/opacitycheckerboard": ">=2", - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/opacitycheckerboard": ">=4", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/opacitycheckerboard": "4.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/swatch/stories/template.js b/components/swatch/stories/template.js index 2556fc3da75..836dd20d36f 100644 --- a/components/swatch/stories/template.js +++ b/components/swatch/stories/template.js @@ -9,9 +9,6 @@ import { when } from "lit/directives/when.js"; import { capitalize, lowerCase } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Swatch", diff --git a/components/swatch/themes/express.css b/components/swatch/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/swatch/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/swatch/themes/spectrum-two.css b/components/swatch/themes/spectrum-two.css deleted file mode 100644 index e753d50ca03..00000000000 --- a/components/swatch/themes/spectrum-two.css +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - /* Swatch tokens */ - .spectrum-Swatch { - --spectrum-swatch-border-color: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-swatch-border-color-opacity)); - --spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-25); - --spectrum-swatch-disabled-icon-color: var(--spectrum-gray-25); - } -} diff --git a/components/swatch/themes/spectrum.css b/components/swatch/themes/spectrum.css deleted file mode 100644 index d82cd4c9c0b..00000000000 --- a/components/swatch/themes/spectrum.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Swatch { - --spectrum-swatch-border-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-swatch-border-color-opacity)); - --spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-50); - --spectrum-swatch-disabled-icon-color: var(--spectrum-gray-50); - } -} diff --git a/components/swatchgroup/CHANGELOG.md b/components/swatchgroup/CHANGELOG.md index 86a0ead35c2..c869663a343 100644 --- a/components/swatchgroup/CHANGELOG.md +++ b/components/swatchgroup/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 4.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/swatch@7.0.0-next.0 + ## 5.0.1 ### Patch Changes @@ -143,16 +151,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.5...@spectrum-css/swatchgroup@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.5...@spectrum-css/swatchgroup@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.4...@spectrum-css/swatchgroup@2.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.4...@spectrum-css/swatchgroup@2.1.5) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -169,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.3...@spectrum-css/swatchgroup@2.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.3...@spectrum-css/swatchgroup@2.1.4) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -178,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.2...@spectrum-css/swatchgroup@2.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.2...@spectrum-css/swatchgroup@2.1.3) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -187,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.1...@spectrum-css/swatchgroup@2.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.1.1...@spectrum-css/swatchgroup@2.1.2) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -196,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -205,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.78...@spectrum-css/swatchgroup@2.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.78...@spectrum-css/swatchgroup@2.1.0) ### ✨ Features @@ -216,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.78 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.77...@spectrum-css/swatchgroup@2.0.78) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.77...@spectrum-css/swatchgroup@2.0.78) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -225,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.77 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.76...@spectrum-css/swatchgroup@2.0.77) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.76...@spectrum-css/swatchgroup@2.0.77) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -234,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.76 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.74...@spectrum-css/swatchgroup@2.0.76) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.74...@spectrum-css/swatchgroup@2.0.76) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -243,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.75 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.74...@spectrum-css/swatchgroup@2.0.75) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.74...@spectrum-css/swatchgroup@2.0.75) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -252,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.74 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.73...@spectrum-css/swatchgroup@2.0.74) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.73...@spectrum-css/swatchgroup@2.0.74) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -261,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.73 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.72...@spectrum-css/swatchgroup@2.0.73) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.72...@spectrum-css/swatchgroup@2.0.73) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -270,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.72 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.71...@spectrum-css/swatchgroup@2.0.72) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.71...@spectrum-css/swatchgroup@2.0.72) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -279,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.71 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.70...@spectrum-css/swatchgroup@2.0.71) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.70...@spectrum-css/swatchgroup@2.0.71) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -288,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.70 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.69...@spectrum-css/swatchgroup@2.0.70) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.69...@spectrum-css/swatchgroup@2.0.70) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -297,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.69 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.68...@spectrum-css/swatchgroup@2.0.69) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.68...@spectrum-css/swatchgroup@2.0.69) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -306,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.68 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.67...@spectrum-css/swatchgroup@2.0.68) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.67...@spectrum-css/swatchgroup@2.0.68) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -315,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.67 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.66...@spectrum-css/swatchgroup@2.0.67) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.66...@spectrum-css/swatchgroup@2.0.67) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -324,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.66 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.65...@spectrum-css/swatchgroup@2.0.66) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.65...@spectrum-css/swatchgroup@2.0.66) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -333,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.65 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.64...@spectrum-css/swatchgroup@2.0.65) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.64...@spectrum-css/swatchgroup@2.0.65) ### 🔙 Reverts @@ -344,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.64 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.63...@spectrum-css/swatchgroup@2.0.64) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.63...@spectrum-css/swatchgroup@2.0.64) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -353,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.63 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.61...@spectrum-css/swatchgroup@2.0.63) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.61...@spectrum-css/swatchgroup@2.0.63) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -362,8 +345,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.62 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.61...@spectrum-css/swatchgroup@2.0.62) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.61...@spectrum-css/swatchgroup@2.0.62) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -371,8 +353,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.61 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.60...@spectrum-css/swatchgroup@2.0.61) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.60...@spectrum-css/swatchgroup@2.0.61) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -380,8 +361,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.60 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.59...@spectrum-css/swatchgroup@2.0.60) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.59...@spectrum-css/swatchgroup@2.0.60) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -389,8 +369,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.59 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.58...@spectrum-css/swatchgroup@2.0.59) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.58...@spectrum-css/swatchgroup@2.0.59) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -398,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.58 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.57...@spectrum-css/swatchgroup@2.0.58) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.57...@spectrum-css/swatchgroup@2.0.58) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -407,8 +385,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.57 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.56...@spectrum-css/swatchgroup@2.0.57) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.56...@spectrum-css/swatchgroup@2.0.57) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -416,8 +393,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.56 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.55...@spectrum-css/swatchgroup@2.0.56) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.55...@spectrum-css/swatchgroup@2.0.56) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -425,8 +401,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.55 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.54...@spectrum-css/swatchgroup@2.0.55) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.54...@spectrum-css/swatchgroup@2.0.55) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -434,8 +409,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.54 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.53...@spectrum-css/swatchgroup@2.0.54) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.53...@spectrum-css/swatchgroup@2.0.54) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -443,8 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.53 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.52...@spectrum-css/swatchgroup@2.0.53) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.52...@spectrum-css/swatchgroup@2.0.53) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -452,8 +425,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.52 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.51...@spectrum-css/swatchgroup@2.0.52) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.51...@spectrum-css/swatchgroup@2.0.52) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -461,8 +433,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.51 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.50...@spectrum-css/swatchgroup@2.0.51) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.50...@spectrum-css/swatchgroup@2.0.51) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -470,8 +441,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.50 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.49...@spectrum-css/swatchgroup@2.0.50) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.49...@spectrum-css/swatchgroup@2.0.50) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -479,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.49 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.48...@spectrum-css/swatchgroup@2.0.49) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.48...@spectrum-css/swatchgroup@2.0.49) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -488,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.48 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.47...@spectrum-css/swatchgroup@2.0.48) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.47...@spectrum-css/swatchgroup@2.0.48) ### 🐛 Bug fixes @@ -499,8 +467,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.47 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.46...@spectrum-css/swatchgroup@2.0.47) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.46...@spectrum-css/swatchgroup@2.0.47) **Note:** Version bump only for package @spectrum-css/swatchgroup @@ -508,8 +475,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.46 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.45...@spectrum-css/swatchgroup@2.0.46) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/swatchgroup@2.0.45...@spectrum-css/swatchgroup@2.0.46) **Note:** Version bump only for package @spectrum-css/swatchgroup diff --git a/components/swatchgroup/dist/metadata.json b/components/swatchgroup/dist/metadata.json index 74adf019d54..24e3423ca5d 100644 --- a/components/swatchgroup/dist/metadata.json +++ b/components/swatchgroup/dist/metadata.json @@ -16,7 +16,6 @@ "--spectrum-spacing-50", "--spectrum-spacing-75" ], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/swatchgroup/package.json b/components/swatchgroup/package.json index 17f4b212bc0..8682255389c 100644 --- a/components/swatchgroup/package.json +++ b/components/swatchgroup/package.json @@ -26,15 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/swatch": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/swatch": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/switch/CHANGELOG.md b/components/switch/CHANGELOG.md index 62c465fdb1f..1bd51bc689a 100644 --- a/components/switch/CHANGELOG.md +++ b/components/switch/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.2.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`5fae8ab`](https://github.com/adobe/spectrum-css/commit/5fae8aba83d396103aca56c108e7e81f61fce655) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 6.0.1 ### Patch Changes @@ -117,16 +126,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.5...@spectrum-css/switch@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.5...@spectrum-css/switch@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -134,8 +140,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.4...@spectrum-css/switch@4.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.4...@spectrum-css/switch@4.2.5) **Note:** Version bump only for package @spectrum-css/switch @@ -143,8 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.3...@spectrum-css/switch@4.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.3...@spectrum-css/switch@4.2.4) **Note:** Version bump only for package @spectrum-css/switch @@ -152,8 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.2...@spectrum-css/switch@4.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.2...@spectrum-css/switch@4.2.3) **Note:** Version bump only for package @spectrum-css/switch @@ -161,8 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.1...@spectrum-css/switch@4.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.2.1...@spectrum-css/switch@4.2.2) **Note:** Version bump only for package @spectrum-css/switch @@ -170,8 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/switch @@ -179,8 +180,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.1.0...@spectrum-css/switch@4.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.1.0...@spectrum-css/switch@4.2.0) **Note:** Version bump only for package @spectrum-css/switch @@ -188,8 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.17...@spectrum-css/switch@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.17...@spectrum-css/switch@4.1.0) ### ✨ Features @@ -199,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.16...@spectrum-css/switch@4.0.17) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.16...@spectrum-css/switch@4.0.17) **Note:** Version bump only for package @spectrum-css/switch @@ -208,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.15...@spectrum-css/switch@4.0.16) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.15...@spectrum-css/switch@4.0.16) **Note:** Version bump only for package @spectrum-css/switch @@ -217,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.13...@spectrum-css/switch@4.0.15) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.13...@spectrum-css/switch@4.0.15) **Note:** Version bump only for package @spectrum-css/switch @@ -226,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.13...@spectrum-css/switch@4.0.14) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.13...@spectrum-css/switch@4.0.14) **Note:** Version bump only for package @spectrum-css/switch @@ -235,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.12...@spectrum-css/switch@4.0.13) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.12...@spectrum-css/switch@4.0.13) **Note:** Version bump only for package @spectrum-css/switch @@ -244,8 +238,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.11...@spectrum-css/switch@4.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.11...@spectrum-css/switch@4.0.12) **Note:** Version bump only for package @spectrum-css/switch @@ -253,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.10...@spectrum-css/switch@4.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.10...@spectrum-css/switch@4.0.11) **Note:** Version bump only for package @spectrum-css/switch @@ -262,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.9...@spectrum-css/switch@4.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.9...@spectrum-css/switch@4.0.10) **Note:** Version bump only for package @spectrum-css/switch @@ -271,8 +262,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.8...@spectrum-css/switch@4.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.8...@spectrum-css/switch@4.0.9) **Note:** Version bump only for package @spectrum-css/switch @@ -280,8 +270,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.7...@spectrum-css/switch@4.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.7...@spectrum-css/switch@4.0.8) **Note:** Version bump only for package @spectrum-css/switch @@ -289,8 +278,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.6...@spectrum-css/switch@4.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.6...@spectrum-css/switch@4.0.7) **Note:** Version bump only for package @spectrum-css/switch @@ -298,8 +286,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.5...@spectrum-css/switch@4.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.5...@spectrum-css/switch@4.0.6) **Note:** Version bump only for package @spectrum-css/switch @@ -307,8 +294,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.4...@spectrum-css/switch@4.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.4...@spectrum-css/switch@4.0.5) **Note:** Version bump only for package @spectrum-css/switch @@ -316,8 +302,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.3...@spectrum-css/switch@4.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.3...@spectrum-css/switch@4.0.4) ### 🔙 Reverts @@ -327,8 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.2...@spectrum-css/switch@4.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.2...@spectrum-css/switch@4.0.3) **Note:** Version bump only for package @spectrum-css/switch @@ -336,8 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.0...@spectrum-css/switch@4.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.0...@spectrum-css/switch@4.0.2) **Note:** Version bump only for package @spectrum-css/switch @@ -345,8 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.0...@spectrum-css/switch@4.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@4.0.0...@spectrum-css/switch@4.0.1) **Note:** Version bump only for package @spectrum-css/switch @@ -354,13 +336,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.13...@spectrum-css/switch@4.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.13...@spectrum-css/switch@4.0.0) \*refactor(switch)!: replace focus-ring with focus-visible([7c5aa13](https://github.com/adobe/spectrum-css/commit/7c5aa13)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use focus-visible pseudo class in place of focus-ring @@ -369,8 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.13 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.12...@spectrum-css/switch@3.1.13) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.12...@spectrum-css/switch@3.1.13) ### 🐛 Bug fixes @@ -380,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.12 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.11...@spectrum-css/switch@3.1.12) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.11...@spectrum-css/switch@3.1.12) **Note:** Version bump only for package @spectrum-css/switch @@ -389,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.11 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.10...@spectrum-css/switch@3.1.11) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.10...@spectrum-css/switch@3.1.11) **Note:** Version bump only for package @spectrum-css/switch @@ -398,8 +375,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.10 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.9...@spectrum-css/switch@3.1.10) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.9...@spectrum-css/switch@3.1.10) **Note:** Version bump only for package @spectrum-css/switch @@ -407,8 +383,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.9 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.8...@spectrum-css/switch@3.1.9) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.8...@spectrum-css/switch@3.1.9) **Note:** Version bump only for package @spectrum-css/switch @@ -416,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.8 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.7...@spectrum-css/switch@3.1.8) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.7...@spectrum-css/switch@3.1.8) **Note:** Version bump only for package @spectrum-css/switch @@ -425,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.7 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.6...@spectrum-css/switch@3.1.7) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.6...@spectrum-css/switch@3.1.7) **Note:** Version bump only for package @spectrum-css/switch @@ -434,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.6 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.5...@spectrum-css/switch@3.1.6) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.5...@spectrum-css/switch@3.1.6) **Note:** Version bump only for package @spectrum-css/switch @@ -443,8 +415,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.5 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.4...@spectrum-css/switch@3.1.5) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.4...@spectrum-css/switch@3.1.5) **Note:** Version bump only for package @spectrum-css/switch @@ -452,8 +423,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.4 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.3...@spectrum-css/switch@3.1.4) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.3...@spectrum-css/switch@3.1.4) **Note:** Version bump only for package @spectrum-css/switch @@ -461,8 +431,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.3 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.2...@spectrum-css/switch@3.1.3) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.2...@spectrum-css/switch@3.1.3) **Note:** Version bump only for package @spectrum-css/switch @@ -470,8 +439,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.2 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.1...@spectrum-css/switch@3.1.2) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.1...@spectrum-css/switch@3.1.2) ### 🐛 Bug fixes @@ -481,8 +449,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.1 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.0...@spectrum-css/switch@3.1.1) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.1.0...@spectrum-css/switch@3.1.1) **Note:** Version bump only for package @spectrum-css/switch @@ -490,8 +457,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.0.38...@spectrum-css/switch@3.1.0) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/switch@3.0.38...@spectrum-css/switch@3.1.0) ### ✨ Features diff --git a/components/switch/dist/metadata.json b/components/switch/dist/metadata.json index 00a47cdd798..57a281d35df 100644 --- a/components/switch/dist/metadata.json +++ b/components/switch/dist/metadata.json @@ -2,86 +2,66 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Switch", + ".spectrum-Switch .spectrum-Switch-input:disabled + .spectrum-Switch-switch", + ".spectrum-Switch .spectrum-Switch-input:disabled + .spectrum-Switch-switch:before", ".spectrum-Switch .spectrum-Switch-input:disabled ~ .spectrum-Switch-label", ".spectrum-Switch .spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch", ".spectrum-Switch .spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-input:disabled:not(:checked) + .spectrum-Switch-switch", - ".spectrum-Switch .spectrum-Switch-input:disabled:not(:checked) + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:after", - ".spectrum-Switch .spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-input:focus-visible ~ .spectrum-Switch-label", - ".spectrum-Switch .spectrum-Switch-input:focus-visible:checked + .spectrum-Switch-switch", - ".spectrum-Switch .spectrum-Switch-input:focus-visible:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-input:not(:checked) + .spectrum-Switch-switch", + ".spectrum-Switch .spectrum-Switch-input[disabled] + .spectrum-Switch-switch", + ".spectrum-Switch .spectrum-Switch-input[disabled] + .spectrum-Switch-switch:before", ".spectrum-Switch .spectrum-Switch-input[disabled] ~ .spectrum-Switch-label", ".spectrum-Switch .spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch", ".spectrum-Switch .spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-input[disabled]:not(:checked) + .spectrum-Switch-switch", - ".spectrum-Switch .spectrum-Switch-input[disabled]:not(:checked) + .spectrum-Switch-switch:before", - ".spectrum-Switch .spectrum-Switch-switch", - ".spectrum-Switch .spectrum-Switch-switch:before", ".spectrum-Switch--disabled", + ".spectrum-Switch--emphasized", ".spectrum-Switch--sizeL", - ".spectrum-Switch--sizeM", ".spectrum-Switch--sizeS", ".spectrum-Switch--sizeXL", ".spectrum-Switch-input", ".spectrum-Switch-input:checked + .spectrum-Switch-switch", ".spectrum-Switch-input:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch-input:checked + .spectrum-Switch-switch:dir(rtl):before", + ".spectrum-Switch-input:checked + .spectrum-Switch-switch:before:dir(rtl)", + ".spectrum-Switch-input:checked:focus-visible + .spectrum-Switch-switch", ".spectrum-Switch-input:disabled", - ".spectrum-Switch-input:disabled + .spectrum-Switch-switch", - ".spectrum-Switch-input:disabled + .spectrum-Switch-switch:before", - ".spectrum-Switch-input:disabled ~ .spectrum-Switch-label", - ".spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch", - ".spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch:before", + ".spectrum-Switch-input:focus-visible + .spectrum-Switch-switch", ".spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:after", + ".spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:before", + ".spectrum-Switch-input:focus-visible ~ .spectrum-Switch-label", ".spectrum-Switch-input[disabled]", - ".spectrum-Switch-input[disabled] + .spectrum-Switch-switch", - ".spectrum-Switch-input[disabled] + .spectrum-Switch-switch:before", - ".spectrum-Switch-input[disabled] ~ .spectrum-Switch-label", - ".spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch", - ".spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch:before", ".spectrum-Switch-label", + ".spectrum-Switch-label:lang(ja)", + ".spectrum-Switch-label:lang(ko)", + ".spectrum-Switch-label:lang(zh)", ".spectrum-Switch-switch", ".spectrum-Switch-switch:after", ".spectrum-Switch-switch:before", - ".spectrum-Switch.spectrum-Switch--emphasized", - ".spectrum-Switch:active .spectrum-Switch-input + .spectrum-Switch-switch:before", - ".spectrum-Switch:active .spectrum-Switch-input ~ .spectrum-Switch-label", - ".spectrum-Switch:active .spectrum-Switch-input:checked:enabled + .spectrum-Switch-switch", - ".spectrum-Switch:active .spectrum-Switch-input:checked:enabled + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input ~ .spectrum-Switch-label", - ".spectrum-Switch:hover .spectrum-Switch-input:checked:enabled + .spectrum-Switch-switch", - ".spectrum-Switch:hover .spectrum-Switch-input:checked:enabled + .spectrum-Switch-switch:before", + ".spectrum-Switch:active .spectrum-Switch-input:checked + .spectrum-Switch-switch", + ".spectrum-Switch:active .spectrum-Switch-input:not(:disabled) + .spectrum-Switch-switch:before", + ".spectrum-Switch:active .spectrum-Switch-input:not(:disabled):checked + .spectrum-Switch-switch:before", + ".spectrum-Switch:active .spectrum-Switch-input:not(:disabled):checked + .spectrum-Switch-switch:before:dir(rtl)", + ".spectrum-Switch:active .spectrum-Switch-switch", + ".spectrum-Switch:active .spectrum-Switch-switch:before", + ".spectrum-Switch:active ~ .spectrum-Switch-label", + ".spectrum-Switch:hover .spectrum-Switch-input:checked + .spectrum-Switch-switch", + ".spectrum-Switch:hover .spectrum-Switch-input:checked + .spectrum-Switch-switch:before", ".spectrum-Switch:hover .spectrum-Switch-input:disabled + .spectrum-Switch-switch", ".spectrum-Switch:hover .spectrum-Switch-input:disabled + .spectrum-Switch-switch:before", ".spectrum-Switch:hover .spectrum-Switch-input:disabled ~ .spectrum-Switch-label", ".spectrum-Switch:hover .spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch", ".spectrum-Switch:hover .spectrum-Switch-input:disabled:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input:disabled:checked ~ .spectrum-Switch-label", - ".spectrum-Switch:hover .spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:after", - ".spectrum-Switch:hover .spectrum-Switch-input:focus-visible + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input:focus-visible ~ .spectrum-Switch-label", - ".spectrum-Switch:hover .spectrum-Switch-input:focus-visible:checked + .spectrum-Switch-switch", - ".spectrum-Switch:hover .spectrum-Switch-input:focus-visible:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input:not(:checked) + .spectrum-Switch-switch", ".spectrum-Switch:hover .spectrum-Switch-input[disabled] + .spectrum-Switch-switch", ".spectrum-Switch:hover .spectrum-Switch-input[disabled] + .spectrum-Switch-switch:before", ".spectrum-Switch:hover .spectrum-Switch-input[disabled] ~ .spectrum-Switch-label", ".spectrum-Switch:hover .spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch", ".spectrum-Switch:hover .spectrum-Switch-input[disabled]:checked + .spectrum-Switch-switch:before", - ".spectrum-Switch:hover .spectrum-Switch-input[disabled]:checked ~ .spectrum-Switch-label", - "[dir=\"rtl\"] .spectrum-Switch-input:checked + .spectrum-Switch-switch:before" + ".spectrum-Switch:hover .spectrum-Switch-switch", + ".spectrum-Switch:hover .spectrum-Switch-switch:before", + ".spectrum-Switch:hover ~ .spectrum-Switch-label", + "[dir=\"rtl\"] .spectrum-Switch-input:checked + .spectrum-Switch-switch:before", + "[dir=\"rtl\"] .spectrum-Switch:active .spectrum-Switch-input:not(:disabled):checked + .spectrum-Switch-switch:before" ], "modifiers": [ "--mod-animation-duration-100", - "--mod-animation-duration-200", - "--mod-border-width-200", - "--mod-focus-indicator-gap", - "--mod-focus-indicator-thickness", - "--mod-line-height-100", "--mod-switch-background-color", "--mod-switch-background-color-disabled", "--mod-switch-background-color-selected-default", @@ -89,28 +69,42 @@ "--mod-switch-background-color-selected-down", "--mod-switch-background-color-selected-focus", "--mod-switch-background-color-selected-hover", + "--mod-switch-border-color-default", + "--mod-switch-border-color-disabled", + "--mod-switch-border-color-down", + "--mod-switch-border-color-focus", + "--mod-switch-border-color-hover", + "--mod-switch-border-color-selected-default", + "--mod-switch-border-color-selected-down", + "--mod-switch-border-color-selected-focus", + "--mod-switch-border-color-selected-hover", + "--mod-switch-border-radius", + "--mod-switch-border-width", + "--mod-switch-cjk-line-height", "--mod-switch-control-height", "--mod-switch-control-label-spacing", "--mod-switch-control-width", "--mod-switch-focus-indicator-color", + "--mod-switch-focus-indicator-gap", "--mod-switch-focus-indicator-thickness", "--mod-switch-font-size", - "--mod-switch-handle-background-color", - "--mod-switch-handle-border-color-default", - "--mod-switch-handle-border-color-disabled", - "--mod-switch-handle-border-color-down", - "--mod-switch-handle-border-color-focus", - "--mod-switch-handle-border-color-hover", - "--mod-switch-handle-border-color-selected-default", - "--mod-switch-handle-border-color-selected-down", - "--mod-switch-handle-border-color-selected-focus", - "--mod-switch-handle-border-color-selected-hover", + "--mod-switch-handle-background-color-default", + "--mod-switch-handle-background-color-disabled", + "--mod-switch-handle-background-color-down", + "--mod-switch-handle-background-color-focus", + "--mod-switch-handle-background-color-hover", + "--mod-switch-handle-background-color-selected", + "--mod-switch-handle-background-color-selected-disabled", + "--mod-switch-handle-selected-size", + "--mod-switch-handle-size", "--mod-switch-height", - "--mod-switch-label-color-default", + "--mod-switch-label-color", "--mod-switch-label-color-disabled", "--mod-switch-label-color-down", "--mod-switch-label-color-focus", "--mod-switch-label-color-hover", + "--mod-switch-line-height", + "--mod-switch-spacing-bottom-to-label", "--mod-switch-spacing-top-to-control", "--mod-switch-spacing-top-to-label" ], @@ -122,6 +116,18 @@ "--spectrum-switch-background-color-selected-down", "--spectrum-switch-background-color-selected-focus", "--spectrum-switch-background-color-selected-hover", + "--spectrum-switch-border-color-default", + "--spectrum-switch-border-color-disabled", + "--spectrum-switch-border-color-down", + "--spectrum-switch-border-color-focus", + "--spectrum-switch-border-color-hover", + "--spectrum-switch-border-color-selected-default", + "--spectrum-switch-border-color-selected-down", + "--spectrum-switch-border-color-selected-focus", + "--spectrum-switch-border-color-selected-hover", + "--spectrum-switch-border-radius", + "--spectrum-switch-border-width", + "--spectrum-switch-cjk-line-height", "--spectrum-switch-control-height", "--spectrum-switch-control-height-extra-large", "--spectrum-switch-control-height-large", @@ -134,24 +140,34 @@ "--spectrum-switch-control-width-medium", "--spectrum-switch-control-width-small", "--spectrum-switch-focus-indicator-color", + "--spectrum-switch-focus-indicator-gap", "--spectrum-switch-focus-indicator-thickness", "--spectrum-switch-font-size", - "--spectrum-switch-handle-background-color", - "--spectrum-switch-handle-border-color-default", - "--spectrum-switch-handle-border-color-disabled", - "--spectrum-switch-handle-border-color-down", - "--spectrum-switch-handle-border-color-focus", - "--spectrum-switch-handle-border-color-hover", - "--spectrum-switch-handle-border-color-selected-default", - "--spectrum-switch-handle-border-color-selected-down", - "--spectrum-switch-handle-border-color-selected-focus", - "--spectrum-switch-handle-border-color-selected-hover", + "--spectrum-switch-handle-background-color-default", + "--spectrum-switch-handle-background-color-disabled", + "--spectrum-switch-handle-background-color-down", + "--spectrum-switch-handle-background-color-focus", + "--spectrum-switch-handle-background-color-hover", + "--spectrum-switch-handle-background-color-selected", + "--spectrum-switch-handle-background-color-selected-disabled", + "--spectrum-switch-handle-selected-size", + "--spectrum-switch-handle-selected-size-extra-large", + "--spectrum-switch-handle-selected-size-large", + "--spectrum-switch-handle-selected-size-medium", + "--spectrum-switch-handle-selected-size-small", + "--spectrum-switch-handle-size", + "--spectrum-switch-handle-size-extra-large", + "--spectrum-switch-handle-size-large", + "--spectrum-switch-handle-size-medium", + "--spectrum-switch-handle-size-small", "--spectrum-switch-label-color-default", "--spectrum-switch-label-color-disabled", "--spectrum-switch-label-color-down", "--spectrum-switch-label-color-focus", "--spectrum-switch-label-color-hover", + "--spectrum-switch-line-height", "--spectrum-switch-min-height", + "--spectrum-switch-spacing-bottom-to-label", "--spectrum-switch-spacing-top-to-control", "--spectrum-switch-spacing-top-to-label", "--spectrum-switch-top-to-control-extra-large", @@ -160,20 +176,29 @@ "--spectrum-switch-top-to-control-small" ], "global": [ - "--spectrum-accent-color-1000", - "--spectrum-accent-color-1100", - "--spectrum-accent-color-900", + "--spectrum-accent-background-color-default", + "--spectrum-accent-background-color-down", + "--spectrum-accent-background-color-hover", + "--spectrum-accent-background-color-key-focus", "--spectrum-animation-duration-100", "--spectrum-animation-duration-200", "--spectrum-border-width-200", + "--spectrum-cjk-line-height-100", + "--spectrum-component-bottom-to-text-100", + "--spectrum-component-bottom-to-text-200", + "--spectrum-component-bottom-to-text-300", + "--spectrum-component-bottom-to-text-75", "--spectrum-component-height-100", "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", + "--spectrum-component-size-difference-down", + "--spectrum-component-size-minimum-perspective-down", "--spectrum-component-top-to-text-100", "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-300", "--spectrum-component-top-to-text-75", + "--spectrum-corner-radius-full", "--spectrum-disabled-content-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", @@ -182,17 +207,12 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-200", - "--spectrum-gray-50", - "--spectrum-gray-600", - "--spectrum-gray-700", - "--spectrum-gray-800", - "--spectrum-gray-900", + "--spectrum-gray-25", "--spectrum-line-height-100", - "--spectrum-neutral-background-color-selected-default", - "--spectrum-neutral-background-color-selected-down", - "--spectrum-neutral-background-color-selected-hover", - "--spectrum-neutral-background-color-selected-key-focus", + "--spectrum-neutral-background-color-default", + "--spectrum-neutral-background-color-down", + "--spectrum-neutral-background-color-hover", + "--spectrum-neutral-background-color-key-focus", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", "--spectrum-neutral-content-color-hover", @@ -202,38 +222,32 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-switch-background-color", - "--system-switch-background-color-disabled", - "--system-switch-handle-background-color", - "--system-switch-handle-border-color-default", - "--system-switch-handle-border-color-down", - "--system-switch-handle-border-color-focus", - "--system-switch-handle-border-color-hover", - "--system-switch-handle-border-color-selected-default", - "--system-switch-handle-border-color-selected-down", - "--system-switch-handle-border-color-selected-focus", - "--system-switch-handle-border-color-selected-hover" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-switch-background-color", + "--highcontrast-switch-background-color-disabled", "--highcontrast-switch-background-color-selected-default", "--highcontrast-switch-background-color-selected-disabled", "--highcontrast-switch-background-color-selected-down", "--highcontrast-switch-background-color-selected-focus", "--highcontrast-switch-background-color-selected-hover", + "--highcontrast-switch-border-color-default", + "--highcontrast-switch-border-color-disabled", + "--highcontrast-switch-border-color-down", + "--highcontrast-switch-border-color-focus", + "--highcontrast-switch-border-color-hover", + "--highcontrast-switch-border-color-selected-default", + "--highcontrast-switch-border-color-selected-down", + "--highcontrast-switch-border-color-selected-focus", + "--highcontrast-switch-border-color-selected-hover", "--highcontrast-switch-focus-indicator-color", - "--highcontrast-switch-handle-background-color", - "--highcontrast-switch-handle-border-color-default", - "--highcontrast-switch-handle-border-color-disabled", - "--highcontrast-switch-handle-border-color-down", - "--highcontrast-switch-handle-border-color-focus", - "--highcontrast-switch-handle-border-color-hover", - "--highcontrast-switch-handle-border-color-selected-default", - "--highcontrast-switch-handle-border-color-selected-down", - "--highcontrast-switch-handle-border-color-selected-focus", - "--highcontrast-switch-handle-border-color-selected-hover", + "--highcontrast-switch-handle-background-color-default", + "--highcontrast-switch-handle-background-color-disabled", + "--highcontrast-switch-handle-background-color-down", + "--highcontrast-switch-handle-background-color-focus", + "--highcontrast-switch-handle-background-color-hover", + "--highcontrast-switch-handle-background-color-selected", + "--highcontrast-switch-handle-background-color-selected-disabled", "--highcontrast-switch-label-color-default", "--highcontrast-switch-label-color-disabled", "--highcontrast-switch-label-color-down", diff --git a/components/switch/index.css b/components/switch/index.css index 763ad359ab8..2e0a88fe4f1 100644 --- a/components/switch/index.css +++ b/components/switch/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Switch { --spectrum-switch-label-color-default: var(--spectrum-neutral-content-color-default); --spectrum-switch-label-color-hover: var(--spectrum-neutral-content-color-hover); @@ -20,49 +18,74 @@ --spectrum-switch-label-color-focus: var(--spectrum-neutral-content-color-key-focus); --spectrum-switch-label-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-switch-background-color-selected-default: var(--spectrum-neutral-background-color-selected-default); - --spectrum-switch-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); - --spectrum-switch-background-color-selected-down: var(--spectrum-neutral-background-color-selected-down); - --spectrum-switch-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); + --spectrum-switch-border-width: var(--spectrum-border-width-200); + + --spectrum-switch-border-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-switch-border-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-switch-border-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-switch-border-color-focus: var(--spectrum-neutral-content-color-key-focus); + --spectrum-switch-border-color-disabled: var(--spectrum-disabled-content-color); + + --spectrum-switch-border-color-selected-default: var(--spectrum-neutral-content-color-default); + --spectrum-switch-border-color-selected-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-switch-border-color-selected-down: var(--spectrum-neutral-content-color-down); + --spectrum-switch-border-color-selected-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-switch-background-color: var(--spectrum-gray-25); + --spectrum-switch-background-color-disabled: var(--spectrum-gray-25); + + --spectrum-switch-background-color-selected-default: var(--spectrum-neutral-background-color-default); + --spectrum-switch-background-color-selected-hover: var(--spectrum-neutral-background-color-hover); + --spectrum-switch-background-color-selected-down: var(--spectrum-neutral-background-color-down); + --spectrum-switch-background-color-selected-focus: var(--spectrum-neutral-background-color-key-focus); --spectrum-switch-background-color-selected-disabled: var(--spectrum-disabled-content-color); - --spectrum-switch-focus-indicator-thickness: var(--mod-focus-indicator-thickness, var(--spectrum-focus-indicator-thickness)); + --spectrum-switch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-switch-focus-indicator-color: var(--spectrum-focus-indicator-color); - --spectrum-switch-handle-border-color-disabled: var(--spectrum-disabled-content-color); -} + --spectrum-switch-focus-indicator-gap: var(--spectrum-focus-indicator-gap); -.spectrum-Switch--disabled { - --spectrum-switch-label-color-default: var(--spectrum-disabled-content-color); -} + --spectrum-switch-handle-background-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-switch-handle-background-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-switch-handle-background-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-switch-handle-background-color-focus: var(--spectrum-neutral-content-color-key-focus); + --spectrum-switch-handle-background-color-disabled: var(--spectrum-disabled-content-color); -.spectrum-Switch.spectrum-Switch--emphasized { - /* - Selector specificity needed to beat the cascade, post-build. - The `spectrum` & `express` theme vars get appended below this in the dist file - & the higher specificity here will override. - */ - /* selected + emphasized */ - --spectrum-switch-background-color-selected-default: var(--spectrum-accent-color-900); - --spectrum-switch-background-color-selected-hover: var(--spectrum-accent-color-1000); - --spectrum-switch-background-color-selected-down: var(--spectrum-accent-color-1100); - --spectrum-switch-background-color-selected-focus: var(--spectrum-accent-color-1000); - - --spectrum-switch-handle-border-color-selected-default: var(--spectrum-accent-color-900); - --spectrum-switch-handle-border-color-selected-hover: var(--spectrum-accent-color-1000); - --spectrum-switch-handle-border-color-selected-down: var(--spectrum-accent-color-1100); - --spectrum-switch-handle-border-color-selected-focus: var(--spectrum-accent-color-1000); -} + --spectrum-switch-handle-background-color-selected: var(--spectrum-gray-25); + --spectrum-switch-handle-background-color-selected-disabled: var(--spectrum-gray-25); + + --spectrum-switch-handle-size: var(--spectrum-switch-handle-size-medium); + --spectrum-switch-handle-selected-size: var(--spectrum-switch-handle-selected-size-medium); -.spectrum-Switch, -.spectrum-Switch--sizeM { + /* Default size - medium */ --spectrum-switch-min-height: var(--spectrum-component-height-100); --spectrum-switch-control-width: var(--spectrum-switch-control-width-medium); --spectrum-switch-control-height: var(--spectrum-switch-control-height-medium); --spectrum-switch-control-label-spacing: var(--spectrum-text-to-control-100); --spectrum-switch-spacing-top-to-control: var(--spectrum-switch-top-to-control-medium); --spectrum-switch-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --spectrum-switch-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); --spectrum-switch-font-size: var(--spectrum-font-size-100); + --spectrum-switch-line-height: var(--spectrum-line-height-100); + --spectrum-switch-cjk-line-height: var(--spectrum-cjk-line-height-100); + + --spectrum-switch-border-radius: var(--spectrum-corner-radius-full); +} + +.spectrum-Switch--disabled { + --spectrum-switch-label-color-default: var(--spectrum-disabled-content-color); +} + +.spectrum-Switch--emphasized { + --spectrum-switch-background-color-selected-default: var(--spectrum-accent-background-color-default); + --spectrum-switch-background-color-selected-hover: var(--spectrum-accent-background-color-hover); + --spectrum-switch-background-color-selected-down: var(--spectrum-accent-background-color-down); + --spectrum-switch-background-color-selected-focus: var(--spectrum-accent-background-color-key-focus); + + --spectrum-switch-border-color-selected-default: var(--spectrum-accent-background-color-default); + --spectrum-switch-border-color-selected-hover: var(--spectrum-accent-background-color-hover); + --spectrum-switch-border-color-selected-down: var(--spectrum-accent-background-color-down); + --spectrum-switch-border-color-selected-focus: var(--spectrum-accent-background-color-key-focus); } .spectrum-Switch--sizeS { @@ -72,6 +95,10 @@ --spectrum-switch-control-label-spacing: var(--spectrum-text-to-control-75); --spectrum-switch-spacing-top-to-control: var(--spectrum-switch-top-to-control-small); --spectrum-switch-spacing-top-to-label: var(--spectrum-component-top-to-text-75); + --spectrum-switch-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-75); + + --spectrum-switch-handle-size: var(--spectrum-switch-handle-size-small); + --spectrum-switch-handle-selected-size: var(--spectrum-switch-handle-selected-size-small); --spectrum-switch-font-size: var(--spectrum-font-size-75); } @@ -83,6 +110,10 @@ --spectrum-switch-control-label-spacing: var(--spectrum-text-to-control-200); --spectrum-switch-spacing-top-to-control: var(--spectrum-switch-top-to-control-large); --spectrum-switch-spacing-top-to-label: var(--spectrum-component-top-to-text-200); + --spectrum-switch-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-200); + + --spectrum-switch-handle-size: var(--spectrum-switch-handle-size-large); + --spectrum-switch-handle-selected-size: var(--spectrum-switch-handle-selected-size-large); --spectrum-switch-font-size: var(--spectrum-font-size-200); } @@ -94,6 +125,10 @@ --spectrum-switch-control-label-spacing: var(--spectrum-text-to-control-300); --spectrum-switch-spacing-top-to-control: var(--spectrum-switch-top-to-control-extra-large); --spectrum-switch-spacing-top-to-label: var(--spectrum-component-top-to-text-300); + --spectrum-switch-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-300); + + --spectrum-switch-handle-size: var(--spectrum-switch-handle-size-extra-large); + --spectrum-switch-handle-selected-size: var(--spectrum-switch-handle-selected-size-extra-large); --spectrum-switch-font-size: var(--spectrum-font-size-300); } @@ -108,13 +143,8 @@ } .spectrum-Switch-input { - /* Remove the margin for input in Firefox and Safari. */ margin: 0; - - /* Add the correct box sizing for [type="checkbox"] in IE 10-. */ box-sizing: border-box; - - /* Remove the padding for [type="checkbox"] in IE 10-. */ padding: 0; position: absolute; @@ -127,36 +157,38 @@ cursor: pointer; - &:checked + .spectrum-Switch-switch { - &::before { - transform: translateX(calc(var(--mod-switch-control-width, var(--spectrum-switch-control-width)) - 100%)); - } - - &:dir(rtl)::before { - transform: translateX(calc(-1 * (var(--mod-switch-control-width, var(--spectrum-switch-control-width)) - 100%))); - } - } - &:disabled, &[disabled] { cursor: default; } - - &:focus-visible + .spectrum-Switch-switch { - &::after { - margin: calc(var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap)) * -1); - } - } } .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-default, var(--mod-switch-label-color-default, var(--spectrum-switch-label-color-default))); + color: var(--highcontrast-switch-label-color-default, var(--mod-switch-label-color, var(--spectrum-switch-label-color-default))); margin-inline: var(--mod-switch-control-label-spacing, var(--spectrum-switch-control-label-spacing)); margin-block-start: var(--mod-switch-spacing-top-to-label, var(--spectrum-switch-spacing-top-to-label)); - margin-block-end: 0; + margin-block-end: var(--mod-switch-spacing-bottom-to-label, var(--spectrum-switch-spacing-bottom-to-label)); font-size: var(--mod-switch-font-size, var(--spectrum-switch-font-size)); - line-height: var(--mod-line-height-100, var(--spectrum-line-height-100)); - transition: color var(--mod-animation-duration-200, var(--spectrum-animation-duration-200)) ease-in-out; + line-height: var(--mod-switch-line-height, var(--spectrum-switch-line-height)); + transition: color var(--spectrum-animation-duration-200) ease-in-out; + + &:lang(ja), + &:lang(zh), + &:lang(ko) { + line-height: var(--mod-switch-cjk-line-height, var(--spectrum-switch-cjk-line-height)); + } + + .spectrum-Switch:hover ~ & { + color: var(--highcontrast-switch-label-color-hover, var(--mod-switch-label-color-hover, var(--spectrum-switch-label-color-hover))); + } + + .spectrum-Switch:active ~ & { + color: var(--highcontrast-switch-label-color-down, var(--mod-switch-label-color-down, var(--spectrum-switch-label-color-down))); + } + + .spectrum-Switch-input:focus-visible ~ & { + color: var(--highcontrast-switch-label-color-focus, var(--mod-switch-label-color-focus, var(--spectrum-switch-label-color-focus))); + } } .spectrum-Switch-switch { @@ -186,191 +218,148 @@ inset-inline-start: 0; inset-inline-end: 0; - border-radius: calc(var(--mod-switch-control-height, var(--spectrum-switch-control-height)) / 2); + background-color: var(--highcontrast-switch-background-color, var(--mod-switch-background-color, var(--spectrum-switch-background-color))); + border-radius: var(--mod-switch-border-radius, var(--spectrum-switch-border-radius)); + border-width: var(--mod-switch-border-width, var(--spectrum-switch-border-width)); + border-color: var(--highcontrast-switch-border-color-default, var(--mod-switch-border-color-default, var(--spectrum-switch-border-color-default))); + border-style: solid; - &::before { - display: block; - position: absolute; - content: ""; - box-sizing: border-box; + .spectrum-Switch:hover & { + border-color: var(--highcontrast-switch-border-color-hover, var(--mod-switch-border-color-hover, var(--spectrum-switch-border-color-hover))); } - /* :before is used for the handle of the switch */ - &::before { - transition: - background var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-in-out, - border var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-in-out, - transform var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-in-out, - box-shadow var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-in-out; + .spectrum-Switch:active & { + border-color: var(--highcontrast-switch-border-color-down, var(--mod-switch-border-color-down, var(--spectrum-switch-border-color-down))); + } - inline-size: var(--mod-switch-control-height, var(--spectrum-switch-control-height)); - block-size: var(--mod-switch-control-height, var(--spectrum-switch-control-height)); + .spectrum-Switch-input:focus-visible + & { + border-color: var(--highcontrast-switch-border-color-focus, var(--mod-switch-border-color-focus, var(--spectrum-switch-border-color-focus))); + } - inset-block-start: 0; - inset-inline-start: 0; + .spectrum-Switch-input:checked + & { + background-color: var(--highcontrast-switch-background-color-selected-default, var(--mod-switch-background-color-selected-default, var(--spectrum-switch-background-color-selected-default))); + border-color: var(--highcontrast-switch-border-color-selected-default, var(--mod-switch-border-color-selected-default, var(--spectrum-switch-border-color-selected-default))); + + .spectrum-Switch:hover & { + background-color: var(--highcontrast-switch-background-color-selected-hover, var(--mod-switch-background-color-selected-hover, var(--spectrum-switch-background-color-selected-hover))); + border-color: var(--highcontrast-switch-border-color-selected-hover, var(--mod-switch-border-color-selected-hover, var(--spectrum-switch-border-color-selected-hover))); + } - border-width: var(--mod-border-width-200, var(--spectrum-border-width-200)); - border-radius: calc(var(--mod-switch-control-height, var(--spectrum-switch-control-height)) / 2); - border-style: solid; + .spectrum-Switch:active & { + background-color: var(--highcontrast-switch-background-color-selected-down, var(--mod-switch-background-color-selected-down, var(--spectrum-switch-background-color-selected-down))); + border-color: var(--highcontrast-switch-border-color-selected-down, var(--mod-switch-border-color-selected-down, var(--spectrum-switch-border-color-selected-down))); + } } - /* :after is used for the focus halo */ - &::after { - border-radius: calc(calc(var(--mod-switch-control-height, var(--spectrum-switch-control-height)) / 2) + var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap)) * 2); - content: ""; + .spectrum-Switch-input:checked:focus-visible + & { + background-color: var(--highcontrast-switch-background-color-selected-focus, var(--mod-switch-background-color-selected-focus, var(--spectrum-switch-background-color-selected-focus))); + border-color: var(--highcontrast-switch-border-color-selected-focus, var(--mod-switch-border-color-selected-focus, var(--spectrum-switch-border-color-selected-focus))); + } + + /* :before is used for the handle of the switch */ + &::before { display: block; position: absolute; - inset-inline-start: 0; - inset-inline-end: 0; - inset-block-end: 0; - inset-block-start: 0; - margin: 0; + content: ""; + box-sizing: border-box; - transition: - opacity var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, - margin var(--spectrum-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out; - } -} + transition: background var(--spectrum-animation-duration-100) ease-in-out, + border var(--spectrum-animation-duration-100) ease-in-out, + transform var(--spectrum-animation-duration-100) ease-in-out, + box-shadow var(--spectrum-animation-duration-100) ease-in-out; -.spectrum-Switch { - .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color, var(--mod-switch-background-color, var(--spectrum-switch-background-color))); + inline-size: var(--mod-switch-handle-size, var(--spectrum-switch-handle-size)); + block-size: var(--mod-switch-handle-size, var(--spectrum-switch-handle-size)); - &::before { - background-color: var(--highcontrast-switch-handle-background-color, var(--mod-switch-handle-background-color, var(--spectrum-switch-handle-background-color))); - border-color: var(--highcontrast-switch-handle-border-color-default, var(--mod-switch-handle-border-color-default, var(--spectrum-switch-handle-border-color-default))); - } - } -} + inset-block-start: calc((var(--mod-switch-control-height, var(--spectrum-switch-control-height)) - var(--mod-switch-handle-size, var(--spectrum-switch-handle-size))) * 0.25); + inset-inline-start: calc((var(--mod-switch-control-height, var(--spectrum-switch-control-height)) - var(--mod-switch-handle-size, var(--spectrum-switch-handle-size))) * 0.25); -.spectrum-Switch:hover { - .spectrum-Switch-input { - & + .spectrum-Switch-switch { - &::before { - border-color: var(--highcontrast-switch-handle-border-color-hover, var(--mod-switch-handle-border-color-hover, var(--spectrum-switch-handle-border-color-hover))); - box-shadow: none; - } - } + background-color: var(--highcontrast-switch-handle-background-color-default, var(--mod-switch-handle-background-color-default, var(--spectrum-switch-handle-background-color-default))); + border-radius: var(--mod-switch-border-radius, var(--spectrum-switch-border-radius)); - & ~ .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-hover, var(--mod-switch-label-color-hover, var(--spectrum-switch-label-color-hover))); + .spectrum-Switch:hover & { + background-color: var(--highcontrast-switch-handle-background-color-hover, var(--mod-switch-handle-background-color-hover, var(--spectrum-switch-handle-background-color-hover))); } - /* selected, not emphasized */ - &:checked:enabled + .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color-selected-hover, var(--mod-switch-background-color-selected-hover, var(--spectrum-switch-background-color-selected-hover))); + .spectrum-Switch:active & { + background-color: var(--highcontrast-switch-handle-background-color-down, var(--mod-switch-handle-background-color-down, var(--spectrum-switch-handle-background-color-down))); + } - &::before { - border-color: var(--highcontrast-switch-handle-border-color-selected-hover, var(--mod-switch-handle-border-color-selected-hover, var(--spectrum-switch-handle-border-color-selected-hover))); - } + .spectrum-Switch-input:focus-visible + & { + background-color: var(--highcontrast-switch-handle-background-color-focus, var(--mod-switch-handle-background-color-focus, var(--spectrum-switch-handle-background-color-focus))); } - &:disabled, - &[disabled] { - & + .spectrum-Switch-switch { - background-color: var(--mod-switch-background-color-disabled, var(--spectrum-switch-background-color-disabled)); - } + /* Handle size changes when selected/checked */ + .spectrum-Switch-input:checked + & { + background-color: var(--highcontrast-switch-handle-background-color-selected, var(--mod-switch-handle-background-color-selected, var(--spectrum-switch-handle-background-color-selected))); - & + .spectrum-Switch-switch::before { - border-color: var(--highcontrast-switch-handle-border-color-disabled, var(--mod-switch-handle-border-color-disabled, var(--spectrum-switch-handle-border-color-disabled))); - } + inline-size: var(--mod-switch-handle-selected-size, var(--spectrum-switch-handle-selected-size)); + block-size: var(--mod-switch-handle-selected-size, var(--spectrum-switch-handle-selected-size)); - & ~ .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-disabled, var(--mod-switch-label-color-disabled, var(--spectrum-switch-label-color-disabled))); - } + inset-block-start: calc((var(--mod-switch-control-height, var(--spectrum-switch-control-height)) - var(--mod-switch-border-width, var(--spectrum-switch-border-width)) - var(--mod-switch-handle-selected-size, var(--spectrum-switch-handle-selected-size))) * 0.25); + inset-inline-start: calc((var(--mod-switch-control-height, var(--spectrum-switch-control-height)) - var(--mod-switch-border-width, var(--spectrum-switch-border-width)) - var(--mod-switch-handle-selected-size, var(--spectrum-switch-handle-selected-size))) * 0.25); - /* disabled + selected, not emphasized */ - &:checked + .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color-selected-disabled, var(--mod-switch-background-color-selected-disabled, var(--spectrum-switch-background-color-selected-disabled))); - } + transform: translateX(calc(100% + (var(--mod-switch-border-width, var(--spectrum-switch-border-width)) * 0.25))); - &:checked + .spectrum-Switch-switch::before { - border-color: var(--highcontrast-switch-handle-border-color-disabled, var(--mod-switch-handle-border-color-disabled, var(--spectrum-switch-handle-border-color-disabled))); + &:dir(rtl) { + transform: translateX(calc(-1 * (100% + (var(--mod-switch-border-width, var(--spectrum-switch-border-width)) * 0.25)))); } - &:checked ~ .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-disabled, var(--mod-switch-label-color-disabled, var(--spectrum-switch-label-color-disabled))); + .spectrum-Switch:hover & { + background-color: var(--highcontrast-switch-handle-background-color-selected, var(--mod-switch-handle-background-color-selected, var(--spectrum-switch-handle-background-color-selected))); } } - } -} -.spectrum-Switch:active { - .spectrum-Switch-input { - & + .spectrum-Switch-switch { - &::before { - border-color: var(--highcontrast-switch-handle-border-color-down, var(--mod-switch-handle-border-color-down, var(--spectrum-switch-handle-border-color-down))); - } + .spectrum-Switch:active .spectrum-Switch-input:not(:disabled) + & { + transform: perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)); } - & ~ .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-down, var(--mod-switch-label-color-down, var(--spectrum-switch-label-color-down))); - } - - /* selected, not emphasized */ - &:checked:enabled + .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color-selected-down, var(--mod-switch-background-color-selected-down, var(--spectrum-switch-background-color-selected-down))); + .spectrum-Switch:active .spectrum-Switch-input:not(:disabled):checked + & { + /* Add down state without overriding translateX */ + transform: translateX(calc(100% + (var(--mod-switch-border-width, var(--spectrum-switch-border-width)) * 0.25))) perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)); - &::before { - border-color: var(--highcontrast-switch-handle-border-color-selected-down, var(--mod-switch-handle-border-color-selected-down, var(--spectrum-switch-handle-border-color-selected-down))); + &:dir(rtl) { + /* Add down state without overriding translateX */ + transform: translateX(calc(-1 * (100% + (var(--mod-switch-border-width, var(--spectrum-switch-border-width)) * 0.25)))) perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)); } } } -} -/* key focus */ -/* :after is the focus ring */ -/* :before is used for the handle of the switch */ -.spectrum-Switch, -.spectrum-Switch:hover { - .spectrum-Switch-input:focus-visible { - & + .spectrum-Switch-switch { - &::after { - box-shadow: 0 0 0 var(--mod-switch-focus-indicator-thickness, var(--spectrum-switch-focus-indicator-thickness)) var(--highcontrast-switch-focus-indicator-color, var(--mod-switch-focus-indicator-color, var(--spectrum-switch-focus-indicator-color))); - } - - &::before { - border-color: var(--highcontrast-switch-handle-border-color-focus, var(--mod-switch-handle-border-color-focus, var(--spectrum-switch-handle-border-color-focus))); - } - } - - /* selected, not emphasized key focus */ - &:checked { - & + .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color-selected-focus, var(--mod-switch-background-color-selected-focus, var(--spectrum-switch-background-color-selected-focus))); - } - - & + .spectrum-Switch-switch::before { - border-color: var(--highcontrast-switch-handle-border-color-selected-focus, var(--mod-switch-handle-border-color-selected-focus, var(--spectrum-switch-handle-border-color-selected-focus))); - } - } - - & ~ .spectrum-Switch-label { - color: var(--highcontrast-switch-label-color-focus, var(--mod-switch-label-color-focus, var(--spectrum-switch-label-color-focus))); - } - } -} + /* :after is used for the track of the switch and the focus */ + &::after { + border-radius: var(--mod-switch-border-radius, var(--spectrum-switch-border-radius)); + content: ""; + display: block; + position: absolute; + inset-inline-start: 0; + inset-inline-end: 0; + inset-block-end: 0; + inset-block-start: 0; + margin: 0; -/* when checked, after transition or set manually */ -.spectrum-Switch-input { - /* selected, not emphasized */ - &:checked + .spectrum-Switch-switch { - background-color: var(--highcontrast-switch-background-color-selected-default, var(--mod-switch-background-color-selected-default, var(--spectrum-switch-background-color-selected-default))); + transition: + opacity var(--spectrum-animation-duration-100) ease-out, + outline-offset var(--spectrum-animation-duration-100) ease-out, + border var(--spectrum-animation-duration-100) ease-in-out; - &::before { - border-color: var(--highcontrast-switch-handle-border-color-selected-default, var(--mod-switch-handle-border-color-selected-default, var(--spectrum-switch-handle-border-color-selected-default))); + .spectrum-Switch-input:focus-visible + & { + outline: var(--mod-switch-focus-indicator-thickness, var(--spectrum-switch-focus-indicator-thickness)) solid var(--highcontrast-switch-focus-indicator-color, var(--mod-switch-focus-indicator-color, var(--spectrum-switch-focus-indicator-color))); + outline-offset: calc(var(--mod-switch-focus-indicator-gap, var(--spectrum-switch-focus-indicator-gap)) + var(--mod-switch-focus-indicator-thickness, var(--spectrum-switch-focus-indicator-thickness))); } } } /* disabled */ -.spectrum-Switch-input:disabled, -.spectrum-Switch-input[disabled] { +.spectrum-Switch .spectrum-Switch-input:disabled, +.spectrum-Switch .spectrum-Switch-input[disabled], +.spectrum-Switch:hover .spectrum-Switch-input:disabled, +.spectrum-Switch:hover .spectrum-Switch-input[disabled] { & + .spectrum-Switch-switch { - background-color: var(--mod-switch-background-color-disabled, var(--spectrum-switch-background-color-disabled)); + background-color: var(--highcontrast-switch-background-color-disabled, var(--mod-switch-background-color-disabled, var(--spectrum-switch-background-color-disabled))); + border-color: var(--highcontrast-switch-border-color-disabled, var(--mod-switch-border-color-disabled, var(--spectrum-switch-border-color-disabled))); &::before { - border-color: var(--highcontrast-switch-handle-border-color-disabled, var(--mod-switch-handle-border-color-disabled, var(--spectrum-switch-handle-border-color-disabled))); + background-color: var(--highcontrast-switch-handle-background-color-disabled, var(--mod-switch-handle-background-color-disabled, var(--spectrum-switch-handle-background-color-disabled))); } } @@ -378,12 +367,11 @@ color: var(--highcontrast-switch-label-color-disabled, var(--mod-switch-label-color-disabled, var(--spectrum-switch-label-color-disabled))); } - /* disabled + selected, not emphasized */ &:checked + .spectrum-Switch-switch { background-color: var(--highcontrast-switch-background-color-selected-disabled, var(--mod-switch-background-color-selected-disabled, var(--spectrum-switch-background-color-selected-disabled))); &::before { - border-color: var(--highcontrast-switch-handle-border-color-disabled, var(--mod-switch-handle-border-color-disabled, var(--spectrum-switch-handle-border-color-disabled))); + background-color: var(--highcontrast-switch-handle-background-color-selected-disabled, var(--mod-switch-handle-background-color-selected-disabled, var(--spectrum-switch-handle-background-color-selected-disabled))); } } @@ -401,83 +389,36 @@ --highcontrast-switch-label-color-focus: ButtonText; --highcontrast-switch-label-color-disabled: GrayText; - --highcontrast-switch-handle-background-color: ButtonFace; + --highcontrast-switch-background-color: transparent; + + --highcontrast-switch-border-color-default: ButtonText; + --highcontrast-switch-border-color-hover: Highlight; + --highcontrast-switch-border-color-down: ButtonText; + --highcontrast-switch-border-color-focus: ButtonText; + --highcontrast-switch-border-color-disabled: GrayText; + + --highcontrast-switch-border-color-selected-default: Highlight; + --highcontrast-switch-border-color-selected-hover: Highlight; + --highcontrast-switch-border-color-selected-down: Highlight; + --highcontrast-switch-border-color-selected-focus: Highlight; + + --highcontrast-switch-handle-background-color-default: ButtonText; + --highcontrast-switch-handle-background-color-hover: Highlight; + --highcontrast-switch-handle-background-color-down: ButtonText; + --highcontrast-switch-handle-background-color-focus: ButtonText; + --highcontrast-switch-handle-background-color-disabled: GrayText; - --highcontrast-switch-handle-border-color-default: ButtonText; - --highcontrast-switch-handle-border-color-hover: Highlight; - --highcontrast-switch-handle-border-color-down: Highlight; - --highcontrast-switch-handle-border-color-focus: Highlight; - --highcontrast-switch-handle-border-color-disabled: Highlight; + --highcontrast-switch-handle-background-color-selected: HighlightText; + --highcontrast-switch-handle-background-color-selected-disabled: ButtonFace; - --highcontrast-switch-handle-border-color-selected-default: Highlight; - --highcontrast-switch-handle-border-color-selected-hover: Highlight; - --highcontrast-switch-handle-border-color-selected-down: Highlight; - --highcontrast-switch-handle-border-color-selected-focus: Highlight; + --highcontrast-switch-background-color-disabled: ButtonFace; - --highcontrast-switch-background-color: ButtonFace; --highcontrast-switch-background-color-selected-default: Highlight; --highcontrast-switch-background-color-selected-hover: Highlight; --highcontrast-switch-background-color-selected-down: Highlight; --highcontrast-switch-background-color-selected-focus: Highlight; - --highcontrast-switch-background-color-selected-disabled: Highlight; + --highcontrast-switch-background-color-selected-disabled: GrayText; --highcontrast-switch-focus-indicator-color: ButtonText; - - forced-color-adjust: none; - - .spectrum-Switch-input { - &:not(:checked) + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px ButtonText; - } - } - - &:hover .spectrum-Switch-input { - &:not(:checked) + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px Highlight; - } - - &:disabled, - &[disabled] { - &:checked + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; - background-color: GrayText; - } - - &:checked + .spectrum-Switch-switch::before { - border-color: GrayText; - background-color: ButtonFace; - } - } - } - - /* over-writes for disabled button */ - .spectrum-Switch-input { - &:disabled, - &[disabled] { - &:not(:checked) + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; - background-color: ButtonFace; - } - - &:not(:checked) + .spectrum-Switch-switch::before { - border-color: GrayText; - background-color: ButtonFace; - } - - &:checked + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; - background-color: GrayText; - } - - &:checked + .spectrum-Switch-switch::before { - border-color: GrayText; - background-color: ButtonFace; - } - - & ~ .spectrum-Switch-label { - color: GrayText; - } - } - } } } diff --git a/components/switch/package.json b/components/switch/package.json index 04fa4bb51cd..d05a37a5d05 100644 --- a/components/switch/package.json +++ b/components/switch/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/switch/stories/switch.stories.js b/components/switch/stories/switch.stories.js index 5286b307882..cc38ca06286 100644 --- a/components/switch/stories/switch.stories.js +++ b/components/switch/stories/switch.stories.js @@ -46,6 +46,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = SwitchGroup.bind({}); diff --git a/components/switch/stories/template.js b/components/switch/stories/template.js index 5e67a3cc8b3..4f0877d5c86 100644 --- a/components/switch/stories/template.js +++ b/components/switch/stories/template.js @@ -6,9 +6,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Switch", diff --git a/components/switch/themes/express.css b/components/switch/themes/express.css deleted file mode 100644 index ac5198ba733..00000000000 --- a/components/switch/themes/express.css +++ /dev/null @@ -1,30 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Switch { - --spectrum-switch-handle-border-color-default: var(--spectrum-gray-800); - --spectrum-switch-handle-border-color-hover: var(--spectrum-gray-900); - --spectrum-switch-handle-border-color-down: var(--spectrum-gray-900); - --spectrum-switch-handle-border-color-focus: var(--spectrum-gray-900); - - --spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-800); - --spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-900); - --spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-900); - } -} diff --git a/components/switch/themes/spectrum-two.css b/components/switch/themes/spectrum-two.css deleted file mode 100644 index c2ed1a192a4..00000000000 --- a/components/switch/themes/spectrum-two.css +++ /dev/null @@ -1,30 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Switch { - --spectrum-switch-handle-border-color-default: var(--spectrum-gray-600); - --spectrum-switch-handle-border-color-hover: var(--spectrum-gray-700); - --spectrum-switch-handle-border-color-down: var(--spectrum-gray-800); - --spectrum-switch-handle-border-color-focus: var(--spectrum-gray-700); - - --spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-700); - --spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-800); - --spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-800); - - --spectrum-switch-background-color: var(--spectrum-gray-200); - --spectrum-switch-background-color-disabled: var(--spectrum-gray-200); - --spectrum-switch-handle-background-color: var(--spectrum-gray-50); - } -} diff --git a/components/switch/themes/spectrum.css b/components/switch/themes/spectrum.css deleted file mode 100644 index 8b32e03d8f3..00000000000 --- a/components/switch/themes/spectrum.css +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Switch { - --spectrum-switch-background-color: var(--spectrum-gray-300); - --spectrum-switch-background-color-disabled: var(--spectrum-gray-300); - --spectrum-switch-handle-background-color: var(--spectrum-gray-75); - } -} diff --git a/components/table/CHANGELOG.md b/components/table/CHANGELOG.md index df67da67975..4156c9a8ea6 100644 --- a/components/table/CHANGELOG.md +++ b/components/table/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 7.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`2c62239`](https://github.com/adobe/spectrum-css/commit/2c62239aab6ae9815bac6edf531c212c45665a5c), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/thumbnail@7.0.0-next.0 + ## 8.0.1 ### Patch Changes @@ -184,16 +192,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.5...@spectrum-css/table@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.5...@spectrum-css/table@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -201,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.4...@spectrum-css/table@5.2.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.4...@spectrum-css/table@5.2.5) **Note:** Version bump only for package @spectrum-css/table @@ -210,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.3...@spectrum-css/table@5.2.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.3...@spectrum-css/table@5.2.4) **Note:** Version bump only for package @spectrum-css/table @@ -219,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.2...@spectrum-css/table@5.2.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.2...@spectrum-css/table@5.2.3) **Note:** Version bump only for package @spectrum-css/table @@ -228,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.1...@spectrum-css/table@5.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.2.1...@spectrum-css/table@5.2.2) **Note:** Version bump only for package @spectrum-css/table @@ -237,8 +238,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/table @@ -246,8 +246,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.1.1...@spectrum-css/table@5.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.1.1...@spectrum-css/table@5.2.0) **Note:** Version bump only for package @spectrum-css/table @@ -255,8 +254,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.1.0...@spectrum-css/table@5.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.1.0...@spectrum-css/table@5.1.1) ### 🐛 Bug fixes @@ -267,8 +265,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.11...@spectrum-css/table@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.11...@spectrum-css/table@5.1.0) ### ✨ Features @@ -278,8 +275,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.11 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.10...@spectrum-css/table@5.0.11) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.10...@spectrum-css/table@5.0.11) **Note:** Version bump only for package @spectrum-css/table @@ -287,8 +283,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.10 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.9...@spectrum-css/table@5.0.10) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.9...@spectrum-css/table@5.0.10) **Note:** Version bump only for package @spectrum-css/table @@ -296,8 +291,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.9 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.7...@spectrum-css/table@5.0.9) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.7...@spectrum-css/table@5.0.9) **Note:** Version bump only for package @spectrum-css/table @@ -305,8 +299,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.8 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.7...@spectrum-css/table@5.0.8) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.7...@spectrum-css/table@5.0.8) **Note:** Version bump only for package @spectrum-css/table @@ -314,8 +307,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.7 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.6...@spectrum-css/table@5.0.7) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.6...@spectrum-css/table@5.0.7) **Note:** Version bump only for package @spectrum-css/table @@ -323,8 +315,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.6 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.5...@spectrum-css/table@5.0.6) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.5...@spectrum-css/table@5.0.6) **Note:** Version bump only for package @spectrum-css/table @@ -332,8 +323,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.5 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.4...@spectrum-css/table@5.0.5) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.4...@spectrum-css/table@5.0.5) **Note:** Version bump only for package @spectrum-css/table @@ -341,8 +331,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.4 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.3...@spectrum-css/table@5.0.4) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.3...@spectrum-css/table@5.0.4) **Note:** Version bump only for package @spectrum-css/table @@ -350,8 +339,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.3 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.2...@spectrum-css/table@5.0.3) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.2...@spectrum-css/table@5.0.3) **Note:** Version bump only for package @spectrum-css/table @@ -359,8 +347,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.2 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.1...@spectrum-css/table@5.0.2) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.1...@spectrum-css/table@5.0.2) **Note:** Version bump only for package @spectrum-css/table @@ -368,8 +355,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.1 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.0...@spectrum-css/table@5.0.1) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@5.0.0...@spectrum-css/table@5.0.1) **Note:** Version bump only for package @spectrum-css/table @@ -377,8 +363,7 @@ _deprecate logical transform plugin ([#2437](https://github.com/adobe/spectrum-c ## 5.0.0 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.73...@spectrum-css/table@5.0.0) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.73...@spectrum-css/table@5.0.0) \*feat(table)!: migrate to spectrum-tokens, add section header (#1842)([74cd1b4](https://github.com/adobe/spectrum-css/commit/74cd1b4)), closes[#1842](https://github.com/adobe/spectrum-css/issues/1842) @@ -880,8 +865,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.73 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.72...@spectrum-css/table@4.0.73) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.72...@spectrum-css/table@4.0.73) **Note:** Version bump only for package @spectrum-css/table @@ -889,8 +873,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.72 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.71...@spectrum-css/table@4.0.72) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.71...@spectrum-css/table@4.0.72) **Note:** Version bump only for package @spectrum-css/table @@ -898,8 +881,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.71 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.70...@spectrum-css/table@4.0.71) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.70...@spectrum-css/table@4.0.71) ### 🔙 Reverts @@ -909,8 +891,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.70 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.69...@spectrum-css/table@4.0.70) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.69...@spectrum-css/table@4.0.70) **Note:** Version bump only for package @spectrum-css/table @@ -918,8 +899,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.69 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.67...@spectrum-css/table@4.0.69) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.67...@spectrum-css/table@4.0.69) **Note:** Version bump only for package @spectrum-css/table @@ -927,8 +907,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.68 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.67...@spectrum-css/table@4.0.68) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.67...@spectrum-css/table@4.0.68) **Note:** Version bump only for package @spectrum-css/table @@ -936,8 +915,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.67 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.66...@spectrum-css/table@4.0.67) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.66...@spectrum-css/table@4.0.67) **Note:** Version bump only for package @spectrum-css/table @@ -945,8 +923,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.66 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.65...@spectrum-css/table@4.0.66) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.65...@spectrum-css/table@4.0.66) **Note:** Version bump only for package @spectrum-css/table @@ -954,8 +931,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.65 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.64...@spectrum-css/table@4.0.65) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.64...@spectrum-css/table@4.0.65) **Note:** Version bump only for package @spectrum-css/table @@ -963,8 +939,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.64 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.63...@spectrum-css/table@4.0.64) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.63...@spectrum-css/table@4.0.64) **Note:** Version bump only for package @spectrum-css/table @@ -972,8 +947,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.63 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.62...@spectrum-css/table@4.0.63) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.62...@spectrum-css/table@4.0.63) **Note:** Version bump only for package @spectrum-css/table @@ -981,8 +955,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.62 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.61...@spectrum-css/table@4.0.62) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.61...@spectrum-css/table@4.0.62) **Note:** Version bump only for package @spectrum-css/table @@ -990,8 +963,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.61 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.60...@spectrum-css/table@4.0.61) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.60...@spectrum-css/table@4.0.61) **Note:** Version bump only for package @spectrum-css/table @@ -999,8 +971,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.60 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.59...@spectrum-css/table@4.0.60) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.59...@spectrum-css/table@4.0.60) **Note:** Version bump only for package @spectrum-css/table @@ -1008,8 +979,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.59 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.58...@spectrum-css/table@4.0.59) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.58...@spectrum-css/table@4.0.59) **Note:** Version bump only for package @spectrum-css/table @@ -1017,8 +987,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.58 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.57...@spectrum-css/table@4.0.58) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.57...@spectrum-css/table@4.0.58) **Note:** Version bump only for package @spectrum-css/table @@ -1026,8 +995,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.57 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.56...@spectrum-css/table@4.0.57) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.56...@spectrum-css/table@4.0.57) **Note:** Version bump only for package @spectrum-css/table @@ -1035,8 +1003,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.56 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.55...@spectrum-css/table@4.0.56) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.55...@spectrum-css/table@4.0.56) **Note:** Version bump only for package @spectrum-css/table @@ -1044,8 +1011,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.55 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.54...@spectrum-css/table@4.0.55) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.54...@spectrum-css/table@4.0.55) ### 🐛 Bug fixes @@ -1055,8 +1021,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.54 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.53...@spectrum-css/table@4.0.54) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.53...@spectrum-css/table@4.0.54) **Note:** Version bump only for package @spectrum-css/table @@ -1064,8 +1029,7 @@ set on the cell instead of the row (previous fix for Firefix bug). ## 4.0.53 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.52...@spectrum-css/table@4.0.53) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/table@4.0.52...@spectrum-css/table@4.0.53) **Note:** Version bump only for package @spectrum-css/table diff --git a/components/table/dist/metadata.json b/components/table/dist/metadata.json index e319678fb13..26a601ce86e 100644 --- a/components/table/dist/metadata.json +++ b/components/table/dist/metadata.json @@ -435,18 +435,6 @@ "--spectrum-transparent-white-100", "--spectrum-transparent-white-25" ], - "system-theme": [ - "--system-table-border-color", - "--system-table-divider-color", - "--system-table-header-background-color", - "--system-table-icon-color-focus", - "--system-table-icon-color-focus-hover", - "--system-table-quiet-header-background-color", - "--system-table-quiet-row-background-color", - "--system-table-row-background-color", - "--system-table-section-header-background-color", - "--system-table-summary-row-background-color" - ], "passthroughs": ["--mod-checkbox-spacing", "--mod-thumbnail-size"], "high-contrast": [ "--highcontrast-table-border-color", diff --git a/components/table/index.css b/components/table/index.css index 830e1528ff4..7ffbacf046a 100644 --- a/components/table/index.css +++ b/components/table/index.css @@ -11,7 +11,21 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; +.spectrum-Table { + --spectrum-table-header-background-color: var(--spectrum-transparent-white-25); + --spectrum-table-border-color: var(--spectrum-gray-200); + --spectrum-table-divider-color: var(--spectrum-gray-200); + --spectrum-table-row-background-color: var(--spectrum-gray-25); + --spectrum-table-summary-row-background-color: var(--spectrum-gray-100); + --spectrum-table-section-header-background-color: var(--spectrum-gray-100); + --spectrum-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --spectrum-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-color-hover); +} + +.spectrum-Table--quiet { + --spectrum-table-header-background-color: var(--spectrum-transparent-white-25); + --spectrum-table-row-background-color: var(--spectrum-transparent-white-25); +} /********* HIGH CONTRAST *********/ @media (forced-colors: active) { diff --git a/components/table/package.json b/components/table/package.json index 12f8705cc99..6ba8d998509 100644 --- a/components/table/package.json +++ b/components/table/package.json @@ -25,11 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", - "@spectrum-css/checkbox": ">=9", - "@spectrum-css/icon": ">=7", + "@spectrum-css/button": ">=14", + "@spectrum-css/checkbox": ">=10", + "@spectrum-css/icon": ">=9", "@spectrum-css/thumbnail": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/button": { @@ -47,11 +47,7 @@ "@spectrum-css/checkbox": "10.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/thumbnail": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/table/stories/template.js b/components/table/stories/template.js index 662a6e3206b..8487cca716d 100644 --- a/components/table/stories/template.js +++ b/components/table/stories/template.js @@ -9,9 +9,6 @@ import { when } from "lit/directives/when.js"; import { html, literal } from "lit/static-html.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const TableRowItem = ({ rootClass = "spectrum-Table", diff --git a/components/table/themes/express.css b/components/table/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/table/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/table/themes/spectrum-two.css b/components/table/themes/spectrum-two.css deleted file mode 100644 index 1c0a4684070..00000000000 --- a/components/table/themes/spectrum-two.css +++ /dev/null @@ -1,30 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Table { - --spectrum-table-header-background-color: var(--spectrum-transparent-white-25); - --spectrum-table-border-color: var(--spectrum-gray-200); - --spectrum-table-divider-color: var(--spectrum-gray-200); - --spectrum-table-row-background-color: var(--spectrum-gray-25); - --spectrum-table-summary-row-background-color: var(--spectrum-gray-100); - --spectrum-table-section-header-background-color: var(--spectrum-gray-100); - --spectrum-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --spectrum-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-color-hover); - } - - .spectrum-Table--quiet { - --spectrum-table-header-background-color: var(--spectrum-transparent-white-25); - --spectrum-table-row-background-color: var(--spectrum-transparent-white-25); - } -} diff --git a/components/table/themes/spectrum.css b/components/table/themes/spectrum.css deleted file mode 100644 index a40d7fabde2..00000000000 --- a/components/table/themes/spectrum.css +++ /dev/null @@ -1,34 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Table { - --spectrum-table-header-background-color: var(--spectrum-transparent-white-100); - --spectrum-table-border-color: var(--spectrum-gray-300); - --spectrum-table-divider-color: var(--spectrum-gray-300); - --spectrum-table-row-background-color: var(--spectrum-gray-50); - --spectrum-table-summary-row-background-color: var(--spectrum-gray-200); - --spectrum-table-section-header-background-color: var(--spectrum-gray-200); - --spectrum-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --spectrum-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-down); - } - - .spectrum-Table--quiet { - --spectrum-table-header-background-color: var(--spectrum-transparent-white-100); - --spectrum-table-row-background-color: var(--spectrum-transparent-white-100); - } -} diff --git a/components/tabs/CHANGELOG.md b/components/tabs/CHANGELOG.md index 1945241491e..9cdbcbe5ca9 100644 --- a/components/tabs/CHANGELOG.md +++ b/components/tabs/CHANGELOG.md @@ -1,5 +1,31 @@ # Change Log +## 6.0.0-next.2 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76), [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f)]: + - @spectrum-css/tokens@14.0.0-next.12 + - @spectrum-css/menu@8.0.0-next.1 + +## 6.0.0-next.1 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/picker@9.0.0-next.1 + - @spectrum-css/menu@8.0.0-next.0 + +## 6.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`5d730fe`](https://github.com/adobe/spectrum-css/commit/5d730fe711c7469b7216ece9638a4a157429fa17)]: + - @spectrum-css/picker@9.0.0-next.0 + ## 6.0.1 ### Patch Changes @@ -162,8 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.4...@spectrum-css/tabs@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.4...@spectrum-css/tabs@5.0.0) ### 🐛 Bug fixes @@ -183,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.3...@spectrum-css/tabs@4.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.3...@spectrum-css/tabs@4.1.4) **Note:** Version bump only for package @spectrum-css/tabs @@ -192,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.2...@spectrum-css/tabs@4.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.2...@spectrum-css/tabs@4.1.3) **Note:** Version bump only for package @spectrum-css/tabs @@ -201,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.1...@spectrum-css/tabs@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.1.1...@spectrum-css/tabs@4.1.2) **Note:** Version bump only for package @spectrum-css/tabs @@ -210,8 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/tabs @@ -219,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.28...@spectrum-css/tabs@4.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.28...@spectrum-css/tabs@4.1.0) **Note:** Version bump only for package @spectrum-css/tabs @@ -228,8 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.28 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.27...@spectrum-css/tabs@4.0.28) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.27...@spectrum-css/tabs@4.0.28) **Note:** Version bump only for package @spectrum-css/tabs @@ -237,8 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.27 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.26...@spectrum-css/tabs@4.0.27) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.26...@spectrum-css/tabs@4.0.27) **Note:** Version bump only for package @spectrum-css/tabs @@ -246,8 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.26 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.25...@spectrum-css/tabs@4.0.26) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.25...@spectrum-css/tabs@4.0.26) ### 🐛 Bug fixes @@ -257,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.25 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.23...@spectrum-css/tabs@4.0.25) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.23...@spectrum-css/tabs@4.0.25) **Note:** Version bump only for package @spectrum-css/tabs @@ -266,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.24 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.23...@spectrum-css/tabs@4.0.24) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.23...@spectrum-css/tabs@4.0.24) **Note:** Version bump only for package @spectrum-css/tabs @@ -275,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.23 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.22...@spectrum-css/tabs@4.0.23) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.22...@spectrum-css/tabs@4.0.23) **Note:** Version bump only for package @spectrum-css/tabs @@ -284,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.22 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.21...@spectrum-css/tabs@4.0.22) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.21...@spectrum-css/tabs@4.0.22) **Note:** Version bump only for package @spectrum-css/tabs @@ -293,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.21 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.20...@spectrum-css/tabs@4.0.21) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.20...@spectrum-css/tabs@4.0.21) **Note:** Version bump only for package @spectrum-css/tabs @@ -302,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.20 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.19...@spectrum-css/tabs@4.0.20) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.19...@spectrum-css/tabs@4.0.20) **Note:** Version bump only for package @spectrum-css/tabs @@ -311,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.19 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.18...@spectrum-css/tabs@4.0.19) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.18...@spectrum-css/tabs@4.0.19) **Note:** Version bump only for package @spectrum-css/tabs @@ -320,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.18 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.17...@spectrum-css/tabs@4.0.18) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.17...@spectrum-css/tabs@4.0.18) **Note:** Version bump only for package @spectrum-css/tabs @@ -329,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.17 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.16...@spectrum-css/tabs@4.0.17) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.16...@spectrum-css/tabs@4.0.17) **Note:** Version bump only for package @spectrum-css/tabs @@ -338,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.16 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.15...@spectrum-css/tabs@4.0.16) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.15...@spectrum-css/tabs@4.0.16) **Note:** Version bump only for package @spectrum-css/tabs @@ -347,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.15 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.14...@spectrum-css/tabs@4.0.15) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.14...@spectrum-css/tabs@4.0.15) **Note:** Version bump only for package @spectrum-css/tabs @@ -356,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.13...@spectrum-css/tabs@4.0.14) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.13...@spectrum-css/tabs@4.0.14) **Note:** Version bump only for package @spectrum-css/tabs @@ -365,8 +370,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.12...@spectrum-css/tabs@4.0.13) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.12...@spectrum-css/tabs@4.0.13) ### 🔙 Reverts @@ -376,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.11...@spectrum-css/tabs@4.0.12) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.11...@spectrum-css/tabs@4.0.12) **Note:** Version bump only for package @spectrum-css/tabs @@ -385,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.9...@spectrum-css/tabs@4.0.11) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.9...@spectrum-css/tabs@4.0.11) **Note:** Version bump only for package @spectrum-css/tabs @@ -394,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.9...@spectrum-css/tabs@4.0.10) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.9...@spectrum-css/tabs@4.0.10) **Note:** Version bump only for package @spectrum-css/tabs @@ -403,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.8...@spectrum-css/tabs@4.0.9) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.8...@spectrum-css/tabs@4.0.9) **Note:** Version bump only for package @spectrum-css/tabs @@ -412,8 +412,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.7...@spectrum-css/tabs@4.0.8) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.7...@spectrum-css/tabs@4.0.8) **Note:** Version bump only for package @spectrum-css/tabs @@ -421,8 +420,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.6...@spectrum-css/tabs@4.0.7) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.6...@spectrum-css/tabs@4.0.7) **Note:** Version bump only for package @spectrum-css/tabs @@ -430,8 +428,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.5...@spectrum-css/tabs@4.0.6) +🗓 2023-08-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.5...@spectrum-css/tabs@4.0.6) **Note:** Version bump only for package @spectrum-css/tabs @@ -439,8 +436,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.4...@spectrum-css/tabs@4.0.5) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.4...@spectrum-css/tabs@4.0.5) **Note:** Version bump only for package @spectrum-css/tabs @@ -448,8 +444,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.3...@spectrum-css/tabs@4.0.4) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.3...@spectrum-css/tabs@4.0.4) **Note:** Version bump only for package @spectrum-css/tabs @@ -457,8 +452,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.2...@spectrum-css/tabs@4.0.3) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.2...@spectrum-css/tabs@4.0.3) **Note:** Version bump only for package @spectrum-css/tabs @@ -466,8 +460,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.1...@spectrum-css/tabs@4.0.2) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.1...@spectrum-css/tabs@4.0.2) **Note:** Version bump only for package @spectrum-css/tabs @@ -475,8 +468,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.0...@spectrum-css/tabs@4.0.1) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@4.0.0...@spectrum-css/tabs@4.0.1) **Note:** Version bump only for package @spectrum-css/tabs @@ -484,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.64...@spectrum-css/tabs@4.0.0) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.64...@spectrum-css/tabs@4.0.0) \*feat(tabs)!: migrate tokens (#1902)([6d07436](https://github.com/adobe/spectrum-css/commit/6d07436)), closes[#1902](https://github.com/adobe/spectrum-css/issues/1902) @@ -503,8 +494,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.64 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.63...@spectrum-css/tabs@3.2.64) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.63...@spectrum-css/tabs@3.2.64) **Note:** Version bump only for package @spectrum-css/tabs @@ -512,8 +502,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.63 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.62...@spectrum-css/tabs@3.2.63) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.62...@spectrum-css/tabs@3.2.63) **Note:** Version bump only for package @spectrum-css/tabs @@ -521,8 +510,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.62 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.61...@spectrum-css/tabs@3.2.62) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.61...@spectrum-css/tabs@3.2.62) **Note:** Version bump only for package @spectrum-css/tabs @@ -530,8 +518,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.61 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.60...@spectrum-css/tabs@3.2.61) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.60...@spectrum-css/tabs@3.2.61) **Note:** Version bump only for package @spectrum-css/tabs @@ -539,8 +526,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.60 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.59...@spectrum-css/tabs@3.2.60) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.59...@spectrum-css/tabs@3.2.60) **Note:** Version bump only for package @spectrum-css/tabs @@ -548,8 +534,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.59 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.58...@spectrum-css/tabs@3.2.59) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.58...@spectrum-css/tabs@3.2.59) ### 🐛 Bug fixes @@ -559,8 +544,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.58 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.57...@spectrum-css/tabs@3.2.58) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.57...@spectrum-css/tabs@3.2.58) **Note:** Version bump only for package @spectrum-css/tabs @@ -568,8 +552,7 @@ Compact tabs should not be used without `.spectrum-Tabs--quiet`. ## 3.2.57 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.56...@spectrum-css/tabs@3.2.57) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tabs@3.2.56...@spectrum-css/tabs@3.2.57) **Note:** Version bump only for package @spectrum-css/tabs diff --git a/components/tabs/dist/metadata.json b/components/tabs/dist/metadata.json index 544295ef045..37e3c7b1a37 100644 --- a/components/tabs/dist/metadata.json +++ b/components/tabs/dist/metadata.json @@ -206,10 +206,6 @@ "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-tabs-divider-background-color", - "--system-tabs-font-weight" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-tabs-color", diff --git a/components/tabs/index.css b/components/tabs/index.css index 6727243f384..feabab0d89c 100644 --- a/components/tabs/index.css +++ b/components/tabs/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Tabs { + --spectrum-tabs-font-weight: var(--spectrum-regular-font-weight); + --spectrum-tabs-divider-background-color: var(--spectrum-gray-200); + /* Default is Medium sizing */ --spectrum-tabs-item-height: var(--spectrum-tab-item-height-medium); --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-medium); @@ -36,6 +37,7 @@ --spectrum-tabs-font-style: var(--spectrum-default-font-style); --spectrum-tabs-font-size: var(--spectrum-font-size-100); --spectrum-tabs-line-height: var(--spectrum-line-height-100); + --spectrum-tabs-font-weight: var(--spectrum-regular-font-weight); /* Focus Indicator */ --spectrum-tabs-focus-indicator-width: var(--spectrum-focus-indicator-thickness); diff --git a/components/tabs/package.json b/components/tabs/package.json index 4e0dbedaedd..c88ec10c088 100644 --- a/components/tabs/package.json +++ b/components/tabs/package.json @@ -25,10 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/menu": ">=7", "@spectrum-css/picker": ">=8", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/icon": { @@ -39,11 +39,7 @@ "@spectrum-css/icon": "9.0.1", "@spectrum-css/menu": "9.0.1", "@spectrum-css/picker": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/tabs/stories/template.js b/components/tabs/stories/template.js index 716f45ea2e5..387683f1ae9 100644 --- a/components/tabs/stories/template.js +++ b/components/tabs/stories/template.js @@ -10,9 +10,6 @@ import { when } from "lit/directives/when.js"; import { html, literal } from "lit/static-html.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Tabs", diff --git a/components/tabs/themes/express.css b/components/tabs/themes/express.css deleted file mode 100644 index 83b105f4ac8..00000000000 --- a/components/tabs/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Tabs { - --spectrum-tabs-font-weight: var(--spectrum-bold-font-weight); - } -} diff --git a/components/tabs/themes/spectrum-two.css b/components/tabs/themes/spectrum-two.css deleted file mode 100644 index 71d71c3c719..00000000000 --- a/components/tabs/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Tabs { - --spectrum-tabs-font-weight: var(--spectrum-regular-font-weight); - --spectrum-tabs-divider-background-color: var(--spectrum-gray-200); - } -} diff --git a/components/tabs/themes/spectrum.css b/components/tabs/themes/spectrum.css deleted file mode 100644 index 97cb90cac5b..00000000000 --- a/components/tabs/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Tabs { - --spectrum-tabs-font-weight: var(--spectrum-regular-font-weight); - --spectrum-tabs-divider-background-color: var(--spectrum-gray-300); - } -} diff --git a/components/tag/CHANGELOG.md b/components/tag/CHANGELOG.md index cdd2019ca99..cec5ca0bd97 100644 --- a/components/tag/CHANGELOG.md +++ b/components/tag/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 10.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/clearbutton@6.4.1-next.0 + - @spectrum-css/avatar@8.0.0-next.1 + - @spectrum-css/tokens@14.0.0-next.12 + +## 10.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`a827601`](https://github.com/adobe/spectrum-css/commit/a827601bc1769a775f24e9da294bdfaa70535082), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/avatar@8.0.0-next.0 + - @spectrum-css/tokens@14.0.0-next.10 + ## 10.0.1 ### Patch Changes @@ -162,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.5...@spectrum-css/tag@9.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.5...@spectrum-css/tag@9.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) @@ -179,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.4...@spectrum-css/tag@8.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.4...@spectrum-css/tag@8.1.5) **Note:** Version bump only for package @spectrum-css/tag @@ -188,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.3...@spectrum-css/tag@8.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.3...@spectrum-css/tag@8.1.4) **Note:** Version bump only for package @spectrum-css/tag @@ -197,8 +213,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.2...@spectrum-css/tag@8.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.2...@spectrum-css/tag@8.1.3) **Note:** Version bump only for package @spectrum-css/tag @@ -206,8 +221,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.1...@spectrum-css/tag@8.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.1.1...@spectrum-css/tag@8.1.2) **Note:** Version bump only for package @spectrum-css/tag @@ -215,8 +229,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/tag @@ -224,8 +237,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.17...@spectrum-css/tag@8.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.17...@spectrum-css/tag@8.1.0) ### 🐛 Bug fixes @@ -235,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.17 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.16...@spectrum-css/tag@8.0.17) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.16...@spectrum-css/tag@8.0.17) **Note:** Version bump only for package @spectrum-css/tag @@ -244,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.16 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.15...@spectrum-css/tag@8.0.16) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.15...@spectrum-css/tag@8.0.16) **Note:** Version bump only for package @spectrum-css/tag @@ -253,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.15 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.14...@spectrum-css/tag@8.0.15) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.14...@spectrum-css/tag@8.0.15) **Note:** Version bump only for package @spectrum-css/tag @@ -262,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.14 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.12...@spectrum-css/tag@8.0.14) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.12...@spectrum-css/tag@8.0.14) **Note:** Version bump only for package @spectrum-css/tag @@ -271,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.13 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.12...@spectrum-css/tag@8.0.13) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.12...@spectrum-css/tag@8.0.13) **Note:** Version bump only for package @spectrum-css/tag @@ -280,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.12 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.11...@spectrum-css/tag@8.0.12) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.11...@spectrum-css/tag@8.0.12) **Note:** Version bump only for package @spectrum-css/tag @@ -289,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.11 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.10...@spectrum-css/tag@8.0.11) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.10...@spectrum-css/tag@8.0.11) **Note:** Version bump only for package @spectrum-css/tag @@ -298,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.10 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.9...@spectrum-css/tag@8.0.10) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.9...@spectrum-css/tag@8.0.10) **Note:** Version bump only for package @spectrum-css/tag @@ -307,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.9 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.8...@spectrum-css/tag@8.0.9) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.8...@spectrum-css/tag@8.0.9) **Note:** Version bump only for package @spectrum-css/tag @@ -316,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.8 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.7...@spectrum-css/tag@8.0.8) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.7...@spectrum-css/tag@8.0.8) **Note:** Version bump only for package @spectrum-css/tag @@ -325,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.7 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.6...@spectrum-css/tag@8.0.7) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.6...@spectrum-css/tag@8.0.7) **Note:** Version bump only for package @spectrum-css/tag @@ -334,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.6 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.5...@spectrum-css/tag@8.0.6) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.5...@spectrum-css/tag@8.0.6) **Note:** Version bump only for package @spectrum-css/tag @@ -343,8 +343,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.4...@spectrum-css/tag@8.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.4...@spectrum-css/tag@8.0.5) **Note:** Version bump only for package @spectrum-css/tag @@ -352,8 +351,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.4 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.3...@spectrum-css/tag@8.0.4) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.3...@spectrum-css/tag@8.0.4) **Note:** Version bump only for package @spectrum-css/tag @@ -361,8 +359,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.3 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.2...@spectrum-css/tag@8.0.3) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.2...@spectrum-css/tag@8.0.3) **Note:** Version bump only for package @spectrum-css/tag @@ -370,8 +367,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.2 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.1...@spectrum-css/tag@8.0.2) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.1...@spectrum-css/tag@8.0.2) ### 🔙 Reverts @@ -381,8 +377,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.1 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.0...@spectrum-css/tag@8.0.1) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@8.0.0...@spectrum-css/tag@8.0.1) **Note:** Version bump only for package @spectrum-css/tag @@ -390,8 +385,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 8.0.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.1...@spectrum-css/tag@8.0.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.1...@spectrum-css/tag@8.0.0) \*refactor(clearbutton)!: migrate tokens (#1943)([495198a](https://github.com/adobe/spectrum-css/commit/495198a)), closes[#1943](https://github.com/adobe/spectrum-css/issues/1943) @@ -412,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.1...@spectrum-css/tag@7.0.0) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.1...@spectrum-css/tag@7.0.0) \*refactor(clearbutton)!: migrate tokens (#1943)([495198a](https://github.com/adobe/spectrum-css/commit/495198a)), closes[#1943](https://github.com/adobe/spectrum-css/issues/1943) @@ -434,8 +427,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.0...@spectrum-css/tag@6.0.1) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@6.0.0...@spectrum-css/tag@6.0.1) **Note:** Version bump only for package @spectrum-css/tag @@ -443,8 +435,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.46...@spectrum-css/tag@6.0.0) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.46...@spectrum-css/tag@6.0.0) \*fix(tag)!: update color tokens, rename classes to be singular (#2039)([bb60ff4](https://github.com/adobe/spectrum-css/commit/bb60ff4)), closes[#2039](https://github.com/adobe/spectrum-css/issues/2039) @@ -464,8 +455,7 @@ Additionally: ## 5.0.46 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.45...@spectrum-css/tag@5.0.46) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.45...@spectrum-css/tag@5.0.46) **Note:** Version bump only for package @spectrum-css/tag @@ -473,8 +463,7 @@ Additionally: ## 5.0.45 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.44...@spectrum-css/tag@5.0.45) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.44...@spectrum-css/tag@5.0.45) **Note:** Version bump only for package @spectrum-css/tag @@ -482,8 +471,7 @@ Additionally: ## 5.0.44 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.43...@spectrum-css/tag@5.0.44) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.43...@spectrum-css/tag@5.0.44) ### 🐛 Bug fixes @@ -493,8 +481,7 @@ Additionally: ## 5.0.43 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.42...@spectrum-css/tag@5.0.43) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.42...@spectrum-css/tag@5.0.43) ### 🐛 Bug fixes @@ -504,8 +491,7 @@ Additionally: ## 5.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.41...@spectrum-css/tag@5.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.41...@spectrum-css/tag@5.0.42) **Note:** Version bump only for package @spectrum-css/tag @@ -513,8 +499,7 @@ Additionally: ## 5.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.40...@spectrum-css/tag@5.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.40...@spectrum-css/tag@5.0.41) **Note:** Version bump only for package @spectrum-css/tag @@ -522,8 +507,7 @@ Additionally: ## 5.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.39...@spectrum-css/tag@5.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.39...@spectrum-css/tag@5.0.40) ### 🐛 Bug fixes @@ -533,8 +517,7 @@ Additionally: ## 5.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.38...@spectrum-css/tag@5.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.38...@spectrum-css/tag@5.0.39) **Note:** Version bump only for package @spectrum-css/tag @@ -542,8 +525,7 @@ Additionally: ## 5.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.37...@spectrum-css/tag@5.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.37...@spectrum-css/tag@5.0.38) **Note:** Version bump only for package @spectrum-css/tag @@ -551,8 +533,7 @@ Additionally: ## 5.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.36...@spectrum-css/tag@5.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.36...@spectrum-css/tag@5.0.37) **Note:** Version bump only for package @spectrum-css/tag @@ -560,8 +541,7 @@ Additionally: ## 5.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.35...@spectrum-css/tag@5.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.35...@spectrum-css/tag@5.0.36) ### 🐛 Bug fixes @@ -571,8 +551,7 @@ Additionally: ## 5.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.34...@spectrum-css/tag@5.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.34...@spectrum-css/tag@5.0.35) **Note:** Version bump only for package @spectrum-css/tag @@ -580,8 +559,7 @@ Additionally: ## 5.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.33...@spectrum-css/tag@5.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tag@5.0.33...@spectrum-css/tag@5.0.34) **Note:** Version bump only for package @spectrum-css/tag diff --git a/components/tag/dist/metadata.json b/components/tag/dist/metadata.json index 10a87e4aa2c..e708272678a 100644 --- a/components/tag/dist/metadata.json +++ b/components/tag/dist/metadata.json @@ -8,7 +8,6 @@ ".spectrum-Tag .spectrum-Tag-itemIcon", ".spectrum-Tag .spectrum-Tag-itemLabel", ".spectrum-Tag--sizeL", - ".spectrum-Tag--sizeM", ".spectrum-Tag--sizeS", ".spectrum-Tag.is-disabled", ".spectrum-Tag.is-disabled .spectrum-Avatar", @@ -280,39 +279,6 @@ "--spectrum-workflow-icon-size-200", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-tag-background-color", - "--system-tag-background-color-active", - "--system-tag-background-color-disabled", - "--system-tag-background-color-focus", - "--system-tag-background-color-hover", - "--system-tag-border-color", - "--system-tag-border-color-active", - "--system-tag-border-color-disabled", - "--system-tag-border-color-focus", - "--system-tag-border-color-hover", - "--system-tag-border-color-selected", - "--system-tag-border-color-selected-active", - "--system-tag-border-color-selected-focus", - "--system-tag-border-color-selected-hover", - "--system-tag-content-color", - "--system-tag-content-color-active", - "--system-tag-content-color-focus", - "--system-tag-content-color-hover", - "--system-tag-content-color-selected", - "--system-tag-size-large-clear-button-spacing-inline-end", - "--system-tag-size-large-corner-radius", - "--system-tag-size-large-label-spacing-inline-end", - "--system-tag-size-large-spacing-inline-start", - "--system-tag-size-medium-clear-button-spacing-inline-end", - "--system-tag-size-medium-corner-radius", - "--system-tag-size-medium-label-spacing-inline-end", - "--system-tag-size-medium-spacing-inline-start", - "--system-tag-size-small-clear-button-spacing-inline-end", - "--system-tag-size-small-corner-radius", - "--system-tag-size-small-label-spacing-inline-end", - "--system-tag-size-small-spacing-inline-start" - ], "passthroughs": [ "--mod-avatar-opacity-disabled", "--mod-clear-button-width", diff --git a/components/tag/index.css b/components/tag/index.css index 9385b432e60..fc03480febe 100644 --- a/components/tag/index.css +++ b/components/tag/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Tag { /* TODO - replace placeholder disabled avatar opacity with correct token once avatar is migrated */ --spectrum-avatar-opacity-disabled: 0.3; @@ -20,6 +18,30 @@ --spectrum-tag-animation-duration: var(--spectrum-animation-duration-100); --spectrum-tag-border-width: var(--spectrum-border-width-100); + /* background color */ + --spectrum-tag-background-color: var(--spectrum-gray-50); + --spectrum-tag-background-color-hover: var(--spectrum-gray-50); + --spectrum-tag-background-color-active: var(--spectrum-gray-100); + --spectrum-tag-background-color-focus: var(--spectrum-gray-50); + + /* border radius */ + --spectrum-tag-size-small-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-tag-size-medium-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-tag-size-large-corner-radius: var(--spectrum-corner-radius-100); + + /* border color */ + --spectrum-tag-border-color: var(--spectrum-gray-700); + --spectrum-tag-border-color-hover: var(--spectrum-gray-800); + --spectrum-tag-border-color-active: var(--spectrum-gray-900); + --spectrum-tag-border-color-focus: var(--spectrum-gray-800); + + /* content color */ + --spectrum-tag-content-color: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-tag-content-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-tag-content-color-active: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-tag-content-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --spectrum-tag-content-color-selected: var(--spectrum-gray-25); + /* focus ring */ --spectrum-tag-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); --spectrum-tag-focus-ring-gap: var(--spectrum-focus-indicator-gap); @@ -33,6 +55,10 @@ --spectrum-tag-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); --spectrum-tag-background-color-selected-active: var(--spectrum-neutral-background-color-selected-down); --spectrum-tag-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); + --spectrum-tag-border-color-selected: var(--spectrum-neutral-subdued-background-color-default); + --spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-subdued-background-color-hover); + --spectrum-tag-border-color-selected-active: var(--spectrum-neutral-subdued-background-color-down); + --spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-subdued-background-color-key-focus); /* invalid variant */ --spectrum-tag-border-color-invalid: var(--spectrum-negative-color-900); @@ -74,10 +100,9 @@ /* disabled variant content */ --spectrum-tag-content-color-disabled: var(--spectrum-disabled-content-color); -} + --spectrum-tag-border-color-disabled: transparent; + --spectrum-tag-background-color-disabled: var(--spectrum-disabled-background-color); -.spectrum-Tag, -.spectrum-Tag--sizeM { --spectrum-tag-height: var(--spectrum-component-height-100); --spectrum-tag-font-size: var(--spectrum-font-size-100); --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-100); @@ -100,6 +125,16 @@ --spectrum-tag-spacing-inline-start: var(--spectrum-tag-size-medium-spacing-inline-start); --spectrum-tag-label-spacing-inline-end: var(--spectrum-tag-size-medium-label-spacing-inline-end); --spectrum-tag-clear-button-spacing-inline-end: var(--spectrum-tag-size-medium-clear-button-spacing-inline-end); + + --spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-edge-to-visual-75); + --spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-edge-to-text-75); + --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-75); + --spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-edge-to-visual-100); + --spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-edge-to-text-100); + --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-100); + --spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-edge-to-visual-200); + --spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-edge-to-text-200); + --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-200); } /* t-shirt sizes */ @@ -199,10 +234,11 @@ /* clear button */ .spectrum-Tag-clearButton { - /* width of fill neutralized to ensure correct inline spacing within tag */ + /* @passthrough start -- width of fill neutralized to ensure correct inline spacing within tag */ --mod-clear-button-width: fit-content; --spectrum-clearbutton-fill-size: fit-content; --spectrum-clearbutton-fill-background-color: transparent; + /* @passthrough end */ box-sizing: border-box; diff --git a/components/tag/package.json b/components/tag/package.json index 987d52cf1b1..cb69dc4ce0d 100644 --- a/components/tag/package.json +++ b/components/tag/package.json @@ -27,8 +27,8 @@ "peerDependencies": { "@spectrum-css/avatar": ">=7", "@spectrum-css/clearbutton": ">=6", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/avatar": { @@ -42,11 +42,7 @@ "@spectrum-css/avatar": "9.0.1", "@spectrum-css/clearbutton": "7.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/tag/stories/template.js b/components/tag/stories/template.js index 90c72435bae..ee4b244dd43 100644 --- a/components/tag/stories/template.js +++ b/components/tag/stories/template.js @@ -9,9 +9,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Tag", diff --git a/components/tag/themes/express.css b/components/tag/themes/express.css deleted file mode 100644 index 7c2c2e67303..00000000000 --- a/components/tag/themes/express.css +++ /dev/null @@ -1,64 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Tag { - /* border */ - --spectrum-tag-background-color: transparent; - --spectrum-tag-background-color-hover: var(--spectrum-gray-300); - --spectrum-tag-background-color-active: var(--spectrum-gray-400); - --spectrum-tag-background-color-focus: var(--spectrum-gray-300); - - /* express has pill style full corner radius */ - --spectrum-tag-size-small-corner-radius: var(--spectrum-component-height-75); - --spectrum-tag-size-medium-corner-radius: var(--spectrum-component-height-100); - --spectrum-tag-size-large-corner-radius: var(--spectrum-component-height-200); - - /* background */ - --spectrum-tag-border-color: var(--spectrum-gray-300); - --spectrum-tag-border-color-hover: var(--spectrum-gray-400); - --spectrum-tag-border-color-active: var(--spectrum-gray-500); - --spectrum-tag-border-color-focus: var(--spectrum-gray-400); - - /* content color */ - --spectrum-tag-content-color: var(--spectrum-neutral-content-color-default); - --spectrum-tag-content-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-tag-content-color-active: var(--spectrum-neutral-content-color-down); - --spectrum-tag-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - - /* selected */ - --spectrum-tag-border-color-selected: var(--spectrum-neutral-background-color-default); - --spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-background-color-hover); - --spectrum-tag-border-color-selected-active: var(--spectrum-neutral-background-color-down); - --spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-background-color-key-focus); - - /* disabled */ - --spectrum-tag-border-color-disabled: var(--spectrum-disabled-border-color); - --spectrum-tag-background-color-disabled: transparent; - - /* tokens based on theme and t-shirt size */ - --spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-75); - --spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-75); - --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-75); - --spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-100); - --spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-100); - --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-100); - --spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-200); - --spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-200); - --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-200); - } -} diff --git a/components/tag/themes/spectrum-two.css b/components/tag/themes/spectrum-two.css deleted file mode 100644 index f9c51730f48..00000000000 --- a/components/tag/themes/spectrum-two.css +++ /dev/null @@ -1,56 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Tag { - --spectrum-tag-background-color: var(--spectrum-gray-50); - --spectrum-tag-background-color-hover: var(--spectrum-gray-50); - --spectrum-tag-background-color-active: var(--spectrum-gray-100); - --spectrum-tag-background-color-focus: var(--spectrum-gray-50); - - --spectrum-tag-size-small-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-tag-size-medium-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-tag-size-large-corner-radius: var(--spectrum-corner-radius-100); - - --spectrum-tag-border-color: var(--spectrum-gray-700); - --spectrum-tag-border-color-hover: var(--spectrum-gray-800); - --spectrum-tag-border-color-active: var(--spectrum-gray-900); - --spectrum-tag-border-color-focus: var(--spectrum-gray-800); - - --spectrum-tag-content-color: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-tag-content-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-tag-content-color-active: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-tag-content-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --spectrum-tag-content-color-selected: var(--spectrum-gray-25); - - --spectrum-tag-border-color-selected: var(--spectrum-neutral-subdued-background-color-default); - --spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-subdued-background-color-hover); - --spectrum-tag-border-color-selected-active: var(--spectrum-neutral-subdued-background-color-down); - --spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - - /* disabled variant */ - --spectrum-tag-border-color-disabled: transparent; - --spectrum-tag-background-color-disabled: var(--spectrum-disabled-background-color); - - /* tokens based on theme and t-shirt size */ - --spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-edge-to-visual-75); - --spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-edge-to-text-75); - --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-75); - --spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-edge-to-visual-100); - --spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-edge-to-text-100); - --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-100); - --spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-edge-to-visual-200); - --spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-edge-to-text-200); - --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-200); - } -} diff --git a/components/tag/themes/spectrum.css b/components/tag/themes/spectrum.css deleted file mode 100644 index 171968e1f50..00000000000 --- a/components/tag/themes/spectrum.css +++ /dev/null @@ -1,27 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Tag { - --spectrum-tag-background-color: var(--spectrum-gray-75); - --spectrum-tag-background-color-hover: var(--spectrum-gray-75); - --spectrum-tag-background-color-active: var(--spectrum-gray-200); - --spectrum-tag-background-color-focus: var(--spectrum-gray-75); - - --spectrum-tag-content-color-selected: var(--spectrum-gray-50); - } -} diff --git a/components/taggroup/CHANGELOG.md b/components/taggroup/CHANGELOG.md index dc1a798d768..64a0681b731 100644 --- a/components/taggroup/CHANGELOG.md +++ b/components/taggroup/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 6.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/tag@10.0.0-next.0 + ## 7.0.1 ### Patch Changes @@ -143,16 +151,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.5...@spectrum-css/taggroup@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.5...@spectrum-css/taggroup@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -160,8 +165,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.4...@spectrum-css/taggroup@4.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.4...@spectrum-css/taggroup@4.1.5) **Note:** Version bump only for package @spectrum-css/taggroup @@ -169,8 +173,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.3...@spectrum-css/taggroup@4.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.3...@spectrum-css/taggroup@4.1.4) **Note:** Version bump only for package @spectrum-css/taggroup @@ -178,8 +181,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.2...@spectrum-css/taggroup@4.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.2...@spectrum-css/taggroup@4.1.3) **Note:** Version bump only for package @spectrum-css/taggroup @@ -187,8 +189,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.1...@spectrum-css/taggroup@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.1.1...@spectrum-css/taggroup@4.1.2) **Note:** Version bump only for package @spectrum-css/taggroup @@ -196,8 +197,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/taggroup @@ -205,8 +205,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.14...@spectrum-css/taggroup@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.14...@spectrum-css/taggroup@4.1.0) ### ✨ Features @@ -216,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.14 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.13...@spectrum-css/taggroup@4.0.14) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.13...@spectrum-css/taggroup@4.0.14) **Note:** Version bump only for package @spectrum-css/taggroup @@ -225,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.13 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.12...@spectrum-css/taggroup@4.0.13) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.12...@spectrum-css/taggroup@4.0.13) **Note:** Version bump only for package @spectrum-css/taggroup @@ -234,8 +231,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.12 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.10...@spectrum-css/taggroup@4.0.12) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.10...@spectrum-css/taggroup@4.0.12) **Note:** Version bump only for package @spectrum-css/taggroup @@ -243,8 +239,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.11 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.10...@spectrum-css/taggroup@4.0.11) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.10...@spectrum-css/taggroup@4.0.11) **Note:** Version bump only for package @spectrum-css/taggroup @@ -252,8 +247,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.9...@spectrum-css/taggroup@4.0.10) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.9...@spectrum-css/taggroup@4.0.10) **Note:** Version bump only for package @spectrum-css/taggroup @@ -261,8 +255,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.8...@spectrum-css/taggroup@4.0.9) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.8...@spectrum-css/taggroup@4.0.9) **Note:** Version bump only for package @spectrum-css/taggroup @@ -270,8 +263,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.7...@spectrum-css/taggroup@4.0.8) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.7...@spectrum-css/taggroup@4.0.8) **Note:** Version bump only for package @spectrum-css/taggroup @@ -279,8 +271,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.6...@spectrum-css/taggroup@4.0.7) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.6...@spectrum-css/taggroup@4.0.7) **Note:** Version bump only for package @spectrum-css/taggroup @@ -288,8 +279,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.5...@spectrum-css/taggroup@4.0.6) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.5...@spectrum-css/taggroup@4.0.6) **Note:** Version bump only for package @spectrum-css/taggroup @@ -297,8 +287,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.4...@spectrum-css/taggroup@4.0.5) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.4...@spectrum-css/taggroup@4.0.5) **Note:** Version bump only for package @spectrum-css/taggroup @@ -306,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.3...@spectrum-css/taggroup@4.0.4) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.3...@spectrum-css/taggroup@4.0.4) **Note:** Version bump only for package @spectrum-css/taggroup @@ -315,8 +303,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.2...@spectrum-css/taggroup@4.0.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.2...@spectrum-css/taggroup@4.0.3) **Note:** Version bump only for package @spectrum-css/taggroup @@ -324,8 +311,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.1...@spectrum-css/taggroup@4.0.2) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.1...@spectrum-css/taggroup@4.0.2) **Note:** Version bump only for package @spectrum-css/taggroup @@ -333,8 +319,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.0...@spectrum-css/taggroup@4.0.1) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@4.0.0...@spectrum-css/taggroup@4.0.1) **Note:** Version bump only for package @spectrum-css/taggroup @@ -342,8 +327,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.64...@spectrum-css/taggroup@4.0.0) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.64...@spectrum-css/taggroup@4.0.0) ### 🔙 Reverts @@ -351,8 +335,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat(taggroup)!: migrate to spectrum-tokens([531e067](https://github.com/adobe/spectrum-css/commit/531e067)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates TagGroup to use `@adobe/spectrum-tokens` @@ -377,8 +360,7 @@ CSS-500 ## 3.3.64 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.63...@spectrum-css/taggroup@3.3.64) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.63...@spectrum-css/taggroup@3.3.64) **Note:** Version bump only for package @spectrum-css/taggroup @@ -386,8 +368,7 @@ CSS-500 ## 3.3.63 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.61...@spectrum-css/taggroup@3.3.63) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.61...@spectrum-css/taggroup@3.3.63) **Note:** Version bump only for package @spectrum-css/taggroup @@ -395,8 +376,7 @@ CSS-500 ## 3.3.62 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.61...@spectrum-css/taggroup@3.3.62) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.61...@spectrum-css/taggroup@3.3.62) **Note:** Version bump only for package @spectrum-css/taggroup @@ -404,8 +384,7 @@ CSS-500 ## 3.3.61 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.60...@spectrum-css/taggroup@3.3.61) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.60...@spectrum-css/taggroup@3.3.61) **Note:** Version bump only for package @spectrum-css/taggroup @@ -413,8 +392,7 @@ CSS-500 ## 3.3.60 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.59...@spectrum-css/taggroup@3.3.60) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.59...@spectrum-css/taggroup@3.3.60) **Note:** Version bump only for package @spectrum-css/taggroup @@ -422,8 +400,7 @@ CSS-500 ## 3.3.59 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.58...@spectrum-css/taggroup@3.3.59) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.58...@spectrum-css/taggroup@3.3.59) **Note:** Version bump only for package @spectrum-css/taggroup @@ -431,8 +408,7 @@ CSS-500 ## 3.3.58 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.57...@spectrum-css/taggroup@3.3.58) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.57...@spectrum-css/taggroup@3.3.58) **Note:** Version bump only for package @spectrum-css/taggroup @@ -440,8 +416,7 @@ CSS-500 ## 3.3.57 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.56...@spectrum-css/taggroup@3.3.57) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.56...@spectrum-css/taggroup@3.3.57) **Note:** Version bump only for package @spectrum-css/taggroup @@ -449,8 +424,7 @@ CSS-500 ## 3.3.56 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.55...@spectrum-css/taggroup@3.3.56) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.55...@spectrum-css/taggroup@3.3.56) **Note:** Version bump only for package @spectrum-css/taggroup @@ -458,8 +432,7 @@ CSS-500 ## 3.3.55 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.54...@spectrum-css/taggroup@3.3.55) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.54...@spectrum-css/taggroup@3.3.55) **Note:** Version bump only for package @spectrum-css/taggroup @@ -467,8 +440,7 @@ CSS-500 ## 3.3.54 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.53...@spectrum-css/taggroup@3.3.54) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.53...@spectrum-css/taggroup@3.3.54) **Note:** Version bump only for package @spectrum-css/taggroup @@ -476,8 +448,7 @@ CSS-500 ## 3.3.53 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.52...@spectrum-css/taggroup@3.3.53) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.52...@spectrum-css/taggroup@3.3.53) **Note:** Version bump only for package @spectrum-css/taggroup @@ -485,8 +456,7 @@ CSS-500 ## 3.3.52 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.51...@spectrum-css/taggroup@3.3.52) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.51...@spectrum-css/taggroup@3.3.52) **Note:** Version bump only for package @spectrum-css/taggroup @@ -494,8 +464,7 @@ CSS-500 ## 3.3.51 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.50...@spectrum-css/taggroup@3.3.51) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.50...@spectrum-css/taggroup@3.3.51) **Note:** Version bump only for package @spectrum-css/taggroup @@ -503,8 +472,7 @@ CSS-500 ## 3.3.50 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.49...@spectrum-css/taggroup@3.3.50) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.49...@spectrum-css/taggroup@3.3.50) **Note:** Version bump only for package @spectrum-css/taggroup @@ -512,8 +480,7 @@ CSS-500 ## 3.3.49 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.48...@spectrum-css/taggroup@3.3.49) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.48...@spectrum-css/taggroup@3.3.49) ### 🐛 Bug fixes @@ -523,8 +490,7 @@ CSS-500 ## 3.3.48 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.47...@spectrum-css/taggroup@3.3.48) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.47...@spectrum-css/taggroup@3.3.48) **Note:** Version bump only for package @spectrum-css/taggroup @@ -532,8 +498,7 @@ CSS-500 ## 3.3.47 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.46...@spectrum-css/taggroup@3.3.47) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/taggroup@3.3.46...@spectrum-css/taggroup@3.3.47) **Note:** Version bump only for package @spectrum-css/taggroup diff --git a/components/taggroup/dist/metadata.json b/components/taggroup/dist/metadata.json index 10ed81256ff..b9eeaede1e8 100644 --- a/components/taggroup/dist/metadata.json +++ b/components/taggroup/dist/metadata.json @@ -10,7 +10,6 @@ "--spectrum-tag-group-item-margin-inline" ], "global": ["--spectrum-spacing-75"], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/taggroup/package.json b/components/taggroup/package.json index 68b3513bfb7..1d3150c4c1c 100644 --- a/components/taggroup/package.json +++ b/components/taggroup/package.json @@ -26,15 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/tag": ">=9", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/tag": "10.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/textfield/CHANGELOG.md b/components/textfield/CHANGELOG.md index 4713cc0e80d..2cb2d3c7746 100644 --- a/components/textfield/CHANGELOG.md +++ b/components/textfield/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 7.3.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 8.0.1 ### Patch Changes @@ -162,8 +171,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 7.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.6...@spectrum-css/textfield@7.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.6...@spectrum-css/textfield@7.0.0) ### ✨ Features @@ -183,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.5...@spectrum-css/textfield@6.1.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.5...@spectrum-css/textfield@6.1.6) **Note:** Version bump only for package @spectrum-css/textfield @@ -192,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.4...@spectrum-css/textfield@6.1.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.4...@spectrum-css/textfield@6.1.5) **Note:** Version bump only for package @spectrum-css/textfield @@ -201,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.4 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.3...@spectrum-css/textfield@6.1.4) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.3...@spectrum-css/textfield@6.1.4) ### 🐛 Bug fixes @@ -213,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.2...@spectrum-css/textfield@6.1.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.2...@spectrum-css/textfield@6.1.3) **Note:** Version bump only for package @spectrum-css/textfield @@ -222,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.1...@spectrum-css/textfield@6.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.1.1...@spectrum-css/textfield@6.1.2) **Note:** Version bump only for package @spectrum-css/textfield @@ -231,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/textfield @@ -240,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.31...@spectrum-css/textfield@6.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.31...@spectrum-css/textfield@6.1.0) **Note:** Version bump only for package @spectrum-css/textfield @@ -249,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.31 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.30...@spectrum-css/textfield@6.0.31) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.30...@spectrum-css/textfield@6.0.31) **Note:** Version bump only for package @spectrum-css/textfield @@ -258,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.30 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.29...@spectrum-css/textfield@6.0.30) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.29...@spectrum-css/textfield@6.0.30) **Note:** Version bump only for package @spectrum-css/textfield @@ -267,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.29 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.28...@spectrum-css/textfield@6.0.29) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.28...@spectrum-css/textfield@6.0.29) ### 🐛 Bug fixes @@ -278,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.28 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.26...@spectrum-css/textfield@6.0.28) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.26...@spectrum-css/textfield@6.0.28) **Note:** Version bump only for package @spectrum-css/textfield @@ -287,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.27 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.26...@spectrum-css/textfield@6.0.27) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.26...@spectrum-css/textfield@6.0.27) **Note:** Version bump only for package @spectrum-css/textfield @@ -296,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.26 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.25...@spectrum-css/textfield@6.0.26) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.25...@spectrum-css/textfield@6.0.26) **Note:** Version bump only for package @spectrum-css/textfield @@ -305,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.25 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.24...@spectrum-css/textfield@6.0.25) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.24...@spectrum-css/textfield@6.0.25) **Note:** Version bump only for package @spectrum-css/textfield @@ -314,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.24 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.23...@spectrum-css/textfield@6.0.24) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.23...@spectrum-css/textfield@6.0.24) **Note:** Version bump only for package @spectrum-css/textfield @@ -323,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.23 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.22...@spectrum-css/textfield@6.0.23) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.22...@spectrum-css/textfield@6.0.23) **Note:** Version bump only for package @spectrum-css/textfield @@ -332,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.22 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.21...@spectrum-css/textfield@6.0.22) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.21...@spectrum-css/textfield@6.0.22) **Note:** Version bump only for package @spectrum-css/textfield @@ -341,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.21 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.20...@spectrum-css/textfield@6.0.21) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.20...@spectrum-css/textfield@6.0.21) **Note:** Version bump only for package @spectrum-css/textfield @@ -350,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.20 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.19...@spectrum-css/textfield@6.0.20) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.19...@spectrum-css/textfield@6.0.20) **Note:** Version bump only for package @spectrum-css/textfield @@ -359,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.19 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.18...@spectrum-css/textfield@6.0.19) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.18...@spectrum-css/textfield@6.0.19) **Note:** Version bump only for package @spectrum-css/textfield @@ -368,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.18 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.17...@spectrum-css/textfield@6.0.18) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.17...@spectrum-css/textfield@6.0.18) **Note:** Version bump only for package @spectrum-css/textfield @@ -377,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.17 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.16...@spectrum-css/textfield@6.0.17) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.16...@spectrum-css/textfield@6.0.17) **Note:** Version bump only for package @spectrum-css/textfield @@ -386,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.16 -🗓 -2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.15...@spectrum-css/textfield@6.0.16) +🗓 2023-08-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.15...@spectrum-css/textfield@6.0.16) ### 🐛 Bug fixes @@ -401,8 +386,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.15 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.14...@spectrum-css/textfield@6.0.15) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.14...@spectrum-css/textfield@6.0.15) **Note:** Version bump only for package @spectrum-css/textfield @@ -410,8 +394,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.14 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.12...@spectrum-css/textfield@6.0.14) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.12...@spectrum-css/textfield@6.0.14) **Note:** Version bump only for package @spectrum-css/textfield @@ -419,8 +402,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.13 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.12...@spectrum-css/textfield@6.0.13) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.12...@spectrum-css/textfield@6.0.13) **Note:** Version bump only for package @spectrum-css/textfield @@ -428,8 +410,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.12 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.11...@spectrum-css/textfield@6.0.12) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.11...@spectrum-css/textfield@6.0.12) **Note:** Version bump only for package @spectrum-css/textfield @@ -437,8 +418,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.11 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.10...@spectrum-css/textfield@6.0.11) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.10...@spectrum-css/textfield@6.0.11) **Note:** Version bump only for package @spectrum-css/textfield @@ -446,8 +426,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.10 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.9...@spectrum-css/textfield@6.0.10) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.9...@spectrum-css/textfield@6.0.10) **Note:** Version bump only for package @spectrum-css/textfield @@ -455,8 +434,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.9 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.8...@spectrum-css/textfield@6.0.9) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.8...@spectrum-css/textfield@6.0.9) **Note:** Version bump only for package @spectrum-css/textfield @@ -464,8 +442,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.8 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.7...@spectrum-css/textfield@6.0.8) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.7...@spectrum-css/textfield@6.0.8) ### 🐛 Bug fixes @@ -475,8 +452,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.7 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.6...@spectrum-css/textfield@6.0.7) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.6...@spectrum-css/textfield@6.0.7) **Note:** Version bump only for package @spectrum-css/textfield @@ -484,8 +460,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.6 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.5...@spectrum-css/textfield@6.0.6) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.5...@spectrum-css/textfield@6.0.6) **Note:** Version bump only for package @spectrum-css/textfield @@ -493,8 +468,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.5 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.4...@spectrum-css/textfield@6.0.5) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.4...@spectrum-css/textfield@6.0.5) **Note:** Version bump only for package @spectrum-css/textfield @@ -502,8 +476,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.4 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.3...@spectrum-css/textfield@6.0.4) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.3...@spectrum-css/textfield@6.0.4) **Note:** Version bump only for package @spectrum-css/textfield @@ -511,8 +484,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.3 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.2...@spectrum-css/textfield@6.0.3) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.2...@spectrum-css/textfield@6.0.3) **Note:** Version bump only for package @spectrum-css/textfield @@ -520,8 +492,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.2 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.1...@spectrum-css/textfield@6.0.2) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.1...@spectrum-css/textfield@6.0.2) **Note:** Version bump only for package @spectrum-css/textfield @@ -529,8 +500,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.1 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.0...@spectrum-css/textfield@6.0.1) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@6.0.0...@spectrum-css/textfield@6.0.1) ### 🐛 Bug fixes @@ -540,8 +510,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@5.1.11...@spectrum-css/textfield@6.0.0) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@5.1.11...@spectrum-css/textfield@6.0.0) \*chore(search)!: core tokens migration (#1761)([b54d8ef](https://github.com/adobe/spectrum-css/commit/b54d8ef)), closes[#1761](https://github.com/adobe/spectrum-css/issues/1761) @@ -555,8 +524,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.11 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@5.1.10...@spectrum-css/textfield@5.1.11) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/textfield@5.1.10...@spectrum-css/textfield@5.1.11) **Note:** Version bump only for package @spectrum-css/textfield diff --git a/components/textfield/dist/metadata.json b/components/textfield/dist/metadata.json index f60b3e0319f..7abe6588f9c 100644 --- a/components/textfield/dist/metadata.json +++ b/components/textfield/dist/metadata.json @@ -86,7 +86,6 @@ ".spectrum-Textfield.is-readOnly:hover .spectrum-Textfield-input", ".spectrum-Textfield.is-readOnly:hover .spectrum-Textfield-input::placeholder", ".spectrum-Textfield.is-valid .spectrum-Textfield-validationIcon", - ".spectrum-Textfield.spectrum-Textfield--quiet", ".spectrum-Textfield.spectrum-Textfield--sideLabel .spectrum-Textfield-validationIcon", ".spectrum-Textfield:hover .spectrum-Textfield-input", ".spectrum-Textfield:hover .spectrum-Textfield-input::placeholder" @@ -328,18 +327,6 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-textfield-background-color", - "--system-textfield-background-color-disabled", - "--system-textfield-border-color", - "--system-textfield-border-color-disabled", - "--system-textfield-border-color-focus", - "--system-textfield-border-color-focus-hover", - "--system-textfield-border-color-hover", - "--system-textfield-border-color-keyboard-focus", - "--system-textfield-border-width", - "--system-textfield-quiet-border-color-disabled" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-textfield-border-color", diff --git a/components/textfield/index.css b/components/textfield/index.css index 87ab606476f..caae22baa15 100644 --- a/components/textfield/index.css +++ b/components/textfield/index.css @@ -11,9 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Textfield { + --spectrum-textfield-background-color: var(--mod-textfield-background-color, var(--spectrum-gray-25)); + --spectrum-textfield-background-color-disabled: var(--mod-textfield-background-color-disabled, var(--spectrum-gray-25)); + --spectrum-textfield-border-color-disabled: var(--mod-textfield-border-color-disabled, var(--spectrum-gray-300)); + /* set input line-height to the height of the textfield - prevents the cutting off of diacritics in some languages */ /* disallow mod for max compatibility */ --spectrum-textfield-input-line-height: var(--spectrum-textfield-height); @@ -23,6 +25,14 @@ --spectrum-textfield-min-width: var(--spectrum-text-field-minimum-width-multiplier); --spectrum-textfield-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-textfield-border-color: var(--spectrum-gray-500); + --spectrum-textfield-border-color-hover: var(--spectrum-gray-600); + --spectrum-textfield-border-color-focus: var(--spectrum-gray-800); + --spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); + --spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); + + --spectrum-textfield-border-width: var(--spectrum-border-width-100); + /* default spacing */ --spectrum-textfield-spacing-inline-quiet: var(--spectrum-field-edge-to-text-quiet); --spectrum-textfield-spacing-block-start: var(--spectrum-component-top-to-text-100); @@ -318,7 +328,7 @@ vertical-align: top; /* used to align them correctly in forms. */ outline: none; - background-color: var(--mod-textfield-background-color, var(--spectrum-textfield-background-color)); + background-color: var(--spectrum-textfield-background-color); border-width: var(--mod-textfield-border-width, var(--spectrum-textfield-border-width)); border-style: solid; border-color: var(--highcontrast-textfield-border-color, var(--mod-textfield-border-color, var(--spectrum-textfield-border-color))); @@ -465,8 +475,8 @@ .spectrum-Textfield.is-disabled &, .spectrum-Textfield.is-disabled:hover &, &:disabled { - background-color: var(--mod-textfield-background-color-disabled, var(--spectrum-textfield-background-color-disabled)); - border-color: var(--mod-textfield-border-color-disabled, var(--spectrum-textfield-border-color-disabled)); + background-color: var(--spectrum-textfield-background-color-disabled); + border-color: var(--spectrum-textfield-border-color-disabled); color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-textfield-text-color-disabled))); /* Disable the resize functionality when disabled */ @@ -502,7 +512,7 @@ .spectrum-Textfield--quiet.is-disabled:hover &, &:disabled { background-color: transparent; - border-color: var(--mod-textfield-border-color-disabled, var(--spectrum-textfield-border-color-disabled)); + border-color: var(--spectrum-textfield-border-color-disabled); color: var(--highcontrast-textfield-text-color-disabled, var(--mod-textfield-text-color-disabled, var(--spectrum-textfield-text-color-disabled))); &::placeholder { diff --git a/components/textfield/package.json b/components/textfield/package.json index 6d32d582668..404d4cbf789 100644 --- a/components/textfield/package.json +++ b/components/textfield/package.json @@ -26,7 +26,7 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/helptext": ">=5", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/helptext": { @@ -35,11 +35,7 @@ }, "devDependencies": { "@spectrum-css/helptext": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/textfield/stories/template.js b/components/textfield/stories/template.js index 5f20b0abb86..9413a7504e3 100644 --- a/components/textfield/stories/template.js +++ b/components/textfield/stories/template.js @@ -1,8 +1,8 @@ import { Template as FieldLabel } from "@spectrum-css/fieldlabel/stories/template.js"; import { Template as HelpText } from "@spectrum-css/helptext/stories/template.js"; import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; +import { Template as InfieldProgressCircle } from "@spectrum-css/infieldprogresscircle/stories/template.js"; import { Container, getRandomId } from "@spectrum-css/preview/decorators"; -import { Template as ProgressCircle } from "@spectrum-css/progresscircle/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -10,9 +10,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; /** * @typedef API @@ -21,7 +18,7 @@ import "../themes/express.css"; * @property {string[]} [customClasses=[]] * @property {string[]} [customInputClasses=[]] * @property {string[]} [customIconClasses=[]] - * @property {string[]} [customProgressCircleClasses=[]] + * @property {string[]} [customInfieldProgressCircleClasses=[]] * @property {Record<string, string>} [customStyles={}] * @property {boolean} [isInvalid=false] * @property {boolean} [isValid=false] @@ -61,7 +58,7 @@ export const Template = ({ customClasses = [], customInputClasses = [], customIconClasses = [], - customProgressCircleClasses = [], + customInfieldProgressCircleClasses = [], isInvalid = false, isValid = false, multiline = false, @@ -199,10 +196,10 @@ export const Template = ({ })} />` )} - ${when(isLoading, () => ProgressCircle({ + ${when(isLoading, () => InfieldProgressCircle({ isIndeterminate: true, - size: "s", - customClasses: customProgressCircleClasses, + size: size, + customClasses: customInfieldProgressCircleClasses, }, context))} ${when(helpText, () => HelpText({ diff --git a/components/textfield/themes/express.css b/components/textfield/themes/express.css deleted file mode 100644 index 31de0c5779a..00000000000 --- a/components/textfield/themes/express.css +++ /dev/null @@ -1,28 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Textfield { - --spectrum-textfield-border-color: var(--spectrum-gray-400); - --spectrum-textfield-border-color-hover: var(--spectrum-gray-500); - --spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - - --spectrum-textfield-border-width: var(--spectrum-border-width-200); - } -} diff --git a/components/textfield/themes/spectrum-two.css b/components/textfield/themes/spectrum-two.css deleted file mode 100644 index d7da353ad74..00000000000 --- a/components/textfield/themes/spectrum-two.css +++ /dev/null @@ -1,32 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Textfield { - --spectrum-textfield-background-color: var(--spectrum-gray-25); - --spectrum-textfield-background-color-disabled: var(--spectrum-gray-25); - - --spectrum-textfield-border-color: var(--spectrum-gray-500); - --spectrum-textfield-border-color-hover: var(--spectrum-gray-600); - --spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - --spectrum-textfield-border-color-disabled: var(--spectrum-gray-300); - - --spectrum-textfield-border-width: var(--spectrum-border-width-100); - - &.spectrum-Textfield--quiet { - --spectrum-textfield-border-color-disabled: var(--spectrum-gray-300); - } - } -} diff --git a/components/textfield/themes/spectrum.css b/components/textfield/themes/spectrum.css deleted file mode 100644 index 8f337bcaf8c..00000000000 --- a/components/textfield/themes/spectrum.css +++ /dev/null @@ -1,29 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Textfield { - --spectrum-textfield-background-color: var(--spectrum-gray-50); - --spectrum-textfield-background-color-disabled: var(--spectrum-disabled-background-color); - - --spectrum-textfield-border-color-disabled: var(--spectrum-gray-200); - - &.spectrum-Textfield--quiet { - --spectrum-textfield-border-color-disabled: var(--spectrum-gray-300); - } - } -} diff --git a/components/thumbnail/CHANGELOG.md b/components/thumbnail/CHANGELOG.md index 38b5ab04a21..3803f0bc7a9 100644 --- a/components/thumbnail/CHANGELOG.md +++ b/components/thumbnail/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 7.0.0-next.0 + +### Minor Changes + +- [#3367](https://github.com/adobe/spectrum-css/pull/3367) [`2c62239`](https://github.com/adobe/spectrum-css/commit/2c62239aab6ae9815bac6edf531c212c45665a5c) Thanks [@cdransf](https://github.com/cdransf)! - Replaces corner-radius-75 with thumbnail-corner-radius. +- [#3394](https://github.com/adobe/spectrum-css/pull/3394) [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586) Thanks [@cdransf](https://github.com/cdransf)! - # thumbnail-opacity-checkerboard S2 migration + + Adds thumbnail specific `thumbnail-opacity-checkerboard-square-size` token aliased to `--spectrum-opacity-checkerboard-size`. This impacts the display of the `opacity-checkerboard` when used within the `thumbnail` component. + + This also corrects an issue with a token name in the `thumbnail` component by renaming `--spectrum-thumbnail-border-color-opacity` to `--spectrum-thumbnail-border-opacity`. + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/opacitycheckerboard@3.0.0-next.0 + ## 8.0.1 ### Patch Changes @@ -161,16 +178,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.4...@spectrum-css/thumbnail@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.4...@spectrum-css/thumbnail@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES - - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES + - Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -178,8 +191,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.3...@spectrum-css/thumbnail@5.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.3...@spectrum-css/thumbnail@5.2.4) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -187,8 +199,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.2...@spectrum-css/thumbnail@5.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.2...@spectrum-css/thumbnail@5.2.3) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -196,8 +207,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.1...@spectrum-css/thumbnail@5.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.2.1...@spectrum-css/thumbnail@5.2.2) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -205,8 +215,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/thumbnail @@ -214,8 +223,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.4...@spectrum-css/thumbnail@5.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.4...@spectrum-css/thumbnail@5.2.0) ### ✨ Features @@ -225,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.3...@spectrum-css/thumbnail@5.1.4) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.3...@spectrum-css/thumbnail@5.1.4) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -234,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.2...@spectrum-css/thumbnail@5.1.3) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.2...@spectrum-css/thumbnail@5.1.3) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -243,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.0...@spectrum-css/thumbnail@5.1.2) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.0...@spectrum-css/thumbnail@5.1.2) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -252,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.0...@spectrum-css/thumbnail@5.1.1) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.1.0...@spectrum-css/thumbnail@5.1.1) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -261,8 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.12...@spectrum-css/thumbnail@5.1.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.12...@spectrum-css/thumbnail@5.1.0) ### ✨ Features @@ -272,8 +275,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.12 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.11...@spectrum-css/thumbnail@5.0.12) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.11...@spectrum-css/thumbnail@5.0.12) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -281,8 +283,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.11 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.10...@spectrum-css/thumbnail@5.0.11) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.10...@spectrum-css/thumbnail@5.0.11) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -290,8 +291,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.10 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.9...@spectrum-css/thumbnail@5.0.10) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.9...@spectrum-css/thumbnail@5.0.10) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -299,8 +299,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.9 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.8...@spectrum-css/thumbnail@5.0.9) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.8...@spectrum-css/thumbnail@5.0.9) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -308,8 +307,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.8 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.7...@spectrum-css/thumbnail@5.0.8) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.7...@spectrum-css/thumbnail@5.0.8) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -317,8 +315,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.7 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.6...@spectrum-css/thumbnail@5.0.7) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.6...@spectrum-css/thumbnail@5.0.7) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -326,8 +323,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.5...@spectrum-css/thumbnail@5.0.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.5...@spectrum-css/thumbnail@5.0.6) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -335,8 +331,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.5 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.4...@spectrum-css/thumbnail@5.0.5) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.4...@spectrum-css/thumbnail@5.0.5) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -344,8 +339,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.4 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.3...@spectrum-css/thumbnail@5.0.4) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.3...@spectrum-css/thumbnail@5.0.4) ### 🔙 Reverts @@ -355,8 +349,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.2...@spectrum-css/thumbnail@5.0.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.2...@spectrum-css/thumbnail@5.0.3) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -364,8 +357,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.0...@spectrum-css/thumbnail@5.0.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.0...@spectrum-css/thumbnail@5.0.2) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -373,8 +365,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.0...@spectrum-css/thumbnail@5.0.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@5.0.0...@spectrum-css/thumbnail@5.0.1) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -382,8 +373,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.4...@spectrum-css/thumbnail@5.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.4...@spectrum-css/thumbnail@5.0.0) ### 🐛 Bug fixes @@ -401,8 +391,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.3...@spectrum-css/thumbnail@4.0.4) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.3...@spectrum-css/thumbnail@4.0.4) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -410,8 +399,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.2...@spectrum-css/thumbnail@4.0.3) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.2...@spectrum-css/thumbnail@4.0.3) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -419,8 +407,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.1...@spectrum-css/thumbnail@4.0.2) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.1...@spectrum-css/thumbnail@4.0.2) ### 🐛 Bug fixes @@ -430,8 +417,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.0...@spectrum-css/thumbnail@4.0.1) +🗓 2023-07-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@4.0.0...@spectrum-css/thumbnail@4.0.1) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -439,13 +425,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.17...@spectrum-css/thumbnail@4.0.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.17...@spectrum-css/thumbnail@4.0.0) \*feat(opacitycheckerboard)!: new component (#1916)([24e9f06](https://github.com/adobe/spectrum-css/commit/24e9f06)), closes[#1916](https://github.com/adobe/spectrum-css/issues/1916) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * creates new Opacity Checkerboard component and uses it within Swatch, Color Handle, Thumbnail, Color Slider. @@ -490,8 +474,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.17 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.16...@spectrum-css/thumbnail@3.0.17) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.16...@spectrum-css/thumbnail@3.0.17) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -499,8 +482,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.16 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.15...@spectrum-css/thumbnail@3.0.16) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.15...@spectrum-css/thumbnail@3.0.16) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -508,8 +490,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.15 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.14...@spectrum-css/thumbnail@3.0.15) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.14...@spectrum-css/thumbnail@3.0.15) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -517,8 +498,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.14 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.13...@spectrum-css/thumbnail@3.0.14) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.13...@spectrum-css/thumbnail@3.0.14) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -526,8 +506,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.13 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.12...@spectrum-css/thumbnail@3.0.13) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.12...@spectrum-css/thumbnail@3.0.13) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -535,8 +514,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.12 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.11...@spectrum-css/thumbnail@3.0.12) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.11...@spectrum-css/thumbnail@3.0.12) ### 🐛 Bug fixes @@ -546,8 +524,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.11 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.10...@spectrum-css/thumbnail@3.0.11) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.10...@spectrum-css/thumbnail@3.0.11) ### 🐛 Bug fixes @@ -557,8 +534,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.10 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.9...@spectrum-css/thumbnail@3.0.10) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.9...@spectrum-css/thumbnail@3.0.10) **Note:** Version bump only for package @spectrum-css/thumbnail @@ -566,8 +542,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.9 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.8...@spectrum-css/thumbnail@3.0.9) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/thumbnail@3.0.8...@spectrum-css/thumbnail@3.0.9) **Note:** Version bump only for package @spectrum-css/thumbnail diff --git a/components/thumbnail/dist/metadata.json b/components/thumbnail/dist/metadata.json index 067259ff6a1..2a5fa051ef2 100644 --- a/components/thumbnail/dist/metadata.json +++ b/components/thumbnail/dist/metadata.json @@ -49,10 +49,10 @@ "--spectrum-thumbnail-border-color-selected", "--spectrum-thumbnail-border-opacity", "--spectrum-thumbnail-border-radius", - "--spectrum-thumbnail-border-radius-default", "--spectrum-thumbnail-border-width", "--spectrum-thumbnail-border-width-selected", "--spectrum-thumbnail-color-opacity-disabled", + "--spectrum-thumbnail-corner-radius", "--spectrum-thumbnail-focus-indicator-color", "--spectrum-thumbnail-focus-indicator-gap", "--spectrum-thumbnail-focus-indicator-thickness", @@ -60,6 +60,7 @@ "--spectrum-thumbnail-layer-border-color-outer", "--spectrum-thumbnail-layer-border-width-inner", "--spectrum-thumbnail-layer-border-width-outer", + "--spectrum-thumbnail-opacity-checkerboard-square-size", "--spectrum-thumbnail-opacity-disabled", "--spectrum-thumbnail-size", "--spectrum-thumbnail-size-100", @@ -73,8 +74,7 @@ "--spectrum-thumbnail-size-700", "--spectrum-thumbnail-size-75", "--spectrum-thumbnail-size-800", - "--spectrum-thumbnail-size-900", - "--spectrum-thumbnail-sized-size" + "--spectrum-thumbnail-size-900" ], "global": [ "--spectrum-accent-color-800", @@ -88,8 +88,7 @@ "--spectrum-gray-800-rgb", "--spectrum-white" ], - "system-theme": ["--system-thumbnail-border-radius"], - "passthroughs": [], + "passthroughs": ["--mod-opacity-checkerboard-size"], "high-contrast": [ "--highcontrast-thumbnail-border-color", "--highcontrast-thumbnail-border-color-selected", diff --git a/components/thumbnail/index.css b/components/thumbnail/index.css index 62e44665518..3f2ab89f941 100644 --- a/components/thumbnail/index.css +++ b/components/thumbnail/index.css @@ -11,76 +11,81 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; +.spectrum-Thumbnail { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-500); -.spectrum-Thumbnail, -.spectrum-Thumbnail--size500 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-500); + --spectrum-thumbnail-border-radius: var(--spectrum-thumbnail-corner-radius); + --spectrum-thumbnail-border-width: var(--spectrum-border-width-100); + + /* @todo Refactor with --spectrum-thumbnail-border-color once gray rgb token is no longer necessary to workaround nested rgb color token value using rgba(). */ + --spectrum-thumbnail-border-color: rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-opacity)); + --spectrum-thumbnail-layer-border-width-inner: var(--spectrum-border-width-400); + --spectrum-thumbnail-layer-border-color-inner: var(--spectrum-white); + --spectrum-thumbnail-layer-border-width-outer: var(--spectrum-border-width-100); + --spectrum-thumbnail-layer-border-color-outer: var(--spectrum-gray-500); + + --spectrum-thumbnail-border-width-selected: var(--spectrum-border-width-200); + --spectrum-thumbnail-border-color-selected: var(--spectrum-accent-color-800); + + --spectrum-thumbnail-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-thumbnail-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-thumbnail-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-thumbnail-color-opacity-disabled: var(--spectrum-thumbnail-opacity-disabled); + + /* @passthrough -- custom sizing for opacity checkerboard */ + --mod-opacity-checkerboard-size: var(--spectrum-thumbnail-opacity-checkerboard-square-size); } .spectrum-Thumbnail--size50 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-50); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-50); } .spectrum-Thumbnail--size75 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-75); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-75); } .spectrum-Thumbnail--size100 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-100); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-100); } .spectrum-Thumbnail--size200 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-200); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-200); } .spectrum-Thumbnail--size300 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-300); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-300); } .spectrum-Thumbnail--size400 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-400); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-400); +} + +.spectrum-Thumbnail--size500 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-500); } .spectrum-Thumbnail--size600 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-600); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-600); } .spectrum-Thumbnail--size700 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-700); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-700); } .spectrum-Thumbnail--size800 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-800); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-800); } .spectrum-Thumbnail--size900 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-900); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-900); } .spectrum-Thumbnail--size1000 { - --spectrum-thumbnail-sized-size: var(--spectrum-thumbnail-size-1000); + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-1000); } .spectrum-Thumbnail { - --spectrum-thumbnail-size: var(--mod-thumbnail-size, var(--spectrum-thumbnail-sized-size)); - - /* @todo Refactor with --spectrum-thumbnail-border-color once gray rgb token is no longer necessary to workaround nested rgb color token value using rgba(). */ - --spectrum-thumbnail-border-color: var(--highcontrast-thumbnail-border-color, var(--mod-thumbnail-border-color, rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-opacity)))); - --spectrum-thumbnail-border-color-selected: var(--highcontrast-thumbnail-border-color-selected, var(--mod-thumbnail-border-color-selected, var(--spectrum-accent-color-800))); - --spectrum-thumbnail-border-width: var(--mod-thumbnail-border-width, var(--spectrum-border-width-100)); - --spectrum-thumbnail-border-width-selected: var(--mod-thumbnail-border-width-selected, var(--spectrum-border-width-200)); - --spectrum-thumbnail-border-radius-default: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); - - --spectrum-thumbnail-layer-border-color-inner: var(--highcontrast-thumbnail-layer-border-color-inner, var(--mod-thumbnail-layer-border-color-inner, var(--spectrum-white))); - --spectrum-thumbnail-layer-border-color-outer: var(--highcontrast-thumbnail-layer-border-color-outer, var(--mod-thumbnail-layer-border-color-outer, var(--spectrum-gray-500))); - --spectrum-thumbnail-layer-border-width-inner: var(--mod-thumbnail-layer-border-width-inner, var(--spectrum-border-width-400)); - --spectrum-thumbnail-layer-border-width-outer: var(--mod-thumbnail-layer-border-width-outer, var(--spectrum-border-width-100)); - - --spectrum-thumbnail-focus-indicator-thickness: var(--mod-thumbnail-focus-indicator-thickness, var(--spectrum-focus-indicator-thickness)); - --spectrum-thumbnail-focus-indicator-gap: var(--mod-thumbnail-focus-indicator-gap, var(--spectrum-focus-indicator-gap)); - --spectrum-thumbnail-focus-indicator-color: var(--highcontrast-thumbnail-focus-indicator-color, var(--mod-thumbnail-focus-indicator-color, var(--spectrum-focus-indicator-color))); - --spectrum-thumbnail-color-opacity-disabled: var(--spectrum-thumbnail-opacity-disabled); position: relative; @@ -88,11 +93,13 @@ padding: 0; display: block; - inline-size: var(--spectrum-thumbnail-size); - block-size: var(--spectrum-thumbnail-size); + inline-size: var(--mod-thumbnail-size, var(--spectrum-thumbnail-size)); + block-size: var(--mod-thumbnail-size, var(--spectrum-thumbnail-size)); - border-radius: var(--spectrum-thumbnail-border-radius-default); + border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); + /* Friends should align to the top of the tabs */ + vertical-align: top; overflow: hidden; z-index: 0; @@ -102,8 +109,8 @@ position: absolute; inline-size: 100%; block-size: 100%; - border-radius: var(--spectrum-thumbnail-border-radius-default); - box-shadow: inset 0 0 0 var(--spectrum-thumbnail-border-width) var(--spectrum-thumbnail-border-color); + border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); + box-shadow: inset 0 0 0 var(--mod-thumbnail-border-width, var(--spectrum-thumbnail-border-width)) var(--highcontrast-thumbnail-border-color, var(--mod-thumbnail-border-color, var(--spectrum-thumbnail-border-color))); } &.is-disabled { @@ -116,27 +123,24 @@ &::after { content: ""; border-style: solid; - border-width: var(--spectrum-thumbnail-focus-indicator-thickness); - border-color: var(--spectrum-thumbnail-focus-indicator-color); - border-radius: var(--spectrum-thumbnail-border-radius-default); + border-width: var(--mod-thumbnail-focus-indicator-thickness, var(--spectrum-thumbnail-focus-indicator-thickness)); + border-color: var(--highcontrast-thumbnail-focus-indicator-color, var(--mod-thumbnail-focus-indicator-color, var(--spectrum-thumbnail-focus-indicator-color))); + border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); position: absolute; - inset-inline-start: calc((var(--spectrum-thumbnail-focus-indicator-gap) + var(--spectrum-thumbnail-focus-indicator-thickness)) * -1); - inset-inline-end: calc((var(--spectrum-thumbnail-focus-indicator-gap) + var(--spectrum-thumbnail-focus-indicator-thickness)) * -1); - inset-block-end: calc((var(--spectrum-thumbnail-focus-indicator-gap) + var(--spectrum-thumbnail-focus-indicator-thickness)) * -1); - inset-block-start: calc((var(--spectrum-thumbnail-focus-indicator-gap) + var(--spectrum-thumbnail-focus-indicator-thickness)) * -1); + inset: calc((var(--mod-thumbnail-focus-indicator-gap, var(--spectrum-thumbnail-focus-indicator-gap)) + var(--mod-thumbnail-focus-indicator-thickness, var(--spectrum-thumbnail-focus-indicator-thickness))) * -1); } .spectrum-Thumbnail-image-wrapper { overflow: hidden; - border-radius: var(--spectrum-thumbnail-border-radius-default); + border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); } } } .spectrum-Thumbnail-layer { border-style: solid; - border-width: var(--spectrum-thumbnail-layer-border-width-outer); - border-color: var(--spectrum-thumbnail-layer-border-color-outer); + border-width: var(--mod-thumbnail-layer-border-width-outer, var(--spectrum-thumbnail-layer-border-width-outer)); + border-color: var(--highcontrast-thumbnail-layer-border-color-outer, var(--mod-thumbnail-layer-border-color-outer, var(--spectrum-thumbnail-layer-border-color-outer))); box-sizing: border-box; display: flex; @@ -149,9 +153,9 @@ &.is-selected { outline-style: solid; - outline-color: var(--spectrum-thumbnail-border-color-selected); - outline-width: var(--spectrum-thumbnail-border-width-selected); - outline-offset: calc(var(--spectrum-thumbnail-border-width-selected) - var(--spectrum-thumbnail-layer-border-width-inner)); + outline-color: var(--highcontrast-thumbnail-border-color-selected, var(--mod-thumbnail-border-color-selected, var(--spectrum-thumbnail-border-color-selected))); + outline-width: var(--mod-thumbnail-border-width-selected, var(--spectrum-thumbnail-border-width-selected)); + outline-offset: calc(var(--mod-thumbnail-border-width-selected, var(--spectrum-thumbnail-border-width-selected)) - var(--mod-thumbnail-layer-border-width-inner, var(--spectrum-thumbnail-layer-border-width-inner))); } } @@ -160,11 +164,11 @@ align-items: center; justify-content: center; - inline-size: calc(var(--spectrum-thumbnail-size) - var(--spectrum-thumbnail-layer-border-width-inner) * 2); - block-size: calc(var(--spectrum-thumbnail-size) - var(--spectrum-thumbnail-layer-border-width-inner) * 2); + inline-size: calc(var(--spectrum-thumbnail-size) - ((var(--mod-thumbnail-layer-border-width-inner, var(--spectrum-thumbnail-layer-border-width-inner)))) * 2); + block-size: calc(var(--spectrum-thumbnail-size) - ((var(--mod-thumbnail-layer-border-width-inner, var(--spectrum-thumbnail-layer-border-width-inner)))) * 2); outline-style: solid; - outline-color: var(--spectrum-thumbnail-layer-border-color-inner); - outline-width: calc(var(--spectrum-thumbnail-layer-border-width-inner) - var(--spectrum-thumbnail-layer-border-width-outer)); + outline-color: var(--highcontrast-thumbnail-layer-border-color-inner, var(--mod-thumbnail-layer-border-color-inner, var(--spectrum-thumbnail-layer-border-color-inner))); + outline-width: calc(var(--mod-thumbnail-layer-border-width-inner, var(--spectrum-thumbnail-layer-border-width-inner)) - var(--mod-thumbnail-layer-border-width-outer, var(--spectrum-thumbnail-layer-border-width-outer))); } .spectrum-Thumbnail-image-wrapper { @@ -177,8 +181,8 @@ .spectrum-Thumbnail-image { position: relative; - max-inline-size: 100%; max-block-size: 100%; + max-inline-size: 100%; z-index: 1; } @@ -202,7 +206,7 @@ inline-size: 100%; background-size: cover; background-position: center center; - border-radius: var(--spectrum-thumbnail-border-radius-default); + border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); } /* Windows High Contrast Mode */ diff --git a/components/thumbnail/package.json b/components/thumbnail/package.json index 9045bda0342..79f1b2c0e73 100644 --- a/components/thumbnail/package.json +++ b/components/thumbnail/package.json @@ -26,15 +26,11 @@ "main": "dist/index.css", "peerDependencies": { "@spectrum-css/opacitycheckerboard": ">=2", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/opacitycheckerboard": "4.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/thumbnail/stories/template.js b/components/thumbnail/stories/template.js index aa476ea722b..2b40d8e1015 100644 --- a/components/thumbnail/stories/template.js +++ b/components/thumbnail/stories/template.js @@ -7,9 +7,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Thumbnail", diff --git a/components/thumbnail/stories/thumbnail.stories.js b/components/thumbnail/stories/thumbnail.stories.js index cf32fab1dbb..aea3b4ece7d 100644 --- a/components/thumbnail/stories/thumbnail.stories.js +++ b/components/thumbnail/stories/thumbnail.stories.js @@ -95,6 +95,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; // @todo combine variants into one snapshot diff --git a/components/thumbnail/themes/express.css b/components/thumbnail/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/thumbnail/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/thumbnail/themes/spectrum-two.css b/components/thumbnail/themes/spectrum-two.css deleted file mode 100644 index 4cd647afd85..00000000000 --- a/components/thumbnail/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Thumbnail { - --spectrum-thumbnail-border-radius: 2px; - } -} diff --git a/components/thumbnail/themes/spectrum.css b/components/thumbnail/themes/spectrum.css deleted file mode 100644 index b1abf324653..00000000000 --- a/components/thumbnail/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Thumbnail { - --spectrum-thumbnail-border-radius: var(--spectrum-corner-radius-75); - } -} diff --git a/components/toast/CHANGELOG.md b/components/toast/CHANGELOG.md index b80dcf984e5..2a85d729b40 100644 --- a/components/toast/CHANGELOG.md +++ b/components/toast/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 10.3.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`7582c1f`](https://github.com/adobe/spectrum-css/commit/7582c1f5c73de5ecf962bfad0294f162d7035751), [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/button@14.0.0-next.8 + - @spectrum-css/tokens@14.0.0-next.12 + ## 11.0.1 ### Patch Changes @@ -162,16 +172,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 10.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.25...@spectrum-css/toast@10.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.25...@spectrum-css/toast@10.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -179,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.25 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.24...@spectrum-css/toast@9.1.25) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.24...@spectrum-css/toast@9.1.25) **Note:** Version bump only for package @spectrum-css/toast @@ -188,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.24 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.23...@spectrum-css/toast@9.1.24) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.23...@spectrum-css/toast@9.1.24) **Note:** Version bump only for package @spectrum-css/toast @@ -197,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.23 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.22...@spectrum-css/toast@9.1.23) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.22...@spectrum-css/toast@9.1.23) **Note:** Version bump only for package @spectrum-css/toast @@ -206,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.22 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.21...@spectrum-css/toast@9.1.22) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.21...@spectrum-css/toast@9.1.22) **Note:** Version bump only for package @spectrum-css/toast @@ -215,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.21 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/toast @@ -224,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.20 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.19...@spectrum-css/toast@9.1.20) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.19...@spectrum-css/toast@9.1.20) **Note:** Version bump only for package @spectrum-css/toast @@ -233,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.19 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.18...@spectrum-css/toast@9.1.19) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.18...@spectrum-css/toast@9.1.19) **Note:** Version bump only for package @spectrum-css/toast @@ -242,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.18 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.17...@spectrum-css/toast@9.1.18) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.17...@spectrum-css/toast@9.1.18) **Note:** Version bump only for package @spectrum-css/toast @@ -251,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.17 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.15...@spectrum-css/toast@9.1.17) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.15...@spectrum-css/toast@9.1.17) **Note:** Version bump only for package @spectrum-css/toast @@ -260,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.16 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.15...@spectrum-css/toast@9.1.16) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.15...@spectrum-css/toast@9.1.16) **Note:** Version bump only for package @spectrum-css/toast @@ -269,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.15 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.14...@spectrum-css/toast@9.1.15) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.14...@spectrum-css/toast@9.1.15) **Note:** Version bump only for package @spectrum-css/toast @@ -278,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.14 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.13...@spectrum-css/toast@9.1.14) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.13...@spectrum-css/toast@9.1.14) **Note:** Version bump only for package @spectrum-css/toast @@ -287,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.13 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.12...@spectrum-css/toast@9.1.13) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.12...@spectrum-css/toast@9.1.13) **Note:** Version bump only for package @spectrum-css/toast @@ -296,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.12 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.11...@spectrum-css/toast@9.1.12) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.11...@spectrum-css/toast@9.1.12) **Note:** Version bump only for package @spectrum-css/toast @@ -305,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.11 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.10...@spectrum-css/toast@9.1.11) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.10...@spectrum-css/toast@9.1.11) **Note:** Version bump only for package @spectrum-css/toast @@ -314,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.10 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.9...@spectrum-css/toast@9.1.10) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.9...@spectrum-css/toast@9.1.10) **Note:** Version bump only for package @spectrum-css/toast @@ -323,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.9 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.8...@spectrum-css/toast@9.1.9) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.8...@spectrum-css/toast@9.1.9) **Note:** Version bump only for package @spectrum-css/toast @@ -332,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.8 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.7...@spectrum-css/toast@9.1.8) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.7...@spectrum-css/toast@9.1.8) **Note:** Version bump only for package @spectrum-css/toast @@ -341,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.7 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.6...@spectrum-css/toast@9.1.7) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.6...@spectrum-css/toast@9.1.7) **Note:** Version bump only for package @spectrum-css/toast @@ -350,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.6 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.5...@spectrum-css/toast@9.1.6) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.5...@spectrum-css/toast@9.1.6) **Note:** Version bump only for package @spectrum-css/toast @@ -359,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.5 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.4...@spectrum-css/toast@9.1.5) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.4...@spectrum-css/toast@9.1.5) ### 🔙 Reverts @@ -370,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.4 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.3...@spectrum-css/toast@9.1.4) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.3...@spectrum-css/toast@9.1.4) **Note:** Version bump only for package @spectrum-css/toast @@ -379,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.3 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.1...@spectrum-css/toast@9.1.3) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.1...@spectrum-css/toast@9.1.3) **Note:** Version bump only for package @spectrum-css/toast @@ -388,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.2 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.1...@spectrum-css/toast@9.1.2) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.1...@spectrum-css/toast@9.1.2) **Note:** Version bump only for package @spectrum-css/toast @@ -397,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.1 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.0...@spectrum-css/toast@9.1.1) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.1.0...@spectrum-css/toast@9.1.1) **Note:** Version bump only for package @spectrum-css/toast @@ -406,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.0 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.45...@spectrum-css/toast@9.1.0) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.45...@spectrum-css/toast@9.1.0) ### ✨ Features @@ -417,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.45 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.44...@spectrum-css/toast@9.0.45) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.44...@spectrum-css/toast@9.0.45) **Note:** Version bump only for package @spectrum-css/toast @@ -426,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.44 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.43...@spectrum-css/toast@9.0.44) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.43...@spectrum-css/toast@9.0.44) **Note:** Version bump only for package @spectrum-css/toast @@ -435,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.43 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.42...@spectrum-css/toast@9.0.43) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.42...@spectrum-css/toast@9.0.43) **Note:** Version bump only for package @spectrum-css/toast @@ -444,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.41...@spectrum-css/toast@9.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.41...@spectrum-css/toast@9.0.42) **Note:** Version bump only for package @spectrum-css/toast @@ -453,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.40...@spectrum-css/toast@9.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.40...@spectrum-css/toast@9.0.41) **Note:** Version bump only for package @spectrum-css/toast @@ -462,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.39...@spectrum-css/toast@9.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.39...@spectrum-css/toast@9.0.40) **Note:** Version bump only for package @spectrum-css/toast @@ -471,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.38...@spectrum-css/toast@9.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.38...@spectrum-css/toast@9.0.39) **Note:** Version bump only for package @spectrum-css/toast @@ -480,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.37...@spectrum-css/toast@9.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.37...@spectrum-css/toast@9.0.38) **Note:** Version bump only for package @spectrum-css/toast @@ -489,8 +462,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.36...@spectrum-css/toast@9.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.36...@spectrum-css/toast@9.0.37) **Note:** Version bump only for package @spectrum-css/toast @@ -498,8 +470,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.35...@spectrum-css/toast@9.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.35...@spectrum-css/toast@9.0.36) ### 🐛 Bug fixes @@ -509,8 +480,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.34...@spectrum-css/toast@9.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.34...@spectrum-css/toast@9.0.35) **Note:** Version bump only for package @spectrum-css/toast @@ -518,8 +488,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.33...@spectrum-css/toast@9.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/toast@9.0.33...@spectrum-css/toast@9.0.34) **Note:** Version bump only for package @spectrum-css/toast diff --git a/components/toast/dist/metadata.json b/components/toast/dist/metadata.json index 8721a98ef8a..853a11f961a 100644 --- a/components/toast/dist/metadata.json +++ b/components/toast/dist/metadata.json @@ -99,10 +99,6 @@ "--spectrum-transparent-white-400", "--spectrum-white" ], - "system-theme": [ - "--system-toast-background-color-default", - "--system-toast-divider-color" - ], "passthroughs": [], "high-contrast": ["--highcontrast-toast-border-color"] } diff --git a/components/toast/index.css b/components/toast/index.css index 8b3793de9af..408317a825f 100644 --- a/components/toast/index.css +++ b/components/toast/index.css @@ -11,9 +11,10 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Toast { + --spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); + --spectrum-toast-divider-color: var(--spectrum-transparent-white-400); + /* Hardcoded variables */ --spectrum-toast-font-weight: var(--spectrum-regular-font-weight); @@ -50,9 +51,11 @@ --spectrum-toast-spacing-bottom-edge-to-text: var(--spectrum-toast-bottom-to-text); /* Color */ + --spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); --spectrum-toast-negative-background-color-default: var(--spectrum-negative-background-color-default); --spectrum-toast-positive-background-color-default: var(--spectrum-positive-background-color-default); --spectrum-toast-informative-background-color-default: var(--spectrum-informative-background-color-default); + --spectrum-toast-divider-color: var(--spectrum-transparent-white-400); --spectrum-toast-text-and-icon-color: var(--spectrum-white); } diff --git a/components/toast/package.json b/components/toast/package.json index de0ea50911d..ff5cfaa77b7 100644 --- a/components/toast/package.json +++ b/components/toast/package.json @@ -25,20 +25,15 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", - "@spectrum-css/closebutton": ">=5", - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14", + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { "@spectrum-css/button": "14.0.1", "@spectrum-css/closebutton": "6.0.1", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/toast/stories/template.js b/components/toast/stories/template.js index 89d459dbf0a..6bf43215408 100644 --- a/components/toast/stories/template.js +++ b/components/toast/stories/template.js @@ -9,9 +9,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Toast", diff --git a/components/toast/themes/express.css b/components/toast/themes/express.css deleted file mode 100644 index 2de113b03ed..00000000000 --- a/components/toast/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Toast { - --spectrum-toast-background-color-default: var(--spectrum-neutral-background-color-default); - } -} diff --git a/components/toast/themes/spectrum-two.css b/components/toast/themes/spectrum-two.css deleted file mode 100644 index 1097d457299..00000000000 --- a/components/toast/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Toast { - --spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --spectrum-toast-divider-color: var(--spectrum-transparent-white-400); - } -} diff --git a/components/toast/themes/spectrum.css b/components/toast/themes/spectrum.css deleted file mode 100644 index 3f6e05c5d78..00000000000 --- a/components/toast/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Toast { - --spectrum-toast-divider-color: var(--spectrum-transparent-white-300); - } -} diff --git a/components/tooltip/CHANGELOG.md b/components/tooltip/CHANGELOG.md index 57b3ab78a41..f7a7a022ea5 100644 --- a/components/tooltip/CHANGELOG.md +++ b/components/tooltip/CHANGELOG.md @@ -1,5 +1,29 @@ # Change Log +## 7.0.0-next.0 + +### Major Changes + +- [#2743](https://github.com/adobe/spectrum-css/pull/2743) [`5a0ce6e`](https://github.com/adobe/spectrum-css/commit/5a0ce6e5c1908679bd87a63969b99a105faea265) Thanks [@mdt2](https://github.com/mdt2)! - feat(tooltip): Spectrum 2 migration + + This migration includes updated colors, rounding, a bigger tip, and the removal of variants (only neutral is available in Spectrum 2). As a result of the deprecation of variants, icons have also been removed. + + The redesign of the tip, specifically the rounding, required a reworking of how we use clip-path and transform. + + Some custom property mods have been removed: + + - `--mod-tooltip-background-color-informative` + - `--mod-tooltip-background-color-negative` + - `--mod-tooltip-background-color-positive` + - `--mod-tooltip-icon-spacing-block-start` + - `--mod-tooltip-icon-spacing-inline-end` + - `--mod-tooltip-icon-spacing-inline-start` + - `--mod-tooltip-icon-width` + + And one mod has been added: + + - `--mod-tooltip-tip-corner-radius` + ## 7.0.1 ### Patch Changes @@ -144,16 +168,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.5...@spectrum-css/tooltip@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.5...@spectrum-css/tooltip@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -161,8 +182,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.4...@spectrum-css/tooltip@5.3.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.4...@spectrum-css/tooltip@5.3.5) **Note:** Version bump only for package @spectrum-css/tooltip @@ -170,8 +190,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.3...@spectrum-css/tooltip@5.3.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.3...@spectrum-css/tooltip@5.3.4) **Note:** Version bump only for package @spectrum-css/tooltip @@ -179,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.2...@spectrum-css/tooltip@5.3.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.2...@spectrum-css/tooltip@5.3.3) **Note:** Version bump only for package @spectrum-css/tooltip @@ -188,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.1...@spectrum-css/tooltip@5.3.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.3.1...@spectrum-css/tooltip@5.3.2) **Note:** Version bump only for package @spectrum-css/tooltip @@ -197,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/tooltip @@ -206,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.3.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.2.0...@spectrum-css/tooltip@5.3.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.2.0...@spectrum-css/tooltip@5.3.0) **Note:** Version bump only for package @spectrum-css/tooltip @@ -215,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.22...@spectrum-css/tooltip@5.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.22...@spectrum-css/tooltip@5.2.0) ### ✨ Features @@ -227,8 +241,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.22 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.21...@spectrum-css/tooltip@5.1.22) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.21...@spectrum-css/tooltip@5.1.22) **Note:** Version bump only for package @spectrum-css/tooltip @@ -236,8 +249,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.21 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.20...@spectrum-css/tooltip@5.1.21) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.20...@spectrum-css/tooltip@5.1.21) **Note:** Version bump only for package @spectrum-css/tooltip @@ -245,8 +257,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.20 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.19...@spectrum-css/tooltip@5.1.20) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.19...@spectrum-css/tooltip@5.1.20) **Note:** Version bump only for package @spectrum-css/tooltip @@ -254,8 +265,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.19 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.17...@spectrum-css/tooltip@5.1.19) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.17...@spectrum-css/tooltip@5.1.19) **Note:** Version bump only for package @spectrum-css/tooltip @@ -263,8 +273,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.18 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.17...@spectrum-css/tooltip@5.1.18) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.17...@spectrum-css/tooltip@5.1.18) **Note:** Version bump only for package @spectrum-css/tooltip @@ -272,8 +281,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.17 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.16...@spectrum-css/tooltip@5.1.17) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.16...@spectrum-css/tooltip@5.1.17) ### 🐛 Bug fixes @@ -284,8 +292,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.16 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.15...@spectrum-css/tooltip@5.1.16) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.15...@spectrum-css/tooltip@5.1.16) **Note:** Version bump only for package @spectrum-css/tooltip @@ -293,8 +300,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.15 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.14...@spectrum-css/tooltip@5.1.15) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.14...@spectrum-css/tooltip@5.1.15) **Note:** Version bump only for package @spectrum-css/tooltip @@ -302,8 +308,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.14 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.13...@spectrum-css/tooltip@5.1.14) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.13...@spectrum-css/tooltip@5.1.14) **Note:** Version bump only for package @spectrum-css/tooltip @@ -311,8 +316,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.13 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.12...@spectrum-css/tooltip@5.1.13) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.12...@spectrum-css/tooltip@5.1.13) **Note:** Version bump only for package @spectrum-css/tooltip @@ -320,8 +324,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.12 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.11...@spectrum-css/tooltip@5.1.12) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.11...@spectrum-css/tooltip@5.1.12) **Note:** Version bump only for package @spectrum-css/tooltip @@ -329,8 +332,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.11 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.10...@spectrum-css/tooltip@5.1.11) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.10...@spectrum-css/tooltip@5.1.11) **Note:** Version bump only for package @spectrum-css/tooltip @@ -338,8 +340,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.9...@spectrum-css/tooltip@5.1.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.9...@spectrum-css/tooltip@5.1.10) **Note:** Version bump only for package @spectrum-css/tooltip @@ -347,8 +348,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.8...@spectrum-css/tooltip@5.1.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.8...@spectrum-css/tooltip@5.1.9) **Note:** Version bump only for package @spectrum-css/tooltip @@ -356,8 +356,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.8 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.7...@spectrum-css/tooltip@5.1.8) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.7...@spectrum-css/tooltip@5.1.8) ### 🔙 Reverts @@ -367,8 +366,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.6...@spectrum-css/tooltip@5.1.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.6...@spectrum-css/tooltip@5.1.7) **Note:** Version bump only for package @spectrum-css/tooltip @@ -376,8 +374,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.4...@spectrum-css/tooltip@5.1.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.4...@spectrum-css/tooltip@5.1.6) **Note:** Version bump only for package @spectrum-css/tooltip @@ -385,8 +382,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.5 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.4...@spectrum-css/tooltip@5.1.5) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.4...@spectrum-css/tooltip@5.1.5) **Note:** Version bump only for package @spectrum-css/tooltip @@ -394,8 +390,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.3...@spectrum-css/tooltip@5.1.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.3...@spectrum-css/tooltip@5.1.4) **Note:** Version bump only for package @spectrum-css/tooltip @@ -403,8 +398,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.3 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.2...@spectrum-css/tooltip@5.1.3) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.2...@spectrum-css/tooltip@5.1.3) **Note:** Version bump only for package @spectrum-css/tooltip @@ -412,8 +406,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.2 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.1...@spectrum-css/tooltip@5.1.2) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.1...@spectrum-css/tooltip@5.1.2) **Note:** Version bump only for package @spectrum-css/tooltip @@ -421,8 +414,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.0...@spectrum-css/tooltip@5.1.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.1.0...@spectrum-css/tooltip@5.1.1) **Note:** Version bump only for package @spectrum-css/tooltip @@ -430,8 +422,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.1.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.42...@spectrum-css/tooltip@5.1.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.42...@spectrum-css/tooltip@5.1.0) ### ✨ Features @@ -442,8 +433,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.42 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.41...@spectrum-css/tooltip@5.0.42) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.41...@spectrum-css/tooltip@5.0.42) **Note:** Version bump only for package @spectrum-css/tooltip @@ -451,8 +441,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.41 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.40...@spectrum-css/tooltip@5.0.41) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.40...@spectrum-css/tooltip@5.0.41) **Note:** Version bump only for package @spectrum-css/tooltip @@ -460,8 +449,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.40 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.39...@spectrum-css/tooltip@5.0.40) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.39...@spectrum-css/tooltip@5.0.40) **Note:** Version bump only for package @spectrum-css/tooltip @@ -469,8 +457,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.39 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.38...@spectrum-css/tooltip@5.0.39) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.38...@spectrum-css/tooltip@5.0.39) **Note:** Version bump only for package @spectrum-css/tooltip @@ -478,8 +465,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.38 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.37...@spectrum-css/tooltip@5.0.38) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.37...@spectrum-css/tooltip@5.0.38) **Note:** Version bump only for package @spectrum-css/tooltip @@ -487,8 +473,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.37 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.36...@spectrum-css/tooltip@5.0.37) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.36...@spectrum-css/tooltip@5.0.37) **Note:** Version bump only for package @spectrum-css/tooltip @@ -496,8 +481,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.36 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.35...@spectrum-css/tooltip@5.0.36) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.35...@spectrum-css/tooltip@5.0.36) ### 🐛 Bug fixes @@ -507,8 +491,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.35 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.34...@spectrum-css/tooltip@5.0.35) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.34...@spectrum-css/tooltip@5.0.35) **Note:** Version bump only for package @spectrum-css/tooltip @@ -516,8 +499,7 @@ _migrate build packages to postcss v8 ([#2460](https://github.com/adobe/spectrum ## 5.0.34 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.33...@spectrum-css/tooltip@5.0.34) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tooltip@5.0.33...@spectrum-css/tooltip@5.0.34) **Note:** Version bump only for package @spectrum-css/tooltip diff --git a/components/tooltip/dist/metadata.json b/components/tooltip/dist/metadata.json index 7f6d6d0b94d..008df5e0cbe 100644 --- a/components/tooltip/dist/metadata.json +++ b/components/tooltip/dist/metadata.json @@ -35,8 +35,6 @@ ".spectrum-Tooltip--end-top.is-open:dir(rtl)", ".spectrum-Tooltip--end.is-open", ".spectrum-Tooltip--end.is-open:dir(rtl)", - ".spectrum-Tooltip--info", - ".spectrum-Tooltip--info .spectrum-Tooltip-tip", ".spectrum-Tooltip--left", ".spectrum-Tooltip--left .spectrum-Tooltip-tip", ".spectrum-Tooltip--left .spectrum-Tooltip-tip:dir(rtl)", @@ -49,10 +47,6 @@ ".spectrum-Tooltip--left-top .spectrum-Tooltip-tip:dir(rtl)", ".spectrum-Tooltip--left-top.is-open", ".spectrum-Tooltip--left.is-open", - ".spectrum-Tooltip--negative", - ".spectrum-Tooltip--negative .spectrum-Tooltip-tip", - ".spectrum-Tooltip--positive", - ".spectrum-Tooltip--positive .spectrum-Tooltip-tip", ".spectrum-Tooltip--right", ".spectrum-Tooltip--right .spectrum-Tooltip-tip", ".spectrum-Tooltip--right .spectrum-Tooltip-tip:dir(rtl)", @@ -99,7 +93,6 @@ ".spectrum-Tooltip--top.is-open", ".spectrum-Tooltip-label", ".spectrum-Tooltip-tip", - ".spectrum-Tooltip-typeIcon", ".spectrum-Tooltip.is-open", ".spectrum-Tooltip:lang(ja)", ".spectrum-Tooltip:lang(ko)", @@ -309,20 +302,12 @@ "--mod-overlay-animation-duration-opened", "--mod-tooltip-animation-distance", "--mod-tooltip-background-color-default", - "--mod-tooltip-background-color-informative", - "--mod-tooltip-background-color-negative", - "--mod-tooltip-background-color-positive", "--mod-tooltip-border-radius", "--mod-tooltip-cjk-line-height", "--mod-tooltip-content-color", "--mod-tooltip-font-size", "--mod-tooltip-font-weight", "--mod-tooltip-height", - "--mod-tooltip-icon-height", - "--mod-tooltip-icon-spacing-block-start", - "--mod-tooltip-icon-spacing-inline-end", - "--mod-tooltip-icon-spacing-inline-start", - "--mod-tooltip-icon-width", "--mod-tooltip-line-height", "--mod-tooltip-margin", "--mod-tooltip-max-inline-size", @@ -332,6 +317,7 @@ "--mod-tooltip-spacing-inline", "--mod-tooltip-tip-antialiasing-inset", "--mod-tooltip-tip-block-size", + "--mod-tooltip-tip-corner-radius", "--mod-tooltip-tip-height-percentage", "--mod-tooltip-tip-square-size" ], @@ -340,20 +326,12 @@ "--spectrum-tooltip-animation-duration", "--spectrum-tooltip-backgound-color-default-neutral", "--spectrum-tooltip-background-color-default", - "--spectrum-tooltip-background-color-informative", - "--spectrum-tooltip-background-color-negative", - "--spectrum-tooltip-background-color-positive", "--spectrum-tooltip-border-radius", "--spectrum-tooltip-cjk-line-height", "--spectrum-tooltip-content-color", "--spectrum-tooltip-font-size", "--spectrum-tooltip-font-weight", "--spectrum-tooltip-height", - "--spectrum-tooltip-icon-height", - "--spectrum-tooltip-icon-spacing-block-start", - "--spectrum-tooltip-icon-spacing-inline-end", - "--spectrum-tooltip-icon-spacing-inline-start", - "--spectrum-tooltip-icon-width", "--spectrum-tooltip-line-height", "--spectrum-tooltip-margin", "--spectrum-tooltip-max-inline-size", @@ -364,11 +342,10 @@ "--spectrum-tooltip-spacing-inline", "--spectrum-tooltip-tip-antialiasing-inset", "--spectrum-tooltip-tip-block-size", + "--spectrum-tooltip-tip-corner-radius", "--spectrum-tooltip-tip-height", "--spectrum-tooltip-tip-height-percentage", - "--spectrum-tooltip-tip-inline-size", - "--spectrum-tooltip-tip-square-size", - "--spectrum-tooltip-tip-width" + "--spectrum-tooltip-tip-square-size" ], "global": [ "--spectrum-animation-duration-0", @@ -378,25 +355,17 @@ "--spectrum-component-edge-to-text-75", "--spectrum-component-height-75", "--spectrum-component-top-to-text-75", - "--spectrum-component-top-to-workflow-icon-75", - "--spectrum-corner-radius-100", + "--spectrum-corner-radius-400", "--spectrum-font-size-75", - "--spectrum-informative-background-color-default", - "--spectrum-line-height-100", - "--spectrum-negative-background-color-default", + "--spectrum-gray-25", + "--spectrum-neutral-background-color-default", "--spectrum-neutral-subdued-background-color-default", - "--spectrum-positive-background-color-default", "--spectrum-regular-font-weight", - "--spectrum-text-to-visual-75", - "--spectrum-white", - "--spectrum-workflow-icon-size-50" + "--spectrum-spacing-75" ], - "system-theme": ["--system-tooltip-backgound-color-default-neutral"], "passthroughs": [], "high-contrast": [ "--highcontrast-tooltip-background-color-default", - "--highcontrast-tooltip-background-color-informative", - "--highcontrast-tooltip-background-color-negative", - "--highcontrast-tooltip-background-color-positive" + "--highcontrast-tooltip-border-width" ] } diff --git a/components/tooltip/index.css b/components/tooltip/index.css index f488b9cbf49..2a7787b7aec 100644 --- a/components/tooltip/index.css +++ b/components/tooltip/index.css @@ -11,24 +11,25 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; @import "@spectrum-css/commons/overlay.css"; .spectrum-Tooltip { + --spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-subdued-background-color-default); + --spectrum-tooltip-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-tooltip-animation-distance: var(--spectrum-spacing-75); /* override if additional spacing to source is required */ --spectrum-tooltip-margin: 0px; --spectrum-tooltip-height: var(--spectrum-component-height-75); --spectrum-tooltip-max-inline-size: var(--spectrum-tooltip-maximum-width); - --spectrum-tooltip-border-radius: var(--spectrum-corner-radius-100); - - --spectrum-tooltip-icon-width: var(--spectrum-workflow-icon-size-50); - --spectrum-tooltip-icon-height: var(--spectrum-workflow-icon-size-50); + --spectrum-tooltip-border-radius: var(--spectrum-corner-radius-400); --spectrum-tooltip-font-size: var(--spectrum-font-size-75); - --spectrum-tooltip-line-height: var(--spectrum-line-height-100); + + /* @todo set line-height using font size specific line-height tokens when they are finalized along with the new variable font. */ + --spectrum-tooltip-line-height: 1.2; --spectrum-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100); --spectrum-tooltip-font-weight: var(--spectrum-regular-font-weight); @@ -39,53 +40,23 @@ --spectrum-tooltip-spacing-block-start: var(--spectrum-component-top-to-text-75); --spectrum-tooltip-spacing-block-end: var(--spectrum-component-bottom-to-text-75); - /* icon spacing */ - --spectrum-tooltip-icon-spacing-inline-start: var(--spectrum-text-to-visual-75); - --spectrum-tooltip-icon-spacing-inline-end: var(--spectrum-text-to-visual-75); - --spectrum-tooltip-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-75); - - /* colors */ - --spectrum-tooltip-background-color-informative: var(--spectrum-informative-background-color-default); - --spectrum-tooltip-background-color-positive: var(--spectrum-positive-background-color-default); - --spectrum-tooltip-background-color-negative: var(--spectrum-negative-background-color-default); - - --spectrum-tooltip-content-color: var(--spectrum-white); + --spectrum-tooltip-content-color: var(--spectrum-gray-25); + --spectrum-tooltip-background-color-default: var(--spectrum-neutral-background-color-default); /* tip */ - --spectrum-tooltip-tip-inline-size: var(--spectrum-tooltip-tip-width); --spectrum-tooltip-tip-block-size: var(--spectrum-tooltip-tip-height); - /* Width and height of square element used to render the tip triangle. */ - --spectrum-tooltip-tip-square-size: var(--spectrum-tooltip-tip-inline-size); - /* Percentage value of height divided by width, for calculating clip-path within a square tip. */ - --spectrum-tooltip-tip-height-percentage: 50%; + --spectrum-tooltip-tip-height-percentage: 100%; /* Tip inset from container edges for clip-paths calculation, to fix hairline gap in Chrome cause by antialiasing. */ --spectrum-tooltip-tip-antialiasing-inset: 0.5px; /* pointer tip - default spacing to edge - corner radius plus half of tip width to neutralize override */ - --spectrum-tooltip-pointer-corner-spacing: var(--spectrum-corner-radius-100); + --spectrum-tooltip-pointer-corner-spacing: var(--mod-tooltip-border-radius, var(--spectrum-tooltip-border-radius)); - /* neutral background changes per theme */ - --spectrum-tooltip-background-color-default: var(--spectrum-tooltip-backgound-color-default-neutral); + --highcontrast-tooltip-border-width: 0px; } - -@media (forced-colors: active) { - .spectrum-Tooltip { - border: 1px solid transparent; - } - - .spectrum-Tooltip-tip { - --highcontrast-tooltip-background-color-default: CanvasText; - --highcontrast-tooltip-background-color-informative: CanvasText; - --highcontrast-tooltip-background-color-positive: CanvasText; - --highcontrast-tooltip-background-color-negative: CanvasText; - - forced-color-adjust: none; - } -} - .spectrum-Tooltip { @extend %spectrum-overlay; @@ -131,19 +102,6 @@ } } -/****** Variants ******/ -.spectrum-Tooltip--info { - background-color: var(--highcontrast-tooltip-background-color-informative, var(--mod-tooltip-background-color-informative, var(--spectrum-tooltip-background-color-informative))); -} - -.spectrum-Tooltip--positive { - background-color: var(--highcontrast-tooltip-background-color-positive, var(--mod-tooltip-background-color-positive, var(--spectrum-tooltip-background-color-positive))); -} - -.spectrum-Tooltip--negative { - background-color: var(--highcontrast-tooltip-background-color-negative, var(--mod-tooltip-background-color-negative, var(--spectrum-tooltip-background-color-negative))); -} - .spectrum-Tooltip.is-open { @extend %spectrum-overlay--open; } @@ -155,27 +113,17 @@ block-size: var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size)); inline-size: var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size)); - inset-block-start: 100%; + inset-block-start: calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); /* stylelint-disable-next-line csstools/use-logical -- intentional use of non-logical property */ - left: 50%; - transform: translateX(-50%); + left: calc(50% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size)))); + transform: rotate(-45deg); background-color: var(--highcontrast-tooltip-background-color-default, var(--mod-tooltip-background-color-default, var(--spectrum-tooltip-background-color-default))); /* Default: Pointing down ▽ */ - clip-path: polygon(0 calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))), 50% var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage)), 100% calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)))); - - .spectrum-Tooltip--info & { - background-color: var(--highcontrast-tooltip-background-color-informative, var(--mod-tooltip-background-color-informative, var(--spectrum-tooltip-background-color-informative))); - } + clip-path: polygon(0 0, 100% var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage)), 0 100%); - .spectrum-Tooltip--positive & { - background-color: var(--highcontrast-tooltip-background-color-positive, var(--mod-tooltip-background-color-positive, var(--spectrum-tooltip-background-color-positive))); - } - - .spectrum-Tooltip--negative & { - background-color: var(--highcontrast-tooltip-background-color-negative, var(--mod-tooltip-background-color-negative, var(--spectrum-tooltip-background-color-negative))); - } + border-radius: 0 0 0 var(--mod-tooltip-tip-corner-radius, var(--spectrum-tooltip-tip-corner-radius)); /*** Tip Placement ***/ /* tip is horizontal at bottom pointing down ▽ */ @@ -184,7 +132,8 @@ .spectrum-Tooltip--top-right &, .spectrum-Tooltip--top-start &, .spectrum-Tooltip--top-end & { - inset-block-start: 100%; + inset-block-start: calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); + transform: rotate(-45deg); } /* tip is horizontal at top pointing up △ */ @@ -193,20 +142,8 @@ .spectrum-Tooltip--bottom-right &, .spectrum-Tooltip--bottom-start &, .spectrum-Tooltip--bottom-end & { - clip-path: polygon(50% calc(100% - var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage))), 0 calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))), 100% calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)))); - inset-block: auto 100%; - } - - /* tip is horizontal and at the edge */ - .spectrum-Tooltip--top-left &, - .spectrum-Tooltip--bottom-left &, - .spectrum-Tooltip--top-right &, - .spectrum-Tooltip--bottom-right &, - .spectrum-Tooltip--top-start &, - .spectrum-Tooltip--bottom-start &, - .spectrum-Tooltip--top-end &, - .spectrum-Tooltip--bottom-end & { - transform: none; + inset-block: auto calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); + transform: rotate(135deg); } /* tip is horizontal at left △ ▽ */ @@ -256,8 +193,7 @@ .spectrum-Tooltip--end &, .spectrum-Tooltip--end-top &, .spectrum-Tooltip--end-bottom & { - inset-block-start: 50%; - transform: translateY(-50%); + inset-block-start: calc(50% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size)))); } /* tip is vertical and at edge */ @@ -269,7 +205,6 @@ .spectrum-Tooltip--start-bottom &, .spectrum-Tooltip--end-top &, .spectrum-Tooltip--end-bottom & { - transform: none; inset-block-start: auto; } @@ -280,8 +215,8 @@ .spectrum-Tooltip--end &, .spectrum-Tooltip--end-top &, .spectrum-Tooltip--end-bottom & { - clip-path: polygon(calc(100% - var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage))) 50%, calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 100%, calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 0); - inset-inline: auto 100%; + inset-inline: auto calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); + transform: rotate(45deg); } /* tip is vertical pointing ▷ right or end, for LTR. */ @@ -291,8 +226,8 @@ .spectrum-Tooltip--start &, .spectrum-Tooltip--start-top &, .spectrum-Tooltip--start-bottom & { - clip-path: polygon(calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 0, calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 100%, var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage)) 50%); - inset-inline-start: 100%; + inset-inline-start: calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); + transform: rotate(-135deg); } /* tip is vertical at top ◁ ▷ */ @@ -319,9 +254,9 @@ .spectrum-Tooltip--end-top &, .spectrum-Tooltip--end-bottom & { &:dir(rtl) { - clip-path: polygon(calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 0, calc(0% - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 100%, var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage)) 50%); + transform: rotate(-135deg); right: auto; - left: 100%; + left: calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); } } @@ -333,25 +268,13 @@ .spectrum-Tooltip--start-top &, .spectrum-Tooltip--start-bottom & { &:dir(rtl) { - clip-path: polygon(var(--mod-tooltip-tip-height-percentage, var(--spectrum-tooltip-tip-height-percentage)) 50%, calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 100%, calc(100% + var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset))) 0); + transform: rotate(45deg); left: auto; - right: 100%; + right: calc(100% - (0.5 * var(--mod-tooltip-tip-square-size, var(--spectrum-tooltip-tip-square-size))) - var(--mod-tooltip-tip-antialiasing-inset, var(--spectrum-tooltip-tip-antialiasing-inset)) + var(--highcontrast-tooltip-border-width)); } } } -/****** Icon ******/ -.spectrum-Tooltip-typeIcon { - /* subtract tooltip padding from icon start margin */ - margin-inline-start: calc(var(--mod-tooltip-icon-spacing-inline-start, var(--spectrum-tooltip-icon-spacing-inline-start)) - var(--mod-tooltip-spacing-inline, var(--spectrum-tooltip-spacing-inline))); - margin-inline-end: var(--mod-tooltip-icon-spacing-inline-end, var(--spectrum-tooltip-icon-spacing-inline-end)); - margin-block-start: var(--mod-tooltip-icon-spacing-block-start, var(--spectrum-tooltip-icon-spacing-block-start)); - inline-size: var(--mod-tooltip-icon-width, var(--spectrum-tooltip-icon-width)); - block-size: var(--mod-tooltip-icon-height, var(--spectrum-tooltip-icon-height)); - align-self: flex-start; - flex-shrink: 0; -} - /****** Label ******/ .spectrum-Tooltip-label { /* Make sure line height is correct to prevent problems in Windows */ @@ -649,3 +572,15 @@ } } } + +@media (forced-colors: active) { + .spectrum-Tooltip { + --highcontrast-tooltip-border-width: 1px; + + border: var(--highcontrast-tooltip-border-width) solid CanvasText; + } + + .spectrum-Tooltip-tip { + --highcontrast-tooltip-background-color-default: CanvasText; + } +} diff --git a/components/tooltip/package.json b/components/tooltip/package.json index d0c012a2f4a..c7b6d2d26c9 100644 --- a/components/tooltip/package.json +++ b/components/tooltip/package.json @@ -25,17 +25,13 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9", + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", + "@spectrum-css/commons": "11.0.0", "@spectrum-css/icon": "9.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/tooltip/stories/template.js b/components/tooltip/stories/template.js index 5c5c260f4d6..61cf2ce81b2 100644 --- a/components/tooltip/stories/template.js +++ b/components/tooltip/stories/template.js @@ -7,15 +7,12 @@ import { when } from "lit/directives/when.js"; import { capitalize } from "lodash-es"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Tooltip", label, - variant = "neutral", placement, + variant = "neutral", isOpen = true, isFocused = false, showOnHover = false, @@ -45,8 +42,6 @@ export const Template = ({ <span class=${classMap({ [rootClass]: true, - [`${rootClass}--${variant}`]: - typeof variant !== "undefined" && variant !== "neutral", [`${rootClass}--${placement}`]: typeof placement !== "undefined", "is-open": isOpen, "is-focused": isFocused, diff --git a/components/tooltip/stories/tooltip.stories.js b/components/tooltip/stories/tooltip.stories.js index a594409e4b7..c7f8fe3007e 100644 --- a/components/tooltip/stories/tooltip.stories.js +++ b/components/tooltip/stories/tooltip.stories.js @@ -21,16 +21,6 @@ export default { }, control: "text", }, - variant: { - name: "Variant", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Component", - }, - options: ["neutral", "info", "positive", "negative"], - control: "inline-radio", - }, placement: { name: "Placement", description: "The placement of the tooltip relative to the source. Note that placements that start with left/right do not change with text direction, but start/end placements do.", @@ -86,7 +76,6 @@ export default { isOpen: true, isFocused: false, showOnHover: false, - variant: "neutral", label: "Lorem ipsum dolor sit amet, consectetur adipiscing elit", }, parameters: { @@ -97,6 +86,7 @@ export default { packageJson, metadata, }, + tags: ["migrated"], }; export const Default = PlacementVariants.bind({}); diff --git a/components/tooltip/themes/express.css b/components/tooltip/themes/express.css deleted file mode 100644 index ec00162e91a..00000000000 --- a/components/tooltip/themes/express.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; - -@container style(--system: express) { - .spectrum-Tooltip { - --spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-background-color-default); - } -} diff --git a/components/tooltip/themes/spectrum-two.css b/components/tooltip/themes/spectrum-two.css deleted file mode 100644 index 42b423e3448..00000000000 --- a/components/tooltip/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Tooltip { - --spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-subdued-background-color-default); - } -} diff --git a/components/tooltip/themes/spectrum.css b/components/tooltip/themes/spectrum.css deleted file mode 100644 index 3d81bc564b5..00000000000 --- a/components/tooltip/themes/spectrum.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; diff --git a/components/tray/CHANGELOG.md b/components/tray/CHANGELOG.md index e0c48312c3c..5fddb78e79b 100644 --- a/components/tray/CHANGELOG.md +++ b/components/tray/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 4.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/dialog@11.0.0-next.0 + - @spectrum-css/modal@5.1.1-next.0 + ## 5.0.1 ### Patch Changes @@ -185,16 +194,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.7...@spectrum-css/tray@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.7...@spectrum-css/tray@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -202,8 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.7 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.6...@spectrum-css/tray@2.2.7) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.6...@spectrum-css/tray@2.2.7) **Note:** Version bump only for package @spectrum-css/tray @@ -211,8 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.6 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.5...@spectrum-css/tray@2.2.6) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.5...@spectrum-css/tray@2.2.6) **Note:** Version bump only for package @spectrum-css/tray @@ -220,8 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.5 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.4...@spectrum-css/tray@2.2.5) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.4...@spectrum-css/tray@2.2.5) ### 🐛 Bug fixes @@ -231,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.3...@spectrum-css/tray@2.2.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.3...@spectrum-css/tray@2.2.4) **Note:** Version bump only for package @spectrum-css/tray @@ -240,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.2...@spectrum-css/tray@2.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.2...@spectrum-css/tray@2.2.3) **Note:** Version bump only for package @spectrum-css/tray @@ -249,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.1...@spectrum-css/tray@2.2.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.2.1...@spectrum-css/tray@2.2.2) **Note:** Version bump only for package @spectrum-css/tray @@ -258,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/tray @@ -267,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.2.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.22...@spectrum-css/tray@2.2.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.22...@spectrum-css/tray@2.2.0) ### ✨ Features @@ -278,8 +276,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.22 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.21...@spectrum-css/tray@2.1.22) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.21...@spectrum-css/tray@2.1.22) **Note:** Version bump only for package @spectrum-css/tray @@ -287,8 +284,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.21 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.20...@spectrum-css/tray@2.1.21) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.20...@spectrum-css/tray@2.1.21) **Note:** Version bump only for package @spectrum-css/tray @@ -296,8 +292,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.20 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.18...@spectrum-css/tray@2.1.20) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.18...@spectrum-css/tray@2.1.20) **Note:** Version bump only for package @spectrum-css/tray @@ -305,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.19 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.18...@spectrum-css/tray@2.1.19) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.18...@spectrum-css/tray@2.1.19) **Note:** Version bump only for package @spectrum-css/tray @@ -314,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.18 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.17...@spectrum-css/tray@2.1.18) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.17...@spectrum-css/tray@2.1.18) **Note:** Version bump only for package @spectrum-css/tray @@ -323,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.17 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.16...@spectrum-css/tray@2.1.17) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.16...@spectrum-css/tray@2.1.17) **Note:** Version bump only for package @spectrum-css/tray @@ -332,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.16 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.15...@spectrum-css/tray@2.1.16) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.15...@spectrum-css/tray@2.1.16) **Note:** Version bump only for package @spectrum-css/tray @@ -341,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.15 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.14...@spectrum-css/tray@2.1.15) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.14...@spectrum-css/tray@2.1.15) **Note:** Version bump only for package @spectrum-css/tray @@ -350,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.14 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.13...@spectrum-css/tray@2.1.14) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.13...@spectrum-css/tray@2.1.14) **Note:** Version bump only for package @spectrum-css/tray @@ -359,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.13 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.12...@spectrum-css/tray@2.1.13) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.12...@spectrum-css/tray@2.1.13) **Note:** Version bump only for package @spectrum-css/tray @@ -368,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.12 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.11...@spectrum-css/tray@2.1.12) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.11...@spectrum-css/tray@2.1.12) **Note:** Version bump only for package @spectrum-css/tray @@ -377,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.11 -🗓 -2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.10...@spectrum-css/tray@2.1.11) +🗓 2023-09-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.10...@spectrum-css/tray@2.1.11) **Note:** Version bump only for package @spectrum-css/tray @@ -386,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.10 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.9...@spectrum-css/tray@2.1.10) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.9...@spectrum-css/tray@2.1.10) **Note:** Version bump only for package @spectrum-css/tray @@ -395,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.9 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.8...@spectrum-css/tray@2.1.9) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.8...@spectrum-css/tray@2.1.9) **Note:** Version bump only for package @spectrum-css/tray @@ -404,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.8 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.7...@spectrum-css/tray@2.1.8) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.7...@spectrum-css/tray@2.1.8) ### 🔙 Reverts @@ -415,8 +398,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.7 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.6...@spectrum-css/tray@2.1.7) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.6...@spectrum-css/tray@2.1.7) **Note:** Version bump only for package @spectrum-css/tray @@ -424,8 +406,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.6 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.4...@spectrum-css/tray@2.1.6) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.4...@spectrum-css/tray@2.1.6) **Note:** Version bump only for package @spectrum-css/tray @@ -433,8 +414,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.5 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.4...@spectrum-css/tray@2.1.5) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.4...@spectrum-css/tray@2.1.5) **Note:** Version bump only for package @spectrum-css/tray @@ -442,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.4 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.3...@spectrum-css/tray@2.1.4) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.3...@spectrum-css/tray@2.1.4) **Note:** Version bump only for package @spectrum-css/tray @@ -451,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.3 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.2...@spectrum-css/tray@2.1.3) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.2...@spectrum-css/tray@2.1.3) **Note:** Version bump only for package @spectrum-css/tray @@ -460,8 +438,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.2 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.1...@spectrum-css/tray@2.1.2) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.1...@spectrum-css/tray@2.1.2) **Note:** Version bump only for package @spectrum-css/tray @@ -469,8 +446,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.1 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.0...@spectrum-css/tray@2.1.1) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.1.0...@spectrum-css/tray@2.1.1) **Note:** Version bump only for package @spectrum-css/tray @@ -478,8 +454,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.57...@spectrum-css/tray@2.1.0) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.57...@spectrum-css/tray@2.1.0) ### ✨ Features @@ -489,8 +464,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.57 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.56...@spectrum-css/tray@2.0.57) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.56...@spectrum-css/tray@2.0.57) **Note:** Version bump only for package @spectrum-css/tray @@ -498,8 +472,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.56 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.55...@spectrum-css/tray@2.0.56) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.55...@spectrum-css/tray@2.0.56) **Note:** Version bump only for package @spectrum-css/tray @@ -507,8 +480,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.55 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.54...@spectrum-css/tray@2.0.55) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.54...@spectrum-css/tray@2.0.55) **Note:** Version bump only for package @spectrum-css/tray @@ -516,8 +488,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.54 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.53...@spectrum-css/tray@2.0.54) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.53...@spectrum-css/tray@2.0.54) **Note:** Version bump only for package @spectrum-css/tray @@ -525,8 +496,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.53 -🗓 -2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.52...@spectrum-css/tray@2.0.53) +🗓 2023-06-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.52...@spectrum-css/tray@2.0.53) **Note:** Version bump only for package @spectrum-css/tray @@ -534,8 +504,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.52 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.51...@spectrum-css/tray@2.0.52) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.51...@spectrum-css/tray@2.0.52) **Note:** Version bump only for package @spectrum-css/tray @@ -543,8 +512,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.51 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.50...@spectrum-css/tray@2.0.51) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.50...@spectrum-css/tray@2.0.51) **Note:** Version bump only for package @spectrum-css/tray @@ -552,8 +520,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.50 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.49...@spectrum-css/tray@2.0.50) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.49...@spectrum-css/tray@2.0.50) ### 🐛 Bug fixes @@ -563,8 +530,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.49 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.48...@spectrum-css/tray@2.0.49) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.48...@spectrum-css/tray@2.0.49) **Note:** Version bump only for package @spectrum-css/tray @@ -572,8 +538,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.48 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.47...@spectrum-css/tray@2.0.48) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tray@2.0.47...@spectrum-css/tray@2.0.48) **Note:** Version bump only for package @spectrum-css/tray diff --git a/components/tray/dist/metadata.json b/components/tray/dist/metadata.json index 2d510b6a7aa..db6c152c441 100644 --- a/components/tray/dist/metadata.json +++ b/components/tray/dist/metadata.json @@ -36,7 +36,6 @@ "--spectrum-background-layer-2-color", "--spectrum-corner-radius-100" ], - "system-theme": [], "passthroughs": ["--mod-modal-max-width"], "high-contrast": ["--highcontrast-tray-background-color"] } diff --git a/components/tray/package.json b/components/tray/package.json index c06ac5667fc..68548759d8f 100644 --- a/components/tray/package.json +++ b/components/tray/package.json @@ -25,12 +25,12 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/button": ">=13", + "@spectrum-css/button": ">=14", "@spectrum-css/dialog": ">=10", - "@spectrum-css/divider": ">=3", - "@spectrum-css/icon": ">=7", - "@spectrum-css/modal": ">=5", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/divider": ">=5", + "@spectrum-css/icon": ">=9", + "@spectrum-css/modal": ">=7", + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/dialog": { @@ -46,11 +46,7 @@ "@spectrum-css/divider": "5.0.1", "@spectrum-css/icon": "9.0.1", "@spectrum-css/modal": "7.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/treeview/CHANGELOG.md b/components/treeview/CHANGELOG.md index b65d53c452a..0375f899c00 100644 --- a/components/treeview/CHANGELOG.md +++ b/components/treeview/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 11.0.0-next.1 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`6b41b50`](https://github.com/adobe/spectrum-css/commit/6b41b501768da3db70ae00f6097646583f8fbd01) Thanks [@pfulton](https://github.com/pfulton)! - Restores missing custom properties that were flagged by the linter. The missing properties were copied from the spectrum two theme files in the foundations branch. This clears up all linter errors and warnings for these components. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + +## 11.0.0-next.0 + +### Patch Changes + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08), [`2c62239`](https://github.com/adobe/spectrum-css/commit/2c62239aab6ae9815bac6edf531c212c45665a5c), [`eda9897`](https://github.com/adobe/spectrum-css/commit/eda9897f1a6e9ecaa4e000985e55b62ecdb9a586)]: + - @spectrum-css/tokens@14.0.0-next.10 + - @spectrum-css/thumbnail@7.0.0-next.0 + ## 12.0.1 ### Patch Changes @@ -170,16 +187,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 10.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.6...@spectrum-css/treeview@10.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.6...@spectrum-css/treeview@10.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -187,8 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.6 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.5...@spectrum-css/treeview@9.2.6) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.5...@spectrum-css/treeview@9.2.6) **Note:** Version bump only for package @spectrum-css/treeview @@ -196,8 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.5 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.4...@spectrum-css/treeview@9.2.5) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.4...@spectrum-css/treeview@9.2.5) **Note:** Version bump only for package @spectrum-css/treeview @@ -205,8 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.4 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.3...@spectrum-css/treeview@9.2.4) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.3...@spectrum-css/treeview@9.2.4) **Note:** Version bump only for package @spectrum-css/treeview @@ -214,8 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.3 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.2...@spectrum-css/treeview@9.2.3) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.2...@spectrum-css/treeview@9.2.3) **Note:** Version bump only for package @spectrum-css/treeview @@ -223,8 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/treeview @@ -232,8 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.1 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.0...@spectrum-css/treeview@9.2.1) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.2.0...@spectrum-css/treeview@9.2.1) **Note:** Version bump only for package @spectrum-css/treeview @@ -241,8 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.2.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.1.1...@spectrum-css/treeview@9.2.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.1.1...@spectrum-css/treeview@9.2.0) **Note:** Version bump only for package @spectrum-css/treeview @@ -250,8 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.1 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.1.0...@spectrum-css/treeview@9.1.1) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.1.0...@spectrum-css/treeview@9.1.1) ### 🐛 Bug fixes @@ -261,8 +267,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.8...@spectrum-css/treeview@9.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.8...@spectrum-css/treeview@9.1.0) ### ✨ Features @@ -272,8 +277,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.8 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.7...@spectrum-css/treeview@9.0.8) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.7...@spectrum-css/treeview@9.0.8) **Note:** Version bump only for package @spectrum-css/treeview @@ -281,8 +285,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.7 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.6...@spectrum-css/treeview@9.0.7) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.6...@spectrum-css/treeview@9.0.7) **Note:** Version bump only for package @spectrum-css/treeview @@ -290,8 +293,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.6 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.4...@spectrum-css/treeview@9.0.6) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.4...@spectrum-css/treeview@9.0.6) **Note:** Version bump only for package @spectrum-css/treeview @@ -299,8 +301,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.5 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.4...@spectrum-css/treeview@9.0.5) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.4...@spectrum-css/treeview@9.0.5) **Note:** Version bump only for package @spectrum-css/treeview @@ -308,8 +309,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.4 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.3...@spectrum-css/treeview@9.0.4) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.3...@spectrum-css/treeview@9.0.4) **Note:** Version bump only for package @spectrum-css/treeview @@ -317,8 +317,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.3 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.2...@spectrum-css/treeview@9.0.3) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.2...@spectrum-css/treeview@9.0.3) **Note:** Version bump only for package @spectrum-css/treeview @@ -326,8 +325,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.2 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.1...@spectrum-css/treeview@9.0.2) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.1...@spectrum-css/treeview@9.0.2) **Note:** Version bump only for package @spectrum-css/treeview @@ -335,8 +333,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.1 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.0...@spectrum-css/treeview@9.0.1) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@9.0.0...@spectrum-css/treeview@9.0.1) **Note:** Version bump only for package @spectrum-css/treeview @@ -344,13 +341,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 9.0.0 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@8.0.1...@spectrum-css/treeview@9.0.0) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@8.0.1...@spectrum-css/treeview@9.0.0) \*refactor(treeview)!: migrate to spectrum tokens([525485e](https://github.com/adobe/spectrum-css/commit/525485e)), closes[#1428](https://github.com/adobe/spectrum-css/issues/1428)[#1432](https://github.com/adobe/spectrum-css/issues/1432) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrate to use `@adobe/spectrum-tokens` @@ -385,8 +380,7 @@ for the hover background color. ## 8.0.1 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@8.0.0...@spectrum-css/treeview@8.0.1) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@8.0.0...@spectrum-css/treeview@8.0.1) ### 🔙 Reverts @@ -396,13 +390,11 @@ for the hover background color. ## 8.0.0 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.9...@spectrum-css/treeview@8.0.0) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.9...@spectrum-css/treeview@8.0.0) \*refactor(treeview)!: replace focus-ring with focus-visible([5db0310](https://github.com/adobe/spectrum-css/commit/5db0310)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * use focus-visible pseudo class in place of focus-ring @@ -411,8 +403,7 @@ for the hover background color. ## 7.0.9 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.8...@spectrum-css/treeview@7.0.9) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.8...@spectrum-css/treeview@7.0.9) **Note:** Version bump only for package @spectrum-css/treeview @@ -420,8 +411,7 @@ for the hover background color. ## 7.0.8 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.7...@spectrum-css/treeview@7.0.8) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.7...@spectrum-css/treeview@7.0.8) ### 🐛 Bug fixes @@ -431,8 +421,7 @@ for the hover background color. ## 7.0.7 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.6...@spectrum-css/treeview@7.0.7) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.6...@spectrum-css/treeview@7.0.7) **Note:** Version bump only for package @spectrum-css/treeview @@ -440,8 +429,7 @@ for the hover background color. ## 7.0.6 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.5...@spectrum-css/treeview@7.0.6) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.5...@spectrum-css/treeview@7.0.6) **Note:** Version bump only for package @spectrum-css/treeview @@ -449,8 +437,7 @@ for the hover background color. ## 7.0.5 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.4...@spectrum-css/treeview@7.0.5) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.4...@spectrum-css/treeview@7.0.5) ### 🐛 Bug fixes @@ -460,8 +447,7 @@ for the hover background color. ## 7.0.4 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.3...@spectrum-css/treeview@7.0.4) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.3...@spectrum-css/treeview@7.0.4) **Note:** Version bump only for package @spectrum-css/treeview @@ -469,8 +455,7 @@ for the hover background color. ## 7.0.3 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.2...@spectrum-css/treeview@7.0.3) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/treeview@7.0.2...@spectrum-css/treeview@7.0.3) **Note:** Version bump only for package @spectrum-css/treeview diff --git a/components/treeview/dist/metadata.json b/components/treeview/dist/metadata.json index 0e5af238587..7456a1853f8 100644 --- a/components/treeview/dist/metadata.json +++ b/components/treeview/dist/metadata.json @@ -4,7 +4,6 @@ ".spectrum-TreeView", ".spectrum-TreeView .spectrum-TreeView", ".spectrum-TreeView--sizeL", - ".spectrum-TreeView--sizeM", ".spectrum-TreeView--sizeS", ".spectrum-TreeView--sizeXL", ".spectrum-TreeView--thumbnail .spectrum-TreeView-itemThumbnail", @@ -168,10 +167,6 @@ "--spectrum-neutral-content-color-default", "--spectrum-text-to-visual-75" ], - "system-theme": [ - "--system-tree-view-item-background-color-focus", - "--system-tree-view-item-background-color-hover" - ], "passthroughs": [], "high-contrast": [ "--highcontrast-treeview-heading-color", diff --git a/components/treeview/index.css b/components/treeview/index.css index 2c55ebea3be..20e3fd46ea6 100644 --- a/components/treeview/index.css +++ b/components/treeview/index.css @@ -11,8 +11,6 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - @media (forced-colors: active) { .spectrum-TreeView { --highcontrast-treeview-item-background-color-selected: Highlight; @@ -54,8 +52,39 @@ } } -.spectrum-TreeView, -.spectrum-TreeView--sizeM { +.spectrum-TreeView { + --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-100); + --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-100); + + --spectrum-treeview-item-border-size: var(--mod-treeview-item-border-size, var(--spectrum-border-width-200)); + --spectrum-treeview-item-border-size-selected: var(--mod-treeview-item-border-size-selected, 1px); + --spectrum-treeview-item-border-radius: var(--mod-treeview-item-border-radius, 0px); + + --spectrum-treeview-item-border-color-selected: var(--highcontrast-treeview-item-border-color-selected, var(--mod-treeview-item-border-color-selected, var(--spectrum-blue-800))); + --spectrum-treeview-item-border-color-focus: var(--highcontrast-treeview-item-border-color-focus, var(--mod-treeview-item-border-color-focus, var(--spectrum-blue-700))); + + --spectrum-treeview-item-border-color-quiet-selected: var(--highcontrast-treeview-item-border-color-selected, var(--mod-treeview-item-border-color-selected-quiet, transparent)); + + --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-100); + --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-100); + + --spectrum-treeview-item-icon-gap: var(--mod-treeview-item-icon-gap, var(--spectrum-text-to-visual-75)); + --spectrum-treeview-item-icon-color: var(--highcontrast-treeview-item-icon-color, var(--mod-treeview-item-icon-color, var(--spectrum-gray-700))); + --spectrum-treeview-item-icon-color-hover: var(--highcontrast-treeview-item-text-color-focus, var(--mod-treeview-item-icon-color-hover, var(--spectrum-gray-900))); + --spectrum-treeview-item-icon-color-focus: var(--highcontrast-treeview-item-icon-color-focus, var(--mod-treeview-item-icon-color-focus, var(--spectrum-gray-900))); + --spectrum-treeview-item-icon-color-selected: var(--highcontrast-treeview-item-icon-color-selected, var(--mod-treeview-item-icon-color-selected, var(--spectrum-gray-900))); + --spectrum-treeview-item-icon-color-disabled: var(--highcontrast-treeview-item-icon-color-disabled, var(--mod-treeview-item-icon-color-disabled, var(--spectrum-disabled-content-color))); + + --spectrum-treeview-item-text-color: var(--highcontrast-treeview-item-text-color, var(--mod-treeview-item-text-color, var(--spectrum-neutral-content-color-default))); + --spectrum-treeview-item-text-color-selected: var(--highcontrast-treeview-item-text-color-selected, var(--mod-treeview-item-text-color-selected, var(--spectrum-gray-900))); + --spectrum-treeview-item-text-color-disabled: var(--highcontrast-treeview-item-text-color-disabled, var(--mod-treeview-item-text-color-disabled, var(--spectrum-gray-500))); + --spectrum-treeview-item-text-color-focus: var(--highcontrast-treeview-item-text-color-focus, var(--mod-treeview-item-text-color-focus, var(--spectrum-gray-900))); + --spectrum-treeview-item-text-color-hover: var(--highcontrast-treeview-item-text-color-focus, var(--mod-treeview-item-text-color-hover, var(--spectrum-gray-900))); + + --spectrum-treeview-indicator-animation-duration: var(--mod-treeview-indicator-animation-duration, var(--spectrum-animation-duration-100)); + + --spectrum-treeview-item-min-block-size: var(--mod-treeview-item-min-block-size, var(--spectrum-treeview-item-sized-min-block-size)); + --spectrum-treeview-font-size: var(--mod-treeview-font-size, var(--spectrum-font-size-100)); --spectrum-treeview-item-sized-min-block-size: var(--mod-treeview-item-min-block-size, var(--spectrum-component-height-100)); diff --git a/components/treeview/package.json b/components/treeview/package.json index 329ff559175..34c0fc504a6 100644 --- a/components/treeview/package.json +++ b/components/treeview/package.json @@ -25,9 +25,9 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/icon": ">=7", + "@spectrum-css/icon": ">=9", "@spectrum-css/thumbnail": ">=6", - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "peerDependenciesMeta": { "@spectrum-css/thumbnail": { @@ -37,11 +37,7 @@ "devDependencies": { "@spectrum-css/icon": "9.0.1", "@spectrum-css/thumbnail": "8.0.1", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/treeview/stories/template.js b/components/treeview/stories/template.js index df31e3ed464..6c15ccdacd7 100644 --- a/components/treeview/stories/template.js +++ b/components/treeview/stories/template.js @@ -9,9 +9,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const TreeViewItem = ({ rootClass = "spectrum-TreeView", diff --git a/components/treeview/themes/express.css b/components/treeview/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/treeview/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/treeview/themes/spectrum-two.css b/components/treeview/themes/spectrum-two.css deleted file mode 100644 index 215290b3b6e..00000000000 --- a/components/treeview/themes/spectrum-two.css +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-TreeView { - --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-100); - --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-100); - } -} diff --git a/components/treeview/themes/spectrum.css b/components/treeview/themes/spectrum.css deleted file mode 100644 index 7698b2b4c3e..00000000000 --- a/components/treeview/themes/spectrum.css +++ /dev/null @@ -1,23 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-TreeView { - --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-200); - --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-200); - } -} diff --git a/components/typography/CHANGELOG.md b/components/typography/CHANGELOG.md index 0bd1589ba94..a53753d4ff7 100644 --- a/components/typography/CHANGELOG.md +++ b/components/typography/CHANGELOG.md @@ -122,16 +122,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 6.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.5...@spectrum-css/typography@6.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.5...@spectrum-css/typography@6.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -139,8 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.5 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.4...@spectrum-css/typography@5.1.5) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.4...@spectrum-css/typography@5.1.5) **Note:** Version bump only for package @spectrum-css/typography @@ -148,8 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.4 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.3...@spectrum-css/typography@5.1.4) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.3...@spectrum-css/typography@5.1.4) **Note:** Version bump only for package @spectrum-css/typography @@ -157,8 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.3 -🗓 -2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.2...@spectrum-css/typography@5.1.3) +🗓 2024-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.2...@spectrum-css/typography@5.1.3) **Note:** Version bump only for package @spectrum-css/typography @@ -166,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.1...@spectrum-css/typography@5.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.1.1...@spectrum-css/typography@5.1.2) **Note:** Version bump only for package @spectrum-css/typography @@ -175,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/typography @@ -184,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.50...@spectrum-css/typography@5.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.50...@spectrum-css/typography@5.1.0) ### ✨ Features @@ -195,8 +186,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.50 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.49...@spectrum-css/typography@5.0.50) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.49...@spectrum-css/typography@5.0.50) **Note:** Version bump only for package @spectrum-css/typography @@ -204,8 +194,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.49 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.48...@spectrum-css/typography@5.0.49) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.48...@spectrum-css/typography@5.0.49) **Note:** Version bump only for package @spectrum-css/typography @@ -213,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.48 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.46...@spectrum-css/typography@5.0.48) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.46...@spectrum-css/typography@5.0.48) **Note:** Version bump only for package @spectrum-css/typography @@ -222,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.47 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.46...@spectrum-css/typography@5.0.47) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.46...@spectrum-css/typography@5.0.47) **Note:** Version bump only for package @spectrum-css/typography @@ -231,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.46 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.45...@spectrum-css/typography@5.0.46) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.45...@spectrum-css/typography@5.0.46) **Note:** Version bump only for package @spectrum-css/typography @@ -240,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.45 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.44...@spectrum-css/typography@5.0.45) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.44...@spectrum-css/typography@5.0.45) **Note:** Version bump only for package @spectrum-css/typography @@ -249,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.44 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.43...@spectrum-css/typography@5.0.44) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.43...@spectrum-css/typography@5.0.44) **Note:** Version bump only for package @spectrum-css/typography @@ -258,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.43 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.42...@spectrum-css/typography@5.0.43) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.42...@spectrum-css/typography@5.0.43) **Note:** Version bump only for package @spectrum-css/typography @@ -267,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.42 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.41...@spectrum-css/typography@5.0.42) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.41...@spectrum-css/typography@5.0.42) **Note:** Version bump only for package @spectrum-css/typography @@ -276,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.41 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.40...@spectrum-css/typography@5.0.41) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.40...@spectrum-css/typography@5.0.41) **Note:** Version bump only for package @spectrum-css/typography @@ -285,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.40 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.39...@spectrum-css/typography@5.0.40) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.39...@spectrum-css/typography@5.0.40) **Note:** Version bump only for package @spectrum-css/typography @@ -294,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.39 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.38...@spectrum-css/typography@5.0.39) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.38...@spectrum-css/typography@5.0.39) **Note:** Version bump only for package @spectrum-css/typography @@ -303,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.38 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.37...@spectrum-css/typography@5.0.38) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.37...@spectrum-css/typography@5.0.38) **Note:** Version bump only for package @spectrum-css/typography @@ -312,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.37 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.36...@spectrum-css/typography@5.0.37) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.36...@spectrum-css/typography@5.0.37) ### 🔙 Reverts @@ -323,8 +300,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.36 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.35...@spectrum-css/typography@5.0.36) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.35...@spectrum-css/typography@5.0.36) **Note:** Version bump only for package @spectrum-css/typography @@ -332,8 +308,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.35 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.33...@spectrum-css/typography@5.0.35) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.33...@spectrum-css/typography@5.0.35) **Note:** Version bump only for package @spectrum-css/typography @@ -341,8 +316,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.34 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.33...@spectrum-css/typography@5.0.34) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.33...@spectrum-css/typography@5.0.34) **Note:** Version bump only for package @spectrum-css/typography @@ -350,8 +324,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.33 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.32...@spectrum-css/typography@5.0.33) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.32...@spectrum-css/typography@5.0.33) **Note:** Version bump only for package @spectrum-css/typography @@ -359,8 +332,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.32 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.31...@spectrum-css/typography@5.0.32) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.31...@spectrum-css/typography@5.0.32) **Note:** Version bump only for package @spectrum-css/typography @@ -368,8 +340,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.31 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.30...@spectrum-css/typography@5.0.31) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.30...@spectrum-css/typography@5.0.31) **Note:** Version bump only for package @spectrum-css/typography @@ -377,8 +348,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.30 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.29...@spectrum-css/typography@5.0.30) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.29...@spectrum-css/typography@5.0.30) **Note:** Version bump only for package @spectrum-css/typography @@ -386,8 +356,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.29 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.28...@spectrum-css/typography@5.0.29) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.28...@spectrum-css/typography@5.0.29) **Note:** Version bump only for package @spectrum-css/typography @@ -395,8 +364,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.28 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.27...@spectrum-css/typography@5.0.28) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.27...@spectrum-css/typography@5.0.28) **Note:** Version bump only for package @spectrum-css/typography @@ -404,8 +372,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.27 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.26...@spectrum-css/typography@5.0.27) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.26...@spectrum-css/typography@5.0.27) **Note:** Version bump only for package @spectrum-css/typography @@ -413,8 +380,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.26 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.25...@spectrum-css/typography@5.0.26) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.25...@spectrum-css/typography@5.0.26) **Note:** Version bump only for package @spectrum-css/typography @@ -422,8 +388,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.25 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.24...@spectrum-css/typography@5.0.25) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.24...@spectrum-css/typography@5.0.25) **Note:** Version bump only for package @spectrum-css/typography @@ -431,8 +396,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.24 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.23...@spectrum-css/typography@5.0.24) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.23...@spectrum-css/typography@5.0.24) **Note:** Version bump only for package @spectrum-css/typography @@ -440,8 +404,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.23 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.22...@spectrum-css/typography@5.0.23) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.22...@spectrum-css/typography@5.0.23) **Note:** Version bump only for package @spectrum-css/typography @@ -449,8 +412,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.22 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.21...@spectrum-css/typography@5.0.22) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.21...@spectrum-css/typography@5.0.22) ### 🐛 Bug fixes @@ -460,8 +422,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.21 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.20...@spectrum-css/typography@5.0.21) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.20...@spectrum-css/typography@5.0.21) **Note:** Version bump only for package @spectrum-css/typography @@ -469,8 +430,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.20 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.19...@spectrum-css/typography@5.0.20) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/typography@5.0.19...@spectrum-css/typography@5.0.20) **Note:** Version bump only for package @spectrum-css/typography diff --git a/components/typography/dist/metadata.json b/components/typography/dist/metadata.json index 5d45be326da..3ef566f741d 100644 --- a/components/typography/dist/metadata.json +++ b/components/typography/dist/metadata.json @@ -751,7 +751,6 @@ "--spectrum-sans-font-family-stack", "--spectrum-serif-font-family-stack" ], - "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-body-font-color", diff --git a/components/typography/package.json b/components/typography/package.json index 511bd8631bd..fcb3f05ee49 100644 --- a/components/typography/package.json +++ b/components/typography/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/typography/stories/typography.stories.js b/components/typography/stories/typography.stories.js index 044a76bc5b6..2eb198a216a 100644 --- a/components/typography/stories/typography.stories.js +++ b/components/typography/stories/typography.stories.js @@ -4,16 +4,16 @@ import { size } from "@spectrum-css/preview/types"; import metadata from "../dist/metadata.json"; import packageJson from "../package.json"; import { - DocsBodyVariants, - DocsCodeVariants, - DocsDetailVariants, - DocsHeadingBodyPairing, - DocsHeadingVariants, - DocsInternationalizedBodyVariants, - DocsInternationalizedCodeVariants, - DocsInternationalizedDetailVariants, - DocsInternationalizedHeadingBodyPairing, - DocsInternationalizedHeadingVariants, Template + DocsBodyVariants, + DocsCodeVariants, + DocsDetailVariants, + DocsHeadingBodyPairing, + DocsHeadingVariants, + DocsInternationalizedBodyVariants, + DocsInternationalizedCodeVariants, + DocsInternationalizedDetailVariants, + DocsInternationalizedHeadingBodyPairing, + DocsInternationalizedHeadingVariants, Template } from "./template.js"; import { TypographyGroup } from "./typography.test.js"; diff --git a/components/underlay/CHANGELOG.md b/components/underlay/CHANGELOG.md index 760e13de9d3..966f81b81cb 100644 --- a/components/underlay/CHANGELOG.md +++ b/components/underlay/CHANGELOG.md @@ -1,5 +1,59 @@ # Change Log +## 4.1.1-next.0 + +### Patch Changes + +- [#2860](https://github.com/adobe/spectrum-css/pull/2860) [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Spectrum 2 Standard Dialog Migration + + This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area. + + The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`. + + Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed: + + _New Mods_ + `--mod-standard-dialog-spacing-title-to-header-content` + `--mod-standard-dialog-spacing-title-to-description` + `--mod-standard-dialog-header-content-font-size` + + _Renamed Mods_ + `--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small` + `--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width` + `--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large` + `--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius` + `--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size` + `--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height` + `--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color` + `--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight` + `--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight` + `--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height` + `--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color` + `--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size` + `--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size` + `--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size` + `--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding` + `--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer` + `--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button` + `--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group` + + _Removed Mods_ + `--mod-dialog-confirm-buttongroup-padding-top` + `--mod-dialog-confirm-close-button-size` + `--mod-dialog-confirm-description-margin` + `--mod-dialog-confirm-description-padding` + `--mod-dialog-confirm-divider-block-spacing-end` + `--mod-dialog-confirm-divider-block-spacing-start` + `--mod-dialog-confirm-divider-height` + + Modal and underlay updates + + - Modal component now uses the updated corner rounding. + - Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens. + +- Updated dependencies [[`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08)]: + - @spectrum-css/tokens@14.0.0-next.10 + ## 6.0.1 ### Patch Changes @@ -130,16 +184,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.4...@spectrum-css/underlay@4.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.4...@spectrum-css/underlay@4.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -147,8 +198,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.3...@spectrum-css/underlay@3.2.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.3...@spectrum-css/underlay@3.2.4) **Note:** Version bump only for package @spectrum-css/underlay @@ -156,8 +206,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.2...@spectrum-css/underlay@3.2.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.2...@spectrum-css/underlay@3.2.3) **Note:** Version bump only for package @spectrum-css/underlay @@ -165,8 +214,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.1...@spectrum-css/underlay@3.2.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.2.1...@spectrum-css/underlay@3.2.2) **Note:** Version bump only for package @spectrum-css/underlay @@ -174,8 +222,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/underlay @@ -183,8 +230,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.2.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.1.0...@spectrum-css/underlay@3.2.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.1.0...@spectrum-css/underlay@3.2.0) ### ✨ Features @@ -194,8 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.13...@spectrum-css/underlay@3.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.13...@spectrum-css/underlay@3.1.0) ### ✨ Features @@ -205,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.13 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.12...@spectrum-css/underlay@3.0.13) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.12...@spectrum-css/underlay@3.0.13) **Note:** Version bump only for package @spectrum-css/underlay @@ -214,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.12 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.11...@spectrum-css/underlay@3.0.12) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.11...@spectrum-css/underlay@3.0.12) **Note:** Version bump only for package @spectrum-css/underlay @@ -223,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.11 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.9...@spectrum-css/underlay@3.0.11) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.9...@spectrum-css/underlay@3.0.11) **Note:** Version bump only for package @spectrum-css/underlay @@ -232,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.10 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.9...@spectrum-css/underlay@3.0.10) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.9...@spectrum-css/underlay@3.0.10) **Note:** Version bump only for package @spectrum-css/underlay @@ -241,8 +282,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.9 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.8...@spectrum-css/underlay@3.0.9) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.8...@spectrum-css/underlay@3.0.9) **Note:** Version bump only for package @spectrum-css/underlay @@ -250,8 +290,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.8 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.7...@spectrum-css/underlay@3.0.8) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.7...@spectrum-css/underlay@3.0.8) **Note:** Version bump only for package @spectrum-css/underlay @@ -259,8 +298,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.7 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.6...@spectrum-css/underlay@3.0.7) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.6...@spectrum-css/underlay@3.0.7) **Note:** Version bump only for package @spectrum-css/underlay @@ -268,8 +306,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.6 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.5...@spectrum-css/underlay@3.0.6) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.5...@spectrum-css/underlay@3.0.6) **Note:** Version bump only for package @spectrum-css/underlay @@ -277,8 +314,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.5 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.4...@spectrum-css/underlay@3.0.5) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.4...@spectrum-css/underlay@3.0.5) **Note:** Version bump only for package @spectrum-css/underlay @@ -286,8 +322,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.4 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.3...@spectrum-css/underlay@3.0.4) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.3...@spectrum-css/underlay@3.0.4) **Note:** Version bump only for package @spectrum-css/underlay @@ -295,8 +330,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.3 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.2...@spectrum-css/underlay@3.0.3) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.2...@spectrum-css/underlay@3.0.3) **Note:** Version bump only for package @spectrum-css/underlay @@ -304,8 +338,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.2 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.1...@spectrum-css/underlay@3.0.2) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.1...@spectrum-css/underlay@3.0.2) **Note:** Version bump only for package @spectrum-css/underlay @@ -313,8 +346,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.1 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.0...@spectrum-css/underlay@3.0.1) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@3.0.0...@spectrum-css/underlay@3.0.1) **Note:** Version bump only for package @spectrum-css/underlay @@ -322,8 +354,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.1.0...@spectrum-css/underlay@3.0.0) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.1.0...@spectrum-css/underlay@3.0.0) ### 🔙 Reverts @@ -331,8 +362,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline \*feat(underlay)!: migrate to use spectrum-tokens (#2096)([2e0651a](https://github.com/adobe/spectrum-css/commit/2e0651a)), closes[#2096](https://github.com/adobe/spectrum-css/issues/2096) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Underlay to use `@adobe/spectrum-tokens` @@ -369,8 +399,7 @@ Additionally: ## 2.1.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.54...@spectrum-css/underlay@2.1.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.54...@spectrum-css/underlay@2.1.0) ### ✨ Features @@ -380,8 +409,7 @@ Additionally: ## 2.0.54 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.53...@spectrum-css/underlay@2.0.54) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.53...@spectrum-css/underlay@2.0.54) **Note:** Version bump only for package @spectrum-css/underlay @@ -389,8 +417,7 @@ Additionally: ## 2.0.53 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.52...@spectrum-css/underlay@2.0.53) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.52...@spectrum-css/underlay@2.0.53) **Note:** Version bump only for package @spectrum-css/underlay @@ -398,8 +425,7 @@ Additionally: ## 2.0.52 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.51...@spectrum-css/underlay@2.0.52) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.51...@spectrum-css/underlay@2.0.52) ### 🐛 Bug fixes @@ -409,8 +435,7 @@ Additionally: ## 2.0.51 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.50...@spectrum-css/underlay@2.0.51) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.50...@spectrum-css/underlay@2.0.51) **Note:** Version bump only for package @spectrum-css/underlay @@ -418,8 +443,7 @@ Additionally: ## 2.0.50 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.49...@spectrum-css/underlay@2.0.50) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/underlay@2.0.49...@spectrum-css/underlay@2.0.50) **Note:** Version bump only for package @spectrum-css/underlay diff --git a/components/underlay/dist/metadata.json b/components/underlay/dist/metadata.json index 6b35fb4f7f0..21a3e4aa1d0 100644 --- a/components/underlay/dist/metadata.json +++ b/components/underlay/dist/metadata.json @@ -30,7 +30,6 @@ "--spectrum-black-rgb", "--spectrum-overlay-opacity" ], - "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/underlay/package.json b/components/underlay/package.json index 9ba89f956e1..f96ca8546fe 100644 --- a/components/underlay/package.json +++ b/components/underlay/package.json @@ -25,15 +25,11 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/commons": "workspace:^", - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/commons": "11.0.0", + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/well/CHANGELOG.md b/components/well/CHANGELOG.md index ed493218f28..b2ff5caaf82 100644 --- a/components/well/CHANGELOG.md +++ b/components/well/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.3.1-next.0 + +### Patch Changes + +- [#2352](https://github.com/adobe/spectrum-css/pull/2352) [`2850ef5`](https://github.com/adobe/spectrum-css/commit/2850ef5439d50fd47db81783c861a63ffa42414f) Thanks [@pfulton](https://github.com/pfulton)! - Define undefined custom properties from themes directory. + +- Updated dependencies [[`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76)]: + - @spectrum-css/tokens@14.0.0-next.12 + ## 7.0.1 ### Patch Changes @@ -137,16 +146,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 5.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.4...@spectrum-css/well@5.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.4...@spectrum-css/well@5.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -154,8 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.4 -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.3...@spectrum-css/well@4.1.4) +🗓 2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.3...@spectrum-css/well@4.1.4) **Note:** Version bump only for package @spectrum-css/well @@ -163,8 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.3 -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.2...@spectrum-css/well@4.1.3) +🗓 2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.2...@spectrum-css/well@4.1.3) **Note:** Version bump only for package @spectrum-css/well @@ -172,8 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.2 -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.1...@spectrum-css/well@4.1.2) +🗓 2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.1.1...@spectrum-css/well@4.1.2) **Note:** Version bump only for package @spectrum-css/well @@ -181,8 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/well @@ -190,8 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.1.0 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.10...@spectrum-css/well@4.1.0) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.10...@spectrum-css/well@4.1.0) ### ✨ Features @@ -201,8 +202,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.10 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.9...@spectrum-css/well@4.0.10) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.9...@spectrum-css/well@4.0.10) **Note:** Version bump only for package @spectrum-css/well @@ -210,8 +210,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.9 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.8...@spectrum-css/well@4.0.9) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.8...@spectrum-css/well@4.0.9) **Note:** Version bump only for package @spectrum-css/well @@ -219,8 +218,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.8 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.6...@spectrum-css/well@4.0.8) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.6...@spectrum-css/well@4.0.8) **Note:** Version bump only for package @spectrum-css/well @@ -228,8 +226,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.7 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.6...@spectrum-css/well@4.0.7) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.6...@spectrum-css/well@4.0.7) **Note:** Version bump only for package @spectrum-css/well @@ -237,8 +234,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.6 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.5...@spectrum-css/well@4.0.6) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.5...@spectrum-css/well@4.0.6) **Note:** Version bump only for package @spectrum-css/well @@ -246,8 +242,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.5 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.4...@spectrum-css/well@4.0.5) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.4...@spectrum-css/well@4.0.5) **Note:** Version bump only for package @spectrum-css/well @@ -255,8 +250,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.4 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.3...@spectrum-css/well@4.0.4) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.3...@spectrum-css/well@4.0.4) **Note:** Version bump only for package @spectrum-css/well @@ -264,8 +258,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.3 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.2...@spectrum-css/well@4.0.3) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.2...@spectrum-css/well@4.0.3) **Note:** Version bump only for package @spectrum-css/well @@ -273,8 +266,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.2 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.1...@spectrum-css/well@4.0.2) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.1...@spectrum-css/well@4.0.2) **Note:** Version bump only for package @spectrum-css/well @@ -282,8 +274,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.1 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.0...@spectrum-css/well@4.0.1) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@4.0.0...@spectrum-css/well@4.0.1) **Note:** Version bump only for package @spectrum-css/well @@ -291,13 +282,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 4.0.0 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.49...@spectrum-css/well@4.0.0) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.49...@spectrum-css/well@4.0.0) \*feat(well)!: migrate to use spectrum-tokens([b362c23](https://github.com/adobe/spectrum-css/commit/b362c23)) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Well to use spectrum-tokens @@ -306,8 +295,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.49 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.48...@spectrum-css/well@3.0.49) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.48...@spectrum-css/well@3.0.49) ### 🔙 Reverts @@ -317,8 +305,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.48 -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.47...@spectrum-css/well@3.0.48) +🗓 2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.47...@spectrum-css/well@3.0.48) **Note:** Version bump only for package @spectrum-css/well @@ -326,8 +313,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.47 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.46...@spectrum-css/well@3.0.47) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.46...@spectrum-css/well@3.0.47) **Note:** Version bump only for package @spectrum-css/well @@ -335,8 +321,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.46 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.45...@spectrum-css/well@3.0.46) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.45...@spectrum-css/well@3.0.46) **Note:** Version bump only for package @spectrum-css/well @@ -344,8 +329,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.45 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.44...@spectrum-css/well@3.0.45) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.44...@spectrum-css/well@3.0.45) **Note:** Version bump only for package @spectrum-css/well @@ -353,8 +337,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.44 -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.43...@spectrum-css/well@3.0.44) +🗓 2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.43...@spectrum-css/well@3.0.44) ### 🐛 Bug fixes @@ -364,8 +347,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.43 -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.42...@spectrum-css/well@3.0.43) +🗓 2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.42...@spectrum-css/well@3.0.43) **Note:** Version bump only for package @spectrum-css/well @@ -373,8 +355,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.42 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.41...@spectrum-css/well@3.0.42) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/well@3.0.41...@spectrum-css/well@3.0.42) **Note:** Version bump only for package @spectrum-css/well diff --git a/components/well/dist/metadata.json b/components/well/dist/metadata.json index 3587fa73f7a..c9fdd7f6da1 100644 --- a/components/well/dist/metadata.json +++ b/components/well/dist/metadata.json @@ -27,7 +27,6 @@ "--spectrum-gray-1000-rgb", "--spectrum-gray-800-rgb" ], - "system-theme": ["--system-well-border-color"], "passthroughs": [], "high-contrast": [] } diff --git a/components/well/index.css b/components/well/index.css index 26abcff0032..2d071ac6a02 100644 --- a/components/well/index.css +++ b/components/well/index.css @@ -11,10 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/spectrum-two.css"; - .spectrum-Well { + --spectrum-well-border-color: rgba(var(--spectrum-gray-1000-rgb), 0.05); + --spectrum-well-border-width: var(--spectrum-border-width-100); + --spectrum-well-border-color: rgba(var(--spectrum-gray-1000-rgb), .05); --spectrum-well-content-color: var(--spectrum-body-color); --spectrum-well-background-color: rgba(var(--spectrum-gray-800-rgb), 0.02); diff --git a/components/well/package.json b/components/well/package.json index d35c35723b4..26c9e1b91d0 100644 --- a/components/well/package.json +++ b/components/well/package.json @@ -25,14 +25,10 @@ }, "main": "dist/index.css", "peerDependencies": { - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" }, "devDependencies": { - "@spectrum-css/tokens": "16.0.0", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", - "prettier": "^3.4.2", - "stylelint": "^16.9.0" + "@spectrum-css/tokens": "16.0.0" }, "keywords": [ "design-system", diff --git a/components/well/stories/template.js b/components/well/stories/template.js index c9645cfdcdb..5e8210305d1 100644 --- a/components/well/stories/template.js +++ b/components/well/stories/template.js @@ -5,9 +5,6 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import "../index.css"; -import "../themes/spectrum.css"; -/* Must be imported last */ -import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Well", diff --git a/components/well/themes/express.css b/components/well/themes/express.css deleted file mode 100644 index 9fd550418f2..00000000000 --- a/components/well/themes/express.css +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--express */ - -@import "./spectrum.css"; diff --git a/components/well/themes/spectrum-two.css b/components/well/themes/spectrum-two.css deleted file mode 100644 index f4a2ef0983e..00000000000 --- a/components/well/themes/spectrum-two.css +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -@container style(--system: spectrum) { - .spectrum-Well { - --spectrum-well-border-color: rgba(var(--spectrum-gray-1000-rgb), 0.05); - } -} diff --git a/components/well/themes/spectrum.css b/components/well/themes/spectrum.css deleted file mode 100644 index 5cfe7120396..00000000000 --- a/components/well/themes/spectrum.css +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/* @combine .spectrum.spectrum--legacy */ - -@import "./spectrum-two.css"; - -@container style(--system: legacy) { - .spectrum-Well { - --spectrum-well-border-color: rgba(var(--spectrum-gray-900-rgb), 0.05); - } -} diff --git a/nx.json b/nx.json index 3b56761c597..fd9504fea01 100644 --- a/nx.json +++ b/nx.json @@ -8,7 +8,7 @@ } }, "namedInputs": { - "core": ["{projectRoot}/*.css", "{projectRoot}/themes/*.css"], + "core": ["{projectRoot}/*.css"], "eslint": ["{workspaceRoot}/.eslintrc"], "metadata": ["{projectRoot}/metadata/*.json"], "prettier": ["{workspaceRoot}/.prettierrc"], @@ -54,9 +54,7 @@ }, "outputs": [ "{projectRoot}/dist/*.{css,json}", - "{projectRoot}/dist/themes/*.css", - "{projectRoot}/dist/*.map", - "{projectRoot}/dist/themes/*.css.map" + "{projectRoot}/dist/*.map" ] }, "clean": { diff --git a/package.json b/package.json index 8e36ca64ad7..8d893be4e1e 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "refresh:config": "bash ./tasks/chromatic-config-creation.sh || exit 0", "refresh:env": "bash ./tasks/copy-env-from-root.sh || exit 0", "release": "yarn ci && changeset publish", - "report": "yarn reporter tag:component", + "report": "cross-env NODE_ENV=production yarn reporter tag:component", "reporter": "nx run-many --target report --projects", "start": "cross-env NODE_ENV=development nx start storybook", "test": "cross-env NODE_ENV=development nx test storybook", @@ -71,10 +71,7 @@ "@commitlint/cli": "^19.6.1", "@commitlint/config-conventional": "^19.6.0", "@nx/devkit": "^19.8.2", - "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.6.0", - "@spectrum-tools/postcss-add-theming-layer": "workspace:^", - "@spectrum-tools/postcss-property-rollup": "workspace:^", - "@spectrum-tools/postcss-rgb-mapping": "workspace:^", + "@spectrum-tools/postcss-rgb-mapping": "^1.0.0", "@yarnpkg/types": "^4.0.0", "at-rule-packer": "^0.4.2", "autoprefixer": "^10.4.19", diff --git a/plugins/postcss-add-theming-layer/CHANGELOG.md b/plugins/postcss-add-theming-layer/CHANGELOG.md deleted file mode 100644 index 994dea61891..00000000000 --- a/plugins/postcss-add-theming-layer/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -# Change Log - -## 1.0.0 - -### Major Changes - -- [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)! - The PostCSS plugin previously published as `postcss-splitinator`. This new package creates a polyfill for style queries by creating a layer of `--system` prefixed custom properties to be loaded by attaching a unique selector. This allows the toggling of component-level property definitions by theme or context. There are many options available to customize the output that are documented in the package [README](plugins/postcss-add-theming-layer/README.md). diff --git a/plugins/postcss-add-theming-layer/README.md b/plugins/postcss-add-theming-layer/README.md deleted file mode 100644 index 610310f5662..00000000000 --- a/plugins/postcss-add-theming-layer/README.md +++ /dev/null @@ -1,115 +0,0 @@ -# postcss-add-theming-layer - -> Leveraging style container queries to create an abstraction layer for supporting multiple theming systems. - -## Installation - -Add the dependency to your project: - -```sh -npm install postcss-add-theming-layer -``` - -or - -```sh -yarn add -DW postcss-add-theming-layer -``` - -Use the plugin in your PostCSS configuration: - -```js -module.exports = { - plugins: { - "postcss-add-theming-layer": {}, - }, -}; -``` - -or as part of your CLI command: - -```sh -postcss -u postcss-add-theming-layer -o dist/index.css src/index.css -``` - -## Options - -### `selectorPrefix` [string] - -This optional input will prefix the new theming layer selector with the provided string. This can be useful if you want to namespace the injected selectors for the new theming layer to avoid conflicts. - -### `skipMapping` [boolean=false] - -Skip the mapping of the variables to the system variables. This can be useful if you only want to extract the variables and not map them to the system variables. - -### `preserveVariables` [boolean=true] - -When used with `skipMapping`, this option will preserve the variables defined inside the container query in the output by injecting them to the root selector. - -### `referencesOnly` [boolean=false] - -This option will only output those variables that are referencing the newly created system variables and not the system variables themselves. This can be used as a bridge between an old and new implementation for the component. - -### `stripLocalSelectors` [boolean=false] - -This option will remove the local selectors (those that map to system variables) from the output leaving only the system definitions. - -### `processIdentifier` [(identifierValue: string, identifierName: string) => string]` - -Customize the selectors that variables are placed in. Passed the value and key of the variable that was passed to the container, i.e. `identifierValue = spectrum` and `identifierName = system` for the example below. By default, `identifierName` is used as-is. - -## Usage - -This plugin turns this: - -```css -@container style(--system: legacy) { - .component { - --background-color: blue; - } - .component.is-selected { - --background-color: darkblue; - } - .component .icon { - --color: gray; - } -} - -@container style(--system: modern) { - .component { - --background-color: purple; - } - .component.is-selected { - --background-color: darkpurple; - } - .component .icon { - --color: white; - } -} -``` - -Into this: - -```css -.legacy { - --system-component-background-color: blue; - --system-component-selected-background-color: darkblue; -} - -.modern { - --system-component-background-color: purple; - --system-component-selected-background-color: darkpurple; -} - -.component { - --background-color: var(--system-component-background-color); -} - -.component.is-selected { - --background-color: var(--system-component-selected-background-color); -} -``` - -## Usage notes - -This plugin will ignore any underscore-prefixed variables, as they are considered private and not part of the theming layer. diff --git a/plugins/postcss-add-theming-layer/expected/basic.css b/plugins/postcss-add-theming-layer/expected/basic.css deleted file mode 100644 index 711a906a74d..00000000000 --- a/plugins/postcss-add-theming-layer/expected/basic.css +++ /dev/null @@ -1,41 +0,0 @@ -.legacy { - --system-component-background-color: blue; - --system-component-selected-background-color: darkblue; - --system-component-icon-color: gray; - --system-where-component-background-color: blue; - --system-component-where-selected-background-color: darkblue; - --system-component-has-icon-color: gray -} - -.modern { - --system-component-background-color: purple; - --system-component-selected-background-color: indigo; - --system-component-icon-color: white; - --system-where-component-background-color: indigo; - --system-component-where-selected-background-color: darkpurple; - --system-component-has-icon-color: white -} - -.component { - --background-color: var(--system-component-background-color) -} - -.component.is-selected { - --background-color: var(--system-component-selected-background-color) -} - -.component .icon { - --color: var(--system-component-icon-color) -} - -:where(.component) { - --background-color: var(--system-where-component-background-color) -} - -.component:where(:selected,.is-selected) { - --background-color: var(--system-component-where-selected-background-color) -} - -.component:has(.icon) { - --color: var(--system-component-has-icon-color) -} diff --git a/plugins/postcss-add-theming-layer/fixtures/basic.css b/plugins/postcss-add-theming-layer/fixtures/basic.css deleted file mode 100644 index 50692d97093..00000000000 --- a/plugins/postcss-add-theming-layer/fixtures/basic.css +++ /dev/null @@ -1,49 +0,0 @@ -@container style(--system: legacy) { - .component { - --background-color: blue; - } - .component.is-selected { - --background-color: darkblue; - } - .component .icon { - --color: gray; - } - - :where(.component) { - --background-color: blue; - } - - .component:where(:selected, .is-selected) { - --background-color: darkblue; - } - - .component:has(.icon) { - --color: gray; - } -} - -@container style(--system: modern) { - .component { - --background-color: purple; - } - - .component.is-selected { - --background-color: indigo; - } - - .component .icon { - --color: white; - } - - :where(.component) { - --background-color: indigo; - } - - .component:where(:selected, .is-selected) { - --background-color: darkpurple; - } - - .component:has(.icon) { - --color: white; - } -} diff --git a/plugins/postcss-add-theming-layer/index.js b/plugins/postcss-add-theming-layer/index.js deleted file mode 100644 index fa9904a5801..00000000000 --- a/plugins/postcss-add-theming-layer/index.js +++ /dev/null @@ -1,201 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -const selectorParser = require("postcss-selector-parser"); -const { - cleanPropertyName, - extractFallbackValue, - getVariableName, - checkForReplacement -} = require("./utilities"); - -/** - * @typedef Options - * @property {string} [selectorPrefix] - The prefix to use for the new selectors - * @property {boolean} [skipMapping=false] - Skip the mapping of the variables to the system variables. This can be useful if you only want to extract the variables and not map them to the system variables. - * @property {boolean} [preserveVariables=false] - When used with `skipMapping`, this option will preserve the variables defined inside the container query in the output by injecting them to the root selector. - * @property {boolean} [referencesOnly=false] - This option will only output those variables that are referencing the newly created system variables and not the system variables themselves. This can be used as a bridge between an old and new implementation for the component. - * @property {boolean} [stripLocalSelectors=false] - This option will remove the local selectors (those that map to system variables) from the output leaving only the system definitions. - * @property {(identifierValue: string, identifierName: string) => string} [processIdentifier] - A function that processes the identifier value and creates a new selector -*/ - -/** @type import('postcss').PluginCreator<Options> */ -module.exports = ({ - selectorPrefix, - skipMapping = false, - preserveVariables = true, - referencesOnly = false, - stripLocalSelectors = false, - processIdentifier, -}) => ({ - postcssPlugin: "postcss-add-theming-layer", - OnceExit(root, { Rule, Declaration }) { - // Fallback function to process the identifier value and create a new selector - if (typeof processIdentifier !== "function") { - // If the base prefix exists and differs from the identifier value, append the identifier value to the base prefix as the new class name - processIdentifier = (identifierValue) => selectorPrefix && selectorPrefix !== identifierValue ? `.${selectorPrefix}--${identifierValue}` : `.${identifierValue}`; - } - - // This object will store the mappings for each selector - const systemMap = new Map(); - const conversionMap = new Map(); - - // Step 1: loop over all the container style queries and create a new selector for each - // to be used as a theming toggle for components where style queries are not natively supported - // @todo should there be a support check around this? - root.walkAtRules(/container/, (container) => { - if (skipMapping) { - if (preserveVariables) { - // Iterate over each rule in the container and append them to the root - container.walkRules((rule) => { - root.insertAfter(root.first, rule); - }); - } - - container.remove(); - return; - } - - // Extract the custom property name and it's value to use in creating the new selector - // Identifier name is the prefix used for the custom properties created for the bridge - // Identifier value is used to create the new selector - const [, identifierName, identifierValue] = container.params.match( - /\(\s*--(.*?)\s*[:=]\s*(.*?)\s*\)/ - ); - - const selectorMap = systemMap.get(identifierName) ?? {}; - - // Create a new rule using this selector to attach the new system-level custom properties - let rule; - - // If we're only interested in references, we can skip the next step of appending the new rule - if (!referencesOnly) { - rule = new Rule({ - selector: processIdentifier(identifierValue, identifierName), - source: container.source, - }); - - container.parent.insertAfter(container, rule); - } - - // Iterate over each custom property in the container to create a new mapping that supports the new selector - container.walkDecls(/^--[A-Z|a-z]/, (decl) => { - selectorParser((selectors) => { - selectors.each((s) => { - // Check if the property is already mapped - const variableName = getVariableName(s, decl.prop, { - identifierName, - identifierValue, - selectorPrefix - }); - - const newDecl = decl.clone({ - prop: variableName, - }); - newDecl.raws.before = "\n "; - - const uniqueSet = conversionMap.get(decl.prop) ?? new Set(); - conversionMap.set(decl.prop, uniqueSet.add(variableName)); - - if (!referencesOnly) { - rule.append(newDecl); - } - - const selector = s.toString(); - selectorMap[selector] = selectorMap[selector] ?? {}; - - const selectorNode = selectorMap[selector]; - - // Check for fallbacks in the var() function - const fallbackValue = extractFallbackValue(decl.value); - if (fallbackValue) { - // The final declaration should have the override present - selectorNode[decl.prop] = `var(${fallbackValue}, var(${variableName}))`; - - // The system-level declaration should only have the fallback - newDecl.value = `var(${fallbackValue})`; - } - else { - selectorNode[decl.prop] = `var(${variableName})`; - } - - selectorMap[selector] = selectorNode; - }); - }).processSync(decl.parent.selector, { lossless: false }); - }); - - systemMap.set(identifierName, selectorMap); - - if (rule) { - rule.walkDecls((decl) => { - const convertedProps = [...conversionMap.keys()]; - - if (!convertedProps.some((key) => decl.value.includes(key))) return; - - // loop over all the updated properties and update internal references to the new variables - for (let [prop, mappedValues] of conversionMap.entries()) { - // Check if this key exists in the value - if (!decl.value.match(new RegExp(`${prop}[^-]`))) continue; - - const systemValues = [...mappedValues]; - - // If there is only one system variable, replace all instances of the prop with the system variable - if (systemValues.length === 1) { - decl.value = decl.value.replace(new RegExp(prop, "g"), systemValues[0]); - continue; - } - - const replacement = checkForReplacement(decl, prop, [ - `--${identifierName}-${cleanPropertyName(prop, { selectorPrefix })}`, - ], systemValues); - - if (replacement) { - decl.value = replacement; - continue; - } - - // @note: this will be an empty variable because we didn't find a match but it will match the format of the other variables - decl.value = decl.value.replace(new RegExp(decl.prop, "g"), `--${identifierName}-${cleanPropertyName(decl.prop, { selectorPrefix })}`); - } - }); - } - - container.remove(); - }); - - // Our job here is done - if (skipMapping || stripLocalSelectors) return; - - const rules = []; - for (let [, selectorMap] of systemMap.entries()) { - // This adds the new selectors to the root with their respective system-level mappings - for (let [selector, props] of Object.entries(selectorMap)) { - const rule = new Rule({ selector }); - - for (let [prop, value] of Object.entries(props)) { - const decl = new Declaration({ prop, value }); - decl.raws.before = "\n "; - - rule.append(decl); - } - - rules.push(rule); - } - } - - // Insert the new rules in order after the first rule in the root - root.append(rules); - }, -}); - -module.exports.postcss = true; diff --git a/plugins/postcss-add-theming-layer/package.json b/plugins/postcss-add-theming-layer/package.json deleted file mode 100644 index 038b4965dd8..00000000000 --- a/plugins/postcss-add-theming-layer/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@spectrum-tools/postcss-add-theming-layer", - "version": "1.0.0", - "description": "Leveraging style container queries to create an abstraction layer for supporting multiple theming systems", - "license": "Apache-2.0", - "author": "Adobe", - "contributors": [ - "Cassondra Roberts <castastrophe@users.noreply.github.com>" - ], - "main": "index.js", - "files": [ - "package.json", - "index.js", - "*.md" - ], - "dependencies": { - "postcss-selector-parser": "^6.1.1", - "postcss-values-parser": "^6.0.2" - }, - "peerDependencies": { - "postcss": ">=8" - }, - "devDependencies": { - "ava": "^6.2.0", - "c8": "^10.1.2", - "postcss": "^8.4.49" - }, - "keywords": [ - "css", - "theming", - "custom properties", - "postcss", - "postcss-plugin" - ], - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "plugins/postcss-add-theming-layer" - }, - "bugs": { - "url": "https://github.com/adobe/spectrum-css/issues" - }, - "homepage": "https://opensource.adobe.com/spectrum-css/" -} diff --git a/plugins/postcss-add-theming-layer/project.json b/plugins/postcss-add-theming-layer/project.json deleted file mode 100644 index 7797edce0f8..00000000000 --- a/plugins/postcss-add-theming-layer/project.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "postcss-add-theming-layer", - "tags": ["tooling", "postcss"], - "targets": { - "format": { - "defaultConfiguration": "plugins" - }, - "lint": { - "defaultConfiguration": "plugins" - }, - "test": { - "defaultConfiguration": "plugins" - } - } -} diff --git a/plugins/postcss-add-theming-layer/test.js b/plugins/postcss-add-theming-layer/test.js deleted file mode 100644 index ed431c85f20..00000000000 --- a/plugins/postcss-add-theming-layer/test.js +++ /dev/null @@ -1,43 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -const fs = require("fs"); -const test = require("ava"); -const postcss = require("postcss"); -const plugin = require("./index.js"); - -function compare( - t, - fixtureFilePath, - expectedFilePath, - options = {} -) { - return postcss([plugin(options)]) - .process(readFile(`./fixtures/${fixtureFilePath}`), { - from: fixtureFilePath, - }) - .then((result) => { - const actual = result.css; - const expected = readFile(`./expected/${expectedFilePath}`); - t.is(actual, expected); - t.is(result.warnings().length, 0); - }); -} - -function readFile(filename) { - return fs.readFileSync(filename, "utf8"); -} - -test("create basic output", (t) => { - return compare(t, "basic.css", "basic.css"); -}); diff --git a/plugins/postcss-add-theming-layer/utilities.js b/plugins/postcss-add-theming-layer/utilities.js deleted file mode 100644 index 0988f27ce38..00000000000 --- a/plugins/postcss-add-theming-layer/utilities.js +++ /dev/null @@ -1,244 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -const valuesParser = require("postcss-values-parser"); - -/** - * Clean the property name to be used as a variable name - * @param {string} prop - * @param {{ selectorPrefix: string }} options - * @returns {string} The clean variable name - */ -function cleanPropertyName(prop, { selectorPrefix = "" } = {}) { - if (!prop) return; - return ( - prop - // Remove the provided prefix if used - .replace(new RegExp(selectorPrefix, "gi"), "") - // Remove mod from the new property name - .replace(/-?mod-/g, "-") - // Remove state-based prefix - .replace(/is-/g, "") - // Remove the internal identifier marker - .replace(/^_/g, "") - // If a string has a lowercase letter followed by an uppercase letter, insert a dash between them - .replace(/([a-z])([A-Z])/g, "$1-$2") - // If a string has two uppercase letters followed by a lowercase letter, insert a dash between them - .replace(/([A-Z])([A-Z])([a-z])/g, "$1-$2$3") - .replace(/([a-z])([0-9])/g, "$1-$2") - // Remove all whitespace - .replace(/\s+/g, "") - // Remove non-alphanumeric characters - .replace(/\W/g, "-") - // Replace multiple dashes with a single dash - .replace(/-+/g, "-") - // Remove any leading or trailing dashes - .replace(/^-/g, "") - .replace(/-$/g, "") - .toLowerCase() - ); -} - -/** - * Extract the fallback value from a var() function - * @param {string} declValue - * @returns {string} The fallback value - */ -function extractFallbackValue(declValue) { - const parsed = valuesParser.parse(declValue); - let fallbackValue; - - parsed.walk((node) => { - if (node.type !== "func" || node.value !== "var") { - return; - } - - // Assuming the second argument of the var() function is the fallback - const fallbackNode = node.nodes[2]; - if (fallbackNode) { - // Convert the fallback node back to a string - fallbackValue = valuesParser.stringify(fallbackNode); - } - }); - - return fallbackValue; -} - -/** - * Get the base selector for a given selector - * @param {string} selector - * @param {{ selectorPrefix: string }} options - * @returns {string} The base selector - */ -function getBaseSelector(selector, { selectorPrefix = "" } = {}) { - let baseSelector; - - if (!selector || !selector.nodes) return baseSelector; - - // This regex is designed to pull spectrum-<ComponentName> out of a selector - const baseRegex = new RegExp( - `^(${selectorPrefix ? `${selectorPrefix}-` : ""}[A-Z][^\\W-.\\s]+)`, - ); - - // Iterate over the selector nodes to find a common root class name - const found = []; - selector.each((node) => { - if (node.type !== "class") return; - if (!node.value) return; - - const value = node.value ?? node.toString(); - const matches = value.match(baseRegex); - if (!matches) return; - - const [, foundSelector] = matches; - if (foundSelector) found.push(foundSelector); - }); - - if (found.length === 1) { - return cleanPropertyName(found[0], { selectorPrefix }); - } - - let countMap = new Map(); - - // Find and return the most common base selector in the array - found.forEach((s) => countMap.set(s, (countMap.get(s) || 0) + 1)); - - let count = 0; - for (let [s, c] of countMap.entries()) { - if (c > count) { - baseSelector = s; - count = c; - } - } - - // Remove the selector prefix from the returned base selector - return baseSelector ? cleanPropertyName(baseSelector, { selectorPrefix }) : baseSelector; -} - -/** - * Fallback function to process the name of the new variable - * @param {string} selector - * @param {string} prop - * @param {{ identifierName: string, identifierValue: string, selectorPrefix: string }} options - * @returns {string} The new variable name - */ -function getVariableName( - selector, - prop, - { selectorPrefix = "", identifierName, identifierValue } = {}, -) { - const baseSelector = getBaseSelector(selector, { selectorPrefix }) ?? ""; - - const clean = (prop) => - prop && - cleanPropertyName( - prop - .replace(new RegExp(selectorPrefix, "gi"), "") - // Remove the identifers if they exist - .replace(new RegExp(baseSelector, "gi"), "") - // Check for identifiers in the property name that don't include the dash - .replace(new RegExp(baseSelector?.replace(/-/g, ""), "gi"), "") - .replace(new RegExp(identifierName, "gi"), "") - .replace(new RegExp(identifierValue, "gi"), ""), - { selectorPrefix } - ); - - let property = []; - - function processSelector(node) { - if (node.type === "pseudo") { - property.push(node.value.slice(1)); - } - else if (node.type === "tag") { - property.push(node.value); - } - else if (node.type === "combinator") { - switch (node.value) { - case " ": // Descendant combinator - break; - case ">": - property.push("child-of"); - break; - case "+": - property.push("next-to"); - break; - case "~": - property.push("sibling-of"); - break; - } - } - else if (node.type === "class") { - if (node.value === baseSelector) return; - property.push(clean(node.value)); - return; - } - - if (!node.nodes) return; - node.each(processSelector); - } - - selector.each(processSelector); - - // Dedupe the property array, removing the 2nd instance of a property - property = property - .filter((value, index) => property.indexOf(value) === index) - .filter(Boolean); - - return `--${[identifierName, baseSelector, clean([...property, prop].filter(Boolean).join("-"))].filter(Boolean).join("-").toLowerCase()}`; -} - -/** - * Check for a replacement value based on the provided guesses - * @param {import('postcss').Declaration} decl - * @param {string} replace - * @param {string[]} guesses - * @param {string[]} systemValues - * @returns {string|undefined|void} The updated declaration value - */ -function checkForReplacement( - decl, - replace, - guesses = [], - systemValues = [], -) { - if (!decl || !replace || guesses.length === 0) return; - - const replacer = new RegExp(replace, "g"); - - for (const g of guesses) { - if (systemValues.includes(g)) { - return decl.value.replace(replacer, g); - } - - const values = systemValues.filter((value) => value.startsWith(g)); - if (values.length === 0) continue; - - if (values.length === 1) { - return decl.value.replace(replacer, values[0]); - } - - if (values.length > 1) { - return decl.value.replace(replacer, values[0]); - } - - continue; - } -} - -module.exports = { - cleanPropertyName, - extractFallbackValue, - getBaseSelector, - getVariableName, - checkForReplacement, -}; diff --git a/plugins/postcss-property-rollup/CHANGELOG.md b/plugins/postcss-property-rollup/CHANGELOG.md deleted file mode 100644 index ae0dcf99710..00000000000 --- a/plugins/postcss-property-rollup/CHANGELOG.md +++ /dev/null @@ -1,44 +0,0 @@ -# Change Log - -## 2.0.1 - -### Patch Changes - -- [#2775](https://github.com/adobe/spectrum-css/pull/2775) [`2452637`](https://github.com/adobe/spectrum-css/commit/2452637d1179b9b2b025dafeb5834720712413d7) Thanks [@castastrophe](https://github.com/castastrophe)! - Dependency minor and patch updates to support new features in tools leveraged - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -<a name="2.0.0"></a> - -## 2.0.0 - -🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/postcss-combininator@1.0.2...postcss-combininator@2.0.0) - -### 🛑 BREAKING CHANGES - -Upgrade to PostCSS v8 [bd6c40e](https://github.com/adobe/spectrum-css/commit/bd6c40eb5a4b43df94dff1f325502e5cd08b7f5f) - -<a name="1.0.2"></a> - -## 1.0.2 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/postcss-combininator@1.0.0...postcss-combininator@1.0.2) - -**Note:** Version bump only for package postcss-combininator - -<a name="1.0.1"></a> - -## 1.0.1 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/postcss-combininator@1.0.0...postcss-combininator@1.0.1) - -**Note:** Version bump only for package postcss-combininator - -<a name="1.0.0"></a> - -## 1.0.0 - -🗓 2023-03-27 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/postcss-combininator@1.0.0-beta.1...postcss-combininator@1.0.0) - -**Note:** Version bump only for package postcss-combininator diff --git a/plugins/postcss-property-rollup/README.md b/plugins/postcss-property-rollup/README.md deleted file mode 100644 index a7a653d2a1b..00000000000 --- a/plugins/postcss-property-rollup/README.md +++ /dev/null @@ -1,74 +0,0 @@ -# postcss-property-rollup - -> Combines multiple blocks of custom properties - -## Installation - -```sh -npm install postcss-property-rollup -``` - -## Usage - -On the command line: - -```sh -postcss -u postcss-property-rollup -o dist/index.css src/index.css -``` - -or in the PostCSS configuration: - -```js -module.exports = { - plugins: { - "postcss-property-rollup": {}, - }, -}; -``` - -This plugin turns this: - -```css -.lorem { - --spectrum-actionbutton-background-color: blue; - --spectrum-actionbutton-border-color: transparent; -} - -.ipsum { - --spectrum-actionbutton-background-color: purple; -} -``` - -Into this: - -```css -.ipsum { - --spectrum-actionbutton-border-color: transparent; - --spectrum-actionbutton-background-color: purple; -} -``` - -The resulting selector comes from the last rule unless a `newSelector` option is provided, and all duplicate properties in the subsequent rules override the previous declarations. - -## Options - -### `newSelector` - -Type: `string`<br> -Default: `null` - -The selector to use for the combined rule. If not provided, the last selector in the list will be used. - -### `ignore` - -Type: `string[]`<br> -Default: `[]` - -An array of selectors to ignore when combining rules. - -### `keyword` - -Type: `string`<br> -Default: `combine` - -The `@` prefixed comment keyword to search for when determining what code to roll-up into the new selector. diff --git a/plugins/postcss-property-rollup/expected/basic.css b/plugins/postcss-property-rollup/expected/basic.css deleted file mode 100644 index 201ab4356c5..00000000000 --- a/plugins/postcss-property-rollup/expected/basic.css +++ /dev/null @@ -1,4 +0,0 @@ -.spectrum--express { - --spectrum-actionbutton-background-color: purple; - --spectrum-actionbutton-border-color: transparent; -} diff --git a/plugins/postcss-property-rollup/fixtures/basic.css b/plugins/postcss-property-rollup/fixtures/basic.css deleted file mode 100644 index d7614ec6ee3..00000000000 --- a/plugins/postcss-property-rollup/fixtures/basic.css +++ /dev/null @@ -1,9 +0,0 @@ -/* @combine */ -.spectrum { - --spectrum-actionbutton-background-color: blue; - --spectrum-actionbutton-border-color: transparent; -} - -.spectrum--express { - --spectrum-actionbutton-background-color: purple; -} diff --git a/plugins/postcss-property-rollup/index.js b/plugins/postcss-property-rollup/index.js deleted file mode 100644 index 2d986684c94..00000000000 --- a/plugins/postcss-property-rollup/index.js +++ /dev/null @@ -1,98 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -/** - * @typedef Options - * @property ignore {string[]} - List of selectors to ignore - * @property newSelector {string} - New selector to create with the combined declarations - */ - -/** @type import('postcss').PluginCreator<Options> */ -module.exports = ({ - ignore = [], - newSelector, -} = {}) => { - return { - postcssPlugin: "postcss-property-rollup", - OnceExit(root, { Rule }) { - let shouldCombine = false; - let localSelector; - // Check the file for a comment with @combine and fetch the preceeding selector(s) - root.walkComments((comment) => { - if (!comment.text.includes("@combine")) return; - - shouldCombine = true; - - // Remove the @combine from the string - const selectors = comment.text.replace("@combine", "").trim(); - - comment.remove(); - - if (!selectors) return; - - // Prefer the selectors from the comment over one provided in the config - if (!localSelector) localSelector = selectors; - }); - - if (!shouldCombine) return; - - if (localSelector) newSelector = localSelector; - - const rules = []; - const declarations = {}; - - root.walkRules((rule) => { - if (ignore.includes(rule.selector)) return; - rules.push(rule); - rule.walkDecls(/^--/, (decl) => { - declarations[decl.prop] = decl; - decl.remove(); - }); - }); - - if (!rules.length) return; - - if (newSelector) { - // Create a new rule with the combined declarations - const newRule = new Rule({ selector: newSelector }); - for (const decl of Object.values(declarations)) { - newRule.append(decl); - } - root.append(newRule); - - // Remove the rules from the root - rules.forEach((rule) => { - rule.remove(); - }); - - return; - } - - // If no new selector is provided, combine the declarations into the last rule - const lastIdx = rules.length - 1; - const lastRule = rules[lastIdx]; - - if (!lastRule) return; - - rules.forEach((rule, index) => { - if (index !== lastIdx) rule.remove(); - }); - - for (const decl of Object.values(declarations)) { - lastRule.append(decl); - } - }, - }; -}; - -module.exports.postcss = true; diff --git a/plugins/postcss-property-rollup/package.json b/plugins/postcss-property-rollup/package.json deleted file mode 100644 index db9704faeaa..00000000000 --- a/plugins/postcss-property-rollup/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@spectrum-tools/postcss-property-rollup", - "version": "0.0.0", - "description": "Combines custom properties from multiple selectors into a single selector", - "license": "Apache-2.0", - "author": "Adobe", - "contributors": [ - "Cassondra Roberts <castastrophe@users.noreply.github.com>" - ], - "main": "index.js", - "files": [ - "package.json", - "index.js", - "*.md" - ], - "peerDependencies": { - "postcss": ">=8" - }, - "devDependencies": { - "ava": "^6.2.0", - "c8": "^10.1.2", - "postcss": "^8.4.49" - }, - "keywords": [ - "css", - "theming", - "custom properties", - "postcss", - "postcss-plugin" - ], - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "plugins/postcss-property-rollup" - }, - "bugs": { - "url": "https://github.com/adobe/spectrum-css/issues" - }, - "homepage": "https://opensource.adobe.com/spectrum-css/" -} diff --git a/plugins/postcss-property-rollup/project.json b/plugins/postcss-property-rollup/project.json deleted file mode 100644 index 681869f7a14..00000000000 --- a/plugins/postcss-property-rollup/project.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "postcss-property-rollup", - "tags": ["tooling", "postcss"], - "targets": { - "format": { - "defaultConfiguration": "plugins" - }, - "lint": { - "defaultConfiguration": "plugins" - }, - "test": { - "defaultConfiguration": "plugins" - } - } -} diff --git a/plugins/postcss-property-rollup/test.js b/plugins/postcss-property-rollup/test.js deleted file mode 100644 index 2e2923f7b91..00000000000 --- a/plugins/postcss-property-rollup/test.js +++ /dev/null @@ -1,50 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at <http://www.apache.org/licenses/LICENSE-2.0> - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -const fs = require("fs"); -const test = require("ava"); -const postcss = require("postcss"); -const plugin = require("./index.js"); - -function compare( - t, - fixtureFilePath, - expectedFilePath, - options = { - processIdentifier: (identifier) => { - if (identifier === "express") { - return "spectrum--express"; - } - return identifier; - }, - } -) { - return postcss([plugin(options)]) - .process(readFile(`./fixtures/${fixtureFilePath}`), { - from: fixtureFilePath, - }) - .then((result) => { - const actual = result.css; - const expected = readFile(`./expected/${expectedFilePath}`); - t.is(actual, expected); - t.is(result.warnings().length, 0); - }); -} - -function readFile(filename) { - return fs.readFileSync(filename, "utf8"); -} - -test("create basic output", (t) => { - return compare(t, "basic.css", "basic.css"); -}); diff --git a/plugins/postcss-rgb-mapping/index.js b/plugins/postcss-rgb-mapping/index.js index 155a1c68cfe..248c928e991 100644 --- a/plugins/postcss-rgb-mapping/index.js +++ b/plugins/postcss-rgb-mapping/index.js @@ -24,7 +24,7 @@ function rgbMappingFunction ({ colorFunctionalNotation = false, }) { return { - postcssPlugin: "postcss-rgb-mapping", + postcssPlugin: "@spectrum-tools/postcss-rgb-mapping", /** @type {import('postcss').DeclarationProcessor} */ Declaration(decl, { Warning }) { const { prop, value } = decl; diff --git a/plugins/stylelint-no-missing-var/CHANGELOG.md b/plugins/stylelint-no-missing-var/CHANGELOG.md index 488fd55b0e5..afd51cb6f1a 100644 --- a/plugins/stylelint-no-missing-var/CHANGELOG.md +++ b/plugins/stylelint-no-missing-var/CHANGELOG.md @@ -25,8 +25,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-tools/stylelint-no-missing-var @@ -34,8 +33,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.3.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-missing-var@1.2.0...@spectrum-tools/stylelint-no-missing-var@1.3.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-missing-var@1.2.0...@spectrum-tools/stylelint-no-missing-var@1.3.0) ### ✨ Features @@ -45,8 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.0 -🗓 -2024-01-16 +🗓 2024-01-16 ### ✨ Features @@ -56,8 +53,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2023-06-01 +🗓 2023-06-01 ### ✨ Features diff --git a/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md b/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md index 893f6a542b4..3640158bdf5 100644 --- a/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md +++ b/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md @@ -33,8 +33,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.3.2 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.1...@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.2) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.1...@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.2) **Note:** Version bump only for package @spectrum-tools/stylelint-no-unknown-custom-properties @@ -42,8 +41,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.3.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-tools/stylelint-no-unknown-custom-properties @@ -51,8 +49,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.3.0 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-unknown-custom-properties@1.2.2...@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.0) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-tools/stylelint-no-unknown-custom-properties@1.2.2...@spectrum-tools/stylelint-no-unknown-custom-properties@1.3.0) ### ✨ Features @@ -62,8 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.2.2 -🗓 -2024-01-16 +🗓 2024-01-16 **Note:** Version bump only for package @spectrum-tools/stylelint-no-unknown-custom-properties diff --git a/plugins/stylelint-no-unknown-custom-properties/index.js b/plugins/stylelint-no-unknown-custom-properties/index.js index 443af61c20e..69ec3f8ad67 100644 --- a/plugins/stylelint-no-unknown-custom-properties/index.js +++ b/plugins/stylelint-no-unknown-custom-properties/index.js @@ -30,7 +30,6 @@ const messages = ruleMessages(ruleName, { expected: (prop) => `Custom property ${prop.magenta} not defined`, }); -import fg from "fast-glob"; import { parse } from "postcss"; import valuesParser from "postcss-values-parser"; @@ -71,14 +70,6 @@ const ruleFunction = (enabled, options = {}) => { const sharedDefinitions = new Set(); - for (const themePath of fg.sync(["themes/*.css"], { cwd: componentRoot, absolute: true })) { - const content = readFileSync(themePath, "utf8"); - if (!content) continue; - parse(content).walkDecls(/^--/, ({ prop }) => { - sharedDefinitions.add(prop); - }); - } - function fetchResolutions(depName) { let req; try { diff --git a/plugins/stylelint-theme-alignment/CHANGELOG.md b/plugins/stylelint-theme-alignment/CHANGELOG.md deleted file mode 100644 index 53b239e8091..00000000000 --- a/plugins/stylelint-theme-alignment/CHANGELOG.md +++ /dev/null @@ -1,19 +0,0 @@ -# Change Log - -## 1.2.0 - -### Minor Changes - -- [#3502](https://github.com/adobe/spectrum-css/pull/3502) [`562396e`](https://github.com/adobe/spectrum-css/commit/562396eaf21769341f78ea3761393b65f00e751b) Thanks [@castastrophe](https://github.com/castastrophe)! - Fixes a bug where the source file is expected to be "spectrum-two" instead of "spectrum". - -## 1.1.0 - -### Minor Changes - -- [#3403](https://github.com/adobe/spectrum-css/pull/3403) [`48626b8`](https://github.com/adobe/spectrum-css/commit/48626b8ca11043d290c0fe987ec501b88bd6e339) Thanks [@castastrophe](https://github.com/castastrophe)! - Allow the base filename to be passed into the tool so that the core theme can be updated. Great preparations for S2 roll-out when spectrum-two.css theme files will become our primary source of theme content. - -## 1.0.0 - -### Major Changes - -- [#3026](https://github.com/adobe/spectrum-css/pull/3026) [`544a803`](https://github.com/adobe/spectrum-css/commit/544a8039e84423a4db3137a0688f27b7812e291f) Thanks [@castastrophe](https://github.com/castastrophe)! - Initial release of the stylelint theme alignment tool. This package uses the base file (themes/spectrum.css) for a Spectrum CSS component as a "source of truth" and validates the sub-themes (i.e., themes/express.css) use only selectors and custom properties defined in the base file. diff --git a/plugins/stylelint-theme-alignment/README.md b/plugins/stylelint-theme-alignment/README.md deleted file mode 100644 index ed0f1b274f1..00000000000 --- a/plugins/stylelint-theme-alignment/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# stylelint-no-unused-custom-properties - -> Remove or report on unused variable definitions - -## Installation - -```sh -yarn add -D @spectrum-tools/stylelint-no-unused-custom-properties -``` - -## Usage - -Assuming you have some variables defined and rule(s) that use them: - -```css -:root { - --prefix-component-background-color: blue; - --prefix-component-width: 10px; - --prefix-component-height: 10px; - --prefix-component-size: 10px; -} - -.component { - background-color: var(--prefix-component-background-color); - - width: var(--prefix-component-width); - height: var(--prefix-component-height); -} -``` - -The variables that are not used in any rule will be removed from the output or reported to the console: - -```css -:root { - --prefix-component-background-color: blue; - --prefix-component-width: 10px; - --prefix-component-height: 10px; -} - -.component { - background-color: var(--prefix-component-background-color); - - width: var(--prefix-component-width); - height: var(--prefix-component-height); -} -``` - -To allow variables to be defined without being used, such as when you want to pass custom properties down to a child component, you can add a `/* @passthrough */` comment to the variable definition: - -```css -:root { - /* @passthrough */ - --nested-component-background-color: blue; - --prefix-component-width: 10px; - --prefix-component-height: 10px; - --prefix-component-size: 10px; -} -``` - -To allow a group of properties to be passed down, you can prefix the set with `/* @passthrough start */` and suffix it with `/* @passthrough end */`: - -```css -:root { - /* @passthrough start */ - --nested-component-background-color: blue; - --nested-component-width: 10px; - /* @passthrough end */ - - --prefix-component-height: 10px; - --prefix-component-size: 10px; -} -``` - -## Options - -### `ignoreList` (default: `[]`) - -An array of strings or regular expressions that will be matched against the variable name. If a match is found, the variable will be ignored. diff --git a/plugins/stylelint-theme-alignment/index.js b/plugins/stylelint-theme-alignment/index.js deleted file mode 100644 index 98653a2225a..00000000000 --- a/plugins/stylelint-theme-alignment/index.js +++ /dev/null @@ -1,158 +0,0 @@ -/*! - * Copyright 2024 Adobe. All rights reserved. - * This file is licensed to you under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. You may obtain a copy - * of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS - * OF ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - */ - -import fs from "node:fs"; -import { basename, relative, sep } from "node:path"; - -import postcss from "postcss"; -import valuesParser from "postcss-values-parser"; -import stylelint from "stylelint"; -import { isString } from "stylelint/lib/utils/validateTypes.mjs"; - -const { - createPlugin, - utils: { report, ruleMessages, validateOptions } -} = stylelint; - -import "colors"; - -const ruleName = "spectrum-tools/theme-alignment"; -const messages = ruleMessages(ruleName, { - missing: (baseFile, sourceFile, rootPath) => `A base file (${relative(rootPath, baseFile)}) is required to validate ${relative(rootPath, sourceFile)}.`, - // Report if a selector is in this file but not in the base file - expected: (selector, baseFile, rootPath) => `Selector "${selector}" is not used or defined in the base file (${relative(rootPath, baseFile)}).`, - // Report if a custom property is used in this file but not in the base file - referenced: (property, baseFile, rootPath) => `Custom property "${property}" is not used or defined by the base file (${relative(rootPath, baseFile)}).`, -}); - -/** @type {import('stylelint').Plugin} */ -const ruleFunction = (enabled, options = {}) => { - return (root, result) => { - const validOptions = validateOptions( - result, - ruleName, - { - actual: enabled, - possible: [true], - }, - { - actual: options, - possible: { - baseFilename: isString, - }, - optional: true, - }, - ); - - if (!validOptions) return; - - - const { baseFilename = "spectrum" } = options; - - const sourceFile = root.source.input.file; - const parts = sourceFile ? sourceFile.split(sep) : []; - const isTheme = parts[parts.length - 2] === "themes"; - const filename = parts[parts.length - 1]; - - if (!isTheme || basename(filename, ".css") === baseFilename) return; - - // All the parts of the source file but replace the filename with the baseFilename - const baseFile = [...parts.slice(0, -1), `${baseFilename}.css`].join(sep); - const rootPath = parts.slice(0, -2).join(sep); - - // If the base file doesn't exist, throw an error - if (!fs.existsSync(baseFile)) { - report({ - message: messages.missing, - messageArgs: [baseFile, sourceFile, rootPath], - node: root, - result, - ruleName, - }); - return; - } - - // Read in the base file and parse it - const baseContent = fs.readFileSync(baseFile, "utf8"); - const baseRoot = postcss.parse(baseContent); - - /* A list of all selectors in the base file */ - const baseSelectors = new Set(); - /* A list of all properties in the base file */ - const baseProperties = new Set(); - - /* Iterate over selectors in the base root */ - baseRoot.walkRules((rule) => { - rule.selectors.forEach((selector) => { - // Add this selector to the selectors set - baseSelectors.add(selector); - }); - - rule.walkDecls((decl) => { - // If this is a custom property, add it to the properties set - if (decl.prop.startsWith("--")) { - baseProperties.add(decl.prop); - } - - // If the value of this declaration includes a custom property, add it to the properties set - const parsed = valuesParser.parse(decl.value); - parsed.walk((node) => { - if (node.type === "func" && node.value === "var") { - baseProperties.add(node.nodes[0].value); - } - }); - }); - }); - - /* Iterate over selectors in the source root and validate that they align with the base */ - root.walkRules((rule) => { - rule.selectors.forEach((selector) => { - // Check if this selector exists in the base - if (!baseSelectors.has(selector)) { - // Report any selectors that don't exist in the base - report({ - message: messages.expected, - messageArgs: [selector, baseFile, rootPath], - node: rule, - result, - ruleName, - }); - return; - } - }); - - rule.walkDecls((decl) => { - const isProperty = decl.prop.startsWith("--"); - // @todo should report that this is setting something other than a custom property in the theme file - if (!isProperty) { - return; - } - - // If this is a custom property, check if it's used in the base - if (!baseProperties.has(decl.prop)) { - report({ - message: messages.referenced, - messageArgs: [decl.prop, baseFile, rootPath], - node: decl, - result, - ruleName, - }); - } - }); - }); - }; -}; - -ruleFunction.ruleName = ruleName; -ruleFunction.messages = messages; - -export default createPlugin(ruleName, ruleFunction); diff --git a/plugins/stylelint-theme-alignment/package.json b/plugins/stylelint-theme-alignment/package.json deleted file mode 100644 index da25b3d4dd3..00000000000 --- a/plugins/stylelint-theme-alignment/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@spectrum-tools/stylelint-theme-alignment", - "version": "1.2.0", - "description": "A utility to ensure that all custom properties are intially defined in a core resource file and all subsequent uses leverage only values defined there first.", - "license": "Apache-2.0", - "author": "Adobe", - "contributors": [ - "Cassondra Roberts <castastrophe@users.noreply.github.com>" - ], - "homepage": "https://opensource.adobe.com/spectrum-css", - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "plugins/stylelint-theme-alignment" - }, - "bugs": { - "url": "https://github.com/adobe/spectrum-css/issues" - }, - "type": "module", - "main": "index.js", - "files": [ - "package.json", - "index.js", - "*.md" - ], - "dependencies": { - "colors": "^1.4.0", - "postcss": "^8.5.0", - "postcss-values-parser": "^6.0.2" - }, - "peerDependencies": { - "stylelint": ">=16" - }, - "devDependencies": { - "stylelint": "^16.9.0" - }, - "keywords": [ - "css", - "lint", - "properties", - "report", - "stylelint-plugin" - ] -} diff --git a/plugins/stylelint-theme-alignment/project.json b/plugins/stylelint-theme-alignment/project.json deleted file mode 100644 index 90709f217ad..00000000000 --- a/plugins/stylelint-theme-alignment/project.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "stylelint-theme-alignment", - "tags": ["tooling", "stylelint"], - "targets": { - "format": { - "defaultConfiguration": "plugins" - }, - "lint": { - "defaultConfiguration": "plugins" - } - } -} diff --git a/postcss.config.js b/postcss.config.js index 2231192ac7c..9667614004c 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -15,12 +15,7 @@ const fs = require("node:fs"); const { join, basename } = require("node:path"); module.exports = ({ - skipMapping = false, - referencesOnly = false, - preserveVariables = true, - stripLocalSelectors = false, resolveImports = true, - shouldCombine = false, lint = true, verbose = true, minify = false, @@ -84,19 +79,6 @@ module.exports = ({ prefix: "is-" } : false, "postcss-hover-media-feature": {}, - /* --------------------------------------------------- */ - /* ------------------- VARIABLE PARSING -------------- */ - "@spectrum-tools/postcss-add-theming-layer": { - selectorPrefix: "spectrum", - skipMapping, - preserveVariables, - referencesOnly, - stripLocalSelectors, - debug: verbose, - }, - "@spectrum-tools/postcss-property-rollup": shouldCombine ? { - newSelector: ".spectrum", - } : false, ...additionalPlugins, /* --------------------------------------------------- */ /* ------------------- POLYFILLS --------------------- */ diff --git a/schemas/metadata.schema.json b/schemas/metadata.schema.json index 09b7b9ab4d4..9a4ba780018 100644 --- a/schemas/metadata.schema.json +++ b/schemas/metadata.schema.json @@ -41,14 +41,6 @@ "pattern": "^--spectrum-" } }, - "system-theme": { - "description": "The system theme hooks created by the postcss tooling to allow theme toggling on a component.", - "type": "array", - "items": { - "type": "string", - "pattern": "^--system-" - } - }, "passthroughs": { "description": "Modifier custom properties for nested components that are passed through by this component.", "type": "array", @@ -66,6 +58,6 @@ } } }, - "required": ["sourceFile", "selectors", "modifiers", "component", "global", "system-theme", "passthroughs", "high-contrast"], + "required": ["sourceFile", "selectors", "modifiers", "component", "global", "passthroughs", "high-contrast"], "additionalProperties": false } diff --git a/stylelint.config.js b/stylelint.config.js index 2761f849caf..5054a2e63bf 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -11,7 +11,6 @@ module.exports = { "@spectrum-tools/stylelint-no-missing-var", "@spectrum-tools/stylelint-no-unused-custom-properties", "@spectrum-tools/stylelint-no-unknown-custom-properties", - "@spectrum-tools/stylelint-theme-alignment", // "stylelint-high-performance-animation", ], rules: { @@ -150,7 +149,6 @@ module.exports = { * Local/custom plugins * -------------------------------------------------------------- */ "spectrum-tools/no-missing-var": true, - "spectrum-tools/theme-alignment": null, "spectrum-tools/no-unused-custom-properties": null, "spectrum-tools/no-unknown-custom-properties": null, }, @@ -212,21 +210,6 @@ module.exports = { "custom-property-pattern": [/^(spectrum|color|scale|system)/, {}], } }, - { - /* Validate that the legacy themes don't introduce any new selectors or custom properties */ - files: ["components/*/themes/*.css", "!components/*/themes/spectrum.css"], - rules: { - "spectrum-tools/no-unused-custom-properties": null, - "selector-class-pattern": [ - "^(spectrum-|is-|u-)[A-Za-z0-9-]+", { - resolveNestedSelectors: true - } - ], - "spectrum-tools/theme-alignment": [true, { - baseFilename: "spectrum-two", - }], - }, - }, { /* Allow "tree shaking" of unused custom properties in the bundle */ files: ["tools/bundle/**/*.css"], diff --git a/tasks/component-builder.js b/tasks/component-builder.js index 93afb637693..320b746be35 100644 --- a/tasks/component-builder.js +++ b/tasks/component-builder.js @@ -196,79 +196,6 @@ async function build({ cwd = process.cwd(), clean = false, minify = false, compo ]); } -/** - * The builder for the individual themes assets - * @param {object} config - * @param {string} config.cwd - Current working directory for the component being built - * @param {boolean} config.clean - Should the built assets be cleaned before running the build - * @returns Promise<void> - */ -async function buildThemes({ cwd = process.cwd(), minify = false, clean = false } = {}) { - // This fetches the content of the files and returns an array of objects with the content and input paths - const contentData = await fetchContent(["themes/*.css"], { cwd, clean }); - - // Nothing to do if there's no content - if (!contentData || contentData.length === 0) return; - - const imports = contentData.map(({ input }) => input); - const importMap = imports.map((i) => `@import "${i}";`).join("\n"); - - const basePostCSSOptions = { - cwd, - clean, - map: false, - env: "production", - lint: false, - }; - - const promises = []; - - contentData.forEach(async ({ content, input }) => { - const theme = path.basename(input, ".css"); - - promises.push( - processCSS(content, path.join(cwd, input), path.join(cwd, "dist", "themes", `${theme}.css`), { - ...basePostCSSOptions, - shouldCombine: true, - // Only output the new selectors with the system mappings - stripLocalSelectors: true, - }), - minify ? processCSS(content, path.join(cwd, input), path.join(cwd, "dist", "themes", `${theme}.min.css`), { - ...basePostCSSOptions, - shouldCombine: true, - // Only output the new selectors with the system mappings - stripLocalSelectors: true, - }) : Promise.resolve(), - ); - }); - - promises.push( - processCSS(undefined, path.join(cwd, "index.css"), path.join(cwd, "dist", "index-base.css"), { - ...basePostCSSOptions, - referencesOnly: true, - // Only output the new selectors with the system mappings - stripLocalSelectors: true, - }), - minify ? processCSS(undefined, path.join(cwd, "index.css"), path.join(cwd, "dist", "index-base.min.css"), { - ...basePostCSSOptions, - referencesOnly: true, - // Only output the new selectors with the system mappings - stripLocalSelectors: true, - }) : Promise.resolve(), - // Expect this file to have component-specific selectors mapping to the system tokens but not the system tokens themselves - processCSS(importMap, path.join(cwd, "index.css"), path.join(cwd, "dist", "index-theme.css"), { - ...basePostCSSOptions, - referencesOnly: true, - }), - minify ? processCSS(importMap, path.join(cwd, "index.css"), path.join(cwd, "dist", "index-theme.min.css"), { - ...basePostCSSOptions, - referencesOnly: true, - }) : Promise.resolve(), - ); - - return Promise.all(promises); -} - /** * The main entry point for this tool; this builds a CSS component * @param {object} config @@ -304,42 +231,33 @@ async function main({ const key = `[build] ${`@spectrum-css/${componentName}`.cyan}`; console.time(key); - // Create the dist directory if it doesn't exist - if (!fs.existsSync(path.join(cwd, "dist"))) { - fs.mkdirSync(path.join(cwd, "dist")); + const reports = []; + const errors = []; + + await build({ cwd, clean }).then((report) => reports.push(report)).catch((err) => errors.push(err)); + + const logs = reports.flat(Infinity).filter(Boolean); + const errs = errors.flat(Infinity).filter(Boolean); + + console.log(`\n\n${key} 🔨`); + console.log(`${"".padStart(30, "-")}`); + + if (errs && errs.length > 0) { + errs.forEach((err) => console.error(err)); + } + else { + if (logs && logs.length > 0) { + logs.forEach((log) => console.log(log)); + } + else console.log("No assets created.".gray); } - return Promise.all([ - build({ cwd, clean, minify }), - buildThemes({ cwd, clean, minify }), - ]) - .then((report) => { - const logs = report.flat(Infinity).filter(Boolean); - - console.log(`\n\n${key} 🔨`); - console.log(`${"".padStart(30, "-")}`); - - if (logs && logs.length > 0) { - logs.forEach((log) => console.log(log)); - } - else console.log("No assets created.".gray); - - console.log(`${"".padStart(30, "-")}`); - console.timeEnd(key); - console.log(""); - }) - .catch((err) => { - console.log(`\n\n${key} 🔨`); - console.log(`${"".padStart(30, "-")}`); - - console.trace(err); - - console.log(`${"".padStart(30, "-")}`); - console.timeEnd(key); - console.log(""); - - process.exit(1); - }); + console.log(`${"".padStart(30, "-")}`); + console.timeEnd(key); + console.log(""); + + if (errs && errs.length > 0) process.exit(1); + else process.exit(0); } exports.processCSS = processCSS; diff --git a/tasks/component-reporter.js b/tasks/component-reporter.js index 444449c833a..379256b9107 100644 --- a/tasks/component-reporter.js +++ b/tasks/component-reporter.js @@ -66,6 +66,9 @@ async function extractModifiers( const selectors = new Set(); const root = postcss.parse(content); root.walkRules((rule) => { + // Check that the selector is not inside a keyframe + if (rule.parent.type === "atrule" && rule.parent.name === "keyframes") return; + if (rule.selectors) { rule.selectors.forEach((selector) => { // If the selector is not a base selector, add it to the set @@ -170,10 +173,6 @@ async function main({ const processed = await processCSS(undefined, sourceCSS, undefined, { cwd, - skipMapping: false, - referencesOnly: false, - preserveVariables: true, - stripLocalSelectors: false, map: false, env: "production", }); @@ -184,11 +183,10 @@ async function main({ cwd, sourcePath: sourceCSS, componentName, - baseSelectors: [".spectrum", ".spectrum--express", ".spectrum--legacy"], + baseSelectors: [".spectrum"], dataModel: { modifiers: ["mod"], spectrum: ["spectrum"], - "system-theme": ["system"], "high-contrast": ["highcontrast"], }, } @@ -203,7 +201,6 @@ async function main({ modifiers: meta.modifiers, component: meta.component, global: meta.global, - "system-theme": meta["system-theme"], passthroughs: meta.passthroughs, "high-contrast": meta["high-contrast"], }, null, 2), diff --git a/tasks/templates/diff-preview.njk b/tasks/templates/diff-preview.njk index dc90d09a576..468a77ed93c 100644 --- a/tasks/templates/diff-preview.njk +++ b/tasks/templates/diff-preview.njk @@ -7,11 +7,11 @@ <meta name="theme-color" content="#e1251b" /> <!-- Load component stylesheets --> - <link rel="stylesheet" type="text/css" href="{{ "../../../components/typography/dist/index.css" | safe }}"/> + <link rel="stylesheet" type="text/css" href="{{ "@spectrum-css/typography/dist/index.css" | safe }}"/> - <link rel="stylesheet" type="text/css" href="{{ "../../../components/icon/dist/index.css" | safe }}"/> - <link rel="stylesheet" type="text/css" href="{{ "../../../components/sidenav/dist/index.css" | safe }}"/> - <link rel="stylesheet" type="text/css" href="{{ "../../../components/divider/dist/index.css" | safe }}"/> + <link rel="stylesheet" type="text/css" href="{{ "@spectrum-css/icon/dist/index.css" | safe }}"/> + <link rel="stylesheet" type="text/css" href="{{ "@spectrum-css/sidenav/dist/index.css" | safe }}"/> + <link rel="stylesheet" type="text/css" href="{{ "@spectrum-css/divider/dist/index.css" | safe }}"/> <link rel="stylesheet" type="text/css" href="{{ "../../../tokens/dist/css/index.css" | safe }}"/> diff --git a/tokens/CHANGELOG.md b/tokens/CHANGELOG.md index 583c0e958e2..1d6f8b18ce3 100644 --- a/tokens/CHANGELOG.md +++ b/tokens/CHANGELOG.md @@ -1,5 +1,35 @@ # Change Log +## 14.0.0-next.12 + +### Patch Changes + +- [#3497](https://github.com/adobe/spectrum-css/pull/3497) [`0c431fc`](https://github.com/adobe/spectrum-css/commit/0c431fce7f38f967f934daa578b9bd2d8d173e76) Thanks [@cdransf](https://github.com/cdransf)! - Uses the latest releases from Spectrum Tokens (spectrum-tokens@13.0.0-beta.56) + +## 14.0.0-next.11 + +### Patch Changes + +- [#3456](https://github.com/adobe/spectrum-css/pull/3456) [`b9aeb20`](https://github.com/adobe/spectrum-css/commit/b9aeb203dd0bd728606d47d10dbd37fb42229379) Thanks [@cdransf](https://github.com/cdransf)! - Uses the latest releases from Spectrum Tokens (13.0.0-beta.55) + +## 14.0.0-next.10 + +### Patch Changes + +- [#2860](https://github.com/adobe/spectrum-css/pull/2860) [`bd934cc`](https://github.com/adobe/spectrum-css/commit/bd934cc9a5a43b2d453710d462a1faaa5046de08) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Adds `--spectrum-standard-dialog-spacing-edge-to-content` to properly adjust the spacing for desktop/mobile dialog styles. + +## 14.0.0-next.9 + +### Patch Changes + +- [#3351](https://github.com/adobe/spectrum-css/pull/3351) [`8f782a4`](https://github.com/adobe/spectrum-css/commit/8f782a4711c0d8c6e1de47b3be91b3cc2670fa72) Thanks [@cdransf](https://github.com/cdransf)! - Uses the latest release from Spectrum Tokens (13.0.0-beta.52) + +## 14.0.0-next.8 + +### Patch Changes + +- [#2797](https://github.com/adobe/spectrum-css/pull/2797) [`e62d1ca`](https://github.com/adobe/spectrum-css/commit/e62d1ca8cad8a2cdd9c8748335d0371e0aaca60a) Thanks [@pfulton](https://github.com/pfulton)! - Uses the latest release from Spectrum Tokens (13.0.0-beta.35) + ## 16.0.0 ### Major Changes @@ -2514,32 +2544,24 @@ - feat: adding component-specific theme mappings and new bridge files to support S1 and S2 in tandem -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - <a name="14.0.0"></a> ## 14.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.2.0...@spectrum-css/tokens@14.0.0) - -\*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.2.0...@spectrum-css/tokens@14.0.0) - ### - 🛑 BREAKING CHANGES +- feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - * - - Removes component-builder & component-builder-simple for script leveraging postcss +### 🛑 BREAKING CHANGES +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css <a name="13.2.0"></a> ## 13.2.0 -🗓 -2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.1.2...@spectrum-css/tokens@13.2.0) +🗓 2024-02-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.1.2...@spectrum-css/tokens@13.2.0) ### ✨ Features @@ -2549,8 +2571,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.1.2 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.1.1...@spectrum-css/tokens@13.1.2) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.1.1...@spectrum-css/tokens@13.1.2) **Note:** Version bump only for package @spectrum-css/tokens @@ -2558,8 +2579,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.1.1 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/tokens @@ -2567,8 +2587,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.1.0 -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.9...@spectrum-css/tokens@13.1.0) +🗓 2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.9...@spectrum-css/tokens@13.1.0) ### ✨ Features @@ -2578,8 +2597,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.9 -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.8...@spectrum-css/tokens@13.0.9) +🗓 2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.8...@spectrum-css/tokens@13.0.9) ### 🐛 Bug fixes @@ -2589,8 +2607,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.8 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.7...@spectrum-css/tokens@13.0.8) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.7...@spectrum-css/tokens@13.0.8) ### 🐛 Bug fixes @@ -2601,8 +2618,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.7 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.6...@spectrum-css/tokens@13.0.7) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.6...@spectrum-css/tokens@13.0.7) **Note:** Version bump only for package @spectrum-css/tokens @@ -2610,8 +2626,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.6 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.5...@spectrum-css/tokens@13.0.6) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.5...@spectrum-css/tokens@13.0.6) **Note:** Version bump only for package @spectrum-css/tokens @@ -2619,8 +2634,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.5 -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.4...@spectrum-css/tokens@13.0.5) +🗓 2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.4...@spectrum-css/tokens@13.0.5) **Note:** Version bump only for package @spectrum-css/tokens @@ -2628,8 +2642,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.4 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.0...@spectrum-css/tokens@13.0.4) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.0...@spectrum-css/tokens@13.0.4) **Note:** Version bump only for package @spectrum-css/tokens @@ -2637,8 +2650,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.3 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.0...@spectrum-css/tokens@13.0.3) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@13.0.0...@spectrum-css/tokens@13.0.3) **Note:** Version bump only for package @spectrum-css/tokens @@ -2646,8 +2658,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 13.0.0 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@12.0.0...@spectrum-css/tokens@13.0.0) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@12.0.0...@spectrum-css/tokens@13.0.0) ### 🐛 Bug fixes @@ -2668,13 +2679,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 12.0.0 -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.4.0...@spectrum-css/tokens@12.0.0) +🗓 2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.4.0...@spectrum-css/tokens@12.0.0) \*feat(modal)!: diy migration (#2164)([0b83f13](https://github.com/adobe/spectrum-css/commit/0b83f13)), closes[#2164](https://github.com/adobe/spectrum-css/issues/2164) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * migrates Modal to use `@adobe/spectrum-tokens` @@ -2701,8 +2710,7 @@ chore: updated css properties ## 11.4.0 -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.7...@spectrum-css/tokens@11.4.0) +🗓 2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.7...@spectrum-css/tokens@11.4.0) ### ✨ Features @@ -2712,8 +2720,7 @@ chore: updated css properties ## 11.3.7 -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.6...@spectrum-css/tokens@11.3.7) +🗓 2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.6...@spectrum-css/tokens@11.3.7) **Note:** Version bump only for package @spectrum-css/tokens @@ -2721,8 +2728,7 @@ chore: updated css properties ## 11.3.6 -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.5...@spectrum-css/tokens@11.3.6) +🗓 2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.5...@spectrum-css/tokens@11.3.6) **Note:** Version bump only for package @spectrum-css/tokens @@ -2730,8 +2736,7 @@ chore: updated css properties ## 11.3.5 -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.4...@spectrum-css/tokens@11.3.5) +🗓 2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.4...@spectrum-css/tokens@11.3.5) ### 🐛 Bug fixes @@ -2741,8 +2746,7 @@ chore: updated css properties ## 11.3.4 -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.3...@spectrum-css/tokens@11.3.4) +🗓 2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.3...@spectrum-css/tokens@11.3.4) **Note:** Version bump only for package @spectrum-css/tokens @@ -2750,8 +2754,7 @@ chore: updated css properties ## 11.3.3 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.2...@spectrum-css/tokens@11.3.3) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.2...@spectrum-css/tokens@11.3.3) **Note:** Version bump only for package @spectrum-css/tokens @@ -2759,8 +2762,7 @@ chore: updated css properties ## 11.3.2 -🗓 -2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.1...@spectrum-css/tokens@11.3.2) +🗓 2023-08-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.1...@spectrum-css/tokens@11.3.2) **Note:** Version bump only for package @spectrum-css/tokens @@ -2768,8 +2770,7 @@ chore: updated css properties ## 11.3.1 -🗓 -2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.0...@spectrum-css/tokens@11.3.1) +🗓 2023-08-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.3.0...@spectrum-css/tokens@11.3.1) **Note:** Version bump only for package @spectrum-css/tokens @@ -2777,8 +2778,7 @@ chore: updated css properties ## 11.3.0 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.2...@spectrum-css/tokens@11.3.0) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.2...@spectrum-css/tokens@11.3.0) ### ✨ Features @@ -2788,8 +2788,7 @@ chore: updated css properties ## 11.2.2 -🗓 -2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.0...@spectrum-css/tokens@11.2.2) +🗓 2023-08-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.0...@spectrum-css/tokens@11.2.2) **Note:** Version bump only for package @spectrum-css/tokens @@ -2797,8 +2796,7 @@ chore: updated css properties ## 11.2.1 -🗓 -2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.0...@spectrum-css/tokens@11.2.1) +🗓 2023-08-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.2.0...@spectrum-css/tokens@11.2.1) **Note:** Version bump only for package @spectrum-css/tokens @@ -2806,8 +2804,7 @@ chore: updated css properties ## 11.2.0 -🗓 -2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.1.0...@spectrum-css/tokens@11.2.0) +🗓 2023-08-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.1.0...@spectrum-css/tokens@11.2.0) ### ✨ Features @@ -2821,8 +2818,7 @@ chore: updated css properties ## 11.1.0 -🗓 -2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.2...@spectrum-css/tokens@11.1.0) +🗓 2023-08-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.2...@spectrum-css/tokens@11.1.0) ### ✨ Features @@ -2832,8 +2828,7 @@ chore: updated css properties ## 11.0.2 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.1...@spectrum-css/tokens@11.0.2) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.1...@spectrum-css/tokens@11.0.2) **Note:** Version bump only for package @spectrum-css/tokens @@ -2841,8 +2836,7 @@ chore: updated css properties ## 11.0.1 -🗓 -2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.0...@spectrum-css/tokens@11.0.1) +🗓 2023-07-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@11.0.0...@spectrum-css/tokens@11.0.1) **Note:** Version bump only for package @spectrum-css/tokens @@ -2850,8 +2844,7 @@ chore: updated css properties ## 11.0.0 -🗓 -2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.2...@spectrum-css/tokens@11.0.0) +🗓 2023-07-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.2...@spectrum-css/tokens@11.0.0) ### ✨ Features @@ -2872,8 +2865,7 @@ chore: updated css properties ## 10.2.2 -🗓 -2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.1...@spectrum-css/tokens@10.2.2) +🗓 2023-07-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.1...@spectrum-css/tokens@10.2.2) ### 🐛 Bug fixes @@ -2883,8 +2875,7 @@ chore: updated css properties ## 10.2.1 -🗓 -2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.0...@spectrum-css/tokens@10.2.1) +🗓 2023-06-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.2.0...@spectrum-css/tokens@10.2.1) **Note:** Version bump only for package @spectrum-css/tokens @@ -2892,8 +2883,7 @@ chore: updated css properties ## 10.2.0 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.1.2...@spectrum-css/tokens@10.2.0) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.1.2...@spectrum-css/tokens@10.2.0) ### ✨ Features @@ -2903,8 +2893,7 @@ chore: updated css properties ## 10.1.2 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.1.1...@spectrum-css/tokens@10.1.2) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/tokens@10.1.1...@spectrum-css/tokens@10.1.2) **Note:** Version bump only for package @spectrum-css/tokens diff --git a/tokens/custom/global-vars.css b/tokens/custom/global-vars.css index 55cad6984bd..defe850d777 100644 --- a/tokens/custom/global-vars.css +++ b/tokens/custom/global-vars.css @@ -57,9 +57,15 @@ --spectrum-cjk-font-family-stack: adobe-clean-han-japanese, var(--spectrum-cjk-font-family), sans-serif; --spectrum-cjk-font: var(--spectrum-code-font-family-stack); - /* static white / black background color for docs containers */ - --spectrum-docs-static-white-background-color: rgb(15 121 125); - --spectrum-docs-static-black-background-color: rgb(181 209 211); + /* Gradient that changes with the color theme. */ + --spectrum-examples-gradient: linear-gradient(45deg, var(--spectrum-magenta-1500), var(--spectrum-blue-1500)); + + /* Gradients that do not change with the color theme, for use in static color backgrounds. */ + --spectrum-examples-gradient-static-black: linear-gradient(45deg, rgb(255, 241, 246), rgb(238, 245, 255)); + --spectrum-examples-gradient-static-white: linear-gradient(45deg, rgb(64, 0, 22), rgb(14, 24, 67)); --spectrum-coach-indicator-ring-static-white-color: var(--spectrum-white); + + /* override for Spectrum Tokens value until a Style Dictionary transform gets written for our usage */ + --spectrum-corner-radius-1000: 9999px; } diff --git a/tokens/custom/large-vars.css b/tokens/custom/large-vars.css index 358ad3404c6..cdc0bc73bf9 100644 --- a/tokens/custom/large-vars.css +++ b/tokens/custom/large-vars.css @@ -104,6 +104,11 @@ --spectrum-slider-tick-mark-height: 13px; --spectrum-slider-ramp-track-height: 20px; + --spectrum-standard-dialog-spacing-edge-to-content: var(--spectrum-spacing-400); + --spectrum-takeover-dialog-spacing-grid-padding: var(--spectrum-spacing-400); + --spectrum-takeover-dialog-spacing-header-gap: var(--spectrum-spacing-300); + --spectrum-takeover-dialog-spacing-title-to-body: var(--spectrum-spacing-400); + --spectrum-treeview-item-indentation-medium: 20px; --spectrum-treeview-item-indentation-small: 15px; --spectrum-treeview-item-indentation-large: 25px; @@ -111,7 +116,9 @@ --spectrum-treeview-indicator-inset-block-start: 6px; --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 2px; - --spectrum-tooltip-animation-distance: 5px; + /* To get a square that measures 12px on the diagonal, the sides have to be 10px */ + --spectrum-tooltip-tip-square-size: 10px; + --spectrum-ui-icon-medium-display: none; --spectrum-ui-icon-large-display: block; diff --git a/tokens/custom/medium-vars.css b/tokens/custom/medium-vars.css index 5221e74999c..817e26b2d5d 100644 --- a/tokens/custom/medium-vars.css +++ b/tokens/custom/medium-vars.css @@ -102,6 +102,11 @@ --spectrum-slider-ramp-track-height: 16px; --spectrum-slider-tick-mark-height: 10px; + --spectrum-standard-dialog-spacing-edge-to-content: var(--spectrum-spacing-500); + --spectrum-takeover-dialog-spacing-grid-padding: var(--spectrum-spacing-500); + --spectrum-takeover-dialog-spacing-header-gap: var(--spectrum-spacing-400); + --spectrum-takeover-dialog-spacing-title-to-body: var(--spectrum-spacing-500); + --spectrum-treeview-indicator-inset-block-start: 5px; --spectrum-treeview-item-indentation-small: var(--spectrum-spacing-200); --spectrum-treeview-item-indentation-medium: var(--spectrum-spacing-300); @@ -109,7 +114,9 @@ --spectrum-treeview-item-indentation-extra-large: var(--spectrum-spacing-400); --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 0px; - --spectrum-tooltip-animation-distance: var(--spectrum-spacing-75); + /* To get a square that measures 10px on the diagonal, the sides have to be 8px */ + --spectrum-tooltip-tip-square-size: 8px; + --spectrum-ui-icon-medium-display: block; --spectrum-ui-icon-large-display: none; diff --git a/tokens/dist/json/tokens.json b/tokens/dist/json/tokens.json index 2be36fb5803..4f44f63101d 100644 --- a/tokens/dist/json/tokens.json +++ b/tokens/dist/json/tokens.json @@ -386,6 +386,42 @@ "value": "20px" } }, + "accordion-content-area-edge-to-content-extra-large": { + "prop": "--spectrum-accordion-content-area-edge-to-content-extra-large", + "desktop": { + "value": "15px" + }, + "mobile": { + "value": "19px" + } + }, + "accordion-content-area-edge-to-content-large": { + "prop": "--spectrum-accordion-content-area-edge-to-content-large", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } + }, + "accordion-content-area-edge-to-content-medium": { + "prop": "--spectrum-accordion-content-area-edge-to-content-medium", + "desktop": { + "value": "9px" + }, + "mobile": { + "value": "11px" + } + }, + "accordion-content-area-edge-to-content-small": { + "prop": "--spectrum-accordion-content-area-edge-to-content-small", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, "accordion-content-area-top-to-content": { "prop": "--spectrum-accordion-content-area-top-to-content", "desktop": { @@ -399,6 +435,42 @@ "prop": "--spectrum-accordion-disclosure-indicator-to-text", "value": "0px" }, + "accordion-disclosure-indicator-to-text-extra-large": { + "prop": "--spectrum-accordion-disclosure-indicator-to-text-extra-large", + "desktop": { + "value": "17px" + }, + "mobile": { + "value": "22px" + } + }, + "accordion-disclosure-indicator-to-text-large": { + "prop": "--spectrum-accordion-disclosure-indicator-to-text-large", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "accordion-disclosure-indicator-to-text-medium": { + "prop": "--spectrum-accordion-disclosure-indicator-to-text-medium", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "13px" + } + }, + "accordion-disclosure-indicator-to-text-small": { + "prop": "--spectrum-accordion-disclosure-indicator-to-text-small", + "desktop": { + "value": "7px" + }, + "mobile": { + "value": "9px" + } + }, "accordion-edge-to-disclosure-indicator": { "prop": "--spectrum-accordion-edge-to-disclosure-indicator", "value": "0px" @@ -411,6 +483,10 @@ "prop": "--spectrum-accordion-focus-indicator-gap", "value": "0px" }, + "accordion-item-to-divider": { + "prop": "--spectrum-accordion-item-to-divider", + "value": "0px" + }, "accordion-minimum-width": { "prop": "--spectrum-accordion-minimum-width", "desktop": { @@ -527,22 +603,68 @@ "value": "12px" } }, + "action-bar-bottom-to-content-area": { + "prop": "--spectrum-action-bar-bottom-to-content-area", + "ref": "var(--spectrum-spacing-200)", + "value": "12px" + }, + "action-bar-close-button-to-counter": { + "prop": "--spectrum-action-bar-close-button-to-counter", + "ref": "var(--spectrum-text-to-control-50)", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "action-bar-counter-font-size": { + "prop": "--spectrum-action-bar-counter-font-size", + "ref": "var(--spectrum-font-size-100)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "action-bar-edge-to-content-area": { + "prop": "--spectrum-action-bar-edge-to-content-area", + "ref": "var(--spectrum-spacing-100)", + "value": "8px" + }, "action-bar-height": { "prop": "--spectrum-action-bar-height", + "ref": "var(--spectrum-component-height-400)", "desktop": { - "value": "48px" + "value": "56px" }, "mobile": { - "value": "56px" + "value": "70px" } }, + "action-bar-label-to-action-group-area": { + "prop": "--spectrum-action-bar-label-to-action-group-area", + "ref": "var(--spectrum-spacing-300)", + "value": "16px" + }, + "action-bar-minimum-width": { + "prop": "--spectrum-action-bar-minimum-width", + "value": "176px" + }, + "action-bar-top-to-content-area": { + "prop": "--spectrum-action-bar-top-to-content-area", + "ref": "var(--spectrum-spacing-200)", + "value": "12px" + }, "action-bar-top-to-item-counter": { "prop": "--spectrum-action-bar-top-to-item-counter", + "ref": "var(--spectrum-component-top-to-text-300)", "desktop": { - "value": "14px" + "value": "12px" }, "mobile": { - "value": "16px" + "value": "15px" } }, "action-button-edge-to-hold-icon-extra-large": { @@ -583,7 +705,7 @@ "alert-banner-bottom-to-text": { "prop": "--spectrum-alert-banner-bottom-to-text", "desktop": { - "value": "17px" + "value": "20px" }, "mobile": { "value": "22px" @@ -592,7 +714,7 @@ "alert-banner-minimum-height": { "prop": "--spectrum-alert-banner-minimum-height", "desktop": { - "value": "48px" + "value": "56px" }, "mobile": { "value": "64px" @@ -602,7 +724,7 @@ "prop": "--spectrum-alert-banner-to-bottom-text", "ref": "var(--spectrum-alert-banner-bottom-to-text)", "desktop": { - "value": "17px" + "value": "20px" }, "mobile": { "value": "22px" @@ -612,7 +734,7 @@ "prop": "--spectrum-alert-banner-to-top-text", "ref": "var(--spectrum-alert-banner-top-to-text)", "desktop": { - "value": "14px" + "value": "18px" }, "mobile": { "value": "21px" @@ -622,16 +744,25 @@ "prop": "--spectrum-alert-banner-to-top-workflow-icon", "ref": "var(--spectrum-alert-banner-top-to-workflow-icon)", "desktop": { - "value": "15px" + "value": "18px" }, "mobile": { - "value": "21px" + "value": "20px" + } + }, + "alert-banner-top-to-alert-icon": { + "prop": "--spectrum-alert-banner-top-to-alert-icon", + "desktop": { + "value": "37px" + }, + "mobile": { + "value": "29px" } }, "alert-banner-top-to-text": { "prop": "--spectrum-alert-banner-top-to-text", "desktop": { - "value": "14px" + "value": "18px" }, "mobile": { "value": "21px" @@ -640,10 +771,10 @@ "alert-banner-top-to-workflow-icon": { "prop": "--spectrum-alert-banner-top-to-workflow-icon", "desktop": { - "value": "15px" + "value": "18px" }, "mobile": { - "value": "21px" + "value": "20px" } }, "alert-banner-width": { @@ -655,14 +786,24 @@ "value": "680px" } }, + "alert-dialog-description-font-size": { + "prop": "--spectrum-alert-dialog-description-font-size", + "ref": "var(--spectrum-body-size-s)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "17px" + } + }, "alert-dialog-description-size": { "prop": "--spectrum-alert-dialog-description-size", - "ref": "var(--spectrum-body-size-xs)", + "ref": "var(--spectrum-body-size-s)", "desktop": { - "value": "14px" + "value": "16px" }, "mobile": { - "value": "15px" + "value": "17px" } }, "alert-dialog-maximum-width": { @@ -673,14 +814,24 @@ "prop": "--spectrum-alert-dialog-minimum-width", "value": "288px" }, + "alert-dialog-title-font-size": { + "prop": "--spectrum-alert-dialog-title-font-size", + "ref": "var(--spectrum-title-size-xl)", + "desktop": { + "value": "22px" + }, + "mobile": { + "value": "24px" + } + }, "alert-dialog-title-size": { "prop": "--spectrum-alert-dialog-title-size", - "ref": "var(--spectrum-heading-size-xs)", + "ref": "var(--spectrum-title-size-xl)", "desktop": { - "value": "18px" + "value": "22px" }, "mobile": { - "value": "19px" + "value": "24px" } }, "android-elevation": { @@ -781,49 +932,64 @@ "prop": "--spectrum-asterisk-icon-size-75", "value": "8px" }, - "avatar-opacity-disabled": { - "prop": "--spectrum-avatar-opacity-disabled", - "ref": "var(--spectrum-opacity-disabled)", - "value": "0.3" - }, - "avatar-size-100": { - "prop": "--spectrum-avatar-size-100", - "desktop": { - "value": "20px" + "avatar-border-color": { + "prop": "--spectrum-avatar-border-color", + "ref": "var(--spectrum-gray-25)", + "dark": { + "value": "rgb(17, 17, 17)" }, - "mobile": { - "value": "26px" + "light": { + "value": "rgb(255, 255, 255)" } }, - "avatar-size-200": { - "prop": "--spectrum-avatar-size-200", + "avatar-border-width": { + "prop": "--spectrum-avatar-border-width", + "ref": "var(--spectrum-border-width-100)", + "value": "1px" + }, + "avatar-group-size-100": { + "prop": "--spectrum-avatar-group-size-100", + "ref": "var(--spectrum-avatar-size-100)", "desktop": { - "value": "22px" + "value": "24px" }, "mobile": { "value": "28px" } }, - "avatar-size-300": { - "prop": "--spectrum-avatar-size-300", + "avatar-group-size-200": { + "prop": "--spectrum-avatar-group-size-200", + "ref": "var(--spectrum-avatar-size-200)", "desktop": { - "value": "26px" + "value": "28px" }, "mobile": { "value": "32px" } }, - "avatar-size-400": { - "prop": "--spectrum-avatar-size-400", + "avatar-group-size-300": { + "prop": "--spectrum-avatar-group-size-300", + "ref": "var(--spectrum-avatar-size-300)", "desktop": { - "value": "28px" + "value": "32px" }, "mobile": { "value": "36px" } }, - "avatar-size-50": { - "prop": "--spectrum-avatar-size-50", + "avatar-group-size-400": { + "prop": "--spectrum-avatar-group-size-400", + "ref": "var(--spectrum-avatar-size-400)", + "desktop": { + "value": "36px" + }, + "mobile": { + "value": "40px" + } + }, + "avatar-group-size-50": { + "prop": "--spectrum-avatar-group-size-50", + "ref": "var(--spectrum-avatar-size-50)", "desktop": { "value": "16px" }, @@ -831,89 +997,294 @@ "value": "20px" } }, - "avatar-size-500": { - "prop": "--spectrum-avatar-size-500", + "avatar-group-size-500": { + "prop": "--spectrum-avatar-group-size-500", + "ref": "var(--spectrum-avatar-size-500)", "desktop": { - "value": "32px" + "value": "40px" }, "mobile": { - "value": "40px" + "value": "44px" } }, - "avatar-size-600": { - "prop": "--spectrum-avatar-size-600", + "avatar-group-size-75": { + "prop": "--spectrum-avatar-group-size-75", + "ref": "var(--spectrum-avatar-size-75)", "desktop": { - "value": "36px" + "value": "20px" }, "mobile": { - "value": "46px" + "value": "24px" } }, - "avatar-size-700": { - "prop": "--spectrum-avatar-size-700", + "avatar-opacity-disabled": { + "prop": "--spectrum-avatar-opacity-disabled", + "ref": "var(--spectrum-opacity-disabled)", + "value": "0.3" + }, + "avatar-size-100": { + "prop": "--spectrum-avatar-size-100", "desktop": { - "value": "40px" + "value": "24px" }, "mobile": { - "value": "50px" + "value": "28px" } }, - "avatar-size-75": { - "prop": "--spectrum-avatar-size-75", + "avatar-size-1000": { + "prop": "--spectrum-avatar-size-1000", "desktop": { - "value": "18px" + "value": "64px" }, "mobile": { - "value": "22px" + "value": "72px" } }, - "background-base-color": { - "prop": "--spectrum-background-base-color", - "ref": "var(--spectrum-gray-25)", - "dark": { - "value": "rgb(17, 17, 17)" + "avatar-size-1100": { + "prop": "--spectrum-avatar-size-1100", + "desktop": { + "value": "72px" }, - "light": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "80px" } }, - "background-elevated-color": { - "prop": "--spectrum-background-elevated-color", - "ref": "var(--spectrum-gray-25)", - "dark": { - "value": "rgb(34, 34, 34)" + "avatar-size-1200": { + "prop": "--spectrum-avatar-size-1200", + "desktop": { + "value": "80px" }, - "light": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "88px" } }, - "background-layer-1-color": { - "prop": "--spectrum-background-layer-1-color", - "ref": "var(--spectrum-gray-50)", - "light": { - "value": "rgb(248, 248, 248)" + "avatar-size-1300": { + "prop": "--spectrum-avatar-size-1300", + "desktop": { + "value": "88px" }, - "dark": { - "value": "rgb(27, 27, 27)" + "mobile": { + "value": "96px" } }, - "background-layer-2-color": { - "prop": "--spectrum-background-layer-2-color", - "ref": "var(--spectrum-gray-75)", - "light": { - "value": "rgb(255, 255, 255)" + "avatar-size-1400": { + "prop": "--spectrum-avatar-size-1400", + "desktop": { + "value": "96px" }, - "dark": { - "value": "rgb(34, 34, 34)" + "mobile": { + "value": "104px" } }, - "background-opacity-default": { - "prop": "--spectrum-background-opacity-default", - "value": "0" - }, - "background-opacity-down": { - "prop": "--spectrum-background-opacity-down", - "value": "0.1" + "avatar-size-1500": { + "prop": "--spectrum-avatar-size-1500", + "desktop": { + "value": "104px" + }, + "mobile": { + "value": "112px" + } + }, + "avatar-size-200": { + "prop": "--spectrum-avatar-size-200", + "desktop": { + "value": "28px" + }, + "mobile": { + "value": "32px" + } + }, + "avatar-size-300": { + "prop": "--spectrum-avatar-size-300", + "desktop": { + "value": "32px" + }, + "mobile": { + "value": "36px" + } + }, + "avatar-size-400": { + "prop": "--spectrum-avatar-size-400", + "desktop": { + "value": "36px" + }, + "mobile": { + "value": "40px" + } + }, + "avatar-size-50": { + "prop": "--spectrum-avatar-size-50", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "avatar-size-500": { + "prop": "--spectrum-avatar-size-500", + "desktop": { + "value": "40px" + }, + "mobile": { + "value": "44px" + } + }, + "avatar-size-600": { + "prop": "--spectrum-avatar-size-600", + "desktop": { + "value": "44px" + }, + "mobile": { + "value": "48px" + } + }, + "avatar-size-700": { + "prop": "--spectrum-avatar-size-700", + "desktop": { + "value": "48px" + }, + "mobile": { + "value": "52px" + } + }, + "avatar-size-75": { + "prop": "--spectrum-avatar-size-75", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "avatar-size-800": { + "prop": "--spectrum-avatar-size-800", + "desktop": { + "value": "52px" + }, + "mobile": { + "value": "56px" + } + }, + "avatar-size-900": { + "prop": "--spectrum-avatar-size-900", + "desktop": { + "value": "56px" + }, + "mobile": { + "value": "64px" + } + }, + "avatar-to-avatar-100": { + "prop": "--spectrum-avatar-to-avatar-100", + "desktop": { + "value": "-6px" + }, + "mobile": { + "value": "-7px" + } + }, + "avatar-to-avatar-200": { + "prop": "--spectrum-avatar-to-avatar-200", + "desktop": { + "value": "-7px" + }, + "mobile": { + "value": "-8px" + } + }, + "avatar-to-avatar-300": { + "prop": "--spectrum-avatar-to-avatar-300", + "desktop": { + "value": "-8px" + }, + "mobile": { + "value": "-9px" + } + }, + "avatar-to-avatar-400": { + "prop": "--spectrum-avatar-to-avatar-400", + "desktop": { + "value": "-9px" + }, + "mobile": { + "value": "-10px" + } + }, + "avatar-to-avatar-50": { + "prop": "--spectrum-avatar-to-avatar-50", + "desktop": { + "value": "-4px" + }, + "mobile": { + "value": "-5px" + } + }, + "avatar-to-avatar-500": { + "prop": "--spectrum-avatar-to-avatar-500", + "desktop": { + "value": "-10px" + }, + "mobile": { + "value": "-11px" + } + }, + "avatar-to-avatar-75": { + "prop": "--spectrum-avatar-to-avatar-75", + "desktop": { + "value": "-5px" + }, + "mobile": { + "value": "-6px" + } + }, + "background-base-color": { + "prop": "--spectrum-background-base-color", + "ref": "var(--spectrum-gray-25)", + "dark": { + "value": "rgb(17, 17, 17)" + }, + "light": { + "value": "rgb(255, 255, 255)" + } + }, + "background-elevated-color": { + "prop": "--spectrum-background-elevated-color", + "ref": "var(--spectrum-gray-25)", + "dark": { + "value": "rgb(34, 34, 34)" + }, + "light": { + "value": "rgb(255, 255, 255)" + } + }, + "background-layer-1-color": { + "prop": "--spectrum-background-layer-1-color", + "ref": "var(--spectrum-gray-50)", + "light": { + "value": "rgb(248, 248, 248)" + }, + "dark": { + "value": "rgb(27, 27, 27)" + } + }, + "background-layer-2-color": { + "prop": "--spectrum-background-layer-2-color", + "ref": "var(--spectrum-gray-75)", + "light": { + "value": "rgb(255, 255, 255)" + }, + "dark": { + "value": "rgb(34, 34, 34)" + } + }, + "background-opacity-default": { + "prop": "--spectrum-background-opacity-default", + "value": "0" + }, + "background-opacity-down": { + "prop": "--spectrum-background-opacity-down", + "value": "0.1" }, "background-opacity-hover": { "prop": "--spectrum-background-opacity-hover", @@ -933,6 +1304,42 @@ "value": "rgb(233, 233, 233)" } }, + "bar-panel-gripper-color": { + "prop": "--spectrum-bar-panel-gripper-color", + "ref": "var(--spectrum-gray-200)", + "light": { + "value": "rgb(225, 225, 225)" + }, + "dark": { + "value": "rgb(50, 50, 50)" + } + }, + "bar-panel-gripper-color-drag": { + "prop": "--spectrum-bar-panel-gripper-color-drag", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" + }, + "dark": { + "value": "rgb(219, 219, 219)" + } + }, + "bar-panel-maximum-width": { + "prop": "--spectrum-bar-panel-maximum-width", + "value": "72px" + }, + "bar-panel-minimum-width": { + "prop": "--spectrum-bar-panel-minimum-width", + "value": "40px" + }, + "bar-panel-spacing-extra-spacious": { + "prop": "--spectrum-bar-panel-spacing-extra-spacious", + "value": "20px" + }, + "bar-panel-width": { + "prop": "--spectrum-bar-panel-width", + "value": "56px" + }, "black": { "prop": "--spectrum-black", "value": "rgb(0, 0, 0)" @@ -1143,46 +1550,126 @@ "body-cjk-line-height": { "prop": "--spectrum-body-cjk-line-height", "ref": "var(--spectrum-cjk-line-height-200)", - "value": "1.7" + "value": 1.7 }, - "body-cjk-strong-emphasized-font-style": { - "prop": "--spectrum-body-cjk-strong-emphasized-font-style", - "ref": "var(--spectrum-default-font-style)", - "value": "normal" + "body-cjk-size-l": { + "prop": "--spectrum-body-cjk-size-l", + "ref": "var(--spectrum-font-size-200)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "19px" + } }, - "body-cjk-strong-emphasized-font-weight": { - "prop": "--spectrum-body-cjk-strong-emphasized-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "body-cjk-size-m": { + "prop": "--spectrum-body-cjk-size-m", + "ref": "var(--spectrum-font-size-100)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } }, - "body-cjk-strong-font-style": { - "prop": "--spectrum-body-cjk-strong-font-style", - "ref": "var(--spectrum-default-font-style)", - "value": "normal" + "body-cjk-size-s": { + "prop": "--spectrum-body-cjk-size-s", + "ref": "var(--spectrum-font-size-75)", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } }, - "body-cjk-strong-font-weight": { - "prop": "--spectrum-body-cjk-strong-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "body-cjk-size-xl": { + "prop": "--spectrum-body-cjk-size-xl", + "ref": "var(--spectrum-font-size-300)", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } }, - "body-color": { - "prop": "--spectrum-body-color", - "ref": "var(--spectrum-gray-800)", - "light": { - "value": "rgb(41, 41, 41)" + "body-cjk-size-xs": { + "prop": "--spectrum-body-cjk-size-xs", + "ref": "var(--spectrum-font-size-50)", + "desktop": { + "value": "11px" }, - "dark": { - "value": "rgb(219, 219, 219)" + "mobile": { + "value": "13px" + } + }, + "body-cjk-size-xxl": { + "prop": "--spectrum-body-cjk-size-xxl", + "ref": "var(--spectrum-font-size-400)", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "body-cjk-size-xxs": { + "prop": "--spectrum-body-cjk-size-xxs", + "ref": "var(--spectrum-font-size-25)", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "12px" + } + }, + "body-cjk-size-xxxl": { + "prop": "--spectrum-body-cjk-size-xxxl", + "ref": "var(--spectrum-font-size-500)", + "desktop": { + "value": "22px" + }, + "mobile": { + "value": "27px" + } + }, + "body-cjk-strong-emphasized-font-style": { + "prop": "--spectrum-body-cjk-strong-emphasized-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "body-cjk-strong-emphasized-font-weight": { + "prop": "--spectrum-body-cjk-strong-emphasized-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "body-cjk-strong-font-style": { + "prop": "--spectrum-body-cjk-strong-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "body-cjk-strong-font-weight": { + "prop": "--spectrum-body-cjk-strong-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "body-color": { + "prop": "--spectrum-body-color", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" + }, + "dark": { + "value": "rgb(219, 219, 219)" } }, "body-line-height": { "prop": "--spectrum-body-line-height", "ref": "var(--spectrum-line-height-200)", - "value": "1.5" + "value": 1.5 }, "body-margin-multiplier": { "prop": "--spectrum-body-margin-multiplier", - "value": "0.75" + "value": 0.75 }, "body-sans-serif-emphasized-font-style": { "prop": "--spectrum-body-sans-serif-emphasized-font-style", @@ -1334,6 +1821,16 @@ "value": "27px" } }, + "body-size-xxs": { + "prop": "--spectrum-body-size-xxs", + "ref": "var(--spectrum-font-size-50)", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "13px" + } + }, "body-size-xxxl": { "prop": "--spectrum-body-size-xxxl", "ref": "var(--spectrum-font-size-600)", @@ -1362,20 +1859,22 @@ }, "breadcrumbs-bottom-to-text": { "prop": "--spectrum-breadcrumbs-bottom-to-text", + "ref": "var(--spectrum-component-bottom-to-text-200)", "desktop": { - "value": "15px" + "value": "11px" }, "mobile": { - "value": "19px" + "value": "14px" } }, "breadcrumbs-bottom-to-text-compact": { "prop": "--spectrum-breadcrumbs-bottom-to-text-compact", + "ref": "var(--spectrum-component-bottom-to-text-100)", "desktop": { - "value": "12px" + "value": "9px" }, "mobile": { - "value": "19px" + "value": "11px" } }, "breadcrumbs-bottom-to-text-multiline": { @@ -1384,7 +1883,7 @@ "value": "9px" }, "mobile": { - "value": "10px" + "value": "11px" } }, "breadcrumbs-end-edge-to-text": { @@ -1393,22 +1892,22 @@ }, "breadcrumbs-height": { "prop": "--spectrum-breadcrumbs-height", - "ref": "var(--spectrum-component-height-300)", + "ref": "var(--spectrum-component-height-200)", "desktop": { - "value": "48px" + "value": "40px" }, "mobile": { - "value": "60px" + "value": "50px" } }, "breadcrumbs-height-compact": { "prop": "--spectrum-breadcrumbs-height-compact", - "ref": "var(--spectrum-component-height-200)", + "ref": "var(--spectrum-component-height-100)", "desktop": { - "value": "40px" + "value": "32px" }, "mobile": { - "value": "50px" + "value": "40px" } }, "breadcrumbs-height-multiline": { @@ -1417,11 +1916,21 @@ "value": "72px" }, "mobile": { - "value": "84px" + "value": "90px" } }, "breadcrumbs-separator-icon-to-bottom-text-multiline": { "prop": "--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline", + "ref": "var(--spectrum-breadcrumbs-separator-to-bottom-text-multiline)", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "15px" + } + }, + "breadcrumbs-separator-to-bottom-text-multiline": { + "prop": "--spectrum-breadcrumbs-separator-to-bottom-text-multiline", "desktop": { "value": "11px" }, @@ -1431,17 +1940,72 @@ }, "breadcrumbs-start-edge-to-text": { "prop": "--spectrum-breadcrumbs-start-edge-to-text", + "ref": "var(--spectrum-breadcrumbs-start-edge-to-text-large)", "desktop": { - "value": "8px" + "value": "9px" }, "mobile": { + "value": "11px" + } + }, + "breadcrumbs-start-edge-to-text-large": { + "prop": "--spectrum-breadcrumbs-start-edge-to-text-large", + "desktop": { "value": "9px" + }, + "mobile": { + "value": "11px" + } + }, + "breadcrumbs-start-edge-to-text-medium": { + "prop": "--spectrum-breadcrumbs-start-edge-to-text-medium", + "desktop": { + "value": "6px" + }, + "mobile": { + "value": "8px" + } + }, + "breadcrumbs-start-edge-to-text-multiline": { + "prop": "--spectrum-breadcrumbs-start-edge-to-text-multiline", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" } }, "breadcrumbs-start-edge-to-truncated-menu": { "prop": "--spectrum-breadcrumbs-start-edge-to-truncated-menu", "value": "0px" }, + "breadcrumbs-text-to-separator-large": { + "prop": "--spectrum-breadcrumbs-text-to-separator-large", + "desktop": { + "value": "9px" + }, + "mobile": { + "value": "11px" + } + }, + "breadcrumbs-text-to-separator-medium": { + "prop": "--spectrum-breadcrumbs-text-to-separator-medium", + "desktop": { + "value": "6px" + }, + "mobile": { + "value": "8px" + } + }, + "breadcrumbs-text-to-separator-multiline": { + "prop": "--spectrum-breadcrumbs-text-to-separator-multiline", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, "breadcrumbs-top-text-to-bottom-text": { "prop": "--spectrum-breadcrumbs-top-text-to-bottom-text", "desktop": { @@ -1453,24 +2017,36 @@ }, "breadcrumbs-top-to-separator-icon": { "prop": "--spectrum-breadcrumbs-top-to-separator-icon", + "ref": "var(--spectrum-breadcrumbs-top-to-separator-large)", "desktop": { - "value": "19px" + "value": "15px" }, "mobile": { - "value": "25px" + "value": "20px" } }, "breadcrumbs-top-to-separator-icon-compact": { "prop": "--spectrum-breadcrumbs-top-to-separator-icon-compact", + "ref": "var(--spectrum-breadcrumbs-top-to-separator-medium)", "desktop": { - "value": "15px" + "value": "11px" }, "mobile": { - "value": "23px" + "value": "15px" } }, "breadcrumbs-top-to-separator-icon-multiline": { "prop": "--spectrum-breadcrumbs-top-to-separator-icon-multiline", + "ref": "var(--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline)", + "desktop": { + "value": "7px" + }, + "mobile": { + "value": "15px" + } + }, + "breadcrumbs-top-to-separator-large": { + "prop": "--spectrum-breadcrumbs-top-to-separator-large", "desktop": { "value": "15px" }, @@ -1478,44 +2054,64 @@ "value": "20px" } }, + "breadcrumbs-top-to-separator-medium": { + "prop": "--spectrum-breadcrumbs-top-to-separator-medium", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "15px" + } + }, + "breadcrumbs-top-to-separator-multiline": { + "prop": "--spectrum-breadcrumbs-top-to-separator-multiline", + "desktop": { + "value": "7px" + }, + "mobile": { + "value": "10px" + } + }, "breadcrumbs-top-to-text": { "prop": "--spectrum-breadcrumbs-top-to-text", + "ref": "var(--spectrum-component-top-to-text-200)", "desktop": { - "value": "13px" + "value": "9px" }, "mobile": { - "value": "17px" + "value": "12px" } }, "breadcrumbs-top-to-text-compact": { "prop": "--spectrum-breadcrumbs-top-to-text-compact", + "ref": "var(--spectrum-component-top-to-text-100)", "desktop": { - "value": "11px" + "value": "6px" }, "mobile": { - "value": "16px" + "value": "8px" } }, "breadcrumbs-top-to-text-multiline": { "prop": "--spectrum-breadcrumbs-top-to-text-multiline", "desktop": { - "value": "12px" + "value": "4px" }, "mobile": { - "value": "15px" + "value": "5px" } }, "breadcrumbs-top-to-truncated-menu": { "prop": "--spectrum-breadcrumbs-top-to-truncated-menu", - "desktop": { - "value": "8px" - }, - "mobile": { - "value": "10px" - } + "value": "0px" }, "breadcrumbs-top-to-truncated-menu-compact": { "prop": "--spectrum-breadcrumbs-top-to-truncated-menu-compact", + "ref": "var(--spectrum-breadcrumbs-top-to-truncated-menu)", + "value": "0px" + }, + "breadcrumbs-truncated-menu-to-bottom-text": { + "prop": "--spectrum-breadcrumbs-truncated-menu-to-bottom-text", "desktop": { "value": "4px" }, @@ -1523,12 +2119,13 @@ "value": "5px" } }, - "breadcrumbs-truncated-menu-to-bottom-text": { - "prop": "--spectrum-breadcrumbs-truncated-menu-to-bottom-text", + "breadcrumbs-truncated-menu-to-separator": { + "prop": "--spectrum-breadcrumbs-truncated-menu-to-separator", "value": "0px" }, "breadcrumbs-truncated-menu-to-separator-icon": { "prop": "--spectrum-breadcrumbs-truncated-menu-to-separator-icon", + "ref": "var(--spectrum-breadcrumbs-truncated-menu-to-separator)", "value": "0px" }, "brown-100": { @@ -1707,7 +2304,7 @@ }, "button-minimum-width-multiplier": { "prop": "--spectrum-button-minimum-width-multiplier", - "value": "2.25" + "value": 2.25 }, "card-minimum-width": { "prop": "--spectrum-card-minimum-width", @@ -2122,73 +2719,73 @@ "checkbox-control-size-extra-large": { "prop": "--spectrum-checkbox-control-size-extra-large", "desktop": { - "value": "18px" + "value": "20px" }, "mobile": { - "value": "22px" + "value": "26px" } }, "checkbox-control-size-large": { "prop": "--spectrum-checkbox-control-size-large", "desktop": { - "value": "16px" + "value": "18px" }, "mobile": { - "value": "20px" + "value": "22px" } }, "checkbox-control-size-medium": { "prop": "--spectrum-checkbox-control-size-medium", "desktop": { - "value": "14px" + "value": "16px" }, "mobile": { - "value": "18px" + "value": "20px" } }, "checkbox-control-size-small": { "prop": "--spectrum-checkbox-control-size-small", "desktop": { - "value": "12px" + "value": "14px" }, "mobile": { - "value": "16px" + "value": "18px" } }, "checkbox-top-to-control-extra-large": { "prop": "--spectrum-checkbox-top-to-control-extra-large", "desktop": { - "value": "15px" + "value": "14px" }, "mobile": { - "value": "19px" + "value": "17px" } }, "checkbox-top-to-control-large": { "prop": "--spectrum-checkbox-top-to-control-large", "desktop": { - "value": "12px" + "value": "11px" }, "mobile": { - "value": "15px" + "value": "14px" } }, "checkbox-top-to-control-medium": { "prop": "--spectrum-checkbox-top-to-control-medium", "desktop": { - "value": "9px" + "value": "8px" }, "mobile": { - "value": "11px" + "value": "10px" } }, "checkbox-top-to-control-small": { "prop": "--spectrum-checkbox-top-to-control-small", "desktop": { - "value": "6px" + "value": "5px" }, "mobile": { - "value": "7px" + "value": "6px" } }, "checkmark-icon-size-100": { @@ -2515,24 +3112,73 @@ }, "cjk-letter-spacing": { "prop": "--spectrum-cjk-letter-spacing", - "value": "0.05em" + "ref": "var(--spectrum-letter-spacing)", + "value": "0em" }, "cjk-line-height-100": { "prop": "--spectrum-cjk-line-height-100", - "value": "1.5" + "value": 1.5 }, "cjk-line-height-200": { "prop": "--spectrum-cjk-line-height-200", - "value": "1.7" + "value": 1.7 + }, + "coach-indicator-collapsed-gap": { + "prop": "--spectrum-coach-indicator-collapsed-gap", + "value": "2px" + }, + "coach-indicator-collapsed-ring-rounding-increment": { + "prop": "--spectrum-coach-indicator-collapsed-ring-rounding-increment", + "value": "6px" + }, + "coach-indicator-collapsed-ring-thickness": { + "prop": "--spectrum-coach-indicator-collapsed-ring-thickness", + "value": "4px" + }, + "coach-indicator-color": { + "prop": "--spectrum-coach-indicator-color", + "ref": "var(--spectrum-blue-800)", + "light": { + "value": "rgb(75, 117, 255)" + }, + "dark": { + "value": "rgb(64, 105, 253)" + } + }, + "coach-indicator-expanded-gap": { + "prop": "--spectrum-coach-indicator-expanded-gap", + "value": "6px" + }, + "coach-indicator-expanded-ring-rounding-increment": { + "prop": "--spectrum-coach-indicator-expanded-ring-rounding-increment", + "value": "14px" + }, + "coach-indicator-expanded-ring-thickness": { + "prop": "--spectrum-coach-indicator-expanded-ring-thickness", + "value": "8px" + }, + "coach-indicator-opacity": { + "prop": "--spectrum-coach-indicator-opacity", + "value": "0.2" + }, + "coach-mark-body-font-size": { + "prop": "--spectrum-coach-mark-body-font-size", + "ref": "var(--spectrum-body-size-s)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "17px" + } }, "coach-mark-body-size": { "prop": "--spectrum-coach-mark-body-size", - "ref": "var(--spectrum-body-size-xs)", + "ref": "var(--spectrum-body-size-s)", "desktop": { - "value": "14px" + "value": "16px" }, "mobile": { - "value": "15px" + "value": "17px" } }, "coach-mark-edge-to-content": { @@ -2582,6 +3228,16 @@ "value": "216px" } }, + "coach-mark-pagination-body-font-size": { + "prop": "--spectrum-coach-mark-pagination-body-font-size", + "ref": "var(--spectrum-body-size-xs)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "15px" + } + }, "coach-mark-pagination-body-size": { "prop": "--spectrum-coach-mark-pagination-body-size", "ref": "var(--spectrum-body-size-xs)", @@ -2611,9 +3267,19 @@ "value": "22px" } }, + "coach-mark-title-font-size": { + "prop": "--spectrum-coach-mark-title-font-size", + "ref": "var(--spectrum-title-size-s)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "17px" + } + }, "coach-mark-title-size": { "prop": "--spectrum-coach-mark-title-size", - "ref": "var(--spectrum-heading-size-xxs)", + "ref": "var(--spectrum-title-size-s)", "desktop": { "value": "16px" }, @@ -2658,7 +3324,57 @@ "code-cjk-line-height": { "prop": "--spectrum-code-cjk-line-height", "ref": "var(--spectrum-cjk-line-height-200)", - "value": "1.7" + "value": 1.7 + }, + "code-cjk-size-l": { + "prop": "--spectrum-code-cjk-size-l", + "ref": "var(--spectrum-code-size-l)", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "code-cjk-size-m": { + "prop": "--spectrum-code-cjk-size-m", + "ref": "var(--spectrum-code-size-m)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "19px" + } + }, + "code-cjk-size-s": { + "prop": "--spectrum-code-cjk-size-s", + "ref": "var(--spectrum-code-size-s)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "code-cjk-size-xl": { + "prop": "--spectrum-code-cjk-size-xl", + "ref": "var(--spectrum-code-size-xl)", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "code-cjk-size-xs": { + "prop": "--spectrum-code-cjk-size-xs", + "ref": "var(--spectrum-code-size-xs)", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } }, "code-cjk-strong-emphasized-font-style": { "prop": "--spectrum-code-cjk-strong-emphasized-font-style", @@ -2667,8 +3383,8 @@ }, "code-cjk-strong-emphasized-font-weight": { "prop": "--spectrum-code-cjk-strong-emphasized-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" }, "code-cjk-strong-font-style": { "prop": "--spectrum-code-cjk-strong-font-style", @@ -2677,8 +3393,8 @@ }, "code-cjk-strong-font-weight": { "prop": "--spectrum-code-cjk-strong-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" }, "code-color": { "prop": "--spectrum-code-color", @@ -2717,7 +3433,7 @@ "code-line-height": { "prop": "--spectrum-code-line-height", "ref": "var(--spectrum-line-height-200)", - "value": "1.5" + "value": 1.5 }, "code-size-l": { "prop": "--spectrum-code-size-l", @@ -2791,12 +3507,12 @@ }, "color-area-border-color": { "prop": "--spectrum-color-area-border-color", - "ref": "var(--spectrum-gray-900)", - "light": { - "value": "rgb(19, 19, 19)" - }, + "ref": "var(--spectrum-gray-1000)", "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 0, 0)" } }, "color-area-border-opacity": { @@ -2936,20 +3652,22 @@ }, "color-loupe-drop-shadow-blur": { "prop": "--spectrum-color-loupe-drop-shadow-blur", + "ref": "var(--spectrum-drop-shadow-elevated-blur)", "value": "8px" }, "color-loupe-drop-shadow-color": { "prop": "--spectrum-color-loupe-drop-shadow-color", - "ref": "var(--spectrum-transparent-black-300)", + "ref": "var(--spectrum-drop-shadow-elevated-color)", "light": { - "value": "rgba(0, 0, 0, 0.15)" + "value": "rgba(0, 0, 0, 0.16)" }, "dark": { - "value": "rgba(0, 0, 0, 0.15)" + "value": "rgba(0, 0, 0, 0.48)" } }, "color-loupe-drop-shadow-y": { "prop": "--spectrum-color-loupe-drop-shadow-y", + "ref": "var(--spectrum-drop-shadow-elevated-y)", "value": "2px" }, "color-loupe-height": { @@ -2959,12 +3677,7 @@ "color-loupe-inner-border": { "prop": "--spectrum-color-loupe-inner-border", "ref": "var(--spectrum-transparent-black-200)", - "light": { - "value": "rgba(0, 0, 0, 0.12)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.12)" - } + "value": "rgba(0, 0, 0, 0.12)" }, "color-loupe-inner-border-width": { "prop": "--spectrum-color-loupe-inner-border-width", @@ -2973,12 +3686,7 @@ "color-loupe-outer-border": { "prop": "--spectrum-color-loupe-outer-border", "ref": "var(--spectrum-white)", - "light": { - "value": "rgb(255, 255, 255)" - }, - "dark": { - "value": "rgb(255, 255, 255)" - } + "value": "rgb(255, 255, 255)" }, "color-loupe-outer-border-width": { "prop": "--spectrum-color-loupe-outer-border-width", @@ -2991,12 +3699,12 @@ }, "color-slider-border-color": { "prop": "--spectrum-color-slider-border-color", - "ref": "var(--spectrum-gray-900)", - "light": { - "value": "rgb(19, 19, 19)" - }, + "ref": "var(--spectrum-gray-1000)", "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 0, 0)" } }, "color-slider-border-opacity": { @@ -3030,6 +3738,20 @@ "value": "100px" } }, + "color-wheel-border-color": { + "prop": "--spectrum-color-wheel-border-color", + "ref": "var(--spectrum-gray-1000)", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 0, 0)" + } + }, + "color-wheel-border-opacity": { + "prop": "--spectrum-color-wheel-border-opacity", + "value": "0.1" + }, "color-wheel-color-area-margin": { "prop": "--spectrum-color-wheel-color-area-margin", "value": "12px" @@ -3054,51 +3776,40 @@ }, "combo-box-minimum-width-multiplier": { "prop": "--spectrum-combo-box-minimum-width-multiplier", - "value": "2.5" + "value": 2.5 }, "combo-box-quiet-minimum-width-multiplier": { "prop": "--spectrum-combo-box-quiet-minimum-width-multiplier", - "value": "2" + "value": 2 + }, + "combo-box-visual-to-field-button": { + "prop": "--spectrum-combo-box-visual-to-field-button", + "value": "0px" }, "combo-box-visual-to-field-button-extra-large": { "prop": "--spectrum-combo-box-visual-to-field-button-extra-large", - "desktop": { - "value": "10px" - }, - "mobile": { - "value": "13px" - } + "ref": "var(--spectrum-combo-box-visual-to-field-button)", + "value": "0px" }, "combo-box-visual-to-field-button-large": { "prop": "--spectrum-combo-box-visual-to-field-button-large", - "desktop": { - "value": "9px" - }, - "mobile": { - "value": "11px" - } + "ref": "var(--spectrum-combo-box-visual-to-field-button)", + "value": "0px" }, "combo-box-visual-to-field-button-medium": { "prop": "--spectrum-combo-box-visual-to-field-button-medium", - "desktop": { - "value": "8px" - }, - "mobile": { - "value": "10px" - } + "ref": "var(--spectrum-combo-box-visual-to-field-button)", + "value": "0px" }, "combo-box-visual-to-field-button-quiet": { "prop": "--spectrum-combo-box-visual-to-field-button-quiet", + "ref": "var(--spectrum-combo-box-visual-to-field-button)", "value": "0px" }, "combo-box-visual-to-field-button-small": { "prop": "--spectrum-combo-box-visual-to-field-button-small", - "desktop": { - "value": "7px" - }, - "mobile": { - "value": "9px" - } + "ref": "var(--spectrum-combo-box-visual-to-field-button)", + "value": "0px" }, "component-bottom-to-text-100": { "prop": "--spectrum-component-bottom-to-text-100", @@ -3160,13 +3871,13 @@ "value": "15px" }, "mobile": { - "value": "18px" + "value": "19px" } }, "component-edge-to-text-300": { "prop": "--spectrum-component-edge-to-text-300", "desktop": { - "value": "17px" + "value": "18px" }, "mobile": { "value": "22px" @@ -3178,16 +3889,16 @@ "value": "8px" }, "mobile": { - "value": "11px" + "value": "10px" } }, "component-edge-to-text-75": { "prop": "--spectrum-component-edge-to-text-75", "desktop": { - "value": "10px" + "value": "9px" }, "mobile": { - "value": "13px" + "value": "11px" } }, "component-edge-to-visual-100": { @@ -3205,34 +3916,34 @@ "value": "13px" }, "mobile": { - "value": "15px" + "value": "16px" } }, "component-edge-to-visual-300": { "prop": "--spectrum-component-edge-to-visual-300", "desktop": { - "value": "14px" + "value": "15px" }, "mobile": { - "value": "20px" + "value": "19px" } }, "component-edge-to-visual-50": { "prop": "--spectrum-component-edge-to-visual-50", "desktop": { - "value": "7px" + "value": "6px" }, "mobile": { - "value": "9px" + "value": "7px" } }, "component-edge-to-visual-75": { "prop": "--spectrum-component-edge-to-visual-75", "desktop": { - "value": "8px" + "value": "7px" }, "mobile": { - "value": "11px" + "value": "9px" } }, "component-edge-to-visual-only-100": { @@ -3358,13 +4069,13 @@ "value": "20px" }, "mobile": { - "value": "24px" + "value": "25px" } }, "component-pill-edge-to-text-300": { "prop": "--spectrum-component-pill-edge-to-text-300", "desktop": { - "value": "23px" + "value": "24px" }, "mobile": { "value": "30px" @@ -3373,10 +4084,10 @@ "component-pill-edge-to-text-75": { "prop": "--spectrum-component-pill-edge-to-text-75", "desktop": { - "value": "13px" + "value": "12px" }, "mobile": { - "value": "17px" + "value": "15px" } }, "component-pill-edge-to-visual-100": { @@ -3394,25 +4105,25 @@ "value": "18px" }, "mobile": { - "value": "21px" + "value": "22px" } }, "component-pill-edge-to-visual-300": { "prop": "--spectrum-component-pill-edge-to-visual-300", "desktop": { - "value": "20px" + "value": "21px" }, "mobile": { - "value": "28px" + "value": "27px" } }, "component-pill-edge-to-visual-75": { "prop": "--spectrum-component-pill-edge-to-visual-75", "desktop": { - "value": "11px" + "value": "10px" }, "mobile": { - "value": "15px" + "value": "13px" } }, "component-pill-edge-to-visual-only-100": { @@ -3451,6 +4162,22 @@ "value": "6px" } }, + "component-size-difference-down": { + "prop": "--spectrum-component-size-difference-down", + "value": "-2px" + }, + "component-size-maximum-perspective-down": { + "prop": "--spectrum-component-size-maximum-perspective-down", + "value": "96px" + }, + "component-size-minimum-perspective-down": { + "prop": "--spectrum-component-size-minimum-perspective-down", + "value": "24px" + }, + "component-size-width-ratio-down": { + "prop": "--spectrum-component-size-width-ratio-down", + "value": 0.3333 + }, "component-to-menu-extra-large": { "prop": "--spectrum-component-to-menu-extra-large", "desktop": { @@ -3577,6 +4304,16 @@ "value": "6px" } }, + "contextual-help-body-font-size": { + "prop": "--spectrum-contextual-help-body-font-size", + "ref": "var(--spectrum-body-size-xs)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "15px" + } + }, "contextual-help-body-size": { "prop": "--spectrum-contextual-help-body-size", "ref": "var(--spectrum-body-size-xs)", @@ -3591,9 +4328,19 @@ "prop": "--spectrum-contextual-help-minimum-width", "value": "268px" }, + "contextual-help-title-font-size": { + "prop": "--spectrum-contextual-help-title-font-size", + "ref": "var(--spectrum-title-size-s)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "17px" + } + }, "contextual-help-title-size": { "prop": "--spectrum-contextual-help-title-size", - "ref": "var(--spectrum-heading-size-xxs)", + "ref": "var(--spectrum-title-size-s)", "desktop": { "value": "16px" }, @@ -3607,15 +4354,15 @@ }, "corner-radius-100": { "prop": "--spectrum-corner-radius-100", - "value": "8px" + "value": "4px" }, "corner-radius-1000": { "prop": "--spectrum-corner-radius-1000", - "value": "0.5" + "value": 0.5 }, "corner-radius-200": { "prop": "--spectrum-corner-radius-200", - "value": "10px" + "value": "5px" }, "corner-radius-300": { "prop": "--spectrum-corner-radius-300", @@ -3639,7 +4386,7 @@ }, "corner-radius-75": { "prop": "--spectrum-corner-radius-75", - "value": "4px" + "value": "3px" }, "corner-radius-800": { "prop": "--spectrum-corner-radius-800", @@ -3653,7 +4400,7 @@ "corner-radius-full": { "prop": "--spectrum-corner-radius-full", "ref": "var(--spectrum-corner-radius-1000)", - "value": "0.5" + "value": 0.5 }, "corner-radius-large-default": { "prop": "--spectrum-corner-radius-large-default", @@ -3698,7 +4445,7 @@ "corner-radius-small-default": { "prop": "--spectrum-corner-radius-small-default", "ref": "var(--spectrum-corner-radius-100)", - "value": "8px" + "value": "4px" }, "corner-radius-small-size-extra-large": { "prop": "--spectrum-corner-radius-small-size-extra-large", @@ -3708,17 +4455,17 @@ "corner-radius-small-size-large": { "prop": "--spectrum-corner-radius-small-size-large", "ref": "var(--spectrum-corner-radius-200)", - "value": "10px" + "value": "5px" }, "corner-radius-small-size-medium": { "prop": "--spectrum-corner-radius-small-size-medium", "ref": "var(--spectrum-corner-radius-100)", - "value": "8px" + "value": "4px" }, "corner-radius-small-size-small": { "prop": "--spectrum-corner-radius-small-size-small", "ref": "var(--spectrum-corner-radius-75)", - "value": "4px" + "value": "3px" }, "corner-triangle-icon-size-100": { "prop": "--spectrum-corner-triangle-icon-size-100", @@ -4081,8 +4828,8 @@ }, "detail-cjk-emphasized-font-weight": { "prop": "--spectrum-detail-cjk-emphasized-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "detail-cjk-font-family": { "prop": "--spectrum-detail-cjk-font-family", @@ -4096,8 +4843,8 @@ }, "detail-cjk-font-weight": { "prop": "--spectrum-detail-cjk-font-weight", - "ref": "var(--spectrum-extra-bold-font-weight)", - "value": "800" + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" }, "detail-cjk-light-emphasized-font-style": { "prop": "--spectrum-detail-cjk-light-emphasized-font-style", @@ -4142,7 +4889,57 @@ "detail-cjk-line-height": { "prop": "--spectrum-detail-cjk-line-height", "ref": "var(--spectrum-cjk-line-height-100)", - "value": "1.5" + "value": 1.5 + }, + "detail-cjk-size-l": { + "prop": "--spectrum-detail-cjk-size-l", + "ref": "var(--spectrum-font-size-100)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "detail-cjk-size-m": { + "prop": "--spectrum-detail-cjk-size-m", + "ref": "var(--spectrum-font-size-75)", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } + }, + "detail-cjk-size-s": { + "prop": "--spectrum-detail-cjk-size-s", + "ref": "var(--spectrum-font-size-50)", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "13px" + } + }, + "detail-cjk-size-xl": { + "prop": "--spectrum-detail-cjk-size-xl", + "ref": "var(--spectrum-font-size-200)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "19px" + } + }, + "detail-cjk-size-xs": { + "prop": "--spectrum-detail-cjk-size-xs", + "ref": "var(--spectrum-font-size-25)", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "12px" + } }, "detail-cjk-strong-emphasized-font-style": { "prop": "--spectrum-detail-cjk-strong-emphasized-font-style", @@ -4151,8 +4948,8 @@ }, "detail-cjk-strong-emphasized-font-weight": { "prop": "--spectrum-detail-cjk-strong-emphasized-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "detail-cjk-strong-font-style": { "prop": "--spectrum-detail-cjk-strong-font-style", @@ -4161,17 +4958,17 @@ }, "detail-cjk-strong-font-weight": { "prop": "--spectrum-detail-cjk-strong-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "detail-color": { "prop": "--spectrum-detail-color", - "ref": "var(--spectrum-gray-900)", + "ref": "var(--spectrum-gray-600)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(113, 113, 113)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(138, 138, 138)" } }, "detail-letter-spacing": { @@ -4181,15 +4978,15 @@ "detail-line-height": { "prop": "--spectrum-detail-line-height", "ref": "var(--spectrum-line-height-100)", - "value": "1.3" + "value": 1.3 }, "detail-margin-bottom-multiplier": { "prop": "--spectrum-detail-margin-bottom-multiplier", - "value": "0.25" + "value": 0.25 }, "detail-margin-top-multiplier": { "prop": "--spectrum-detail-margin-top-multiplier", - "value": "0.88888889" + "value": 0.88888889 }, "detail-sans-serif-emphasized-font-style": { "prop": "--spectrum-detail-sans-serif-emphasized-font-style", @@ -4198,8 +4995,8 @@ }, "detail-sans-serif-emphasized-font-weight": { "prop": "--spectrum-detail-sans-serif-emphasized-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-regular-font-weight)", + "value": "400" }, "detail-sans-serif-font-family": { "prop": "--spectrum-detail-sans-serif-font-family", @@ -4213,8 +5010,8 @@ }, "detail-sans-serif-font-weight": { "prop": "--spectrum-detail-sans-serif-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-medium-font-weight)", + "value": "500" }, "detail-sans-serif-light-emphasized-font-style": { "prop": "--spectrum-detail-sans-serif-light-emphasized-font-style", @@ -4287,8 +5084,8 @@ }, "detail-serif-emphasized-font-weight": { "prop": "--spectrum-detail-serif-emphasized-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-medium-font-weight)", + "value": "500" }, "detail-serif-font-family": { "prop": "--spectrum-detail-serif-font-family", @@ -4302,8 +5099,8 @@ }, "detail-serif-font-weight": { "prop": "--spectrum-detail-serif-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-medium-font-weight)", + "value": "500" }, "detail-serif-light-emphasized-font-style": { "prop": "--spectrum-detail-serif-light-emphasized-font-style", @@ -4371,42 +5168,52 @@ }, "detail-size-l": { "prop": "--spectrum-detail-size-l", - "ref": "var(--spectrum-font-size-100)", + "ref": "var(--spectrum-font-size-200)", "desktop": { - "value": "14px" + "value": "16px" }, "mobile": { - "value": "17px" + "value": "19px" } }, "detail-size-m": { "prop": "--spectrum-detail-size-m", - "ref": "var(--spectrum-font-size-75)", + "ref": "var(--spectrum-font-size-100)", "desktop": { - "value": "12px" + "value": "14px" }, "mobile": { - "value": "15px" + "value": "17px" } }, "detail-size-s": { "prop": "--spectrum-detail-size-s", - "ref": "var(--spectrum-font-size-50)", + "ref": "var(--spectrum-font-size-75)", "desktop": { - "value": "11px" + "value": "12px" }, "mobile": { - "value": "13px" + "value": "15px" } }, "detail-size-xl": { "prop": "--spectrum-detail-size-xl", - "ref": "var(--spectrum-font-size-200)", + "ref": "var(--spectrum-font-size-300)", "desktop": { - "value": "16px" + "value": "18px" }, "mobile": { - "value": "19px" + "value": "22px" + } + }, + "detail-size-xs": { + "prop": "--spectrum-detail-size-xs", + "ref": "var(--spectrum-font-size-50)", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "13px" } }, "disabled-background-color": { @@ -4442,62 +5249,32 @@ "disabled-static-black-background-color": { "prop": "--spectrum-disabled-static-black-background-color", "ref": "var(--spectrum-transparent-black-100)", - "light": { - "value": "rgba(0, 0, 0, 0.09)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.09)" - } + "value": "rgba(0, 0, 0, 0.09)" }, "disabled-static-black-border-color": { "prop": "--spectrum-disabled-static-black-border-color", "ref": "var(--spectrum-transparent-black-300)", - "light": { - "value": "rgba(0, 0, 0, 0.15)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.15)" - } + "value": "rgba(0, 0, 0, 0.15)" }, "disabled-static-black-content-color": { "prop": "--spectrum-disabled-static-black-content-color", "ref": "var(--spectrum-transparent-black-400)", - "light": { - "value": "rgba(0, 0, 0, 0.22)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.22)" - } + "value": "rgba(0, 0, 0, 0.22)" }, "disabled-static-white-background-color": { "prop": "--spectrum-disabled-static-white-background-color", "ref": "var(--spectrum-transparent-white-100)", - "light": { - "value": "rgba(255, 255, 255, 0.11)" - }, - "dark": { - "value": "rgba(255, 255, 255, 0.11)" - } + "value": "rgba(255, 255, 255, 0.11)" }, "disabled-static-white-border-color": { "prop": "--spectrum-disabled-static-white-border-color", "ref": "var(--spectrum-transparent-white-300)", - "light": { - "value": "rgba(255, 255, 255, 0.17)" - }, - "dark": { - "value": "rgba(255, 255, 255, 0.17)" - } + "value": "rgba(255, 255, 255, 0.17)" }, "disabled-static-white-content-color": { "prop": "--spectrum-disabled-static-white-content-color", "ref": "var(--spectrum-transparent-white-400)", - "light": { - "value": "rgba(255, 255, 255, 0.21)" - }, - "dark": { - "value": "rgba(255, 255, 255, 0.21)" - } + "value": "rgba(255, 255, 255, 0.21)" }, "disclosure-indicator-top-to-disclosure-icon-extra-large": { "prop": "--spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large", @@ -4535,6 +5312,10 @@ "value": "9px" } }, + "divider-horizontal-minimum-width": { + "prop": "--spectrum-divider-horizontal-minimum-width", + "value": "200px" + }, "divider-thickness-large": { "prop": "--spectrum-divider-thickness-large", "value": "4px" @@ -4547,14 +5328,26 @@ "prop": "--spectrum-divider-thickness-small", "value": "1px" }, + "divider-vertical-minimum-height": { + "prop": "--spectrum-divider-vertical-minimum-height", + "value": "200px" + }, "drop-shadow-blur": { "prop": "--spectrum-drop-shadow-blur", - "desktop": { - "value": "4px" - }, - "mobile": { - "value": "6px" - } + "ref": "var(--spectrum-drop-shadow-blur-100)", + "value": "6px" + }, + "drop-shadow-blur-100": { + "prop": "--spectrum-drop-shadow-blur-100", + "value": "6px" + }, + "drop-shadow-blur-200": { + "prop": "--spectrum-drop-shadow-blur-200", + "value": "8px" + }, + "drop-shadow-blur-300": { + "prop": "--spectrum-drop-shadow-blur-300", + "value": "16px" }, "drop-shadow-color": { "prop": "--spectrum-drop-shadow-color", @@ -4593,6 +5386,11 @@ "value": "rgba(0, 0, 0, 0.6)" } }, + "drop-shadow-dragged-blur": { + "prop": "--spectrum-drop-shadow-dragged-blur", + "ref": "var(--spectrum-drop-shadow-blur-300)", + "value": "16px" + }, "drop-shadow-dragged-color": { "prop": "--spectrum-drop-shadow-dragged-color", "ref": "var(--spectrum-drop-shadow-color-300)", @@ -4603,6 +5401,21 @@ "value": "rgba(0, 0, 0, 0.6)" } }, + "drop-shadow-dragged-x": { + "prop": "--spectrum-drop-shadow-dragged-x", + "ref": "var(--spectrum-drop-shadow-x-300)", + "value": "0px" + }, + "drop-shadow-dragged-y": { + "prop": "--spectrum-drop-shadow-dragged-y", + "ref": "var(--spectrum-drop-shadow-y-300)", + "value": "6px" + }, + "drop-shadow-elevated-blur": { + "prop": "--spectrum-drop-shadow-elevated-blur", + "ref": "var(--spectrum-drop-shadow-blur-200)", + "value": "8px" + }, "drop-shadow-elevated-color": { "prop": "--spectrum-drop-shadow-elevated-color", "ref": "var(--spectrum-drop-shadow-color-200)", @@ -4613,6 +5426,21 @@ "value": "rgba(0, 0, 0, 0.48)" } }, + "drop-shadow-elevated-x": { + "prop": "--spectrum-drop-shadow-elevated-x", + "ref": "var(--spectrum-drop-shadow-x-200)", + "value": "0px" + }, + "drop-shadow-elevated-y": { + "prop": "--spectrum-drop-shadow-elevated-y", + "ref": "var(--spectrum-drop-shadow-y-200)", + "value": "2px" + }, + "drop-shadow-emphasized-default-blur": { + "prop": "--spectrum-drop-shadow-emphasized-default-blur", + "ref": "var(--spectrum-drop-shadow-blur-100)", + "value": "6px" + }, "drop-shadow-emphasized-default-color": { "prop": "--spectrum-drop-shadow-emphasized-default-color", "ref": "var(--spectrum-drop-shadow-color-100)", @@ -4623,6 +5451,21 @@ "value": "rgba(0, 0, 0, 0.36)" } }, + "drop-shadow-emphasized-default-x": { + "prop": "--spectrum-drop-shadow-emphasized-default-x", + "ref": "var(--spectrum-drop-shadow-x-100)", + "value": "0px" + }, + "drop-shadow-emphasized-default-y": { + "prop": "--spectrum-drop-shadow-emphasized-default-y", + "ref": "var(--spectrum-drop-shadow-y-100)", + "value": "1px" + }, + "drop-shadow-emphasized-hover-blur": { + "prop": "--spectrum-drop-shadow-emphasized-hover-blur", + "ref": "var(--spectrum-drop-shadow-blur-200)", + "value": "8px" + }, "drop-shadow-emphasized-hover-color": { "prop": "--spectrum-drop-shadow-emphasized-hover-color", "ref": "var(--spectrum-drop-shadow-color-200)", @@ -4633,18 +5476,49 @@ "value": "rgba(0, 0, 0, 0.48)" } }, + "drop-shadow-emphasized-hover-x": { + "prop": "--spectrum-drop-shadow-emphasized-hover-x", + "ref": "var(--spectrum-drop-shadow-x-200)", + "value": "0px" + }, + "drop-shadow-emphasized-hover-y": { + "prop": "--spectrum-drop-shadow-emphasized-hover-y", + "ref": "var(--spectrum-drop-shadow-y-200)", + "value": "2px" + }, "drop-shadow-x": { "prop": "--spectrum-drop-shadow-x", + "ref": "var(--spectrum-drop-shadow-x-100)", + "value": "0px" + }, + "drop-shadow-x-100": { + "prop": "--spectrum-drop-shadow-x-100", + "value": "0px" + }, + "drop-shadow-x-200": { + "prop": "--spectrum-drop-shadow-x-200", + "value": "0px" + }, + "drop-shadow-x-300": { + "prop": "--spectrum-drop-shadow-x-300", "value": "0px" }, "drop-shadow-y": { "prop": "--spectrum-drop-shadow-y", - "desktop": { - "value": "1px" - }, - "mobile": { - "value": "2px" - } + "ref": "var(--spectrum-drop-shadow-y-100)", + "value": "1px" + }, + "drop-shadow-y-100": { + "prop": "--spectrum-drop-shadow-y-100", + "value": "1px" + }, + "drop-shadow-y-200": { + "prop": "--spectrum-drop-shadow-y-200", + "value": "2px" + }, + "drop-shadow-y-300": { + "prop": "--spectrum-drop-shadow-y-300", + "value": "6px" }, "drop-zone-background-color": { "prop": "--spectrum-drop-zone-background-color", @@ -4664,8 +5538,8 @@ "prop": "--spectrum-drop-zone-background-color-opacity-filled", "value": "0.3" }, - "drop-zone-body-size": { - "prop": "--spectrum-drop-zone-body-size", + "drop-zone-body-font-size": { + "prop": "--spectrum-drop-zone-body-font-size", "ref": "var(--spectrum-body-size-xs)", "desktop": { "value": "14px" @@ -4674,39 +5548,54 @@ "value": "15px" } }, + "drop-zone-body-size": { + "prop": "--spectrum-drop-zone-body-size", + "ref": "var(--spectrum-drop-zone-body-font-size)", + "value": "{drop-zone-body-font-size}" + }, "drop-zone-border-dash-gap": { "prop": "--spectrum-drop-zone-border-dash-gap", - "value": "4px" + "value": "6px" }, "drop-zone-border-dash-length": { "prop": "--spectrum-drop-zone-border-dash-length", "value": "8px" }, - "drop-zone-cjk-title-size": { - "prop": "--spectrum-drop-zone-cjk-title-size", - "ref": "var(--spectrum-heading-cjk-size-s)", + "drop-zone-cjk-title-font-size": { + "prop": "--spectrum-drop-zone-cjk-title-font-size", + "ref": "var(--spectrum-title-cjk-size-l)", "desktop": { - "value": "20px" + "value": "18px" }, "mobile": { - "value": "22px" + "value": "19px" } }, + "drop-zone-cjk-title-size": { + "prop": "--spectrum-drop-zone-cjk-title-size", + "ref": "var(--spectrum-drop-zone-cjk-title-font-size)", + "value": "{drop-zone-cjk-title-font-size}" + }, "drop-zone-content-maximum-width": { "prop": "--spectrum-drop-zone-content-maximum-width", "ref": "var(--spectrum-illustrated-message-maximum-width)", "value": "380px" }, - "drop-zone-title-size": { - "prop": "--spectrum-drop-zone-title-size", - "ref": "var(--spectrum-heading-size-s)", + "drop-zone-title-font-size": { + "prop": "--spectrum-drop-zone-title-font-size", + "ref": "var(--spectrum-title-size-l)", "desktop": { - "value": "22px" + "value": "20px" }, "mobile": { "value": "22px" } }, + "drop-zone-title-size": { + "prop": "--spectrum-drop-zone-title-size", + "ref": "var(--spectrum-drop-zone-title-font-size)", + "value": "{drop-zone-title-font-size}" + }, "drop-zone-width": { "prop": "--spectrum-drop-zone-width", "value": "428px" @@ -4715,6 +5604,42 @@ "prop": "--spectrum-extra-bold-font-weight", "value": "800" }, + "field-default-width-extra-large": { + "prop": "--spectrum-field-default-width-extra-large", + "desktop": { + "value": "240px" + }, + "mobile": { + "value": "288px" + } + }, + "field-default-width-large": { + "prop": "--spectrum-field-default-width-large", + "desktop": { + "value": "224px" + }, + "mobile": { + "value": "272px" + } + }, + "field-default-width-medium": { + "prop": "--spectrum-field-default-width-medium", + "desktop": { + "value": "208px" + }, + "mobile": { + "value": "256px" + } + }, + "field-default-width-small": { + "prop": "--spectrum-field-default-width-small", + "desktop": { + "value": "192px" + }, + "mobile": { + "value": "240px" + } + }, "field-edge-to-alert-icon-extra-large": { "prop": "--spectrum-field-edge-to-alert-icon-extra-large", "desktop": { @@ -4957,30 +5882,15 @@ }, "field-label-top-margin-extra-large": { "prop": "--spectrum-field-label-top-margin-extra-large", - "desktop": { - "value": "5px" - }, - "mobile": { - "value": "6px" - } + "value": "0px" }, "field-label-top-margin-large": { "prop": "--spectrum-field-label-top-margin-large", - "desktop": { - "value": "5px" - }, - "mobile": { - "value": "6px" - } + "value": "0px" }, "field-label-top-margin-medium": { "prop": "--spectrum-field-label-top-margin-medium", - "desktop": { - "value": "4px" - }, - "mobile": { - "value": "5px" - } + "value": "0px" }, "field-label-top-margin-small": { "prop": "--spectrum-field-label-top-margin-small", @@ -4989,7 +5899,7 @@ "field-label-top-to-asterisk-extra-large": { "prop": "--spectrum-field-label-top-to-asterisk-extra-large", "desktop": { - "value": "19px" + "value": "18px" }, "mobile": { "value": "24px" @@ -5169,28 +6079,28 @@ "field-top-to-progress-circle-extra-large": { "prop": "--spectrum-field-top-to-progress-circle-extra-large", "desktop": { - "value": "16px" + "value": "11px" }, "mobile": { - "value": "22px" + "value": "15px" } }, "field-top-to-progress-circle-large": { "prop": "--spectrum-field-top-to-progress-circle-large", "desktop": { - "value": "12px" + "value": "9px" }, "mobile": { - "value": "17px" + "value": "11px" } }, "field-top-to-progress-circle-medium": { "prop": "--spectrum-field-top-to-progress-circle-medium", "desktop": { - "value": "8px" + "value": "6px" }, "mobile": { - "value": "12px" + "value": "8px" } }, "field-top-to-progress-circle-small": { @@ -5199,7 +6109,7 @@ "value": "4px" }, "mobile": { - "value": "7px" + "value": "6px" } }, "field-top-to-validation-icon-extra-large": { @@ -5240,6 +6150,47 @@ }, "field-width": { "prop": "--spectrum-field-width", + "ref": "var(--spectrum-field-width-small)", + "desktop": { + "value": "192px" + }, + "mobile": { + "value": "240px" + } + }, + "field-width-extra-large": { + "prop": "--spectrum-field-width-extra-large", + "ref": "var(--spectrum-field-default-width-extra-large)", + "desktop": { + "value": "240px" + }, + "mobile": { + "value": "288px" + } + }, + "field-width-large": { + "prop": "--spectrum-field-width-large", + "ref": "var(--spectrum-field-default-width-large)", + "desktop": { + "value": "224px" + }, + "mobile": { + "value": "272px" + } + }, + "field-width-medium": { + "prop": "--spectrum-field-width-medium", + "ref": "var(--spectrum-field-default-width-medium)", + "desktop": { + "value": "208px" + }, + "mobile": { + "value": "256px" + } + }, + "field-width-small": { + "prop": "--spectrum-field-width-small", + "ref": "var(--spectrum-field-default-width-small)", "desktop": { "value": "192px" }, @@ -5254,12 +6205,7 @@ "floating-action-button-drop-shadow-color": { "prop": "--spectrum-floating-action-button-drop-shadow-color", "ref": "var(--spectrum-transparent-black-300)", - "light": { - "value": "rgba(0, 0, 0, 0.15)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.15)" - } + "value": "rgba(0, 0, 0, 0.15)" }, "floating-action-button-drop-shadow-y": { "prop": "--spectrum-floating-action-button-drop-shadow-y", @@ -5268,12 +6214,7 @@ "floating-action-button-shadow-color": { "prop": "--spectrum-floating-action-button-shadow-color", "ref": "var(--spectrum-floating-action-button-drop-shadow-color)", - "light": { - "value": "rgba(0, 0, 0, 0.15)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.15)" - } + "value": "rgba(0, 0, 0, 0.15)" }, "focus-indicator-color": { "prop": "--spectrum-focus-indicator-color", @@ -5323,7 +6264,7 @@ "font-size-1200": { "prop": "--spectrum-font-size-1200", "desktop": { - "value": "50px" + "value": "51px" }, "mobile": { "value": "62px" @@ -5332,13 +6273,31 @@ "font-size-1300": { "prop": "--spectrum-font-size-1300", "desktop": { - "value": "60px" + "value": "58px" }, "mobile": { "value": "70px" } }, - "font-size-200": { + "font-size-1400": { + "prop": "--spectrum-font-size-1400", + "desktop": { + "value": "65px" + }, + "mobile": { + "value": "79px" + } + }, + "font-size-1500": { + "prop": "--spectrum-font-size-1500", + "desktop": { + "value": "73px" + }, + "mobile": { + "value": "88px" + } + }, + "font-size-200": { "prop": "--spectrum-font-size-200", "desktop": { "value": "16px" @@ -5347,6 +6306,15 @@ "value": "19px" } }, + "font-size-25": { + "prop": "--spectrum-font-size-25", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "12px" + } + }, "font-size-300": { "prop": "--spectrum-font-size-300", "desktop": { @@ -5602,6 +6570,30 @@ "value": "rgb(213, 73, 235)" } }, + "gradient-stop-1-genai": { + "prop": "--spectrum-gradient-stop-1-genai", + "value": 0 + }, + "gradient-stop-1-premium": { + "prop": "--spectrum-gradient-stop-1-premium", + "value": 0 + }, + "gradient-stop-2-genai": { + "prop": "--spectrum-gradient-stop-2-genai", + "value": 0.3333 + }, + "gradient-stop-2-premium": { + "prop": "--spectrum-gradient-stop-2-premium", + "value": 0.6666 + }, + "gradient-stop-3-genai": { + "prop": "--spectrum-gradient-stop-3-genai", + "value": 1 + }, + "gradient-stop-3-premium": { + "prop": "--spectrum-gradient-stop-3-premium", + "value": 1 + }, "gray-100": { "prop": "--spectrum-gray-100", "light": { @@ -5965,8 +6957,8 @@ }, "heading-cjk-heavy-font-weight": { "prop": "--spectrum-heading-cjk-heavy-font-weight", - "ref": "var(--spectrum-black-font-weight)", - "value": "900" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "heading-cjk-heavy-strong-emphasized-font-style": { "prop": "--spectrum-heading-cjk-heavy-strong-emphasized-font-style", @@ -6031,7 +7023,7 @@ "heading-cjk-line-height": { "prop": "--spectrum-heading-cjk-line-height", "ref": "var(--spectrum-cjk-line-height-100)", - "value": "1.5" + "value": 1.5 }, "heading-cjk-size-l": { "prop": "--spectrum-heading-cjk-size-l", @@ -6085,12 +7077,12 @@ }, "heading-cjk-size-xxl": { "prop": "--spectrum-heading-cjk-size-xxl", - "ref": "var(--spectrum-font-size-900)", + "ref": "var(--spectrum-font-size-1000)", "desktop": { - "value": "36px" + "value": "40px" }, "mobile": { - "value": "44px" + "value": "49px" } }, "heading-cjk-size-xxs": { @@ -6105,12 +7097,22 @@ }, "heading-cjk-size-xxxl": { "prop": "--spectrum-heading-cjk-size-xxxl", - "ref": "var(--spectrum-font-size-1300)", + "ref": "var(--spectrum-font-size-1200)", "desktop": { - "value": "60px" + "value": "51px" }, "mobile": { - "value": "70px" + "value": "62px" + } + }, + "heading-cjk-size-xxxxl": { + "prop": "--spectrum-heading-cjk-size-xxxxl", + "ref": "var(--spectrum-font-size-1400)", + "desktop": { + "value": "65px" + }, + "mobile": { + "value": "79px" } }, "heading-cjk-strong-emphasized-font-style": { @@ -6146,15 +7148,15 @@ "heading-line-height": { "prop": "--spectrum-heading-line-height", "ref": "var(--spectrum-line-height-100)", - "value": "1.3" + "value": 1.3 }, "heading-margin-bottom-multiplier": { "prop": "--spectrum-heading-margin-bottom-multiplier", - "value": "0.25" + "value": 0.25 }, "heading-margin-top-multiplier": { "prop": "--spectrum-heading-margin-top-multiplier", - "value": "0.88888889" + "value": 0.88888889 }, "heading-sans-serif-emphasized-font-style": { "prop": "--spectrum-heading-sans-serif-emphasized-font-style", @@ -6163,8 +7165,8 @@ }, "heading-sans-serif-emphasized-font-weight": { "prop": "--spectrum-heading-sans-serif-emphasized-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "heading-sans-serif-font-family": { "prop": "--spectrum-heading-sans-serif-font-family", @@ -6178,8 +7180,8 @@ }, "heading-sans-serif-font-weight": { "prop": "--spectrum-heading-sans-serif-font-weight", - "ref": "var(--spectrum-bold-font-weight)", - "value": "700" + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, "heading-sans-serif-heavy-emphasized-font-style": { "prop": "--spectrum-heading-sans-serif-heavy-emphasized-font-style", @@ -6428,12 +7430,12 @@ }, "heading-size-s": { "prop": "--spectrum-heading-size-s", - "ref": "var(--spectrum-font-size-300)", + "ref": "var(--spectrum-font-size-400)", "desktop": { - "value": "18px" + "value": "20px" }, "mobile": { - "value": "22px" + "value": "24px" } }, "heading-size-xl": { @@ -6448,12 +7450,12 @@ }, "heading-size-xs": { "prop": "--spectrum-heading-size-xs", - "ref": "var(--spectrum-font-size-200)", + "ref": "var(--spectrum-font-size-300)", "desktop": { - "value": "16px" + "value": "18px" }, "mobile": { - "value": "19px" + "value": "22px" } }, "heading-size-xxl": { @@ -6480,50 +7482,74 @@ "prop": "--spectrum-heading-size-xxxl", "ref": "var(--spectrum-font-size-1300)", "desktop": { - "value": "60px" + "value": "58px" }, "mobile": { "value": "70px" } }, + "heading-size-xxxxl": { + "prop": "--spectrum-heading-size-xxxxl", + "ref": "var(--spectrum-font-size-1500)", + "desktop": { + "value": "73px" + }, + "mobile": { + "value": "88px" + } + }, "help-text-to-component": { "prop": "--spectrum-help-text-to-component", "value": "0px" }, "help-text-top-to-workflow-icon-extra-large": { "prop": "--spectrum-help-text-top-to-workflow-icon-extra-large", + "ref": "var(--spectrum-component-top-to-workflow-icon-300)", "desktop": { - "value": "9px" + "value": "11px" }, "mobile": { - "value": "11px" + "value": "15px" } }, "help-text-top-to-workflow-icon-large": { "prop": "--spectrum-help-text-top-to-workflow-icon-large", + "ref": "var(--spectrum-component-top-to-workflow-icon-200)", "desktop": { - "value": "6px" + "value": "9px" }, "mobile": { - "value": "8px" + "value": "11px" } }, "help-text-top-to-workflow-icon-medium": { "prop": "--spectrum-help-text-top-to-workflow-icon-medium", + "ref": "var(--spectrum-component-top-to-workflow-icon-100)", "desktop": { - "value": "3px" + "value": "6px" }, "mobile": { - "value": "4px" + "value": "8px" } }, "help-text-top-to-workflow-icon-small": { "prop": "--spectrum-help-text-top-to-workflow-icon-small", + "ref": "var(--spectrum-component-top-to-workflow-icon-75)", "desktop": { "value": "4px" }, "mobile": { - "value": "5px" + "value": "6px" + } + }, + "icon-color-blue-background": { + "prop": "--spectrum-icon-color-blue-background", + "ref": "var(--spectrum-blue-300)", + "light": { + "value": "rgb(229, 240, 254)" + }, + "dark": { + "value": "rgb(12, 33, 117)" } }, "icon-color-blue-primary-default": { @@ -6536,2000 +7562,2018 @@ "value": "rgb(64, 105, 253)" } }, - "icon-color-green-primary-default": { - "prop": "--spectrum-icon-color-green-primary-default", - "ref": "var(--spectrum-green-800)", + "icon-color-blue-primary-down": { + "prop": "--spectrum-icon-color-blue-primary-down", + "ref": "var(--spectrum-blue-1000)", "light": { - "value": "rgb(5, 131, 78)" + "value": "rgb(29, 62, 207)" }, "dark": { - "value": "rgb(6, 136, 80)" + "value": "rgb(105, 149, 254)" } }, - "icon-color-inverse": { - "prop": "--spectrum-icon-color-inverse", - "ref": "var(--spectrum-gray-50)", + "icon-color-blue-primary-hover": { + "prop": "--spectrum-icon-color-blue-primary-hover", + "ref": "var(--spectrum-blue-900)", "light": { - "value": "rgb(248, 248, 248)" + "value": "rgb(39, 77, 234)" }, "dark": { - "value": "rgb(27, 27, 27)" + "value": "rgb(86, 129, 255)" } }, - "icon-color-primary-default": { - "prop": "--spectrum-icon-color-primary-default", - "ref": "var(--spectrum-neutral-content-color-default)", + "icon-color-brown-background": { + "prop": "--spectrum-icon-color-brown-background", + "ref": "var(--spectrum-brown-400)", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(247, 238, 225)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(78, 55, 19)" } }, - "icon-color-red-primary-default": { - "prop": "--spectrum-icon-color-red-primary-default", - "ref": "var(--spectrum-red-700)", + "icon-color-brown-primary-default": { + "prop": "--spectrum-icon-color-brown-primary-default", + "ref": "var(--spectrum-brown-700)", "light": { - "value": "rgb(215, 50, 32)" + "value": "rgb(154, 123, 77)" }, "dark": { - "value": "rgb(205, 46, 29)" + "value": "rgb(132, 104, 61)" } }, - "icon-color-yellow-primary-default": { - "prop": "--spectrum-icon-color-yellow-primary-default", - "ref": "var(--spectrum-yellow-1000)", + "icon-color-brown-primary-down": { + "prop": "--spectrum-icon-color-brown-primary-down", + "ref": "var(--spectrum-brown-900)", "light": { - "value": "rgb(245, 199, 0)" + "value": "rgb(119, 91, 50)" }, "dark": { - "value": "rgb(203, 141, 0)" + "value": "rgb(163, 132, 84)" } }, - "illustrated-message-body-size": { - "prop": "--spectrum-illustrated-message-body-size", - "ref": "var(--spectrum-body-size-xs)", - "desktop": { - "value": "14px" + "icon-color-brown-primary-hover": { + "prop": "--spectrum-icon-color-brown-primary-hover", + "ref": "var(--spectrum-brown-800)", + "light": { + "value": "rgb(139, 109, 66)" }, - "mobile": { - "value": "15px" + "dark": { + "value": "rgb(143, 114, 69)" } }, - "illustrated-message-cjk-title-size": { - "prop": "--spectrum-illustrated-message-cjk-title-size", - "ref": "var(--spectrum-heading-cjk-size-s)", - "desktop": { - "value": "20px" + "icon-color-celery-background": { + "prop": "--spectrum-icon-color-celery-background", + "ref": "var(--spectrum-celery-400)", + "light": { + "value": "rgb(235, 255, 220)" }, - "mobile": { - "value": "22px" + "dark": { + "value": "rgb(31, 67, 4)" } }, - "illustrated-message-maximum-width": { - "prop": "--spectrum-illustrated-message-maximum-width", - "value": "380px" - }, - "illustrated-message-title-size": { - "prop": "--spectrum-illustrated-message-title-size", - "ref": "var(--spectrum-heading-size-s)", - "desktop": { - "value": "22px" + "icon-color-celery-primary-default": { + "prop": "--spectrum-icon-color-celery-primary-default", + "ref": "var(--spectrum-celery-900)", + "light": { + "value": "rgb(82, 161, 25)" }, - "mobile": { - "value": "22px" + "dark": { + "value": "rgb(78, 154, 23)" } }, - "in-field-button-edge-to-disclosure-icon-stacked-extra-large": { - "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large", - "value": "16px" - }, - "in-field-button-edge-to-disclosure-icon-stacked-large": { - "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-large", - "value": "13px" + "icon-color-celery-primary-down": { + "prop": "--spectrum-icon-color-celery-primary-down", + "ref": "var(--spectrum-celery-1100)", + "light": { + "value": "rgb(64, 129, 17)" + }, + "dark": { + "value": "rgb(100, 190, 35)" + } }, - "in-field-button-edge-to-disclosure-icon-stacked-medium": { - "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium", - "value": "9px" + "icon-color-celery-primary-hover": { + "prop": "--spectrum-icon-color-celery-primary-hover", + "ref": "var(--spectrum-celery-1000)", + "light": { + "value": "rgb(72, 144, 20)" + }, + "dark": { + "value": "rgb(88, 172, 28)" + } }, - "in-field-button-edge-to-disclosure-icon-stacked-small": { - "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-small", - "value": "7px" + "icon-color-chartreuse-background": { + "prop": "--spectrum-icon-color-chartreuse-background", + "ref": "var(--spectrum-chartreuse-400)", + "light": { + "value": "rgb(234, 246, 173)" + }, + "dark": { + "value": "rgb(53, 63, 0)" + } }, - "in-field-button-edge-to-fill": { - "prop": "--spectrum-in-field-button-edge-to-fill", - "value": "0px" + "icon-color-chartreuse-primary-default": { + "prop": "--spectrum-icon-color-chartreuse-primary-default", + "ref": "var(--spectrum-chartreuse-1000)", + "light": { + "value": "rgb(143, 172, 0)" + }, + "dark": { + "value": "rgb(136, 164, 0)" + } }, - "in-field-button-fill-stacked-inner-border-rounding": { - "prop": "--spectrum-in-field-button-fill-stacked-inner-border-rounding", - "value": "0px" + "icon-color-chartreuse-primary-down": { + "prop": "--spectrum-icon-color-chartreuse-primary-down", + "ref": "var(--spectrum-chartreuse-1200)", + "light": { + "value": "rgb(114, 137, 0)" + }, + "dark": { + "value": "rgb(169, 203, 0)" + } }, - "in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large": { - "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large", - "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large)", - "value": "5px" + "icon-color-chartreuse-primary-hover": { + "prop": "--spectrum-icon-color-chartreuse-primary-hover", + "ref": "var(--spectrum-chartreuse-1100)", + "light": { + "value": "rgb(128, 153, 0)" + }, + "dark": { + "value": "rgb(151, 181, 0)" + } }, - "in-field-button-inner-edge-to-disclosure-icon-stacked-large": { - "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large", - "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large)", - "value": "4px" + "icon-color-cinnamon-background": { + "prop": "--spectrum-icon-color-cinnamon-background", + "ref": "var(--spectrum-cinnamon-300)", + "light": { + "value": "rgb(249, 236, 229)" + }, + "dark": { + "value": "rgb(79, 28, 7)" + } }, - "in-field-button-inner-edge-to-disclosure-icon-stacked-medium": { - "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium", - "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium)", - "value": "3px" + "icon-color-cinnamon-primary-default": { + "prop": "--spectrum-icon-color-cinnamon-primary-default", + "ref": "var(--spectrum-cinnamon-800)", + "dark": { + "value": "rgb(176, 98, 59)" + }, + "light": { + "value": "rgb(184, 109, 70)" + } }, - "in-field-button-inner-edge-to-disclosure-icon-stacked-small": { - "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small", - "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small)", - "value": "3px" + "icon-color-cinnamon-primary-down": { + "prop": "--spectrum-icon-color-cinnamon-primary-down", + "ref": "var(--spectrum-cinnamon-1000)", + "dark": { + "value": "rgb(206, 136, 99)" + }, + "light": { + "value": "rgb(147, 77, 43)" + } }, - "in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large": { - "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large", - "value": "5px" - }, - "in-field-button-outer-edge-to-disclosure-icon-stacked-large": { - "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large", - "value": "4px" - }, - "in-field-button-outer-edge-to-disclosure-icon-stacked-medium": { - "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium", - "value": "3px" - }, - "in-field-button-outer-edge-to-disclosure-icon-stacked-small": { - "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small", - "value": "3px" - }, - "in-field-button-stacked-inner-edge-to-fill": { - "prop": "--spectrum-in-field-button-stacked-inner-edge-to-fill", - "value": "0px" - }, - "in-field-button-width-stacked-extra-large": { - "prop": "--spectrum-in-field-button-width-stacked-extra-large", - "value": "44px" - }, - "in-field-button-width-stacked-large": { - "prop": "--spectrum-in-field-button-width-stacked-large", - "value": "36px" - }, - "in-field-button-width-stacked-medium": { - "prop": "--spectrum-in-field-button-width-stacked-medium", - "value": "28px" - }, - "in-field-button-width-stacked-small": { - "prop": "--spectrum-in-field-button-width-stacked-small", - "value": "20px" - }, - "in-line-alert-minimum-width": { - "prop": "--spectrum-in-line-alert-minimum-width", - "value": "240px" - }, - "indigo-100": { - "prop": "--spectrum-indigo-100", - "light": { - "value": "rgb(247, 248, 255)" - }, + "icon-color-cinnamon-primary-hover": { + "prop": "--spectrum-icon-color-cinnamon-primary-hover", + "ref": "var(--spectrum-cinnamon-900)", "dark": { - "value": "rgb(30, 0, 93)" + "value": "rgb(192, 119, 80)" + }, + "light": { + "value": "rgb(170, 94, 56)" } }, - "indigo-1000": { - "prop": "--spectrum-indigo-1000", + "icon-color-cyan-background": { + "prop": "--spectrum-icon-color-cyan-background", + "ref": "var(--spectrum-cyan-400)", "light": { - "value": "rgb(99, 56, 238)" + "value": "rgb(238, 250, 254)" }, "dark": { - "value": "rgb(139, 141, 254)" + "value": "rgb(0, 64, 88)" } }, - "indigo-1100": { - "prop": "--spectrum-indigo-1100", + "icon-color-cyan-primary-default": { + "prop": "--spectrum-icon-color-cyan-primary-default", + "ref": "var(--spectrum-cyan-800)", "light": { - "value": "rgb(84, 36, 219)" + "value": "rgb(18, 134, 205)" }, "dark": { - "value": "rgb(153, 161, 255)" + "value": "rgb(13, 125, 186)" } }, - "indigo-1200": { - "prop": "--spectrum-indigo-1200", + "icon-color-cyan-primary-down": { + "prop": "--spectrum-icon-color-cyan-primary-down", + "ref": "var(--spectrum-cyan-1000)", "light": { - "value": "rgb(69, 19, 191)" + "value": "rgb(4, 102, 145)" }, "dark": { - "value": "rgb(176, 186, 255)" + "value": "rgb(38, 159, 244)" } }, - "indigo-1300": { - "prop": "--spectrum-indigo-1300", + "icon-color-cyan-primary-hover": { + "prop": "--spectrum-icon-color-cyan-primary-hover", + "ref": "var(--spectrum-cyan-900)", "light": { - "value": "rgb(55, 6, 160)" + "value": "rgb(11, 120, 179)" }, "dark": { - "value": "rgb(199, 208, 255)" + "value": "rgb(24, 142, 220)" } }, - "indigo-1400": { - "prop": "--spectrum-indigo-1400", + "icon-color-disabled-primary": { + "prop": "--spectrum-icon-color-disabled-primary", + "ref": "var(--spectrum-gray-400)", "light": { - "value": "rgb(42, 0, 129)" + "value": "rgb(198, 198, 198)" }, "dark": { - "value": "rgb(223, 228, 255)" + "value": "rgb(68, 68, 68)" } }, - "indigo-1500": { - "prop": "--spectrum-indigo-1500", - "dark": { - "value": "rgb(243, 244, 255)" - }, + "icon-color-emphasized-background": { + "prop": "--spectrum-icon-color-emphasized-background", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(31, 0, 98)" - } - }, - "indigo-1600": { - "prop": "--spectrum-indigo-1600", - "dark": { - "value": "rgb(255, 255, 255)" + "value": "rgb(19, 19, 19)" }, - "light": { - "value": "rgb(17, 0, 54)" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "indigo-200": { - "prop": "--spectrum-indigo-200", + "icon-color-fuchsia-background": { + "prop": "--spectrum-icon-color-fuchsia-background", + "ref": "var(--spectrum-fuchsia-200)", "light": { - "value": "rgb(235, 238, 255)" + "value": "rgb(253, 233, 255)" }, "dark": { - "value": "rgb(35, 0, 110)" + "value": "rgb(61, 0, 74)" } }, - "indigo-300": { - "prop": "--spectrum-indigo-300", + "icon-color-fuchsia-primary-default": { + "prop": "--spectrum-icon-color-fuchsia-primary-default", + "ref": "var(--spectrum-fuchsia-700)", "light": { - "value": "rgb(216, 222, 255)" + "value": "rgb(181, 57, 200)" }, "dark": { - "value": "rgb(47, 0, 140)" + "value": "rgb(173, 51, 192)" } }, - "indigo-400": { - "prop": "--spectrum-indigo-400", + "icon-color-fuchsia-primary-down": { + "prop": "--spectrum-icon-color-fuchsia-primary-down", + "ref": "var(--spectrum-fuchsia-900)", "light": { - "value": "rgb(192, 201, 255)" + "value": "rgb(135, 27, 154)" }, "dark": { - "value": "rgb(62, 12, 174)" + "value": "rgb(213, 73, 235)" } }, - "indigo-500": { - "prop": "--spectrum-indigo-500", + "icon-color-fuchsia-primary-hover": { + "prop": "--spectrum-icon-color-fuchsia-primary-hover", + "ref": "var(--spectrum-fuchsia-800)", "light": { - "value": "rgb(167, 178, 255)" + "value": "rgb(156, 40, 175)" }, "dark": { - "value": "rgb(79, 30, 209)" + "value": "rgb(186, 60, 206)" } }, - "indigo-600": { - "prop": "--spectrum-indigo-600", + "icon-color-green-background": { + "prop": "--spectrum-icon-color-green-background", + "ref": "var(--spectrum-green-400)", "light": { - "value": "rgb(145, 151, 254)" + "value": "rgb(237, 252, 241)" }, "dark": { - "value": "rgb(95, 52, 235)" + "value": "rgb(0, 68, 48)" } }, - "indigo-700": { - "prop": "--spectrum-indigo-700", + "icon-color-green-primary-default": { + "prop": "--spectrum-icon-color-green-primary-default", + "ref": "var(--spectrum-green-800)", "light": { - "value": "rgb(132, 128, 254)" + "value": "rgb(7, 147, 85)" }, "dark": { - "value": "rgb(109, 75, 248)" + "value": "rgb(6, 136, 80)" } }, - "indigo-800": { - "prop": "--spectrum-indigo-800", + "icon-color-green-primary-down": { + "prop": "--spectrum-icon-color-green-primary-down", + "ref": "var(--spectrum-green-1000)", "light": { - "value": "rgb(122, 106, 253)" + "value": "rgb(3, 110, 69)" }, "dark": { - "value": "rgb(116, 91, 252)" + "value": "rgb(14, 175, 98)" } }, - "indigo-900": { - "prop": "--spectrum-indigo-900", + "icon-color-green-primary-hover": { + "prop": "--spectrum-icon-color-green-primary-hover", + "ref": "var(--spectrum-green-900)", "light": { - "value": "rgb(113, 85, 250)" + "value": "rgb(5, 131, 78)" }, "dark": { - "value": "rgb(128, 119, 254)" + "value": "rgb(9, 157, 89)" } }, - "indigo-background-color-default": { - "prop": "--spectrum-indigo-background-color-default", - "ref": "var(--spectrum-indigo-800)", + "icon-color-indigo-background": { + "prop": "--spectrum-icon-color-indigo-background", + "ref": "var(--spectrum-indigo-100)", "light": { - "value": "rgb(113, 85, 250)" + "value": "rgb(235, 238, 255)" }, "dark": { - "value": "rgb(116, 91, 252)" + "value": "rgb(30, 0, 93)" } }, - "indigo-subtle-background-color-default": { - "prop": "--spectrum-indigo-subtle-background-color-default", - "ref": "var(--spectrum-indigo-300)", + "icon-color-indigo-primary-default": { + "prop": "--spectrum-icon-color-indigo-primary-default", + "ref": "var(--spectrum-indigo-700)", "light": { - "value": "rgb(235, 238, 255)" + "value": "rgb(113, 85, 250)" }, "dark": { - "value": "rgb(47, 0, 140)" + "value": "rgb(109, 75, 248)" } }, - "indigo-visual-color": { - "prop": "--spectrum-indigo-visual-color", + "icon-color-indigo-primary-down": { + "prop": "--spectrum-icon-color-indigo-primary-down", "ref": "var(--spectrum-indigo-900)", "light": { - "value": "rgb(122, 106, 253)" + "value": "rgb(84, 36, 219)" }, "dark": { "value": "rgb(128, 119, 254)" } }, - "informative-background-color-default": { - "prop": "--spectrum-informative-background-color-default", - "ref": "var(--spectrum-informative-color-800)", + "icon-color-indigo-primary-hover": { + "prop": "--spectrum-icon-color-indigo-primary-hover", + "ref": "var(--spectrum-indigo-800)", "light": { - "value": "rgb(59, 99, 251)" + "value": "rgb(99, 56, 238)" }, "dark": { - "value": "rgb(64, 105, 253)" + "value": "rgb(116, 91, 252)" } }, - "informative-background-color-down": { - "prop": "--spectrum-informative-background-color-down", - "ref": "var(--spectrum-informative-color-700)", + "icon-color-informative": { + "prop": "--spectrum-icon-color-informative", + "ref": "var(--spectrum-informative-color-900)", "light": { - "value": "rgb(39, 77, 234)" + "value": "rgb(75, 117, 255)" }, "dark": { - "value": "rgb(52, 91, 248)" + "value": "rgb(86, 129, 255)" } }, - "informative-background-color-hover": { - "prop": "--spectrum-informative-background-color-hover", - "ref": "var(--spectrum-informative-color-700)", + "icon-color-inverse": { + "prop": "--spectrum-icon-color-inverse", + "ref": "var(--spectrum-gray-50)", "light": { - "value": "rgb(39, 77, 234)" + "value": "rgb(248, 248, 248)" }, "dark": { - "value": "rgb(52, 91, 248)" + "value": "rgb(27, 27, 27)" } }, - "informative-background-color-key-focus": { - "prop": "--spectrum-informative-background-color-key-focus", - "ref": "var(--spectrum-informative-color-700)", + "icon-color-inverse-background": { + "prop": "--spectrum-icon-color-inverse-background", + "ref": "var(--spectrum-gray-50)", "light": { - "value": "rgb(39, 77, 234)" + "value": "rgb(248, 248, 248)" }, "dark": { - "value": "rgb(52, 91, 248)" + "value": "rgb(27, 27, 27)" } }, - "informative-color-100": { - "prop": "--spectrum-informative-color-100", - "ref": "var(--spectrum-blue-100)", + "icon-color-magenta-background": { + "prop": "--spectrum-icon-color-magenta-background", + "ref": "var(--spectrum-magenta-200)", "light": { - "value": "rgb(245, 249, 255)" + "value": "rgb(255, 232, 240)" }, "dark": { - "value": "rgb(14, 23, 63)" + "value": "rgb(74, 0, 27)" } }, - "informative-color-1000": { - "prop": "--spectrum-informative-color-1000", - "ref": "var(--spectrum-blue-1000)", + "icon-color-magenta-primary-default": { + "prop": "--spectrum-icon-color-magenta-primary-default", + "ref": "var(--spectrum-magenta-700)", "light": { - "value": "rgb(39, 77, 234)" + "value": "rgb(217, 35, 97)" }, "dark": { - "value": "rgb(105, 149, 254)" + "value": "rgb(207, 31, 92)" } }, - "informative-color-1100": { - "prop": "--spectrum-informative-color-1100", - "ref": "var(--spectrum-blue-1100)", + "icon-color-magenta-primary-down": { + "prop": "--spectrum-icon-color-magenta-primary-down", + "ref": "var(--spectrum-magenta-900)", "light": { - "value": "rgb(29, 62, 207)" + "value": "rgb(163, 5, 62)" }, "dark": { - "value": "rgb(124, 169, 252)" + "value": "rgb(255, 51, 119)" } }, - "informative-color-1200": { - "prop": "--spectrum-informative-color-1200", - "ref": "var(--spectrum-blue-1200)", + "icon-color-magenta-primary-hover": { + "prop": "--spectrum-icon-color-magenta-primary-hover", + "ref": "var(--spectrum-magenta-800)", "light": { - "value": "rgb(21, 50, 173)" + "value": "rgb(186, 22, 80)" }, "dark": { - "value": "rgb(152, 192, 252)" + "value": "rgb(224, 38, 101)" } }, - "informative-color-1300": { - "prop": "--spectrum-informative-color-1300", - "ref": "var(--spectrum-blue-1300)", + "icon-color-negative": { + "prop": "--spectrum-icon-color-negative", + "ref": "var(--spectrum-negative-color-900)", "light": { - "value": "rgb(16, 40, 140)" + "value": "rgb(240, 56, 35)" }, "dark": { - "value": "rgb(181, 213, 253)" + "value": "rgb(252, 67, 46)" } }, - "informative-color-1400": { - "prop": "--spectrum-informative-color-1400", - "ref": "var(--spectrum-blue-1400)", + "icon-color-neutral": { + "prop": "--spectrum-icon-color-neutral", + "ref": "var(--spectrum-gray-600)", "light": { - "value": "rgb(12, 31, 105)" + "value": "rgb(143, 143, 143)" }, "dark": { - "value": "rgb(213, 231, 254)" + "value": "rgb(138, 138, 138)" } }, - "informative-color-1500": { - "prop": "--spectrum-informative-color-1500", - "ref": "var(--spectrum-blue-1500)", - "dark": { - "value": "rgb(238, 245, 255)" - }, + "icon-color-notice": { + "prop": "--spectrum-icon-color-notice", + "ref": "var(--spectrum-notice-color-900)", "light": { - "value": "rgb(14, 24, 67)" - } - }, - "informative-color-1600": { - "prop": "--spectrum-informative-color-1600", - "ref": "var(--spectrum-blue-1600)", - "dark": { - "value": "rgb(255, 255, 255)" + "value": "rgb(212, 91, 0)" }, - "light": { - "value": "rgb(7, 11, 30)" + "dark": { + "value": "rgb(224, 100, 0)" } }, - "informative-color-200": { - "prop": "--spectrum-informative-color-200", - "ref": "var(--spectrum-blue-200)", + "icon-color-orange-background": { + "prop": "--spectrum-icon-color-orange-background", + "ref": "var(--spectrum-orange-300)", "light": { - "value": "rgb(229, 240, 254)" + "value": "rgb(255, 236, 207)" }, "dark": { - "value": "rgb(15, 28, 82)" + "value": "rgb(80, 27, 0)" } }, - "informative-color-300": { - "prop": "--spectrum-informative-color-300", - "ref": "var(--spectrum-blue-300)", + "icon-color-orange-primary-default": { + "prop": "--spectrum-icon-color-orange-primary-default", + "ref": "var(--spectrum-orange-900)", "light": { - "value": "rgb(203, 226, 254)" + "value": "rgb(232, 106, 0)" }, "dark": { - "value": "rgb(12, 33, 117)" + "value": "rgb(224, 100, 0)" } }, - "informative-color-400": { - "prop": "--spectrum-informative-color-400", - "ref": "var(--spectrum-blue-400)", + "icon-color-orange-primary-down": { + "prop": "--spectrum-icon-color-orange-primary-down", + "ref": "var(--spectrum-orange-1100)", "light": { - "value": "rgb(172, 207, 253)" + "value": "rgb(194, 78, 0)" }, "dark": { - "value": "rgb(18, 45, 154)" + "value": "rgb(255, 137, 0)" } }, - "informative-color-500": { - "prop": "--spectrum-informative-color-500", - "ref": "var(--spectrum-blue-500)", + "icon-color-orange-primary-hover": { + "prop": "--spectrum-icon-color-orange-primary-hover", + "ref": "var(--spectrum-orange-1000)", "light": { - "value": "rgb(142, 185, 252)" + "value": "rgb(212, 91, 0)" }, "dark": { - "value": "rgb(26, 58, 195)" + "value": "rgb(243, 117, 0)" } }, - "informative-color-600": { - "prop": "--spectrum-informative-color-600", - "ref": "var(--spectrum-blue-600)", - "light": { - "value": "rgb(114, 158, 253)" - }, + "icon-color-pink-background": { + "prop": "--spectrum-icon-color-pink-background", + "ref": "var(--spectrum-pink-200)", "dark": { - "value": "rgb(37, 73, 229)" + "value": "rgb(71, 0, 44)" + }, + "light": { + "value": "rgb(255, 232, 247)" } }, - "informative-color-700": { - "prop": "--spectrum-informative-color-700", - "ref": "var(--spectrum-blue-700)", + "icon-color-pink-primary-default": { + "prop": "--spectrum-icon-color-pink-primary-default", + "ref": "var(--spectrum-pink-700)", "light": { - "value": "rgb(93, 137, 255)" + "value": "rgb(228, 52, 163)" }, "dark": { - "value": "rgb(52, 91, 248)" + "value": "rgb(196, 39, 138)" } }, - "informative-color-800": { - "prop": "--spectrum-informative-color-800", - "ref": "var(--spectrum-blue-800)", + "icon-color-pink-primary-down": { + "prop": "--spectrum-icon-color-pink-primary-down", + "ref": "var(--spectrum-pink-900)", "light": { - "value": "rgb(75, 117, 255)" + "value": "rgb(176, 31, 123)" }, "dark": { - "value": "rgb(64, 105, 253)" + "value": "rgb(236, 67, 175)" } }, - "informative-color-900": { - "prop": "--spectrum-informative-color-900", - "ref": "var(--spectrum-blue-900)", + "icon-color-pink-primary-hover": { + "prop": "--spectrum-icon-color-pink-primary-hover", + "ref": "var(--spectrum-pink-800)", "light": { - "value": "rgb(59, 99, 251)" + "value": "rgb(206, 42, 146)" }, "dark": { - "value": "rgb(86, 129, 255)" + "value": "rgb(213, 45, 151)" } }, - "informative-subtle-background-color-default": { - "prop": "--spectrum-informative-subtle-background-color-default", - "ref": "var(--spectrum-informative-color-300)", + "icon-color-positive": { + "prop": "--spectrum-icon-color-positive", + "ref": "var(--spectrum-positive-color-900)", "light": { - "value": "rgb(229, 240, 254)" + "value": "rgb(7, 147, 85)" }, "dark": { - "value": "rgb(12, 33, 117)" + "value": "rgb(9, 157, 89)" } }, - "informative-visual-color": { - "prop": "--spectrum-informative-visual-color", - "ref": "var(--spectrum-informative-color-900)", + "icon-color-primary-default": { + "prop": "--spectrum-icon-color-primary-default", + "ref": "var(--spectrum-neutral-content-color-default)", "light": { - "value": "rgb(75, 117, 255)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(86, 129, 255)" + "value": "rgb(219, 219, 219)" } }, - "italic-font-style": { - "prop": "--spectrum-italic-font-style", - "value": "italic" - }, - "light-font-weight": { - "prop": "--spectrum-light-font-weight", - "value": "300" - }, - "line-height-100": { - "prop": "--spectrum-line-height-100", - "value": "1.3" - }, - "line-height-200": { - "prop": "--spectrum-line-height-200", - "value": "1.5" - }, - "magenta-100": { - "prop": "--spectrum-magenta-100", + "icon-color-primary-down": { + "prop": "--spectrum-icon-color-primary-down", + "ref": "var(--spectrum-neutral-content-color-down)", "light": { - "value": "rgb(255, 245, 248)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(59, 0, 22)" + "value": "rgb(242, 242, 242)" } }, - "magenta-1000": { - "prop": "--spectrum-magenta-1000", + "icon-color-primary-hover": { + "prop": "--spectrum-icon-color-primary-hover", + "ref": "var(--spectrum-neutral-content-color-hover)", "light": { - "value": "rgb(186, 22, 80)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(255, 96, 149)" + "value": "rgb(242, 242, 242)" } }, - "magenta-1100": { - "prop": "--spectrum-magenta-1100", + "icon-color-purple-background": { + "prop": "--spectrum-icon-color-purple-background", + "ref": "var(--spectrum-purple-200)", "light": { - "value": "rgb(163, 5, 62)" + "value": "rgb(244, 235, 252)" }, "dark": { - "value": "rgb(255, 128, 171)" + "value": "rgb(50, 0, 96)" } }, - "magenta-1200": { - "prop": "--spectrum-magenta-1200", + "icon-color-purple-primary-default": { + "prop": "--spectrum-icon-color-purple-primary-default", + "ref": "var(--spectrum-purple-700)", "light": { - "value": "rgb(136, 0, 51)" + "value": "rgb(154, 71, 226)" }, "dark": { - "value": "rgb(255, 163, 194)" + "value": "rgb(148, 62, 224)" } }, - "magenta-1300": { - "prop": "--spectrum-magenta-1300", + "icon-color-purple-primary-down": { + "prop": "--spectrum-icon-color-purple-primary-down", + "ref": "var(--spectrum-purple-900)", "light": { - "value": "rgb(111, 0, 40)" + "value": "rgb(115, 13, 204)" }, "dark": { - "value": "rgb(255, 193, 214)" + "value": "rgb(173, 105, 233)" } }, - "magenta-1400": { - "prop": "--spectrum-magenta-1400", + "icon-color-purple-primary-hover": { + "prop": "--spectrum-icon-color-purple-primary-hover", + "ref": "var(--spectrum-purple-800)", "light": { - "value": "rgb(86, 0, 30)" + "value": "rgb(134, 40, 217)" }, "dark": { - "value": "rgb(255, 220, 232)" + "value": "rgb(157, 78, 228)" } }, - "magenta-1500": { - "prop": "--spectrum-magenta-1500", - "dark": { - "value": "rgb(255, 241, 246)" - }, + "icon-color-red-background": { + "prop": "--spectrum-icon-color-red-background", + "ref": "var(--spectrum-red-300)", "light": { - "value": "rgb(64, 0, 22)" + "value": "rgb(255, 235, 232)" + }, + "dark": { + "value": "rgb(87, 17, 7)" } }, - "magenta-1600": { - "prop": "--spectrum-magenta-1600", - "dark": { - "value": "rgb(255, 255, 255)" - }, + "icon-color-red-primary-default": { + "prop": "--spectrum-icon-color-red-primary-default", + "ref": "var(--spectrum-red-700)", "light": { - "value": "rgb(35, 0, 12)" + "value": "rgb(215, 50, 32)" + }, + "dark": { + "value": "rgb(205, 46, 29)" } }, - "magenta-200": { - "prop": "--spectrum-magenta-200", + "icon-color-red-primary-down": { + "prop": "--spectrum-icon-color-red-primary-down", + "ref": "var(--spectrum-red-900)", "light": { - "value": "rgb(255, 232, 240)" + "value": "rgb(156, 33, 19)" }, "dark": { - "value": "rgb(74, 0, 27)" + "value": "rgb(252, 67, 46)" } }, - "magenta-300": { - "prop": "--spectrum-magenta-300", + "icon-color-red-primary-hover": { + "prop": "--spectrum-icon-color-red-primary-hover", + "ref": "var(--spectrum-red-800)", "light": { - "value": "rgb(255, 213, 227)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(93, 0, 34)" + "value": "rgb(223, 52, 34)" } }, - "magenta-400": { - "prop": "--spectrum-magenta-400", + "icon-color-seafoam-background": { + "prop": "--spectrum-icon-color-seafoam-background", + "ref": "var(--spectrum-seafoam-400)", "light": { - "value": "rgb(255, 185, 208)" + "value": "rgb(211, 246, 234)" }, "dark": { - "value": "rgb(123, 0, 45)" + "value": "rgb(0, 67, 59)" } }, - "magenta-500": { - "prop": "--spectrum-magenta-500", + "icon-color-seafoam-primary-default": { + "prop": "--spectrum-icon-color-seafoam-primary-default", + "ref": "var(--spectrum-seafoam-800)", "light": { - "value": "rgb(255, 152, 187)" + "value": "rgb(9, 144, 120)" }, "dark": { - "value": "rgb(152, 7, 60)" + "value": "rgb(8, 134, 112)" } }, - "magenta-600": { - "prop": "--spectrum-magenta-600", + "icon-color-seafoam-primary-down": { + "prop": "--spectrum-icon-color-seafoam-primary-down", + "ref": "var(--spectrum-seafoam-1000)", "light": { - "value": "rgb(255, 112, 159)" + "value": "rgb(5, 108, 92)" }, "dark": { - "value": "rgb(181, 19, 76)" + "value": "rgb(12, 173, 142)" } }, - "magenta-700": { - "prop": "--spectrum-magenta-700", + "icon-color-seafoam-primary-hover": { + "prop": "--spectrum-icon-color-seafoam-primary-hover", + "ref": "var(--spectrum-seafoam-900)", "light": { - "value": "rgb(255, 72, 133)" + "value": "rgb(7, 129, 109)" }, "dark": { - "value": "rgb(207, 31, 92)" + "value": "rgb(10, 154, 128)" } }, - "magenta-800": { - "prop": "--spectrum-magenta-800", + "icon-color-silver-background": { + "prop": "--spectrum-icon-color-silver-background", + "ref": "var(--spectrum-silver-400)", "light": { - "value": "rgb(240, 45, 110)" + "value": "rgb(239, 239, 239)" }, "dark": { - "value": "rgb(224, 38, 101)" + "value": "rgb(59, 59, 59)" } }, - "magenta-900": { - "prop": "--spectrum-magenta-900", + "icon-color-silver-primary-default": { + "prop": "--spectrum-icon-color-silver-primary-default", + "ref": "var(--spectrum-silver-800)", "light": { - "value": "rgb(217, 35, 97)" + "value": "rgb(143, 143, 143)" }, "dark": { - "value": "rgb(255, 51, 119)" + "value": "rgb(118, 118, 118)" } }, - "magenta-background-color-default": { - "prop": "--spectrum-magenta-background-color-default", - "ref": "var(--spectrum-magenta-800)", + "icon-color-silver-primary-down": { + "prop": "--spectrum-icon-color-silver-primary-down", + "ref": "var(--spectrum-silver-1000)", "light": { - "value": "rgb(217, 35, 97)" + "value": "rgb(114, 114, 114)" }, "dark": { - "value": "rgb(224, 38, 101)" + "value": "rgb(152, 152, 152)" } }, - "magenta-subtle-background-color-default": { - "prop": "--spectrum-magenta-subtle-background-color-default", - "ref": "var(--spectrum-magenta-300)", + "icon-color-silver-primary-hover": { + "prop": "--spectrum-icon-color-silver-primary-hover", + "ref": "var(--spectrum-silver-900)", "light": { - "value": "rgb(255, 232, 240)" + "value": "rgb(128, 128, 128)" }, "dark": { - "value": "rgb(93, 0, 34)" + "value": "rgb(137, 137, 137)" } }, - "magenta-visual-color": { - "prop": "--spectrum-magenta-visual-color", - "ref": "var(--spectrum-magenta-900)", + "icon-color-turquoise-background": { + "prop": "--spectrum-icon-color-turquoise-background", + "ref": "var(--spectrum-turquoise-400)", "light": { - "value": "rgb(240, 45, 110)" + "value": "rgb(209, 245, 245)" }, "dark": { - "value": "rgb(255, 51, 119)" + "value": "rgb(0, 66, 72)" } }, - "medium-font-weight": { - "prop": "--spectrum-medium-font-weight", - "value": "500" - }, - "menu-item-edge-to-content-not-selected-extra-large": { - "prop": "--spectrum-menu-item-edge-to-content-not-selected-extra-large", - "desktop": { - "value": "45px" + "icon-color-turquoise-primary-default": { + "prop": "--spectrum-icon-color-turquoise-primary-default", + "ref": "var(--spectrum-turquoise-800)", + "light": { + "value": "rgb(12, 158, 171)" }, - "mobile": { - "value": "54px" + "dark": { + "value": "rgb(9, 131, 142)" } }, - "menu-item-edge-to-content-not-selected-large": { - "prop": "--spectrum-menu-item-edge-to-content-not-selected-large", - "desktop": { - "value": "38px" + "icon-color-turquoise-primary-down": { + "prop": "--spectrum-icon-color-turquoise-primary-down", + "ref": "var(--spectrum-turquoise-1000)", + "light": { + "value": "rgb(8, 126, 137)" }, - "mobile": { - "value": "47px" + "dark": { + "value": "rgb(13, 168, 182)" } }, - "menu-item-edge-to-content-not-selected-medium": { - "prop": "--spectrum-menu-item-edge-to-content-not-selected-medium", - "desktop": { - "value": "32px" + "icon-color-turquoise-primary-hover": { + "prop": "--spectrum-icon-color-turquoise-primary-hover", + "ref": "var(--spectrum-turquoise-900)", + "light": { + "value": "rgb(10, 141, 153)" }, - "mobile": { - "value": "42px" + "dark": { + "value": "rgb(11, 151, 164)" } }, - "menu-item-edge-to-content-not-selected-small": { - "prop": "--spectrum-menu-item-edge-to-content-not-selected-small", - "desktop": { - "value": "28px" + "icon-color-yellow-background": { + "prop": "--spectrum-icon-color-yellow-background", + "ref": "var(--spectrum-yellow-400)", + "light": { + "value": "rgb(255, 248, 204)" }, - "mobile": { - "value": "24px" + "dark": { + "value": "rgb(83, 52, 0)" } }, - "menu-item-label-to-description": { - "prop": "--spectrum-menu-item-label-to-description", - "value": "1px" - }, - "menu-item-section-divider-height": { - "prop": "--spectrum-menu-item-section-divider-height", - "value": "8px" - }, - "menu-item-top-to-disclosure-icon-extra-large": { - "prop": "--spectrum-menu-item-top-to-disclosure-icon-extra-large", - "desktop": { - "value": "17px" + "icon-color-yellow-primary-default": { + "prop": "--spectrum-icon-color-yellow-primary-default", + "ref": "var(--spectrum-yellow-1200)", + "light": { + "value": "rgb(245, 199, 0)" }, - "mobile": { - "value": "22px" + "dark": { + "value": "rgb(235, 183, 0)" } }, - "menu-item-top-to-disclosure-icon-large": { - "prop": "--spectrum-menu-item-top-to-disclosure-icon-large", - "desktop": { - "value": "14px" + "icon-color-yellow-primary-down": { + "prop": "--spectrum-icon-color-yellow-primary-down", + "ref": "var(--spectrum-yellow-1400)", + "light": { + "value": "rgb(210, 149, 0)" }, - "mobile": { - "value": "17px" + "dark": { + "value": "rgb(255, 230, 86)" } }, - "menu-item-top-to-disclosure-icon-medium": { - "prop": "--spectrum-menu-item-top-to-disclosure-icon-medium", - "desktop": { - "value": "11px" + "icon-color-yellow-primary-hover": { + "prop": "--spectrum-icon-color-yellow-primary-hover", + "ref": "var(--spectrum-yellow-1300)", + "light": { + "value": "rgb(230, 175, 0)" }, - "mobile": { - "value": "13px" + "dark": { + "value": "rgb(249, 206, 0)" } }, - "menu-item-top-to-disclosure-icon-small": { - "prop": "--spectrum-menu-item-top-to-disclosure-icon-small", + "illustrated-message-body-size": { + "prop": "--spectrum-illustrated-message-body-size", + "ref": "var(--spectrum-body-size-xs)", "desktop": { - "value": "7px" + "value": "14px" }, "mobile": { - "value": "9px" + "value": "15px" } }, - "menu-item-top-to-selected-icon-extra-large": { - "prop": "--spectrum-menu-item-top-to-selected-icon-extra-large", + "illustrated-message-cjk-title-size": { + "prop": "--spectrum-illustrated-message-cjk-title-size", + "ref": "var(--spectrum-title-cjk-size-xl)", "desktop": { - "value": "17px" + "value": "20px" }, "mobile": { "value": "22px" } }, - "menu-item-top-to-selected-icon-large": { - "prop": "--spectrum-menu-item-top-to-selected-icon-large", + "illustrated-message-horizontal-maximum-width": { + "prop": "--spectrum-illustrated-message-horizontal-maximum-width", + "value": "535px" + }, + "illustrated-message-large-body-font-size": { + "prop": "--spectrum-illustrated-message-large-body-font-size", + "ref": "var(--spectrum-body-size-xs)", "desktop": { "value": "14px" }, "mobile": { - "value": "17px" + "value": "15px" } }, - "menu-item-top-to-selected-icon-medium": { - "prop": "--spectrum-menu-item-top-to-selected-icon-medium", + "illustrated-message-large-cjk-title-font-size": { + "prop": "--spectrum-illustrated-message-large-cjk-title-font-size", + "ref": "var(--spectrum-title-cjk-size-xl)", "desktop": { - "value": "11px" + "value": "20px" }, "mobile": { - "value": "13px" + "value": "22px" } }, - "menu-item-top-to-selected-icon-small": { - "prop": "--spectrum-menu-item-top-to-selected-icon-small", + "illustrated-message-large-title-font-size": { + "prop": "--spectrum-illustrated-message-large-title-font-size", + "ref": "var(--spectrum-title-size-xl)", "desktop": { - "value": "7px" + "value": "22px" }, "mobile": { - "value": "9px" + "value": "24px" } }, - "meter-default-width": { - "prop": "--spectrum-meter-default-width", - "ref": "var(--spectrum-meter-width)", + "illustrated-message-maximum-width": { + "prop": "--spectrum-illustrated-message-maximum-width", + "ref": "var(--spectrum-illustrated-message-vertical-maximum-width)", + "value": "380px" + }, + "illustrated-message-medium-body-font-size": { + "prop": "--spectrum-illustrated-message-medium-body-font-size", + "ref": "var(--spectrum-body-size-xs)", "desktop": { - "value": "192px" + "value": "14px" }, "mobile": { - "value": "240px" + "value": "15px" } }, - "meter-maximum-width": { - "prop": "--spectrum-meter-maximum-width", - "value": "768px" - }, - "meter-minimum-width": { - "prop": "--spectrum-meter-minimum-width", - "value": "48px" - }, - "meter-thickness-large": { - "prop": "--spectrum-meter-thickness-large", + "illustrated-message-medium-cjk-title-font-size": { + "prop": "--spectrum-illustrated-message-medium-cjk-title-font-size", + "ref": "var(--spectrum-title-cjk-size-l)", "desktop": { - "value": "6px" + "value": "18px" }, "mobile": { - "value": "8px" + "value": "19px" } }, - "meter-thickness-small": { - "prop": "--spectrum-meter-thickness-small", + "illustrated-message-medium-title-font-size": { + "prop": "--spectrum-illustrated-message-medium-title-font-size", + "ref": "var(--spectrum-title-size-l)", "desktop": { - "value": "4px" + "value": "20px" }, "mobile": { - "value": "5px" + "value": "22px" } }, - "meter-width": { - "prop": "--spectrum-meter-width", + "illustrated-message-small-body-font-size": { + "prop": "--spectrum-illustrated-message-small-body-font-size", + "ref": "var(--spectrum-body-size-xs)", "desktop": { - "value": "192px" + "value": "12px" }, "mobile": { - "value": "240px" + "value": "15px" } }, - "navigational-indicator-top-to-back-icon-extra-large": { - "prop": "--spectrum-navigational-indicator-top-to-back-icon-extra-large", + "illustrated-message-small-cjk-title-font-size": { + "prop": "--spectrum-illustrated-message-small-cjk-title-font-size", + "ref": "var(--spectrum-title-cjk-size-s)", "desktop": { - "value": "15px" + "value": "14px" }, "mobile": { - "value": "19px" + "value": "15px" } }, - "navigational-indicator-top-to-back-icon-large": { - "prop": "--spectrum-navigational-indicator-top-to-back-icon-large", + "illustrated-message-small-title-font-size": { + "prop": "--spectrum-illustrated-message-small-title-font-size", + "ref": "var(--spectrum-title-size-s)", "desktop": { - "value": "12px" + "value": "16px" }, "mobile": { - "value": "16px" + "value": "17px" } }, - "navigational-indicator-top-to-back-icon-medium": { - "prop": "--spectrum-navigational-indicator-top-to-back-icon-medium", + "illustrated-message-title-size": { + "prop": "--spectrum-illustrated-message-title-size", + "ref": "var(--spectrum-title-size-xl)", "desktop": { - "value": "9px" + "value": "22px" }, "mobile": { - "value": "12px" + "value": "24px" } }, - "navigational-indicator-top-to-back-icon-small": { - "prop": "--spectrum-navigational-indicator-top-to-back-icon-small", + "illustrated-message-vertical-maximum-width": { + "prop": "--spectrum-illustrated-message-vertical-maximum-width", + "value": "380px" + }, + "in-field-button-edge-to-disclosure-icon-stacked-extra-large": { + "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large", + "value": "16px" + }, + "in-field-button-edge-to-disclosure-icon-stacked-large": { + "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-large", + "value": "13px" + }, + "in-field-button-edge-to-disclosure-icon-stacked-medium": { + "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium", + "value": "9px" + }, + "in-field-button-edge-to-disclosure-icon-stacked-small": { + "prop": "--spectrum-in-field-button-edge-to-disclosure-icon-stacked-small", + "value": "7px" + }, + "in-field-button-edge-to-fill": { + "prop": "--spectrum-in-field-button-edge-to-fill", + "value": "0px" + }, + "in-field-button-edge-to-fill-extra-large": { + "prop": "--spectrum-in-field-button-edge-to-fill-extra-large", "desktop": { - "value": "6px" + "value": "8px" }, "mobile": { - "value": "7px" + "value": "10px" } }, - "negative-background-color-default": { - "prop": "--spectrum-negative-background-color-default", - "ref": "var(--spectrum-negative-color-800)", - "light": { - "value": "rgb(215, 50, 32)" - }, - "dark": { - "value": "rgb(223, 52, 34)" - } + "in-field-button-edge-to-fill-large": { + "prop": "--spectrum-in-field-button-edge-to-fill-large", + "value": "8px" }, - "negative-background-color-down": { - "prop": "--spectrum-negative-background-color-down", - "ref": "var(--spectrum-negative-color-700)", - "light": { - "value": "rgb(183, 40, 24)" - }, - "dark": { - "value": "rgb(205, 46, 29)" - } + "in-field-button-edge-to-fill-medium": { + "prop": "--spectrum-in-field-button-edge-to-fill-medium", + "value": "6px" }, - "negative-background-color-hover": { - "prop": "--spectrum-negative-background-color-hover", - "ref": "var(--spectrum-negative-color-700)", - "light": { - "value": "rgb(183, 40, 24)" + "in-field-button-edge-to-fill-small": { + "prop": "--spectrum-in-field-button-edge-to-fill-small", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgb(205, 46, 29)" + "mobile": { + "value": "5px" } }, - "negative-background-color-key-focus": { - "prop": "--spectrum-negative-background-color-key-focus", - "ref": "var(--spectrum-negative-color-700)", - "light": { - "value": "rgb(183, 40, 24)" - }, - "dark": { - "value": "rgb(205, 46, 29)" - } + "in-field-button-fill-stacked-inner-border-rounding": { + "prop": "--spectrum-in-field-button-fill-stacked-inner-border-rounding", + "value": "0px" }, - "negative-border-color-default": { - "prop": "--spectrum-negative-border-color-default", - "ref": "var(--spectrum-negative-color-900)", - "light": { - "value": "rgb(215, 50, 32)" - }, - "dark": { - "value": "rgb(252, 67, 46)" + "in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large": { + "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large", + "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large)", + "value": "5px" + }, + "in-field-button-inner-edge-to-disclosure-icon-stacked-large": { + "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large", + "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large)", + "value": "4px" + }, + "in-field-button-inner-edge-to-disclosure-icon-stacked-medium": { + "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium", + "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium)", + "value": "3px" + }, + "in-field-button-inner-edge-to-disclosure-icon-stacked-small": { + "prop": "--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small", + "ref": "var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small)", + "value": "3px" + }, + "in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large": { + "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large", + "value": "5px" + }, + "in-field-button-outer-edge-to-disclosure-icon-stacked-large": { + "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large", + "value": "4px" + }, + "in-field-button-outer-edge-to-disclosure-icon-stacked-medium": { + "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium", + "value": "3px" + }, + "in-field-button-outer-edge-to-disclosure-icon-stacked-small": { + "prop": "--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small", + "value": "3px" + }, + "in-field-button-stacked-inner-edge-to-fill": { + "prop": "--spectrum-in-field-button-stacked-inner-edge-to-fill", + "value": "0px" + }, + "in-field-button-width-stacked-extra-large": { + "prop": "--spectrum-in-field-button-width-stacked-extra-large", + "value": "44px" + }, + "in-field-button-width-stacked-large": { + "prop": "--spectrum-in-field-button-width-stacked-large", + "value": "36px" + }, + "in-field-button-width-stacked-medium": { + "prop": "--spectrum-in-field-button-width-stacked-medium", + "value": "28px" + }, + "in-field-button-width-stacked-small": { + "prop": "--spectrum-in-field-button-width-stacked-small", + "value": "20px" + }, + "in-field-progress-circle-edge-to-fill": { + "prop": "--spectrum-in-field-progress-circle-edge-to-fill", + "desktop": { + "value": "1px" + }, + "mobile": { + "value": "2px" } }, - "negative-border-color-down": { - "prop": "--spectrum-negative-border-color-down", - "ref": "var(--spectrum-negative-color-1100)", - "light": { - "value": "rgb(156, 33, 19)" + "in-field-progress-circle-size-100": { + "prop": "--spectrum-in-field-progress-circle-size-100", + "desktop": { + "value": "20px" }, - "dark": { - "value": "rgb(255, 134, 120)" + "mobile": { + "value": "24px" } }, - "negative-border-color-focus": { - "prop": "--spectrum-negative-border-color-focus", - "ref": "var(--spectrum-negative-color-1000)", - "light": { - "value": "rgb(183, 40, 24)" + "in-field-progress-circle-size-200": { + "prop": "--spectrum-in-field-progress-circle-size-200", + "desktop": { + "value": "22px" }, - "dark": { - "value": "rgb(255, 103, 86)" + "mobile": { + "value": "28px" } }, - "negative-border-color-focus-hover": { - "prop": "--spectrum-negative-border-color-focus-hover", - "ref": "var(--spectrum-negative-border-color-down)", - "light": { - "value": "rgb(156, 33, 19)" + "in-field-progress-circle-size-300": { + "prop": "--spectrum-in-field-progress-circle-size-300", + "desktop": { + "value": "26px" }, - "dark": { - "value": "rgb(255, 134, 120)" + "mobile": { + "value": "30px" } }, - "negative-border-color-hover": { - "prop": "--spectrum-negative-border-color-hover", - "ref": "var(--spectrum-negative-color-1000)", - "light": { - "value": "rgb(183, 40, 24)" + "in-field-progress-circle-size-75": { + "prop": "--spectrum-in-field-progress-circle-size-75", + "desktop": { + "value": "16px" }, - "dark": { - "value": "rgb(255, 103, 86)" + "mobile": { + "value": "18px" } }, - "negative-border-color-key-focus": { - "prop": "--spectrum-negative-border-color-key-focus", - "ref": "var(--spectrum-negative-color-1000)", - "light": { - "value": "rgb(183, 40, 24)" + "in-field-stepper-to-end-extra-large": { + "prop": "--spectrum-in-field-stepper-to-end-extra-large", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgb(255, 103, 86)" + "mobile": { + "value": "5px" } }, - "negative-color-100": { - "prop": "--spectrum-negative-color-100", - "ref": "var(--spectrum-red-100)", + "in-field-stepper-to-end-large": { + "prop": "--spectrum-in-field-stepper-to-end-large", + "value": "4px" + }, + "in-field-stepper-to-end-medium": { + "prop": "--spectrum-in-field-stepper-to-end-medium", + "value": "3px" + }, + "in-field-stepper-to-end-small": { + "prop": "--spectrum-in-field-stepper-to-end-small", + "desktop": { + "value": "0px" + }, + "mobile": { + "value": "3px" + } + }, + "in-line-alert-minimum-width": { + "prop": "--spectrum-in-line-alert-minimum-width", + "value": "240px" + }, + "indigo-100": { + "prop": "--spectrum-indigo-100", "light": { - "value": "rgb(255, 246, 245)" + "value": "rgb(247, 248, 255)" }, "dark": { - "value": "rgb(54, 10, 3)" + "value": "rgb(30, 0, 93)" } }, - "negative-color-1000": { - "prop": "--spectrum-negative-color-1000", - "ref": "var(--spectrum-red-1000)", + "indigo-1000": { + "prop": "--spectrum-indigo-1000", "light": { - "value": "rgb(183, 40, 24)" + "value": "rgb(99, 56, 238)" }, "dark": { - "value": "rgb(255, 103, 86)" + "value": "rgb(139, 141, 254)" } }, - "negative-color-1100": { - "prop": "--spectrum-negative-color-1100", - "ref": "var(--spectrum-red-1100)", + "indigo-1100": { + "prop": "--spectrum-indigo-1100", "light": { - "value": "rgb(156, 33, 19)" + "value": "rgb(84, 36, 219)" }, "dark": { - "value": "rgb(255, 134, 120)" + "value": "rgb(153, 161, 255)" } }, - "negative-color-1200": { - "prop": "--spectrum-negative-color-1200", - "ref": "var(--spectrum-red-1200)", + "indigo-1200": { + "prop": "--spectrum-indigo-1200", "light": { - "value": "rgb(129, 27, 14)" + "value": "rgb(69, 19, 191)" }, "dark": { - "value": "rgb(255, 167, 157)" + "value": "rgb(176, 186, 255)" } }, - "negative-color-1300": { - "prop": "--spectrum-negative-color-1300", - "ref": "var(--spectrum-red-1300)", + "indigo-1300": { + "prop": "--spectrum-indigo-1300", "light": { - "value": "rgb(104, 21, 10)" + "value": "rgb(55, 6, 160)" }, "dark": { - "value": "rgb(255, 196, 189)" + "value": "rgb(199, 208, 255)" } }, - "negative-color-1400": { - "prop": "--spectrum-negative-color-1400", - "ref": "var(--spectrum-red-1400)", + "indigo-1400": { + "prop": "--spectrum-indigo-1400", "light": { - "value": "rgb(80, 16, 6)" + "value": "rgb(42, 0, 129)" }, "dark": { - "value": "rgb(255, 222, 219)" + "value": "rgb(223, 228, 255)" } }, - "negative-color-1500": { - "prop": "--spectrum-negative-color-1500", - "ref": "var(--spectrum-red-1500)", + "indigo-1500": { + "prop": "--spectrum-indigo-1500", "dark": { - "value": "rgb(255, 242, 240)" + "value": "rgb(243, 244, 255)" }, "light": { - "value": "rgb(59, 11, 4)" + "value": "rgb(31, 0, 98)" } }, - "negative-color-1600": { - "prop": "--spectrum-negative-color-1600", - "ref": "var(--spectrum-red-1600)", + "indigo-1600": { + "prop": "--spectrum-indigo-1600", "dark": { "value": "rgb(255, 255, 255)" }, "light": { - "value": "rgb(29, 5, 2)" + "value": "rgb(17, 0, 54)" } }, - "negative-color-200": { - "prop": "--spectrum-negative-color-200", - "ref": "var(--spectrum-red-200)", + "indigo-200": { + "prop": "--spectrum-indigo-200", "light": { - "value": "rgb(255, 235, 232)" + "value": "rgb(235, 238, 255)" }, "dark": { - "value": "rgb(68, 13, 5)" + "value": "rgb(35, 0, 110)" } }, - "negative-color-300": { - "prop": "--spectrum-negative-color-300", - "ref": "var(--spectrum-red-300)", + "indigo-300": { + "prop": "--spectrum-indigo-300", "light": { - "value": "rgb(255, 214, 209)" + "value": "rgb(216, 222, 255)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(47, 0, 140)" } }, - "negative-color-400": { - "prop": "--spectrum-negative-color-400", - "ref": "var(--spectrum-red-400)", + "indigo-400": { + "prop": "--spectrum-indigo-400", "light": { - "value": "rgb(255, 188, 180)" + "value": "rgb(192, 201, 255)" }, "dark": { - "value": "rgb(115, 24, 11)" + "value": "rgb(62, 12, 174)" } }, - "negative-color-500": { - "prop": "--spectrum-negative-color-500", - "ref": "var(--spectrum-red-500)", + "indigo-500": { + "prop": "--spectrum-indigo-500", "light": { - "value": "rgb(255, 157, 145)" + "value": "rgb(167, 178, 255)" }, "dark": { - "value": "rgb(147, 31, 17)" + "value": "rgb(79, 30, 209)" } }, - "negative-color-600": { - "prop": "--spectrum-negative-color-600", - "ref": "var(--spectrum-red-600)", + "indigo-600": { + "prop": "--spectrum-indigo-600", "light": { - "value": "rgb(255, 118, 101)" + "value": "rgb(145, 151, 254)" }, "dark": { - "value": "rgb(177, 38, 23)" + "value": "rgb(95, 52, 235)" } }, - "negative-color-700": { - "prop": "--spectrum-negative-color-700", - "ref": "var(--spectrum-red-700)", + "indigo-700": { + "prop": "--spectrum-indigo-700", "light": { - "value": "rgb(255, 81, 61)" + "value": "rgb(132, 128, 254)" }, "dark": { - "value": "rgb(205, 46, 29)" + "value": "rgb(109, 75, 248)" } }, - "negative-color-800": { - "prop": "--spectrum-negative-color-800", - "ref": "var(--spectrum-red-800)", + "indigo-800": { + "prop": "--spectrum-indigo-800", "light": { - "value": "rgb(240, 56, 35)" + "value": "rgb(122, 106, 253)" }, "dark": { - "value": "rgb(223, 52, 34)" + "value": "rgb(116, 91, 252)" } }, - "negative-color-900": { - "prop": "--spectrum-negative-color-900", - "ref": "var(--spectrum-red-900)", + "indigo-900": { + "prop": "--spectrum-indigo-900", "light": { - "value": "rgb(215, 50, 32)" + "value": "rgb(113, 85, 250)" }, "dark": { - "value": "rgb(252, 67, 46)" + "value": "rgb(128, 119, 254)" } }, - "negative-content-color-default": { - "prop": "--spectrum-negative-content-color-default", - "ref": "var(--spectrum-negative-color-900)", + "indigo-background-color-default": { + "prop": "--spectrum-indigo-background-color-default", + "ref": "var(--spectrum-indigo-800)", "light": { - "value": "rgb(215, 50, 32)" + "value": "rgb(113, 85, 250)" }, "dark": { - "value": "rgb(252, 67, 46)" + "value": "rgb(116, 91, 252)" } }, - "negative-content-color-down": { - "prop": "--spectrum-negative-content-color-down", - "ref": "var(--spectrum-negative-color-1000)", + "indigo-subtle-background-color-default": { + "prop": "--spectrum-indigo-subtle-background-color-default", + "ref": "var(--spectrum-indigo-300)", "light": { - "value": "rgb(183, 40, 24)" + "value": "rgb(235, 238, 255)" }, "dark": { - "value": "rgb(255, 103, 86)" + "value": "rgb(47, 0, 140)" } }, - "negative-content-color-hover": { - "prop": "--spectrum-negative-content-color-hover", - "ref": "var(--spectrum-negative-color-1000)", + "indigo-visual-color": { + "prop": "--spectrum-indigo-visual-color", + "ref": "var(--spectrum-indigo-900)", "light": { - "value": "rgb(183, 40, 24)" + "value": "rgb(122, 106, 253)" }, "dark": { - "value": "rgb(255, 103, 86)" + "value": "rgb(128, 119, 254)" } }, - "negative-content-color-key-focus": { - "prop": "--spectrum-negative-content-color-key-focus", - "ref": "var(--spectrum-negative-color-1000)", + "informative-background-color-default": { + "prop": "--spectrum-informative-background-color-default", + "ref": "var(--spectrum-informative-color-800)", "light": { - "value": "rgb(183, 40, 24)" + "value": "rgb(59, 99, 251)" }, "dark": { - "value": "rgb(255, 103, 86)" + "value": "rgb(64, 105, 253)" } }, - "negative-subdued-background-color-default": { - "prop": "--spectrum-negative-subdued-background-color-default", - "ref": "var(--spectrum-negative-color-300)", + "informative-background-color-down": { + "prop": "--spectrum-informative-background-color-down", + "ref": "var(--spectrum-informative-color-700)", "light": { - "value": "rgb(255, 235, 232)" + "value": "rgb(39, 77, 234)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(52, 91, 248)" } }, - "negative-subdued-background-color-down": { - "prop": "--spectrum-negative-subdued-background-color-down", - "ref": "var(--spectrum-negative-color-300)", + "informative-background-color-hover": { + "prop": "--spectrum-informative-background-color-hover", + "ref": "var(--spectrum-informative-color-700)", "light": { - "value": "rgb(255, 214, 209)" + "value": "rgb(39, 77, 234)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(52, 91, 248)" } }, - "negative-subdued-background-color-hover": { - "prop": "--spectrum-negative-subdued-background-color-hover", - "ref": "var(--spectrum-negative-color-300)", + "informative-background-color-key-focus": { + "prop": "--spectrum-informative-background-color-key-focus", + "ref": "var(--spectrum-informative-color-700)", "light": { - "value": "rgb(255, 214, 209)" + "value": "rgb(39, 77, 234)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(52, 91, 248)" } }, - "negative-subdued-background-color-key-focus": { - "prop": "--spectrum-negative-subdued-background-color-key-focus", - "ref": "var(--spectrum-negative-color-300)", + "informative-color-100": { + "prop": "--spectrum-informative-color-100", + "ref": "var(--spectrum-blue-100)", "light": { - "value": "rgb(255, 214, 209)" + "value": "rgb(245, 249, 255)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(14, 23, 63)" } }, - "negative-subtle-background-color-default": { - "prop": "--spectrum-negative-subtle-background-color-default", - "ref": "var(--spectrum-negative-color-300)", + "informative-color-1000": { + "prop": "--spectrum-informative-color-1000", + "ref": "var(--spectrum-blue-1000)", "light": { - "value": "rgb(255, 235, 232)" + "value": "rgb(39, 77, 234)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(105, 149, 254)" } }, - "negative-visual-color": { - "prop": "--spectrum-negative-visual-color", - "ref": "var(--spectrum-negative-color-900)", + "informative-color-1100": { + "prop": "--spectrum-informative-color-1100", + "ref": "var(--spectrum-blue-1100)", "light": { - "value": "rgb(240, 56, 35)" + "value": "rgb(29, 62, 207)" }, "dark": { - "value": "rgb(252, 67, 46)" + "value": "rgb(124, 169, 252)" } }, - "neutral-background-color-default": { - "prop": "--spectrum-neutral-background-color-default", - "ref": "var(--spectrum-gray-800)", + "informative-color-1200": { + "prop": "--spectrum-informative-color-1200", + "ref": "var(--spectrum-blue-1200)", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(21, 50, 173)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(152, 192, 252)" } }, - "neutral-background-color-down": { - "prop": "--spectrum-neutral-background-color-down", - "ref": "var(--spectrum-gray-900)", + "informative-color-1300": { + "prop": "--spectrum-informative-color-1300", + "ref": "var(--spectrum-blue-1300)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(16, 40, 140)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(181, 213, 253)" } }, - "neutral-background-color-hover": { - "prop": "--spectrum-neutral-background-color-hover", - "ref": "var(--spectrum-gray-900)", + "informative-color-1400": { + "prop": "--spectrum-informative-color-1400", + "ref": "var(--spectrum-blue-1400)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(12, 31, 105)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(213, 231, 254)" } }, - "neutral-background-color-key-focus": { - "prop": "--spectrum-neutral-background-color-key-focus", - "ref": "var(--spectrum-gray-900)", - "light": { - "value": "rgb(19, 19, 19)" + "informative-color-1500": { + "prop": "--spectrum-informative-color-1500", + "ref": "var(--spectrum-blue-1500)", + "dark": { + "value": "rgb(238, 245, 255)" }, + "light": { + "value": "rgb(14, 24, 67)" + } + }, + "informative-color-1600": { + "prop": "--spectrum-informative-color-1600", + "ref": "var(--spectrum-blue-1600)", "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(7, 11, 30)" } }, - "neutral-background-color-selected-default": { - "prop": "--spectrum-neutral-background-color-selected-default", - "ref": "var(--spectrum-gray-800)", + "informative-color-200": { + "prop": "--spectrum-informative-color-200", + "ref": "var(--spectrum-blue-200)", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(229, 240, 254)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(15, 28, 82)" } }, - "neutral-background-color-selected-down": { - "prop": "--spectrum-neutral-background-color-selected-down", - "ref": "var(--spectrum-gray-900)", + "informative-color-300": { + "prop": "--spectrum-informative-color-300", + "ref": "var(--spectrum-blue-300)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(203, 226, 254)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(12, 33, 117)" } }, - "neutral-background-color-selected-hover": { - "prop": "--spectrum-neutral-background-color-selected-hover", - "ref": "var(--spectrum-gray-900)", + "informative-color-400": { + "prop": "--spectrum-informative-color-400", + "ref": "var(--spectrum-blue-400)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(172, 207, 253)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(18, 45, 154)" } }, - "neutral-background-color-selected-key-focus": { - "prop": "--spectrum-neutral-background-color-selected-key-focus", - "ref": "var(--spectrum-gray-900)", + "informative-color-500": { + "prop": "--spectrum-informative-color-500", + "ref": "var(--spectrum-blue-500)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(142, 185, 252)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(26, 58, 195)" } }, - "neutral-content-color-default": { - "prop": "--spectrum-neutral-content-color-default", - "ref": "var(--spectrum-gray-800)", + "informative-color-600": { + "prop": "--spectrum-informative-color-600", + "ref": "var(--spectrum-blue-600)", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(114, 158, 253)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(37, 73, 229)" } }, - "neutral-content-color-down": { - "prop": "--spectrum-neutral-content-color-down", - "ref": "var(--spectrum-gray-900)", + "informative-color-700": { + "prop": "--spectrum-informative-color-700", + "ref": "var(--spectrum-blue-700)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(93, 137, 255)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(52, 91, 248)" } }, - "neutral-content-color-focus": { - "prop": "--spectrum-neutral-content-color-focus", - "ref": "var(--spectrum-neutral-content-color-down)", + "informative-color-800": { + "prop": "--spectrum-informative-color-800", + "ref": "var(--spectrum-blue-800)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(75, 117, 255)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(64, 105, 253)" } }, - "neutral-content-color-focus-hover": { - "prop": "--spectrum-neutral-content-color-focus-hover", - "ref": "var(--spectrum-neutral-content-color-down)", + "informative-color-900": { + "prop": "--spectrum-informative-color-900", + "ref": "var(--spectrum-blue-900)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(59, 99, 251)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(86, 129, 255)" } }, - "neutral-content-color-hover": { - "prop": "--spectrum-neutral-content-color-hover", - "ref": "var(--spectrum-gray-900)", + "informative-subtle-background-color-default": { + "prop": "--spectrum-informative-subtle-background-color-default", + "ref": "var(--spectrum-informative-color-300)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(229, 240, 254)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(12, 33, 117)" } }, - "neutral-content-color-key-focus": { - "prop": "--spectrum-neutral-content-color-key-focus", - "ref": "var(--spectrum-gray-900)", + "informative-visual-color": { + "prop": "--spectrum-informative-visual-color", + "ref": "var(--spectrum-informative-color-900)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(75, 117, 255)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(86, 129, 255)" } }, - "neutral-subdued-background-color-default": { - "prop": "--spectrum-neutral-subdued-background-color-default", - "ref": "var(--spectrum-gray-500)", - "light": { - "value": "rgb(80, 80, 80)" - }, - "dark": { - "value": "rgb(109, 109, 109)" - } + "italic-font-style": { + "prop": "--spectrum-italic-font-style", + "value": "italic" }, - "neutral-subdued-background-color-down": { - "prop": "--spectrum-neutral-subdued-background-color-down", - "ref": "var(--spectrum-gray-400)", - "light": { - "value": "rgb(41, 41, 41)" + "letter-spacing": { + "prop": "--spectrum-letter-spacing", + "value": "0em" + }, + "light-font-weight": { + "prop": "--spectrum-light-font-weight", + "value": "300" + }, + "line-height-100": { + "prop": "--spectrum-line-height-100", + "value": 1.3 + }, + "line-height-200": { + "prop": "--spectrum-line-height-200", + "value": 1.5 + }, + "link-out-icon-size-100": { + "prop": "--spectrum-link-out-icon-size-100", + "desktop": { + "value": "12px" }, - "dark": { - "value": "rgb(68, 68, 68)" + "mobile": { + "value": "14px" } }, - "neutral-subdued-background-color-hover": { - "prop": "--spectrum-neutral-subdued-background-color-hover", - "ref": "var(--spectrum-gray-400)", - "light": { - "value": "rgb(41, 41, 41)" + "link-out-icon-size-200": { + "prop": "--spectrum-link-out-icon-size-200", + "desktop": { + "value": "14px" }, - "dark": { - "value": "rgb(68, 68, 68)" + "mobile": { + "value": "16px" } }, - "neutral-subdued-background-color-key-focus": { - "prop": "--spectrum-neutral-subdued-background-color-key-focus", - "ref": "var(--spectrum-gray-400)", - "light": { - "value": "rgb(41, 41, 41)" + "link-out-icon-size-75": { + "prop": "--spectrum-link-out-icon-size-75", + "desktop": { + "value": "10px" }, - "dark": { - "value": "rgb(68, 68, 68)" + "mobile": { + "value": "12px" } }, - "neutral-subdued-content-color-default": { - "prop": "--spectrum-neutral-subdued-content-color-default", - "ref": "var(--spectrum-gray-700)", + "magenta-100": { + "prop": "--spectrum-magenta-100", "light": { - "value": "rgb(80, 80, 80)" + "value": "rgb(255, 245, 248)" }, "dark": { - "value": "rgb(175, 175, 175)" + "value": "rgb(59, 0, 22)" } }, - "neutral-subdued-content-color-down": { - "prop": "--spectrum-neutral-subdued-content-color-down", - "ref": "var(--spectrum-gray-800)", + "magenta-1000": { + "prop": "--spectrum-magenta-1000", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(186, 22, 80)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(255, 96, 149)" } }, - "neutral-subdued-content-color-hover": { - "prop": "--spectrum-neutral-subdued-content-color-hover", - "ref": "var(--spectrum-gray-800)", + "magenta-1100": { + "prop": "--spectrum-magenta-1100", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(163, 5, 62)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(255, 128, 171)" } }, - "neutral-subdued-content-color-key-focus": { - "prop": "--spectrum-neutral-subdued-content-color-key-focus", - "ref": "var(--spectrum-gray-800)", + "magenta-1200": { + "prop": "--spectrum-magenta-1200", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(136, 0, 51)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(255, 163, 194)" } }, - "neutral-subdued-content-color-selected": { - "prop": "--spectrum-neutral-subdued-content-color-selected", - "ref": "var(--spectrum-neutral-subdued-content-color-down)", + "magenta-1300": { + "prop": "--spectrum-magenta-1300", "light": { - "value": "rgb(41, 41, 41)" + "value": "rgb(111, 0, 40)" }, "dark": { - "value": "rgb(219, 219, 219)" + "value": "rgb(255, 193, 214)" } }, - "neutral-subtle-background-color-default": { - "prop": "--spectrum-neutral-subtle-background-color-default", - "ref": "var(--spectrum-gray-300)", + "magenta-1400": { + "prop": "--spectrum-magenta-1400", "light": { - "value": "rgb(233, 233, 233)" + "value": "rgb(86, 0, 30)" }, "dark": { - "value": "rgb(57, 57, 57)" + "value": "rgb(255, 220, 232)" } }, - "neutral-visual-color": { - "prop": "--spectrum-neutral-visual-color", - "ref": "var(--spectrum-gray-600)", - "light": { - "value": "rgb(143, 143, 143)" - }, + "magenta-1500": { + "prop": "--spectrum-magenta-1500", "dark": { - "value": "rgb(138, 138, 138)" + "value": "rgb(255, 241, 246)" + }, + "light": { + "value": "rgb(64, 0, 22)" } }, - "notice-background-color-default": { - "prop": "--spectrum-notice-background-color-default", - "ref": "var(--spectrum-notice-color-600)", + "magenta-1600": { + "prop": "--spectrum-magenta-1600", "dark": { - "value": "rgb(224, 100, 0)" + "value": "rgb(255, 255, 255)" }, "light": { - "value": "rgb(252, 125, 0)" + "value": "rgb(35, 0, 12)" } }, - "notice-color-100": { - "prop": "--spectrum-notice-color-100", - "ref": "var(--spectrum-orange-100)", + "magenta-200": { + "prop": "--spectrum-magenta-200", "light": { - "value": "rgb(255, 246, 231)" + "value": "rgb(255, 232, 240)" }, "dark": { - "value": "rgb(49, 16, 0)" + "value": "rgb(74, 0, 27)" } }, - "notice-color-1000": { - "prop": "--spectrum-notice-color-1000", - "ref": "var(--spectrum-orange-1000)", + "magenta-300": { + "prop": "--spectrum-magenta-300", "light": { - "value": "rgb(167, 62, 0)" + "value": "rgb(255, 213, 227)" }, "dark": { - "value": "rgb(243, 117, 0)" + "value": "rgb(93, 0, 34)" } }, - "notice-color-1100": { - "prop": "--spectrum-notice-color-1100", - "ref": "var(--spectrum-orange-1100)", + "magenta-400": { + "prop": "--spectrum-magenta-400", "light": { - "value": "rgb(144, 51, 0)" + "value": "rgb(255, 185, 208)" }, "dark": { - "value": "rgb(255, 137, 0)" + "value": "rgb(123, 0, 45)" } }, - "notice-color-1200": { - "prop": "--spectrum-notice-color-1200", - "ref": "var(--spectrum-orange-1200)", + "magenta-500": { + "prop": "--spectrum-magenta-500", "light": { - "value": "rgb(118, 41, 0)" + "value": "rgb(255, 152, 187)" }, "dark": { - "value": "rgb(255, 173, 45)" + "value": "rgb(152, 7, 60)" } }, - "notice-color-1300": { - "prop": "--spectrum-notice-color-1300", - "ref": "var(--spectrum-orange-1300)", + "magenta-600": { + "prop": "--spectrum-magenta-600", "light": { - "value": "rgb(95, 32, 0)" + "value": "rgb(255, 112, 159)" }, "dark": { - "value": "rgb(255, 201, 116)" + "value": "rgb(181, 19, 76)" } }, - "notice-color-1400": { - "prop": "--spectrum-notice-color-1400", - "ref": "var(--spectrum-orange-1400)", + "magenta-700": { + "prop": "--spectrum-magenta-700", "light": { - "value": "rgb(73, 24, 0)" + "value": "rgb(255, 72, 133)" }, "dark": { - "value": "rgb(255, 225, 178)" + "value": "rgb(207, 31, 92)" } }, - "notice-color-1500": { - "prop": "--spectrum-notice-color-1500", - "ref": "var(--spectrum-orange-1500)", - "dark": { - "value": "rgb(255, 243, 225)" - }, + "magenta-800": { + "prop": "--spectrum-magenta-800", "light": { - "value": "rgb(52, 18, 0)" - } - }, - "notice-color-1600": { - "prop": "--spectrum-notice-color-1600", - "ref": "var(--spectrum-orange-1600)", - "dark": { - "value": "rgb(255, 255, 255)" + "value": "rgb(240, 45, 110)" }, - "light": { - "value": "rgb(25, 8, 0)" + "dark": { + "value": "rgb(224, 38, 101)" } }, - "notice-color-200": { - "prop": "--spectrum-notice-color-200", - "ref": "var(--spectrum-orange-200)", + "magenta-900": { + "prop": "--spectrum-magenta-900", "light": { - "value": "rgb(255, 236, 207)" + "value": "rgb(217, 35, 97)" }, "dark": { - "value": "rgb(61, 21, 0)" + "value": "rgb(255, 51, 119)" } }, - "notice-color-300": { - "prop": "--spectrum-notice-color-300", - "ref": "var(--spectrum-orange-300)", + "magenta-background-color-default": { + "prop": "--spectrum-magenta-background-color-default", + "ref": "var(--spectrum-magenta-800)", "light": { - "value": "rgb(255, 218, 158)" + "value": "rgb(217, 35, 97)" }, "dark": { - "value": "rgb(80, 27, 0)" + "value": "rgb(224, 38, 101)" } }, - "notice-color-400": { - "prop": "--spectrum-notice-color-400", - "ref": "var(--spectrum-orange-400)", + "magenta-subtle-background-color-default": { + "prop": "--spectrum-magenta-subtle-background-color-default", + "ref": "var(--spectrum-magenta-300)", "light": { - "value": "rgb(255, 193, 94)" + "value": "rgb(255, 232, 240)" }, "dark": { - "value": "rgb(106, 36, 0)" + "value": "rgb(93, 0, 34)" } }, - "notice-color-500": { - "prop": "--spectrum-notice-color-500", - "ref": "var(--spectrum-orange-500)", + "magenta-visual-color": { + "prop": "--spectrum-magenta-visual-color", + "ref": "var(--spectrum-magenta-900)", "light": { - "value": "rgb(255, 162, 19)" + "value": "rgb(240, 45, 110)" }, "dark": { - "value": "rgb(135, 47, 0)" + "value": "rgb(255, 51, 119)" } }, - "notice-color-600": { - "prop": "--spectrum-notice-color-600", - "ref": "var(--spectrum-orange-600)", + "medium-font-weight": { + "prop": "--spectrum-medium-font-weight", + "value": "500" + }, + "menu-item-background-color-default": { + "prop": "--spectrum-menu-item-background-color-default", + "ref": "var(--spectrum-gray-200)", "light": { - "value": "rgb(252, 125, 0)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(162, 59, 0)" + "value": "rgb(50, 50, 50)" } }, - "notice-color-700": { - "prop": "--spectrum-notice-color-700", - "ref": "var(--spectrum-orange-700)", + "menu-item-background-color-disabled": { + "prop": "--spectrum-menu-item-background-color-disabled", + "ref": "var(--spectrum-gray-200)", "light": { - "value": "rgb(232, 106, 0)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(185, 73, 0)" + "value": "rgb(50, 50, 50)" } }, - "notice-color-800": { - "prop": "--spectrum-notice-color-800", - "ref": "var(--spectrum-orange-800)", + "menu-item-background-color-down": { + "prop": "--spectrum-menu-item-background-color-down", + "ref": "var(--spectrum-gray-200)", "light": { - "value": "rgb(212, 91, 0)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(199, 82, 0)" + "value": "rgb(50, 50, 50)" } }, - "notice-color-900": { - "prop": "--spectrum-notice-color-900", - "ref": "var(--spectrum-orange-900)", + "menu-item-background-color-hover": { + "prop": "--spectrum-menu-item-background-color-hover", + "ref": "var(--spectrum-gray-200)", "light": { - "value": "rgb(194, 78, 0)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(224, 100, 0)" + "value": "rgb(50, 50, 50)" } }, - "notice-subtle-background-color-default": { - "prop": "--spectrum-notice-subtle-background-color-default", - "ref": "var(--spectrum-notice-color-300)", + "menu-item-background-color-keyboard-focus": { + "prop": "--spectrum-menu-item-background-color-keyboard-focus", + "ref": "var(--spectrum-gray-200)", "light": { - "value": "rgb(255, 236, 207)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(80, 27, 0)" + "value": "rgb(50, 50, 50)" } }, - "notice-visual-color": { - "prop": "--spectrum-notice-visual-color", - "ref": "var(--spectrum-notice-color-900)", - "light": { - "value": "rgb(212, 91, 0)" + "menu-item-background-opacity": { + "prop": "--spectrum-menu-item-background-opacity", + "value": "0" + }, + "menu-item-edge-to-content-not-selected-extra-large": { + "prop": "--spectrum-menu-item-edge-to-content-not-selected-extra-large", + "desktop": { + "value": "45px" }, - "dark": { - "value": "rgb(224, 100, 0)" + "mobile": { + "value": "54px" } }, - "opacity-checkerboard-square-dark": { - "prop": "--spectrum-opacity-checkerboard-square-dark", - "ref": "var(--spectrum-gray-800)", - "light": { - "value": "rgb(225, 225, 225)" + "menu-item-edge-to-content-not-selected-large": { + "prop": "--spectrum-menu-item-edge-to-content-not-selected-large", + "desktop": { + "value": "38px" }, - "dark": { - "value": "rgb(219, 219, 219)" + "mobile": { + "value": "47px" } }, - "opacity-checkerboard-square-light": { - "prop": "--spectrum-opacity-checkerboard-square-light", - "ref": "var(--spectrum-white)", - "light": { - "value": "rgb(255, 255, 255)" + "menu-item-edge-to-content-not-selected-medium": { + "prop": "--spectrum-menu-item-edge-to-content-not-selected-medium", + "desktop": { + "value": "32px" }, - "dark": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "42px" } }, - "opacity-checkerboard-square-size": { - "prop": "--spectrum-opacity-checkerboard-square-size", + "menu-item-edge-to-content-not-selected-small": { + "prop": "--spectrum-menu-item-edge-to-content-not-selected-small", "desktop": { - "value": "8px" + "value": "28px" }, "mobile": { - "value": "10px" + "value": "24px" } }, - "opacity-disabled": { - "prop": "--spectrum-opacity-disabled", - "value": "0.3" + "menu-item-label-to-description": { + "prop": "--spectrum-menu-item-label-to-description", + "ref": "var(--spectrum-menu-item-label-to-description-medium)", + "value": "1px" }, - "orange-100": { - "prop": "--spectrum-orange-100", - "light": { - "value": "rgb(255, 246, 231)" - }, - "dark": { - "value": "rgb(49, 16, 0)" - } + "menu-item-label-to-description-extra-large": { + "prop": "--spectrum-menu-item-label-to-description-extra-large", + "value": "2px" }, - "orange-1000": { - "prop": "--spectrum-orange-1000", - "light": { - "value": "rgb(167, 62, 0)" + "menu-item-label-to-description-large": { + "prop": "--spectrum-menu-item-label-to-description-large", + "value": "2px" + }, + "menu-item-label-to-description-medium": { + "prop": "--spectrum-menu-item-label-to-description-medium", + "value": "1px" + }, + "menu-item-label-to-description-small": { + "prop": "--spectrum-menu-item-label-to-description-small", + "value": "1px" + }, + "menu-item-section-divider-height": { + "prop": "--spectrum-menu-item-section-divider-height", + "value": "12px" + }, + "menu-item-top-to-disclosure-icon-extra-large": { + "prop": "--spectrum-menu-item-top-to-disclosure-icon-extra-large", + "desktop": { + "value": "17px" }, - "dark": { - "value": "rgb(243, 117, 0)" + "mobile": { + "value": "22px" } }, - "orange-1100": { - "prop": "--spectrum-orange-1100", - "light": { - "value": "rgb(144, 51, 0)" + "menu-item-top-to-disclosure-icon-large": { + "prop": "--spectrum-menu-item-top-to-disclosure-icon-large", + "desktop": { + "value": "14px" }, - "dark": { - "value": "rgb(255, 137, 0)" + "mobile": { + "value": "17px" } }, - "orange-1200": { - "prop": "--spectrum-orange-1200", - "light": { - "value": "rgb(118, 41, 0)" + "menu-item-top-to-disclosure-icon-medium": { + "prop": "--spectrum-menu-item-top-to-disclosure-icon-medium", + "desktop": { + "value": "11px" }, - "dark": { - "value": "rgb(255, 173, 45)" + "mobile": { + "value": "13px" } }, - "orange-1300": { - "prop": "--spectrum-orange-1300", - "light": { - "value": "rgb(95, 32, 0)" + "menu-item-top-to-disclosure-icon-small": { + "prop": "--spectrum-menu-item-top-to-disclosure-icon-small", + "desktop": { + "value": "7px" }, - "dark": { - "value": "rgb(255, 201, 116)" + "mobile": { + "value": "9px" } }, - "orange-1400": { - "prop": "--spectrum-orange-1400", - "light": { - "value": "rgb(73, 24, 0)" + "menu-item-top-to-selected-icon-extra-large": { + "prop": "--spectrum-menu-item-top-to-selected-icon-extra-large", + "desktop": { + "value": "17px" }, - "dark": { - "value": "rgb(255, 225, 178)" + "mobile": { + "value": "22px" } }, - "orange-1500": { - "prop": "--spectrum-orange-1500", - "dark": { - "value": "rgb(255, 243, 225)" + "menu-item-top-to-selected-icon-large": { + "prop": "--spectrum-menu-item-top-to-selected-icon-large", + "desktop": { + "value": "14px" }, - "light": { - "value": "rgb(52, 18, 0)" + "mobile": { + "value": "17px" } }, - "orange-1600": { - "prop": "--spectrum-orange-1600", - "dark": { - "value": "rgb(255, 255, 255)" + "menu-item-top-to-selected-icon-medium": { + "prop": "--spectrum-menu-item-top-to-selected-icon-medium", + "desktop": { + "value": "11px" }, - "light": { - "value": "rgb(25, 8, 0)" + "mobile": { + "value": "13px" } }, - "orange-200": { - "prop": "--spectrum-orange-200", - "light": { - "value": "rgb(255, 236, 207)" + "menu-item-top-to-selected-icon-small": { + "prop": "--spectrum-menu-item-top-to-selected-icon-small", + "desktop": { + "value": "7px" }, - "dark": { - "value": "rgb(61, 21, 0)" + "mobile": { + "value": "9px" } }, - "orange-300": { - "prop": "--spectrum-orange-300", - "light": { - "value": "rgb(255, 218, 158)" + "menu-item-top-to-thumbnail-extra-large": { + "prop": "--spectrum-menu-item-top-to-thumbnail-extra-large", + "desktop": { + "value": "11px" }, - "dark": { - "value": "rgb(80, 27, 0)" + "mobile": { + "value": "13px" } }, - "orange-400": { - "prop": "--spectrum-orange-400", - "light": { - "value": "rgb(255, 193, 94)" + "menu-item-top-to-thumbnail-large": { + "prop": "--spectrum-menu-item-top-to-thumbnail-large", + "desktop": { + "value": "10px" }, - "dark": { - "value": "rgb(106, 36, 0)" + "mobile": { + "value": "12px" } }, - "orange-500": { - "prop": "--spectrum-orange-500", - "light": { - "value": "rgb(255, 162, 19)" + "menu-item-top-to-thumbnail-medium": { + "prop": "--spectrum-menu-item-top-to-thumbnail-medium", + "desktop": { + "value": "9px" }, - "dark": { - "value": "rgb(135, 47, 0)" + "mobile": { + "value": "11px" } }, - "orange-600": { - "prop": "--spectrum-orange-600", - "light": { - "value": "rgb(252, 125, 0)" + "menu-item-top-to-thumbnail-small": { + "prop": "--spectrum-menu-item-top-to-thumbnail-small", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(162, 59, 0)" + "mobile": { + "value": "10px" } }, - "orange-700": { - "prop": "--spectrum-orange-700", - "light": { - "value": "rgb(232, 106, 0)" - }, - "dark": { - "value": "rgb(185, 73, 0)" - } - }, - "orange-800": { - "prop": "--spectrum-orange-800", - "light": { - "value": "rgb(212, 91, 0)" - }, - "dark": { - "value": "rgb(199, 82, 0)" - } - }, - "orange-900": { - "prop": "--spectrum-orange-900", - "light": { - "value": "rgb(194, 78, 0)" - }, - "dark": { - "value": "rgb(224, 100, 0)" - } - }, - "orange-background-color-default": { - "prop": "--spectrum-orange-background-color-default", - "ref": "var(--spectrum-orange-900)", - "light": { - "value": "rgb(252, 125, 0)" - }, - "dark": { - "value": "rgb(224, 100, 0)" - } + "menu-section-header-to-description-extra-large": { + "prop": "--spectrum-menu-section-header-to-description-extra-large", + "value": "2px" }, - "orange-subtle-background-color-default": { - "prop": "--spectrum-orange-subtle-background-color-default", - "ref": "var(--spectrum-orange-300)", - "light": { - "value": "rgb(255, 236, 207)" - }, - "dark": { - "value": "rgb(80, 27, 0)" - } + "menu-section-header-to-description-large": { + "prop": "--spectrum-menu-section-header-to-description-large", + "value": "2px" }, - "orange-visual-color": { - "prop": "--spectrum-orange-visual-color", - "ref": "var(--spectrum-orange-900)", - "light": { - "value": "rgb(232, 106, 0)" - }, - "dark": { - "value": "rgb(224, 100, 0)" - } + "menu-section-header-to-description-medium": { + "prop": "--spectrum-menu-section-header-to-description-medium", + "value": "1px" }, - "overlay-color": { - "prop": "--spectrum-overlay-color", - "ref": "var(--spectrum-black)", - "value": "rgb(0, 0, 0)" + "menu-section-header-to-description-small": { + "prop": "--spectrum-menu-section-header-to-description-small", + "value": "1px" }, - "overlay-opacity": { - "prop": "--spectrum-overlay-opacity", - "light": { - "value": "0.4" + "meter-default-width": { + "prop": "--spectrum-meter-default-width", + "ref": "var(--spectrum-meter-width)", + "desktop": { + "value": "192px" }, - "dark": { - "value": "0.6" + "mobile": { + "value": "240px" } }, - "picker-border-width": { - "prop": "--spectrum-picker-border-width", - "ref": "var(--spectrum-border-width-100)", - "value": "1px" - }, - "picker-end-edge-to-disclosure-icon-quiet": { - "prop": "--spectrum-picker-end-edge-to-disclosure-icon-quiet", - "value": "0px" - }, - "picker-end-edge-to-disclousure-icon-quiet": { - "prop": "--spectrum-picker-end-edge-to-disclousure-icon-quiet", - "ref": "var(--spectrum-picker-end-edge-to-disclosure-icon-quiet)", - "value": "0px" + "meter-maximum-width": { + "prop": "--spectrum-meter-maximum-width", + "value": "768px" }, - "picker-minimum-width-multiplier": { - "prop": "--spectrum-picker-minimum-width-multiplier", - "value": "2" + "meter-minimum-width": { + "prop": "--spectrum-meter-minimum-width", + "value": "48px" }, - "picker-visual-to-disclosure-icon-extra-large": { - "prop": "--spectrum-picker-visual-to-disclosure-icon-extra-large", + "meter-thickness-extra-large": { + "prop": "--spectrum-meter-thickness-extra-large", "desktop": { "value": "10px" }, @@ -8537,1185 +9581,3591 @@ "value": "13px" } }, - "picker-visual-to-disclosure-icon-large": { - "prop": "--spectrum-picker-visual-to-disclosure-icon-large", + "meter-thickness-large": { + "prop": "--spectrum-meter-thickness-large", "desktop": { - "value": "9px" + "value": "8px" }, "mobile": { - "value": "11px" + "value": "10px" } }, - "picker-visual-to-disclosure-icon-medium": { - "prop": "--spectrum-picker-visual-to-disclosure-icon-medium", + "meter-thickness-medium": { + "prop": "--spectrum-meter-thickness-medium", "desktop": { - "value": "8px" + "value": "6px" }, "mobile": { - "value": "10px" + "value": "8px" } }, - "picker-visual-to-disclosure-icon-small": { - "prop": "--spectrum-picker-visual-to-disclosure-icon-small", + "meter-thickness-small": { + "prop": "--spectrum-meter-thickness-small", "desktop": { - "value": "7px" + "value": "4px" }, "mobile": { - "value": "9px" + "value": "5px" } }, - "pink-100": { - "prop": "--spectrum-pink-100", - "dark": { - "value": "rgb(58, 0, 37)" + "meter-width": { + "prop": "--spectrum-meter-width", + "desktop": { + "value": "192px" }, - "light": { - "value": "rgb(255, 246, 252)" + "mobile": { + "value": "240px" } }, - "pink-1000": { - "prop": "--spectrum-pink-1000", - "dark": { - "value": "rgb(251, 90, 196)" + "navigational-indicator-top-to-back-icon-extra-large": { + "prop": "--spectrum-navigational-indicator-top-to-back-icon-extra-large", + "desktop": { + "value": "15px" }, - "light": { - "value": "rgb(176, 31, 123)" + "mobile": { + "value": "19px" } }, - "pink-1100": { - "prop": "--spectrum-pink-1100", - "dark": { - "value": "rgb(255, 122, 210)" + "navigational-indicator-top-to-back-icon-large": { + "prop": "--spectrum-navigational-indicator-top-to-back-icon-large", + "desktop": { + "value": "12px" }, - "light": { - "value": "rgb(152, 22, 104)" + "mobile": { + "value": "16px" } }, - "pink-1200": { - "prop": "--spectrum-pink-1200", - "dark": { - "value": "rgb(255, 159, 223)" + "navigational-indicator-top-to-back-icon-medium": { + "prop": "--spectrum-navigational-indicator-top-to-back-icon-medium", + "desktop": { + "value": "9px" }, - "light": { - "value": "rgb(128, 12, 85)" + "mobile": { + "value": "12px" } }, - "pink-1300": { - "prop": "--spectrum-pink-1300", - "dark": { - "value": "rgb(255, 191, 234)" + "navigational-indicator-top-to-back-icon-small": { + "prop": "--spectrum-navigational-indicator-top-to-back-icon-small", + "desktop": { + "value": "6px" }, - "light": { - "value": "rgb(105, 3, 68)" + "mobile": { + "value": "7px" } }, - "pink-1400": { - "prop": "--spectrum-pink-1400", - "dark": { - "value": "rgb(255, 219, 243)" - }, + "negative-background-color-default": { + "prop": "--spectrum-negative-background-color-default", + "ref": "var(--spectrum-negative-color-800)", "light": { - "value": "rgb(83, 0, 53)" + "value": "rgb(215, 50, 32)" + }, + "dark": { + "value": "rgb(223, 52, 34)" } }, - "pink-1500": { - "prop": "--spectrum-pink-1500", - "dark": { - "value": "rgb(255, 241, 250)" - }, + "negative-background-color-down": { + "prop": "--spectrum-negative-background-color-down", + "ref": "var(--spectrum-negative-color-700)", "light": { - "value": "rgb(62, 0, 39)" + "value": "rgb(183, 40, 24)" + }, + "dark": { + "value": "rgb(205, 46, 29)" } }, - "pink-1600": { - "prop": "--spectrum-pink-1600", - "dark": { - "value": "rgb(255, 255, 255)" - }, + "negative-background-color-hover": { + "prop": "--spectrum-negative-background-color-hover", + "ref": "var(--spectrum-negative-color-700)", "light": { - "value": "rgb(33, 0, 21)" + "value": "rgb(183, 40, 24)" + }, + "dark": { + "value": "rgb(205, 46, 29)" } }, - "pink-200": { - "prop": "--spectrum-pink-200", - "dark": { - "value": "rgb(71, 0, 44)" - }, + "negative-background-color-key-focus": { + "prop": "--spectrum-negative-background-color-key-focus", + "ref": "var(--spectrum-negative-color-700)", "light": { - "value": "rgb(255, 232, 247)" + "value": "rgb(183, 40, 24)" + }, + "dark": { + "value": "rgb(205, 46, 29)" } }, - "pink-300": { - "prop": "--spectrum-pink-300", - "dark": { - "value": "rgb(90, 0, 57)" - }, + "negative-border-color-default": { + "prop": "--spectrum-negative-border-color-default", + "ref": "var(--spectrum-negative-color-900)", "light": { - "value": "rgb(255, 211, 240)" + "value": "rgb(215, 50, 32)" + }, + "dark": { + "value": "rgb(252, 67, 46)" } }, - "pink-400": { - "prop": "--spectrum-pink-400", - "dark": { - "value": "rgb(115, 7, 75)" - }, + "negative-border-color-down": { + "prop": "--spectrum-negative-border-color-down", + "ref": "var(--spectrum-negative-color-1100)", "light": { - "value": "rgb(255, 181, 230)" + "value": "rgb(156, 33, 19)" + }, + "dark": { + "value": "rgb(255, 134, 120)" } }, - "pink-500": { - "prop": "--spectrum-pink-500", - "dark": { - "value": "rgb(143, 18, 97)" - }, + "negative-border-color-focus": { + "prop": "--spectrum-negative-border-color-focus", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(255, 148, 219)" - } - }, - "pink-600": { - "prop": "--spectrum-pink-600", - "dark": { - "value": "rgb(171, 29, 119)" + "value": "rgb(183, 40, 24)" }, - "light": { - "value": "rgb(255, 103, 204)" - } - }, - "pink-700": { - "prop": "--spectrum-pink-700", "dark": { - "value": "rgb(196, 39, 138)" - }, - "light": { - "value": "rgb(242, 76, 184)" + "value": "rgb(255, 103, 86)" } }, - "pink-800": { - "prop": "--spectrum-pink-800", - "dark": { - "value": "rgb(213, 45, 151)" - }, + "negative-border-color-focus-hover": { + "prop": "--spectrum-negative-border-color-focus-hover", + "ref": "var(--spectrum-negative-border-color-down)", "light": { - "value": "rgb(228, 52, 163)" - } - }, - "pink-900": { - "prop": "--spectrum-pink-900", - "dark": { - "value": "rgb(236, 67, 175)" + "value": "rgb(156, 33, 19)" }, - "light": { - "value": "rgb(206, 42, 146)" + "dark": { + "value": "rgb(255, 134, 120)" } }, - "pink-background-color-default": { - "prop": "--spectrum-pink-background-color-default", - "ref": "var(--spectrum-pink-800)", + "negative-border-color-hover": { + "prop": "--spectrum-negative-border-color-hover", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(206, 42, 146)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(213, 45, 151)" + "value": "rgb(255, 103, 86)" } }, - "pink-subtle-background-color-default": { - "prop": "--spectrum-pink-subtle-background-color-default", - "ref": "var(--spectrum-pink-300)", + "negative-border-color-key-focus": { + "prop": "--spectrum-negative-border-color-key-focus", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(255, 232, 247)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(90, 0, 57)" + "value": "rgb(255, 103, 86)" } }, - "pink-visual-color": { - "prop": "--spectrum-pink-visual-color", - "ref": "var(--spectrum-pink-900)", + "negative-color-100": { + "prop": "--spectrum-negative-color-100", + "ref": "var(--spectrum-red-100)", "light": { - "value": "rgb(228, 52, 163)" + "value": "rgb(255, 246, 245)" }, "dark": { - "value": "rgb(236, 67, 175)" - } - }, - "popover-tip-height": { - "prop": "--spectrum-popover-tip-height", - "value": "8px" - }, - "popover-tip-width": { - "prop": "--spectrum-popover-tip-width", - "value": "16px" - }, - "popover-top-to-content-area": { - "prop": "--spectrum-popover-top-to-content-area", - "desktop": { - "value": "4px" - }, - "mobile": { - "value": "5px" + "value": "rgb(54, 10, 3)" } }, - "positive-background-color-default": { - "prop": "--spectrum-positive-background-color-default", - "ref": "var(--spectrum-positive-color-800)", + "negative-color-1000": { + "prop": "--spectrum-negative-color-1000", + "ref": "var(--spectrum-red-1000)", "light": { - "value": "rgb(5, 131, 78)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(6, 136, 80)" + "value": "rgb(255, 103, 86)" } }, - "positive-background-color-down": { - "prop": "--spectrum-positive-background-color-down", - "ref": "var(--spectrum-positive-color-700)", + "negative-color-1100": { + "prop": "--spectrum-negative-color-1100", + "ref": "var(--spectrum-red-1100)", "light": { - "value": "rgb(3, 110, 69)" + "value": "rgb(156, 33, 19)" }, "dark": { - "value": "rgb(4, 124, 75)" + "value": "rgb(255, 134, 120)" } }, - "positive-background-color-hover": { - "prop": "--spectrum-positive-background-color-hover", - "ref": "var(--spectrum-positive-color-700)", + "negative-color-1200": { + "prop": "--spectrum-negative-color-1200", + "ref": "var(--spectrum-red-1200)", "light": { - "value": "rgb(3, 110, 69)" + "value": "rgb(129, 27, 14)" }, "dark": { - "value": "rgb(4, 124, 75)" + "value": "rgb(255, 167, 157)" } }, - "positive-background-color-key-focus": { - "prop": "--spectrum-positive-background-color-key-focus", - "ref": "var(--spectrum-positive-color-700)", + "negative-color-1300": { + "prop": "--spectrum-negative-color-1300", + "ref": "var(--spectrum-red-1300)", "light": { - "value": "rgb(3, 110, 69)" + "value": "rgb(104, 21, 10)" }, "dark": { - "value": "rgb(4, 124, 75)" + "value": "rgb(255, 196, 189)" } }, - "positive-color-100": { - "prop": "--spectrum-positive-color-100", - "ref": "var(--spectrum-green-100)", + "negative-color-1400": { + "prop": "--spectrum-negative-color-1400", + "ref": "var(--spectrum-red-1400)", "light": { - "value": "rgb(237, 252, 241)" + "value": "rgb(80, 16, 6)" }, "dark": { - "value": "rgb(0, 30, 23)" + "value": "rgb(255, 222, 219)" } }, - "positive-color-1000": { - "prop": "--spectrum-positive-color-1000", - "ref": "var(--spectrum-green-1000)", - "light": { - "value": "rgb(3, 110, 69)" + "negative-color-1500": { + "prop": "--spectrum-negative-color-1500", + "ref": "var(--spectrum-red-1500)", + "dark": { + "value": "rgb(255, 242, 240)" }, + "light": { + "value": "rgb(59, 11, 4)" + } + }, + "negative-color-1600": { + "prop": "--spectrum-negative-color-1600", + "ref": "var(--spectrum-red-1600)", "dark": { - "value": "rgb(14, 175, 98)" + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(29, 5, 2)" } }, - "positive-color-1100": { - "prop": "--spectrum-positive-color-1100", - "ref": "var(--spectrum-green-1100)", + "negative-color-200": { + "prop": "--spectrum-negative-color-200", + "ref": "var(--spectrum-red-200)", "light": { - "value": "rgb(2, 93, 60)" + "value": "rgb(255, 235, 232)" }, "dark": { - "value": "rgb(24, 193, 110)" + "value": "rgb(68, 13, 5)" } }, - "positive-color-1200": { - "prop": "--spectrum-positive-color-1200", - "ref": "var(--spectrum-green-1200)", + "negative-color-300": { + "prop": "--spectrum-negative-color-300", + "ref": "var(--spectrum-red-300)", "light": { - "value": "rgb(1, 76, 52)" + "value": "rgb(255, 214, 209)" }, "dark": { - "value": "rgb(57, 215, 134)" + "value": "rgb(87, 17, 7)" } }, - "positive-color-1300": { - "prop": "--spectrum-positive-color-1300", - "ref": "var(--spectrum-green-1300)", + "negative-color-400": { + "prop": "--spectrum-negative-color-400", + "ref": "var(--spectrum-red-400)", "light": { - "value": "rgb(0, 61, 44)" + "value": "rgb(255, 188, 180)" }, "dark": { - "value": "rgb(126, 231, 172)" + "value": "rgb(115, 24, 11)" } }, - "positive-color-1400": { - "prop": "--spectrum-positive-color-1400", - "ref": "var(--spectrum-green-1400)", + "negative-color-500": { + "prop": "--spectrum-negative-color-500", + "ref": "var(--spectrum-red-500)", "light": { - "value": "rgb(0, 46, 34)" + "value": "rgb(255, 157, 145)" }, "dark": { - "value": "rgb(189, 241, 208)" + "value": "rgb(147, 31, 17)" } }, - "positive-color-1500": { - "prop": "--spectrum-positive-color-1500", - "ref": "var(--spectrum-green-1500)", - "dark": { - "value": "rgb(229, 250, 236)" - }, + "negative-color-600": { + "prop": "--spectrum-negative-color-600", + "ref": "var(--spectrum-red-600)", "light": { - "value": "rgb(0, 33, 25)" - } - }, - "positive-color-1600": { - "prop": "--spectrum-positive-color-1600", - "ref": "var(--spectrum-green-1600)", - "dark": { - "value": "rgb(255, 255, 255)" + "value": "rgb(255, 118, 101)" }, - "light": { - "value": "rgb(0, 15, 12)" + "dark": { + "value": "rgb(177, 38, 23)" } }, - "positive-color-200": { - "prop": "--spectrum-positive-color-200", - "ref": "var(--spectrum-green-200)", + "negative-color-700": { + "prop": "--spectrum-negative-color-700", + "ref": "var(--spectrum-red-700)", "light": { - "value": "rgb(215, 247, 225)" + "value": "rgb(255, 81, 61)" }, "dark": { - "value": "rgb(0, 38, 29)" + "value": "rgb(205, 46, 29)" } }, - "positive-color-300": { - "prop": "--spectrum-positive-color-300", - "ref": "var(--spectrum-green-300)", + "negative-color-800": { + "prop": "--spectrum-negative-color-800", + "ref": "var(--spectrum-red-800)", "light": { - "value": "rgb(173, 238, 197)" + "value": "rgb(240, 56, 35)" }, "dark": { - "value": "rgb(0, 51, 38)" + "value": "rgb(223, 52, 34)" } }, - "positive-color-400": { - "prop": "--spectrum-positive-color-400", - "ref": "var(--spectrum-green-400)", + "negative-color-900": { + "prop": "--spectrum-negative-color-900", + "ref": "var(--spectrum-red-900)", "light": { - "value": "rgb(107, 227, 162)" + "value": "rgb(215, 50, 32)" }, "dark": { - "value": "rgb(0, 68, 48)" + "value": "rgb(252, 67, 46)" } }, - "positive-color-500": { - "prop": "--spectrum-positive-color-500", - "ref": "var(--spectrum-green-500)", + "negative-content-color-default": { + "prop": "--spectrum-negative-content-color-default", + "ref": "var(--spectrum-negative-color-900)", "light": { - "value": "rgb(43, 209, 125)" + "value": "rgb(215, 50, 32)" }, "dark": { - "value": "rgb(2, 87, 58)" + "value": "rgb(252, 67, 46)" } }, - "positive-color-600": { - "prop": "--spectrum-positive-color-600", - "ref": "var(--spectrum-green-600)", + "negative-content-color-down": { + "prop": "--spectrum-negative-content-color-down", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(18, 184, 103)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(3, 106, 67)" + "value": "rgb(255, 103, 86)" } }, - "positive-color-700": { - "prop": "--spectrum-positive-color-700", - "ref": "var(--spectrum-green-700)", + "negative-content-color-hover": { + "prop": "--spectrum-negative-content-color-hover", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(11, 164, 93)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(4, 124, 75)" + "value": "rgb(255, 103, 86)" } }, - "positive-color-800": { - "prop": "--spectrum-positive-color-800", - "ref": "var(--spectrum-green-800)", + "negative-content-color-key-focus": { + "prop": "--spectrum-negative-content-color-key-focus", + "ref": "var(--spectrum-negative-color-1000)", "light": { - "value": "rgb(7, 147, 85)" + "value": "rgb(183, 40, 24)" }, "dark": { - "value": "rgb(6, 136, 80)" + "value": "rgb(255, 103, 86)" } }, - "positive-color-900": { - "prop": "--spectrum-positive-color-900", - "ref": "var(--spectrum-green-900)", + "negative-subdued-background-color-default": { + "prop": "--spectrum-negative-subdued-background-color-default", + "ref": "var(--spectrum-negative-color-300)", "light": { - "value": "rgb(5, 131, 78)" + "value": "rgb(255, 235, 232)" }, "dark": { - "value": "rgb(9, 157, 89)" + "value": "rgb(87, 17, 7)" } }, - "positive-subtle-background-color-default": { - "prop": "--spectrum-positive-subtle-background-color-default", - "ref": "var(--spectrum-positive-color-300)", + "negative-subdued-background-color-down": { + "prop": "--spectrum-negative-subdued-background-color-down", + "ref": "var(--spectrum-negative-color-300)", "light": { - "value": "rgb(215, 247, 225)" + "value": "rgb(255, 214, 209)" }, "dark": { - "value": "rgb(0, 51, 38)" + "value": "rgb(87, 17, 7)" } }, - "positive-visual-color": { - "prop": "--spectrum-positive-visual-color", - "ref": "var(--spectrum-positive-color-900)", + "negative-subdued-background-color-hover": { + "prop": "--spectrum-negative-subdued-background-color-hover", + "ref": "var(--spectrum-negative-color-300)", "light": { - "value": "rgb(7, 147, 85)" + "value": "rgb(255, 214, 209)" }, "dark": { - "value": "rgb(9, 157, 89)" - } - }, - "progress-bar-maximum-width": { - "prop": "--spectrum-progress-bar-maximum-width", - "value": "768px" - }, - "progress-bar-minimum-width": { - "prop": "--spectrum-progress-bar-minimum-width", - "value": "48px" - }, - "progress-bar-thickness-extra-large": { - "prop": "--spectrum-progress-bar-thickness-extra-large", - "desktop": { - "value": "10px" - }, - "mobile": { - "value": "13px" + "value": "rgb(87, 17, 7)" } }, - "progress-bar-thickness-large": { - "prop": "--spectrum-progress-bar-thickness-large", - "desktop": { - "value": "8px" + "negative-subdued-background-color-key-focus": { + "prop": "--spectrum-negative-subdued-background-color-key-focus", + "ref": "var(--spectrum-negative-color-300)", + "light": { + "value": "rgb(255, 214, 209)" }, - "mobile": { - "value": "10px" + "dark": { + "value": "rgb(87, 17, 7)" } }, - "progress-bar-thickness-medium": { - "prop": "--spectrum-progress-bar-thickness-medium", - "desktop": { - "value": "6px" + "negative-subtle-background-color-default": { + "prop": "--spectrum-negative-subtle-background-color-default", + "ref": "var(--spectrum-negative-color-300)", + "light": { + "value": "rgb(255, 235, 232)" }, - "mobile": { - "value": "8px" + "dark": { + "value": "rgb(87, 17, 7)" } }, - "progress-bar-thickness-small": { - "prop": "--spectrum-progress-bar-thickness-small", - "desktop": { - "value": "4px" + "negative-visual-color": { + "prop": "--spectrum-negative-visual-color", + "ref": "var(--spectrum-negative-color-900)", + "light": { + "value": "rgb(240, 56, 35)" }, - "mobile": { - "value": "5px" + "dark": { + "value": "rgb(252, 67, 46)" } }, - "progress-circle-size-large": { - "prop": "--spectrum-progress-circle-size-large", - "desktop": { - "value": "64px" + "neutral-background-color-default": { + "prop": "--spectrum-neutral-background-color-default", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" }, - "mobile": { - "value": "80px" + "dark": { + "value": "rgb(219, 219, 219)" } }, - "progress-circle-size-medium": { - "prop": "--spectrum-progress-circle-size-medium", - "desktop": { - "value": "32px" + "neutral-background-color-down": { + "prop": "--spectrum-neutral-background-color-down", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" }, - "mobile": { - "value": "40px" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "progress-circle-size-small": { - "prop": "--spectrum-progress-circle-size-small", - "desktop": { - "value": "16px" + "neutral-background-color-hover": { + "prop": "--spectrum-neutral-background-color-hover", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" }, - "mobile": { - "value": "20px" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "progress-circle-thickness-large": { - "prop": "--spectrum-progress-circle-thickness-large", - "desktop": { - "value": "4px" + "neutral-background-color-key-focus": { + "prop": "--spectrum-neutral-background-color-key-focus", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" }, - "mobile": { - "value": "5px" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "progress-circle-thickness-medium": { - "prop": "--spectrum-progress-circle-thickness-medium", - "desktop": { - "value": "3px" + "neutral-background-color-selected-default": { + "prop": "--spectrum-neutral-background-color-selected-default", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" }, - "mobile": { - "value": "4px" + "dark": { + "value": "rgb(219, 219, 219)" } }, - "progress-circle-thickness-small": { - "prop": "--spectrum-progress-circle-thickness-small", - "desktop": { - "value": "2px" + "neutral-background-color-selected-down": { + "prop": "--spectrum-neutral-background-color-selected-down", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" }, - "mobile": { - "value": "3px" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "purple-100": { - "prop": "--spectrum-purple-100", + "neutral-background-color-selected-hover": { + "prop": "--spectrum-neutral-background-color-selected-hover", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(251, 247, 254)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(41, 0, 79)" + "value": "rgb(242, 242, 242)" } }, - "purple-1000": { - "prop": "--spectrum-purple-1000", + "neutral-background-color-selected-key-focus": { + "prop": "--spectrum-neutral-background-color-selected-key-focus", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(134, 40, 217)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(186, 127, 237)" + "value": "rgb(242, 242, 242)" } }, - "purple-1100": { - "prop": "--spectrum-purple-1100", + "neutral-content-color-default": { + "prop": "--spectrum-neutral-content-color-default", + "ref": "var(--spectrum-gray-800)", "light": { - "value": "rgb(115, 13, 204)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(197, 149, 240)" + "value": "rgb(219, 219, 219)" } }, - "purple-1200": { - "prop": "--spectrum-purple-1200", + "neutral-content-color-down": { + "prop": "--spectrum-neutral-content-color-down", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(93, 0, 177)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(212, 176, 244)" + "value": "rgb(242, 242, 242)" } }, - "purple-1300": { - "prop": "--spectrum-purple-1300", + "neutral-content-color-focus": { + "prop": "--spectrum-neutral-content-color-focus", + "ref": "var(--spectrum-neutral-content-color-down)", "light": { - "value": "rgb(75, 0, 144)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(225, 201, 247)" + "value": "rgb(242, 242, 242)" } }, - "purple-1400": { - "prop": "--spectrum-purple-1400", + "neutral-content-color-focus-hover": { + "prop": "--spectrum-neutral-content-color-focus-hover", + "ref": "var(--spectrum-neutral-content-color-down)", "light": { - "value": "rgb(59, 0, 111)" + "value": "rgb(19, 19, 19)" }, "dark": { - "value": "rgb(238, 224, 250)" + "value": "rgb(242, 242, 242)" } }, - "purple-1500": { - "prop": "--spectrum-purple-1500", - "dark": { - "value": "rgb(248, 243, 253)" - }, + "neutral-content-color-hover": { + "prop": "--spectrum-neutral-content-color-hover", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(44, 0, 84)" + "value": "rgb(19, 19, 19)" + }, + "dark": { + "value": "rgb(242, 242, 242)" } }, - "purple-1600": { - "prop": "--spectrum-purple-1600", - "dark": { - "value": "rgb(255, 255, 255)" - }, + "neutral-content-color-key-focus": { + "prop": "--spectrum-neutral-content-color-key-focus", + "ref": "var(--spectrum-gray-900)", "light": { - "value": "rgb(23, 0, 45)" + "value": "rgb(19, 19, 19)" + }, + "dark": { + "value": "rgb(242, 242, 242)" } }, - "purple-200": { - "prop": "--spectrum-purple-200", + "neutral-subdued-background-color-default": { + "prop": "--spectrum-neutral-subdued-background-color-default", + "ref": "var(--spectrum-gray-500)", "light": { - "value": "rgb(244, 235, 252)" + "value": "rgb(80, 80, 80)" }, "dark": { - "value": "rgb(50, 0, 96)" + "value": "rgb(109, 109, 109)" } }, - "purple-300": { - "prop": "--spectrum-purple-300", + "neutral-subdued-background-color-down": { + "prop": "--spectrum-neutral-subdued-background-color-down", + "ref": "var(--spectrum-gray-400)", "light": { - "value": "rgb(235, 218, 249)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(64, 0, 122)" + "value": "rgb(68, 68, 68)" } }, - "purple-400": { - "prop": "--spectrum-purple-400", + "neutral-subdued-background-color-hover": { + "prop": "--spectrum-neutral-subdued-background-color-hover", + "ref": "var(--spectrum-gray-400)", "light": { - "value": "rgb(221, 193, 246)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(83, 0, 159)" + "value": "rgb(68, 68, 68)" } }, - "purple-500": { - "prop": "--spectrum-purple-500", + "neutral-subdued-background-color-key-focus": { + "prop": "--spectrum-neutral-subdued-background-color-key-focus", + "ref": "var(--spectrum-gray-400)", "light": { - "value": "rgb(208, 167, 243)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(107, 6, 195)" + "value": "rgb(68, 68, 68)" } }, - "purple-600": { - "prop": "--spectrum-purple-600", + "neutral-subdued-content-color-default": { + "prop": "--spectrum-neutral-subdued-content-color-default", + "ref": "var(--spectrum-gray-700)", "light": { - "value": "rgb(191, 138, 238)" + "value": "rgb(80, 80, 80)" }, "dark": { - "value": "rgb(130, 34, 215)" + "value": "rgb(175, 175, 175)" } }, - "purple-700": { - "prop": "--spectrum-purple-700", + "neutral-subdued-content-color-down": { + "prop": "--spectrum-neutral-subdued-content-color-down", + "ref": "var(--spectrum-gray-800)", "light": { - "value": "rgb(178, 114, 235)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(148, 62, 224)" + "value": "rgb(219, 219, 219)" } }, - "purple-800": { - "prop": "--spectrum-purple-800", + "neutral-subdued-content-color-hover": { + "prop": "--spectrum-neutral-subdued-content-color-hover", + "ref": "var(--spectrum-gray-800)", "light": { - "value": "rgb(166, 92, 231)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(157, 78, 228)" + "value": "rgb(219, 219, 219)" } }, - "purple-900": { - "prop": "--spectrum-purple-900", + "neutral-subdued-content-color-key-focus": { + "prop": "--spectrum-neutral-subdued-content-color-key-focus", + "ref": "var(--spectrum-gray-800)", "light": { - "value": "rgb(154, 71, 226)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(173, 105, 233)" + "value": "rgb(219, 219, 219)" } }, - "purple-background-color-default": { - "prop": "--spectrum-purple-background-color-default", - "ref": "var(--spectrum-purple-800)", + "neutral-subdued-content-color-selected": { + "prop": "--spectrum-neutral-subdued-content-color-selected", + "ref": "var(--spectrum-neutral-subdued-content-color-down)", "light": { - "value": "rgb(154, 71, 226)" + "value": "rgb(41, 41, 41)" }, "dark": { - "value": "rgb(157, 78, 228)" + "value": "rgb(219, 219, 219)" } }, - "purple-subtle-background-color-default": { - "prop": "--spectrum-purple-subtle-background-color-default", - "ref": "var(--spectrum-purple-300)", + "neutral-subtle-background-color-default": { + "prop": "--spectrum-neutral-subtle-background-color-default", + "ref": "var(--spectrum-gray-300)", "light": { - "value": "rgb(244, 235, 252)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgb(64, 0, 122)" + "value": "rgb(57, 57, 57)" } }, - "purple-visual-color": { - "prop": "--spectrum-purple-visual-color", - "ref": "var(--spectrum-purple-900)", + "neutral-visual-color": { + "prop": "--spectrum-neutral-visual-color", + "ref": "var(--spectrum-gray-600)", "light": { - "value": "rgb(166, 92, 231)" + "value": "rgb(143, 143, 143)" }, "dark": { - "value": "rgb(173, 105, 233)" + "value": "rgb(138, 138, 138)" } }, - "radio-button-control-size-extra-large": { - "prop": "--spectrum-radio-button-control-size-extra-large", - "desktop": { - "value": "18px" + "notice-background-color-default": { + "prop": "--spectrum-notice-background-color-default", + "ref": "var(--spectrum-notice-color-600)", + "dark": { + "value": "rgb(224, 100, 0)" }, - "mobile": { - "value": "22px" + "light": { + "value": "rgb(252, 125, 0)" } }, - "radio-button-control-size-large": { - "prop": "--spectrum-radio-button-control-size-large", - "desktop": { - "value": "16px" + "notice-color-100": { + "prop": "--spectrum-notice-color-100", + "ref": "var(--spectrum-orange-100)", + "light": { + "value": "rgb(255, 246, 231)" }, - "mobile": { - "value": "20px" + "dark": { + "value": "rgb(49, 16, 0)" } }, - "radio-button-control-size-medium": { - "prop": "--spectrum-radio-button-control-size-medium", - "desktop": { - "value": "14px" + "notice-color-1000": { + "prop": "--spectrum-notice-color-1000", + "ref": "var(--spectrum-orange-1000)", + "light": { + "value": "rgb(167, 62, 0)" }, - "mobile": { - "value": "18px" + "dark": { + "value": "rgb(243, 117, 0)" } }, - "radio-button-control-size-small": { - "prop": "--spectrum-radio-button-control-size-small", - "desktop": { - "value": "12px" + "notice-color-1100": { + "prop": "--spectrum-notice-color-1100", + "ref": "var(--spectrum-orange-1100)", + "light": { + "value": "rgb(144, 51, 0)" }, - "mobile": { - "value": "16px" + "dark": { + "value": "rgb(255, 137, 0)" } }, - "radio-button-selection-indicator": { - "prop": "--spectrum-radio-button-selection-indicator", - "value": "4px" - }, - "radio-button-top-to-control-extra-large": { - "prop": "--spectrum-radio-button-top-to-control-extra-large", - "desktop": { - "value": "15px" + "notice-color-1200": { + "prop": "--spectrum-notice-color-1200", + "ref": "var(--spectrum-orange-1200)", + "light": { + "value": "rgb(118, 41, 0)" }, - "mobile": { - "value": "19px" + "dark": { + "value": "rgb(255, 173, 45)" } }, - "radio-button-top-to-control-large": { - "prop": "--spectrum-radio-button-top-to-control-large", - "desktop": { - "value": "12px" + "notice-color-1300": { + "prop": "--spectrum-notice-color-1300", + "ref": "var(--spectrum-orange-1300)", + "light": { + "value": "rgb(95, 32, 0)" }, - "mobile": { - "value": "15px" + "dark": { + "value": "rgb(255, 201, 116)" } }, - "radio-button-top-to-control-medium": { - "prop": "--spectrum-radio-button-top-to-control-medium", - "desktop": { - "value": "9px" + "notice-color-1400": { + "prop": "--spectrum-notice-color-1400", + "ref": "var(--spectrum-orange-1400)", + "light": { + "value": "rgb(73, 24, 0)" }, - "mobile": { - "value": "11px" + "dark": { + "value": "rgb(255, 225, 178)" } }, - "radio-button-top-to-control-small": { - "prop": "--spectrum-radio-button-top-to-control-small", - "desktop": { - "value": "6px" + "notice-color-1500": { + "prop": "--spectrum-notice-color-1500", + "ref": "var(--spectrum-orange-1500)", + "dark": { + "value": "rgb(255, 243, 225)" }, - "mobile": { - "value": "7px" + "light": { + "value": "rgb(52, 18, 0)" } }, - "rating-indicator-to-icon": { - "prop": "--spectrum-rating-indicator-to-icon", - "desktop": { - "value": "4px" + "notice-color-1600": { + "prop": "--spectrum-notice-color-1600", + "ref": "var(--spectrum-orange-1600)", + "dark": { + "value": "rgb(255, 255, 255)" }, - "mobile": { - "value": "5px" + "light": { + "value": "rgb(25, 8, 0)" } }, - "rating-indicator-width": { - "prop": "--spectrum-rating-indicator-width", - "desktop": { - "value": "18px" - }, - "mobile": { - "value": "22px" - } - }, - "red-100": { - "prop": "--spectrum-red-100", + "notice-color-200": { + "prop": "--spectrum-notice-color-200", + "ref": "var(--spectrum-orange-200)", "light": { - "value": "rgb(255, 246, 245)" + "value": "rgb(255, 236, 207)" }, "dark": { - "value": "rgb(54, 10, 3)" + "value": "rgb(61, 21, 0)" } }, - "red-1000": { - "prop": "--spectrum-red-1000", + "notice-color-300": { + "prop": "--spectrum-notice-color-300", + "ref": "var(--spectrum-orange-300)", "light": { - "value": "rgb(183, 40, 24)" + "value": "rgb(255, 218, 158)" }, "dark": { - "value": "rgb(255, 103, 86)" + "value": "rgb(80, 27, 0)" } }, - "red-1100": { - "prop": "--spectrum-red-1100", + "notice-color-400": { + "prop": "--spectrum-notice-color-400", + "ref": "var(--spectrum-orange-400)", "light": { - "value": "rgb(156, 33, 19)" + "value": "rgb(255, 193, 94)" }, "dark": { - "value": "rgb(255, 134, 120)" + "value": "rgb(106, 36, 0)" } }, - "red-1200": { - "prop": "--spectrum-red-1200", + "notice-color-500": { + "prop": "--spectrum-notice-color-500", + "ref": "var(--spectrum-orange-500)", "light": { - "value": "rgb(129, 27, 14)" + "value": "rgb(255, 162, 19)" }, "dark": { - "value": "rgb(255, 167, 157)" + "value": "rgb(135, 47, 0)" } }, - "red-1300": { - "prop": "--spectrum-red-1300", + "notice-color-600": { + "prop": "--spectrum-notice-color-600", + "ref": "var(--spectrum-orange-600)", "light": { - "value": "rgb(104, 21, 10)" + "value": "rgb(252, 125, 0)" }, "dark": { - "value": "rgb(255, 196, 189)" + "value": "rgb(162, 59, 0)" } }, - "red-1400": { - "prop": "--spectrum-red-1400", + "notice-color-700": { + "prop": "--spectrum-notice-color-700", + "ref": "var(--spectrum-orange-700)", "light": { - "value": "rgb(80, 16, 6)" + "value": "rgb(232, 106, 0)" }, "dark": { - "value": "rgb(255, 222, 219)" + "value": "rgb(185, 73, 0)" } }, - "red-1500": { - "prop": "--spectrum-red-1500", - "dark": { - "value": "rgb(255, 242, 240)" - }, + "notice-color-800": { + "prop": "--spectrum-notice-color-800", + "ref": "var(--spectrum-orange-800)", "light": { - "value": "rgb(59, 11, 4)" - } - }, - "red-1600": { - "prop": "--spectrum-red-1600", - "dark": { - "value": "rgb(255, 255, 255)" + "value": "rgb(212, 91, 0)" }, - "light": { - "value": "rgb(29, 5, 2)" + "dark": { + "value": "rgb(199, 82, 0)" } }, - "red-200": { - "prop": "--spectrum-red-200", + "notice-color-900": { + "prop": "--spectrum-notice-color-900", + "ref": "var(--spectrum-orange-900)", "light": { - "value": "rgb(255, 235, 232)" + "value": "rgb(194, 78, 0)" }, "dark": { - "value": "rgb(68, 13, 5)" + "value": "rgb(224, 100, 0)" } }, - "red-300": { - "prop": "--spectrum-red-300", + "notice-subtle-background-color-default": { + "prop": "--spectrum-notice-subtle-background-color-default", + "ref": "var(--spectrum-notice-color-300)", "light": { - "value": "rgb(255, 214, 209)" + "value": "rgb(255, 236, 207)" }, "dark": { - "value": "rgb(87, 17, 7)" + "value": "rgb(80, 27, 0)" } }, - "red-400": { - "prop": "--spectrum-red-400", + "notice-visual-color": { + "prop": "--spectrum-notice-visual-color", + "ref": "var(--spectrum-notice-color-900)", "light": { - "value": "rgb(255, 188, 180)" + "value": "rgb(212, 91, 0)" }, "dark": { - "value": "rgb(115, 24, 11)" + "value": "rgb(224, 100, 0)" } }, - "red-500": { - "prop": "--spectrum-red-500", - "light": { - "value": "rgb(255, 157, 145)" + "number-field-minimum-width-multiplier": { + "prop": "--spectrum-number-field-minimum-width-multiplier", + "value": 1.25 + }, + "number-field-visual-to-in-field-stepper-extra-large": { + "prop": "--spectrum-number-field-visual-to-in-field-stepper-extra-large", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(147, 31, 17)" + "mobile": { + "value": "10px" } }, - "red-600": { - "prop": "--spectrum-red-600", - "light": { - "value": "rgb(255, 118, 101)" + "number-field-visual-to-in-field-stepper-large": { + "prop": "--spectrum-number-field-visual-to-in-field-stepper-large", + "desktop": { + "value": "7px" }, - "dark": { - "value": "rgb(177, 38, 23)" + "mobile": { + "value": "9px" } }, - "red-700": { - "prop": "--spectrum-red-700", - "light": { - "value": "rgb(255, 81, 61)" + "number-field-visual-to-in-field-stepper-medium": { + "prop": "--spectrum-number-field-visual-to-in-field-stepper-medium", + "desktop": { + "value": "6px" }, - "dark": { - "value": "rgb(205, 46, 29)" + "mobile": { + "value": "8px" } }, - "red-800": { - "prop": "--spectrum-red-800", - "light": { - "value": "rgb(240, 56, 35)" + "number-field-visual-to-in-field-stepper-small": { + "prop": "--spectrum-number-field-visual-to-in-field-stepper-small", + "desktop": { + "value": "5px" }, - "dark": { - "value": "rgb(223, 52, 34)" + "mobile": { + "value": "7px" } }, - "red-900": { - "prop": "--spectrum-red-900", - "light": { - "value": "rgb(215, 50, 32)" + "number-field-with-stepper-minimum-width-extra-large": { + "prop": "--spectrum-number-field-with-stepper-minimum-width-extra-large", + "desktop": { + "value": "168px" }, - "dark": { - "value": "rgb(252, 67, 46)" + "mobile": { + "value": "198px" } }, - "red-background-color-default": { - "prop": "--spectrum-red-background-color-default", - "ref": "var(--spectrum-red-800)", - "light": { - "value": "rgb(215, 50, 32)" + "number-field-with-stepper-minimum-width-large": { + "prop": "--spectrum-number-field-with-stepper-minimum-width-large", + "desktop": { + "value": "144px" }, - "dark": { - "value": "rgb(223, 52, 34)" + "mobile": { + "value": "174px" } }, - "red-subtle-background-color-default": { - "prop": "--spectrum-red-subtle-background-color-default", - "ref": "var(--spectrum-red-300)", - "light": { - "value": "rgb(255, 235, 232)" + "number-field-with-stepper-minimum-width-medium": { + "prop": "--spectrum-number-field-with-stepper-minimum-width-medium", + "desktop": { + "value": "120px" }, - "dark": { - "value": "rgb(87, 17, 7)" + "mobile": { + "value": "150px" } }, - "red-visual-color": { - "prop": "--spectrum-red-visual-color", - "ref": "var(--spectrum-red-700)", + "number-field-with-stepper-minimum-width-small": { + "prop": "--spectrum-number-field-with-stepper-minimum-width-small", + "desktop": { + "value": "104px" + }, + "mobile": { + "value": "126px" + } + }, + "opacity-checkerboard-square-dark": { + "prop": "--spectrum-opacity-checkerboard-square-dark", + "ref": "var(--spectrum-gray-800)", "light": { - "value": "rgb(240, 56, 35)" + "value": "rgb(225, 225, 225)" }, "dark": { - "value": "rgb(205, 46, 29)" + "value": "rgb(219, 219, 219)" } }, - "regular-font-weight": { - "prop": "--spectrum-regular-font-weight", - "value": "400" - }, - "sans-serif-font-family": { - "prop": "--spectrum-sans-serif-font-family", - "value": "Adobe Clean" + "opacity-checkerboard-square-light": { + "prop": "--spectrum-opacity-checkerboard-square-light", + "ref": "var(--spectrum-white)", + "value": "rgb(255, 255, 255)" }, - "seafoam-100": { - "prop": "--spectrum-seafoam-100", - "light": { - "value": "rgb(235, 251, 246)" + "opacity-checkerboard-square-size": { + "prop": "--spectrum-opacity-checkerboard-square-size", + "ref": "var(--spectrum-opacity-checkerboard-square-size-medium)", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(0, 30, 27)" + "mobile": { + "value": "10px" } }, - "seafoam-1000": { - "prop": "--spectrum-seafoam-1000", - "light": { - "value": "rgb(5, 108, 92)" + "opacity-checkerboard-square-size-medium": { + "prop": "--spectrum-opacity-checkerboard-square-size-medium", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(12, 173, 142)" + "mobile": { + "value": "10px" } }, - "seafoam-1100": { - "prop": "--spectrum-seafoam-1100", - "light": { - "value": "rgb(3, 92, 80)" + "opacity-checkerboard-square-size-small": { + "prop": "--spectrum-opacity-checkerboard-square-size-small", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgb(14, 190, 156)" + "mobile": { + "value": "5px" } }, - "seafoam-1200": { - "prop": "--spectrum-seafoam-1200", + "opacity-disabled": { + "prop": "--spectrum-opacity-disabled", + "value": "0.3" + }, + "orange-100": { + "prop": "--spectrum-orange-100", "light": { - "value": "rgb(1, 75, 67)" + "value": "rgb(255, 246, 231)" }, "dark": { - "value": "rgb(29, 214, 176)" + "value": "rgb(49, 16, 0)" } }, - "seafoam-1300": { - "prop": "--spectrum-seafoam-1300", + "orange-1000": { + "prop": "--spectrum-orange-1000", "light": { - "value": "rgb(0, 60, 54)" + "value": "rgb(167, 62, 0)" }, "dark": { - "value": "rgb(122, 229, 203)" + "value": "rgb(243, 117, 0)" } }, - "seafoam-1400": { - "prop": "--spectrum-seafoam-1400", + "orange-1100": { + "prop": "--spectrum-orange-1100", "light": { - "value": "rgb(0, 46, 40)" + "value": "rgb(144, 51, 0)" }, "dark": { - "value": "rgb(186, 241, 222)" + "value": "rgb(255, 137, 0)" } }, - "seafoam-1500": { - "prop": "--spectrum-seafoam-1500", + "orange-1200": { + "prop": "--spectrum-orange-1200", + "light": { + "value": "rgb(118, 41, 0)" + }, "dark": { - "value": "rgb(229, 249, 243)" + "value": "rgb(255, 173, 45)" + } + }, + "orange-1300": { + "prop": "--spectrum-orange-1300", + "light": { + "value": "rgb(95, 32, 0)" }, + "dark": { + "value": "rgb(255, 201, 116)" + } + }, + "orange-1400": { + "prop": "--spectrum-orange-1400", "light": { - "value": "rgb(0, 33, 29)" + "value": "rgb(73, 24, 0)" + }, + "dark": { + "value": "rgb(255, 225, 178)" } }, - "seafoam-1600": { - "prop": "--spectrum-seafoam-1600", + "orange-1500": { + "prop": "--spectrum-orange-1500", + "dark": { + "value": "rgb(255, 243, 225)" + }, + "light": { + "value": "rgb(52, 18, 0)" + } + }, + "orange-1600": { + "prop": "--spectrum-orange-1600", "dark": { "value": "rgb(255, 255, 255)" }, "light": { - "value": "rgb(0, 15, 14)" + "value": "rgb(25, 8, 0)" } }, - "seafoam-200": { - "prop": "--spectrum-seafoam-200", + "orange-200": { + "prop": "--spectrum-orange-200", "light": { - "value": "rgb(211, 246, 234)" + "value": "rgb(255, 236, 207)" }, "dark": { - "value": "rgb(0, 39, 35)" + "value": "rgb(61, 21, 0)" + } + }, + "orange-300": { + "prop": "--spectrum-orange-300", + "light": { + "value": "rgb(255, 218, 158)" + }, + "dark": { + "value": "rgb(80, 27, 0)" + } + }, + "orange-400": { + "prop": "--spectrum-orange-400", + "light": { + "value": "rgb(255, 193, 94)" + }, + "dark": { + "value": "rgb(106, 36, 0)" + } + }, + "orange-500": { + "prop": "--spectrum-orange-500", + "light": { + "value": "rgb(255, 162, 19)" + }, + "dark": { + "value": "rgb(135, 47, 0)" + } + }, + "orange-600": { + "prop": "--spectrum-orange-600", + "light": { + "value": "rgb(252, 125, 0)" + }, + "dark": { + "value": "rgb(162, 59, 0)" + } + }, + "orange-700": { + "prop": "--spectrum-orange-700", + "light": { + "value": "rgb(232, 106, 0)" + }, + "dark": { + "value": "rgb(185, 73, 0)" + } + }, + "orange-800": { + "prop": "--spectrum-orange-800", + "light": { + "value": "rgb(212, 91, 0)" + }, + "dark": { + "value": "rgb(199, 82, 0)" + } + }, + "orange-900": { + "prop": "--spectrum-orange-900", + "light": { + "value": "rgb(194, 78, 0)" + }, + "dark": { + "value": "rgb(224, 100, 0)" + } + }, + "orange-background-color-default": { + "prop": "--spectrum-orange-background-color-default", + "ref": "var(--spectrum-orange-900)", + "light": { + "value": "rgb(252, 125, 0)" + }, + "dark": { + "value": "rgb(224, 100, 0)" + } + }, + "orange-subtle-background-color-default": { + "prop": "--spectrum-orange-subtle-background-color-default", + "ref": "var(--spectrum-orange-300)", + "light": { + "value": "rgb(255, 236, 207)" + }, + "dark": { + "value": "rgb(80, 27, 0)" + } + }, + "orange-visual-color": { + "prop": "--spectrum-orange-visual-color", + "ref": "var(--spectrum-orange-900)", + "light": { + "value": "rgb(232, 106, 0)" + }, + "dark": { + "value": "rgb(224, 100, 0)" + } + }, + "overlay-color": { + "prop": "--spectrum-overlay-color", + "ref": "var(--spectrum-black)", + "value": "rgb(0, 0, 0)" + }, + "overlay-opacity": { + "prop": "--spectrum-overlay-opacity", + "light": { + "value": "0.4" + }, + "dark": { + "value": "0.6" + } + }, + "picker-border-width": { + "prop": "--spectrum-picker-border-width", + "ref": "var(--spectrum-border-width-100)", + "value": "1px" + }, + "picker-end-edge-to-disclosure-icon-quiet": { + "prop": "--spectrum-picker-end-edge-to-disclosure-icon-quiet", + "value": "0px" + }, + "picker-end-edge-to-disclousure-icon-quiet": { + "prop": "--spectrum-picker-end-edge-to-disclousure-icon-quiet", + "ref": "var(--spectrum-picker-end-edge-to-disclosure-icon-quiet)", + "value": "0px" + }, + "picker-minimum-width-multiplier": { + "prop": "--spectrum-picker-minimum-width-multiplier", + "value": 2 + }, + "picker-visual-to-disclosure-icon-extra-large": { + "prop": "--spectrum-picker-visual-to-disclosure-icon-extra-large", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "13px" + } + }, + "picker-visual-to-disclosure-icon-large": { + "prop": "--spectrum-picker-visual-to-disclosure-icon-large", + "desktop": { + "value": "9px" + }, + "mobile": { + "value": "11px" + } + }, + "picker-visual-to-disclosure-icon-medium": { + "prop": "--spectrum-picker-visual-to-disclosure-icon-medium", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "picker-visual-to-disclosure-icon-small": { + "prop": "--spectrum-picker-visual-to-disclosure-icon-small", + "desktop": { + "value": "7px" + }, + "mobile": { + "value": "9px" + } + }, + "pink-100": { + "prop": "--spectrum-pink-100", + "dark": { + "value": "rgb(58, 0, 37)" + }, + "light": { + "value": "rgb(255, 246, 252)" + } + }, + "pink-1000": { + "prop": "--spectrum-pink-1000", + "dark": { + "value": "rgb(251, 90, 196)" + }, + "light": { + "value": "rgb(176, 31, 123)" + } + }, + "pink-1100": { + "prop": "--spectrum-pink-1100", + "dark": { + "value": "rgb(255, 122, 210)" + }, + "light": { + "value": "rgb(152, 22, 104)" + } + }, + "pink-1200": { + "prop": "--spectrum-pink-1200", + "dark": { + "value": "rgb(255, 159, 223)" + }, + "light": { + "value": "rgb(128, 12, 85)" + } + }, + "pink-1300": { + "prop": "--spectrum-pink-1300", + "dark": { + "value": "rgb(255, 191, 234)" + }, + "light": { + "value": "rgb(105, 3, 68)" } }, - "seafoam-300": { - "prop": "--spectrum-seafoam-300", - "light": { - "value": "rgb(169, 237, 216)" - }, - "dark": { - "value": "rgb(0, 50, 44)" - } + "pink-1400": { + "prop": "--spectrum-pink-1400", + "dark": { + "value": "rgb(255, 219, 243)" + }, + "light": { + "value": "rgb(83, 0, 53)" + } + }, + "pink-1500": { + "prop": "--spectrum-pink-1500", + "dark": { + "value": "rgb(255, 241, 250)" + }, + "light": { + "value": "rgb(62, 0, 39)" + } + }, + "pink-1600": { + "prop": "--spectrum-pink-1600", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(33, 0, 21)" + } + }, + "pink-200": { + "prop": "--spectrum-pink-200", + "dark": { + "value": "rgb(71, 0, 44)" + }, + "light": { + "value": "rgb(255, 232, 247)" + } + }, + "pink-300": { + "prop": "--spectrum-pink-300", + "dark": { + "value": "rgb(90, 0, 57)" + }, + "light": { + "value": "rgb(255, 211, 240)" + } + }, + "pink-400": { + "prop": "--spectrum-pink-400", + "dark": { + "value": "rgb(115, 7, 75)" + }, + "light": { + "value": "rgb(255, 181, 230)" + } + }, + "pink-500": { + "prop": "--spectrum-pink-500", + "dark": { + "value": "rgb(143, 18, 97)" + }, + "light": { + "value": "rgb(255, 148, 219)" + } + }, + "pink-600": { + "prop": "--spectrum-pink-600", + "dark": { + "value": "rgb(171, 29, 119)" + }, + "light": { + "value": "rgb(255, 103, 204)" + } + }, + "pink-700": { + "prop": "--spectrum-pink-700", + "dark": { + "value": "rgb(196, 39, 138)" + }, + "light": { + "value": "rgb(242, 76, 184)" + } + }, + "pink-800": { + "prop": "--spectrum-pink-800", + "dark": { + "value": "rgb(213, 45, 151)" + }, + "light": { + "value": "rgb(228, 52, 163)" + } + }, + "pink-900": { + "prop": "--spectrum-pink-900", + "dark": { + "value": "rgb(236, 67, 175)" + }, + "light": { + "value": "rgb(206, 42, 146)" + } + }, + "pink-background-color-default": { + "prop": "--spectrum-pink-background-color-default", + "ref": "var(--spectrum-pink-800)", + "light": { + "value": "rgb(206, 42, 146)" + }, + "dark": { + "value": "rgb(213, 45, 151)" + } + }, + "pink-subtle-background-color-default": { + "prop": "--spectrum-pink-subtle-background-color-default", + "ref": "var(--spectrum-pink-300)", + "light": { + "value": "rgb(255, 232, 247)" + }, + "dark": { + "value": "rgb(90, 0, 57)" + } + }, + "pink-visual-color": { + "prop": "--spectrum-pink-visual-color", + "ref": "var(--spectrum-pink-900)", + "light": { + "value": "rgb(228, 52, 163)" + }, + "dark": { + "value": "rgb(236, 67, 175)" + } + }, + "popover-border-color": { + "prop": "--spectrum-popover-border-color", + "ref": "var(--spectrum-gray-200)", + "light": { + "value": "rgb(225, 225, 225)" + }, + "dark": { + "value": "rgb(50, 50, 50)" + } + }, + "popover-border-opacity": { + "prop": "--spectrum-popover-border-opacity", + "light": { + "value": "0" + }, + "dark": { + "value": "1.0" + } + }, + "popover-edge-to-content-area": { + "prop": "--spectrum-popover-edge-to-content-area", + "ref": "var(--spectrum-spacing-100)", + "value": "8px" + }, + "popover-tip-height": { + "prop": "--spectrum-popover-tip-height", + "value": "8px" + }, + "popover-tip-width": { + "prop": "--spectrum-popover-tip-width", + "value": "16px" + }, + "popover-top-to-content-area": { + "prop": "--spectrum-popover-top-to-content-area", + "ref": "var(--spectrum-popover-edge-to-content-area)", + "value": "8px" + }, + "positive-background-color-default": { + "prop": "--spectrum-positive-background-color-default", + "ref": "var(--spectrum-positive-color-800)", + "light": { + "value": "rgb(5, 131, 78)" + }, + "dark": { + "value": "rgb(6, 136, 80)" + } + }, + "positive-background-color-down": { + "prop": "--spectrum-positive-background-color-down", + "ref": "var(--spectrum-positive-color-700)", + "light": { + "value": "rgb(3, 110, 69)" + }, + "dark": { + "value": "rgb(4, 124, 75)" + } + }, + "positive-background-color-hover": { + "prop": "--spectrum-positive-background-color-hover", + "ref": "var(--spectrum-positive-color-700)", + "light": { + "value": "rgb(3, 110, 69)" + }, + "dark": { + "value": "rgb(4, 124, 75)" + } + }, + "positive-background-color-key-focus": { + "prop": "--spectrum-positive-background-color-key-focus", + "ref": "var(--spectrum-positive-color-700)", + "light": { + "value": "rgb(3, 110, 69)" + }, + "dark": { + "value": "rgb(4, 124, 75)" + } + }, + "positive-color-100": { + "prop": "--spectrum-positive-color-100", + "ref": "var(--spectrum-green-100)", + "light": { + "value": "rgb(237, 252, 241)" + }, + "dark": { + "value": "rgb(0, 30, 23)" + } + }, + "positive-color-1000": { + "prop": "--spectrum-positive-color-1000", + "ref": "var(--spectrum-green-1000)", + "light": { + "value": "rgb(3, 110, 69)" + }, + "dark": { + "value": "rgb(14, 175, 98)" + } + }, + "positive-color-1100": { + "prop": "--spectrum-positive-color-1100", + "ref": "var(--spectrum-green-1100)", + "light": { + "value": "rgb(2, 93, 60)" + }, + "dark": { + "value": "rgb(24, 193, 110)" + } + }, + "positive-color-1200": { + "prop": "--spectrum-positive-color-1200", + "ref": "var(--spectrum-green-1200)", + "light": { + "value": "rgb(1, 76, 52)" + }, + "dark": { + "value": "rgb(57, 215, 134)" + } + }, + "positive-color-1300": { + "prop": "--spectrum-positive-color-1300", + "ref": "var(--spectrum-green-1300)", + "light": { + "value": "rgb(0, 61, 44)" + }, + "dark": { + "value": "rgb(126, 231, 172)" + } + }, + "positive-color-1400": { + "prop": "--spectrum-positive-color-1400", + "ref": "var(--spectrum-green-1400)", + "light": { + "value": "rgb(0, 46, 34)" + }, + "dark": { + "value": "rgb(189, 241, 208)" + } + }, + "positive-color-1500": { + "prop": "--spectrum-positive-color-1500", + "ref": "var(--spectrum-green-1500)", + "dark": { + "value": "rgb(229, 250, 236)" + }, + "light": { + "value": "rgb(0, 33, 25)" + } + }, + "positive-color-1600": { + "prop": "--spectrum-positive-color-1600", + "ref": "var(--spectrum-green-1600)", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 15, 12)" + } + }, + "positive-color-200": { + "prop": "--spectrum-positive-color-200", + "ref": "var(--spectrum-green-200)", + "light": { + "value": "rgb(215, 247, 225)" + }, + "dark": { + "value": "rgb(0, 38, 29)" + } + }, + "positive-color-300": { + "prop": "--spectrum-positive-color-300", + "ref": "var(--spectrum-green-300)", + "light": { + "value": "rgb(173, 238, 197)" + }, + "dark": { + "value": "rgb(0, 51, 38)" + } + }, + "positive-color-400": { + "prop": "--spectrum-positive-color-400", + "ref": "var(--spectrum-green-400)", + "light": { + "value": "rgb(107, 227, 162)" + }, + "dark": { + "value": "rgb(0, 68, 48)" + } + }, + "positive-color-500": { + "prop": "--spectrum-positive-color-500", + "ref": "var(--spectrum-green-500)", + "light": { + "value": "rgb(43, 209, 125)" + }, + "dark": { + "value": "rgb(2, 87, 58)" + } + }, + "positive-color-600": { + "prop": "--spectrum-positive-color-600", + "ref": "var(--spectrum-green-600)", + "light": { + "value": "rgb(18, 184, 103)" + }, + "dark": { + "value": "rgb(3, 106, 67)" + } + }, + "positive-color-700": { + "prop": "--spectrum-positive-color-700", + "ref": "var(--spectrum-green-700)", + "light": { + "value": "rgb(11, 164, 93)" + }, + "dark": { + "value": "rgb(4, 124, 75)" + } + }, + "positive-color-800": { + "prop": "--spectrum-positive-color-800", + "ref": "var(--spectrum-green-800)", + "light": { + "value": "rgb(7, 147, 85)" + }, + "dark": { + "value": "rgb(6, 136, 80)" + } + }, + "positive-color-900": { + "prop": "--spectrum-positive-color-900", + "ref": "var(--spectrum-green-900)", + "light": { + "value": "rgb(5, 131, 78)" + }, + "dark": { + "value": "rgb(9, 157, 89)" + } + }, + "positive-subtle-background-color-default": { + "prop": "--spectrum-positive-subtle-background-color-default", + "ref": "var(--spectrum-positive-color-300)", + "light": { + "value": "rgb(215, 247, 225)" + }, + "dark": { + "value": "rgb(0, 51, 38)" + } + }, + "positive-visual-color": { + "prop": "--spectrum-positive-visual-color", + "ref": "var(--spectrum-positive-color-900)", + "light": { + "value": "rgb(7, 147, 85)" + }, + "dark": { + "value": "rgb(9, 157, 89)" + } + }, + "progress-bar-maximum-width": { + "prop": "--spectrum-progress-bar-maximum-width", + "value": "768px" + }, + "progress-bar-minimum-width": { + "prop": "--spectrum-progress-bar-minimum-width", + "value": "48px" + }, + "progress-bar-thickness-extra-large": { + "prop": "--spectrum-progress-bar-thickness-extra-large", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "13px" + } + }, + "progress-bar-thickness-large": { + "prop": "--spectrum-progress-bar-thickness-large", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "progress-bar-thickness-medium": { + "prop": "--spectrum-progress-bar-thickness-medium", + "desktop": { + "value": "6px" + }, + "mobile": { + "value": "8px" + } + }, + "progress-bar-thickness-small": { + "prop": "--spectrum-progress-bar-thickness-small", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "progress-circle-size-large": { + "prop": "--spectrum-progress-circle-size-large", + "desktop": { + "value": "64px" + }, + "mobile": { + "value": "80px" + } + }, + "progress-circle-size-medium": { + "prop": "--spectrum-progress-circle-size-medium", + "desktop": { + "value": "32px" + }, + "mobile": { + "value": "40px" + } + }, + "progress-circle-size-small": { + "prop": "--spectrum-progress-circle-size-small", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "progress-circle-thickness-large": { + "prop": "--spectrum-progress-circle-thickness-large", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "progress-circle-thickness-medium": { + "prop": "--spectrum-progress-circle-thickness-medium", + "desktop": { + "value": "3px" + }, + "mobile": { + "value": "4px" + } + }, + "progress-circle-thickness-small": { + "prop": "--spectrum-progress-circle-thickness-small", + "desktop": { + "value": "2px" + }, + "mobile": { + "value": "3px" + } + }, + "purple-100": { + "prop": "--spectrum-purple-100", + "light": { + "value": "rgb(251, 247, 254)" + }, + "dark": { + "value": "rgb(41, 0, 79)" + } + }, + "purple-1000": { + "prop": "--spectrum-purple-1000", + "light": { + "value": "rgb(134, 40, 217)" + }, + "dark": { + "value": "rgb(186, 127, 237)" + } + }, + "purple-1100": { + "prop": "--spectrum-purple-1100", + "light": { + "value": "rgb(115, 13, 204)" + }, + "dark": { + "value": "rgb(197, 149, 240)" + } + }, + "purple-1200": { + "prop": "--spectrum-purple-1200", + "light": { + "value": "rgb(93, 0, 177)" + }, + "dark": { + "value": "rgb(212, 176, 244)" + } + }, + "purple-1300": { + "prop": "--spectrum-purple-1300", + "light": { + "value": "rgb(75, 0, 144)" + }, + "dark": { + "value": "rgb(225, 201, 247)" + } + }, + "purple-1400": { + "prop": "--spectrum-purple-1400", + "light": { + "value": "rgb(59, 0, 111)" + }, + "dark": { + "value": "rgb(238, 224, 250)" + } + }, + "purple-1500": { + "prop": "--spectrum-purple-1500", + "dark": { + "value": "rgb(248, 243, 253)" + }, + "light": { + "value": "rgb(44, 0, 84)" + } + }, + "purple-1600": { + "prop": "--spectrum-purple-1600", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(23, 0, 45)" + } + }, + "purple-200": { + "prop": "--spectrum-purple-200", + "light": { + "value": "rgb(244, 235, 252)" + }, + "dark": { + "value": "rgb(50, 0, 96)" + } + }, + "purple-300": { + "prop": "--spectrum-purple-300", + "light": { + "value": "rgb(235, 218, 249)" + }, + "dark": { + "value": "rgb(64, 0, 122)" + } + }, + "purple-400": { + "prop": "--spectrum-purple-400", + "light": { + "value": "rgb(221, 193, 246)" + }, + "dark": { + "value": "rgb(83, 0, 159)" + } + }, + "purple-500": { + "prop": "--spectrum-purple-500", + "light": { + "value": "rgb(208, 167, 243)" + }, + "dark": { + "value": "rgb(107, 6, 195)" + } + }, + "purple-600": { + "prop": "--spectrum-purple-600", + "light": { + "value": "rgb(191, 138, 238)" + }, + "dark": { + "value": "rgb(130, 34, 215)" + } + }, + "purple-700": { + "prop": "--spectrum-purple-700", + "light": { + "value": "rgb(178, 114, 235)" + }, + "dark": { + "value": "rgb(148, 62, 224)" + } + }, + "purple-800": { + "prop": "--spectrum-purple-800", + "light": { + "value": "rgb(166, 92, 231)" + }, + "dark": { + "value": "rgb(157, 78, 228)" + } + }, + "purple-900": { + "prop": "--spectrum-purple-900", + "light": { + "value": "rgb(154, 71, 226)" + }, + "dark": { + "value": "rgb(173, 105, 233)" + } + }, + "purple-background-color-default": { + "prop": "--spectrum-purple-background-color-default", + "ref": "var(--spectrum-purple-800)", + "light": { + "value": "rgb(154, 71, 226)" + }, + "dark": { + "value": "rgb(157, 78, 228)" + } + }, + "purple-subtle-background-color-default": { + "prop": "--spectrum-purple-subtle-background-color-default", + "ref": "var(--spectrum-purple-300)", + "light": { + "value": "rgb(244, 235, 252)" + }, + "dark": { + "value": "rgb(64, 0, 122)" + } + }, + "purple-visual-color": { + "prop": "--spectrum-purple-visual-color", + "ref": "var(--spectrum-purple-900)", + "light": { + "value": "rgb(166, 92, 231)" + }, + "dark": { + "value": "rgb(173, 105, 233)" + } + }, + "radio-button-control-size-extra-large": { + "prop": "--spectrum-radio-button-control-size-extra-large", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "radio-button-control-size-large": { + "prop": "--spectrum-radio-button-control-size-large", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "radio-button-control-size-medium": { + "prop": "--spectrum-radio-button-control-size-medium", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "18px" + } + }, + "radio-button-control-size-small": { + "prop": "--spectrum-radio-button-control-size-small", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "16px" + } + }, + "radio-button-selection-indicator": { + "prop": "--spectrum-radio-button-selection-indicator", + "value": "4px" + }, + "radio-button-top-to-control-extra-large": { + "prop": "--spectrum-radio-button-top-to-control-extra-large", + "desktop": { + "value": "15px" + }, + "mobile": { + "value": "19px" + } + }, + "radio-button-top-to-control-large": { + "prop": "--spectrum-radio-button-top-to-control-large", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } + }, + "radio-button-top-to-control-medium": { + "prop": "--spectrum-radio-button-top-to-control-medium", + "desktop": { + "value": "9px" + }, + "mobile": { + "value": "11px" + } + }, + "radio-button-top-to-control-small": { + "prop": "--spectrum-radio-button-top-to-control-small", + "desktop": { + "value": "6px" + }, + "mobile": { + "value": "7px" + } + }, + "rating-bottom-to-content-area-medium": { + "prop": "--spectrum-rating-bottom-to-content-area-medium", + "value": "6px" + }, + "rating-bottom-to-content-area-small": { + "prop": "--spectrum-rating-bottom-to-content-area-small", + "ref": "var(--spectrum-spacing-75)", + "value": "4px" + }, + "rating-edge-to-content-area-medium": { + "prop": "--spectrum-rating-edge-to-content-area-medium", + "value": "6px" + }, + "rating-edge-to-content-area-small": { + "prop": "--spectrum-rating-edge-to-content-area-small", + "ref": "var(--spectrum-spacing-75)", + "value": "4px" + }, + "rating-height-medium": { + "prop": "--spectrum-rating-height-medium", + "ref": "var(--spectrum-component-height-100)", + "desktop": { + "value": "32px" + }, + "mobile": { + "value": "40px" + } + }, + "rating-height-small": { + "prop": "--spectrum-rating-height-small", + "ref": "var(--spectrum-component-height-75)", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "rating-indicator-to-icon": { + "prop": "--spectrum-rating-indicator-to-icon", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "rating-indicator-width": { + "prop": "--spectrum-rating-indicator-width", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "rating-top-to-content-area-medium": { + "prop": "--spectrum-rating-top-to-content-area-medium", + "value": "6px" + }, + "rating-top-to-content-area-small": { + "prop": "--spectrum-rating-top-to-content-area-small", + "ref": "var(--spectrum-spacing-75)", + "value": "4px" + }, + "rating-width-medium": { + "prop": "--spectrum-rating-width-medium", + "value": "128px" + }, + "rating-width-small": { + "prop": "--spectrum-rating-width-small", + "value": "104px" + }, + "red-100": { + "prop": "--spectrum-red-100", + "light": { + "value": "rgb(255, 246, 245)" + }, + "dark": { + "value": "rgb(54, 10, 3)" + } + }, + "red-1000": { + "prop": "--spectrum-red-1000", + "light": { + "value": "rgb(183, 40, 24)" + }, + "dark": { + "value": "rgb(255, 103, 86)" + } + }, + "red-1100": { + "prop": "--spectrum-red-1100", + "light": { + "value": "rgb(156, 33, 19)" + }, + "dark": { + "value": "rgb(255, 134, 120)" + } + }, + "red-1200": { + "prop": "--spectrum-red-1200", + "light": { + "value": "rgb(129, 27, 14)" + }, + "dark": { + "value": "rgb(255, 167, 157)" + } + }, + "red-1300": { + "prop": "--spectrum-red-1300", + "light": { + "value": "rgb(104, 21, 10)" + }, + "dark": { + "value": "rgb(255, 196, 189)" + } + }, + "red-1400": { + "prop": "--spectrum-red-1400", + "light": { + "value": "rgb(80, 16, 6)" + }, + "dark": { + "value": "rgb(255, 222, 219)" + } + }, + "red-1500": { + "prop": "--spectrum-red-1500", + "dark": { + "value": "rgb(255, 242, 240)" + }, + "light": { + "value": "rgb(59, 11, 4)" + } + }, + "red-1600": { + "prop": "--spectrum-red-1600", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(29, 5, 2)" + } + }, + "red-200": { + "prop": "--spectrum-red-200", + "light": { + "value": "rgb(255, 235, 232)" + }, + "dark": { + "value": "rgb(68, 13, 5)" + } + }, + "red-300": { + "prop": "--spectrum-red-300", + "light": { + "value": "rgb(255, 214, 209)" + }, + "dark": { + "value": "rgb(87, 17, 7)" + } + }, + "red-400": { + "prop": "--spectrum-red-400", + "light": { + "value": "rgb(255, 188, 180)" + }, + "dark": { + "value": "rgb(115, 24, 11)" + } + }, + "red-500": { + "prop": "--spectrum-red-500", + "light": { + "value": "rgb(255, 157, 145)" + }, + "dark": { + "value": "rgb(147, 31, 17)" + } + }, + "red-600": { + "prop": "--spectrum-red-600", + "light": { + "value": "rgb(255, 118, 101)" + }, + "dark": { + "value": "rgb(177, 38, 23)" + } + }, + "red-700": { + "prop": "--spectrum-red-700", + "light": { + "value": "rgb(255, 81, 61)" + }, + "dark": { + "value": "rgb(205, 46, 29)" + } + }, + "red-800": { + "prop": "--spectrum-red-800", + "light": { + "value": "rgb(240, 56, 35)" + }, + "dark": { + "value": "rgb(223, 52, 34)" + } + }, + "red-900": { + "prop": "--spectrum-red-900", + "light": { + "value": "rgb(215, 50, 32)" + }, + "dark": { + "value": "rgb(252, 67, 46)" + } + }, + "red-background-color-default": { + "prop": "--spectrum-red-background-color-default", + "ref": "var(--spectrum-red-800)", + "light": { + "value": "rgb(215, 50, 32)" + }, + "dark": { + "value": "rgb(223, 52, 34)" + } + }, + "red-subtle-background-color-default": { + "prop": "--spectrum-red-subtle-background-color-default", + "ref": "var(--spectrum-red-300)", + "light": { + "value": "rgb(255, 235, 232)" + }, + "dark": { + "value": "rgb(87, 17, 7)" + } + }, + "red-visual-color": { + "prop": "--spectrum-red-visual-color", + "ref": "var(--spectrum-red-700)", + "light": { + "value": "rgb(240, 56, 35)" + }, + "dark": { + "value": "rgb(205, 46, 29)" + } + }, + "regular-font-weight": { + "prop": "--spectrum-regular-font-weight", + "value": "400" + }, + "sans-serif-font-family": { + "prop": "--spectrum-sans-serif-font-family", + "value": "Adobe Clean" + }, + "seafoam-100": { + "prop": "--spectrum-seafoam-100", + "light": { + "value": "rgb(235, 251, 246)" + }, + "dark": { + "value": "rgb(0, 30, 27)" + } + }, + "seafoam-1000": { + "prop": "--spectrum-seafoam-1000", + "light": { + "value": "rgb(5, 108, 92)" + }, + "dark": { + "value": "rgb(12, 173, 142)" + } + }, + "seafoam-1100": { + "prop": "--spectrum-seafoam-1100", + "light": { + "value": "rgb(3, 92, 80)" + }, + "dark": { + "value": "rgb(14, 190, 156)" + } + }, + "seafoam-1200": { + "prop": "--spectrum-seafoam-1200", + "light": { + "value": "rgb(1, 75, 67)" + }, + "dark": { + "value": "rgb(29, 214, 176)" + } + }, + "seafoam-1300": { + "prop": "--spectrum-seafoam-1300", + "light": { + "value": "rgb(0, 60, 54)" + }, + "dark": { + "value": "rgb(122, 229, 203)" + } + }, + "seafoam-1400": { + "prop": "--spectrum-seafoam-1400", + "light": { + "value": "rgb(0, 46, 40)" + }, + "dark": { + "value": "rgb(186, 241, 222)" + } + }, + "seafoam-1500": { + "prop": "--spectrum-seafoam-1500", + "dark": { + "value": "rgb(229, 249, 243)" + }, + "light": { + "value": "rgb(0, 33, 29)" + } + }, + "seafoam-1600": { + "prop": "--spectrum-seafoam-1600", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 15, 14)" + } + }, + "seafoam-200": { + "prop": "--spectrum-seafoam-200", + "light": { + "value": "rgb(211, 246, 234)" + }, + "dark": { + "value": "rgb(0, 39, 35)" + } + }, + "seafoam-300": { + "prop": "--spectrum-seafoam-300", + "light": { + "value": "rgb(169, 237, 216)" + }, + "dark": { + "value": "rgb(0, 50, 44)" + } + }, + "seafoam-400": { + "prop": "--spectrum-seafoam-400", + "light": { + "value": "rgb(92, 225, 194)" + }, + "dark": { + "value": "rgb(0, 67, 59)" + } + }, + "seafoam-500": { + "prop": "--spectrum-seafoam-500", + "light": { + "value": "rgb(16, 207, 169)" + }, + "dark": { + "value": "rgb(2, 86, 75)" + } + }, + "seafoam-600": { + "prop": "--spectrum-seafoam-600", + "light": { + "value": "rgb(13, 181, 149)" + }, + "dark": { + "value": "rgb(4, 105, 89)" + } + }, + "seafoam-700": { + "prop": "--spectrum-seafoam-700", + "light": { + "value": "rgb(11, 162, 134)" + }, + "dark": { + "value": "rgb(6, 122, 103)" + } + }, + "seafoam-800": { + "prop": "--spectrum-seafoam-800", + "light": { + "value": "rgb(9, 144, 120)" + }, + "dark": { + "value": "rgb(8, 134, 112)" + } + }, + "seafoam-900": { + "prop": "--spectrum-seafoam-900", + "light": { + "value": "rgb(7, 129, 109)" + }, + "dark": { + "value": "rgb(10, 154, 128)" + } + }, + "seafoam-background-color-default": { + "prop": "--spectrum-seafoam-background-color-default", + "ref": "var(--spectrum-seafoam-800)", + "light": { + "value": "rgb(7, 129, 109)" + }, + "dark": { + "value": "rgb(8, 134, 112)" + } + }, + "seafoam-subtle-background-color-default": { + "prop": "--spectrum-seafoam-subtle-background-color-default", + "ref": "var(--spectrum-seafoam-300)", + "light": { + "value": "rgb(211, 246, 234)" + }, + "dark": { + "value": "rgb(0, 50, 44)" + } + }, + "seafoam-visual-color": { + "prop": "--spectrum-seafoam-visual-color", + "ref": "var(--spectrum-seafoam-800)", + "light": { + "value": "rgb(11, 162, 134)" + }, + "dark": { + "value": "rgb(8, 134, 112)" + } + }, + "search-field-minimum-width-multiplier": { + "prop": "--spectrum-search-field-minimum-width-multiplier", + "value": 4 + }, + "segmented-control-item-height": { + "prop": "--spectrum-segmented-control-item-height", + "ref": "var(--spectrum-component-height-100)", + "desktop": { + "value": "32px" + }, + "mobile": { + "value": "40px" + } + }, + "segmented-control-selection-border-width": { + "prop": "--spectrum-segmented-control-selection-border-width", + "ref": "var(--spectrum-border-width-200)", + "value": "2px" + }, + "select-box-edge-to-checkbox": { + "prop": "--spectrum-select-box-edge-to-checkbox", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } + }, + "select-box-horizontal-end-to-content": { + "prop": "--spectrum-select-box-horizontal-end-to-content", + "desktop": { + "value": "32px" + }, + "mobile": { + "value": "40px" + } + }, + "select-box-horizontal-illustration-to-label": { + "prop": "--spectrum-select-box-horizontal-illustration-to-label", + "desktop": { + "value": "10px" + }, + "mobile": { + "value": "12px" + } + }, + "select-box-horizontal-label-to-description": { + "prop": "--spectrum-select-box-horizontal-label-to-description", + "desktop": { + "value": "2px" + }, + "mobile": { + "value": "3px" + } + }, + "select-box-horizontal-minimum-height": { + "prop": "--spectrum-select-box-horizontal-minimum-height", + "desktop": { + "value": "80px" + }, + "mobile": { + "value": "100px" + } + }, + "select-box-horizontal-start-to-content": { + "prop": "--spectrum-select-box-horizontal-start-to-content", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "select-box-horizontal-top-to-content": { + "prop": "--spectrum-select-box-horizontal-top-to-content", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "select-box-horizontal-width": { + "prop": "--spectrum-select-box-horizontal-width", + "desktop": { + "value": "368px" + }, + "mobile": { + "value": "460px" + } + }, + "select-box-selected-border-color": { + "prop": "--spectrum-select-box-selected-border-color", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" + }, + "dark": { + "value": "rgb(219, 219, 219)" + } + }, + "select-box-top-to-checkbox": { + "prop": "--spectrum-select-box-top-to-checkbox", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "select-box-vertical-edge-to-content": { + "prop": "--spectrum-select-box-vertical-edge-to-content", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "select-box-vertical-height": { + "prop": "--spectrum-select-box-vertical-height", + "desktop": { + "value": "170px" + }, + "mobile": { + "value": "212px" + } + }, + "select-box-vertical-illustration-to-label": { + "prop": "--spectrum-select-box-vertical-illustration-to-label", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "serif-font-family": { + "prop": "--spectrum-serif-font-family", + "value": "Adobe Clean Serif" + }, + "side-focus-indicator": { + "prop": "--spectrum-side-focus-indicator", + "value": "4px" + }, + "side-label-character-count-to-field": { + "prop": "--spectrum-side-label-character-count-to-field", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "15px" + } + }, + "side-label-character-count-top-margin-extra-large": { + "prop": "--spectrum-side-label-character-count-top-margin-extra-large", + "value": "0px" + }, + "side-label-character-count-top-margin-large": { + "prop": "--spectrum-side-label-character-count-top-margin-large", + "value": "0px" + }, + "side-label-character-count-top-margin-medium": { + "prop": "--spectrum-side-label-character-count-top-margin-medium", + "value": "0px" + }, + "side-label-character-count-top-margin-small": { + "prop": "--spectrum-side-label-character-count-top-margin-small", + "value": "0px" + }, + "side-navigation-bottom-to-text": { + "prop": "--spectrum-side-navigation-bottom-to-text", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "side-navigation-header-to-item": { + "prop": "--spectrum-side-navigation-header-to-item", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "side-navigation-item-to-header": { + "prop": "--spectrum-side-navigation-item-to-header", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "side-navigation-item-to-item": { + "prop": "--spectrum-side-navigation-item-to-item", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } + }, + "side-navigation-maximum-width": { + "prop": "--spectrum-side-navigation-maximum-width", + "desktop": { + "value": "240px" + }, + "mobile": { + "value": "300px" + } + }, + "side-navigation-minimum-width": { + "prop": "--spectrum-side-navigation-minimum-width", + "desktop": { + "value": "160px" + }, + "mobile": { + "value": "200px" + } + }, + "side-navigation-second-level-edge-to-text": { + "prop": "--spectrum-side-navigation-second-level-edge-to-text", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "side-navigation-third-level-edge-to-text": { + "prop": "--spectrum-side-navigation-third-level-edge-to-text", + "desktop": { + "value": "36px" + }, + "mobile": { + "value": "45px" + } + }, + "side-navigation-width": { + "prop": "--spectrum-side-navigation-width", + "desktop": { + "value": "192px" + }, + "mobile": { + "value": "240px" + } + }, + "side-navigation-with-icon-second-level-edge-to-text": { + "prop": "--spectrum-side-navigation-with-icon-second-level-edge-to-text", + "desktop": { + "value": "50px" + }, + "mobile": { + "value": "62px" + } + }, + "side-navigation-with-icon-third-level-edge-to-text": { + "prop": "--spectrum-side-navigation-with-icon-third-level-edge-to-text", + "desktop": { + "value": "62px" + }, + "mobile": { + "value": "77px" + } + }, + "silver-100": { + "prop": "--spectrum-silver-100", + "dark": { + "value": "rgb(26, 26, 26)" + }, + "light": { + "value": "rgb(247, 247, 247)" + } + }, + "silver-1000": { + "prop": "--spectrum-silver-1000", + "dark": { + "value": "rgb(152, 152, 152)" + }, + "light": { + "value": "rgb(96, 96, 96)" + } + }, + "silver-1100": { + "prop": "--spectrum-silver-1100", + "dark": { + "value": "rgb(169, 169, 169)" + }, + "light": { + "value": "rgb(81, 81, 81)" + } + }, + "silver-1200": { + "prop": "--spectrum-silver-1200", + "dark": { + "value": "rgb(190, 190, 190)" + }, + "light": { + "value": "rgb(66, 66, 66)" + } + }, + "silver-1300": { + "prop": "--spectrum-silver-1300", + "dark": { + "value": "rgb(211, 211, 211)" + }, + "light": { + "value": "rgb(52, 52, 52)" + } + }, + "silver-1400": { + "prop": "--spectrum-silver-1400", + "dark": { + "value": "rgb(229, 229, 229)" + }, + "light": { + "value": "rgb(39, 39, 39)" + } + }, + "silver-1500": { + "prop": "--spectrum-silver-1500", + "dark": { + "value": "rgb(244, 244, 244)" + }, + "light": { + "value": "rgb(28, 28, 28)" + } + }, + "silver-1600": { + "prop": "--spectrum-silver-1600", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(12, 12, 12)" + } + }, + "silver-200": { + "prop": "--spectrum-silver-200", + "dark": { + "value": "rgb(33, 33, 33)" + }, + "light": { + "value": "rgb(239, 239, 239)" + } + }, + "silver-300": { + "prop": "--spectrum-silver-300", + "dark": { + "value": "rgb(44, 44, 44)" + }, + "light": { + "value": "rgb(223, 223, 223)" + } + }, + "silver-400": { + "prop": "--spectrum-silver-400", + "dark": { + "value": "rgb(59, 59, 59)" + }, + "light": { + "value": "rgb(204, 204, 204)" + } + }, + "silver-500": { + "prop": "--spectrum-silver-500", + "dark": { + "value": "rgb(76, 76, 76)" + }, + "light": { + "value": "rgb(183, 183, 183)" + } + }, + "silver-600": { + "prop": "--spectrum-silver-600", + "dark": { + "value": "rgb(92, 92, 92)" + }, + "light": { + "value": "rgb(160, 160, 160)" + } + }, + "silver-700": { + "prop": "--spectrum-silver-700", + "dark": { + "value": "rgb(108, 108, 108)" + }, + "light": { + "value": "rgb(143, 143, 143)" + } + }, + "silver-800": { + "prop": "--spectrum-silver-800", + "dark": { + "value": "rgb(118, 118, 118)" + }, + "light": { + "value": "rgb(128, 128, 128)" + } + }, + "silver-900": { + "prop": "--spectrum-silver-900", + "dark": { + "value": "rgb(137, 137, 137)" + }, + "light": { + "value": "rgb(114, 114, 114)" + } + }, + "silver-background-color-default": { + "prop": "--spectrum-silver-background-color-default", + "ref": "var(--spectrum-silver-800)", + "light": { + "value": "rgb(114, 114, 114)" + }, + "dark": { + "value": "rgb(118, 118, 118)" + } + }, + "silver-subtle-background-color-default": { + "prop": "--spectrum-silver-subtle-background-color-default", + "ref": "var(--spectrum-silver-300)", + "light": { + "value": "rgb(239, 239, 239)" + }, + "dark": { + "value": "rgb(44, 44, 44)" + } + }, + "silver-visual-color": { + "prop": "--spectrum-silver-visual-color", + "ref": "var(--spectrum-silver-900)", + "light": { + "value": "rgb(128, 128, 128)" + }, + "dark": { + "value": "rgb(137, 137, 137)" + } + }, + "slider-bottom-to-handle-extra-large": { + "prop": "--spectrum-slider-bottom-to-handle-extra-large", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "slider-bottom-to-handle-large": { + "prop": "--spectrum-slider-bottom-to-handle-large", + "desktop": { + "value": "11px" + }, + "mobile": { + "value": "14px" + } + }, + "slider-bottom-to-handle-medium": { + "prop": "--spectrum-slider-bottom-to-handle-medium", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "10px" + } + }, + "slider-bottom-to-handle-small": { + "prop": "--spectrum-slider-bottom-to-handle-small", + "desktop": { + "value": "5px" + }, + "mobile": { + "value": "6px" + } + }, + "slider-control-height-extra-large": { + "prop": "--spectrum-slider-control-height-extra-large", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "26px" + } + }, + "slider-control-height-large": { + "prop": "--spectrum-slider-control-height-large", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "slider-control-height-medium": { + "prop": "--spectrum-slider-control-height-medium", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-control-height-small": { + "prop": "--spectrum-slider-control-height-small", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "18px" + } + }, + "slider-control-to-field-label-editable-extra-large": { + "prop": "--spectrum-slider-control-to-field-label-editable-extra-large", + "desktop": { + "value": "-20px" + }, + "mobile": { + "value": "-24px" + } + }, + "slider-control-to-field-label-editable-large": { + "prop": "--spectrum-slider-control-to-field-label-editable-large", + "desktop": { + "value": "-16px" + }, + "mobile": { + "value": "-20px" + } + }, + "slider-control-to-field-label-editable-medium": { + "prop": "--spectrum-slider-control-to-field-label-editable-medium", + "desktop": { + "value": "-12px" + }, + "mobile": { + "value": "-16px" + } + }, + "slider-control-to-field-label-editable-small": { + "prop": "--spectrum-slider-control-to-field-label-editable-small", + "desktop": { + "value": "-4px" + }, + "mobile": { + "value": "-8px" + } + }, + "slider-control-to-field-label-extra-large": { + "prop": "--spectrum-slider-control-to-field-label-extra-large", + "desktop": { + "value": "-20px" + }, + "mobile": { + "value": "-28px" + } + }, + "slider-control-to-field-label-large": { + "prop": "--spectrum-slider-control-to-field-label-large", + "desktop": { + "value": "-16px" + }, + "mobile": { + "value": "-20px" + } + }, + "slider-control-to-field-label-medium": { + "prop": "--spectrum-slider-control-to-field-label-medium", + "desktop": { + "value": "-12px" + }, + "mobile": { + "value": "-16px" + } + }, + "slider-control-to-field-label-side-extra-large": { + "prop": "--spectrum-slider-control-to-field-label-side-extra-large", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "28px" + } + }, + "slider-control-to-field-label-side-large": { + "prop": "--spectrum-slider-control-to-field-label-side-large", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "slider-control-to-field-label-side-medium": { + "prop": "--spectrum-slider-control-to-field-label-side-medium", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-control-to-field-label-side-small": { + "prop": "--spectrum-slider-control-to-field-label-side-small", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-control-to-field-label-small": { + "prop": "--spectrum-slider-control-to-field-label-small", + "desktop": { + "value": "-4px" + }, + "mobile": { + "value": "-8px" + } + }, + "slider-control-to-text-field-extra-large": { + "prop": "--spectrum-slider-control-to-text-field-extra-large", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "28px" + } + }, + "slider-control-to-text-field-large": { + "prop": "--spectrum-slider-control-to-text-field-large", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "slider-control-to-text-field-medium": { + "prop": "--spectrum-slider-control-to-text-field-medium", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-control-to-text-field-small": { + "prop": "--spectrum-slider-control-to-text-field-small", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-handle-border-width-down-extra-large": { + "prop": "--spectrum-slider-handle-border-width-down-extra-large", + "desktop": { + "value": "8px" + }, + "mobile": { + "value": "11px" + } + }, + "slider-handle-border-width-down-large": { + "prop": "--spectrum-slider-handle-border-width-down-large", + "desktop": { + "value": "7px" + }, + "mobile": { + "value": "9px" + } + }, + "slider-handle-border-width-down-medium": { + "prop": "--spectrum-slider-handle-border-width-down-medium", + "desktop": { + "value": "6px" + }, + "mobile": { + "value": "8px" + } + }, + "slider-handle-border-width-down-small": { + "prop": "--spectrum-slider-handle-border-width-down-small", + "desktop": { + "value": "5px" + }, + "mobile": { + "value": "7px" + } + }, + "slider-handle-extra-large": { + "prop": "--spectrum-slider-handle-extra-large", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "slider-handle-gap": { + "prop": "--spectrum-slider-handle-gap", + "value": "4px" + }, + "slider-handle-height-precision-extra-large": { + "prop": "--spectrum-slider-handle-height-precision-extra-large", + "desktop": { + "value": "26px" + }, + "mobile": { + "value": "32px" + } + }, + "slider-handle-height-precision-large": { + "prop": "--spectrum-slider-handle-height-precision-large", + "desktop": { + "value": "24px" + }, + "mobile": { + "value": "30px" + } + }, + "slider-handle-height-precision-medium": { + "prop": "--spectrum-slider-handle-height-precision-medium", + "desktop": { + "value": "22px" + }, + "mobile": { + "value": "26px" + } + }, + "slider-handle-height-precision-small": { + "prop": "--spectrum-slider-handle-height-precision-small", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "slider-handle-large": { + "prop": "--spectrum-slider-handle-large", + "desktop": { + "value": "22px" + }, + "mobile": { + "value": "28px" + } + }, + "slider-handle-medium": { + "prop": "--spectrum-slider-handle-medium", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "24px" + } + }, + "slider-handle-precision-width": { + "prop": "--spectrum-slider-handle-precision-width", + "value": "6px" + }, + "slider-handle-size-extra-large": { + "prop": "--spectrum-slider-handle-size-extra-large", + "desktop": { + "value": "20px" + }, + "mobile": { + "value": "26px" + } + }, + "slider-handle-size-large": { + "prop": "--spectrum-slider-handle-size-large", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "slider-handle-size-medium": { + "prop": "--spectrum-slider-handle-size-medium", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "20px" + } + }, + "slider-handle-size-small": { + "prop": "--spectrum-slider-handle-size-small", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "18px" + } + }, + "slider-handle-small": { + "prop": "--spectrum-slider-handle-small", + "desktop": { + "value": "18px" + }, + "mobile": { + "value": "22px" + } + }, + "slider-track-height-large": { + "prop": "--spectrum-slider-track-height-large", + "value": "16px" + }, + "slider-track-height-medium": { + "prop": "--spectrum-slider-track-height-medium", + "value": "4px" + }, + "slider-track-thickness": { + "prop": "--spectrum-slider-track-thickness", + "value": "2px" + }, + "spacing-100": { + "prop": "--spectrum-spacing-100", + "value": "8px" + }, + "spacing-1000": { + "prop": "--spectrum-spacing-1000", + "value": "96px" + }, + "spacing-200": { + "prop": "--spectrum-spacing-200", + "value": "12px" + }, + "spacing-300": { + "prop": "--spectrum-spacing-300", + "value": "16px" + }, + "spacing-400": { + "prop": "--spectrum-spacing-400", + "value": "24px" + }, + "spacing-50": { + "prop": "--spectrum-spacing-50", + "value": "2px" + }, + "spacing-500": { + "prop": "--spectrum-spacing-500", + "value": "32px" + }, + "spacing-600": { + "prop": "--spectrum-spacing-600", + "value": "40px" + }, + "spacing-700": { + "prop": "--spectrum-spacing-700", + "value": "48px" + }, + "spacing-75": { + "prop": "--spectrum-spacing-75", + "value": "4px" + }, + "spacing-800": { + "prop": "--spectrum-spacing-800", + "value": "64px" + }, + "spacing-900": { + "prop": "--spectrum-spacing-900", + "value": "80px" + }, + "standard-dialog-body-font-size": { + "prop": "--spectrum-standard-dialog-body-font-size", + "ref": "var(--spectrum-body-size-s)", + "desktop": { + "value": "16px" + }, + "mobile": { + "value": "17px" + } + }, + "standard-dialog-maximum-width-large": { + "prop": "--spectrum-standard-dialog-maximum-width-large", + "value": "640px" + }, + "standard-dialog-maximum-width-medium": { + "prop": "--spectrum-standard-dialog-maximum-width-medium", + "value": "480px" + }, + "standard-dialog-maximum-width-small": { + "prop": "--spectrum-standard-dialog-maximum-width-small", + "value": "400px" + }, + "standard-dialog-minimum-width": { + "prop": "--spectrum-standard-dialog-minimum-width", + "value": "288px" + }, + "standard-dialog-title-font-size": { + "prop": "--spectrum-standard-dialog-title-font-size", + "ref": "var(--spectrum-title-size-xl)", + "desktop": { + "value": "22px" + }, + "mobile": { + "value": "24px" + } + }, + "standard-panel-edge-to-close-button-compact": { + "prop": "--spectrum-standard-panel-edge-to-close-button-compact", + "value": "3px" + }, + "standard-panel-edge-to-close-button-regular": { + "prop": "--spectrum-standard-panel-edge-to-close-button-regular", + "value": "7px" + }, + "standard-panel-edge-to-close-button-spacious": { + "prop": "--spectrum-standard-panel-edge-to-close-button-spacious", + "value": "15px" + }, + "standard-panel-gripper-color": { + "prop": "--spectrum-standard-panel-gripper-color", + "ref": "var(--spectrum-gray-200)", + "light": { + "value": "rgb(225, 225, 225)" + }, + "dark": { + "value": "rgb(50, 50, 50)" + } + }, + "standard-panel-gripper-color-drag": { + "prop": "--spectrum-standard-panel-gripper-color-drag", + "ref": "var(--spectrum-gray-800)", + "light": { + "value": "rgb(41, 41, 41)" + }, + "dark": { + "value": "rgb(219, 219, 219)" + } + }, + "standard-panel-maximum-width": { + "prop": "--spectrum-standard-panel-maximum-width", + "value": "400px" + }, + "standard-panel-minimum-width": { + "prop": "--spectrum-standard-panel-minimum-width", + "value": "200px" + }, + "standard-panel-title-font-size": { + "prop": "--spectrum-standard-panel-title-font-size", + "ref": "var(--spectrum-title-size-s)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "17px" + } + }, + "standard-panel-top-to-close-button-compact": { + "prop": "--spectrum-standard-panel-top-to-close-button-compact", + "value": "5px" + }, + "standard-panel-top-to-close-button-regular": { + "prop": "--spectrum-standard-panel-top-to-close-button-regular", + "value": "9px" + }, + "standard-panel-top-to-close-button-spacious": { + "prop": "--spectrum-standard-panel-top-to-close-button-spacious", + "value": "17px" + }, + "standard-panel-width": { + "prop": "--spectrum-standard-panel-width", + "value": "260px" + }, + "static-black-focus-indicator-color": { + "prop": "--spectrum-static-black-focus-indicator-color", + "ref": "var(--spectrum-black)", + "value": "rgb(0, 0, 0)" + }, + "static-black-text-color": { + "prop": "--spectrum-static-black-text-color", + "ref": "var(--spectrum-black)", + "value": "rgb(0, 0, 0)" + }, + "static-black-track-color": { + "prop": "--spectrum-static-black-track-color", + "ref": "var(--spectrum-transparent-black-300)", + "value": "rgba(0, 0, 0, 0.15)" + }, + "static-black-track-indicator-color": { + "prop": "--spectrum-static-black-track-indicator-color", + "ref": "var(--spectrum-transparent-black-900)", + "value": "rgba(0, 0, 0, 0.93)" + }, + "static-blue-1000": { + "prop": "--spectrum-static-blue-1000", + "value": "rgb(39, 77, 234)" + }, + "static-blue-900": { + "prop": "--spectrum-static-blue-900", + "value": "rgb(59, 99, 251)" + }, + "static-fuchsia-1000": { + "prop": "--spectrum-static-fuchsia-1000", + "value": "rgb(156, 40, 175)" + }, + "static-fuchsia-900": { + "prop": "--spectrum-static-fuchsia-900", + "value": "rgb(181, 57, 200)" + }, + "static-indigo-1000": { + "prop": "--spectrum-static-indigo-1000", + "value": "rgb(99, 56, 238)" + }, + "static-indigo-900": { + "prop": "--spectrum-static-indigo-900", + "value": "rgb(113, 85, 250)" + }, + "static-magenta-1000": { + "prop": "--spectrum-static-magenta-1000", + "value": "rgb(186, 22, 80)" + }, + "static-magenta-900": { + "prop": "--spectrum-static-magenta-900", + "value": "rgb(217, 35, 97)" + }, + "static-red-1000": { + "prop": "--spectrum-static-red-1000", + "value": "rgb(183, 40, 24)" + }, + "static-red-900": { + "prop": "--spectrum-static-red-900", + "value": "rgb(215, 50, 32)" + }, + "static-white-focus-indicator-color": { + "prop": "--spectrum-static-white-focus-indicator-color", + "ref": "var(--spectrum-white)", + "value": "rgb(255, 255, 255)" + }, + "static-white-text-color": { + "prop": "--spectrum-static-white-text-color", + "ref": "var(--spectrum-white)", + "value": "rgb(255, 255, 255)" + }, + "static-white-track-color": { + "prop": "--spectrum-static-white-track-color", + "ref": "var(--spectrum-transparent-white-300)", + "value": "rgba(255, 255, 255, 0.17)" }, - "seafoam-400": { - "prop": "--spectrum-seafoam-400", - "light": { - "value": "rgb(92, 225, 194)" - }, - "dark": { - "value": "rgb(0, 67, 59)" - } + "static-white-track-indicator-color": { + "prop": "--spectrum-static-white-track-indicator-color", + "ref": "var(--spectrum-transparent-white-900)", + "value": "rgba(255, 255, 255, 0.94)" }, - "seafoam-500": { - "prop": "--spectrum-seafoam-500", - "light": { - "value": "rgb(16, 207, 169)" + "status-light-dot-size-extra-large": { + "prop": "--spectrum-status-light-dot-size-extra-large", + "desktop": { + "value": "14px" }, - "dark": { - "value": "rgb(2, 86, 75)" + "mobile": { + "value": "16px" } }, - "seafoam-600": { - "prop": "--spectrum-seafoam-600", - "light": { - "value": "rgb(13, 181, 149)" + "status-light-dot-size-large": { + "prop": "--spectrum-status-light-dot-size-large", + "desktop": { + "value": "12px" }, - "dark": { - "value": "rgb(4, 105, 89)" + "mobile": { + "value": "14px" } }, - "seafoam-700": { - "prop": "--spectrum-seafoam-700", - "light": { - "value": "rgb(11, 162, 134)" + "status-light-dot-size-medium": { + "prop": "--spectrum-status-light-dot-size-medium", + "desktop": { + "value": "10px" }, - "dark": { - "value": "rgb(6, 122, 103)" + "mobile": { + "value": "12px" } }, - "seafoam-800": { - "prop": "--spectrum-seafoam-800", - "light": { - "value": "rgb(9, 144, 120)" + "status-light-dot-size-small": { + "prop": "--spectrum-status-light-dot-size-small", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(8, 134, 112)" + "mobile": { + "value": "10px" } }, - "seafoam-900": { - "prop": "--spectrum-seafoam-900", - "light": { - "value": "rgb(7, 129, 109)" + "status-light-text-to-visual-100": { + "prop": "--spectrum-status-light-text-to-visual-100", + "ref": "var(--spectrum-text-to-visual-100)", + "desktop": { + "value": "6px" }, - "dark": { - "value": "rgb(10, 154, 128)" + "mobile": { + "value": "8px" } }, - "seafoam-background-color-default": { - "prop": "--spectrum-seafoam-background-color-default", - "ref": "var(--spectrum-seafoam-800)", - "light": { - "value": "rgb(7, 129, 109)" + "status-light-text-to-visual-200": { + "prop": "--spectrum-status-light-text-to-visual-200", + "ref": "var(--spectrum-text-to-visual-200)", + "desktop": { + "value": "7px" }, - "dark": { - "value": "rgb(8, 134, 112)" + "mobile": { + "value": "9px" } }, - "seafoam-subtle-background-color-default": { - "prop": "--spectrum-seafoam-subtle-background-color-default", - "ref": "var(--spectrum-seafoam-300)", - "light": { - "value": "rgb(211, 246, 234)" + "status-light-text-to-visual-300": { + "prop": "--spectrum-status-light-text-to-visual-300", + "ref": "var(--spectrum-text-to-visual-300)", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(0, 50, 44)" + "mobile": { + "value": "10px" } }, - "seafoam-visual-color": { - "prop": "--spectrum-seafoam-visual-color", - "ref": "var(--spectrum-seafoam-800)", - "light": { - "value": "rgb(11, 162, 134)" + "status-light-text-to-visual-75": { + "prop": "--spectrum-status-light-text-to-visual-75", + "ref": "var(--spectrum-text-to-visual-75)", + "desktop": { + "value": "5px" }, - "dark": { - "value": "rgb(8, 134, 112)" + "mobile": { + "value": "7px" } }, - "search-field-minimum-width-multiplier": { - "prop": "--spectrum-search-field-minimum-width-multiplier", - "value": "3" - }, - "serif-font-family": { - "prop": "--spectrum-serif-font-family", - "value": "Adobe Clean Serif" - }, - "side-label-character-count-to-field": { - "prop": "--spectrum-side-label-character-count-to-field", + "status-light-top-to-dot-extra-large": { + "prop": "--spectrum-status-light-top-to-dot-extra-large", "desktop": { - "value": "12px" + "value": "17px" }, "mobile": { - "value": "15px" + "value": "22px" } }, - "side-label-character-count-top-margin-extra-large": { - "prop": "--spectrum-side-label-character-count-top-margin-extra-large", + "status-light-top-to-dot-large": { + "prop": "--spectrum-status-light-top-to-dot-large", "desktop": { "value": "14px" }, @@ -9723,8 +13173,8 @@ "value": "18px" } }, - "side-label-character-count-top-margin-large": { - "prop": "--spectrum-side-label-character-count-top-margin-large", + "status-light-top-to-dot-medium": { + "prop": "--spectrum-status-light-top-to-dot-medium", "desktop": { "value": "11px" }, @@ -9732,8 +13182,8 @@ "value": "14px" } }, - "side-label-character-count-top-margin-medium": { - "prop": "--spectrum-side-label-character-count-top-margin-medium", + "status-light-top-to-dot-small": { + "prop": "--spectrum-status-light-top-to-dot-small", "desktop": { "value": "8px" }, @@ -9741,35 +13191,80 @@ "value": "10px" } }, - "side-label-character-count-top-margin-small": { - "prop": "--spectrum-side-label-character-count-top-margin-small", + "swatch-border-color": { + "prop": "--spectrum-swatch-border-color", + "ref": "var(--spectrum-gray-1000)", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 0, 0)" + } + }, + "swatch-border-opacity": { + "prop": "--spectrum-swatch-border-opacity", + "value": "0.42" + }, + "swatch-disabled-icon-border-color": { + "prop": "--spectrum-swatch-disabled-icon-border-color", + "ref": "var(--spectrum-black)", + "value": "rgb(0, 0, 0)" + }, + "swatch-disabled-icon-border-opacity": { + "prop": "--spectrum-swatch-disabled-icon-border-opacity", + "value": "0.42" + }, + "swatch-group-border-color": { + "prop": "--spectrum-swatch-group-border-color", + "ref": "var(--spectrum-gray-1000)", + "dark": { + "value": "rgb(255, 255, 255)" + }, + "light": { + "value": "rgb(0, 0, 0)" + } + }, + "swatch-group-border-opacity": { + "prop": "--spectrum-swatch-group-border-opacity", + "value": "0.2" + }, + "swatch-group-spacing-spacious": { + "prop": "--spectrum-swatch-group-spacing-spacious", + "value": "6px" + }, + "swatch-rectangle-width-multiplier": { + "prop": "--spectrum-swatch-rectangle-width-multiplier", + "value": 2 + }, + "swatch-size-extra-small": { + "prop": "--spectrum-swatch-size-extra-small", "desktop": { - "value": "4px" + "value": "16px" }, "mobile": { - "value": "5px" + "value": "20px" } }, - "side-navigation-bottom-to-text": { - "prop": "--spectrum-side-navigation-bottom-to-text", + "swatch-size-large": { + "prop": "--spectrum-swatch-size-large", "desktop": { - "value": "8px" + "value": "40px" }, "mobile": { - "value": "10px" + "value": "50px" } }, - "side-navigation-header-to-item": { - "prop": "--spectrum-side-navigation-header-to-item", + "swatch-size-medium": { + "prop": "--spectrum-swatch-size-medium", "desktop": { - "value": "8px" + "value": "32px" }, "mobile": { - "value": "10px" + "value": "40px" } }, - "side-navigation-item-to-header": { - "prop": "--spectrum-side-navigation-item-to-header", + "swatch-size-small": { + "prop": "--spectrum-swatch-size-small", "desktop": { "value": "24px" }, @@ -9777,560 +13272,513 @@ "value": "30px" } }, - "side-navigation-item-to-item": { - "prop": "--spectrum-side-navigation-item-to-item", + "swatch-slash-thickness-extra-small": { + "prop": "--spectrum-swatch-slash-thickness-extra-small", + "value": "2px" + }, + "swatch-slash-thickness-large": { + "prop": "--spectrum-swatch-slash-thickness-large", + "value": "5px" + }, + "swatch-slash-thickness-medium": { + "prop": "--spectrum-swatch-slash-thickness-medium", + "value": "4px" + }, + "swatch-slash-thickness-small": { + "prop": "--spectrum-swatch-slash-thickness-small", + "value": "3px" + }, + "switch-control-height-extra-large": { + "prop": "--spectrum-switch-control-height-extra-large", "desktop": { - "value": "4px" + "value": "20px" }, "mobile": { - "value": "5px" + "value": "26px" } }, - "side-navigation-maximum-width": { - "prop": "--spectrum-side-navigation-maximum-width", + "switch-control-height-large": { + "prop": "--spectrum-switch-control-height-large", "desktop": { - "value": "240px" + "value": "18px" }, "mobile": { - "value": "300px" + "value": "22px" } }, - "side-navigation-minimum-width": { - "prop": "--spectrum-side-navigation-minimum-width", + "switch-control-height-medium": { + "prop": "--spectrum-switch-control-height-medium", "desktop": { - "value": "160px" + "value": "16px" }, "mobile": { - "value": "200px" + "value": "20px" } }, - "side-navigation-second-level-edge-to-text": { - "prop": "--spectrum-side-navigation-second-level-edge-to-text", + "switch-control-height-small": { + "prop": "--spectrum-switch-control-height-small", "desktop": { - "value": "24px" + "value": "14px" }, "mobile": { - "value": "30px" + "value": "18px" } }, - "side-navigation-third-level-edge-to-text": { - "prop": "--spectrum-side-navigation-third-level-edge-to-text", + "switch-control-width-extra-large": { + "prop": "--spectrum-switch-control-width-extra-large", "desktop": { - "value": "36px" + "value": "34px" }, "mobile": { - "value": "45px" + "value": "46px" } }, - "side-navigation-width": { - "prop": "--spectrum-side-navigation-width", + "switch-control-width-large": { + "prop": "--spectrum-switch-control-width-large", "desktop": { - "value": "192px" + "value": "30px" }, "mobile": { - "value": "240px" + "value": "38px" } }, - "side-navigation-with-icon-second-level-edge-to-text": { - "prop": "--spectrum-side-navigation-with-icon-second-level-edge-to-text", + "switch-control-width-medium": { + "prop": "--spectrum-switch-control-width-medium", "desktop": { - "value": "50px" + "value": "26px" }, "mobile": { - "value": "62px" + "value": "34px" } }, - "side-navigation-with-icon-third-level-edge-to-text": { - "prop": "--spectrum-side-navigation-with-icon-third-level-edge-to-text", + "switch-control-width-small": { + "prop": "--spectrum-switch-control-width-small", "desktop": { - "value": "62px" + "value": "22px" }, "mobile": { - "value": "77px" + "value": "30px" } }, - "silver-100": { - "prop": "--spectrum-silver-100", - "dark": { - "value": "rgb(26, 26, 26)" + "switch-handle-selected-size-extra-large": { + "prop": "--spectrum-switch-handle-selected-size-extra-large", + "desktop": { + "value": "14px" }, - "light": { - "value": "rgb(247, 247, 247)" + "mobile": { + "value": "20px" } }, - "silver-1000": { - "prop": "--spectrum-silver-1000", - "dark": { - "value": "rgb(152, 152, 152)" + "switch-handle-selected-size-large": { + "prop": "--spectrum-switch-handle-selected-size-large", + "desktop": { + "value": "12px" }, - "light": { - "value": "rgb(96, 96, 96)" + "mobile": { + "value": "16px" } }, - "silver-1100": { - "prop": "--spectrum-silver-1100", - "dark": { - "value": "rgb(169, 169, 169)" + "switch-handle-selected-size-medium": { + "prop": "--spectrum-switch-handle-selected-size-medium", + "desktop": { + "value": "10px" }, - "light": { - "value": "rgb(81, 81, 81)" + "mobile": { + "value": "14px" } }, - "silver-1200": { - "prop": "--spectrum-silver-1200", - "dark": { - "value": "rgb(190, 190, 190)" + "switch-handle-selected-size-small": { + "prop": "--spectrum-switch-handle-selected-size-small", + "desktop": { + "value": "8px" }, - "light": { - "value": "rgb(66, 66, 66)" + "mobile": { + "value": "12px" } }, - "silver-1300": { - "prop": "--spectrum-silver-1300", - "dark": { - "value": "rgb(211, 211, 211)" + "switch-handle-size-extra-large": { + "prop": "--spectrum-switch-handle-size-extra-large", + "desktop": { + "value": "12px" }, - "light": { - "value": "rgb(52, 52, 52)" + "mobile": { + "value": "18px" } }, - "silver-1400": { - "prop": "--spectrum-silver-1400", - "dark": { - "value": "rgb(229, 229, 229)" + "switch-handle-size-large": { + "prop": "--spectrum-switch-handle-size-large", + "desktop": { + "value": "10px" }, - "light": { - "value": "rgb(39, 39, 39)" + "mobile": { + "value": "14px" } }, - "silver-1500": { - "prop": "--spectrum-silver-1500", - "dark": { - "value": "rgb(244, 244, 244)" + "switch-handle-size-medium": { + "prop": "--spectrum-switch-handle-size-medium", + "desktop": { + "value": "8px" }, - "light": { - "value": "rgb(28, 28, 28)" + "mobile": { + "value": "12px" } }, - "silver-1600": { - "prop": "--spectrum-silver-1600", - "dark": { - "value": "rgb(255, 255, 255)" + "switch-handle-size-small": { + "prop": "--spectrum-switch-handle-size-small", + "desktop": { + "value": "6px" }, - "light": { - "value": "rgb(12, 12, 12)" + "mobile": { + "value": "10px" } }, - "silver-200": { - "prop": "--spectrum-silver-200", - "dark": { - "value": "rgb(33, 33, 33)" + "switch-top-to-control-extra-large": { + "prop": "--spectrum-switch-top-to-control-extra-large", + "desktop": { + "value": "15px" }, - "light": { - "value": "rgb(239, 239, 239)" + "mobile": { + "value": "19px" } }, - "silver-300": { - "prop": "--spectrum-silver-300", - "dark": { - "value": "rgb(44, 44, 44)" + "switch-top-to-control-large": { + "prop": "--spectrum-switch-top-to-control-large", + "desktop": { + "value": "12px" }, - "light": { - "value": "rgb(223, 223, 223)" + "mobile": { + "value": "15px" } }, - "silver-400": { - "prop": "--spectrum-silver-400", - "dark": { - "value": "rgb(59, 59, 59)" + "switch-top-to-control-medium": { + "prop": "--spectrum-switch-top-to-control-medium", + "desktop": { + "value": "9px" }, - "light": { - "value": "rgb(204, 204, 204)" + "mobile": { + "value": "11px" } }, - "silver-500": { - "prop": "--spectrum-silver-500", - "dark": { - "value": "rgb(76, 76, 76)" + "switch-top-to-control-small": { + "prop": "--spectrum-switch-top-to-control-small", + "desktop": { + "value": "6px" }, - "light": { - "value": "rgb(183, 183, 183)" + "mobile": { + "value": "7px" } }, - "silver-600": { - "prop": "--spectrum-silver-600", - "dark": { - "value": "rgb(92, 92, 92)" + "tab-item-bottom-to-text-compact-extra-large": { + "prop": "--spectrum-tab-item-bottom-to-text-compact-extra-large", + "desktop": { + "value": "13px" }, - "light": { - "value": "rgb(160, 160, 160)" + "mobile": { + "value": "17px" } }, - "silver-700": { - "prop": "--spectrum-silver-700", - "dark": { - "value": "rgb(108, 108, 108)" + "tab-item-bottom-to-text-compact-large": { + "prop": "--spectrum-tab-item-bottom-to-text-compact-large", + "desktop": { + "value": "12px" }, - "light": { - "value": "rgb(143, 143, 143)" + "mobile": { + "value": "14px" } }, - "silver-800": { - "prop": "--spectrum-silver-800", - "dark": { - "value": "rgb(118, 118, 118)" + "tab-item-bottom-to-text-compact-medium": { + "prop": "--spectrum-tab-item-bottom-to-text-compact-medium", + "desktop": { + "value": "8px" }, - "light": { - "value": "rgb(128, 128, 128)" + "mobile": { + "value": "10px" } }, - "silver-900": { - "prop": "--spectrum-silver-900", - "dark": { - "value": "rgb(137, 137, 137)" + "tab-item-bottom-to-text-compact-small": { + "prop": "--spectrum-tab-item-bottom-to-text-compact-small", + "desktop": { + "value": "5px" }, - "light": { - "value": "rgb(114, 114, 114)" + "mobile": { + "value": "6px" } }, - "silver-background-color-default": { - "prop": "--spectrum-silver-background-color-default", - "ref": "var(--spectrum-silver-800)", - "light": { - "value": "rgb(114, 114, 114)" + "tab-item-bottom-to-text-extra-large": { + "prop": "--spectrum-tab-item-bottom-to-text-extra-large", + "desktop": { + "value": "20px" }, - "dark": { - "value": "rgb(118, 118, 118)" + "mobile": { + "value": "25px" } }, - "silver-subtle-background-color-default": { - "prop": "--spectrum-silver-subtle-background-color-default", - "ref": "var(--spectrum-silver-300)", - "light": { - "value": "rgb(239, 239, 239)" + "tab-item-bottom-to-text-large": { + "prop": "--spectrum-tab-item-bottom-to-text-large", + "desktop": { + "value": "18px" }, - "dark": { - "value": "rgb(44, 44, 44)" + "mobile": { + "value": "22px" } }, - "silver-visual-color": { - "prop": "--spectrum-silver-visual-color", - "ref": "var(--spectrum-silver-900)", - "light": { - "value": "rgb(128, 128, 128)" + "tab-item-bottom-to-text-medium": { + "prop": "--spectrum-tab-item-bottom-to-text-medium", + "desktop": { + "value": "14px" }, - "dark": { - "value": "rgb(137, 137, 137)" + "mobile": { + "value": "19px" } }, - "slider-bottom-to-handle-extra-large": { - "prop": "--spectrum-slider-bottom-to-handle-extra-large", + "tab-item-bottom-to-text-small": { + "prop": "--spectrum-tab-item-bottom-to-text-small", "desktop": { - "value": "14px" + "value": "12px" }, "mobile": { - "value": "17px" + "value": "15px" } }, - "slider-bottom-to-handle-large": { - "prop": "--spectrum-slider-bottom-to-handle-large", + "tab-item-compact-height-extra-large": { + "prop": "--spectrum-tab-item-compact-height-extra-large", + "ref": "var(--spectrum-component-height-300)", "desktop": { - "value": "11px" + "value": "48px" }, "mobile": { - "value": "14px" + "value": "60px" } }, - "slider-bottom-to-handle-medium": { - "prop": "--spectrum-slider-bottom-to-handle-medium", + "tab-item-compact-height-large": { + "prop": "--spectrum-tab-item-compact-height-large", + "ref": "var(--spectrum-component-height-200)", "desktop": { - "value": "8px" + "value": "40px" }, "mobile": { - "value": "10px" + "value": "50px" } }, - "slider-bottom-to-handle-small": { - "prop": "--spectrum-slider-bottom-to-handle-small", + "tab-item-compact-height-medium": { + "prop": "--spectrum-tab-item-compact-height-medium", + "ref": "var(--spectrum-component-height-100)", "desktop": { - "value": "5px" + "value": "32px" }, "mobile": { - "value": "6px" + "value": "40px" } }, - "slider-control-height-extra-large": { - "prop": "--spectrum-slider-control-height-extra-large", + "tab-item-compact-height-small": { + "prop": "--spectrum-tab-item-compact-height-small", + "ref": "var(--spectrum-component-height-75)", "desktop": { - "value": "20px" + "value": "24px" }, "mobile": { - "value": "26px" + "value": "30px" } }, - "slider-control-height-large": { - "prop": "--spectrum-slider-control-height-large", + "tab-item-focus-indicator-gap-extra-large": { + "prop": "--spectrum-tab-item-focus-indicator-gap-extra-large", "desktop": { - "value": "18px" + "value": "10px" }, "mobile": { - "value": "22px" + "value": "12px" } }, - "slider-control-height-medium": { - "prop": "--spectrum-slider-control-height-medium", + "tab-item-focus-indicator-gap-large": { + "prop": "--spectrum-tab-item-focus-indicator-gap-large", "desktop": { - "value": "16px" + "value": "9px" }, "mobile": { - "value": "20px" + "value": "11px" } }, - "slider-control-height-small": { - "prop": "--spectrum-slider-control-height-small", + "tab-item-focus-indicator-gap-medium": { + "prop": "--spectrum-tab-item-focus-indicator-gap-medium", "desktop": { - "value": "14px" + "value": "8px" }, "mobile": { - "value": "18px" + "value": "10px" } }, - "slider-control-to-field-label-extra-large": { - "prop": "--spectrum-slider-control-to-field-label-extra-large", + "tab-item-focus-indicator-gap-small": { + "prop": "--spectrum-tab-item-focus-indicator-gap-small", "desktop": { - "value": "14px" + "value": "7px" }, "mobile": { - "value": "17px" + "value": "9px" } }, - "slider-control-to-field-label-large": { - "prop": "--spectrum-slider-control-to-field-label-large", + "tab-item-height-extra-large": { + "prop": "--spectrum-tab-item-height-extra-large", + "ref": "var(--spectrum-component-height-500)", "desktop": { - "value": "11px" + "value": "64px" }, "mobile": { - "value": "14px" + "value": "80px" } }, - "slider-control-to-field-label-medium": { - "prop": "--spectrum-slider-control-to-field-label-medium", + "tab-item-height-large": { + "prop": "--spectrum-tab-item-height-large", + "ref": "var(--spectrum-component-height-400)", "desktop": { - "value": "8px" + "value": "56px" }, "mobile": { - "value": "10px" + "value": "70px" } }, - "slider-control-to-field-label-small": { - "prop": "--spectrum-slider-control-to-field-label-small", + "tab-item-height-medium": { + "prop": "--spectrum-tab-item-height-medium", + "ref": "var(--spectrum-component-height-300)", "desktop": { - "value": "5px" + "value": "48px" }, "mobile": { - "value": "6px" + "value": "60px" } }, - "slider-handle-border-width-down-extra-large": { - "prop": "--spectrum-slider-handle-border-width-down-extra-large", + "tab-item-height-small": { + "prop": "--spectrum-tab-item-height-small", + "ref": "var(--spectrum-component-height-200)", "desktop": { - "value": "8px" + "value": "40px" }, "mobile": { - "value": "11px" + "value": "50px" } }, - "slider-handle-border-width-down-large": { - "prop": "--spectrum-slider-handle-border-width-down-large", + "tab-item-start-to-edge-extra-large": { + "prop": "--spectrum-tab-item-start-to-edge-extra-large", "desktop": { - "value": "7px" + "value": "13px" }, "mobile": { - "value": "9px" + "value": "19px" } }, - "slider-handle-border-width-down-medium": { - "prop": "--spectrum-slider-handle-border-width-down-medium", + "tab-item-start-to-edge-large": { + "prop": "--spectrum-tab-item-start-to-edge-large", "desktop": { - "value": "6px" + "value": "13px" }, "mobile": { - "value": "8px" + "value": "17px" } }, - "slider-handle-border-width-down-small": { - "prop": "--spectrum-slider-handle-border-width-down-small", + "tab-item-start-to-edge-medium": { + "prop": "--spectrum-tab-item-start-to-edge-medium", "desktop": { - "value": "5px" + "value": "12px" }, "mobile": { - "value": "7px" + "value": "15px" } }, - "slider-handle-gap": { - "prop": "--spectrum-slider-handle-gap", - "value": "4px" + "tab-item-start-to-edge-quiet": { + "prop": "--spectrum-tab-item-start-to-edge-quiet", + "value": "0px" }, - "slider-handle-size-extra-large": { - "prop": "--spectrum-slider-handle-size-extra-large", + "tab-item-start-to-edge-small": { + "prop": "--spectrum-tab-item-start-to-edge-small", "desktop": { - "value": "20px" + "value": "12px" }, "mobile": { - "value": "26px" + "value": "13px" } }, - "slider-handle-size-large": { - "prop": "--spectrum-slider-handle-size-large", + "tab-item-to-tab-item-horizontal-extra-large": { + "prop": "--spectrum-tab-item-to-tab-item-horizontal-extra-large", "desktop": { - "value": "18px" + "value": "30px" }, "mobile": { - "value": "22px" + "value": "36px" } }, - "slider-handle-size-medium": { - "prop": "--spectrum-slider-handle-size-medium", + "tab-item-to-tab-item-horizontal-large": { + "prop": "--spectrum-tab-item-to-tab-item-horizontal-large", "desktop": { - "value": "16px" + "value": "27px" }, "mobile": { - "value": "20px" + "value": "33px" } }, - "slider-handle-size-small": { - "prop": "--spectrum-slider-handle-size-small", + "tab-item-to-tab-item-horizontal-medium": { + "prop": "--spectrum-tab-item-to-tab-item-horizontal-medium", "desktop": { - "value": "14px" + "value": "24px" }, "mobile": { - "value": "18px" + "value": "30px" } }, - "slider-track-thickness": { - "prop": "--spectrum-slider-track-thickness", - "value": "2px" - }, - "spacing-100": { - "prop": "--spectrum-spacing-100", - "value": "8px" - }, - "spacing-1000": { - "prop": "--spectrum-spacing-1000", - "value": "96px" - }, - "spacing-200": { - "prop": "--spectrum-spacing-200", - "value": "12px" - }, - "spacing-300": { - "prop": "--spectrum-spacing-300", - "value": "16px" - }, - "spacing-400": { - "prop": "--spectrum-spacing-400", - "value": "24px" - }, - "spacing-50": { - "prop": "--spectrum-spacing-50", - "value": "2px" - }, - "spacing-500": { - "prop": "--spectrum-spacing-500", - "value": "32px" - }, - "spacing-600": { - "prop": "--spectrum-spacing-600", - "value": "40px" - }, - "spacing-700": { - "prop": "--spectrum-spacing-700", - "value": "48px" - }, - "spacing-75": { - "prop": "--spectrum-spacing-75", - "value": "4px" - }, - "spacing-800": { - "prop": "--spectrum-spacing-800", - "value": "64px" - }, - "spacing-900": { - "prop": "--spectrum-spacing-900", - "value": "80px" - }, - "static-black-focus-indicator-color": { - "prop": "--spectrum-static-black-focus-indicator-color", - "ref": "var(--spectrum-black)", - "value": "rgb(0, 0, 0)" - }, - "static-black-text-color": { - "prop": "--spectrum-static-black-text-color", - "ref": "var(--spectrum-black)", - "value": "rgb(0, 0, 0)" - }, - "static-black-track-color": { - "prop": "--spectrum-static-black-track-color", - "ref": "var(--spectrum-transparent-black-300)", - "light": { - "value": "rgba(0, 0, 0, 0.15)" + "tab-item-to-tab-item-horizontal-small": { + "prop": "--spectrum-tab-item-to-tab-item-horizontal-small", + "desktop": { + "value": "21px" }, - "dark": { - "value": "rgba(0, 0, 0, 0.15)" + "mobile": { + "value": "27px" } }, - "static-black-track-indicator-color": { - "prop": "--spectrum-static-black-track-indicator-color", - "ref": "var(--spectrum-transparent-black-900)", - "light": { - "value": "rgba(0, 0, 0, 0.93)" + "tab-item-to-tab-item-vertical-extra-large": { + "prop": "--spectrum-tab-item-to-tab-item-vertical-extra-large", + "desktop": { + "value": "5px" }, - "dark": { - "value": "rgba(0, 0, 0, 0.93)" + "mobile": { + "value": "6px" } }, - "static-white-focus-indicator-color": { - "prop": "--spectrum-static-white-focus-indicator-color", - "ref": "var(--spectrum-white)", - "light": { - "value": "rgb(255, 255, 255)" + "tab-item-to-tab-item-vertical-large": { + "prop": "--spectrum-tab-item-to-tab-item-vertical-large", + "desktop": { + "value": "5px" }, - "dark": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "6px" } }, - "static-white-text-color": { - "prop": "--spectrum-static-white-text-color", - "ref": "var(--spectrum-white)", - "light": { - "value": "rgb(255, 255, 255)" + "tab-item-to-tab-item-vertical-medium": { + "prop": "--spectrum-tab-item-to-tab-item-vertical-medium", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "5px" } }, - "static-white-track-color": { - "prop": "--spectrum-static-white-track-color", - "ref": "var(--spectrum-transparent-white-300)", - "light": { - "value": "rgba(255, 255, 255, 0.17)" + "tab-item-to-tab-item-vertical-small": { + "prop": "--spectrum-tab-item-to-tab-item-vertical-small", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.17)" + "mobile": { + "value": "5px" } }, - "static-white-track-indicator-color": { - "prop": "--spectrum-static-white-track-indicator-color", - "ref": "var(--spectrum-transparent-white-900)", - "light": { - "value": "rgba(255, 255, 255, 0.94)" + "tab-item-top-to-text-compact-extra-large": { + "prop": "--spectrum-tab-item-top-to-text-compact-extra-large", + "desktop": { + "value": "12px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.94)" + "mobile": { + "value": "15px" } }, - "status-light-dot-size-extra-large": { - "prop": "--spectrum-status-light-dot-size-extra-large", + "tab-item-top-to-text-compact-large": { + "prop": "--spectrum-tab-item-top-to-text-compact-large", "desktop": { "value": "10px" }, @@ -10338,374 +13786,345 @@ "value": "12px" } }, - "status-light-dot-size-large": { - "prop": "--spectrum-status-light-dot-size-large", + "tab-item-top-to-text-compact-medium": { + "prop": "--spectrum-tab-item-top-to-text-compact-medium", "desktop": { - "value": "10px" + "value": "6px" }, "mobile": { - "value": "12px" + "value": "9px" } }, - "status-light-dot-size-medium": { - "prop": "--spectrum-status-light-dot-size-medium", + "tab-item-top-to-text-compact-small": { + "prop": "--spectrum-tab-item-top-to-text-compact-small", "desktop": { - "value": "8px" + "value": "4px" }, "mobile": { - "value": "10px" + "value": "5px" } }, - "status-light-dot-size-small": { - "prop": "--spectrum-status-light-dot-size-small", - "value": "8px" - }, - "status-light-top-to-dot-extra-large": { - "prop": "--spectrum-status-light-top-to-dot-extra-large", + "tab-item-top-to-text-extra-large": { + "prop": "--spectrum-tab-item-top-to-text-extra-large", "desktop": { "value": "19px" }, "mobile": { - "value": "24px" + "value": "25px" } }, - "status-light-top-to-dot-large": { - "prop": "--spectrum-status-light-top-to-dot-large", + "tab-item-top-to-text-large": { + "prop": "--spectrum-tab-item-top-to-text-large", "desktop": { - "value": "15px" + "value": "16px" }, "mobile": { - "value": "19px" + "value": "22px" } }, - "status-light-top-to-dot-medium": { - "prop": "--spectrum-status-light-top-to-dot-medium", + "tab-item-top-to-text-medium": { + "prop": "--spectrum-tab-item-top-to-text-medium", "desktop": { - "value": "12px" + "value": "14px" }, "mobile": { - "value": "15px" + "value": "18px" } }, - "status-light-top-to-dot-small": { - "prop": "--spectrum-status-light-top-to-dot-small", + "tab-item-top-to-text-small": { + "prop": "--spectrum-tab-item-top-to-text-small", "desktop": { - "value": "8px" + "value": "11px" }, "mobile": { - "value": "11px" + "value": "14px" } }, - "swatch-border-color": { - "prop": "--spectrum-swatch-border-color", - "ref": "var(--spectrum-gray-900)", - "light": { - "value": "rgb(19, 19, 19)" + "tab-item-top-to-workflow-icon-compact-extra-large": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-extra-large", + "desktop": { + "value": "11px" }, - "dark": { - "value": "rgb(242, 242, 242)" + "mobile": { + "value": "16px" } }, - "swatch-border-opacity": { - "prop": "--spectrum-swatch-border-opacity", - "value": "0.51" - }, - "swatch-disabled-icon-border-color": { - "prop": "--spectrum-swatch-disabled-icon-border-color", - "ref": "var(--spectrum-black)", - "value": "rgb(0, 0, 0)" - }, - "swatch-disabled-icon-border-opacity": { - "prop": "--spectrum-swatch-disabled-icon-border-opacity", - "value": "0.51" - }, - "swatch-rectangle-width-multiplier": { - "prop": "--spectrum-swatch-rectangle-width-multiplier", - "value": "2" - }, - "swatch-size-extra-small": { - "prop": "--spectrum-swatch-size-extra-small", + "tab-item-top-to-workflow-icon-compact-large": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-large", "desktop": { - "value": "16px" + "value": "9px" }, "mobile": { - "value": "20px" + "value": "13px" } }, - "swatch-size-large": { - "prop": "--spectrum-swatch-size-large", + "tab-item-top-to-workflow-icon-compact-medium": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-medium", "desktop": { - "value": "40px" + "value": "7px" }, "mobile": { - "value": "50px" + "value": "9px" } }, - "swatch-size-medium": { - "prop": "--spectrum-swatch-size-medium", + "tab-item-top-to-workflow-icon-compact-small": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-small", "desktop": { - "value": "32px" + "value": "3px" }, "mobile": { - "value": "40px" + "value": "5px" } }, - "swatch-size-small": { - "prop": "--spectrum-swatch-size-small", + "tab-item-top-to-workflow-icon-extra-large": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-extra-large", "desktop": { - "value": "24px" + "value": "19px" }, "mobile": { - "value": "30px" + "value": "26px" } }, - "swatch-slash-thickness-extra-small": { - "prop": "--spectrum-swatch-slash-thickness-extra-small", - "value": "2px" - }, - "swatch-slash-thickness-large": { - "prop": "--spectrum-swatch-slash-thickness-large", - "value": "5px" - }, - "swatch-slash-thickness-medium": { - "prop": "--spectrum-swatch-slash-thickness-medium", - "value": "4px" - }, - "swatch-slash-thickness-small": { - "prop": "--spectrum-swatch-slash-thickness-small", - "value": "3px" - }, - "switch-control-height-extra-large": { - "prop": "--spectrum-switch-control-height-extra-large", + "tab-item-top-to-workflow-icon-large": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-large", "desktop": { - "value": "18px" + "value": "17px" }, "mobile": { - "value": "22px" + "value": "23px" } }, - "switch-control-height-large": { - "prop": "--spectrum-switch-control-height-large", + "tab-item-top-to-workflow-icon-medium": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-medium", "desktop": { - "value": "16px" + "value": "15px" }, "mobile": { - "value": "20px" + "value": "19px" } }, - "switch-control-height-medium": { - "prop": "--spectrum-switch-control-height-medium", + "tab-item-top-to-workflow-icon-small": { + "prop": "--spectrum-tab-item-top-to-workflow-icon-small", "desktop": { - "value": "14px" + "value": "13px" }, "mobile": { - "value": "18px" + "value": "15px" } }, - "switch-control-height-small": { - "prop": "--spectrum-switch-control-height-small", + "table-border-divider-width": { + "prop": "--spectrum-table-border-divider-width", + "value": "1px" + }, + "table-checkbox-to-text": { + "prop": "--spectrum-table-checkbox-to-text", "desktop": { - "value": "12px" + "value": "24px" }, "mobile": { - "value": "16px" + "value": "30px" } }, - "switch-control-width-extra-large": { - "prop": "--spectrum-switch-control-width-extra-large", + "table-column-header-row-bottom-to-text-extra-large": { + "prop": "--spectrum-table-column-header-row-bottom-to-text-extra-large", "desktop": { - "value": "33px" + "value": "13px" }, "mobile": { - "value": "46px" + "value": "17px" } }, - "switch-control-width-large": { - "prop": "--spectrum-switch-control-width-large", + "table-column-header-row-bottom-to-text-large": { + "prop": "--spectrum-table-column-header-row-bottom-to-text-large", "desktop": { - "value": "29px" + "value": "10px" }, "mobile": { - "value": "41px" + "value": "13px" } }, - "switch-control-width-medium": { - "prop": "--spectrum-switch-control-width-medium", + "table-column-header-row-bottom-to-text-medium": { + "prop": "--spectrum-table-column-header-row-bottom-to-text-medium", "desktop": { - "value": "26px" + "value": "8px" }, "mobile": { - "value": "36px" + "value": "10px" } }, - "switch-control-width-small": { - "prop": "--spectrum-switch-control-width-small", + "table-column-header-row-bottom-to-text-small": { + "prop": "--spectrum-table-column-header-row-bottom-to-text-small", "desktop": { - "value": "23px" + "value": "9px" }, "mobile": { - "value": "32px" + "value": "11px" } }, - "switch-top-to-control-extra-large": { - "prop": "--spectrum-switch-top-to-control-extra-large", + "table-column-header-row-top-to-text-extra-large": { + "prop": "--spectrum-table-column-header-row-top-to-text-extra-large", "desktop": { - "value": "15px" + "value": "13px" }, "mobile": { - "value": "19px" + "value": "16px" } }, - "switch-top-to-control-large": { - "prop": "--spectrum-switch-top-to-control-large", + "table-column-header-row-top-to-text-large": { + "prop": "--spectrum-table-column-header-row-top-to-text-large", "desktop": { - "value": "12px" + "value": "10px" }, "mobile": { - "value": "15px" + "value": "13px" } }, - "switch-top-to-control-medium": { - "prop": "--spectrum-switch-top-to-control-medium", + "table-column-header-row-top-to-text-medium": { + "prop": "--spectrum-table-column-header-row-top-to-text-medium", "desktop": { - "value": "9px" + "value": "6px" }, "mobile": { - "value": "11px" + "value": "9px" } }, - "switch-top-to-control-small": { - "prop": "--spectrum-switch-top-to-control-small", + "table-column-header-row-top-to-text-small": { + "prop": "--spectrum-table-column-header-row-top-to-text-small", "desktop": { - "value": "6px" + "value": "8px" }, "mobile": { - "value": "7px" + "value": "10px" } }, - "tab-item-bottom-to-text-compact-extra-large": { - "prop": "--spectrum-tab-item-bottom-to-text-compact-extra-large", + "table-edge-to-content": { + "prop": "--spectrum-table-edge-to-content", + "value": "16px" + }, + "table-header-row-checkbox-to-top-extra-large": { + "prop": "--spectrum-table-header-row-checkbox-to-top-extra-large", "desktop": { - "value": "13px" + "value": "15px" }, "mobile": { - "value": "17px" + "value": "21px" } }, - "tab-item-bottom-to-text-compact-large": { - "prop": "--spectrum-tab-item-bottom-to-text-compact-large", + "table-header-row-checkbox-to-top-large": { + "prop": "--spectrum-table-header-row-checkbox-to-top-large", "desktop": { "value": "12px" }, "mobile": { - "value": "14px" + "value": "17px" } }, - "tab-item-bottom-to-text-compact-medium": { - "prop": "--spectrum-tab-item-bottom-to-text-compact-medium", + "table-header-row-checkbox-to-top-medium": { + "prop": "--spectrum-table-header-row-checkbox-to-top-medium", "desktop": { "value": "8px" }, "mobile": { - "value": "10px" + "value": "11px" } }, - "tab-item-bottom-to-text-compact-small": { - "prop": "--spectrum-tab-item-bottom-to-text-compact-small", + "table-header-row-checkbox-to-top-small": { + "prop": "--spectrum-table-header-row-checkbox-to-top-small", "desktop": { - "value": "5px" + "value": "10px" }, "mobile": { - "value": "6px" + "value": "14px" } }, - "tab-item-bottom-to-text-extra-large": { - "prop": "--spectrum-tab-item-bottom-to-text-extra-large", + "table-row-bottom-to-text-extra-large": { + "prop": "--spectrum-table-row-bottom-to-text-extra-large", "desktop": { - "value": "20px" + "value": "17px" }, "mobile": { - "value": "25px" + "value": "22px" } }, - "tab-item-bottom-to-text-large": { - "prop": "--spectrum-tab-item-bottom-to-text-large", + "table-row-bottom-to-text-extra-large-compact": { + "prop": "--spectrum-table-row-bottom-to-text-extra-large-compact", + "ref": "var(--spectrum-component-bottom-to-text-300)", "desktop": { - "value": "18px" + "value": "14px" }, "mobile": { - "value": "22px" + "value": "18px" } }, - "tab-item-bottom-to-text-medium": { - "prop": "--spectrum-tab-item-bottom-to-text-medium", + "table-row-bottom-to-text-extra-large-regular": { + "prop": "--spectrum-table-row-bottom-to-text-extra-large-regular", + "ref": "var(--spectrum-table-row-bottom-to-text-extra-large)", "desktop": { - "value": "14px" + "value": "17px" }, "mobile": { - "value": "19px" + "value": "22px" } }, - "tab-item-bottom-to-text-small": { - "prop": "--spectrum-tab-item-bottom-to-text-small", + "table-row-bottom-to-text-extra-large-spacious": { + "prop": "--spectrum-table-row-bottom-to-text-extra-large-spacious", "desktop": { - "value": "12px" + "value": "21px" }, "mobile": { - "value": "15px" + "value": "27px" } }, - "tab-item-compact-height-extra-large": { - "prop": "--spectrum-tab-item-compact-height-extra-large", - "ref": "var(--spectrum-component-height-300)", + "table-row-bottom-to-text-large": { + "prop": "--spectrum-table-row-bottom-to-text-large", "desktop": { - "value": "48px" + "value": "14px" }, "mobile": { - "value": "60px" + "value": "18px" } }, - "tab-item-compact-height-large": { - "prop": "--spectrum-tab-item-compact-height-large", - "ref": "var(--spectrum-component-height-200)", + "table-row-bottom-to-text-large-compact": { + "prop": "--spectrum-table-row-bottom-to-text-large-compact", + "ref": "var(--spectrum-component-bottom-to-text-200)", "desktop": { - "value": "40px" + "value": "11px" }, "mobile": { - "value": "50px" + "value": "14px" } }, - "tab-item-compact-height-medium": { - "prop": "--spectrum-tab-item-compact-height-medium", - "ref": "var(--spectrum-component-height-100)", + "table-row-bottom-to-text-large-regular": { + "prop": "--spectrum-table-row-bottom-to-text-large-regular", + "ref": "var(--spectrum-table-row-bottom-to-text-large)", "desktop": { - "value": "32px" + "value": "14px" }, "mobile": { - "value": "40px" + "value": "18px" } }, - "tab-item-compact-height-small": { - "prop": "--spectrum-tab-item-compact-height-small", - "ref": "var(--spectrum-component-height-75)", + "table-row-bottom-to-text-large-spacious": { + "prop": "--spectrum-table-row-bottom-to-text-large-spacious", "desktop": { - "value": "24px" + "value": "18px" }, "mobile": { - "value": "30px" + "value": "23px" } }, - "tab-item-focus-indicator-gap-extra-large": { - "prop": "--spectrum-tab-item-focus-indicator-gap-extra-large", + "table-row-bottom-to-text-medium": { + "prop": "--spectrum-table-row-bottom-to-text-medium", "desktop": { - "value": "10px" + "value": "13px" }, "mobile": { - "value": "12px" + "value": "15px" } }, - "tab-item-focus-indicator-gap-large": { - "prop": "--spectrum-tab-item-focus-indicator-gap-large", + "table-row-bottom-to-text-medium-compact": { + "prop": "--spectrum-table-row-bottom-to-text-medium-compact", + "ref": "var(--spectrum-component-bottom-to-text-100)", "desktop": { "value": "9px" }, @@ -10713,326 +14132,341 @@ "value": "11px" } }, - "tab-item-focus-indicator-gap-medium": { - "prop": "--spectrum-tab-item-focus-indicator-gap-medium", + "table-row-bottom-to-text-medium-regular": { + "prop": "--spectrum-table-row-bottom-to-text-medium-regular", + "ref": "var(--spectrum-table-row-bottom-to-text-medium)", "desktop": { - "value": "8px" + "value": "13px" }, "mobile": { - "value": "10px" + "value": "15px" } }, - "tab-item-focus-indicator-gap-small": { - "prop": "--spectrum-tab-item-focus-indicator-gap-small", + "table-row-bottom-to-text-medium-spacious": { + "prop": "--spectrum-table-row-bottom-to-text-medium-spacious", "desktop": { - "value": "7px" + "value": "16px" }, "mobile": { - "value": "9px" + "value": "18px" } }, - "tab-item-height-extra-large": { - "prop": "--spectrum-tab-item-height-extra-large", - "ref": "var(--spectrum-component-height-500)", + "table-row-bottom-to-text-small": { + "prop": "--spectrum-table-row-bottom-to-text-small", "desktop": { - "value": "64px" + "value": "9px" }, "mobile": { - "value": "80px" + "value": "11px" } }, - "tab-item-height-large": { - "prop": "--spectrum-tab-item-height-large", - "ref": "var(--spectrum-component-height-400)", + "table-row-bottom-to-text-small-compact": { + "prop": "--spectrum-table-row-bottom-to-text-small-compact", + "ref": "var(--spectrum-component-bottom-to-text-75)", "desktop": { - "value": "56px" + "value": "5px" }, "mobile": { - "value": "70px" + "value": "6px" } }, - "tab-item-height-medium": { - "prop": "--spectrum-tab-item-height-medium", - "ref": "var(--spectrum-component-height-300)", + "table-row-bottom-to-text-small-regular": { + "prop": "--spectrum-table-row-bottom-to-text-small-regular", + "ref": "var(--spectrum-table-row-bottom-to-text-small)", "desktop": { - "value": "48px" + "value": "9px" }, "mobile": { - "value": "60px" + "value": "11px" } }, - "tab-item-height-small": { - "prop": "--spectrum-tab-item-height-small", - "ref": "var(--spectrum-component-height-200)", + "table-row-bottom-to-text-small-spacious": { + "prop": "--spectrum-table-row-bottom-to-text-small-spacious", "desktop": { - "value": "40px" + "value": "13px" }, "mobile": { - "value": "50px" + "value": "16px" } }, - "tab-item-start-to-edge-extra-large": { - "prop": "--spectrum-tab-item-start-to-edge-extra-large", + "table-row-checkbox-to-top-extra-large": { + "prop": "--spectrum-table-row-checkbox-to-top-extra-large", "desktop": { - "value": "13px" + "value": "19px" }, "mobile": { - "value": "19px" + "value": "26px" } }, - "tab-item-start-to-edge-large": { - "prop": "--spectrum-tab-item-start-to-edge-large", + "table-row-checkbox-to-top-extra-large-compact": { + "prop": "--spectrum-table-row-checkbox-to-top-extra-large-compact", "desktop": { - "value": "13px" + "value": "15px" }, "mobile": { - "value": "17px" + "value": "21px" } }, - "tab-item-start-to-edge-medium": { - "prop": "--spectrum-tab-item-start-to-edge-medium", + "table-row-checkbox-to-top-extra-large-regular": { + "prop": "--spectrum-table-row-checkbox-to-top-extra-large-regular", + "ref": "var(--spectrum-table-row-checkbox-to-top-extra-large)", "desktop": { - "value": "12px" + "value": "19px" }, "mobile": { - "value": "15px" + "value": "26px" } }, - "tab-item-start-to-edge-quiet": { - "prop": "--spectrum-tab-item-start-to-edge-quiet", - "value": "0px" - }, - "tab-item-start-to-edge-small": { - "prop": "--spectrum-tab-item-start-to-edge-small", + "table-row-checkbox-to-top-extra-large-spacious": { + "prop": "--spectrum-table-row-checkbox-to-top-extra-large-spacious", "desktop": { - "value": "12px" + "value": "23px" }, "mobile": { - "value": "13px" + "value": "31px" } }, - "tab-item-to-tab-item-horizontal-extra-large": { - "prop": "--spectrum-tab-item-to-tab-item-horizontal-extra-large", + "table-row-checkbox-to-top-large": { + "prop": "--spectrum-table-row-checkbox-to-top-large", "desktop": { - "value": "30px" + "value": "16px" }, "mobile": { - "value": "36px" + "value": "22px" } }, - "tab-item-to-tab-item-horizontal-large": { - "prop": "--spectrum-tab-item-to-tab-item-horizontal-large", + "table-row-checkbox-to-top-large-compact": { + "prop": "--spectrum-table-row-checkbox-to-top-large-compact", "desktop": { - "value": "27px" + "value": "12px" }, "mobile": { - "value": "33px" + "value": "17px" } }, - "tab-item-to-tab-item-horizontal-medium": { - "prop": "--spectrum-tab-item-to-tab-item-horizontal-medium", + "table-row-checkbox-to-top-large-regular": { + "prop": "--spectrum-table-row-checkbox-to-top-large-regular", + "ref": "var(--spectrum-table-row-checkbox-to-top-large)", "desktop": { - "value": "24px" + "value": "16px" }, "mobile": { - "value": "30px" + "value": "22px" } }, - "tab-item-to-tab-item-horizontal-small": { - "prop": "--spectrum-tab-item-to-tab-item-horizontal-small", + "table-row-checkbox-to-top-large-spacious": { + "prop": "--spectrum-table-row-checkbox-to-top-large-spacious", "desktop": { - "value": "21px" + "value": "20px" }, "mobile": { "value": "27px" } }, - "tab-item-to-tab-item-vertical-extra-large": { - "prop": "--spectrum-tab-item-to-tab-item-vertical-extra-large", + "table-row-checkbox-to-top-medium": { + "prop": "--spectrum-table-row-checkbox-to-top-medium", "desktop": { - "value": "5px" + "value": "12px" }, "mobile": { - "value": "6px" + "value": "16px" } }, - "tab-item-to-tab-item-vertical-large": { - "prop": "--spectrum-tab-item-to-tab-item-vertical-large", + "table-row-checkbox-to-top-medium-compact": { + "prop": "--spectrum-table-row-checkbox-to-top-medium-compact", "desktop": { - "value": "5px" + "value": "8px" }, "mobile": { - "value": "6px" + "value": "11px" + } + }, + "table-row-checkbox-to-top-medium-regular": { + "prop": "--spectrum-table-row-checkbox-to-top-medium-regular", + "ref": "var(--spectrum-table-row-checkbox-to-top-medium)", + "desktop": { + "value": "12px" + }, + "mobile": { + "value": "16px" } }, - "tab-item-to-tab-item-vertical-medium": { - "prop": "--spectrum-tab-item-to-tab-item-vertical-medium", + "table-row-checkbox-to-top-medium-spacious": { + "prop": "--spectrum-table-row-checkbox-to-top-medium-spacious", "desktop": { - "value": "4px" + "value": "16px" }, "mobile": { - "value": "5px" + "value": "21px" } }, - "tab-item-to-tab-item-vertical-small": { - "prop": "--spectrum-tab-item-to-tab-item-vertical-small", + "table-row-checkbox-to-top-small": { + "prop": "--spectrum-table-row-checkbox-to-top-small", "desktop": { - "value": "4px" + "value": "10px" }, "mobile": { - "value": "5px" + "value": "14px" } }, - "tab-item-top-to-text-compact-extra-large": { - "prop": "--spectrum-tab-item-top-to-text-compact-extra-large", + "table-row-checkbox-to-top-small-compact": { + "prop": "--spectrum-table-row-checkbox-to-top-small-compact", "desktop": { - "value": "12px" + "value": "6px" }, "mobile": { - "value": "15px" + "value": "9px" } }, - "tab-item-top-to-text-compact-large": { - "prop": "--spectrum-tab-item-top-to-text-compact-large", + "table-row-checkbox-to-top-small-regular": { + "prop": "--spectrum-table-row-checkbox-to-top-small-regular", + "ref": "var(--spectrum-table-row-checkbox-to-top-small)", "desktop": { "value": "10px" }, "mobile": { - "value": "12px" + "value": "14px" } }, - "tab-item-top-to-text-compact-medium": { - "prop": "--spectrum-tab-item-top-to-text-compact-medium", + "table-row-checkbox-to-top-small-spacious": { + "prop": "--spectrum-table-row-checkbox-to-top-small-spacious", "desktop": { - "value": "6px" + "value": "14px" }, "mobile": { - "value": "9px" + "value": "19px" } }, - "tab-item-top-to-text-compact-small": { - "prop": "--spectrum-tab-item-top-to-text-compact-small", + "table-row-down-opacity": { + "prop": "--spectrum-table-row-down-opacity", + "value": "0.1" + }, + "table-row-height-extra-large": { + "prop": "--spectrum-table-row-height-extra-large", "desktop": { - "value": "4px" + "value": "56px" }, "mobile": { - "value": "5px" + "value": "70px" } }, - "tab-item-top-to-text-extra-large": { - "prop": "--spectrum-tab-item-top-to-text-extra-large", + "table-row-height-extra-large-compact": { + "prop": "--spectrum-table-row-height-extra-large-compact", + "ref": "var(--spectrum-component-height-300)", "desktop": { - "value": "19px" + "value": "48px" }, "mobile": { - "value": "25px" + "value": "60px" } }, - "tab-item-top-to-text-large": { - "prop": "--spectrum-tab-item-top-to-text-large", + "table-row-height-extra-large-regular": { + "prop": "--spectrum-table-row-height-extra-large-regular", + "ref": "var(--spectrum-table-row-height-extra-large)", "desktop": { - "value": "16px" + "value": "56px" }, "mobile": { - "value": "22px" + "value": "70px" } }, - "tab-item-top-to-text-medium": { - "prop": "--spectrum-tab-item-top-to-text-medium", + "table-row-height-extra-large-spacious": { + "prop": "--spectrum-table-row-height-extra-large-spacious", "desktop": { - "value": "14px" + "value": "64px" }, "mobile": { - "value": "18px" + "value": "80px" } }, - "tab-item-top-to-text-small": { - "prop": "--spectrum-tab-item-top-to-text-small", + "table-row-height-large": { + "prop": "--spectrum-table-row-height-large", "desktop": { - "value": "11px" + "value": "48px" }, "mobile": { - "value": "14px" + "value": "60px" } }, - "tab-item-top-to-workflow-icon-compact-extra-large": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-extra-large", + "table-row-height-large-compact": { + "prop": "--spectrum-table-row-height-large-compact", + "ref": "var(--spectrum-component-height-200)", "desktop": { - "value": "11px" + "value": "40px" }, "mobile": { - "value": "16px" + "value": "50px" } }, - "tab-item-top-to-workflow-icon-compact-large": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-large", + "table-row-height-large-regular": { + "prop": "--spectrum-table-row-height-large-regular", + "ref": "var(--spectrum-table-row-height-large)", "desktop": { - "value": "9px" + "value": "48px" }, "mobile": { - "value": "13px" + "value": "60px" } }, - "tab-item-top-to-workflow-icon-compact-medium": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-medium", + "table-row-height-large-spacious": { + "prop": "--spectrum-table-row-height-large-spacious", "desktop": { - "value": "7px" + "value": "56px" }, "mobile": { - "value": "9px" + "value": "70px" } }, - "tab-item-top-to-workflow-icon-compact-small": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-compact-small", + "table-row-height-medium": { + "prop": "--spectrum-table-row-height-medium", "desktop": { - "value": "3px" + "value": "40px" }, "mobile": { - "value": "5px" + "value": "50px" } }, - "tab-item-top-to-workflow-icon-extra-large": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-extra-large", + "table-row-height-medium-compact": { + "prop": "--spectrum-table-row-height-medium-compact", + "ref": "var(--spectrum-component-height-100)", "desktop": { - "value": "19px" + "value": "32px" }, "mobile": { - "value": "26px" + "value": "40px" } }, - "tab-item-top-to-workflow-icon-large": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-large", + "table-row-height-medium-regular": { + "prop": "--spectrum-table-row-height-medium-regular", + "ref": "var(--spectrum-table-row-height-medium)", "desktop": { - "value": "17px" + "value": "40px" }, "mobile": { - "value": "23px" + "value": "50px" } }, - "tab-item-top-to-workflow-icon-medium": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-medium", + "table-row-height-medium-spacious": { + "prop": "--spectrum-table-row-height-medium-spacious", "desktop": { - "value": "15px" + "value": "48px" }, "mobile": { - "value": "19px" + "value": "60px" } }, - "tab-item-top-to-workflow-icon-small": { - "prop": "--spectrum-tab-item-top-to-workflow-icon-small", + "table-row-height-small": { + "prop": "--spectrum-table-row-height-small", "desktop": { - "value": "13px" + "value": "32px" }, "mobile": { - "value": "15px" + "value": "40px" } }, - "table-border-divider-width": { - "prop": "--spectrum-table-border-divider-width", - "value": "1px" - }, - "table-checkbox-to-text": { - "prop": "--spectrum-table-checkbox-to-text", + "table-row-height-small-compact": { + "prop": "--spectrum-table-row-height-small-compact", + "ref": "var(--spectrum-component-height-75)", "desktop": { "value": "24px" }, @@ -11040,111 +14474,137 @@ "value": "30px" } }, - "table-column-header-row-bottom-to-text-extra-large": { - "prop": "--spectrum-table-column-header-row-bottom-to-text-extra-large", + "table-row-height-small-regular": { + "prop": "--spectrum-table-row-height-small-regular", + "ref": "var(--spectrum-table-row-height-small)", "desktop": { - "value": "13px" + "value": "32px" }, "mobile": { - "value": "17px" + "value": "40px" } }, - "table-column-header-row-bottom-to-text-large": { - "prop": "--spectrum-table-column-header-row-bottom-to-text-large", + "table-row-height-small-spacious": { + "prop": "--spectrum-table-row-height-small-spacious", "desktop": { - "value": "10px" + "value": "40px" }, "mobile": { - "value": "13px" + "value": "50px" } }, - "table-column-header-row-bottom-to-text-medium": { - "prop": "--spectrum-table-column-header-row-bottom-to-text-medium", + "table-row-hover-color": { + "prop": "--spectrum-table-row-hover-color", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" + }, + "dark": { + "value": "rgb(242, 242, 242)" + } + }, + "table-row-hover-opacity": { + "prop": "--spectrum-table-row-hover-opacity", + "value": "0.07" + }, + "table-row-top-to-text-extra-large": { + "prop": "--spectrum-table-row-top-to-text-extra-large", "desktop": { - "value": "8px" + "value": "17px" }, "mobile": { - "value": "10px" + "value": "21px" } }, - "table-column-header-row-bottom-to-text-small": { - "prop": "--spectrum-table-column-header-row-bottom-to-text-small", + "table-row-top-to-text-extra-large-compact": { + "prop": "--spectrum-table-row-top-to-text-extra-large-compact", + "ref": "var(--spectrum-component-top-to-text-300)", "desktop": { - "value": "9px" + "value": "12px" }, "mobile": { - "value": "11px" + "value": "15px" } }, - "table-column-header-row-top-to-text-extra-large": { - "prop": "--spectrum-table-column-header-row-top-to-text-extra-large", + "table-row-top-to-text-extra-large-regular": { + "prop": "--spectrum-table-row-top-to-text-extra-large-regular", + "ref": "var(--spectrum-table-row-top-to-text-extra-large)", "desktop": { - "value": "13px" + "value": "17px" }, "mobile": { - "value": "16px" + "value": "21px" } }, - "table-column-header-row-top-to-text-large": { - "prop": "--spectrum-table-column-header-row-top-to-text-large", + "table-row-top-to-text-extra-large-spacious": { + "prop": "--spectrum-table-row-top-to-text-extra-large-spacious", "desktop": { - "value": "10px" + "value": "21px" }, "mobile": { - "value": "13px" + "value": "26px" } }, - "table-column-header-row-top-to-text-medium": { - "prop": "--spectrum-table-column-header-row-top-to-text-medium", + "table-row-top-to-text-large": { + "prop": "--spectrum-table-row-top-to-text-large", "desktop": { - "value": "7px" + "value": "14px" }, "mobile": { - "value": "9px" + "value": "18px" } }, - "table-column-header-row-top-to-text-small": { - "prop": "--spectrum-table-column-header-row-top-to-text-small", + "table-row-top-to-text-large-compact": { + "prop": "--spectrum-table-row-top-to-text-large-compact", + "ref": "var(--spectrum-component-top-to-text-200)", "desktop": { - "value": "8px" + "value": "9px" }, "mobile": { - "value": "10px" + "value": "12px" } }, - "table-edge-to-content": { - "prop": "--spectrum-table-edge-to-content", - "value": "16px" + "table-row-top-to-text-large-regular": { + "prop": "--spectrum-table-row-top-to-text-large-regular", + "ref": "var(--spectrum-table-row-top-to-text-large)", + "desktop": { + "value": "14px" + }, + "mobile": { + "value": "18px" + } }, - "table-header-row-checkbox-to-top-extra-large": { - "prop": "--spectrum-table-header-row-checkbox-to-top-extra-large", + "table-row-top-to-text-large-spacious": { + "prop": "--spectrum-table-row-top-to-text-large-spacious", "desktop": { - "value": "15px" + "value": "18px" }, "mobile": { - "value": "21px" + "value": "23px" } }, - "table-header-row-checkbox-to-top-large": { - "prop": "--spectrum-table-header-row-checkbox-to-top-large", + "table-row-top-to-text-medium": { + "prop": "--spectrum-table-row-top-to-text-medium", "desktop": { - "value": "12px" + "value": "10px" }, "mobile": { - "value": "17px" + "value": "14px" } }, - "table-header-row-checkbox-to-top-medium": { - "prop": "--spectrum-table-header-row-checkbox-to-top-medium", + "table-row-top-to-text-medium-compact": { + "prop": "--spectrum-table-row-top-to-text-medium-compact", + "ref": "var(--spectrum-component-top-to-text-100)", "desktop": { - "value": "9px" + "value": "6px" }, "mobile": { - "value": "13px" + "value": "8px" } }, - "table-header-row-checkbox-to-top-small": { - "prop": "--spectrum-table-header-row-checkbox-to-top-small", + "table-row-top-to-text-medium-regular": { + "prop": "--spectrum-table-row-top-to-text-medium-regular", + "ref": "var(--spectrum-table-row-top-to-text-medium)", "desktop": { "value": "10px" }, @@ -11152,424 +14612,469 @@ "value": "14px" } }, - "table-row-bottom-to-text-extra-large-compact": { - "prop": "--spectrum-table-row-bottom-to-text-extra-large-compact", - "ref": "var(--spectrum-component-bottom-to-text-300)", + "table-row-top-to-text-medium-spacious": { + "prop": "--spectrum-table-row-top-to-text-medium-spacious", "desktop": { - "value": "14px" + "value": "15px" }, "mobile": { - "value": "18px" + "value": "16px" } }, - "table-row-bottom-to-text-extra-large-regular": { - "prop": "--spectrum-table-row-bottom-to-text-extra-large-regular", + "table-row-top-to-text-small": { + "prop": "--spectrum-table-row-top-to-text-small", "desktop": { - "value": "17px" + "value": "8px" }, "mobile": { - "value": "22px" + "value": "10px" } }, - "table-row-bottom-to-text-extra-large-spacious": { - "prop": "--spectrum-table-row-bottom-to-text-extra-large-spacious", + "table-row-top-to-text-small-compact": { + "prop": "--spectrum-table-row-top-to-text-small-compact", + "ref": "var(--spectrum-component-top-to-text-75)", "desktop": { - "value": "21px" + "value": "4px" }, "mobile": { - "value": "27px" + "value": "5px" } }, - "table-row-bottom-to-text-large-compact": { - "prop": "--spectrum-table-row-bottom-to-text-large-compact", - "ref": "var(--spectrum-component-bottom-to-text-200)", + "table-row-top-to-text-small-regular": { + "prop": "--spectrum-table-row-top-to-text-small-regular", + "ref": "var(--spectrum-table-row-top-to-text-small)", "desktop": { - "value": "11px" + "value": "8px" }, "mobile": { - "value": "14px" + "value": "10px" } }, - "table-row-bottom-to-text-large-regular": { - "prop": "--spectrum-table-row-bottom-to-text-large-regular", + "table-row-top-to-text-small-spacious": { + "prop": "--spectrum-table-row-top-to-text-small-spacious", "desktop": { - "value": "14px" + "value": "12px" }, "mobile": { - "value": "18px" + "value": "15px" } }, - "table-row-bottom-to-text-large-spacious": { - "prop": "--spectrum-table-row-bottom-to-text-large-spacious", + "table-section-header-row-height-extra-large": { + "prop": "--spectrum-table-section-header-row-height-extra-large", "desktop": { - "value": "18px" + "value": "48px" }, "mobile": { - "value": "23px" + "value": "60px" } }, - "table-row-bottom-to-text-medium-compact": { - "prop": "--spectrum-table-row-bottom-to-text-medium-compact", - "ref": "var(--spectrum-component-bottom-to-text-100)", + "table-section-header-row-height-large": { + "prop": "--spectrum-table-section-header-row-height-large", "desktop": { - "value": "9px" + "value": "40px" }, "mobile": { - "value": "11px" + "value": "50px" } }, - "table-row-bottom-to-text-medium-regular": { - "prop": "--spectrum-table-row-bottom-to-text-medium-regular", + "table-section-header-row-height-medium": { + "prop": "--spectrum-table-section-header-row-height-medium", "desktop": { - "value": "12px" + "value": "32px" }, "mobile": { - "value": "15px" + "value": "40px" } }, - "table-row-bottom-to-text-medium-spacious": { - "prop": "--spectrum-table-row-bottom-to-text-medium-spacious", + "table-section-header-row-height-small": { + "prop": "--spectrum-table-section-header-row-height-small", "desktop": { - "value": "16px" + "value": "24px" }, "mobile": { - "value": "18px" + "value": "30px" } }, - "table-row-bottom-to-text-small-compact": { - "prop": "--spectrum-table-row-bottom-to-text-small-compact", - "ref": "var(--spectrum-component-bottom-to-text-75)", - "desktop": { - "value": "5px" + "table-selected-row-background-color": { + "prop": "--spectrum-table-selected-row-background-color", + "ref": "var(--spectrum-informative-color-800)", + "light": { + "value": "rgb(59, 99, 251)" }, - "mobile": { - "value": "6px" + "dark": { + "value": "rgb(64, 105, 253)" } }, - "table-row-bottom-to-text-small-regular": { - "prop": "--spectrum-table-row-bottom-to-text-small-regular", - "desktop": { - "value": "9px" + "table-selected-row-background-color-non-emphasized": { + "prop": "--spectrum-table-selected-row-background-color-non-emphasized", + "ref": "var(--spectrum-neutral-background-color-selected-default)", + "light": { + "value": "rgb(41, 41, 41)" }, - "mobile": { - "value": "11px" + "dark": { + "value": "rgb(219, 219, 219)" } }, - "table-row-bottom-to-text-small-spacious": { - "prop": "--spectrum-table-row-bottom-to-text-small-spacious", + "table-selected-row-background-opacity": { + "prop": "--spectrum-table-selected-row-background-opacity", + "value": "0.1" + }, + "table-selected-row-background-opacity-hover": { + "prop": "--spectrum-table-selected-row-background-opacity-hover", + "value": "0.15" + }, + "table-selected-row-background-opacity-non-emphasized": { + "prop": "--spectrum-table-selected-row-background-opacity-non-emphasized", + "value": "0.1" + }, + "table-selected-row-background-opacity-non-emphasized-hover": { + "prop": "--spectrum-table-selected-row-background-opacity-non-emphasized-hover", + "value": "0.15" + }, + "table-thumbnail-to-top-minimum-extra-large": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large", "desktop": { - "value": "13px" + "value": "8px" }, "mobile": { - "value": "16px" + "value": "10px" } }, - "table-row-checkbox-to-top-extra-large-compact": { - "prop": "--spectrum-table-row-checkbox-to-top-extra-large-compact", + "table-thumbnail-to-top-minimum-extra-large-compact": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-compact", "desktop": { - "value": "15px" + "value": "8px" }, "mobile": { - "value": "21px" + "value": "10px" } }, - "table-row-checkbox-to-top-extra-large-regular": { - "prop": "--spectrum-table-row-checkbox-to-top-extra-large-regular", + "table-thumbnail-to-top-minimum-extra-large-regular": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-regular", + "ref": "var(--spectrum-table-thumbnail-to-top-minimum-extra-large)", "desktop": { - "value": "19px" + "value": "8px" }, "mobile": { - "value": "26px" + "value": "10px" } }, - "table-row-checkbox-to-top-extra-large-spacious": { - "prop": "--spectrum-table-row-checkbox-to-top-extra-large-spacious", + "table-thumbnail-to-top-minimum-extra-large-spacious": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious", "desktop": { - "value": "23px" + "value": "10px" }, "mobile": { - "value": "31px" + "value": "12px" } }, - "table-row-checkbox-to-top-large-compact": { - "prop": "--spectrum-table-row-checkbox-to-top-large-compact", + "table-thumbnail-to-top-minimum-large": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-large", "desktop": { - "value": "12px" + "value": "8px" }, "mobile": { - "value": "17px" + "value": "10px" } }, - "table-row-checkbox-to-top-large-regular": { - "prop": "--spectrum-table-row-checkbox-to-top-large-regular", + "table-thumbnail-to-top-minimum-large-compact": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-large-compact", "desktop": { - "value": "16px" + "value": "7px" }, "mobile": { - "value": "22px" + "value": "9px" } }, - "table-row-checkbox-to-top-large-spacious": { - "prop": "--spectrum-table-row-checkbox-to-top-large-spacious", + "table-thumbnail-to-top-minimum-large-regular": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-large-regular", + "ref": "var(--spectrum-table-thumbnail-to-top-minimum-large)", "desktop": { - "value": "20px" + "value": "8px" }, "mobile": { - "value": "27px" + "value": "10px" } }, - "table-row-checkbox-to-top-medium-compact": { - "prop": "--spectrum-table-row-checkbox-to-top-medium-compact", + "table-thumbnail-to-top-minimum-large-spacious": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-large-spacious", "desktop": { - "value": "9px" + "value": "8px" }, "mobile": { - "value": "13px" + "value": "10px" } }, - "table-row-checkbox-to-top-medium-regular": { - "prop": "--spectrum-table-row-checkbox-to-top-medium-regular", + "table-thumbnail-to-top-minimum-medium": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-medium", "desktop": { - "value": "13px" + "value": "7px" }, "mobile": { - "value": "18px" + "value": "9px" } }, - "table-row-checkbox-to-top-medium-spacious": { - "prop": "--spectrum-table-row-checkbox-to-top-medium-spacious", + "table-thumbnail-to-top-minimum-medium-compact": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-compact", "desktop": { - "value": "17px" + "value": "5px" }, "mobile": { - "value": "23px" + "value": "6px" } }, - "table-row-checkbox-to-top-small-compact": { - "prop": "--spectrum-table-row-checkbox-to-top-small-compact", + "table-thumbnail-to-top-minimum-medium-regular": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-regular", + "ref": "var(--spectrum-table-thumbnail-to-top-minimum-medium)", "desktop": { - "value": "6px" + "value": "7px" }, "mobile": { "value": "9px" } }, - "table-row-checkbox-to-top-small-regular": { - "prop": "--spectrum-table-row-checkbox-to-top-small-regular", + "table-thumbnail-to-top-minimum-medium-spacious": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-spacious", "desktop": { - "value": "10px" + "value": "8px" }, "mobile": { - "value": "14px" + "value": "10px" } }, - "table-row-checkbox-to-top-small-spacious": { - "prop": "--spectrum-table-row-checkbox-to-top-small-spacious", + "table-thumbnail-to-top-minimum-small": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-small", "desktop": { - "value": "14px" + "value": "5px" }, "mobile": { - "value": "19px" + "value": "6px" } }, - "table-row-down-opacity": { - "prop": "--spectrum-table-row-down-opacity", - "value": "0.1" + "table-thumbnail-to-top-minimum-small-compact": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-small-compact", + "desktop": { + "value": "4px" + }, + "mobile": { + "value": "5px" + } }, - "table-row-height-extra-large-compact": { - "prop": "--spectrum-table-row-height-extra-large-compact", - "ref": "var(--spectrum-component-height-300)", + "table-thumbnail-to-top-minimum-small-regular": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-small-regular", + "ref": "var(--spectrum-table-thumbnail-to-top-minimum-small)", "desktop": { - "value": "48px" + "value": "5px" }, "mobile": { - "value": "60px" + "value": "6px" } }, - "table-row-height-extra-large-regular": { - "prop": "--spectrum-table-row-height-extra-large-regular", + "table-thumbnail-to-top-minimum-small-spacious": { + "prop": "--spectrum-table-thumbnail-to-top-minimum-small-spacious", "desktop": { - "value": "56px" + "value": "7px" }, "mobile": { - "value": "70px" + "value": "9px" } }, - "table-row-height-extra-large-spacious": { - "prop": "--spectrum-table-row-height-extra-large-spacious", + "tag-edge-to-clear-icon-large": { + "prop": "--spectrum-tag-edge-to-clear-icon-large", "desktop": { - "value": "64px" + "value": "15px" }, "mobile": { - "value": "80px" + "value": "19px" } }, - "table-row-height-large-compact": { - "prop": "--spectrum-table-row-height-large-compact", - "ref": "var(--spectrum-component-height-200)", + "tag-edge-to-clear-icon-medium": { + "prop": "--spectrum-tag-edge-to-clear-icon-medium", "desktop": { - "value": "40px" + "value": "12px" }, "mobile": { - "value": "50px" + "value": "15px" } }, - "table-row-height-large-regular": { - "prop": "--spectrum-table-row-height-large-regular", + "tag-edge-to-clear-icon-small": { + "prop": "--spectrum-tag-edge-to-clear-icon-small", "desktop": { - "value": "48px" + "value": "8px" }, "mobile": { - "value": "60px" + "value": "10px" } }, - "table-row-height-large-spacious": { - "prop": "--spectrum-table-row-height-large-spacious", + "tag-label-to-clear-icon-large": { + "prop": "--spectrum-tag-label-to-clear-icon-large", "desktop": { - "value": "56px" + "value": "15px" }, "mobile": { - "value": "70px" + "value": "19px" } }, - "table-row-height-medium-compact": { - "prop": "--spectrum-table-row-height-medium-compact", - "ref": "var(--spectrum-component-height-100)", + "tag-label-to-clear-icon-medium": { + "prop": "--spectrum-tag-label-to-clear-icon-medium", "desktop": { - "value": "32px" + "value": "12px" }, "mobile": { - "value": "40px" + "value": "15px" } }, - "table-row-height-medium-regular": { - "prop": "--spectrum-table-row-height-medium-regular", + "tag-label-to-clear-icon-small": { + "prop": "--spectrum-tag-label-to-clear-icon-small", "desktop": { - "value": "40px" + "value": "8px" }, "mobile": { - "value": "50px" + "value": "10px" } }, - "table-row-height-medium-spacious": { - "prop": "--spectrum-table-row-height-medium-spacious", + "tag-maximum-width-multiplier": { + "prop": "--spectrum-tag-maximum-width-multiplier", + "value": 7 + }, + "tag-minimum-width-large": { + "prop": "--spectrum-tag-minimum-width-large", "desktop": { - "value": "48px" + "value": "33px" }, "mobile": { - "value": "60px" + "value": "42px" } }, - "table-row-height-small-compact": { - "prop": "--spectrum-table-row-height-small-compact", - "ref": "var(--spectrum-component-height-75)", + "tag-minimum-width-medium": { + "prop": "--spectrum-tag-minimum-width-medium", "desktop": { - "value": "24px" + "value": "27px" }, "mobile": { - "value": "30px" + "value": "34px" } }, - "table-row-height-small-regular": { - "prop": "--spectrum-table-row-height-small-regular", + "tag-minimum-width-multiplier": { + "prop": "--spectrum-tag-minimum-width-multiplier", + "value": 1 + }, + "tag-minimum-width-small": { + "prop": "--spectrum-tag-minimum-width-small", "desktop": { - "value": "32px" + "value": "21px" }, "mobile": { - "value": "40px" + "value": "25px" } }, - "table-row-height-small-spacious": { - "prop": "--spectrum-table-row-height-small-spacious", + "tag-top-to-avatar-large": { + "prop": "--spectrum-tag-top-to-avatar-large", "desktop": { - "value": "40px" + "value": "9px" }, "mobile": { - "value": "50px" + "value": "11px" } }, - "table-row-hover-color": { - "prop": "--spectrum-table-row-hover-color", - "ref": "var(--spectrum-gray-900)", - "light": { - "value": "rgb(19, 19, 19)" + "tag-top-to-avatar-medium": { + "prop": "--spectrum-tag-top-to-avatar-medium", + "desktop": { + "value": "6px" }, - "dark": { - "value": "rgb(242, 242, 242)" + "mobile": { + "value": "7px" } }, - "table-row-hover-opacity": { - "prop": "--spectrum-table-row-hover-opacity", - "value": "0.07" - }, - "table-row-top-to-text-extra-large-compact": { - "prop": "--spectrum-table-row-top-to-text-extra-large-compact", - "ref": "var(--spectrum-component-top-to-text-300)", + "tag-top-to-avatar-small": { + "prop": "--spectrum-tag-top-to-avatar-small", "desktop": { - "value": "12px" + "value": "4px" }, "mobile": { - "value": "15px" + "value": "5px" } }, - "table-row-top-to-text-extra-large-regular": { - "prop": "--spectrum-table-row-top-to-text-extra-large-regular", + "tag-top-to-cross-icon-large": { + "prop": "--spectrum-tag-top-to-cross-icon-large", "desktop": { - "value": "17px" + "value": "15px" }, "mobile": { - "value": "21px" + "value": "19px" } }, - "table-row-top-to-text-extra-large-spacious": { - "prop": "--spectrum-table-row-top-to-text-extra-large-spacious", + "tag-top-to-cross-icon-medium": { + "prop": "--spectrum-tag-top-to-cross-icon-medium", "desktop": { - "value": "21px" + "value": "12px" }, "mobile": { - "value": "26px" + "value": "15px" } }, - "table-row-top-to-text-large-compact": { - "prop": "--spectrum-table-row-top-to-text-large-compact", - "ref": "var(--spectrum-component-top-to-text-200)", + "tag-top-to-cross-icon-small": { + "prop": "--spectrum-tag-top-to-cross-icon-small", "desktop": { - "value": "9px" + "value": "8px" }, "mobile": { - "value": "12px" + "value": "10px" } }, - "table-row-top-to-text-large-regular": { - "prop": "--spectrum-table-row-top-to-text-large-regular", + "takeover-dialog-height": { + "prop": "--spectrum-takeover-dialog-height", + "value": "100%" + }, + "takeover-dialog-width": { + "prop": "--spectrum-takeover-dialog-width", + "value": "100%" + }, + "text-align-center": { + "prop": "--spectrum-text-align-center", + "value": "center" + }, + "text-align-end": { + "prop": "--spectrum-text-align-end", + "value": "end" + }, + "text-align-start": { + "prop": "--spectrum-text-align-start", + "value": "start" + }, + "text-area-minimum-height": { + "prop": "--spectrum-text-area-minimum-height", "desktop": { - "value": "14px" + "value": "56px" }, "mobile": { - "value": "18px" + "value": "70px" } }, - "table-row-top-to-text-large-spacious": { - "prop": "--spectrum-table-row-top-to-text-large-spacious", + "text-area-minimum-width": { + "prop": "--spectrum-text-area-minimum-width", "desktop": { - "value": "18px" + "value": "112px" }, "mobile": { - "value": "23px" + "value": "140px" } }, - "table-row-top-to-text-medium-compact": { - "prop": "--spectrum-table-row-top-to-text-medium-compact", - "ref": "var(--spectrum-component-top-to-text-100)", + "text-field-minimum-width-multiplier": { + "prop": "--spectrum-text-field-minimum-width-multiplier", + "value": 1.5 + }, + "text-to-control-100": { + "prop": "--spectrum-text-to-control-100", "desktop": { - "value": "6px" + "value": "10px" }, "mobile": { - "value": "8px" + "value": "13px" } }, - "table-row-top-to-text-medium-regular": { - "prop": "--spectrum-table-row-top-to-text-medium-regular", + "text-to-control-200": { + "prop": "--spectrum-text-to-control-200", "desktop": { "value": "11px" }, @@ -11577,18 +15082,17 @@ "value": "14px" } }, - "table-row-top-to-text-medium-spacious": { - "prop": "--spectrum-table-row-top-to-text-medium-spacious", + "text-to-control-300": { + "prop": "--spectrum-text-to-control-300", "desktop": { - "value": "15px" + "value": "13px" }, "mobile": { - "value": "18px" + "value": "16px" } }, - "table-row-top-to-text-small-compact": { - "prop": "--spectrum-table-row-top-to-text-small-compact", - "ref": "var(--spectrum-component-top-to-text-75)", + "text-to-control-50": { + "prop": "--spectrum-text-to-control-50", "desktop": { "value": "4px" }, @@ -11596,73 +15100,80 @@ "value": "5px" } }, - "table-row-top-to-text-small-regular": { - "prop": "--spectrum-table-row-top-to-text-small-regular", + "text-to-control-75": { + "prop": "--spectrum-text-to-control-75", "desktop": { - "value": "8px" + "value": "9px" }, "mobile": { - "value": "10px" + "value": "11px" } }, - "table-row-top-to-text-small-spacious": { - "prop": "--spectrum-table-row-top-to-text-small-spacious", + "text-to-visual-100": { + "prop": "--spectrum-text-to-visual-100", "desktop": { - "value": "12px" + "value": "6px" }, "mobile": { - "value": "15px" + "value": "8px" } }, - "table-section-header-row-height-extra-large": { - "prop": "--spectrum-table-section-header-row-height-extra-large", + "text-to-visual-200": { + "prop": "--spectrum-text-to-visual-200", "desktop": { - "value": "48px" + "value": "7px" }, "mobile": { - "value": "60px" + "value": "9px" } }, - "table-section-header-row-height-large": { - "prop": "--spectrum-table-section-header-row-height-large", + "text-to-visual-300": { + "prop": "--spectrum-text-to-visual-300", "desktop": { - "value": "40px" + "value": "8px" }, "mobile": { - "value": "50px" + "value": "10px" } }, - "table-section-header-row-height-medium": { - "prop": "--spectrum-table-section-header-row-height-medium", + "text-to-visual-400": { + "prop": "--spectrum-text-to-visual-400", "desktop": { - "value": "32px" + "value": "9px" }, "mobile": { - "value": "40px" + "value": "11px" } }, - "table-section-header-row-height-small": { - "prop": "--spectrum-table-section-header-row-height-small", + "text-to-visual-50": { + "prop": "--spectrum-text-to-visual-50", "desktop": { - "value": "24px" + "value": "5px" }, "mobile": { - "value": "30px" + "value": "7px" } }, - "table-selected-row-background-color": { - "prop": "--spectrum-table-selected-row-background-color", - "ref": "var(--spectrum-informative-color-800)", - "light": { - "value": "rgb(59, 99, 251)" + "text-to-visual-75": { + "prop": "--spectrum-text-to-visual-75", + "desktop": { + "value": "5px" }, - "dark": { - "value": "rgb(64, 105, 253)" + "mobile": { + "value": "7px" } }, - "table-selected-row-background-color-non-emphasized": { - "prop": "--spectrum-table-selected-row-background-color-non-emphasized", - "ref": "var(--spectrum-neutral-background-color-selected-default)", + "text-underline-gap": { + "prop": "--spectrum-text-underline-gap", + "value": "1px" + }, + "text-underline-thickness": { + "prop": "--spectrum-text-underline-thickness", + "value": "1px" + }, + "thumbnail-border-color": { + "prop": "--spectrum-thumbnail-border-color", + "ref": "var(--spectrum-gray-800)", "light": { "value": "rgb(41, 41, 41)" }, @@ -11670,168 +15181,185 @@ "value": "rgb(219, 219, 219)" } }, - "table-selected-row-background-opacity": { - "prop": "--spectrum-table-selected-row-background-opacity", - "value": "0.1" - }, - "table-selected-row-background-opacity-hover": { - "prop": "--spectrum-table-selected-row-background-opacity-hover", - "value": "0.15" - }, - "table-selected-row-background-opacity-non-emphasized": { - "prop": "--spectrum-table-selected-row-background-opacity-non-emphasized", + "thumbnail-border-opacity": { + "prop": "--spectrum-thumbnail-border-opacity", "value": "0.1" }, - "table-selected-row-background-opacity-non-emphasized-hover": { - "prop": "--spectrum-table-selected-row-background-opacity-non-emphasized-hover", - "value": "0.15" + "thumbnail-corner-radius": { + "prop": "--spectrum-thumbnail-corner-radius", + "ref": "var(--spectrum-corner-radius-75)", + "value": "3px" }, - "table-thumbnail-to-top-minimum-extra-large-compact": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-compact", - "desktop": { - "value": "8px" - }, - "mobile": { - "value": "10px" - } + "thumbnail-opacity-checkerboard-square-size": { + "prop": "--spectrum-thumbnail-opacity-checkerboard-square-size", + "value": "4px" }, - "table-thumbnail-to-top-minimum-extra-large-regular": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-regular", - "desktop": { - "value": "8px" - }, - "mobile": { - "value": "10px" - } + "thumbnail-opacity-disabled": { + "prop": "--spectrum-thumbnail-opacity-disabled", + "ref": "var(--spectrum-opacity-disabled)", + "value": "0.3" }, - "table-thumbnail-to-top-minimum-extra-large-spacious": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious", + "thumbnail-size-100": { + "prop": "--spectrum-thumbnail-size-100", "desktop": { - "value": "10px" + "value": "24px" }, "mobile": { - "value": "12px" + "value": "28px" } }, - "table-thumbnail-to-top-minimum-large-compact": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-large-compact", + "thumbnail-size-1000": { + "prop": "--spectrum-thumbnail-size-1000", "desktop": { - "value": "7px" + "value": "64px" }, "mobile": { - "value": "9px" + "value": "72px" } }, - "table-thumbnail-to-top-minimum-large-regular": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-large-regular", + "thumbnail-size-200": { + "prop": "--spectrum-thumbnail-size-200", "desktop": { - "value": "8px" + "value": "28px" }, "mobile": { - "value": "10px" + "value": "32px" } }, - "table-thumbnail-to-top-minimum-large-spacious": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-large-spacious", + "thumbnail-size-300": { + "prop": "--spectrum-thumbnail-size-300", "desktop": { - "value": "8px" + "value": "32px" }, "mobile": { - "value": "10px" + "value": "36px" } }, - "table-thumbnail-to-top-minimum-medium-compact": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-compact", + "thumbnail-size-400": { + "prop": "--spectrum-thumbnail-size-400", "desktop": { - "value": "5px" + "value": "36px" }, "mobile": { - "value": "6px" + "value": "40px" } }, - "table-thumbnail-to-top-minimum-medium-regular": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-regular", + "thumbnail-size-50": { + "prop": "--spectrum-thumbnail-size-50", "desktop": { - "value": "7px" + "value": "16px" }, "mobile": { - "value": "9px" + "value": "20px" } }, - "table-thumbnail-to-top-minimum-medium-spacious": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-medium-spacious", + "thumbnail-size-500": { + "prop": "--spectrum-thumbnail-size-500", "desktop": { - "value": "8px" + "value": "40px" }, "mobile": { - "value": "10px" + "value": "44px" } }, - "table-thumbnail-to-top-minimum-small-compact": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-small-compact", + "thumbnail-size-600": { + "prop": "--spectrum-thumbnail-size-600", "desktop": { - "value": "4px" + "value": "44px" }, "mobile": { - "value": "5px" + "value": "48px" } }, - "table-thumbnail-to-top-minimum-small-regular": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-small-regular", + "thumbnail-size-700": { + "prop": "--spectrum-thumbnail-size-700", "desktop": { - "value": "5px" + "value": "48px" }, "mobile": { - "value": "6px" + "value": "52px" } }, - "table-thumbnail-to-top-minimum-small-spacious": { - "prop": "--spectrum-table-thumbnail-to-top-minimum-small-spacious", + "thumbnail-size-75": { + "prop": "--spectrum-thumbnail-size-75", "desktop": { - "value": "7px" + "value": "20px" }, "mobile": { - "value": "9px" + "value": "24px" } }, - "tag-top-to-avatar-large": { - "prop": "--spectrum-tag-top-to-avatar-large", + "thumbnail-size-800": { + "prop": "--spectrum-thumbnail-size-800", "desktop": { - "value": "9px" + "value": "52px" }, "mobile": { - "value": "11px" + "value": "56px" } }, - "tag-top-to-avatar-medium": { - "prop": "--spectrum-tag-top-to-avatar-medium", + "thumbnail-size-900": { + "prop": "--spectrum-thumbnail-size-900", "desktop": { - "value": "6px" + "value": "56px" }, "mobile": { - "value": "7px" + "value": "64px" } }, - "tag-top-to-avatar-small": { - "prop": "--spectrum-tag-top-to-avatar-small", + "title-cjk-emphasized-font-style": { + "prop": "--spectrum-title-cjk-emphasized-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-cjk-emphasized-font-weight": { + "prop": "--spectrum-title-cjk-emphasized-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "title-cjk-font-family": { + "prop": "--spectrum-title-cjk-font-family", + "ref": "var(--spectrum-cjk-font-family)", + "value": "Adobe Clean Han" + }, + "title-cjk-font-style": { + "prop": "--spectrum-title-cjk-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-cjk-font-weight": { + "prop": "--spectrum-title-cjk-font-weight", + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" + }, + "title-cjk-line-height": { + "prop": "--spectrum-title-cjk-line-height", + "ref": "var(--spectrum-cjk-line-height-100)", + "value": 1.5 + }, + "title-cjk-size-l": { + "prop": "--spectrum-title-cjk-size-l", + "ref": "var(--spectrum-font-size-200)", "desktop": { - "value": "4px" + "value": "16px" }, "mobile": { - "value": "5px" + "value": "19px" } }, - "tag-top-to-cross-icon-large": { - "prop": "--spectrum-tag-top-to-cross-icon-large", + "title-cjk-size-m": { + "prop": "--spectrum-title-cjk-size-m", + "ref": "var(--spectrum-font-size-100)", "desktop": { - "value": "15px" + "value": "14px" }, "mobile": { - "value": "19px" + "value": "17px" } }, - "tag-top-to-cross-icon-medium": { - "prop": "--spectrum-tag-top-to-cross-icon-medium", + "title-cjk-size-s": { + "prop": "--spectrum-title-cjk-size-s", + "ref": "var(--spectrum-font-size-75)", "desktop": { "value": "12px" }, @@ -11839,328 +15367,495 @@ "value": "15px" } }, - "tag-top-to-cross-icon-small": { - "prop": "--spectrum-tag-top-to-cross-icon-small", + "title-cjk-size-xl": { + "prop": "--spectrum-title-cjk-size-xl", + "ref": "var(--spectrum-font-size-300)", "desktop": { - "value": "8px" + "value": "18px" }, "mobile": { - "value": "10px" + "value": "22px" } }, - "text-area-minimum-height": { - "prop": "--spectrum-text-area-minimum-height", + "title-cjk-size-xs": { + "prop": "--spectrum-title-cjk-size-xs", + "ref": "var(--spectrum-font-size-50)", "desktop": { - "value": "56px" + "value": "11px" }, "mobile": { - "value": "70px" + "value": "13px" } }, - "text-area-minimum-width": { - "prop": "--spectrum-text-area-minimum-width", + "title-cjk-size-xxl": { + "prop": "--spectrum-title-cjk-size-xxl", + "ref": "var(--spectrum-font-size-400)", "desktop": { - "value": "112px" + "value": "20px" }, "mobile": { - "value": "140px" + "value": "24px" } }, - "text-field-minimum-width-multiplier": { - "prop": "--spectrum-text-field-minimum-width-multiplier", - "value": "1.5" - }, - "text-to-control-100": { - "prop": "--spectrum-text-to-control-100", + "title-cjk-size-xxxl": { + "prop": "--spectrum-title-cjk-size-xxxl", + "ref": "var(--spectrum-font-size-500)", "desktop": { - "value": "10px" + "value": "22px" }, "mobile": { - "value": "13px" + "value": "27px" } }, - "text-to-control-200": { - "prop": "--spectrum-text-to-control-200", - "desktop": { - "value": "11px" - }, - "mobile": { - "value": "14px" - } + "title-cjk-strong-emphasized-font-style": { + "prop": "--spectrum-title-cjk-strong-emphasized-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" }, - "text-to-control-300": { - "prop": "--spectrum-text-to-control-300", - "desktop": { - "value": "13px" - }, - "mobile": { - "value": "16px" - } + "title-cjk-strong-emphasized-font-weight": { + "prop": "--spectrum-title-cjk-strong-emphasized-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" }, - "text-to-control-75": { - "prop": "--spectrum-text-to-control-75", - "desktop": { - "value": "9px" + "title-cjk-strong-font-style": { + "prop": "--spectrum-title-cjk-strong-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-cjk-strong-font-weight": { + "prop": "--spectrum-title-cjk-strong-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "title-color": { + "prop": "--spectrum-title-color", + "ref": "var(--spectrum-gray-900)", + "light": { + "value": "rgb(19, 19, 19)" }, - "mobile": { - "value": "11px" + "dark": { + "value": "rgb(242, 242, 242)" } }, - "text-to-visual-100": { - "prop": "--spectrum-text-to-visual-100", - "desktop": { - "value": "6px" - }, - "mobile": { - "value": "8px" - } + "title-line-height": { + "prop": "--spectrum-title-line-height", + "ref": "var(--spectrum-line-height-100)", + "value": 1.3 + }, + "title-margin-bottom-multiplier": { + "prop": "--spectrum-title-margin-bottom-multiplier", + "value": 0.25 + }, + "title-margin-top-multiplier": { + "prop": "--spectrum-title-margin-top-multiplier", + "value": 0.88888889 + }, + "title-sans-serif-emphasized-font-style": { + "prop": "--spectrum-title-sans-serif-emphasized-font-style", + "ref": "var(--spectrum-italic-font-style)", + "value": "italic" + }, + "title-sans-serif-emphasized-font-weight": { + "prop": "--spectrum-title-sans-serif-emphasized-font-weight", + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" + }, + "title-sans-serif-font-family": { + "prop": "--spectrum-title-sans-serif-font-family", + "ref": "var(--spectrum-sans-serif-font-family)", + "value": "Adobe Clean" + }, + "title-sans-serif-font-style": { + "prop": "--spectrum-title-sans-serif-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-sans-serif-font-weight": { + "prop": "--spectrum-title-sans-serif-font-weight", + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" + }, + "title-sans-serif-strong-emphasized-font-style": { + "prop": "--spectrum-title-sans-serif-strong-emphasized-font-style", + "ref": "var(--spectrum-italic-font-style)", + "value": "italic" + }, + "title-sans-serif-strong-emphasized-font-weight": { + "prop": "--spectrum-title-sans-serif-strong-emphasized-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "title-sans-serif-strong-font-style": { + "prop": "--spectrum-title-sans-serif-strong-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-sans-serif-strong-font-weight": { + "prop": "--spectrum-title-sans-serif-strong-font-weight", + "ref": "var(--spectrum-extra-bold-font-weight)", + "value": "800" + }, + "title-serif-emphasized-font-style": { + "prop": "--spectrum-title-serif-emphasized-font-style", + "ref": "var(--spectrum-italic-font-style)", + "value": "italic" + }, + "title-serif-emphasized-font-weight": { + "prop": "--spectrum-title-serif-emphasized-font-weight", + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" + }, + "title-serif-font-family": { + "prop": "--spectrum-title-serif-font-family", + "ref": "var(--spectrum-serif-font-family)", + "value": "Adobe Clean Serif" + }, + "title-serif-font-style": { + "prop": "--spectrum-title-serif-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" + }, + "title-serif-font-weight": { + "prop": "--spectrum-title-serif-font-weight", + "ref": "var(--spectrum-bold-font-weight)", + "value": "700" + }, + "title-serif-strong-emphasized-font-style": { + "prop": "--spectrum-title-serif-strong-emphasized-font-style", + "ref": "var(--spectrum-italic-font-style)", + "value": "italic" }, - "text-to-visual-200": { - "prop": "--spectrum-text-to-visual-200", - "desktop": { - "value": "7px" - }, - "mobile": { - "value": "9px" - } + "title-serif-strong-emphasized-font-weight": { + "prop": "--spectrum-title-serif-strong-emphasized-font-weight", + "ref": "var(--spectrum-black-font-weight)", + "value": "900" }, - "text-to-visual-300": { - "prop": "--spectrum-text-to-visual-300", - "desktop": { - "value": "8px" - }, - "mobile": { - "value": "10px" - } + "title-serif-strong-font-style": { + "prop": "--spectrum-title-serif-strong-font-style", + "ref": "var(--spectrum-default-font-style)", + "value": "normal" }, - "text-to-visual-400": { - "prop": "--spectrum-text-to-visual-400", + "title-serif-strong-font-weight": { + "prop": "--spectrum-title-serif-strong-font-weight", + "ref": "var(--spectrum-black-font-weight)", + "value": "900" + }, + "title-size-l": { + "prop": "--spectrum-title-size-l", + "ref": "var(--spectrum-font-size-300)", "desktop": { - "value": "9px" + "value": "18px" }, "mobile": { - "value": "11px" + "value": "22px" } }, - "text-to-visual-50": { - "prop": "--spectrum-text-to-visual-50", + "title-size-m": { + "prop": "--spectrum-title-size-m", + "ref": "var(--spectrum-font-size-200)", "desktop": { - "value": "5px" + "value": "16px" }, "mobile": { - "value": "7px" + "value": "19px" } }, - "text-to-visual-75": { - "prop": "--spectrum-text-to-visual-75", + "title-size-s": { + "prop": "--spectrum-title-size-s", + "ref": "var(--spectrum-font-size-100)", "desktop": { - "value": "5px" + "value": "14px" }, "mobile": { - "value": "7px" - } - }, - "text-underline-gap": { - "prop": "--spectrum-text-underline-gap", - "value": "1px" - }, - "text-underline-thickness": { - "prop": "--spectrum-text-underline-thickness", - "value": "1px" - }, - "thumbnail-border-color": { - "prop": "--spectrum-thumbnail-border-color", - "ref": "var(--spectrum-gray-800)", - "light": { - "value": "rgb(41, 41, 41)" - }, - "dark": { - "value": "rgb(219, 219, 219)" + "value": "17px" } }, - "thumbnail-border-opacity": { - "prop": "--spectrum-thumbnail-border-opacity", - "value": "0.1" - }, - "thumbnail-opacity-disabled": { - "prop": "--spectrum-thumbnail-opacity-disabled", - "ref": "var(--spectrum-opacity-disabled)", - "value": "0.3" - }, - "thumbnail-size-100": { - "prop": "--spectrum-thumbnail-size-100", + "title-size-xl": { + "prop": "--spectrum-title-size-xl", + "ref": "var(--spectrum-font-size-400)", "desktop": { "value": "20px" }, "mobile": { - "value": "26px" + "value": "24px" } }, - "thumbnail-size-1000": { - "prop": "--spectrum-thumbnail-size-1000", + "title-size-xs": { + "prop": "--spectrum-title-size-xs", + "ref": "var(--spectrum-font-size-75)", "desktop": { - "value": "56px" + "value": "12px" }, "mobile": { - "value": "70px" + "value": "15px" } }, - "thumbnail-size-200": { - "prop": "--spectrum-thumbnail-size-200", + "title-size-xxl": { + "prop": "--spectrum-title-size-xxl", + "ref": "var(--spectrum-font-size-500)", "desktop": { "value": "22px" }, "mobile": { - "value": "28px" + "value": "27px" } }, - "thumbnail-size-300": { - "prop": "--spectrum-thumbnail-size-300", + "title-size-xxxl": { + "prop": "--spectrum-title-size-xxxl", + "ref": "var(--spectrum-font-size-600)", "desktop": { - "value": "26px" + "value": "25px" }, "mobile": { - "value": "32px" + "value": "31px" } }, - "thumbnail-size-400": { - "prop": "--spectrum-thumbnail-size-400", + "toast-bottom-to-text": { + "prop": "--spectrum-toast-bottom-to-text", "desktop": { - "value": "28px" + "value": "20px" }, "mobile": { - "value": "36px" + "value": "22px" } }, - "thumbnail-size-50": { - "prop": "--spectrum-thumbnail-size-50", + "toast-height": { + "prop": "--spectrum-toast-height", "desktop": { - "value": "16px" + "value": "52px" }, "mobile": { - "value": "20px" + "value": "60px" } }, - "thumbnail-size-500": { - "prop": "--spectrum-thumbnail-size-500", + "toast-maximum-width": { + "prop": "--spectrum-toast-maximum-width", "desktop": { - "value": "32px" + "value": "336px" }, "mobile": { - "value": "40px" + "value": "420px" } }, - "thumbnail-size-600": { - "prop": "--spectrum-thumbnail-size-600", + "toast-top-to-text": { + "prop": "--spectrum-toast-top-to-text", "desktop": { - "value": "36px" + "value": "18px" }, "mobile": { - "value": "46px" + "value": "20px" } }, - "thumbnail-size-700": { - "prop": "--spectrum-thumbnail-size-700", + "toast-top-to-workflow-icon": { + "prop": "--spectrum-toast-top-to-workflow-icon", "desktop": { - "value": "40px" + "value": "18px" }, "mobile": { - "value": "50px" + "value": "20px" } }, - "thumbnail-size-75": { - "prop": "--spectrum-thumbnail-size-75", + "tooltip-maximum-width": { + "prop": "--spectrum-tooltip-maximum-width", "desktop": { - "value": "18px" + "value": "160px" }, "mobile": { - "value": "22px" + "value": "200px" } }, - "thumbnail-size-800": { - "prop": "--spectrum-thumbnail-size-800", + "tooltip-tip-corner-radius": { + "prop": "--spectrum-tooltip-tip-corner-radius", + "value": "1px" + }, + "tooltip-tip-height": { + "prop": "--spectrum-tooltip-tip-height", "desktop": { - "value": "44px" + "value": "5px" }, "mobile": { - "value": "55px" + "value": "6px" } }, - "thumbnail-size-900": { - "prop": "--spectrum-thumbnail-size-900", + "tooltip-tip-width": { + "prop": "--spectrum-tooltip-tip-width", "desktop": { - "value": "50px" + "value": "10px" }, "mobile": { - "value": "62px" + "value": "12px" } }, - "title-color": { - "prop": "--spectrum-title-color", - "ref": "var(--spectrum-gray-900)", + "track-color": { + "prop": "--spectrum-track-color", + "ref": "var(--spectrum-gray-300)", "light": { - "value": "rgb(19, 19, 19)" + "value": "rgb(218, 218, 218)" }, "dark": { - "value": "rgb(242, 242, 242)" + "value": "rgb(57, 57, 57)" } }, - "toast-bottom-to-text": { - "prop": "--spectrum-toast-bottom-to-text", + "transparent-black-100": { + "prop": "--spectrum-transparent-black-100", + "value": "rgba(0, 0, 0, 0.09)" + }, + "transparent-black-1000": { + "prop": "--spectrum-transparent-black-1000", + "value": "rgb(0, 0, 0)" + }, + "transparent-black-200": { + "prop": "--spectrum-transparent-black-200", + "value": "rgba(0, 0, 0, 0.12)" + }, + "transparent-black-25": { + "prop": "--spectrum-transparent-black-25", + "value": "rgba(0, 0, 0, 0)" + }, + "transparent-black-300": { + "prop": "--spectrum-transparent-black-300", + "value": "rgba(0, 0, 0, 0.15)" + }, + "transparent-black-400": { + "prop": "--spectrum-transparent-black-400", + "value": "rgba(0, 0, 0, 0.22)" + }, + "transparent-black-50": { + "prop": "--spectrum-transparent-black-50", + "value": "rgba(0, 0, 0, 0.03)" + }, + "transparent-black-500": { + "prop": "--spectrum-transparent-black-500", + "value": "rgba(0, 0, 0, 0.44)" + }, + "transparent-black-600": { + "prop": "--spectrum-transparent-black-600", + "value": "rgba(0, 0, 0, 0.56)" + }, + "transparent-black-700": { + "prop": "--spectrum-transparent-black-700", + "value": "rgba(0, 0, 0, 0.69)" + }, + "transparent-black-75": { + "prop": "--spectrum-transparent-black-75", + "value": "rgba(0, 0, 0, 0.05)" + }, + "transparent-black-800": { + "prop": "--spectrum-transparent-black-800", + "value": "rgba(0, 0, 0, 0.84)" + }, + "transparent-black-900": { + "prop": "--spectrum-transparent-black-900", + "value": "rgba(0, 0, 0, 0.93)" + }, + "transparent-white-100": { + "prop": "--spectrum-transparent-white-100", + "value": "rgba(255, 255, 255, 0.11)" + }, + "transparent-white-1000": { + "prop": "--spectrum-transparent-white-1000", + "value": "rgb(255, 255, 255)" + }, + "transparent-white-200": { + "prop": "--spectrum-transparent-white-200", + "value": "rgba(255, 255, 255, 0.14)" + }, + "transparent-white-25": { + "prop": "--spectrum-transparent-white-25", + "value": "rgba(255, 255, 255, 0)" + }, + "transparent-white-300": { + "prop": "--spectrum-transparent-white-300", + "value": "rgba(255, 255, 255, 0.17)" + }, + "transparent-white-400": { + "prop": "--spectrum-transparent-white-400", + "value": "rgba(255, 255, 255, 0.21)" + }, + "transparent-white-50": { + "prop": "--spectrum-transparent-white-50", + "value": "rgba(255, 255, 255, 0.04)" + }, + "transparent-white-500": { + "prop": "--spectrum-transparent-white-500", + "value": "rgba(255, 255, 255, 0.39)" + }, + "transparent-white-600": { + "prop": "--spectrum-transparent-white-600", + "value": "rgba(255, 255, 255, 0.51)" + }, + "transparent-white-700": { + "prop": "--spectrum-transparent-white-700", + "value": "rgba(255, 255, 255, 0.66)" + }, + "transparent-white-75": { + "prop": "--spectrum-transparent-white-75", + "value": "rgba(255, 255, 255, 0.07)" + }, + "transparent-white-800": { + "prop": "--spectrum-transparent-white-800", + "value": "rgba(255, 255, 255, 0.85)" + }, + "transparent-white-900": { + "prop": "--spectrum-transparent-white-900", + "value": "rgba(255, 255, 255, 0.94)" + }, + "tray-top-to-content-area": { + "prop": "--spectrum-tray-top-to-content-area", "desktop": { - "value": "17px" + "value": "4px" }, "mobile": { - "value": "19px" + "value": "5px" } }, - "toast-height": { - "prop": "--spectrum-toast-height", + "tree-view-bottom-to-label": { + "prop": "--spectrum-tree-view-bottom-to-label", "desktop": { - "value": "48px" + "value": "12px" }, "mobile": { - "value": "56px" + "value": "16px" } }, - "toast-maximum-width": { - "prop": "--spectrum-toast-maximum-width", + "tree-view-disclosure-indicator-height": { + "prop": "--spectrum-tree-view-disclosure-indicator-height", "desktop": { - "value": "336px" + "value": "32px" }, "mobile": { - "value": "420px" + "value": "40px" } }, - "toast-top-to-text": { - "prop": "--spectrum-toast-top-to-text", + "tree-view-disclosure-indicator-width": { + "prop": "--spectrum-tree-view-disclosure-indicator-width", "desktop": { - "value": "14px" + "value": "34px" }, "mobile": { - "value": "16px" + "value": "42px" } }, - "toast-top-to-workflow-icon": { - "prop": "--spectrum-toast-top-to-workflow-icon", + "tree-view-drag-handle-to-checkbox": { + "prop": "--spectrum-tree-view-drag-handle-to-checkbox", "desktop": { - "value": "15px" + "value": "8px" }, "mobile": { - "value": "17px" + "value": "10px" } }, - "tooltip-maximum-width": { - "prop": "--spectrum-tooltip-maximum-width", + "tree-view-edge-to-checkbox": { + "prop": "--spectrum-tree-view-edge-to-checkbox", "desktop": { - "value": "160px" + "value": "12px" }, "mobile": { - "value": "200px" + "value": "15px" } }, - "tooltip-tip-height": { - "prop": "--spectrum-tooltip-tip-height", + "tree-view-edge-to-drag-handle": { + "prop": "--spectrum-tree-view-edge-to-drag-handle", "desktop": { "value": "4px" }, @@ -12168,261 +15863,172 @@ "value": "5px" } }, - "tooltip-tip-width": { - "prop": "--spectrum-tooltip-tip-width", + "tree-view-end-edge-to-action-area": { + "prop": "--spectrum-tree-view-end-edge-to-action-area", "desktop": { - "value": "8px" + "value": "6px" }, "mobile": { - "value": "10px" - } - }, - "track-color": { - "prop": "--spectrum-track-color", - "ref": "var(--spectrum-gray-300)", - "light": { - "value": "rgb(218, 218, 218)" - }, - "dark": { - "value": "rgb(57, 57, 57)" - } - }, - "transparent-black-100": { - "prop": "--spectrum-transparent-black-100", - "light": { - "value": "rgba(0, 0, 0, 0.09)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.09)" - } - }, - "transparent-black-1000": { - "prop": "--spectrum-transparent-black-1000", - "value": "rgb(0, 0, 0)" - }, - "transparent-black-200": { - "prop": "--spectrum-transparent-black-200", - "light": { - "value": "rgba(0, 0, 0, 0.12)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.12)" - } - }, - "transparent-black-25": { - "prop": "--spectrum-transparent-black-25", - "light": { - "value": "rgba(0, 0, 0, 0)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0)" - } - }, - "transparent-black-300": { - "prop": "--spectrum-transparent-black-300", - "light": { - "value": "rgba(0, 0, 0, 0.15)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.15)" - } - }, - "transparent-black-400": { - "prop": "--spectrum-transparent-black-400", - "light": { - "value": "rgba(0, 0, 0, 0.22)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.22)" - } - }, - "transparent-black-50": { - "prop": "--spectrum-transparent-black-50", - "light": { - "value": "rgba(0, 0, 0, 0.03)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.03)" + "value": "7px" } }, - "transparent-black-500": { - "prop": "--spectrum-transparent-black-500", - "light": { - "value": "rgba(0, 0, 0, 0.44)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.44)" - } + "tree-view-header-to-item": { + "prop": "--spectrum-tree-view-header-to-item", + "value": "-1px" }, - "transparent-black-600": { - "prop": "--spectrum-transparent-black-600", - "light": { - "value": "rgba(0, 0, 0, 0.56)" + "tree-view-item-to-header": { + "prop": "--spectrum-tree-view-item-to-header", + "desktop": { + "value": "24px" }, - "dark": { - "value": "rgba(0, 0, 0, 0.56)" + "mobile": { + "value": "30px" } }, - "transparent-black-700": { - "prop": "--spectrum-transparent-black-700", - "light": { - "value": "rgba(0, 0, 0, 0.69)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.69)" - } + "tree-view-item-to-item": { + "prop": "--spectrum-tree-view-item-to-item", + "value": "-1px" }, - "transparent-black-75": { - "prop": "--spectrum-transparent-black-75", - "light": { - "value": "rgba(0, 0, 0, 0.05)" - }, - "dark": { - "value": "rgba(0, 0, 0, 0.05)" - } + "tree-view-item-to-item-detached": { + "prop": "--spectrum-tree-view-item-to-item-detached", + "value": "2px" }, - "transparent-black-800": { - "prop": "--spectrum-transparent-black-800", - "light": { - "value": "rgba(0, 0, 0, 0.84)" + "tree-view-label-to-action-area": { + "prop": "--spectrum-tree-view-label-to-action-area", + "desktop": { + "value": "6px" }, - "dark": { - "value": "rgba(0, 0, 0, 0.84)" + "mobile": { + "value": "8px" } }, - "transparent-black-900": { - "prop": "--spectrum-transparent-black-900", - "light": { - "value": "rgba(0, 0, 0, 0.93)" + "tree-view-level-increment": { + "prop": "--spectrum-tree-view-level-increment", + "desktop": { + "value": "16px" }, - "dark": { - "value": "rgba(0, 0, 0, 0.93)" + "mobile": { + "value": "20px" } }, - "transparent-white-100": { - "prop": "--spectrum-transparent-white-100", - "light": { - "value": "rgba(255, 255, 255, 0.11)" + "tree-view-minimum-height": { + "prop": "--spectrum-tree-view-minimum-height", + "desktop": { + "value": "40px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.11)" + "mobile": { + "value": "50px" } }, - "transparent-white-1000": { - "prop": "--spectrum-transparent-white-1000", - "light": { - "value": "rgb(255, 255, 255)" + "tree-view-minimum-top-to-context-area": { + "prop": "--spectrum-tree-view-minimum-top-to-context-area", + "desktop": { + "value": "8px" }, - "dark": { - "value": "rgb(255, 255, 255)" + "mobile": { + "value": "10px" } }, - "transparent-white-200": { - "prop": "--spectrum-transparent-white-200", - "light": { - "value": "rgba(255, 255, 255, 0.14)" + "tree-view-minimum-width": { + "prop": "--spectrum-tree-view-minimum-width", + "desktop": { + "value": "160px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.14)" + "mobile": { + "value": "200px" } }, - "transparent-white-25": { - "prop": "--spectrum-transparent-white-25", + "tree-view-row-background-hover": { + "prop": "--spectrum-tree-view-row-background-hover", + "ref": "var(--spectrum-gray-100)", "light": { - "value": "rgba(255, 255, 255, 0)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgba(255, 255, 255, 0)" + "value": "rgb(44, 44, 44)" } }, - "transparent-white-300": { - "prop": "--spectrum-transparent-white-300", + "tree-view-selected-row-background-color-emphasized": { + "prop": "--spectrum-tree-view-selected-row-background-color-emphasized", + "ref": "var(--spectrum-informative-color-800)", "light": { - "value": "rgba(255, 255, 255, 0.17)" + "value": "rgb(59, 99, 251)" }, "dark": { - "value": "rgba(255, 255, 255, 0.17)" + "value": "rgb(64, 105, 253)" } }, - "transparent-white-400": { - "prop": "--spectrum-transparent-white-400", + "tree-view-selected-row-background-default": { + "prop": "--spectrum-tree-view-selected-row-background-default", + "ref": "var(--spectrum-gray-100)", "light": { - "value": "rgba(255, 255, 255, 0.21)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgba(255, 255, 255, 0.21)" + "value": "rgb(44, 44, 44)" } }, - "transparent-white-50": { - "prop": "--spectrum-transparent-white-50", + "tree-view-selected-row-background-hover": { + "prop": "--spectrum-tree-view-selected-row-background-hover", + "ref": "var(--spectrum-gray-100)", "light": { - "value": "rgba(255, 255, 255, 0.04)" + "value": "rgb(233, 233, 233)" }, "dark": { - "value": "rgba(255, 255, 255, 0.04)" + "value": "rgb(44, 44, 44)" } }, - "transparent-white-500": { - "prop": "--spectrum-transparent-white-500", - "light": { - "value": "rgba(255, 255, 255, 0.39)" - }, - "dark": { - "value": "rgba(255, 255, 255, 0.39)" - } + "tree-view-selected-row-background-opacity-emphasized": { + "prop": "--spectrum-tree-view-selected-row-background-opacity-emphasized", + "value": "0.1" }, - "transparent-white-600": { - "prop": "--spectrum-transparent-white-600", - "light": { - "value": "rgba(255, 255, 255, 0.51)" - }, - "dark": { - "value": "rgba(255, 255, 255, 0.51)" - } + "tree-view-selected-row-background-opacity-emphasized-hover": { + "prop": "--spectrum-tree-view-selected-row-background-opacity-emphasized-hover", + "value": "0.15" }, - "transparent-white-700": { - "prop": "--spectrum-transparent-white-700", - "light": { - "value": "rgba(255, 255, 255, 0.66)" + "tree-view-top-to-action-button": { + "prop": "--spectrum-tree-view-top-to-action-button", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.66)" + "mobile": { + "value": "5px" } }, - "transparent-white-75": { - "prop": "--spectrum-transparent-white-75", - "light": { - "value": "rgba(255, 255, 255, 0.07)" + "tree-view-top-to-checkbox": { + "prop": "--spectrum-tree-view-top-to-checkbox", + "desktop": { + "value": "4px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.07)" + "mobile": { + "value": "5px" } }, - "transparent-white-800": { - "prop": "--spectrum-transparent-white-800", - "light": { - "value": "rgba(255, 255, 255, 0.85)" + "tree-view-top-to-disclosure-indicator": { + "prop": "--spectrum-tree-view-top-to-disclosure-indicator", + "desktop": { + "value": "15px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.85)" + "mobile": { + "value": "19px" } }, - "transparent-white-900": { - "prop": "--spectrum-transparent-white-900", - "light": { - "value": "rgba(255, 255, 255, 0.94)" + "tree-view-top-to-drag-handle": { + "prop": "--spectrum-tree-view-top-to-drag-handle", + "desktop": { + "value": "15px" }, - "dark": { - "value": "rgba(255, 255, 255, 0.94)" + "mobile": { + "value": "19px" } }, - "tray-top-to-content-area": { - "prop": "--spectrum-tray-top-to-content-area", + "tree-view-top-to-label": { + "prop": "--spectrum-tree-view-top-to-label", "desktop": { - "value": "4px" + "value": "10px" }, "mobile": { - "value": "5px" + "value": "13px" } }, "turquoise-100": { @@ -12601,12 +16207,12 @@ }, "white": { "prop": "--spectrum-white", - "light": { - "value": "rgb(255, 255, 255)" - }, - "dark": { - "value": "rgb(255, 255, 255)" - } + "value": "rgb(255, 255, 255)" + }, + "window-to-edge": { + "prop": "--spectrum-window-to-edge", + "ref": "var(--spectrum-spacing-600)", + "value": "40px" }, "workflow-icon-size-100": { "prop": "--spectrum-workflow-icon-size-100", diff --git a/tokens/package.json b/tokens/package.json index 1512d49dd41..4dd3e4045e8 100644 --- a/tokens/package.json +++ b/tokens/package.json @@ -26,22 +26,15 @@ "*.md", "package.json" ], - "scripts": { - "format": "run-p \"format:*\"", - "format:content": "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern *.md **/*.md", - "format:scripts": "eslint --fix --cache --no-error-on-unmatched-pattern *.{js,json} {tasks,utilities}/*.js", - "lint": "run-p \"lint:*\"", - "lint:scripts": "eslint --cache --no-error-on-unmatched-pattern --report-unused-disable-directives *.{js,json} {tasks,utilities}/*.js" - }, "devDependencies": { - "@adobe/spectrum-tokens": "0.0.0-s2-foundations-20241121221506", + "@adobe/spectrum-tokens": "13.0.0-beta.56", "@adobe/token-diff-generator": "^1.3.0", "@nxkit/style-dictionary": "^6.0.0", "@spectrum-tools/postcss-rgb-mapping": "workspace:^", - "eslint": "^8.57.0", - "npm-run-all2": "^7.0.2", "postcss": "^8.5.0", "postcss-cli": "^11.0.0", + "postcss-import": "^16.1.0", + "postcss-licensing": "^2.0.0", "postcss-sorting": "^9.1.0", "prettier": "^3.4.2", "style-dictionary": "^3.9.2", diff --git a/tokens/postcss.config.js b/tokens/postcss.config.js index e117b38812b..dff6ce1fea5 100644 --- a/tokens/postcss.config.js +++ b/tokens/postcss.config.js @@ -11,15 +11,9 @@ * governing permissions and limitations under the License. */ -module.exports = ({ - resolveImports = true, - ...options -}) => require("../postcss.config.js")({ - ...options, - resolveImports, - env: "production", - map: false, - additionalPlugins: { +module.exports = () => ({ + plugins: { + "postcss-import": {}, "@spectrum-tools/postcss-rgb-mapping": { colorFunctionalNotation: false, }, @@ -27,5 +21,20 @@ module.exports = ({ order: ["custom-properties", "declarations", "at-rules", "rules"], "properties-order": "alphabetical", }, + cssnano: { + preset: [ + "cssnano-preset-advanced", + { + colormin: false, + discardComments: { removeAll: true }, + // @todo yarn add -DW css-declaration-sorter + cssDeclarationSorter: false, // @todo { order: "smacss" }, + normalizeWhitespace: false, + }, + ], + }, + "postcss-licensing": { + filename: "../COPYRIGHT", + }, }, }); diff --git a/tokens/project.json b/tokens/project.json index 0e9ead556bc..92061b809b0 100644 --- a/tokens/project.json +++ b/tokens/project.json @@ -3,8 +3,7 @@ "tag": ["tokens"], "namedInputs": { "core": [ - "{projectRoot}/custom-express/*.css", - "{projectRoot}/custom-spectrum/*.css" + "{projectRoot}/custom/*.css" ], "scripts": ["{projectRoot}/style-dictionary.config.js", "{projectRoot}/utilities/*.js"], "tools": ["{projectRoot}/postcss.config.js", "{projectRoot}/tasks/token-rollup.js"] @@ -71,15 +70,8 @@ "{projectRoot}/dist/css/global-vars.css", "{projectRoot}/dist/css/light-vars.css", "{projectRoot}/dist/css/dark-vars.css", - "{projectRoot}/dist/css/darkest-vars.css", "{projectRoot}/dist/css/medium-vars.css", - "{projectRoot}/dist/css/large-vars.css", - "{projectRoot}/dist/css/spectrum/global-vars.css", - "{projectRoot}/dist/css/spectrum/medium-vars.css", - "{projectRoot}/dist/css/spectrum/large-vars.css", - "{projectRoot}/dist/css/express/global-vars.css", - "{projectRoot}/dist/css/express/medium-vars.css", - "{projectRoot}/dist/css/express/large-vars.css" + "{projectRoot}/dist/css/large-vars.css" ] } } diff --git a/tokens/tasks/token-rollup.js b/tokens/tasks/token-rollup.js index 39f907f7ee1..a551ee7ef85 100644 --- a/tokens/tasks/token-rollup.js +++ b/tokens/tasks/token-rollup.js @@ -20,7 +20,7 @@ const path = require("path"); const fg = require("fast-glob"); const { processCSS } = require("../../tasks/component-builder.js"); -const { fetchContent } = require("../../tasks/utilities.js"); +const { copy, fetchContent } = require("../../tasks/utilities.js"); require("colors"); @@ -115,52 +115,47 @@ async function main({ const compiledOutputPath = path.join(cwd, "dist"); - // Ensure the dist directory exists - if (!fs.existsSync(compiledOutputPath)) { - fs.mkdirSync(compiledOutputPath); + const reports = []; + const errors = []; + + // Wait for all the custom files to be processed + await appendCustomOverrides({ cwd }).then((report) => { reports.push(report); }).catch((err) => { errors.push(err); }); + + // Then build the index.css file + await index(["dist/css/*-vars.css"], path.join(compiledOutputPath, "css", "index.css"), { cwd, clean }).then((report) => { reports.push(report); }).catch((err) => { errors.push(err); }); + + // Finally, copy the index.css file to the dist folder + await copy(path.join(compiledOutputPath, "css", "index.css"), path.join(cwd, "dist", "index.css"), { cwd, isDeprecated: false }).then((report) => { reports.push(report); }).catch((err) => { errors.push(err); }); + + // Combine all the reports into a single log output + const logs = reports.flat(Infinity).filter(Boolean); + const errorLogs = errors.flat(Infinity).filter(Boolean); + + console.log(`\n\n${key} 🔨`); + console.log(`${"".padStart(30, "-")}`); + + if (!(errorLogs && errorLogs.length > 0)) { + if (logs && logs.length > 0) { + logs.forEach(log => { + // Strip the ../../tokens/ from the paths + console.log(log.replace(/(\.\.\/)+tokens\//g, "")); + }); + } + else console.log("No assets created.".gray); + } + else { + errorLogs.forEach(log => { + console.error(log); + }); } - // Read in the package version from the package.json file - const packageJson = await fsp.readFile(path.join(cwd, "package.json"), "utf-8").then(JSON.parse); + console.log(`${"".padStart(30, "-")}`); + console.timeEnd(key); + console.log(""); - // Wait for all the custom files to be processed - return appendCustomOverrides({ packageJson, cwd }).then(async (r) => - Promise.all([ - index( - ["dist/css/*-vars.css"], - path.join(compiledOutputPath, "css", "index.css"), - { cwd, clean, packageJson } - ) - ]).then((reports) => { - const logs = [reports, r].flat(Infinity).filter(Boolean); - - console.log(`\n\n${key} 🔨`); - console.log(`${"".padStart(30, "-")}`); - - if (logs && logs.length > 0) { - logs.forEach(log => { - // Strip the ../../tokens/ from the paths - console.log(log.replace(/(\.\.\/)+tokens\//g, "")); - }); - } - else console.log("No assets created.".gray); - - console.log(`${"".padStart(30, "-")}`); - console.timeEnd(key); - console.log(""); - }).catch((err) => { - console.log(`\n\n${key} 🔨`); - console.log(`${"".padStart(30, "-")}`); - - console.trace(err); - - console.log(`${"".padStart(30, "-")}`); - console.timeEnd(key); - console.log(""); - - process.exit(1); - }) - ); + if (errorLogs && errorLogs.length > 0) { + process.exit(1); + } } exports.default = main; diff --git a/tools/bundle/package.json b/tools/bundle/package.json index 734566dc531..7f641c2bacb 100644 --- a/tools/bundle/package.json +++ b/tools/bundle/package.json @@ -74,6 +74,7 @@ "@spectrum-css/icon": "workspace:^", "@spectrum-css/illustratedmessage": "workspace:^", "@spectrum-css/infieldbutton": "workspace:^", + "@spectrum-css/infieldprogresscircle": "workspace:^", "@spectrum-css/inlinealert": "workspace:^", "@spectrum-css/link": "workspace:^", "@spectrum-css/logicbutton": "workspace:^", diff --git a/tools/bundle/src/index.css b/tools/bundle/src/index.css index 31d68ccee09..3f1db509c75 100644 --- a/tools/bundle/src/index.css +++ b/tools/bundle/src/index.css @@ -66,6 +66,7 @@ @import "@spectrum-css/icon"; @import "@spectrum-css/illustratedmessage"; @import "@spectrum-css/infieldbutton"; +@import "@spectrum-css/infieldprogresscircle"; @import "@spectrum-css/inlinealert"; @import "@spectrum-css/link"; @import "@spectrum-css/logicbutton"; diff --git a/tools/generator/CHANGELOG.md b/tools/generator/CHANGELOG.md index c9027a9beca..643205568c3 100644 --- a/tools/generator/CHANGELOG.md +++ b/tools/generator/CHANGELOG.md @@ -31,16 +31,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 3.0.0 -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.1.0...@spectrum-css/generator@3.0.0) +🗓 2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.1.0...@spectrum-css/generator@3.0.0) \*feat!: postcss config build and script; remove gulp (#2466)([b0f337b](https://github.com/adobe/spectrum-css/commit/b0f337b)), closes[#2466](https://github.com/adobe/spectrum-css/issues/2466) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES - * - - Removes component-builder & component-builder-simple for script leveraging postcss +- Removes component-builder & component-builder-simple for script leveraging postcss - Imports added to index.css and themes/express.css @@ -48,8 +45,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.1.0 -🗓 -2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.20...@spectrum-css/generator@2.1.0) +🗓 2024-02-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.20...@spectrum-css/generator@2.1.0) ### ✨ Features @@ -59,8 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.20 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/generator @@ -68,8 +63,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.19 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.18...@spectrum-css/generator@2.0.19) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.18...@spectrum-css/generator@2.0.19) **Note:** Version bump only for package @spectrum-css/generator @@ -77,8 +71,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.18 -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.14...@spectrum-css/generator@2.0.18) +🗓 2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.14...@spectrum-css/generator@2.0.18) **Note:** Version bump only for package @spectrum-css/generator @@ -86,8 +79,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.17 -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.14...@spectrum-css/generator@2.0.17) +🗓 2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.14...@spectrum-css/generator@2.0.17) **Note:** Version bump only for package @spectrum-css/generator @@ -95,8 +87,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.14 -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.13...@spectrum-css/generator@2.0.14) +🗓 2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.13...@spectrum-css/generator@2.0.14) **Note:** Version bump only for package @spectrum-css/generator @@ -104,8 +95,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.13 -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.12...@spectrum-css/generator@2.0.13) +🗓 2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.12...@spectrum-css/generator@2.0.13) **Note:** Version bump only for package @spectrum-css/generator @@ -113,8 +103,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.12 -🗓 -2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.11...@spectrum-css/generator@2.0.12) +🗓 2023-07-31 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.11...@spectrum-css/generator@2.0.12) **Note:** Version bump only for package @spectrum-css/generator @@ -122,8 +111,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.11 -🗓 -2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.10...@spectrum-css/generator@2.0.11) +🗓 2023-07-24 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.10...@spectrum-css/generator@2.0.11) **Note:** Version bump only for package @spectrum-css/generator @@ -131,8 +119,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.10 -🗓 -2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.9...@spectrum-css/generator@2.0.10) +🗓 2023-06-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.9...@spectrum-css/generator@2.0.10) **Note:** Version bump only for package @spectrum-css/generator @@ -140,8 +127,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.9 -🗓 -2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.8...@spectrum-css/generator@2.0.9) +🗓 2023-06-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.8...@spectrum-css/generator@2.0.9) ### 🐛 Bug fixes @@ -151,8 +137,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 2.0.8 -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.7...@spectrum-css/generator@2.0.8) +🗓 2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/generator@2.0.7...@spectrum-css/generator@2.0.8) **Note:** Version bump only for package @spectrum-css/generator diff --git a/tools/generator/templates/index.css.hbs b/tools/generator/templates/index.css.hbs index 2219223a2b1..8fa905253bd 100644 --- a/tools/generator/templates/index.css.hbs +++ b/tools/generator/templates/index.css.hbs @@ -15,8 +15,6 @@ // color: var(--highcontrast-{{ folderName }}-content-color-default, var(--mod-{{ folderName }}-content-color-default, var(--spectrum-{{ folderName }}-content-color-default))); &.spectrum-{{ pascalCase name }}--sizeS {} - &, - &.spectrum-{{ pascalCase name }}--sizeM {} &.spectrum-{{ pascalCase name }}--sizeL {} &.spectrum-{{ pascalCase name }}--sizeXL {} } diff --git a/tools/generator/templates/package.json.hbs b/tools/generator/templates/package.json.hbs index 4ae644481fd..e9bdba4af66 100644 --- a/tools/generator/templates/package.json.hbs +++ b/tools/generator/templates/package.json.hbs @@ -13,24 +13,41 @@ "bugs": { "url": "https://github.com/adobe/spectrum-css/issues" }, + "exports": { + ".": "./dist/index.css", + "./*.md": "./*.md", + "./dist/*": "./dist/*", + "./index.css": "./dist/index.css", + "./metadata.json": "./dist/metadata.json", + "./package.json": "./package.json" + }, "main": "dist/index.css", "files": [ "dist/*", - "CHANGELOG.md", + "*.md", "package.json", - "stories/template.js", - "metadata/mods.md" + "stories/*", + "metadata/*" ], + "peerDependencies": { + "{{ tokens.name }}": ">={{ parse tokens.version '.' 0 1 }}" + }, + "devDependencies": { + "@spectrum-css/tokens": "workspace:^" + }, "keywords": [ "spectrum", "css", "design system", "adobe" ], - "peerDependencies": { - "{{ tokens.name }}": ">={{ parse tokens.version '.' 0 1 }}" - }, "publishConfig": { "access": "public" - } + }, + "spectrum": [ + { + "rootClass": "spectrum-{{ pascalCase name }}", + "swc": "https://opensource.adobe.com/spectrum-web-components/components/{{ folderName }}/" + } + ] } diff --git a/tools/generator/templates/stories/template.js.hbs b/tools/generator/templates/stories/template.js.hbs index af1047abb64..394ccd11658 100644 --- a/tools/generator/templates/stories/template.js.hbs +++ b/tools/generator/templates/stories/template.js.hbs @@ -7,8 +7,6 @@ import { styleMap } from "lit/directives/style-map.js"; import { when } from "lit/directives/when.js"; import "../index.css"; -import "../themes/express.css"; -import "../themes/spectrum.css"; export const Template = ({ rootClass = "spectrum-{{ pascalCase name }}", diff --git a/ui-icons/CHANGELOG.md b/ui-icons/CHANGELOG.md index f5c4b79039f..4dfda3a32d4 100644 --- a/ui-icons/CHANGELOG.md +++ b/ui-icons/CHANGELOG.md @@ -7,8 +7,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.2 -🗓 -2024-02-06 +🗓 2024-02-06 **Note:** Version bump only for package @spectrum-css/ui-icons @@ -16,8 +15,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.1 -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/ui-icons@1.1.0...@spectrum-css/ui-icons@1.1.1) +🗓 2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/ui-icons@1.1.0...@spectrum-css/ui-icons@1.1.1) **Note:** Version bump only for package @spectrum-css/ui-icons @@ -25,8 +23,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 1.1.0 -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/ui-icons@0.1.0...@spectrum-css/ui-icons@1.1.0) +🗓 2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/ui-icons@0.1.0...@spectrum-css/ui-icons@1.1.0) ### ✨ Features @@ -36,13 +33,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ## 0.1.0 -🗓 -2023-12-12 +🗓 2023-12-12 \*feat(icon,ui-icons)!: migrate the icon compiler to a distinct package (#2343)([d73d594](https://github.com/adobe/spectrum-css/commit/d73d594)), closes[#2343](https://github.com/adobe/spectrum-css/issues/2343) - ### - 🛑 BREAKING CHANGES +### 🛑 BREAKING CHANGES * - @spectrum-css/icon will no longer contain SVG assets; it will be a purely CSS package with all SVG assets migrated to the new @spectrum-css/ui-icons package. diff --git a/yarn.lock b/yarn.lock index 4c547fb4224..f968b5e7c2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -120,10 +120,10 @@ __metadata: languageName: node linkType: hard -"@adobe/spectrum-tokens@npm:0.0.0-s2-foundations-20241121221506": - version: 0.0.0-s2-foundations-20241121221506 - resolution: "@adobe/spectrum-tokens@npm:0.0.0-s2-foundations-20241121221506" - checksum: 10c0/64664995ca98170c2a089ecb215103c77bb5a3ff49848371e2dfc301dc3ca30ef4dafae3d44cda82a1609d877e54608cc2e591edef37095ee646c6cf185143ee +"@adobe/spectrum-tokens@npm:13.0.0-beta.56": + version: 13.0.0-beta.56 + resolution: "@adobe/spectrum-tokens@npm:13.0.0-beta.56" + checksum: 10c0/473a7e3cfb9317862584045b31c16e67122512f310c490c8cb9e11c1d200bbd78f79885e970e16034b375c19f2a27da27397a4ba3ee0cec1a8424a34582a85ad languageName: node linkType: hard @@ -3647,13 +3647,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -3666,16 +3662,12 @@ __metadata: "@spectrum-css/fieldlabel": "npm:10.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actiongroup": ">=5" - "@spectrum-css/closebutton": ">=5" - "@spectrum-css/fieldlabel": ">=8" - "@spectrum-css/popover": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actiongroup": ">=6" + "@spectrum-css/closebutton": ">=6" + "@spectrum-css/fieldlabel": ">=10" + "@spectrum-css/popover": ">=8" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -3683,16 +3675,12 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/actionbutton@workspace:components/actionbutton" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -3705,13 +3693,9 @@ __metadata: dependencies: "@spectrum-css/actionbutton": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/actionbutton": optional: true @@ -3727,16 +3711,12 @@ __metadata: "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/icon": ">=7" - "@spectrum-css/menu": ">=7" - "@spectrum-css/popover": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/icon": ">=9" + "@spectrum-css/menu": ">=9" + "@spectrum-css/popover": ">=8" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -3749,16 +3729,12 @@ __metadata: "@spectrum-css/divider": "npm:5.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" - "@spectrum-css/closebutton": ">=5" - "@spectrum-css/divider": ">=3" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14" + "@spectrum-css/closebutton": ">=6" + "@spectrum-css/divider": ">=5" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -3775,17 +3751,13 @@ __metadata: "@spectrum-css/modal": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/underlay": "npm:6.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/buttongroup": ">=7" - "@spectrum-css/divider": ">=3" - "@spectrum-css/icon": ">=7" - "@spectrum-css/modal": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" - "@spectrum-css/underlay": ">=4" + "@spectrum-css/buttongroup": ">=9" + "@spectrum-css/divider": ">=5" + "@spectrum-css/icon": ">=9" + "@spectrum-css/modal": ">=7" + "@spectrum-css/tokens": ">=16" + "@spectrum-css/underlay": ">=6" peerDependenciesMeta: "@spectrum-css/buttongroup": optional: true @@ -3799,12 +3771,8 @@ __metadata: resolution: "@spectrum-css/asset@workspace:components/asset" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -3814,13 +3782,9 @@ __metadata: dependencies: "@spectrum-css/checkbox": "npm:10.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/checkbox": optional: true @@ -3834,14 +3798,10 @@ __metadata: "@spectrum-css/checkbox": "npm:10.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/checkbox": optional: true @@ -3855,12 +3815,8 @@ __metadata: resolution: "@spectrum-css/avatar@workspace:components/avatar" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -3870,13 +3826,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -3890,14 +3842,10 @@ __metadata: "@spectrum-css/actionbutton": "npm:7.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/actionbutton": optional: true @@ -3954,6 +3902,7 @@ __metadata: "@spectrum-css/icon": "workspace:^" "@spectrum-css/illustratedmessage": "workspace:^" "@spectrum-css/infieldbutton": "workspace:^" + "@spectrum-css/infieldprogresscircle": "workspace:^" "@spectrum-css/inlinealert": "workspace:^" "@spectrum-css/link": "workspace:^" "@spectrum-css/logicbutton": "workspace:^" @@ -4005,18 +3954,14 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/button@workspace:components/button" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/progresscircle": "npm:5.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/progresscircle": ">=3" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/progresscircle": ">=5" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -4031,13 +3976,9 @@ __metadata: dependencies: "@spectrum-css/button": "npm:14.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4047,13 +3988,9 @@ __metadata: dependencies: "@spectrum-css/actionbutton": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4067,18 +4004,13 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/typography": "npm:8.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/asset": ">=5" - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/icon": ">=7" - "@spectrum-css/quickaction": ">=3" - "@spectrum-css/tokens": ">=14.5.0 || >=15" - "@spectrum-css/typography": ">=6" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/asset": ">=7" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" + "@spectrum-css/typography": ">=8" peerDependenciesMeta: "@spectrum-css/actionbutton": optional: true @@ -4099,13 +4031,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4115,13 +4043,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4129,16 +4053,12 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/closebutton@workspace:components/closebutton" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4147,12 +4067,8 @@ __metadata: resolution: "@spectrum-css/coachindicator@workspace:components/coachindicator" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14.6.0 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4167,18 +4083,14 @@ __metadata: "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" + "@spectrum-css/actionbutton": ">=7" "@spectrum-css/actionmenu": ">=6" - "@spectrum-css/button": ">=13" - "@spectrum-css/buttongroup": ">=7" + "@spectrum-css/button": ">=14" + "@spectrum-css/buttongroup": ">=9" "@spectrum-css/menu": ">=7" - "@spectrum-css/popover": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/button": optional: true @@ -4191,13 +4103,9 @@ __metadata: dependencies: "@spectrum-css/colorhandle": "npm:10.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/colorhandle": ">=8" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4208,14 +4116,10 @@ __metadata: "@spectrum-css/colorloupe": "npm:7.0.1" "@spectrum-css/opacitycheckerboard": "npm:4.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/colorloupe": ">=5" "@spectrum-css/opacitycheckerboard": ">=2" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/colorloupe": optional: true @@ -4227,12 +4131,8 @@ __metadata: resolution: "@spectrum-css/colorloupe@workspace:components/colorloupe" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4243,14 +4143,10 @@ __metadata: "@spectrum-css/colorhandle": "npm:10.0.1" "@spectrum-css/opacitycheckerboard": "npm:4.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/colorhandle": ">=8" "@spectrum-css/opacitycheckerboard": ">=2" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4262,15 +4158,11 @@ __metadata: "@spectrum-css/colorhandle": "npm:10.0.1" "@spectrum-css/colorloupe": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/colorarea": ">=5" "@spectrum-css/colorhandle": ">=8" "@spectrum-css/colorloupe": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/colorarea": optional: true @@ -4289,30 +4181,26 @@ __metadata: "@spectrum-css/progresscircle": "npm:5.0.1" "@spectrum-css/textfield": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/menu": ">=7" "@spectrum-css/pickerbutton": ">=5" - "@spectrum-css/popover": ">=7" - "@spectrum-css/progresscircle": ">=3" + "@spectrum-css/popover": ">=8" + "@spectrum-css/progresscircle": ">=5" "@spectrum-css/textfield": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/progresscircle": optional: true languageName: unknown linkType: soft -"@spectrum-css/commons@workspace:^, @spectrum-css/commons@workspace:components/commons": +"@spectrum-css/commons@npm:11.0.0, @spectrum-css/commons@workspace:^, @spectrum-css/commons@workspace:components/commons": version: 0.0.0-use.local resolution: "@spectrum-css/commons@workspace:components/commons" dependencies: - "@spectrum-css/tokens": "workspace:^" + "@spectrum-css/tokens": "npm:16.0.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4324,15 +4212,11 @@ __metadata: "@spectrum-css/link": "npm:7.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/link": ">=5" - "@spectrum-css/popover": ">=7" - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/link": ">=7" + "@spectrum-css/popover": ">=8" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/link": optional: true @@ -4348,16 +4232,12 @@ __metadata: "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/textfield": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/calendar": ">=5" "@spectrum-css/pickerbutton": ">=5" - "@spectrum-css/popover": ">=7" + "@spectrum-css/popover": ">=8" "@spectrum-css/textfield": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4366,12 +4246,8 @@ __metadata: resolution: "@spectrum-css/dial@workspace:components/dial" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4379,22 +4255,20 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/dialog@workspace:components/dialog" dependencies: - "@spectrum-css/buttongroup": "workspace:^" + "@spectrum-css/button": "npm:14.0.1" + "@spectrum-css/buttongroup": "npm:9.0.1" "@spectrum-css/closebutton": "npm:6.0.1" "@spectrum-css/divider": "npm:5.0.1" "@spectrum-css/modal": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/underlay": "npm:6.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/closebutton": ">=5" - "@spectrum-css/divider": ">=3" - "@spectrum-css/modal": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" - "@spectrum-css/underlay": ">=4" + "@spectrum-css/button": ">=14" + "@spectrum-css/buttongroup": ">=9" + "@spectrum-css/divider": ">=5" + "@spectrum-css/modal": ">=7" + "@spectrum-css/tokens": ">=16" + "@spectrum-css/underlay": ">=6" peerDependenciesMeta: "@spectrum-css/divider": optional: true @@ -4410,12 +4284,8 @@ __metadata: resolution: "@spectrum-css/divider@workspace:components/divider" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4425,13 +4295,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4443,15 +4309,11 @@ __metadata: "@spectrum-css/illustratedmessage": "npm:9.0.1" "@spectrum-css/link": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" + "@spectrum-css/actionbutton": ">=7" "@spectrum-css/illustratedmessage": ">=7" "@spectrum-css/link": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/actionbutton": optional: true @@ -4468,15 +4330,11 @@ __metadata: "@spectrum-css/helptext": "npm:7.0.1" "@spectrum-css/radio": "npm:10.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/checkbox": ">=9" + "@spectrum-css/checkbox": ">=10" "@spectrum-css/helptext": ">=5" "@spectrum-css/radio": ">=9" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/checkbox": optional: true @@ -4493,13 +4351,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4508,12 +4362,8 @@ __metadata: resolution: "@spectrum-css/floatingactionbutton@workspace:components/floatingactionbutton" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4548,13 +4398,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4563,12 +4409,8 @@ __metadata: resolution: "@spectrum-css/icon@workspace:components/icon" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4578,13 +4420,9 @@ __metadata: dependencies: "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/typography": "npm:8.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" - "@spectrum-css/typography": ">=6" + "@spectrum-css/tokens": ">=16" + "@spectrum-css/typography": ">=8" languageName: unknown linkType: soft @@ -4594,19 +4432,25 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true languageName: unknown linkType: soft +"@spectrum-css/infieldprogresscircle@workspace:^, @spectrum-css/infieldprogresscircle@workspace:components/infieldprogresscircle": + version: 0.0.0-use.local + resolution: "@spectrum-css/infieldprogresscircle@workspace:components/infieldprogresscircle" + dependencies: + "@spectrum-css/tokens": "npm:16.0.0" + peerDependencies: + "@spectrum-css/tokens": ">=16" + languageName: unknown + linkType: soft + "@spectrum-css/inlinealert@workspace:^, @spectrum-css/inlinealert@workspace:components/inlinealert": version: 0.0.0-use.local resolution: "@spectrum-css/inlinealert@workspace:components/inlinealert" @@ -4614,14 +4458,10 @@ __metadata: "@spectrum-css/button": "npm:14.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/button": optional: true @@ -4633,12 +4473,8 @@ __metadata: resolution: "@spectrum-css/link@workspace:components/link" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4646,14 +4482,10 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/logicbutton@workspace:components/logicbutton" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4667,16 +4499,12 @@ __metadata: "@spectrum-css/switch": "npm:6.0.1" "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/tray": "npm:5.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/divider": ">=3" - "@spectrum-css/icon": ">=7" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/divider": ">=5" + "@spectrum-css/icon": ">=9" "@spectrum-css/switch": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" "@spectrum-css/tray": ">=3" peerDependenciesMeta: "@spectrum-css/checkbox": @@ -4714,15 +4542,11 @@ __metadata: "@spectrum-css/checkbox": "npm:10.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/assetlist": ">=6" - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4730,14 +4554,10 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/modal@workspace:components/modal" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4746,12 +4566,8 @@ __metadata: resolution: "@spectrum-css/opacitycheckerboard@workspace:components/opacitycheckerboard" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4760,12 +4576,8 @@ __metadata: resolution: "@spectrum-css/page@workspace:components/page" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4778,16 +4590,12 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/textfield": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/button": ">=13" - "@spectrum-css/icon": ">=7" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/button": ">=14" + "@spectrum-css/icon": ">=9" "@spectrum-css/textfield": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4795,24 +4603,20 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/picker@workspace:components/picker" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/helptext": "npm:7.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/progresscircle": "npm:5.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/helptext": ">=5" - "@spectrum-css/icon": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/menu": ">=7" - "@spectrum-css/popover": ">=7" - "@spectrum-css/progresscircle": ">=3" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8" + "@spectrum-css/progresscircle": ">=5" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/helptext": optional: true @@ -4829,15 +4633,11 @@ __metadata: "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/popover": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/menu": ">=7" - "@spectrum-css/popover": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/popover": ">=8" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4846,21 +4646,17 @@ __metadata: resolution: "@spectrum-css/popover@workspace:components/popover" dependencies: "@spectrum-css/alertdialog": "npm:4.0.1" - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/dialog": "npm:12.0.1" "@spectrum-css/divider": "npm:5.0.1" "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/alertdialog": ">=2" "@spectrum-css/dialog": ">=10" - "@spectrum-css/divider": ">=3" + "@spectrum-css/divider": ">=5" "@spectrum-css/menu": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/divider": optional: true @@ -4879,7 +4675,6 @@ __metadata: "@etchteam/storybook-addon-status": "npm:^5.0.0" "@spectrum-css/bundle": "workspace:^" "@spectrum-css/tokens": "workspace:^" - "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^15.2.0" "@spectrum-css/ui-icons": "workspace:^" "@storybook/addon-a11y": "npm:^8.4.7" "@storybook/addon-actions": "npm:^8.4.7" @@ -4919,13 +4714,9 @@ __metadata: dependencies: "@spectrum-css/fieldlabel": "npm:10.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/fieldlabel": ">=8" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/fieldlabel": ">=10" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/fieldlabel": optional: true @@ -4937,12 +4728,8 @@ __metadata: resolution: "@spectrum-css/progresscircle@workspace:components/progresscircle" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4952,13 +4739,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4968,13 +4751,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -4986,15 +4765,11 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/textfield": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/clearbutton": ">=6" - "@spectrum-css/icon": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/textfield": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5004,13 +4779,9 @@ __metadata: dependencies: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -5023,13 +4794,9 @@ __metadata: dependencies: "@spectrum-css/stepper": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/stepper": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5038,12 +4805,8 @@ __metadata: resolution: "@spectrum-css/splitview@workspace:components/splitview" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5052,12 +4815,8 @@ __metadata: resolution: "@spectrum-css/statuslight@workspace:components/statuslight" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5068,13 +4827,9 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" "@spectrum-css/tooltip": "npm:7.0.1" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" "@spectrum-css/tooltip": ">=6" peerDependenciesMeta: "@spectrum-css/tooltip": @@ -5091,16 +4846,12 @@ __metadata: "@spectrum-css/infieldbutton": "npm:6.0.1" "@spectrum-css/textfield": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/actionbutton": ">=6" - "@spectrum-css/icon": ">=7" + "@spectrum-css/actionbutton": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/infieldbutton": ">=5" "@spectrum-css/textfield": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/infieldbutton": optional: true @@ -5113,13 +4864,9 @@ __metadata: dependencies: "@spectrum-css/opacitycheckerboard": "npm:4.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/opacitycheckerboard": ">=2" - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/opacitycheckerboard": ">=4" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5129,13 +4876,9 @@ __metadata: dependencies: "@spectrum-css/swatch": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/swatch": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5144,12 +4887,8 @@ __metadata: resolution: "@spectrum-css/switch@workspace:components/switch" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5162,16 +4901,12 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/thumbnail": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" - "@spectrum-css/checkbox": ">=9" - "@spectrum-css/icon": ">=7" + "@spectrum-css/button": ">=14" + "@spectrum-css/checkbox": ">=10" + "@spectrum-css/icon": ">=9" "@spectrum-css/thumbnail": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/button": optional: true @@ -5190,15 +4925,11 @@ __metadata: "@spectrum-css/menu": "npm:9.0.1" "@spectrum-css/picker": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/menu": ">=7" "@spectrum-css/picker": ">=8" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/icon": optional: true @@ -5213,15 +4944,11 @@ __metadata: "@spectrum-css/clearbutton": "npm:7.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/avatar": ">=7" "@spectrum-css/clearbutton": ">=6" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/avatar": optional: true @@ -5236,13 +4963,9 @@ __metadata: dependencies: "@spectrum-css/tag": "npm:10.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/tag": ">=9" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5252,13 +4975,9 @@ __metadata: dependencies: "@spectrum-css/helptext": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/helptext": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/helptext": optional: true @@ -5271,13 +4990,9 @@ __metadata: dependencies: "@spectrum-css/opacitycheckerboard": "npm:4.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: "@spectrum-css/opacitycheckerboard": ">=2" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5289,44 +5004,25 @@ __metadata: "@spectrum-css/closebutton": "npm:6.0.1" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" - "@spectrum-css/closebutton": ">=5" - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/button": ">=14" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft -"@spectrum-css/tokens-legacy@npm:@spectrum-css/tokens@^14.6.0": - version: 14.6.0 - resolution: "@spectrum-css/tokens@npm:14.6.0" - checksum: 10c0/62343030d55fce9de192ca0d1e13bd1ee147c1aba45ecf6b8db27c1740865f9645af8b0b260f0723ce295af2b83cd2014962d62af61b8827a548bc80be9f1012 - languageName: node - linkType: hard - -"@spectrum-css/tokens-legacy@npm:@spectrum-css/tokens@^15.2.0": - version: 15.2.0 - resolution: "@spectrum-css/tokens@npm:15.2.0" - checksum: 10c0/dd8d1dd39fc72d57bc12e183b3fda7654a7ebf90902267e8c4145d54b09eecfc150f09c92ec837b6c501c0c9da573e2d9b0bc3745c7c8981c3a39ee03367fc24 - languageName: node - linkType: hard - "@spectrum-css/tokens@npm:16.0.0, @spectrum-css/tokens@workspace:^, @spectrum-css/tokens@workspace:tokens": version: 0.0.0-use.local resolution: "@spectrum-css/tokens@workspace:tokens" dependencies: - "@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-20241121221506" + "@adobe/spectrum-tokens": "npm:13.0.0-beta.56" "@adobe/token-diff-generator": "npm:^1.3.0" "@nxkit/style-dictionary": "npm:^6.0.0" "@spectrum-tools/postcss-rgb-mapping": "workspace:^" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" postcss: "npm:^8.5.0" postcss-cli: "npm:^11.0.0" + postcss-import: "npm:^16.1.0" + postcss-licensing: "npm:^2.0.0" postcss-sorting: "npm:^9.1.0" prettier: "npm:^3.4.2" style-dictionary: "npm:^3.9.2" @@ -5339,16 +5035,12 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/tooltip@workspace:components/tooltip" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/icon": ">=9" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5362,17 +5054,13 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/modal": "npm:7.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/button": ">=13" + "@spectrum-css/button": ">=14" "@spectrum-css/dialog": ">=10" - "@spectrum-css/divider": ">=3" - "@spectrum-css/icon": ">=7" - "@spectrum-css/modal": ">=5" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/divider": ">=5" + "@spectrum-css/icon": ">=9" + "@spectrum-css/modal": ">=7" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/dialog": optional: true @@ -5388,14 +5076,10 @@ __metadata: "@spectrum-css/icon": "npm:9.0.1" "@spectrum-css/thumbnail": "npm:8.0.1" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/icon": ">=7" + "@spectrum-css/icon": ">=9" "@spectrum-css/thumbnail": ">=6" - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" peerDependenciesMeta: "@spectrum-css/thumbnail": optional: true @@ -5407,12 +5091,8 @@ __metadata: resolution: "@spectrum-css/typography@workspace:components/typography" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14.5.0 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5431,14 +5111,10 @@ __metadata: version: 0.0.0-use.local resolution: "@spectrum-css/underlay@workspace:components/underlay" dependencies: - "@spectrum-css/commons": "workspace:^" + "@spectrum-css/commons": "npm:11.0.0" "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5447,12 +5123,8 @@ __metadata: resolution: "@spectrum-css/well@workspace:components/well" dependencies: "@spectrum-css/tokens": "npm:16.0.0" - eslint: "npm:^8.57.0" - npm-run-all2: "npm:^7.0.2" - prettier: "npm:^3.4.2" - stylelint: "npm:^16.9.0" peerDependencies: - "@spectrum-css/tokens": ">=14 || >=15" + "@spectrum-css/tokens": ">=16" languageName: unknown linkType: soft @@ -5469,33 +5141,7 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-tools/postcss-add-theming-layer@workspace:^, @spectrum-tools/postcss-add-theming-layer@workspace:plugins/postcss-add-theming-layer": - version: 0.0.0-use.local - resolution: "@spectrum-tools/postcss-add-theming-layer@workspace:plugins/postcss-add-theming-layer" - dependencies: - ava: "npm:^6.2.0" - c8: "npm:^10.1.2" - postcss: "npm:^8.4.49" - postcss-selector-parser: "npm:^6.1.1" - postcss-values-parser: "npm:^6.0.2" - peerDependencies: - postcss: ">=8" - languageName: unknown - linkType: soft - -"@spectrum-tools/postcss-property-rollup@workspace:^, @spectrum-tools/postcss-property-rollup@workspace:plugins/postcss-property-rollup": - version: 0.0.0-use.local - resolution: "@spectrum-tools/postcss-property-rollup@workspace:plugins/postcss-property-rollup" - dependencies: - ava: "npm:^6.2.0" - c8: "npm:^10.1.2" - postcss: "npm:^8.4.49" - peerDependencies: - postcss: ">=8" - languageName: unknown - linkType: soft - -"@spectrum-tools/postcss-rgb-mapping@workspace:^, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping": +"@spectrum-tools/postcss-rgb-mapping@npm:^1.0.0, @spectrum-tools/postcss-rgb-mapping@workspace:^, @spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping": version: 0.0.0-use.local resolution: "@spectrum-tools/postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping" dependencies: @@ -5552,19 +5198,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-tools/stylelint-theme-alignment@workspace:plugins/stylelint-theme-alignment": - version: 0.0.0-use.local - resolution: "@spectrum-tools/stylelint-theme-alignment@workspace:plugins/stylelint-theme-alignment" - dependencies: - colors: "npm:^1.4.0" - postcss: "npm:^8.5.0" - postcss-values-parser: "npm:^6.0.2" - stylelint: "npm:^16.9.0" - peerDependencies: - stylelint: ">=16" - languageName: unknown - linkType: soft - "@storybook/addon-a11y@npm:^8.4.7": version: 8.4.7 resolution: "@storybook/addon-a11y@npm:8.4.7" @@ -7709,7 +7342,7 @@ __metadata: languageName: node linkType: hard -"c8@npm:^10.1.2, c8@npm:^10.1.3": +"c8@npm:^10.1.3": version: 10.1.3 resolution: "c8@npm:10.1.3" dependencies: @@ -15292,7 +14925,7 @@ __metadata: languageName: node linkType: hard -"npm-run-all2@npm:*, npm-run-all2@npm:^7.0.2": +"npm-run-all2@npm:*": version: 7.0.2 resolution: "npm-run-all2@npm:7.0.2" dependencies: @@ -17280,7 +16913,7 @@ __metadata: languageName: node linkType: hard -"postcss-selector-parser@npm:^6.1.1, postcss-selector-parser@npm:^6.1.2": +"postcss-selector-parser@npm:^6.1.2": version: 6.1.2 resolution: "postcss-selector-parser@npm:6.1.2" dependencies: @@ -18615,10 +18248,7 @@ __metadata: "@commitlint/cli": "npm:^19.6.1" "@commitlint/config-conventional": "npm:^19.6.0" "@nx/devkit": "npm:^19.8.2" - "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.6.0" - "@spectrum-tools/postcss-add-theming-layer": "workspace:^" - "@spectrum-tools/postcss-property-rollup": "workspace:^" - "@spectrum-tools/postcss-rgb-mapping": "workspace:^" + "@spectrum-tools/postcss-rgb-mapping": "npm:^1.0.0" "@yarnpkg/types": "npm:^4.0.0" at-rule-packer: "npm:^0.4.2" autoprefixer: "npm:^10.4.19"