diff --git a/.changeset/afraid-cycles-wash.md b/.changeset/afraid-cycles-wash.md new file mode 100644 index 00000000000..21bc11ec8ab --- /dev/null +++ b/.changeset/afraid-cycles-wash.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/stepper": major +--- + +Stepper bug fixes for S1 and Express variants. diff --git a/.changeset/big-hats-happen.md b/.changeset/big-hats-happen.md new file mode 100644 index 00000000000..9758ebaf999 --- /dev/null +++ b/.changeset/big-hats-happen.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/actionbutton": patch +--- + +[SWC-248]: Selected, static black actionbutton content color should be white, not black diff --git a/.changeset/calm-socks-speak.md b/.changeset/calm-socks-speak.md new file mode 100644 index 00000000000..1e632dbee90 --- /dev/null +++ b/.changeset/calm-socks-speak.md @@ -0,0 +1,86 @@ +--- +"@spectrum-css/opacitycheckerboard": minor +"@spectrum-css/illustratedmessage": minor +"@spectrum-css/coachindicator": minor +"@spectrum-css/contextualhelp": minor +"@spectrum-css/progresscircle": minor +"@spectrum-css/dropindicator": minor +"@spectrum-css/infieldbutton": minor +"@spectrum-css/actionbutton": minor +"@spectrum-css/pickerbutton": minor +"@spectrum-css/actiongroup": minor +"@spectrum-css/alertbanner": minor +"@spectrum-css/alertdialog": minor +"@spectrum-css/buttongroup": minor +"@spectrum-css/clearbutton": minor +"@spectrum-css/closebutton": minor +"@spectrum-css/colorhandle": minor +"@spectrum-css/colorslider": minor +"@spectrum-css/inlinealert": minor +"@spectrum-css/logicbutton": minor +"@spectrum-css/progressbar": minor +"@spectrum-css/statuslight": minor +"@spectrum-css/swatchgroup": minor +"@spectrum-css/actionmenu": minor +"@spectrum-css/breadcrumb": minor +"@spectrum-css/colorloupe": minor +"@spectrum-css/colorwheel": minor +"@spectrum-css/datepicker": minor +"@spectrum-css/fieldgroup": minor +"@spectrum-css/fieldlabel": minor +"@spectrum-css/pagination": minor +"@spectrum-css/typography": minor +"@spectrum-css/accordion": minor +"@spectrum-css/actionbar": minor +"@spectrum-css/assetcard": minor +"@spectrum-css/assetlist": minor +"@spectrum-css/coachmark": minor +"@spectrum-css/colorarea": minor +"@spectrum-css/splitview": minor +"@spectrum-css/textfield": minor +"@spectrum-css/thumbnail": minor +"@spectrum-css/calendar": minor +"@spectrum-css/checkbox": minor +"@spectrum-css/combobox": minor +"@spectrum-css/dropzone": minor +"@spectrum-css/helptext": minor +"@spectrum-css/steplist": minor +"@spectrum-css/taggroup": minor +"@spectrum-css/treeview": minor +"@spectrum-css/underlay": minor +"@spectrum-css/commons": minor +"@spectrum-css/divider": minor +"@spectrum-css/popover": minor +"@spectrum-css/sidenav": minor +"@spectrum-css/stepper": minor +"@spectrum-css/tooltip": minor +"@spectrum-css/avatar": minor +"@spectrum-css/button": minor +"@spectrum-css/dialog": minor +"@spectrum-css/miller": minor +"@spectrum-css/picker": minor +"@spectrum-css/rating": minor +"@spectrum-css/search": minor +"@spectrum-css/slider": minor +"@spectrum-css/swatch": minor +"@spectrum-css/switch": minor +"@spectrum-css/asset": minor +"@spectrum-css/badge": minor +"@spectrum-css/modal": minor +"@spectrum-css/radio": minor +"@spectrum-css/table": minor +"@spectrum-css/toast": minor +"@spectrum-css/card": minor +"@spectrum-css/dial": minor +"@spectrum-css/icon": minor +"@spectrum-css/link": minor +"@spectrum-css/menu": minor +"@spectrum-css/tabs": minor +"@spectrum-css/tray": minor +"@spectrum-css/well": minor +"@spectrum-css/tag": minor +"@spectrum-css/ui-icons": minor +"@spectrum-css/tokens": minor +--- + +Fixes to index.css imports to ensure appropriate system mappings get loaded diff --git a/.changeset/clever-walls-glow.md b/.changeset/clever-walls-glow.md new file mode 100644 index 00000000000..cc0a824b962 --- /dev/null +++ b/.changeset/clever-walls-glow.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/floatingactionbutton": minor +--- + +Fixes to static white background color and selected states diff --git a/.changeset/cyan-actors-rest.md b/.changeset/cyan-actors-rest.md new file mode 100644 index 00000000000..341e8eb94a0 --- /dev/null +++ b/.changeset/cyan-actors-rest.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": patch +"@spectrum-css/opacitycheckerboard": patch +"@spectrum-css/illustratedmessage": patch +"@spectrum-css/coachindicator": patch +"@spectrum-css/contextualhelp": patch +"@spectrum-css/progresscircle": patch +"@spectrum-css/dropindicator": patch +"@spectrum-css/infieldbutton": patch +"@spectrum-css/actionbutton": patch +"@spectrum-css/pickerbutton": patch +"@spectrum-css/actiongroup": patch +"@spectrum-css/alertbanner": patch +"@spectrum-css/alertdialog": patch +"@spectrum-css/buttongroup": patch +"@spectrum-css/clearbutton": patch +"@spectrum-css/closebutton": patch +"@spectrum-css/colorhandle": patch +"@spectrum-css/colorslider": patch +"@spectrum-css/inlinealert": patch +"@spectrum-css/logicbutton": patch +"@spectrum-css/progressbar": patch +"@spectrum-css/statuslight": patch +"@spectrum-css/swatchgroup": patch +"@spectrum-css/actionmenu": patch +"@spectrum-css/breadcrumb": patch +"@spectrum-css/colorloupe": patch +"@spectrum-css/colorwheel": patch +"@spectrum-css/datepicker": patch +"@spectrum-css/fieldgroup": patch +"@spectrum-css/fieldlabel": patch +"@spectrum-css/pagination": patch +"@spectrum-css/typography": patch +"@spectrum-css/accordion": patch +"@spectrum-css/actionbar": patch +"@spectrum-css/assetcard": patch +"@spectrum-css/assetlist": patch +"@spectrum-css/coachmark": patch +"@spectrum-css/colorarea": patch +"@spectrum-css/splitview": patch +"@spectrum-css/textfield": patch +"@spectrum-css/thumbnail": patch +"@spectrum-css/calendar": patch +"@spectrum-css/checkbox": patch +"@spectrum-css/combobox": patch +"@spectrum-css/dropzone": patch +"@spectrum-css/helptext": patch +"@spectrum-css/steplist": patch +"@spectrum-css/taggroup": patch +"@spectrum-css/treeview": patch +"@spectrum-css/underlay": patch +"@spectrum-css/commons": patch +"@spectrum-css/divider": patch +"@spectrum-css/popover": patch +"@spectrum-css/sidenav": patch +"@spectrum-css/stepper": patch +"@spectrum-css/tooltip": patch +"@spectrum-css/avatar": patch +"@spectrum-css/button": patch +"@spectrum-css/dialog": patch +"@spectrum-css/miller": patch +"@spectrum-css/picker": patch +"@spectrum-css/rating": patch +"@spectrum-css/search": patch +"@spectrum-css/slider": patch +"@spectrum-css/swatch": patch +"@spectrum-css/switch": patch +"@spectrum-css/asset": patch +"@spectrum-css/badge": patch +"@spectrum-css/modal": patch +"@spectrum-css/radio": patch +"@spectrum-css/table": patch +"@spectrum-css/toast": patch +"@spectrum-css/card": patch +"@spectrum-css/dial": patch +"@spectrum-css/icon": patch +"@spectrum-css/link": patch +"@spectrum-css/menu": patch +"@spectrum-css/tabs": patch +"@spectrum-css/tray": patch +"@spectrum-css/well": patch +"@spectrum-css/tag": patch +"@spectrum-css/preview": patch +"@spectrum-css/ui-icons": patch +"@spectrum-css/tokens": patch +--- + +Doing a widespread release on all packages to ensure the latest compiled CSS is published. diff --git a/.changeset/dull-pandas-grin.md b/.changeset/dull-pandas-grin.md new file mode 100644 index 00000000000..f5fc6ffc8ab --- /dev/null +++ b/.changeset/dull-pandas-grin.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/coachmark": minor +--- + +Move the coachmark modifiers out of the theme to the base index.css. diff --git a/.changeset/empty-countries-act.md b/.changeset/empty-countries-act.md new file mode 100644 index 00000000000..28524fa6bd7 --- /dev/null +++ b/.changeset/empty-countries-act.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/clearbutton": major +--- + +Migrating Clear Button disabled variants to index.css diff --git a/.changeset/fair-parents-rush.md b/.changeset/fair-parents-rush.md new file mode 100644 index 00000000000..2877559d04e --- /dev/null +++ b/.changeset/fair-parents-rush.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/preview": major +"@spectrum-css/ui-icons": major +"@spectrum-css/tokens": major +--- + +Updated build to set cssnano to discardUnused: false diff --git a/.changeset/fluffy-apes-breathe.md b/.changeset/fluffy-apes-breathe.md new file mode 100644 index 00000000000..54b7f120041 --- /dev/null +++ b/.changeset/fluffy-apes-breathe.md @@ -0,0 +1,11 @@ +--- +"@spectrum-css/typography": patch +"@spectrum-css/combobox": patch +"@spectrum-css/stepper": patch +--- + +Combobox moved the quiet min-inline-size property to index.css from theme to pick up the t-shirt sizing for the calc. + +Typography increases specificity for the t-shirt sizing. + +Stepper fixes for the disabled + hovered states as well as regressions fixed for the quiet variant. diff --git a/.changeset/fluffy-months-battle.md b/.changeset/fluffy-months-battle.md new file mode 100644 index 00000000000..8477d42f834 --- /dev/null +++ b/.changeset/fluffy-months-battle.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/coachindicator": minor +--- + +--mod properties were moved out of `coachindicator/themes/spectrum-two.css` into `coachindicator/index.css` so --mods can be applied at the component level. diff --git a/.changeset/fresh-apes-invent.md b/.changeset/fresh-apes-invent.md new file mode 100644 index 00000000000..772c0804f73 --- /dev/null +++ b/.changeset/fresh-apes-invent.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/button": patch +--- + +[SWC-315]: Static white button mods should be applied at component level diff --git a/.changeset/fresh-emus-worry.md b/.changeset/fresh-emus-worry.md new file mode 100644 index 00000000000..50622cf2423 --- /dev/null +++ b/.changeset/fresh-emus-worry.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/closebutton": patch +--- + +Typo in CloseButton classes for sizing diff --git a/.changeset/fuzzy-brooms-jam.md b/.changeset/fuzzy-brooms-jam.md new file mode 100644 index 00000000000..f130c8b2d74 --- /dev/null +++ b/.changeset/fuzzy-brooms-jam.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/combobox": minor +"@spectrum-css/treeview": minor +"@spectrum-css/tabs": minor +--- + +[CSS-890]: adjusts --mods to be applied inside of index.css diff --git a/.changeset/fuzzy-jokes-begin.md b/.changeset/fuzzy-jokes-begin.md new file mode 100644 index 00000000000..245e47a4234 --- /dev/null +++ b/.changeset/fuzzy-jokes-begin.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +define undefined rgb tokens diff --git a/.changeset/gentle-ties-hang.md b/.changeset/gentle-ties-hang.md new file mode 100644 index 00000000000..2b4800ecf47 --- /dev/null +++ b/.changeset/gentle-ties-hang.md @@ -0,0 +1,86 @@ +--- +"@spectrum-css/floatingactionbutton": patch +"@spectrum-css/opacitycheckerboard": patch +"@spectrum-css/illustratedmessage": patch +"@spectrum-css/coachindicator": patch +"@spectrum-css/contextualhelp": patch +"@spectrum-css/progresscircle": patch +"@spectrum-css/dropindicator": patch +"@spectrum-css/infieldbutton": patch +"@spectrum-css/actionbutton": patch +"@spectrum-css/pickerbutton": patch +"@spectrum-css/actiongroup": patch +"@spectrum-css/alertbanner": patch +"@spectrum-css/alertdialog": patch +"@spectrum-css/buttongroup": patch +"@spectrum-css/clearbutton": patch +"@spectrum-css/closebutton": patch +"@spectrum-css/colorhandle": patch +"@spectrum-css/colorslider": patch +"@spectrum-css/inlinealert": patch +"@spectrum-css/logicbutton": patch +"@spectrum-css/progressbar": patch +"@spectrum-css/statuslight": patch +"@spectrum-css/swatchgroup": patch +"@spectrum-css/actionmenu": patch +"@spectrum-css/breadcrumb": patch +"@spectrum-css/colorloupe": patch +"@spectrum-css/colorwheel": patch +"@spectrum-css/datepicker": patch +"@spectrum-css/fieldgroup": patch +"@spectrum-css/fieldlabel": patch +"@spectrum-css/pagination": patch +"@spectrum-css/typography": patch +"@spectrum-css/accordion": patch +"@spectrum-css/actionbar": patch +"@spectrum-css/assetcard": patch +"@spectrum-css/assetlist": patch +"@spectrum-css/coachmark": patch +"@spectrum-css/colorarea": patch +"@spectrum-css/splitview": patch +"@spectrum-css/textfield": patch +"@spectrum-css/thumbnail": patch +"@spectrum-css/calendar": patch +"@spectrum-css/checkbox": patch +"@spectrum-css/combobox": patch +"@spectrum-css/dropzone": patch +"@spectrum-css/helptext": patch +"@spectrum-css/steplist": patch +"@spectrum-css/taggroup": patch +"@spectrum-css/treeview": patch +"@spectrum-css/underlay": patch +"@spectrum-css/commons": patch +"@spectrum-css/divider": patch +"@spectrum-css/popover": patch +"@spectrum-css/sidenav": patch +"@spectrum-css/stepper": patch +"@spectrum-css/tooltip": patch +"@spectrum-css/avatar": patch +"@spectrum-css/button": patch +"@spectrum-css/dialog": patch +"@spectrum-css/miller": patch +"@spectrum-css/picker": patch +"@spectrum-css/rating": patch +"@spectrum-css/search": patch +"@spectrum-css/slider": patch +"@spectrum-css/swatch": patch +"@spectrum-css/switch": patch +"@spectrum-css/asset": patch +"@spectrum-css/badge": patch +"@spectrum-css/modal": patch +"@spectrum-css/radio": patch +"@spectrum-css/table": patch +"@spectrum-css/toast": patch +"@spectrum-css/card": patch +"@spectrum-css/dial": patch +"@spectrum-css/icon": patch +"@spectrum-css/link": patch +"@spectrum-css/menu": patch +"@spectrum-css/tabs": patch +"@spectrum-css/tray": patch +"@spectrum-css/well": patch +"@spectrum-css/tag": patch +"@spectrum-css/tokens": patch +--- + +Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors diff --git a/.changeset/giant-scissors-protect.md b/.changeset/giant-scissors-protect.md new file mode 100644 index 00000000000..89933115bcb --- /dev/null +++ b/.changeset/giant-scissors-protect.md @@ -0,0 +1,5 @@ +--- +"@spectrum-tools/theme-alignment": major +--- + +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/.changeset/gold-countries-fly.md b/.changeset/gold-countries-fly.md new file mode 100644 index 00000000000..c08a6794aec --- /dev/null +++ b/.changeset/gold-countries-fly.md @@ -0,0 +1,91 @@ +--- +"@spectrum-css/floatingactionbutton": minor +"@spectrum-css/opacitycheckerboard": minor +"@spectrum-css/illustratedmessage": minor +"@spectrum-css/coachindicator": minor +"@spectrum-css/contextualhelp": minor +"@spectrum-css/progresscircle": minor +"@spectrum-css/dropindicator": minor +"@spectrum-css/infieldbutton": minor +"@spectrum-css/actionbutton": minor +"@spectrum-css/pickerbutton": minor +"@spectrum-css/actiongroup": minor +"@spectrum-css/alertbanner": minor +"@spectrum-css/alertdialog": minor +"@spectrum-css/buttongroup": minor +"@spectrum-css/clearbutton": minor +"@spectrum-css/closebutton": minor +"@spectrum-css/colorhandle": minor +"@spectrum-css/colorslider": minor +"@spectrum-css/inlinealert": minor +"@spectrum-css/logicbutton": minor +"@spectrum-css/progressbar": minor +"@spectrum-css/statuslight": minor +"@spectrum-css/swatchgroup": minor +"@spectrum-css/actionmenu": minor +"@spectrum-css/breadcrumb": minor +"@spectrum-css/colorloupe": minor +"@spectrum-css/colorwheel": minor +"@spectrum-css/datepicker": minor +"@spectrum-css/fieldgroup": minor +"@spectrum-css/fieldlabel": minor +"@spectrum-css/pagination": minor +"@spectrum-css/typography": minor +"@spectrum-css/accordion": minor +"@spectrum-css/actionbar": minor +"@spectrum-css/assetcard": minor +"@spectrum-css/assetlist": minor +"@spectrum-css/coachmark": minor +"@spectrum-css/colorarea": minor +"@spectrum-css/splitview": minor +"@spectrum-css/textfield": minor +"@spectrum-css/thumbnail": minor +"@spectrum-css/calendar": minor +"@spectrum-css/checkbox": minor +"@spectrum-css/combobox": minor +"@spectrum-css/dropzone": minor +"@spectrum-css/helptext": minor +"@spectrum-css/steplist": minor +"@spectrum-css/taggroup": minor +"@spectrum-css/treeview": minor +"@spectrum-css/underlay": minor +"@spectrum-css/commons": minor +"@spectrum-css/divider": minor +"@spectrum-css/popover": minor +"@spectrum-css/sidenav": minor +"@spectrum-css/stepper": minor +"@spectrum-css/tooltip": minor +"@spectrum-css/avatar": minor +"@spectrum-css/button": minor +"@spectrum-css/dialog": minor +"@spectrum-css/miller": minor +"@spectrum-css/picker": minor +"@spectrum-css/rating": minor +"@spectrum-css/search": minor +"@spectrum-css/slider": minor +"@spectrum-css/swatch": minor +"@spectrum-css/switch": minor +"@spectrum-css/asset": minor +"@spectrum-css/badge": minor +"@spectrum-css/modal": minor +"@spectrum-css/radio": minor +"@spectrum-css/table": minor +"@spectrum-css/toast": minor +"@spectrum-css/card": minor +"@spectrum-css/dial": minor +"@spectrum-css/icon": minor +"@spectrum-css/link": minor +"@spectrum-css/menu": minor +"@spectrum-css/tabs": minor +"@spectrum-css/tray": minor +"@spectrum-css/well": minor +"@spectrum-css/tag": minor +"@spectrum-css/preview": minor +"@spectrum-css/generator": minor +"@spectrum-css/ui-icons": minor +"@spectrum-css/tokens": minor +--- + +- Accordion: Flatten sizing variables in theme layer +- ActionButton: Fix typo in variable name "\*-defaul-selectedt" +- Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview diff --git a/.changeset/good-dots-thank.md b/.changeset/good-dots-thank.md new file mode 100644 index 00000000000..e0f2239e33d --- /dev/null +++ b/.changeset/good-dots-thank.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/dropzone": patch +--- + +[SWC-241] In order to show dropzone background color, --spectrum-drop-zone-background-color has been changed to --mod-drop-zone-background-color in &.is-dragged and &.is-filled diff --git a/.changeset/good-parrots-attack.md b/.changeset/good-parrots-attack.md new file mode 100644 index 00000000000..10dec763c8a --- /dev/null +++ b/.changeset/good-parrots-attack.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/modal": major +--- + +Updates the spectrum-modal-background-color in dark and light in spectrum-two theme diff --git a/.changeset/heavy-sheep-drive.md b/.changeset/heavy-sheep-drive.md new file mode 100644 index 00000000000..6fb727fad82 --- /dev/null +++ b/.changeset/heavy-sheep-drive.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/actionbar": minor +--- + +[SWC-233] Moves inset-inline-start and inset-inline-end to sticky variant to fix issue with fixed actionbar unexpectedly taking up full width diff --git a/.changeset/heavy-teachers-drop.md b/.changeset/heavy-teachers-drop.md new file mode 100644 index 00000000000..14c954183f4 --- /dev/null +++ b/.changeset/heavy-teachers-drop.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/pickerbutton": patch +"@spectrum-css/progressbar": patch +"@spectrum-css/search": patch +--- + +Relocates --mod custom properties from the themes CSS to the index.css. diff --git a/.changeset/hungry-jokes-yawn.md b/.changeset/hungry-jokes-yawn.md new file mode 100644 index 00000000000..44ba85b05f7 --- /dev/null +++ b/.changeset/hungry-jokes-yawn.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/checkbox": minor +--- + +Fix S1 checkbox color diff --git a/.changeset/itchy-candles-develop.md b/.changeset/itchy-candles-develop.md new file mode 100644 index 00000000000..db49f5b6ff9 --- /dev/null +++ b/.changeset/itchy-candles-develop.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/textfield": minor +--- + +[SWC-306]: Reintroduces previous changes in textfield that had been reverted, including adjusted line height, cleanup of legacy vendor prefixes and normalization (#2771), a fix for focus pseudo pointer events (#2761) diff --git a/.changeset/itchy-games-marry.md b/.changeset/itchy-games-marry.md new file mode 100644 index 00000000000..cfab8e99514 --- /dev/null +++ b/.changeset/itchy-games-marry.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/card": minor +--- + +Updates to custom property inheritance and properties order diff --git a/.changeset/khaki-coats-unite.md b/.changeset/khaki-coats-unite.md new file mode 100644 index 00000000000..61fec3bdec0 --- /dev/null +++ b/.changeset/khaki-coats-unite.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/accordion": minor +"@spectrum-css/tokens": minor +--- + +[SWC-237] accordion item border height set to 0 for non-first-child elements diff --git a/.changeset/large-carpets-share.md b/.changeset/large-carpets-share.md new file mode 100644 index 00000000000..cb66405c853 --- /dev/null +++ b/.changeset/large-carpets-share.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/preview": major +"@spectrum-css/generator": major +"@spectrum-css/ui-icons": major +"@spectrum-css/tokens": major +--- + +Bug fixes to S1 & Express theming across all components diff --git a/.changeset/large-files-eat.md b/.changeset/large-files-eat.md new file mode 100644 index 00000000000..b11ac48623d --- /dev/null +++ b/.changeset/large-files-eat.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +[SWC-248]: Selected, static black actionbutton content color should be white, not black (updates tokens) diff --git a/.changeset/little-adults-melt.md b/.changeset/little-adults-melt.md new file mode 100644 index 00000000000..0e9b7f5ce3a --- /dev/null +++ b/.changeset/little-adults-melt.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Adds `--spectrum-gray-800-rgb` custom token for use in well component. The custom token values reflect the stripped RGB values for light and dark modes of `--spectrum-gray-800` values for S2. diff --git a/.changeset/lovely-ducks-listen.md b/.changeset/lovely-ducks-listen.md new file mode 100644 index 00000000000..2f47fd23c05 --- /dev/null +++ b/.changeset/lovely-ducks-listen.md @@ -0,0 +1,87 @@ +--- +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/ui-icons": major +"@spectrum-css/tokens": major +--- + +Push out the latest release to the components diff --git a/.changeset/modern-beds-provide.md b/.changeset/modern-beds-provide.md new file mode 100644 index 00000000000..9aecb91fd9e --- /dev/null +++ b/.changeset/modern-beds-provide.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": minor +"@spectrum-css/opacitycheckerboard": minor +"@spectrum-css/illustratedmessage": minor +"@spectrum-css/coachindicator": minor +"@spectrum-css/contextualhelp": minor +"@spectrum-css/progresscircle": minor +"@spectrum-css/dropindicator": minor +"@spectrum-css/infieldbutton": minor +"@spectrum-css/actionbutton": minor +"@spectrum-css/pickerbutton": minor +"@spectrum-css/actiongroup": minor +"@spectrum-css/alertbanner": minor +"@spectrum-css/alertdialog": minor +"@spectrum-css/buttongroup": minor +"@spectrum-css/clearbutton": minor +"@spectrum-css/closebutton": minor +"@spectrum-css/colorhandle": minor +"@spectrum-css/colorslider": minor +"@spectrum-css/inlinealert": minor +"@spectrum-css/logicbutton": minor +"@spectrum-css/progressbar": minor +"@spectrum-css/statuslight": minor +"@spectrum-css/swatchgroup": minor +"@spectrum-css/actionmenu": minor +"@spectrum-css/breadcrumb": minor +"@spectrum-css/colorloupe": minor +"@spectrum-css/colorwheel": minor +"@spectrum-css/datepicker": minor +"@spectrum-css/fieldgroup": minor +"@spectrum-css/fieldlabel": minor +"@spectrum-css/pagination": minor +"@spectrum-css/typography": minor +"@spectrum-css/accordion": minor +"@spectrum-css/actionbar": minor +"@spectrum-css/assetcard": minor +"@spectrum-css/assetlist": minor +"@spectrum-css/coachmark": minor +"@spectrum-css/colorarea": minor +"@spectrum-css/splitview": minor +"@spectrum-css/textfield": minor +"@spectrum-css/thumbnail": minor +"@spectrum-css/calendar": minor +"@spectrum-css/checkbox": minor +"@spectrum-css/combobox": minor +"@spectrum-css/dropzone": minor +"@spectrum-css/helptext": minor +"@spectrum-css/steplist": minor +"@spectrum-css/taggroup": minor +"@spectrum-css/treeview": minor +"@spectrum-css/underlay": minor +"@spectrum-css/commons": minor +"@spectrum-css/divider": minor +"@spectrum-css/popover": minor +"@spectrum-css/sidenav": minor +"@spectrum-css/stepper": minor +"@spectrum-css/tooltip": minor +"@spectrum-css/avatar": minor +"@spectrum-css/button": minor +"@spectrum-css/dialog": minor +"@spectrum-css/miller": minor +"@spectrum-css/picker": minor +"@spectrum-css/rating": minor +"@spectrum-css/search": minor +"@spectrum-css/slider": minor +"@spectrum-css/swatch": minor +"@spectrum-css/switch": minor +"@spectrum-css/asset": minor +"@spectrum-css/badge": minor +"@spectrum-css/modal": minor +"@spectrum-css/radio": minor +"@spectrum-css/table": minor +"@spectrum-css/toast": minor +"@spectrum-css/card": minor +"@spectrum-css/dial": minor +"@spectrum-css/icon": minor +"@spectrum-css/link": minor +"@spectrum-css/menu": minor +"@spectrum-css/tabs": minor +"@spectrum-css/tray": minor +"@spectrum-css/well": minor +"@spectrum-css/tag": minor +"@spectrum-css/preview": minor +"@spectrum-css/ui-icons": minor +"@spectrum-css/tokens": minor +--- + +Fixes an issue where vars.css was not being populated with the correct values diff --git a/.changeset/modern-taxis-occur.md b/.changeset/modern-taxis-occur.md new file mode 100644 index 00000000000..11202ab8ccb --- /dev/null +++ b/.changeset/modern-taxis-occur.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/table": minor +"@spectrum-css/card": minor +--- + +Move --highcontrast references out of themes; remove remaining --mods from the themes diff --git a/.changeset/modern-tips-look.md b/.changeset/modern-tips-look.md new file mode 100644 index 00000000000..17ac9e20e58 --- /dev/null +++ b/.changeset/modern-tips-look.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/coachmark": minor +--- + +[SWC-239] passthroughs referencing global token values in index.css abstracted to define alias' in the coach mark theme file diff --git a/.changeset/moody-shirts-kick.md b/.changeset/moody-shirts-kick.md new file mode 100644 index 00000000000..b0330560728 --- /dev/null +++ b/.changeset/moody-shirts-kick.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/progresscircle": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/datepicker": major +"@spectrum-css/pagination": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/steplist": major +"@spectrum-css/treeview": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/button": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tag": major +"@spectrum-css/preview": major +"@spectrum-css/tokens": major +"@spectrum-css/actionmenu": major +"@spectrum-css/alertdialog": major +"@spectrum-css/avatar": major +"@spectrum-css/badge": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/buttongroup": major +"@spectrum-css/calendar": major +"@spectrum-css/coachindicator": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorslider": major +"@spectrum-css/colorwheel": major +"@spectrum-css/commons": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/dialog": major +"@spectrum-css/dropindicator": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/helptext": major +"@spectrum-css/icon": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/inlinealert": major +"@spectrum-css/link": major +"@spectrum-css/miller": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/taggroup": major +"@spectrum-css/thumbnail": major +"@spectrum-css/tray": major +"@spectrum-css/typography": major +"@spectrum-css/underlay": major +"@spectrum-css/well": major +"@spectrum-css/ui-icons": major +--- + +S2 colors and grays foundation mapping diff --git a/.changeset/neat-melons-peel.md b/.changeset/neat-melons-peel.md new file mode 100644 index 00000000000..e233f10a578 --- /dev/null +++ b/.changeset/neat-melons-peel.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/stepper": minor +--- + +--mod properties were moved out of `stepper/themes/spectrum-two.css` into `stepper/index.css` so --mods can be applied at the component level. diff --git a/.changeset/new-candles-drop.md b/.changeset/new-candles-drop.md new file mode 100644 index 00000000000..e94b27c0cb9 --- /dev/null +++ b/.changeset/new-candles-drop.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/checkbox": minor +"@spectrum-css/icon": minor +--- + +Fix icon sizing and checkbox border colors diff --git a/.changeset/olive-buttons-join.md b/.changeset/olive-buttons-join.md new file mode 100644 index 00000000000..8f40f560124 --- /dev/null +++ b/.changeset/olive-buttons-join.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": patch +--- + +Adds `--spectrum-blue-800-rgb` for light and `--spectrum-blue-900-rgb` for dark with s2 values to custom tokens to define stripped rgb token used in dropzone dragged background. diff --git a/.changeset/orange-ants-yawn.md b/.changeset/orange-ants-yawn.md new file mode 100644 index 00000000000..a3a7c3260cf --- /dev/null +++ b/.changeset/orange-ants-yawn.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/actionbutton": patch +"@spectrum-css/tokens": patch +--- + +Fix unsupported variables created in components/actionbutton/themes/spectrum.css diff --git a/.changeset/orange-numbers-do.md b/.changeset/orange-numbers-do.md new file mode 100644 index 00000000000..f617d6ed62e --- /dev/null +++ b/.changeset/orange-numbers-do.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/actionbutton": minor +--- + +[SWC-248] Action button selected static black state overrides not working diff --git a/.changeset/poor-trains-poke.md b/.changeset/poor-trains-poke.md new file mode 100644 index 00000000000..d96c8679054 --- /dev/null +++ b/.changeset/poor-trains-poke.md @@ -0,0 +1,7 @@ +--- +"@spectrum-css/infieldbutton": major +"@spectrum-css/logicbutton": major +"@spectrum-css/table": major +--- + +Migrating --mod to index.css from infield button, logic button and table components diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000000..194380363b9 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,171 @@ +{ + "mode": "pre", + "tag": "s2-foundations", + "initialVersions": { + "@spectrum-css/preview": "10.1.0", + "@spectrum-css/accordion": "5.1.2", + "@spectrum-css/actionbar": "8.1.1", + "@spectrum-css/actionbutton": "6.1.1", + "@spectrum-css/actiongroup": "5.1.0", + "@spectrum-css/actionmenu": "6.1.1", + "@spectrum-css/alertbanner": "2.2.0", + "@spectrum-css/alertdialog": "2.1.1", + "@spectrum-css/asset": "5.1.1", + "@spectrum-css/assetcard": "4.1.1", + "@spectrum-css/assetlist": "6.1.1", + "@spectrum-css/avatar": "7.1.1", + "@spectrum-css/badge": "4.1.1", + "@spectrum-css/breadcrumb": "9.1.1", + "@spectrum-css/button": "13.1.1", + "@spectrum-css/buttongroup": "7.1.1", + "@spectrum-css/calendar": "5.1.2", + "@spectrum-css/card": "8.1.1", + "@spectrum-css/checkbox": "9.1.1", + "@spectrum-css/clearbutton": "6.1.1", + "@spectrum-css/closebutton": "5.1.1", + "@spectrum-css/coachindicator": "2.1.1", + "@spectrum-css/coachmark": "7.1.1", + "@spectrum-css/colorarea": "5.1.1", + "@spectrum-css/colorhandle": "8.1.1", + "@spectrum-css/colorloupe": "5.1.1", + "@spectrum-css/colorslider": "6.1.1", + "@spectrum-css/colorwheel": "4.1.1", + "@spectrum-css/combobox": "3.1.2", + "@spectrum-css/commons": "10.0.1", + "@spectrum-css/contextualhelp": "3.1.1", + "@spectrum-css/datepicker": "3.2.1", + "@spectrum-css/dial": "3.1.1", + "@spectrum-css/dialog": "10.1.1", + "@spectrum-css/divider": "3.1.1", + "@spectrum-css/dropindicator": "5.1.1", + "@spectrum-css/dropzone": "6.1.1", + "@spectrum-css/fieldgroup": "5.1.1", + "@spectrum-css/fieldlabel": "8.1.1", + "@spectrum-css/floatingactionbutton": "2.1.1", + "@spectrum-css/helptext": "5.1.1", + "@spectrum-css/icon": "7.1.1", + "@spectrum-css/illustratedmessage": "7.1.1", + "@spectrum-css/infieldbutton": "5.1.1", + "@spectrum-css/inlinealert": "8.1.1", + "@spectrum-css/link": "5.1.1", + "@spectrum-css/logicbutton": "4.1.1", + "@spectrum-css/menu": "7.1.3", + "@spectrum-css/miller": "6.1.1", + "@spectrum-css/modal": "5.1.1", + "@spectrum-css/opacitycheckerboard": "2.1.1", + "@spectrum-css/pagination": "8.1.1", + "@spectrum-css/picker": "8.1.3", + "@spectrum-css/pickerbutton": "5.1.1", + "@spectrum-css/popover": "7.1.3", + "@spectrum-css/progressbar": "4.1.2", + "@spectrum-css/progresscircle": "3.1.1", + "@spectrum-css/radio": "9.2.2", + "@spectrum-css/rating": "5.1.1", + "@spectrum-css/search": "7.1.2", + "@spectrum-css/sidenav": "5.1.1", + "@spectrum-css/slider": "5.2.3", + "@spectrum-css/splitview": "5.2.1", + "@spectrum-css/statuslight": "7.1.1", + "@spectrum-css/steplist": "5.1.1", + "@spectrum-css/stepper": "6.1.2", + "@spectrum-css/swatch": "6.1.1", + "@spectrum-css/swatchgroup": "3.1.1", + "@spectrum-css/switch": "5.1.1", + "@spectrum-css/table": "6.1.1", + "@spectrum-css/tabs": "5.1.1", + "@spectrum-css/tag": "9.1.1", + "@spectrum-css/taggroup": "5.1.1", + "@spectrum-css/textfield": "7.1.3", + "@spectrum-css/thumbnail": "6.1.2", + "@spectrum-css/toast": "10.1.1", + "@spectrum-css/tooltip": "6.1.2", + "@spectrum-css/tray": "3.1.1", + "@spectrum-css/treeview": "10.2.1", + "@spectrum-css/typography": "6.1.1", + "@spectrum-css/underlay": "4.1.1", + "@spectrum-css/well": "5.2.1", + "@spectrum-css/generator": "4.0.2", + "@spectrum-css/tokens": "14.2.0", + "@spectrum-css/ui-icons": "1.1.2", + "@spectrum-tools/gh-action-file-diff": "2.0.6", + "@spectrum-tools/postcss-add-theming-layer": "2.1.1-s2-foundations.0", + "@spectrum-tools/postcss-property-rollup": "2.0.1", + "@spectrum-tools/postcss-rgb-mapping": "2.0.0", + "@spectrum-tools/stylelint-no-missing-var": "2.0.0", + "@spectrum-tools/stylelint-no-unknown-custom-properties": "2.0.0", + "@spectrum-tools/stylelint-no-unused-custom-properties": "2.0.0", + "@spectrum-tools/documentation": "2.0.2", + "@spectrum-tools/theme-alignment": "0.0.0" + }, + "changesets": [ + "afraid-cycles-wash", + "big-hats-happen", + "calm-socks-speak", + "clever-walls-glow", + "cyan-actors-rest", + "dull-pandas-grin", + "empty-countries-act", + "fair-parents-rush", + "fluffy-apes-breathe", + "fluffy-months-battle", + "fresh-apes-invent", + "fresh-emus-worry", + "fuzzy-brooms-jam", + "fuzzy-jokes-begin", + "gentle-ties-hang", + "giant-scissors-protect", + "gold-countries-fly", + "good-dots-thank", + "good-parrots-attack", + "heavy-sheep-drive", + "heavy-teachers-drop", + "hungry-jokes-yawn", + "itchy-candles-develop", + "itchy-games-marry", + "khaki-coats-unite", + "large-carpets-share", + "large-files-eat", + "little-adults-melt", + "lovely-ducks-listen", + "modern-beds-provide", + "modern-taxis-occur", + "modern-tips-look", + "moody-shirts-kick", + "neat-melons-peel", + "new-candles-drop", + "olive-buttons-join", + "orange-ants-yawn", + "orange-numbers-do", + "poor-trains-poke", + "purple-chairs-melt", + "rare-countries-sparkle", + "real-beans-serve", + "real-colts-perform", + "selfish-singers-lie", + "seven-pens-collect", + "sharp-pianos-reply", + "sharp-rice-sing", + "sharp-vans-flow", + "shiny-peaches-change", + "short-carrots-film", + "silent-carpets-beam", + "silly-toes-jump", + "six-fireants-rule", + "sixty-ears-heal", + "soft-pianos-suffer", + "sour-balloons-begin", + "spicy-meals-smoke", + "strong-hotels-type", + "sweet-zoos-shout", + "tall-tomatoes-punch", + "tasty-years-cheat", + "tender-buckets-sneeze", + "three-buckets-walk", + "tiny-stingrays-kneel", + "twelve-melons-battle", + "twenty-jokes-lie", + "weak-bags-run", + "young-ads-argue", + "young-parents-knock" + ] +} diff --git a/.changeset/purple-chairs-melt.md b/.changeset/purple-chairs-melt.md new file mode 100644 index 00000000000..a3a6093df91 --- /dev/null +++ b/.changeset/purple-chairs-melt.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/preview": major +"@spectrum-css/ui-icons": major +"@spectrum-css/tokens": major +--- + +Preserves `themes` folder in `dist` artifacts for easier downstream consumption diff --git a/.changeset/rare-countries-sparkle.md b/.changeset/rare-countries-sparkle.md new file mode 100644 index 00000000000..04ceabb52a7 --- /dev/null +++ b/.changeset/rare-countries-sparkle.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/actionbutton": major +--- + +Right-side padding fix diff --git a/.changeset/real-beans-serve.md b/.changeset/real-beans-serve.md new file mode 100644 index 00000000000..ad1f93dbc1f --- /dev/null +++ b/.changeset/real-beans-serve.md @@ -0,0 +1,86 @@ +--- +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/tokens": major +--- + +Update system property tooling (splitinator) to leverage the selector parser diff --git a/.changeset/real-colts-perform.md b/.changeset/real-colts-perform.md new file mode 100644 index 00000000000..808b1bed988 --- /dev/null +++ b/.changeset/real-colts-perform.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/checkbox": minor +"@spectrum-css/tokens": minor +--- + +[SWC-238] t-shirt-based calc moved out of theme into base css diff --git a/.changeset/selfish-singers-lie.md b/.changeset/selfish-singers-lie.md new file mode 100644 index 00000000000..ca68fcad946 --- /dev/null +++ b/.changeset/selfish-singers-lie.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": minor +"@spectrum-css/opacitycheckerboard": minor +"@spectrum-css/illustratedmessage": minor +"@spectrum-css/coachindicator": minor +"@spectrum-css/contextualhelp": minor +"@spectrum-css/progresscircle": minor +"@spectrum-css/dropindicator": minor +"@spectrum-css/infieldbutton": minor +"@spectrum-css/actionbutton": minor +"@spectrum-css/pickerbutton": minor +"@spectrum-css/actiongroup": minor +"@spectrum-css/alertbanner": minor +"@spectrum-css/alertdialog": minor +"@spectrum-css/buttongroup": minor +"@spectrum-css/clearbutton": minor +"@spectrum-css/closebutton": minor +"@spectrum-css/colorhandle": minor +"@spectrum-css/colorslider": minor +"@spectrum-css/inlinealert": minor +"@spectrum-css/logicbutton": minor +"@spectrum-css/progressbar": minor +"@spectrum-css/statuslight": minor +"@spectrum-css/swatchgroup": minor +"@spectrum-css/actionmenu": minor +"@spectrum-css/breadcrumb": minor +"@spectrum-css/colorloupe": minor +"@spectrum-css/colorwheel": minor +"@spectrum-css/datepicker": minor +"@spectrum-css/fieldgroup": minor +"@spectrum-css/fieldlabel": minor +"@spectrum-css/pagination": minor +"@spectrum-css/typography": minor +"@spectrum-css/accordion": minor +"@spectrum-css/actionbar": minor +"@spectrum-css/assetcard": minor +"@spectrum-css/assetlist": minor +"@spectrum-css/coachmark": minor +"@spectrum-css/colorarea": minor +"@spectrum-css/splitview": minor +"@spectrum-css/textfield": minor +"@spectrum-css/thumbnail": minor +"@spectrum-css/calendar": minor +"@spectrum-css/checkbox": minor +"@spectrum-css/combobox": minor +"@spectrum-css/dropzone": minor +"@spectrum-css/helptext": minor +"@spectrum-css/steplist": minor +"@spectrum-css/taggroup": minor +"@spectrum-css/treeview": minor +"@spectrum-css/underlay": minor +"@spectrum-css/commons": minor +"@spectrum-css/divider": minor +"@spectrum-css/popover": minor +"@spectrum-css/sidenav": minor +"@spectrum-css/stepper": minor +"@spectrum-css/tooltip": minor +"@spectrum-css/avatar": minor +"@spectrum-css/button": minor +"@spectrum-css/dialog": minor +"@spectrum-css/miller": minor +"@spectrum-css/picker": minor +"@spectrum-css/rating": minor +"@spectrum-css/search": minor +"@spectrum-css/slider": minor +"@spectrum-css/swatch": minor +"@spectrum-css/switch": minor +"@spectrum-css/asset": minor +"@spectrum-css/badge": minor +"@spectrum-css/modal": minor +"@spectrum-css/radio": minor +"@spectrum-css/table": minor +"@spectrum-css/toast": minor +"@spectrum-css/card": minor +"@spectrum-css/dial": minor +"@spectrum-css/icon": minor +"@spectrum-css/link": minor +"@spectrum-css/menu": minor +"@spectrum-css/tabs": minor +"@spectrum-css/tray": minor +"@spectrum-css/well": minor +"@spectrum-css/tag": minor +"@spectrum-css/preview": minor +"@spectrum-css/ui-icons": minor +"@spectrum-css/tokens": minor +--- + +Fixes a compilation issue in the tokens dist artifacts diff --git a/.changeset/seven-pens-collect.md b/.changeset/seven-pens-collect.md new file mode 100644 index 00000000000..941bd4aec2c --- /dev/null +++ b/.changeset/seven-pens-collect.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": patch +"@spectrum-css/opacitycheckerboard": patch +"@spectrum-css/illustratedmessage": patch +"@spectrum-css/coachindicator": patch +"@spectrum-css/contextualhelp": patch +"@spectrum-css/progresscircle": patch +"@spectrum-css/dropindicator": patch +"@spectrum-css/infieldbutton": patch +"@spectrum-css/actionbutton": patch +"@spectrum-css/pickerbutton": patch +"@spectrum-css/actiongroup": patch +"@spectrum-css/alertbanner": patch +"@spectrum-css/alertdialog": patch +"@spectrum-css/buttongroup": patch +"@spectrum-css/clearbutton": patch +"@spectrum-css/closebutton": patch +"@spectrum-css/colorhandle": patch +"@spectrum-css/colorslider": patch +"@spectrum-css/inlinealert": patch +"@spectrum-css/logicbutton": patch +"@spectrum-css/progressbar": patch +"@spectrum-css/statuslight": patch +"@spectrum-css/swatchgroup": patch +"@spectrum-css/actionmenu": patch +"@spectrum-css/breadcrumb": patch +"@spectrum-css/colorloupe": patch +"@spectrum-css/colorwheel": patch +"@spectrum-css/datepicker": patch +"@spectrum-css/fieldgroup": patch +"@spectrum-css/fieldlabel": patch +"@spectrum-css/pagination": patch +"@spectrum-css/typography": patch +"@spectrum-css/accordion": patch +"@spectrum-css/actionbar": patch +"@spectrum-css/assetcard": patch +"@spectrum-css/assetlist": patch +"@spectrum-css/coachmark": patch +"@spectrum-css/colorarea": patch +"@spectrum-css/splitview": patch +"@spectrum-css/textfield": patch +"@spectrum-css/thumbnail": patch +"@spectrum-css/calendar": patch +"@spectrum-css/checkbox": patch +"@spectrum-css/combobox": patch +"@spectrum-css/dropzone": patch +"@spectrum-css/helptext": patch +"@spectrum-css/steplist": patch +"@spectrum-css/taggroup": patch +"@spectrum-css/treeview": patch +"@spectrum-css/underlay": patch +"@spectrum-css/commons": patch +"@spectrum-css/divider": patch +"@spectrum-css/popover": patch +"@spectrum-css/sidenav": patch +"@spectrum-css/stepper": patch +"@spectrum-css/tooltip": patch +"@spectrum-css/avatar": patch +"@spectrum-css/button": patch +"@spectrum-css/dialog": patch +"@spectrum-css/miller": patch +"@spectrum-css/picker": patch +"@spectrum-css/rating": patch +"@spectrum-css/search": patch +"@spectrum-css/slider": patch +"@spectrum-css/swatch": patch +"@spectrum-css/switch": patch +"@spectrum-css/asset": patch +"@spectrum-css/badge": patch +"@spectrum-css/modal": patch +"@spectrum-css/radio": patch +"@spectrum-css/table": patch +"@spectrum-css/toast": patch +"@spectrum-css/card": patch +"@spectrum-css/dial": patch +"@spectrum-css/icon": patch +"@spectrum-css/link": patch +"@spectrum-css/menu": patch +"@spectrum-css/tabs": patch +"@spectrum-css/tray": patch +"@spectrum-css/well": patch +"@spectrum-css/tag": patch +"@spectrum-css/preview": patch +"@spectrum-css/ui-icons": patch +"@spectrum-css/tokens": patch +--- + +Corrects a faulty regex that was negatively affecting compilation of custom properties. diff --git a/.changeset/sharp-pianos-reply.md b/.changeset/sharp-pianos-reply.md new file mode 100644 index 00000000000..70472516574 --- /dev/null +++ b/.changeset/sharp-pianos-reply.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/tokens": minor +--- + +This update pre-resolves the bundler assets to make them easier to serve as a single entry point. diff --git a/.changeset/sharp-rice-sing.md b/.changeset/sharp-rice-sing.md new file mode 100644 index 00000000000..c3d51bd6257 --- /dev/null +++ b/.changeset/sharp-rice-sing.md @@ -0,0 +1,18 @@ +--- +"@spectrum-css/assetcard": patch +"@spectrum-css/well": patch +--- + +Replaces raw RGB value/direct token references with abstracted custom properties in theme/spectrum-two.css files + +Asset card + +- removes raw rgb value for box-shadow from `index.css` +- creates new `--spectrum-assetcard-selectionindicator-box-shadow-color` + in `themes/spectrum-two.css` with previous rgb value to use instead + +Well + +- removes `--spectrum-gray-800-rgb` for background-color from `index.css` +- creates new `--spectrum-well-background-color` in `themes/spectrum-two.css` + with previous `--spectrum-gray-800-rgb` property to use instead diff --git a/.changeset/sharp-vans-flow.md b/.changeset/sharp-vans-flow.md new file mode 100644 index 00000000000..b35e597351b --- /dev/null +++ b/.changeset/sharp-vans-flow.md @@ -0,0 +1,87 @@ +--- +"@spectrum-css/floatingactionbutton": patch +"@spectrum-css/opacitycheckerboard": patch +"@spectrum-css/illustratedmessage": patch +"@spectrum-css/coachindicator": patch +"@spectrum-css/contextualhelp": patch +"@spectrum-css/progresscircle": patch +"@spectrum-css/dropindicator": patch +"@spectrum-css/infieldbutton": patch +"@spectrum-css/actionbutton": patch +"@spectrum-css/pickerbutton": patch +"@spectrum-css/actiongroup": patch +"@spectrum-css/alertbanner": patch +"@spectrum-css/alertdialog": patch +"@spectrum-css/buttongroup": patch +"@spectrum-css/clearbutton": patch +"@spectrum-css/closebutton": patch +"@spectrum-css/colorhandle": patch +"@spectrum-css/colorslider": patch +"@spectrum-css/inlinealert": patch +"@spectrum-css/logicbutton": patch +"@spectrum-css/progressbar": patch +"@spectrum-css/statuslight": patch +"@spectrum-css/swatchgroup": patch +"@spectrum-css/actionmenu": patch +"@spectrum-css/breadcrumb": patch +"@spectrum-css/colorloupe": patch +"@spectrum-css/colorwheel": patch +"@spectrum-css/datepicker": patch +"@spectrum-css/fieldgroup": patch +"@spectrum-css/fieldlabel": patch +"@spectrum-css/pagination": patch +"@spectrum-css/typography": patch +"@spectrum-css/accordion": patch +"@spectrum-css/actionbar": patch +"@spectrum-css/assetcard": patch +"@spectrum-css/assetlist": patch +"@spectrum-css/coachmark": patch +"@spectrum-css/colorarea": patch +"@spectrum-css/splitview": patch +"@spectrum-css/textfield": patch +"@spectrum-css/thumbnail": patch +"@spectrum-css/calendar": patch +"@spectrum-css/checkbox": patch +"@spectrum-css/combobox": patch +"@spectrum-css/dropzone": patch +"@spectrum-css/helptext": patch +"@spectrum-css/steplist": patch +"@spectrum-css/taggroup": patch +"@spectrum-css/treeview": patch +"@spectrum-css/underlay": patch +"@spectrum-css/commons": patch +"@spectrum-css/divider": patch +"@spectrum-css/popover": patch +"@spectrum-css/sidenav": patch +"@spectrum-css/stepper": patch +"@spectrum-css/tooltip": patch +"@spectrum-css/avatar": patch +"@spectrum-css/button": patch +"@spectrum-css/dialog": patch +"@spectrum-css/miller": patch +"@spectrum-css/picker": patch +"@spectrum-css/rating": patch +"@spectrum-css/search": patch +"@spectrum-css/slider": patch +"@spectrum-css/swatch": patch +"@spectrum-css/switch": patch +"@spectrum-css/asset": patch +"@spectrum-css/badge": patch +"@spectrum-css/modal": patch +"@spectrum-css/radio": patch +"@spectrum-css/table": patch +"@spectrum-css/toast": patch +"@spectrum-css/card": patch +"@spectrum-css/dial": patch +"@spectrum-css/icon": patch +"@spectrum-css/link": patch +"@spectrum-css/menu": patch +"@spectrum-css/tabs": patch +"@spectrum-css/tray": patch +"@spectrum-css/well": patch +"@spectrum-css/tag": patch +"@spectrum-css/preview": patch +"@spectrum-css/tokens": patch +--- + +Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings diff --git a/.changeset/shiny-peaches-change.md b/.changeset/shiny-peaches-change.md new file mode 100644 index 00000000000..ffd0b8c0702 --- /dev/null +++ b/.changeset/shiny-peaches-change.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/button": minor +"@spectrum-css/tokens": patch +--- + +updated content color for button primary variant and fixes swc-342 diff --git a/.changeset/short-carrots-film.md b/.changeset/short-carrots-film.md new file mode 100644 index 00000000000..b9874e8d1bd --- /dev/null +++ b/.changeset/short-carrots-film.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/card": major +--- + +Migrating Card component quiet and gallery variant mods to index css file diff --git a/.changeset/silent-carpets-beam.md b/.changeset/silent-carpets-beam.md new file mode 100644 index 00000000000..3005946c2ec --- /dev/null +++ b/.changeset/silent-carpets-beam.md @@ -0,0 +1,12 @@ +--- +"@spectrum-css/icon": major +"@spectrum-css/typography": patch +--- + +## Feature [@spectrum-css/icon] + +Update source files to load the mappings from component-level to global tokens for size and transform values. This will allow for more consistent and predictable behavior when using the `size` and `transform` props on icons when switching between contexts for S1, S2, and Express. + +## Patch [@spectrum-css/typography] + +Remove the sourcemap footer from compiled assets. diff --git a/.changeset/silly-toes-jump.md b/.changeset/silly-toes-jump.md new file mode 100644 index 00000000000..c6b57c33ef0 --- /dev/null +++ b/.changeset/silly-toes-jump.md @@ -0,0 +1,6 @@ +--- +"@spectrum-tools/postcss-rgb-mapping": major +"@spectrum-css/tokens": major +--- + +Fixes to the rgb mapping plugin brought back rgb alias's to tokens output diff --git a/.changeset/six-fireants-rule.md b/.changeset/six-fireants-rule.md new file mode 100644 index 00000000000..ff30c892183 --- /dev/null +++ b/.changeset/six-fireants-rule.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/colorslider": minor +--- + +Move the color slider passthrough modifiers out of the theme to the base index.css. diff --git a/.changeset/sixty-ears-heal.md b/.changeset/sixty-ears-heal.md new file mode 100644 index 00000000000..e44000fda0c --- /dev/null +++ b/.changeset/sixty-ears-heal.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/textfield": minor +--- + +Fix line-height discrepency diff --git a/.changeset/soft-pianos-suffer.md b/.changeset/soft-pianos-suffer.md new file mode 100644 index 00000000000..c18dd0a5a01 --- /dev/null +++ b/.changeset/soft-pianos-suffer.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/colorhandle": minor +--- + +Move the color handle passthrough modifiers out of the theme to the base index.css. diff --git a/.changeset/sour-balloons-begin.md b/.changeset/sour-balloons-begin.md new file mode 100644 index 00000000000..8dc710132a3 --- /dev/null +++ b/.changeset/sour-balloons-begin.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/stepper": patch +--- + +Realign structure with original style format diff --git a/.changeset/spicy-meals-smoke.md b/.changeset/spicy-meals-smoke.md new file mode 100644 index 00000000000..59dbbd17d9f --- /dev/null +++ b/.changeset/spicy-meals-smoke.md @@ -0,0 +1,22 @@ +--- +"@spectrum-css/actionbutton": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/typography": major +"@spectrum-css/combobox": major +--- + +ActionButton: + +- Correct --spectrum-actionbutton-background-color-selected-disabled to be --spectrum-actionbutton-(background|border)-color-disabled-selected + +Combobox: + +- Move --spectrum-combobox-min-inline-size and --spectrum-combobox-button-width to the index.css + +FieldGroup: + +- Swap gap back to margin-inline-end on FieldGroup + +Typography: + +- Remap body size to xs if xxs provided diff --git a/.changeset/strong-hotels-type.md b/.changeset/strong-hotels-type.md new file mode 100644 index 00000000000..d37651c408f --- /dev/null +++ b/.changeset/strong-hotels-type.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/search": minor +--- + +[SWC-236] Search: internal property references including calc moved out of theme files; express theme updated to match format of spectrum-two theme selectors; spectrum-two theme adds new --spectrum-search-min-inline-multiplier abstraction for internal calc, removes passthroughs, adds in a sizeM theme instead of relying on defaults diff --git a/.changeset/sweet-zoos-shout.md b/.changeset/sweet-zoos-shout.md new file mode 100644 index 00000000000..487564fb9e9 --- /dev/null +++ b/.changeset/sweet-zoos-shout.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/preview": minor +--- + +fix(storybook): update font loader to fix chromatic bug diff --git a/.changeset/tall-tomatoes-punch.md b/.changeset/tall-tomatoes-punch.md new file mode 100644 index 00000000000..f7d8ac3919a --- /dev/null +++ b/.changeset/tall-tomatoes-punch.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/combobox": patch +--- + +[SWC-240] Quiet combobox picker button should have transparent borders diff --git a/.changeset/tasty-years-cheat.md b/.changeset/tasty-years-cheat.md new file mode 100644 index 00000000000..8fd9c8369f0 --- /dev/null +++ b/.changeset/tasty-years-cheat.md @@ -0,0 +1,88 @@ +--- +"@spectrum-css/floatingactionbutton": minor +"@spectrum-css/opacitycheckerboard": minor +"@spectrum-css/illustratedmessage": minor +"@spectrum-css/coachindicator": minor +"@spectrum-css/contextualhelp": minor +"@spectrum-css/progresscircle": minor +"@spectrum-css/dropindicator": minor +"@spectrum-css/infieldbutton": minor +"@spectrum-css/actionbutton": minor +"@spectrum-css/pickerbutton": minor +"@spectrum-css/actiongroup": minor +"@spectrum-css/alertbanner": minor +"@spectrum-css/alertdialog": minor +"@spectrum-css/buttongroup": minor +"@spectrum-css/clearbutton": minor +"@spectrum-css/closebutton": minor +"@spectrum-css/colorhandle": minor +"@spectrum-css/colorslider": minor +"@spectrum-css/inlinealert": minor +"@spectrum-css/logicbutton": minor +"@spectrum-css/progressbar": minor +"@spectrum-css/statuslight": minor +"@spectrum-css/swatchgroup": minor +"@spectrum-css/actionmenu": minor +"@spectrum-css/breadcrumb": minor +"@spectrum-css/colorloupe": minor +"@spectrum-css/colorwheel": minor +"@spectrum-css/datepicker": minor +"@spectrum-css/fieldgroup": minor +"@spectrum-css/fieldlabel": minor +"@spectrum-css/pagination": minor +"@spectrum-css/typography": minor +"@spectrum-css/accordion": minor +"@spectrum-css/actionbar": minor +"@spectrum-css/assetcard": minor +"@spectrum-css/assetlist": minor +"@spectrum-css/coachmark": minor +"@spectrum-css/colorarea": minor +"@spectrum-css/splitview": minor +"@spectrum-css/textfield": minor +"@spectrum-css/thumbnail": minor +"@spectrum-css/calendar": minor +"@spectrum-css/checkbox": minor +"@spectrum-css/combobox": minor +"@spectrum-css/dropzone": minor +"@spectrum-css/helptext": minor +"@spectrum-css/steplist": minor +"@spectrum-css/taggroup": minor +"@spectrum-css/treeview": minor +"@spectrum-css/underlay": minor +"@spectrum-css/commons": minor +"@spectrum-css/divider": minor +"@spectrum-css/popover": minor +"@spectrum-css/sidenav": minor +"@spectrum-css/stepper": minor +"@spectrum-css/tooltip": minor +"@spectrum-css/avatar": minor +"@spectrum-css/button": minor +"@spectrum-css/dialog": minor +"@spectrum-css/miller": minor +"@spectrum-css/picker": minor +"@spectrum-css/rating": minor +"@spectrum-css/search": minor +"@spectrum-css/slider": minor +"@spectrum-css/swatch": minor +"@spectrum-css/switch": minor +"@spectrum-css/asset": minor +"@spectrum-css/badge": minor +"@spectrum-css/modal": minor +"@spectrum-css/radio": minor +"@spectrum-css/table": minor +"@spectrum-css/toast": minor +"@spectrum-css/card": minor +"@spectrum-css/dial": minor +"@spectrum-css/icon": minor +"@spectrum-css/link": minor +"@spectrum-css/menu": minor +"@spectrum-css/tabs": minor +"@spectrum-css/tray": minor +"@spectrum-css/well": minor +"@spectrum-css/tag": minor +"@spectrum-css/preview": minor +"@spectrum-css/ui-icons": minor +"@spectrum-css/tokens": minor +--- + +Across the board version update to latest build system state diff --git a/.changeset/tender-buckets-sneeze.md b/.changeset/tender-buckets-sneeze.md new file mode 100644 index 00000000000..5c346d3579f --- /dev/null +++ b/.changeset/tender-buckets-sneeze.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/switch": minor +--- + +Migrate `--mod-focus-indicator-thickness` out of the themes to the base index.css. Added a deprecation notice for this mod as it is a duplicate and does not follow naming conventions. diff --git a/.changeset/three-buckets-walk.md b/.changeset/three-buckets-walk.md new file mode 100644 index 00000000000..b65966051d3 --- /dev/null +++ b/.changeset/three-buckets-walk.md @@ -0,0 +1,87 @@ +--- +"@spectrum-css/floatingactionbutton": major +"@spectrum-css/opacitycheckerboard": major +"@spectrum-css/illustratedmessage": major +"@spectrum-css/coachindicator": major +"@spectrum-css/contextualhelp": major +"@spectrum-css/progresscircle": major +"@spectrum-css/dropindicator": major +"@spectrum-css/infieldbutton": major +"@spectrum-css/actionbutton": major +"@spectrum-css/pickerbutton": major +"@spectrum-css/actiongroup": major +"@spectrum-css/alertbanner": major +"@spectrum-css/alertdialog": major +"@spectrum-css/buttongroup": major +"@spectrum-css/clearbutton": major +"@spectrum-css/closebutton": major +"@spectrum-css/colorhandle": major +"@spectrum-css/colorslider": major +"@spectrum-css/inlinealert": major +"@spectrum-css/logicbutton": major +"@spectrum-css/progressbar": major +"@spectrum-css/statuslight": major +"@spectrum-css/swatchgroup": major +"@spectrum-css/actionmenu": major +"@spectrum-css/breadcrumb": major +"@spectrum-css/colorloupe": major +"@spectrum-css/colorwheel": major +"@spectrum-css/datepicker": major +"@spectrum-css/fieldgroup": major +"@spectrum-css/fieldlabel": major +"@spectrum-css/pagination": major +"@spectrum-css/typography": major +"@spectrum-css/accordion": major +"@spectrum-css/actionbar": major +"@spectrum-css/assetcard": major +"@spectrum-css/assetlist": major +"@spectrum-css/coachmark": major +"@spectrum-css/colorarea": major +"@spectrum-css/splitview": major +"@spectrum-css/textfield": major +"@spectrum-css/thumbnail": major +"@spectrum-css/calendar": major +"@spectrum-css/checkbox": major +"@spectrum-css/combobox": major +"@spectrum-css/dropzone": major +"@spectrum-css/helptext": major +"@spectrum-css/steplist": major +"@spectrum-css/taggroup": major +"@spectrum-css/treeview": major +"@spectrum-css/underlay": major +"@spectrum-css/commons": major +"@spectrum-css/divider": major +"@spectrum-css/popover": major +"@spectrum-css/sidenav": major +"@spectrum-css/stepper": major +"@spectrum-css/tooltip": major +"@spectrum-css/avatar": major +"@spectrum-css/button": major +"@spectrum-css/dialog": major +"@spectrum-css/miller": major +"@spectrum-css/picker": major +"@spectrum-css/rating": major +"@spectrum-css/search": major +"@spectrum-css/slider": major +"@spectrum-css/swatch": major +"@spectrum-css/switch": major +"@spectrum-css/asset": major +"@spectrum-css/badge": major +"@spectrum-css/modal": major +"@spectrum-css/radio": major +"@spectrum-css/table": major +"@spectrum-css/toast": major +"@spectrum-css/card": major +"@spectrum-css/dial": major +"@spectrum-css/icon": major +"@spectrum-css/link": major +"@spectrum-css/menu": major +"@spectrum-css/tabs": major +"@spectrum-css/tray": major +"@spectrum-css/well": major +"@spectrum-css/tag": major +"@spectrum-css/preview": major +"@spectrum-css/tokens": major +--- + +Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets diff --git a/.changeset/tiny-stingrays-kneel.md b/.changeset/tiny-stingrays-kneel.md new file mode 100644 index 00000000000..a2d41b7d945 --- /dev/null +++ b/.changeset/tiny-stingrays-kneel.md @@ -0,0 +1,6 @@ +--- +"@spectrum-css/progressbar": minor +"@spectrum-css/tokens": minor +--- + +[SWC-235] meter properties moved out of theme and into index.css diff --git a/.changeset/twelve-melons-battle.md b/.changeset/twelve-melons-battle.md new file mode 100644 index 00000000000..4de1ae88aa5 --- /dev/null +++ b/.changeset/twelve-melons-battle.md @@ -0,0 +1,7 @@ +--- +"@spectrum-tools/stylelint-no-unknown-custom-properties": patch +"@spectrum-tools/stylelint-no-unused-custom-properties": patch +"@spectrum-tools/stylelint-no-missing-var": patch +--- + +Dependency updates to align with versions used in the parent repository. diff --git a/.changeset/twenty-jokes-lie.md b/.changeset/twenty-jokes-lie.md new file mode 100644 index 00000000000..6d5b2dad476 --- /dev/null +++ b/.changeset/twenty-jokes-lie.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/alertbanner": patch +--- + +Express color updated for alert banner component diff --git a/.changeset/weak-bags-run.md b/.changeset/weak-bags-run.md new file mode 100644 index 00000000000..59c1abf0746 --- /dev/null +++ b/.changeset/weak-bags-run.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/actionbutton": minor +--- + +fix(actionbutton): migrate --mods to index.css diff --git a/.changeset/young-ads-argue.md b/.changeset/young-ads-argue.md new file mode 100644 index 00000000000..016c5cc84e6 --- /dev/null +++ b/.changeset/young-ads-argue.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/card": patch +--- + +S2 preview background color mapping update diff --git a/.changeset/young-parents-knock.md b/.changeset/young-parents-knock.md new file mode 100644 index 00000000000..cd5ea0ab115 --- /dev/null +++ b/.changeset/young-parents-knock.md @@ -0,0 +1,5 @@ +--- +"@spectrum-css/stepper": patch +--- + +Add separate variable for stepper button border width diff --git a/.env.example b/.env.example index 98cf3becb1b..5dbe61c706f 100644 --- a/.env.example +++ b/.env.example @@ -11,7 +11,6 @@ NX_INTERACTIVE=true # Default dev environment settings NODE_ENV=development -STORYBOOK_URL="/preview/" WATCH_MODE=true # Optional NX settings diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 599bd6b5562..c74122750f2 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -81,7 +81,7 @@ To kick-off the project's storybook locally, run: yarn start ``` -This is our development environment, where you can see all the components in action, and develop new components. All components must have a storybook entry. Edits to any of the `*.css`, `*.stories.js`, or `template.js` files in `components/*` will live reload in your browser. For more details about how to work within our Storybook setup, take a look at our [getting started Storybook guide](https://opensource.adobe.com/spectrum-css/preview/?path=/docs/guides-contributing--docs). +This is our development environment, where you can see all the components in action, and develop new components. All components must have a storybook entry. Edits to any of the `*.css`, `*.stories.js`, or `template.js` files in `components/*` will live reload in your browser. For more details about how to work within our Storybook setup, take a look at our [getting started Storybook guide](https://opensource.adobe.com/spectrum-css/?path=/docs/guides-contributing--docs). This project is leveraging caching from [Nx](https://nx.dev/) to speed up the build process. If you are seeing unexpected results, you can clear the cache by running `yarn nx reset`. diff --git a/.github/workflows/publish-site.yml b/.github/workflows/publish-site.yml index b26cdbd73fb..75a90ee78ff 100644 --- a/.github/workflows/publish-site.yml +++ b/.github/workflows/publish-site.yml @@ -78,19 +78,11 @@ jobs: - name: Build docs site shell: bash run: yarn build:site - env: - CHROMATIC_URL: ${{ inputs.storybook-url }} - - - name: Build storybook site - if: ${{ ! inputs.storybook-url }} - shell: bash - run: yarn nx run storybook:build:docs ## --- DEPLOY WEBSITE TO NETLIFY --- ## - name: Deploy uses: nwtgck/actions-netlify@v3 with: - # publish-dir: site/dist publish-dir: dist production-branch: main production-deploy: false diff --git a/.gitignore b/.gitignore index 6e7e2d83aec..6e43e171368 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ dist -dist-site + !tokens/dist/index.css -!tokens/dist/css/*.css -!tokens/dist/css/express/*.css -!tokens/dist/css/spectrum/*.css # Not committing the map assets, these are dev-only *.map diff --git a/.storybook/CHANGELOG.md b/.storybook/CHANGELOG.md index 9118259f865..59061011f98 100644 --- a/.storybook/CHANGELOG.md +++ b/.storybook/CHANGELOG.md @@ -1,5 +1,247 @@ # Change Log +## 11.0.0-s2-foundations.12 + +### Patch Changes + +- Updated dependencies [[`9ae725f`](https://github.com/adobe/spectrum-css/commit/9ae725f10ebbb78b62070c4c477cb41cfc1b1ed6), [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0)]: + - @spectrum-css/typography@7.0.0-s2-foundations.15 + +## 11.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/typography@7.0.0-s2-foundations.14 + - @spectrum-css/ui-icons@2.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 11.0.0-s2-foundations.10 + +### Patch Changes + +- Updated dependencies [[`db528ce`](https://github.com/adobe/spectrum-css/commit/db528ce0a6f7d817e6124604014faf9f4accfc1e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.20 + +## 11.0.0-s2-foundations.9 + +### Patch Changes + +- Updated dependencies [[`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.19 + +## 11.0.0-s2-foundations.8 + +### Patch Changes + +- Updated dependencies [[`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.18 + +## 11.0.0-s2-foundations.7 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`f15243a`](https://github.com/adobe/spectrum-css/commit/f15243adaa633531e82edbb61b2e4444517af64e) Thanks [@pfulton](https://github.com/pfulton)! - fix(storybook): update font loader to fix chromatic bug + +## 11.0.0-s2-foundations.6 + +### Patch Changes + +- Updated dependencies [[`1a36744`](https://github.com/adobe/spectrum-css/commit/1a367440d81e87e241c19a6c3e691faa7c0669aa)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.17 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- Updated dependencies [[`fa60db9`](https://github.com/adobe/spectrum-css/commit/fa60db9159edb6b111e4e6c30b05c828224b81e4), [`1d1cbfc`](https://github.com/adobe/spectrum-css/commit/1d1cbfcc80f8a78784edf9778c0f366be6b0efe6)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.16 + +## 11.0.0-s2-foundations.4 + +### Minor Changes + +- [#2982](https://github.com/adobe/spectrum-css/pull/2982) [`dffdefa`](https://github.com/adobe/spectrum-css/commit/dffdefaa1ffc39fbf7706e218d261da3a02695b5) Thanks [@castastrophe](https://github.com/castastrophe)! - ## New features for @spectrum-css Storybook + + - Migrate test functionality out of stories/template.js to stories/\*.test.js files + - Expand test coverage for components lacking a testing grid VRT + +## 11.0.0-s2-foundations.3 + +### Patch Changes + +- Updated dependencies [[`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.15 + +## 11.0.0-s2-foundations.2 + +### Patch Changes + +- Updated dependencies [[`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f), [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.14 + +## 11.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/typography@7.0.0-s2-foundations.13 + - @spectrum-css/ui-icons@2.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 11.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/typography@7.0.0-s2-foundations.12 + - @spectrum-css/ui-icons@2.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 11.0.0-s2-foundations.8 + +### Patch Changes + +- Updated dependencies [[`4265d20`](https://github.com/adobe/spectrum-css/commit/4265d208b6eb2db923e558fca100b4532b964e45)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.11 + +## 11.0.0-s2-foundations.7 + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/typography@7.0.0-s2-foundations.11 + - @spectrum-css/ui-icons@2.0.0-s2-foundations.6 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.6 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`70fed24`](https://github.com/adobe/spectrum-css/commit/70fed24e76fb6284b45288a4889bfcf18dfc7a9e) Thanks [@pfulton](https://github.com/pfulton)! - ## New features for @spectrum-css Storybook + + - Additional UI styling for docs visibility/usability + - Font loading improvements to signal completion by Typekit + - Theme switching setup in preparation for the S2 theme being added + - Icon loading decorator to inject SVG spritesheets into all stories + - Remove unused sizing decorator + - Harden the testing grid utilities in the decorators + - Hardcode port of 8080 for more stable local development links + - Adds Arabic as a supported language + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- Updated dependencies [[`494da11`](https://github.com/adobe/spectrum-css/commit/494da118554c2ecc425564e42d25424325efc331)]: + - @spectrum-css/typography@7.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.4 + +### Minor Changes + +- [#2867](https://github.com/adobe/spectrum-css/pull/2867) [`a0bd4eb`](https://github.com/adobe/spectrum-css/commit/a0bd4eb2ab43352c4bdedcb26f93138aacf99aee) Thanks [@castastrophe](https://github.com/castastrophe)! - New feature: Add a look-through to the Spectrum Web Components Storybook project to create an easier connection between components that exist in CSS and those in SWC. + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/typography@7.0.0-s2-foundations.9 + - @spectrum-css/ui-icons@2.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 11.0.0-s2-foundations.2 + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/typography@7.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 11.0.0-s2-foundations.1 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/typography@7.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.4.1-s2-foundations.0 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/typography@7.0.0-s2-foundations.6 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 11.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/ui-icons@2.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/ui-icons@2.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 11.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/ui-icons@2.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + ## 10.11.3 ### Patch Changes diff --git a/.storybook/assets/base.css b/.storybook/assets/base.css index 89bf6afacdd..75d89a8ac1e 100644 --- a/.storybook/assets/base.css +++ b/.storybook/assets/base.css @@ -23,16 +23,29 @@ body { font-size: var(--spectrum-font-size); font-style: var(--spectrum-font-style); + color: var(--spectrum-neutral-content-color-default); + background-color: var(--spectrum-background-base-color); +} + +nav.sidebar-container, +div.sb-bar { color: var(--spectrum-neutral-content-color-default); background-color: var(--spectrum-background-layer-2-color); } -.spectrum { +/* Layers around the components */ +body.spectrum, +.docs-story { color: var(--spectrum-neutral-content-color-default); background-color: var(--spectrum-background-layer-1-color); -webkit-tap-highlight-color: rgba(0, 0, 0, 0%); } +.sb-story [data-inner-container] { + padding: 0 !important; + border: none !important; +} + /* Hide the SVG elements that only include references */ svg:has(symbol):not(:has(use)) { display: none; diff --git a/site/resources/favicon.png b/.storybook/assets/favicon.png similarity index 100% rename from site/resources/favicon.png rename to .storybook/assets/favicon.png diff --git a/.storybook/assets/gradient-background-dark.png b/.storybook/assets/gradient-background-dark.png new file mode 100644 index 00000000000..961283356b0 Binary files /dev/null and b/.storybook/assets/gradient-background-dark.png differ diff --git a/.storybook/assets/gradient-background-light.png b/.storybook/assets/gradient-background-light.png new file mode 100644 index 00000000000..ea5f9512b7f Binary files /dev/null and b/.storybook/assets/gradient-background-light.png differ diff --git a/.storybook/assets/gray_migration-guide.png b/.storybook/assets/gray_migration-guide.png new file mode 100644 index 00000000000..43dde6742d5 Binary files /dev/null and b/.storybook/assets/gray_migration-guide.png differ diff --git a/assets/example-ava.png b/.storybook/assets/images/example-ava.png similarity index 100% rename from assets/example-ava.png rename to .storybook/assets/images/example-ava.png diff --git a/assets/example-ava@2x.png b/.storybook/assets/images/example-ava@2x.png similarity index 100% rename from assets/example-ava@2x.png rename to .storybook/assets/images/example-ava@2x.png diff --git a/assets/example-card-landscape.png b/.storybook/assets/images/example-card-landscape.png similarity index 100% rename from assets/example-card-landscape.png rename to .storybook/assets/images/example-card-landscape.png diff --git a/assets/example-card-portrait.png b/.storybook/assets/images/example-card-portrait.png similarity index 100% rename from assets/example-card-portrait.png rename to .storybook/assets/images/example-card-portrait.png diff --git a/assets/example-card-square.png b/.storybook/assets/images/example-card-square.png similarity index 100% rename from assets/example-card-square.png rename to .storybook/assets/images/example-card-square.png diff --git a/assets/flowers.png b/.storybook/assets/images/flowers.png similarity index 100% rename from assets/flowers.png rename to .storybook/assets/images/flowers.png diff --git a/.storybook/assets/images/gradient-background-dark.png b/.storybook/assets/images/gradient-background-dark.png new file mode 100644 index 00000000000..961283356b0 Binary files /dev/null and b/.storybook/assets/images/gradient-background-dark.png differ diff --git a/.storybook/assets/images/gradient-background-light.png b/.storybook/assets/images/gradient-background-light.png new file mode 100644 index 00000000000..ea5f9512b7f Binary files /dev/null and b/.storybook/assets/images/gradient-background-light.png differ diff --git a/.storybook/assets/images/gray_migration-guide.png b/.storybook/assets/images/gray_migration-guide.png new file mode 100644 index 00000000000..43dde6742d5 Binary files /dev/null and b/.storybook/assets/images/gray_migration-guide.png differ diff --git a/assets/spectrum-css_illustration_desktop.png b/.storybook/assets/images/spectrum-css_illustration_desktop.png similarity index 100% rename from assets/spectrum-css_illustration_desktop.png rename to .storybook/assets/images/spectrum-css_illustration_desktop.png diff --git a/assets/spectrum_illustration_2x.png b/.storybook/assets/images/spectrum_illustration_2x.png similarity index 100% rename from assets/spectrum_illustration_2x.png rename to .storybook/assets/images/spectrum_illustration_2x.png diff --git a/assets/thumbnail.png b/.storybook/assets/images/thumbnail.png similarity index 100% rename from assets/thumbnail.png rename to .storybook/assets/images/thumbnail.png diff --git a/.storybook/assets/index.css b/.storybook/assets/index.css index 2a2df851bf2..9520003c168 100644 --- a/.storybook/assets/index.css +++ b/.storybook/assets/index.css @@ -27,7 +27,7 @@ body { font-style: var(--spectrum-font-style); color: var(--spectrum-neutral-content-color-default); - background-color: var(--spectrum-background-layer-2-color); + background-color: var(--spectrum-background-base-color); } body:lang(ar) { @@ -118,4 +118,10 @@ 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/blocks/ColorPalette.jsx b/.storybook/blocks/ColorPalette.jsx index 02fd1aa1449..7dab9a9b644 100644 --- a/.storybook/blocks/ColorPalette.jsx +++ b/.storybook/blocks/ColorPalette.jsx @@ -73,22 +73,22 @@ const List = styled.div` * A single color row your styleguide showing title, subtitle and one or more colors, used * as a child of `ColorPalette`. */ -export const ColorItem = ({ title, color, values = [], ...props }) => { +export const ColorItem = ({ title, color, size = 38, values = [], ...props }) => { if (!color) return; if (!values.length) return ( <> - + {title && {title ?? capitalize(color)} - + } No values provided for color {color} ); return ( <> - + {title && {title ?? capitalize(color)} - + } {values.map((value) => { @@ -102,7 +102,7 @@ export const ColorItem = ({ title, color, values = [], ...props }) => { className="swatch" title={`--spectrum-${color}-${value} / ${resolved}`} background={resolved} - size={60} + size={size} onClick={() => navigator.clipboard.writeText(`--spectrum-${color}-${value}`)} /> diff --git a/.storybook/blocks/ComponentDetails.jsx b/.storybook/blocks/ComponentDetails.jsx index 1d4a92cbdc9..10fc70cad9a 100644 --- a/.storybook/blocks/ComponentDetails.jsx +++ b/.storybook/blocks/ComponentDetails.jsx @@ -148,7 +148,7 @@ function processReleaseData(storyMeta, npmData) { ].filter(tag => !ignoredTags.includes(tag)); // Create a robust fallback stack to capture the version number - const fallbackVersion = packageJson?.version ?? storyMeta?.csfFile?.meta?.parameters?.componentVersion; + const fallbackVersion = packageJson?.version; const mapVersions = new Map(); for (const tag of tags) { diff --git a/.storybook/decorators/context.js b/.storybook/decorators/context.js index 0d9485b3b0f..293c18d5ff7 100644 --- a/.storybook/decorators/context.js +++ b/.storybook/decorators/context.js @@ -1,6 +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/index.css?inline"; /** @@ -18,9 +19,10 @@ export const withContextWrapper = makeDecorator({ } = {}, globals: { color = "light", - context = "legacy", + context = "spectrum", scale = "medium", - } = {}, + testingPreview = false, + }, id, viewMode, } = data; @@ -36,6 +38,37 @@ export const withContextWrapper = makeDecorator({ }, }; + const updateScale = (scale) => { + const isRaw = Boolean(context === "raw"); + + for (const container of fetchContainers(id, viewMode === "docs", testingPreview)) { + container.classList.toggle("spectrum--medium", scale === "medium" && !isRaw); + container.classList.toggle("spectrum--large", scale === "large" && !isRaw); + } + }; + + const resizeObserver = new ResizeObserver((entries) => { + for (const entry of entries) { + const { contentRect } = entry; + const { width } = contentRect; + + if (width >= 480 && scale !== "medium") { + scale = "medium"; + updateScale("medium"); + } + else if (width < 480 && scale !== "large") { + scale = "large"; + updateScale("large"); + } + } + }); + + const original = { + color, + context, + scale, + }; + useEffect(() => { const isRaw = Boolean(context === "raw"); const isModern = Boolean(context === "spectrum"); @@ -47,12 +80,18 @@ export const withContextWrapper = makeDecorator({ document.body.classList.add("spectrum", "spectrum--light", "spectrum--medium"); } - for (const container of fetchContainers(id, viewMode === "docs")) { - // Start by attaching the appropriate tokens to the container - toggleStyles(container, "tokens", tokens, !isRaw); + // Start by attaching the appropriate tokens to the container + toggleStyles(document.body, "tokens", isModern ? tokens : legacyTokens, !isRaw); + + for (const container of fetchContainers(id, viewMode === "docs", testingPreview)) { + // Reset the context to the original values + color = original.color; + context = original.context; + scale = original.scale; // Check if the container has a static color element - const hasStaticElement = container.matches(`:has(.${rootClass}--staticWhite, .${rootClass}--staticBlack, .${rootClass}--overBackground)`); + let hasStaticElement = container.matches(`:has([data-html-preview])`) ? container.matches(`:has([data-html-preview] .${rootClass}--staticWhite, [data-html-preview] .${rootClass}--staticBlack, [data-html-preview] .${rootClass}--overBackground)`) : container.matches(`:has(.${rootClass}--staticWhite, .${rootClass}--staticBlack, .${rootClass}--overBackground)`); + let staticKey = staticColor; if (!staticKey && hasStaticElement) { staticKey = ( @@ -61,11 +100,15 @@ export const withContextWrapper = makeDecorator({ ); } + // If we can't determine the static key, we can't use the static color + 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); @@ -76,16 +119,23 @@ export const withContextWrapper = makeDecorator({ color = "dark"; } - for (let c of ["light", "dark", "darkest"]) { - // Force light or dark mode if the static color is set - const isColor = staticKey && c === staticColorSettings[staticKey]?.color || !staticKey && c === color; + // Let the static color override the color if it's set + if (hasStaticElement && staticColorSettings[staticKey]?.color) { + color = staticColorSettings[staticKey].color; + } - container.classList.toggle(`spectrum--${c}`, isColor && !isRaw); + // Force a light theme for the body wrapper in testing preview mode + // because the individual containers will bring in the correct theme + if (testingPreview && container.matches("body:has([data-testing-preview]")) { + color = "light"; + } + + for (let c of ["light", "dark", "darkest"]) { + container.classList.toggle(`spectrum--${c}`, c === color && !isRaw); } for (const s of ["medium", "large"]) { - const isScale = s === scale; - container.classList.toggle(`spectrum--${s}`, isScale && !isRaw); + container.classList.toggle(`spectrum--${s}`, s === scale && !isRaw); } // Start by removing the background color from the container and then add it back if needed @@ -94,7 +144,12 @@ export const withContextWrapper = makeDecorator({ container.style.background = staticColorSettings[staticKey].background; } } - }, [color, context, staticColor, scale, viewMode, rootClass, tokens, staticColorSettings]); + + }, [color, context, staticColor, scale, viewMode, rootClass, tokens, legacyTokens, staticColorSettings]); + + + // We only need to observe the body element for a viewport change + resizeObserver.observe(document.body); return StoryFn(data); }, diff --git a/.storybook/decorators/helpers.js b/.storybook/decorators/helpers.js index cfea8322b6a..e4ebc8ecd15 100644 --- a/.storybook/decorators/helpers.js +++ b/.storybook/decorators/helpers.js @@ -50,22 +50,28 @@ export function fetchStyleContainer(id, container) { * @type (id: string, isDocs: boolean = false) => HTMLElement[] * @description Fetches the style container for the given ID or creates a new one **/ -export function fetchContainers(id, isDocs = false) { - if (!id) return []; - const { document } = global; +export function fetchContainers(id, isDocs = false, isTesting = false) { + if (!id) return []; + const { document } = global; + + let containers = []; - let containers = [document.body]; + // Storybook IDs used to target the container element for the docs pages + const roots = [ + ...document.querySelectorAll(`#story--${id}`), + ...document.querySelectorAll(`#story--${id}--primary`) + ]; - // Storybook IDs used to target the container element for the docs pages - const roots = [ - ...document.querySelectorAll(`#story--${id}`), - ...document.querySelectorAll(`#story--${id}--primary`) - ]; + // viewMode is either "docs" or "story" + if (isDocs && roots.length > 0) { + containers = roots.map(root => root.closest(".docs-story") ?? root); + } + else if (isTesting) { + // Only capture the top-level container for testing previews + containers.push(...document.querySelectorAll("[data-inner-container]"), document.body); + } - // viewMode is either "docs" or "story" - if (isDocs && roots.length > 0) { - containers = roots.map(root => root.closest(".docs-story") ?? root); - } + if (containers.length === 0) containers = [document.body]; - return containers; + return containers; } diff --git a/.storybook/decorators/utilities.js b/.storybook/decorators/utilities.js index 5b45948ba25..3ed63d0ab04 100644 --- a/.storybook/decorators/utilities.js +++ b/.storybook/decorators/utilities.js @@ -323,17 +323,26 @@ export const Variants = ({ TestTemplate = Template; } + const staticColor = { + black: "var(--spectrum-docs-static-black-background-color)", + white: "var(--spectrum-docs-static-white-background-color)", + }; + return (args, context) => { // Fetch any docs configurations from the context to use for VRT - const { parameters = {} } = context; + const { argTypes = {}, parameters = {} } = context; const height = parameters?.docs?.story?.height; const width = parameters?.docs?.story?.width; + // Check if the staticColor property exists in this story + const hasStaticColor = Object.keys(argTypes).includes("staticColor"); + return html`
States({ diff --git a/.storybook/deprecated/cyclebutton/cyclebutton.stories.js b/.storybook/deprecated/cyclebutton/cyclebutton.stories.js deleted file mode 100644 index a42c1e217f0..00000000000 --- a/.storybook/deprecated/cyclebutton/cyclebutton.stories.js +++ /dev/null @@ -1,89 +0,0 @@ -import { default as ActionButtonStories } from "@spectrum-css/actionbutton/stories/actionbutton.stories.js"; -import { Template as ActionButton } from "@spectrum-css/actionbutton/stories/template.js"; -import pkgJson from "@spectrum-css/cyclebutton/package.json"; -import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js"; -import { html } from "lit"; - -import "@spectrum-css/cyclebutton/dist/index-vars.css"; -import "@spectrum-css/cyclebutton/dist/vars.css"; - -/** - * **This component is deprecated.** Please use the quiet variant of action button with the appropriate icon(s) instead. Any icon swapping that happens on-click/on-key should be handled by the implementation. - * - * The cycle button component is an action button that cycles through two different icons, a play that then changes to a pause, for example. - */ -export default { - title: "Cycle button", - component: "CycleButton", - argTypes: { - size: ActionButtonStories?.argTypes?.size ?? {}, - initialIcon: { - ...(IconStories?.argTypes?.iconName ?? {}), - name: "Initial icon", - type: { name: "string", required: true }, - if: false, - }, - selectedIcon: { - ...(IconStories?.argTypes?.iconName ?? {}), - name: "Selected icon", - if: false, - }, - isSelected: ActionButtonStories?.argTypes?.isSelected ?? {}, - isDisabled: ActionButtonStories?.argTypes?.isDisabled ?? {}, - }, - args: { - rootClass: "spectrum-CycleButton", - size: "m", - initialIcon: "Play", - selectedIcon: "Pause", - }, - parameters: { - actions: { - handles: [...(ActionButtonStories?.parameters?.actions?.handles ?? [])], - }, - chromatic: { disableSnapshot: true }, - status: { - type: "deprecated" - }, - packageJson: pkgJson, - }, -}; - -export const Default = (({ - rootClass = "spectrum-CycleButton", - customClasses = [], - size = "m", - isDisabled = false, - onclick, - selectedIcon = "Pause", - initialIcon = "Play" -} = {}, context = {}) => { - const { updateArgs } = context; - - return html` - - - ${ActionButton({ - customClasses: [rootClass, ...customClasses], - isQuiet: true, - isDisabled, - size, - iconName: initialIcon, - iconSet: "workflow", - onclick: - onclick ?? - function () { - if (isDisabled) return; - - updateArgs({ - initialIcon: selectedIcon, - selectedIcon: initialIcon - }); - }, - }, context)} - `; -}).bind({}); -Default.args = {}; diff --git a/.storybook/deprecated/cyclebutton/cyclebutton.yml b/.storybook/deprecated/cyclebutton/cyclebutton.yml deleted file mode 100644 index dfd357fb23e..00000000000 --- a/.storybook/deprecated/cyclebutton/cyclebutton.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Cycle button -status: Deprecated -deprecationNotice: Use the [quiet variant of action button](actionbutton.html#quiet) with the appropriate icon(s) instead. Any icon swapping that happens on-click/on-key should be handled by the implementation. -examples: - - id: cyclebutton - name: Standard - markup: | - diff --git a/.storybook/deprecated/quickaction/quickaction.stories.js b/.storybook/deprecated/quickaction/quickaction.stories.js deleted file mode 100644 index c462e7f97ea..00000000000 --- a/.storybook/deprecated/quickaction/quickaction.stories.js +++ /dev/null @@ -1,146 +0,0 @@ -import pkgJson from "@spectrum-css/quickaction/package.json"; -import { html } from "lit"; -import { classMap } from "lit/directives/class-map.js"; -import { ifDefined } from "lit/directives/if-defined.js"; - -import { Template as ActionButton } from "@spectrum-css/actionbutton/stories/template.js"; - -import "@spectrum-css/quickaction/dist/index-vars.css"; -import "@spectrum-css/quickaction/dist/vars.css"; - -/** - * **This component is deprecated.** Please use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead. - */ -export default { - title: "Quick actions", - component: "QuickAction", - argTypes: { - content: { table: { disable: true } }, - isOpen: { - name: "Open", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "Component", - }, - control: "boolean", - }, - position: { - name: "Position", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Component", - }, - control: "select", - options: ["left", "right"], - }, - textOnly: { - name: "Text only action buttons", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "Advanced", - }, - control: "boolean", - }, - }, - args: { - rootClass: "spectrum-QuickActions", - isOpen: true, - textOnly: false, - content: [ - { - iconName: "Edit", - label: "Edit", - }, - { - iconName: "Copy", - label: "Copy", - }, - { - iconName: "Delete", - label: "Delete", - }, - ], - }, - parameters: { - chromatic: { disableSnapshot: true }, - status: { - type: "deprecated" - }, - packageJson: pkgJson, - }, -}; - -const Template = ({ - rootClass = "spectrum-QuickActions", - size = "m", - isOpen = false, - textOnly = false, - position, - // noOverlay = false, - content = [], - id, - customClasses = [], -} = {}, context = {}) => { - if (!content.length) { - console.warn("QuickActions: requires content be passed in to render."); - return html``; - } - - if (!content.some((c) => c.icon)) textOnly = true; - - return html` - - -
({ ...a, [c]: true }), {}), - })}" - id=${ifDefined(id)} - > - ${content.map((c) => { - if ((typeof c === "object" && c.iconName) || c.label) { - return ActionButton({ ...c, isQuiet: true }, context); - } else return c; - })} -
- `; -}; - -export const Default = Template.bind({}); -Default.args = {}; diff --git a/.storybook/deprecated/quickaction/quickaction.yml b/.storybook/deprecated/quickaction/quickaction.yml deleted file mode 100644 index 2f3e9425b70..00000000000 --- a/.storybook/deprecated/quickaction/quickaction.yml +++ /dev/null @@ -1,47 +0,0 @@ -id: quickactions -name: Quick actions -status: Deprecated -deprecationNotice: Use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead. -description: Note that the `.spectrum-QuickActions-overlay` class should be placed on the container where the Quick Actions are displayed, and the `.spectrum-QuickActions--textOnly` class should be applied when the buttons have text only. -SpectrumSiteSlug: https://spectrum.adobe.com/page/quick-actions/ -examples: - - id: quickactions - name: Standard - markup: | -
- -
- - - -
- -
- -
- -
- - - -
- -
diff --git a/.storybook/deprecated/searchwithin/searchwithin.stories.js b/.storybook/deprecated/searchwithin/searchwithin.stories.js deleted file mode 100644 index 139b735a128..00000000000 --- a/.storybook/deprecated/searchwithin/searchwithin.stories.js +++ /dev/null @@ -1,238 +0,0 @@ -import pkgJson from "@spectrum-css/searchwithin/package.json"; -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 { Template as ClearButton } from "@spectrum-css/clearbutton/stories/template.js"; -import { Template as Picker } from "@spectrum-css/picker/stories/template.js"; -import { Template as Popover } from "@spectrum-css/popover/stories/template.js"; -import { Template as Textfield } from "@spectrum-css/textfield/stories/template.js"; - -import { Template as Menu } from "@spectrum-css/menu/stories/template.js"; - -import "@spectrum-css/searchwithin/dist/index-vars.css"; -import "@spectrum-css/searchwithin/dist/vars.css"; - -/** - * **This component is deprecated.** Please use a search field with a separate control to filter the search instead. - */ -export default { - title: "Search within", - component: "SearchWithin", - argTypes: { - size: { - name: "Size", - type: { name: "string", required: true }, - table: { - type: { summary: "string" }, - category: "Component", - }, - options: ["s", "m", "l", "xl"], - control: "select", - }, - label: { - name: "Label", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Content", - }, - control: { type: "text" }, - }, - labelPosition: { - name: "Label position", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Content", - }, - options: ["top", "left"], - control: { type: "select" }, - }, - withSwitch: { - name: "Display with a switch component", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "Component", - }, - control: "boolean", - if: { arg: "labelPosition", eq: "left" }, - }, - placeholder: { - name: "Placeholder", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Content", - }, - control: { type: "text" }, - }, - isQuiet: { - name: "Quiet styling", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "Component", - }, - control: "boolean", - }, - isOpen: { - name: "Open", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "State", - }, - control: "boolean", - }, - isKeyboardFocused: { - name: "Keyboard focused", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "State", - }, - control: "boolean", - }, - isDisabled: { - name: "Disabled", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "State", - }, - control: "boolean", - }, - isLoading: { - name: "Loading", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "State", - }, - control: "boolean", - }, - isInvalid: { - name: "Invalid input", - type: { name: "boolean" }, - table: { - type: { summary: "boolean" }, - category: "State", - }, - control: "boolean", - }, - content: { table: { disable: true } }, - }, - args: { - rootClass: "spectrum-SearchWithin", - isOpen: false, - isQuiet: false, - size: "m", - label: "All", - placeholder: "Search", - isKeyboardFocused: false, - isLoading: false, - isDisabled: false, - isInvalid: false, - withSwitch: false, - }, - parameters: { - chromatic: { disableSnapshot: true }, - status: { - type: "deprecated" - }, - packageJson: pkgJson, - }, -}; - -const Template = ({ - rootClass = "spectrum-SearchWithin", - customClasses = [], - customStyles = {}, - isQuiet = false, - isOpen = false, - isInvalid = false, - isLoading = false, - isDisabled = false, - withSwitch = false, - isKeyboardFocused = false, - size = "m", - label, - placeholder, -}, context) => html` - - -
({ ...a, [c]: true }), {}), - })} - style=${ifDefined(styleMap(customStyles))} - > - ${Picker({ - size, - placeholder: label, - label: undefined, - isOpen, - isQuiet, - isInvalid, - isLoading, - isDisabled, - withSwitch, - position: "left", - customClasses: [`${rootClass}-picker`], - }, context)} - ${Textfield({ - size, - autocomplete: false, - name: "search", - placeholder, - type: "search", - customInputClasses: [`${rootClass}-input`], - isQuiet, - isInvalid, - isLoading, - isDisabled, - isKeyboardFocused, - }, context)} - ${ClearButton({ - size, - customClasses: [`${rootClass}-clearButton`], - }, context)} - ${Popover({ - isOpen: isOpen, - withTip: false, - position: "bottom", - customStyles: { - position: "absolute", - top: "38px", - left: "0", - }, - content: [ - Menu({ - items: [ - { label: "Deselect" }, - { label: "Select Inverse" }, - { label: "Feather..." }, - { label: "Select and Mask..." }, - { type: "divider" }, - { label: "Save Selection" }, - { label: "Make Work Path", isDisabled: true }, - ], - }, context), - ], - }, context)} -
-`; - -export const Default = Template.bind({}); -Default.args = {}; diff --git a/.storybook/deprecated/searchwithin/searchwithin.yml b/.storybook/deprecated/searchwithin/searchwithin.yml deleted file mode 100644 index b51d7c3c221..00000000000 --- a/.storybook/deprecated/searchwithin/searchwithin.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: Search within -status: Deprecated -deprecationNotice: Use a [search field](search.html) with a separate control to filter the search instead. -description: Override the width of the component where necessary. -examples: - - id: searchwithin - name: Standard - markup: | -

Default

-
- -
- -
- -
- -

Open

-
- -
- -
- - -
-
    -
  • - All -
  • -
  • - Campaigns -
  • -
  • - Audiences -
  • -
  • - Tags -
  • -
-
-
- -

Default (Changed Selection)

-
- -
- -
- -
- -

Disabled

-
- -
- -
- -
diff --git a/.storybook/deprecated/splitbutton/splitbutton.stories.js b/.storybook/deprecated/splitbutton/splitbutton.stories.js deleted file mode 100644 index 1738fc3a25b..00000000000 --- a/.storybook/deprecated/splitbutton/splitbutton.stories.js +++ /dev/null @@ -1,157 +0,0 @@ -import pkgJson from "@spectrum-css/splitbutton/package.json"; -import { html } from "lit"; -import { classMap } from "lit/directives/class-map.js"; - -import { Template as Button } from "@spectrum-css/button/stories/template.js"; - -import "@spectrum-css/splitbutton/dist/index-vars.css"; -import "@spectrum-css/splitbutton/dist/vars.css"; - -/** - * **This component is deprecated.** Please use a button group to show any additional actions related to the most critical action. Reference [Spectrum documentation](https://spectrum.corp.adobe.com/page/button-group/#Use-a-button-group-to-show-additional-actions) for more information. - * - * A split button surfaces an immediately invokable action via it's main button, as well as a list of alternative actions in its toggle-able menu overlay. - */ -export default { - title: "Split button", - component: "SplitButton", - argTypes: { - size: { - name: "Size", - type: { name: "string", required: true }, - table: { disable: true }, - options: ["m"], - control: "select", - }, - variant: { - name: "Variant", - type: { name: "string" }, - table: { disable: true }, - options: ["accent", "primary", "secondary"], - control: "select", - }, - position: { - name: "Position", - type: { name: "string", required: true }, - table: { - type: { summary: "string" }, - category: "Component", - }, - options: ["right", "left"], - control: "select", - }, - iconName: { table: { disable: true } }, - label: { - name: "Label", - type: { name: "string" }, - table: { - type: { summary: "string" }, - category: "Content", - }, - control: { type: "text" }, - }, - }, - args: { - rootClass: "spectrum-SplitButton", - size: "m", - position: "right", - label: "Split Button", - variant: "accent", - iconName: "ChevronDown100", - }, - parameters: { - chromatic: { disableSnapshot: true }, - status: { - type: "deprecated" - }, - packageJson: pkgJson, - }, -}; - -const Template = ({ - rootClass = "spectrum-SplitButton", - customClasses = [], - customFirstButtonClasses = [], - customLastButtonClasses = [], - size = "m", - variant = "cta", - iconName = "ChevronDown100", - labelIconName = undefined, - position = "right", - label = "Split button", -} = {}, context = {}) => { - return html` - - -
({ ...a, [c]: true }), {}), - })} - > - ${Button({ - variant, - size, - iconName: position === "right" - ? typeof labelIconName != "undefined" ? labelIconName : undefined - : iconName, - label: position === "right" ? label : undefined, - hideLabel: position === "right" ? false : true, - customClasses: [ - position === "right" - ? "spectrum-SplitButton-action" - : "spectrum-SplitButton-trigger", - ...customFirstButtonClasses - ] - }, context)} - ${Button({ - variant, - size, - iconName: position === "right" - ? iconName - : typeof labelIconName != "undefined" ? labelIconName : undefined, - iconAfterLabel: true, - label: position === "right" ? undefined : label, - hideLabel: position === "right" ? true : false, - customClasses: [ - position === "right" - ? "spectrum-SplitButton-trigger" - : "spectrum-SplitButton-action", - ...customLastButtonClasses - ] - }, context)} -
- `; -}; - -export const Default = Template.bind({}); -Default.args = {}; diff --git a/.storybook/deprecated/splitbutton/splitbutton.yml b/.storybook/deprecated/splitbutton/splitbutton.yml deleted file mode 100644 index 5940902961b..00000000000 --- a/.storybook/deprecated/splitbutton/splitbutton.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: Split button -status: Deprecated -deprecationNotice: Use a [button group](buttongroup.html) to show any additional actions related to the most critical action. Reference [Spectrum documentation](https://spectrum.corp.adobe.com/page/button-group/#Use-a-button-group-to-show-additional-actions) for more information. -examples: - - id: splitbutton - name: CTA - description: A CTA split button. - markup: | -
- - -
- -
-
- -
- - -
- - id: splitbutton - name: Primary - description: A primary split button. - markup: | -
- - -
- -
-
- -
- - -
- - id: splitbutton - name: Secondary - description: A secondary split button. - markup: | -
- - -
- -
-
- -
- - -
diff --git a/.storybook/guides/color_palette.mdx b/.storybook/guides/color_palette.mdx index 76fd930fe3e..22264d383ad 100644 --- a/.storybook/guides/color_palette.mdx +++ b/.storybook/guides/color_palette.mdx @@ -1,6 +1,9 @@ import { Meta, Title } from "@storybook/blocks"; import { ColorPalette, ColorItem, ThemeContainer, Heading } from "../blocks"; +import GradientLight from "../assets/images/gradient-background-light.png"; +import GradientDark from "../assets/images/gradient-background-dark.png"; + Design tokens @@ -11,98 +14,152 @@ The Spectrum CSS color palette is a collection of named colors that are used thr + + + + + @@ -113,24 +170,38 @@ The Spectrum CSS color palette is a collection of named colors that are used thr ### Transparent colors - +#### Transparent black + +
- +#### Transparent white + + diff --git a/.storybook/guides/deprecation.mdx b/.storybook/guides/deprecation.mdx index 16342e4cccf..e0aa80b1754 100644 --- a/.storybook/guides/deprecation.mdx +++ b/.storybook/guides/deprecation.mdx @@ -42,12 +42,7 @@ Before removing the component from the codebase, we need to flag the component a status: { type: "deprecated" } }, ``` -3. Update the status of the component to `Deprecated` in the `*.yml` file. Add any additional migration notes to the `deprecationNotice` keyword. i.e., - ```yaml - name: Quick actions - status: Deprecated - deprecationNotice: Use an [action bar](actionbar.html) to allow users to perform actions on either a single or multiple items at the same time, instead. - ``` +3. Update the status of the component to `Deprecated` in the `stories/*.mdx` file. Add any additional migration notes from design to the story description. 4. Commit these changes and open a pull request to the main branch. i.e., `git commit -m "chore(quickaction): prepare for deprecation"`. 5. Once the pull request is approved, merge the changes into the main branch and publish the update to the package registry. @@ -58,7 +53,7 @@ At this point you can choose to either immediate move on to the next steps or gi Once the deprecation notice has been communicated and the above steps completed, we can remove the component from the codebase safely without breaking local references. 1. Create a new folder with the component name in `.storybook/deprecated`, i.e., `.storybook/deprecated/quickaction`. -2. Copy `*.stories.js` and `metadata/*.yml` into the new folder (directly, not nested inside subfolders). +2. Copy `*.stories.js` and `stories/*.mdx` into the new folder (directly, not nested inside subfolders). 3. Delete the package from the `components` directory. 4. Add the deprecated component's package and last version to the monorepo's root package.json. i.e., `"@spectrum-css/quickaction": "^3.1.1",`. 5. Reach out to one of the package maintainers to officially deprecate the package in the package registry with the provided deprecation notice from design. Do not try to run the deprecation command unless you know that you have publishing permissions on npm. i.e., `npm deprecate @spectrum-css/quickaction@3.1.1 "This package 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."`. diff --git a/.storybook/guides/develop.mdx b/.storybook/guides/develop.mdx index e9c4634d9c2..822e9c99262 100644 --- a/.storybook/guides/develop.mdx +++ b/.storybook/guides/develop.mdx @@ -1,6 +1,6 @@ import { Meta } from "@storybook/blocks"; -import Illustration from "../../assets/spectrum_illustration_2x.png"; +import Illustration from "../assets/images/spectrum_illustration_2x.png"; @@ -46,8 +46,9 @@ Each component outputs the following assets to `dist`: 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.css`: Represents the Spectrum theme. -- `themes/express.css`: Represents the Express theme. **deprecated in Spectrum 2** +- `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** ## Adding a new component diff --git a/.storybook/guides/s2_migration.mdx b/.storybook/guides/s2_migration.mdx new file mode 100644 index 00000000000..23ac1820f95 --- /dev/null +++ b/.storybook/guides/s2_migration.mdx @@ -0,0 +1,70 @@ +import { Meta, Title } from "@storybook/blocks"; +import { ThemeContainer, Heading } from "../blocks"; + +import GrayMigrationGuide from "../assets/images/gray_migration-guide.png"; + + +Migration guide + +## Deprecated components + +- Cycle button: Use the quiet variant of action button with the appropriate icon(s) instead. Any icon swapping that happens on-click/on-key should be handled by the implementation. +- Quick actions: Use an action bar to allow users to perform actions on either a single or multiple items at the same time, instead. +- Search within: Use a search field with a separate control to filter the search instead. +- Split button: Use a button group to show any additional actions related to the most critical action. Reference [Spectrum documentation](https://spectrum.corp.adobe.com/page/button-group/#Use-a-button-group-to-show-additional-actions) for more information. + +## Grays + +Gray migration guide +
+
+ +### Examples of using the new grays + +- `Gray-25`, `-50`, and `-75` are reserved for background layers. +- `Gray-100`, `-200`, and `-300` are used for lower contrast component background progressions or borders. +- `Gray-800` and `-900` are used for higher contrast component backgrounds such as text and active borders. This ensures that components are always visible, regardless of the background color. + +## Transparent colors + +### Transparent white + +| | | Spectrum 2 | Spectrum 1 | +| ----------------- | :-------: | ----------: | ----------: | +| **Color** | **Value** | **Opacity** | **Opacity** | +| transparent-white | 25 | 0 | | +| transparent-white | 50 | 0.04 | | +| transparent-white | 75 | 0.07 | | +| transparent-white | 100 | 0.11 | 0 | +| transparent-white | 200 | 0.14 | 0.1 | +| transparent-white | 300 | 0.17 | 0.25 | +| transparent-white | 400 | 0.21 | 0.4 | +| transparent-white | 500 | 0.39 | 0.55 | +| transparent-white | 600 | 0.51 | 0.7 | +| transparent-white | 700 | 0.66 | 0.8 | +| transparent-white | 800 | 0.85 | 0.9 | +| transparent-white | 900 | 0.94 | 1 | +| transparent-white | 1000 | 1 | | + +### Transparent black + +| | | Spectrum 2 | Spectrum 1 | +| ----------------- | :-------: | ----------: | ----------: | +| **Color** | **Value** | **Opacity** | **Opacity** | +| transparent-black | 25 | 0 | | +| transparent-black | 50 | 0.03 | | +| transparent-black | 75 | 0.05 | | +| transparent-black | 100 | 0.09 | 0 | +| transparent-black | 200 | 0.12 | 0.1 | +| transparent-black | 300 | 0.15 | 0.25 | +| transparent-black | 400 | 0.22 | 0.4 | +| transparent-black | 500 | 0.44 | 0.55 | +| transparent-black | 600 | 0.56 | 0.7 | +| transparent-black | 700 | 0.69 | 0.8 | +| transparent-black | 800 | 0.84 | 0.9 | +| transparent-black | 900 | 0.93 | 1 | +| transparent-black | 1000 | 1 | | diff --git a/.storybook/main.js b/.storybook/main.js index a00e74bff70..320140151c8 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,3 +1,5 @@ +import remarkGfm from 'remark-gfm'; + export default { stories: [ { @@ -17,20 +19,30 @@ export default { }, ], rootDir: "../", - staticDirs: ["../assets"], + staticDirs: ["./assets/images"], addons: [ { name: "@storybook/addon-essentials", // Supported booleans: actions, controls, docs, toolbars, measure, outline. options: { - // Don't need viewports b/c the medium/large contexts are used to support scaling. - viewport: false, // Don't need backgrounds b/c this is handled by the color contexts. backgrounds: false, + // Configure separately + docs: false, + }, + }, + { + name: "@storybook/addon-docs", + options: { // Enables JSX support in MDX for projects that aren't configured to handle the format. configureJSX: true, - // Support markdown in MDX files. + // Support markdown in MDX files transcludeMarkdown: true, + mdxPluginOptions: { + mdxCompileOptions: { + remarkPlugins: [remarkGfm], + }, + }, }, }, // https://github.com/storybookjs/storybook/tree/next/code/addons/a11y @@ -55,7 +67,7 @@ export default { const { mergeConfig } = await import("vite"); return mergeConfig(config, { - publicDir: "../assets", + publicDir: "./assets/images", build: { sourcemap: configType === "DEVELOPMENT", manifest: true, diff --git a/.storybook/modes/index.js b/.storybook/modes/index.js index 734bd52d09f..a52ecc790e2 100644 --- a/.storybook/modes/index.js +++ b/.storybook/modes/index.js @@ -12,6 +12,12 @@ */ const modes = { + "Context: Spectrum 2": { + scale: "medium", + color: "light", + textDirection: "ltr", + context: "spectrum", + }, "Context: Spectrum 1": { scale: "medium", color: "light", @@ -28,6 +34,7 @@ const modes = { scale: "medium", color: "dark", textDirection: "rtl", + context: "legacy", }, }; diff --git a/.storybook/package.json b/.storybook/package.json index c8992840622..d017e935556 100644 --- a/.storybook/package.json +++ b/.storybook/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/preview", - "version": "10.11.3", + "version": "11.0.0-s2-foundations.12", "description": "A Spectrum CSS preview", "license": "Apache-2.0", "author": "Adobe", @@ -29,7 +29,9 @@ }, "dependencies": { "@adobe/spectrum-css-workflow-icons": "^1.5.4", + "@adobe/spectrum-tokens": "0.0.0-s2-foundations-colors-20240503210338", "@spectrum-css/tokens": "workspace:^", + "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.3.1", "@spectrum-css/typography": "workspace:^", "@spectrum-css/ui-icons": "workspace:^" }, @@ -63,6 +65,7 @@ "react": "^18.3.1", "react-dom": "^18.3.1", "react-syntax-highlighter": "^15.5.0", + "remark-gfm": "^4.0.0", "rollup-plugin-postcss-lit": "^2.1.0", "storybook": "^8.3.2", "vite": "^5.4.6" diff --git a/.storybook/project.json b/.storybook/project.json index f5898309424..01945574816 100644 --- a/.storybook/project.json +++ b/.storybook/project.json @@ -71,7 +71,7 @@ "commands": [ "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/assets/*.css && stylelint --fix --cache --allow-empty-input {projectRoot}/assets/*.css", "eslint --fix --cache --no-error-on-unmatched-pattern {projectRoot}/*.{js,json} {projectRoot}/**/*.js --ignore-pattern \"!.storybook/\"", - "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/*.{md,mdx} {projectRoot}/**/*.{yml,mdx}" + "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/*.{md,mdx} {projectRoot}/**/*.{md,mdx}" ] } }, diff --git a/.storybook/types/global.js b/.storybook/types/global.js index aceccb44c4c..adb897ba719 100644 --- a/.storybook/types/global.js +++ b/.storybook/types/global.js @@ -12,8 +12,9 @@ export default { showName: true, toolbar: { items: [ - { value: "legacy", title: "Spectrum 1", right: "default" }, - { value: "express", title: "Express" }, + { 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, diff --git a/.vscode/settings.json b/.vscode/settings.json index 62d1f65e00b..494c76bd271 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -99,7 +99,6 @@ "stylelint.reportNeedlessDisables": true, "stylelint.validate": ["css", "postcss"], "yaml.schemas": { - "~/.vscode/extensions/atlassian.atlascode-3.0.4/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml", - "./schemas/documentation.schema.json": ["/metadata/*.yml", "/metadata/*.yaml"] + "~/.vscode/extensions/atlassian.atlascode-3.0.4/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml" } } diff --git a/README.md b/README.md index 378ff3f058e..7ff5aadfcb1 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ ## Features -* 📖 **Robust documentation**: Spectrum CSS is designed to be used in partnership with [Spectrum's detailed usage guidelines](https://spectrum.adobe.com/). -* 🎨 **Flexible**: Our CSS is customizable, powerful, and designed to work with any JavaScript framework. -* 🧪 **Rigorously tested**: These individually-versioned components have been vetted to be accessible and inclusive of global audiences. -* 📱 **Multi-platform support**: We support [evergreen browsers](https://github.com/adobe/spectrum-css?tab=readme-ov-file#browser-support) for scalability and flexibility. +- 📖 **Robust documentation**: Spectrum CSS is designed to be used in partnership with [Spectrum's detailed usage guidelines](https://spectrum.adobe.com/). +- 🎨 **Flexible**: Our CSS is customizable, powerful, and designed to work with any JavaScript framework. +- 🧪 **Rigorously tested**: These individually-versioned components have been vetted to be accessible and inclusive of global audiences. +- 📱 **Multi-platform support**: We support [evergreen browsers](https://github.com/adobe/spectrum-css?tab=readme-ov-file#browser-support) for scalability and flexibility. -     [](https://opensource.adobe.com/spectrum-css/get-started.html)   [](https://opensource.adobe.com/spectrum-css/preview/) +     [](https://opensource.adobe.com/spectrum-css/get-started.html)   [](https://opensource.adobe.com/spectrum-css/) ## Using Spectrum CSS @@ -26,11 +26,11 @@ Want to get a component up and running as soon as possible? Check out the [quick ### Functionality -Spectrum CSS is CSS-only, implementing only the interactivity that can be done with pure CSS. We do include some lightweight JS-based interaction for demonstration purposes only in our [Storybook](https://opensource.adobe.com/spectrum-css/preview/). Spectrum CSS should only be used by implementations of Spectrum, or very simple applications that only need things like typography, checkboxes, text fields, etc. +Spectrum CSS is CSS-only, implementing only the interactivity that can be done with pure CSS. We do include some lightweight JS-based interaction for demonstration purposes only in our [Storybook](https://opensource.adobe.com/spectrum-css/). Spectrum CSS should only be used by implementations of Spectrum, or very simple applications that only need things like typography, checkboxes, text fields, etc. Adobe maintains separate libraries written with [web components](https://opensource.adobe.com/spectrum-web-components/) and [React](https://react-spectrum.adobe.com/react-spectrum/index.html) that work in partnership with Spectrum CSS to create fully interactive Spectrum components. -The [Spectrum Web Components]() library directly imports Spectrum CSS and optimizes it for use with web components. +The [Spectrum Web Components](https://opensource.adobe.com/spectrum-web-components/) library directly imports Spectrum CSS and optimizes it for use with web components. ### Installing components @@ -50,17 +50,19 @@ All components in this library have a peer dependency on [`@spectrum-css/tokens` Spectrum CSS components have build output that is designed to be used in a variety of ways: -* `index.css` - _Preferred and most commonly used to incorporate Spectrum CSS into a project_. This file includes the component's styles and variable definitions. In this version, token-driven CSS properties[1](#token-footnote) are mapped to empty `--mod` prefixed variables (for customization) with a fallback to variables prefixed with `--spectrum` (sourced from the design tokens). - * This file loads both the `.spectrum` and `.spectrum--express` contexts which are used to toggle components between two different [visual styles](https://github.com/adobe/spectrum-css?tab=readme-ov-file#visual-language). The `.spectrum` context is the default. +- `index.css` - _Preferred and most commonly used to incorporate Spectrum CSS into a project_. This file includes the component's styles and variable definitions. In this version, token-driven CSS properties[1](#token-footnote) are mapped to empty `--mod` prefixed variables (for customization) with a fallback to variables prefixed with `--spectrum` (sourced from the design tokens). -* `index-vars.css` - _Deprecated_. This file is identical to `index.css`. It is provided as a fallback for older implementations that may have been using it and will be removed. It is recommended to use `index.css` instead. + - This file loads both the `.spectrum` and `.spectrum--express` contexts which are used to toggle components between two different [visual styles](https://github.com/adobe/spectrum-css?tab=readme-ov-file#visual-language). The `.spectrum` context is the default. -* `index-base.css`: This file mimics the `index.css` output, but does not include the `.spectrum` or `.spectrum--express` contexts. - * If your product only requires the `.spectrum` context, you can use `index-base.css` plus `themes/spectrum.css` from the `themes` directory to render the default Spectrum visual language. - * The `.spectrum--express` context, on the other hand, is dependent on/expands on the default `.spectrum` context. This means if you only want to use the Express context, you still need to include `themes/spectrum.css`. In this case, we recommend using `index.css` instead since it includes both contexts by default. - * This approach can also be used when you have defined and written your own visual language and only need the base component styles from Spectrum CSS. To wire up your own visual language, you would need to define your own custom properties that match those defined in the `themes/*.css` assets. +- `index-vars.css` - _Deprecated_. This file is identical to `index.css`. It is provided as a fallback for older implementations that may have been using it and will be removed. It is recommended to use `index.css` instead. -* `index-theme.css`: This file provides only the visual language for a component. It is used in conjunction with `index-base.css` and when loaded together, provides the same result as using `index.css` by itself. +- `index-base.css`: This file mimics the `index.css` output, but does not include the `.spectrum` or `.spectrum--express` contexts. + + - If your product only requires the `.spectrum` context, you can use `index-base.css` plus `themes/spectrum-two.css` from the `themes` directory to render the default Spectrum visual language. + - The `.spectrum--express` context, on the other hand, is dependent on/expands on the default `.spectrum` context. This means if you only want to use the Express context, you still need to include `themes/spectrum-two.css`. In this case, we recommend using `index.css` instead since it includes both contexts by default. + - This approach can also be used when you have defined and written your own visual language and only need the base component styles from Spectrum CSS. To wire up your own visual language, you would need to define your own custom properties that match those defined in the `themes/*.css` assets. + +- `index-theme.css`: This file provides only the visual language for a component. It is used in conjunction with `index-base.css` and when loaded together, provides the same result as using `index.css` by itself. 1: Token-driven CSS properties are properties whose values are mapped to a value in the `@spectrum-css/tokens` package. These values represent design-language and are meant to be used across platforms. In contrast, properties specific to web-based implementations will not have a token value assigned, so not all CSS properties will use custom properties. @@ -94,7 +96,7 @@ Start by including the base set of variables: index-base.css and the spectrum theme from the themes directory. */ @import "node_modules/@spectrum-css/button/dist/index-base.css"; -@import "node_modules/@spectrum-css/button/dist/themes/spectrum.css"; +@import "node_modules/@spectrum-css/button/dist/themes/spectrum-two.css"; ``` Tokens values are mapped to context-specific classes which can be applied to the `` element or any place in your DOM where you wish to encapsulate or alter the visual language of your Spectrum components. @@ -102,24 +104,25 @@ Tokens values are mapped to context-specific classes which can be applied to the All contexts you want to use must be defined in order to load all the appropriate custom properties for the components you are using. #### Global variables + ##### Visual language -* `.spectrum` - The default visual language for Spectrum CSS -* `.spectrum--express` - A variant of the standard visual language. _This visual language will be deprecated in Spectrum 2_. +- `.spectrum` - The default visual language for Spectrum CSS +- `.spectrum--express` - A variant of the standard visual language. _This visual language will be deprecated in Spectrum 2_. ##### Scales Scales represent the browsing context of the user. They are used to adjust the size of components to improve readability and usability on different devices. -* `.spectrum--medium` - The default scale for Spectrum CSS, used for desktop and tablet devices -* `.spectrum--large` - A larger scale for Spectrum CSS, used for mobile devices and other small screens to create a more touch-friendly experience +- `.spectrum--medium` - The default scale for Spectrum CSS, used for desktop and tablet devices +- `.spectrum--large` - A larger scale for Spectrum CSS, used for mobile devices and other small screens to create a more touch-friendly experience ##### Themes (colorstops) Themes represent the color scheme of the user's browsing context. They are used to adjust the color of components to improve readability and usability in different environments. -* `.spectrum--light` - The default theme for Spectrum CSS, used for light mode -* `.spectrum--dark` - A darker theme for Spectrum CSS, used for dark mode +- `.spectrum--light` - The default theme for Spectrum CSS, used for light mode +- `.spectrum--dark` - A darker theme for Spectrum CSS, used for dark mode Other themes are available but are in the process of being deprecated and should not be used in new projects. @@ -134,7 +137,9 @@ Put together, we would define the context for our application in the following w To switch to Express, **add** the `.spectrum--express` class to the `` element: ```html - + ``` Note the `spectrum--express` class is added to the existing classes; `spectrum` should always be present to ensure the correct visual language is loaded. @@ -151,11 +156,11 @@ Some components require certain "UI icons" to render. These icons are released w Based on [which scales](https://github.com/adobe/spectrum-css?tab=readme-ov-file#scales) you'll be using, you can choose to load different files: -* `spectrum-css-icons.svg` - Both medium and large icons for responsive UIs that support both `.spectrum--medium` and `.spectrum--large` +- `spectrum-css-icons.svg` - Both medium and large icons for responsive UIs that support both `.spectrum--medium` and `.spectrum--large` -* `spectrum-css-icons-medium.svg` - Medium icons only, supports `.spectrum--medium` only +- `spectrum-css-icons-medium.svg` - Medium icons only, supports `.spectrum--medium` only -* `spectrum-css-icons-large.svg` - Large icons only, supports `.spectrum--large` only +- `spectrum-css-icons-large.svg` - Large icons only, supports `.spectrum--large` only **Note:** If you're using `spectrum-css-icons.svg`, be sure to add `.spectrum--medium` or `.spectrum--large` to the `` element, or you'll see both medium and large icons at once. @@ -187,11 +192,11 @@ For Arabic, a right-to-left language: We maintain a modern codebase that supports the latest two versions of evergreen web browsers. The current list of browsers officially supported by Spectrum CSS can be found in the browserslist section of the project's [package.json file](https://github.com/adobe/spectrum-css/blob/main/package.json). This setting is used by the build tools when the source files are built. If you require additional browser support for your project, the CSS can be processed further with your chosen tools. -* latest 2 Edge versions -* latest 2 Chrome versions -* latest 2 Firefox versions -* latest 2 Safari versions -* latest 2 iOS versions +- latest 2 Edge versions +- latest 2 Chrome versions +- latest 2 Firefox versions +- latest 2 Safari versions +- latest 2 iOS versions ### Optimizing Spectrum CSS @@ -199,7 +204,7 @@ Spectrum CSS is designed to be as modern and flexible as possible, and as such, ## Contributing -A very special thank you to all of our [contributors]() without whom this project would not be possible. +A very special thank you to all of our [contributors](https://github.com/adobe/spectrum-css/graphs/contributors) without whom this project would not be possible. Want to join the team? Check out the [contributing guidelines](.github/CONTRIBUTING.md) to get started. @@ -207,16 +212,16 @@ Want to join the team? Check out the [contributing guidelines](.github/CONTRIBUT The following tasks are available: -| Command | Description | Examples | -| --- | --- | --- | -| `clean` | Cleans all output files for the project and all components | `yarn clean` | -| `build` | Performs a build of all components | `yarn build` | -| `build:all` | Performs a build of all components, documentation site, and storybook | `yarn build:all` | -| `dev` | Performs a component build and serves the documentation on the default port (3000) | `yarn dev` | -| `compare` | This compares the current version of components with the previous versions published to NPM and output a list of all the changes that have been made. This is useful for reviewing changes before a release. The information is provided in the command-line output as well as in a simple web page that is opened in your default browser upon completion. The web page includes links to the visual diffs for each component when the file sizes have changed.
  • Components with no changes are not included in the output.
  • To run comparisons on one or multiple components, `compare` accepts a list of components as arguments. For example, `yarn compare button` will compare the current version of the button component with the previous version published to NPM. `yarn compare button checkbox` will compare the current version of the button and checkbox components with the previous versions published to NPM.
  • Named components should be space-separated.
  • Running `compare` with no inputs will automatically run against all packages.
| `yarn compare`
`yarn compare accordion`
`yarn compare accordion actionbutton` | -| `lint` | Provides helpful updates and warnings for a component's package.json file. This helps keep all components in alignment. Use `format` to automatically fix any issues that are found. To run on a single component, use `yarn linter accordion` (where `accordion` is the name of the component or components you want to lint). | `yarn lint`
`yarn linter accordion`
`yarn linter accordion actionbutton` | -| `format` | Provides helpful updates and warnings for a component's package.json file. This helps keep all components in alignment. To run on a single component, use `yarn formatter accordion` (where `accordion` is the name of the component or components you want to lint). | `yarn format`
`yarn formatter accordion`
`yarn formatter accordion actionbutton` | -| `refresh:env` | This copies values for the project's `.env` file (an asset never committed to the repo as it contains login secrets) by using the `.env.example` file as a template. This script is useful when you need to update the `.env` file with new values from the `.env.example` file or when you checkout or clean the repo and need to restore the `.env` file. | `yarn refresh:env` | +| Command | Description | Examples | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `clean` | Cleans all output files for the project and all components | `yarn clean` | +| `build` | Performs a build of all components | `yarn build` | +| `build:all` | Performs a build of all components, documentation site, and storybook | `yarn build:all` | +| `dev` | Performs a component build and serves the documentation on the default port (3000) | `yarn dev` | +| `compare` | This compares the current version of components with the previous versions published to NPM and output a list of all the changes that have been made. This is useful for reviewing changes before a release. The information is provided in the command-line output as well as in a simple web page that is opened in your default browser upon completion. The web page includes links to the visual diffs for each component when the file sizes have changed.
  • Components with no changes are not included in the output.
  • To run comparisons on one or multiple components, `compare` accepts a list of components as arguments. For example, `yarn compare button` will compare the current version of the button component with the previous version published to NPM. `yarn compare button checkbox` will compare the current version of the button and checkbox components with the previous versions published to NPM.
  • Named components should be space-separated.
  • Running `compare` with no inputs will automatically run against all packages.
| `yarn compare`
`yarn compare accordion`
`yarn compare accordion actionbutton` | +| `lint` | Provides helpful updates and warnings for a component's package.json file. This helps keep all components in alignment. Use `format` to automatically fix any issues that are found. To run on a single component, use `yarn linter accordion` (where `accordion` is the name of the component or components you want to lint). | `yarn lint`
`yarn linter accordion`
`yarn linter accordion actionbutton` | +| `format` | Provides helpful updates and warnings for a component's package.json file. This helps keep all components in alignment. To run on a single component, use `yarn formatter accordion` (where `accordion` is the name of the component or components you want to lint). | `yarn format`
`yarn formatter accordion`
`yarn formatter accordion actionbutton` | +| `refresh:env` | This copies values for the project's `.env` file (an asset never committed to the repo as it contains login secrets) by using the `.env.example` file as a template. This script is useful when you need to update the `.env` file with new values from the `.env.example` file or when you checkout or clean the repo and need to restore the `.env` file. | `yarn refresh:env` | ## Troubleshooting diff --git a/components/README.md b/components/README.md deleted file mode 100644 index 66c02f39375..00000000000 --- a/components/README.md +++ /dev/null @@ -1,74 +0,0 @@ -# Spectrum CSS Components - -The project is broken down into separate components for each component inside of the `components/` folder. - -Components are released on npm as `@spectrum-css/$COMPONENT`, where `$COMPONENT` corresponds to the folder name in this repository. - -## Component structure - -Each component has the following files: - -- `index.css` - The scale-specific styles for the component: dimensions, layout, etc (these change between scales) -- `metadata/*.yml` - The markup examples and documentation for the component; also makes additional examples possible that appear separately in the site navigation. -- `themes/*.css` - The theme-specific styles for the component. -- `stories/*.stories.js` and `stories/template.js` - The storybook assets for rendering components in the Storybook tool and eventually to be used for visual regression testing. - -## Editing an existing component - -1. Run `gulp dev` in the root of the project to begin developing. -2. Edit `components/$COMPONENT/index.css` with dimensions and color properties. The documentation will live reload with your changes. -3. Edit the markup examples within `components/$COMPONENT/metadata/*.yml`. The documentation will live reload with your changes. - -## 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 `@spectrum-css/component-builder-simple`, and most rely on `@spectrum-css/icon`. **Note: If you are working on a legacy component, it will dependend on `@spectrum-css/vars` and `@spectrum-css/component-builder` instead. This is expected.** -3. Once your folder has been generated, you can run `yarn dev` in the root of the project to begin developing. -4. The `index.css` file is where most of your styles will be added. -5. Inside the `stories` directory you will find a `template.js` and an `*.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. -6. Edit your `metadata/*.yml` to add markup examples for each of the variants of your component. - -Because we use scoped packages, before it can be published with Lerna, you must manually publish the new component as public: - -```shell -cd components/newcomponent -npm publish --access=public -``` - -## Component dependencies - -1. If your component requires another component in order to render, it should be declared in both `devDependencies` and `peerDependencies`. - 1. The version range included in `peerDependencies` must satisfy the version included in `devDependencies`. - 2. If a component appears in `peerDependencies`, it must also appear in `devDependencies`. - 3. This goes for every class used to render the component; even if the class comes from a component that's a dependency of another component you already have a dependency on. - 4. For instance, if your component requires a button with an icon inside of it, you must explicitly include both `icon` and `button` in both `devDependencies` and `peerDependencies`. -2. If your component has an example that uses another component, but the component isn't required to render your component, it should be declared in `devDependencies` only. - 1. For instance, if your component is commonly used with a table and includes an example where it is used with a table, but doesn't require table to render itself, you should declare `table` in `devDependencies` only. - -For example, `actionbar` gets its tokens from `vars`, and requires `button`, `checkbox`, `icon`, and `popover` to render, but also has an example where the component is used with a `table`. Its dependencies should be declared as follows: - -```json -{ - "name": "@spectrum-css/actionbar", - "peerDependencies": { - "@spectrum-css/button": ">=12, - "@spectrum-css/checkbox": ">=8", - "@spectrum-css/icon": ">=6", - "@spectrum-css/popover": ">=6", - "@spectrum-css/tokens": ">=13" - } -} -``` - -The release will error out if: - -1. A package is specified in `peerDependencies` that does not appear in `devDependencies` -2. The version of a package is specified in `devDependencies` satisfy the range defined for that package in `peerDependencies` - -## Releasing components - -Any change to a component or a component's dependencies will require a release of that component and all components that depend upon it. Component releases cannot be done ala carte and must be done from the top-level. - -See [Releasing](/README.md#Releasing) for more information. diff --git a/components/accordion/CHANGELOG.md b/components/accordion/CHANGELOG.md index c23037d3c9d..fea25acd95b 100644 --- a/components/accordion/CHANGELOG.md +++ b/components/accordion/CHANGELOG.md @@ -1,5 +1,186 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-237] accordion item border height set to 0 for non-first-child elements + +### Patch Changes + +- Updated dependencies [[`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.15 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.2.2 ### Patch Changes diff --git a/components/accordion/index.css b/components/accordion/index.css index d09fb4e2430..0f50d184492 100644 --- a/components/accordion/index.css +++ b/components/accordion/index.css @@ -11,161 +11,62 @@ * 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-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); - --spectrum-accordion-edge-to-disclosure-indicator-space: var(--spectrum-accordion-edge-to-disclosure-indicator); - --spectrum-accordion-edge-to-text-space: var(--spectrum-accordion-edge-to-text); - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-medium); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-medium); - --spectrum-accordion-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-accordion-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-accordion-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-accordion-item-content-area-top-to-content: var(--spectrum-accordion-content-area-top-to-content); - --spectrum-accordion-item-content-area-bottom-to-content: var(--spectrum-accordion-content-area-bottom-to-content); - --spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-75); - - /* Text header */ - --spectrum-accordion-item-header-font: var(--spectrum-sans-font-family-stack); - --spectrum-accordion-item-header-font-weight: var(--spectrum-bold-font-weight); - --spectrum-accordion-item-header-font-style: var(--spectrum-default-font-style); - --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-300); - --spectrum-accordion-item-header-line-height: 1.25; - - /* Text body */ - --spectrum-accordion-item-content-font: var(--spectrum-sans-font-family-stack); - --spectrum-accordion-item-content-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-accordion-item-content-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-accordion-item-content-font-size: var(--spectrum-body-size-s); - --spectrum-accordion-item-content-line-height: var(--spectrum-line-height-100); - - /* Colors */ - --spectrum-accordion-background-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default)); - --spectrum-accordion-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover)); - --spectrum-accordion-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down)); - --spectrum-accordion-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus)); - - /* Label */ - --spectrum-accordion-item-header-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-accordion-item-header-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-accordion-item-header-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-accordion-item-header-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-accordion-item-header-disabled-color: var(--spectrum-disabled-content-color); - --spectrum-accordion-item-content-disabled-color: var(--spectrum-disabled-content-color); - - /* Body */ - --spectrum-accordion-item-content-color: var(--spectrum-body-color); - - /* Focus indicator */ - --spectrum-accordion-focus-indicator-color: var(--spectrum-focus-indicator-color); - - /* Divider */ - --spectrum-accordion-divider-color: var(--spectrum-gray-300); + /** @note used for internal calculation on itemHeader and iconContainer */ --spectrum-accordion-min-block-size: max( var(--mod-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)))) ); - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } + display: block; + list-style: none; + padding: 0; + margin: 0; &:lang(ja), &:lang(zh), &:lang(ko) { - --spectrum-accordion-item-header-line-height: var(--spectrum-cjk-line-height-100); - --spectrum-accordion-item-content-line-height: var(--spectrum-cjk-line-height-100); - } -} - -.spectrum-Accordion--compact { - --spectrum-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-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-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-item-header-line-height: var(--spectrum-accordion-item-header-line-height-cjk); + --spectrum-accordion-item-content-line-height: var(--spectrum-accordion-item-content-line-height-cjk); } - &.spectrum-Accordion--sizeXL { - --spectrum-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); + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); } -} - -.spectrum-Accordion--spacious { - --spectrum-accordion-item-header-line-height: 1.278; - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-medium); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-medium); &.spectrum-Accordion--sizeS { - --spectrum-accordion-item-header-line-height: 1.25; - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-small-top-to-text-spacious); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-small); + --spectrum-accordion-item-height: var(--spectrum-accordion-item-height-size-s); + --spectrum-accordion-disclosure-indicator-height: var(--spectrum-accordion-disclosure-indicator-height-size-s); + --spectrum-accordion-component-edge-to-text: var(--spectrum-accordion-component-edge-to-text-size-s); + --spectrum-accordion-item-header-font-size: var(--spectrum-accordion-item-header-font-size-size-s); + --spectrum-accordion-item-content-font-size: var(--spectrum-accordion-item-content-font-size-size-s); + --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-item-header-top-to-text-space-size-s); + --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-item-header-bottom-to-text-space-size-s); } &.spectrum-Accordion--sizeL { - --spectrum-accordion-item-header-line-height: 1.273; - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-large); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-large); + --spectrum-accordion-item-height: var(--spectrum-accordion-item-height-size-l); + --spectrum-accordion-disclosure-indicator-height: var(--spectrum-accordion-disclosure-indicator-height-size-l); + --spectrum-accordion-component-edge-to-text: var(--spectrum-accordion-component-edge-to-text-size-l); + --spectrum-accordion-item-header-font-size: var(--spectrum-accordion-item-header-font-size-size-l); + --spectrum-accordion-item-content-font-size: var(--spectrum-accordion-item-content-font-size-size-l); + --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-item-header-top-to-text-space-size-l); + --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-item-header-bottom-to-text-space-size-l); } &.spectrum-Accordion--sizeXL { - --spectrum-accordion-item-header-line-height: 1.25; - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-extra-large); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-extra-large); + --spectrum-accordion-item-height: var(--spectrum-accordion-item-height-size-xl); + --spectrum-accordion-disclosure-indicator-height: var(--spectrum-accordion-disclosure-indicator-height-size-xl); + --spectrum-accordion-component-edge-to-text: var(--spectrum-accordion-component-edge-to-text-size-xl); + --spectrum-accordion-item-header-font-size: var(--spectrum-accordion-item-header-font-size-size-xl); + --spectrum-accordion-item-content-font-size: var(--spectrum-accordion-item-content-font-size-size-xl); + --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-item-header-top-to-text-space-size-xl); + --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-item-header-bottom-to-text-space-size-xl); } } -.spectrum-Accordion--sizeS { - --spectrum-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); - --spectrum-accordion-item-content-font-size: var(--spectrum-body-size-xs); - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-small); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-small); -} - -.spectrum-Accordion--sizeL { - --spectrum-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); - --spectrum-accordion-item-content-font-size: var(--spectrum-body-size-m); - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-large); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-large); -} - -.spectrum-Accordion--sizeXL { - --spectrum-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); - --spectrum-accordion-item-content-font-size: var(--spectrum-body-size-l); - --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-extra-large); - --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-extra-large); -} - -.spectrum-Accordion { - display: block; - list-style: none; - padding: 0; - margin: 0; -} - .spectrum-Accordion-item { z-index: inherit; position: relative; @@ -257,6 +158,7 @@ inset-inline-start: 0; } } + color: var(--mod-accordion-item-header-color-default, var(--spectrum-accordion-item-header-color-default)); background-color: var(--mod-accordion-background-color-default, var(--spectrum-accordion-background-color-default)); @@ -284,6 +186,7 @@ } } + .spectrum-Accordion-item { &.is-open { .spectrum-Accordion-itemHeader:hover { @@ -311,18 +214,6 @@ } } -@media (forced-colors: active) { - .spectrum-Accordion-itemHeader { - &::after { - /* make sure focus ring renders */ - forced-color-adjust: none; - content: ""; - position: absolute; - inset-inline-start: 0; - } - } -} - .spectrum-Accordion-item { &.is-open { > .spectrum-Accordion-itemHeading > .spectrum-Accordion-itemIconContainer > .spectrum-Accordion-itemIndicator, @@ -341,3 +232,15 @@ } } } + +@media (forced-colors: active) { + .spectrum-Accordion-itemHeader { + &::after { + /* make sure focus ring renders */ + forced-color-adjust: none; + content: ""; + position: absolute; + inset-inline-start: 0; + } + } +} diff --git a/components/accordion/metadata/accordion.yml b/components/accordion/metadata/accordion.yml deleted file mode 100644 index 7150257b720..00000000000 --- a/components/accordion/metadata/accordion.yml +++ /dev/null @@ -1,687 +0,0 @@ -name: Accordion -description: "While remaining backward compatible, the recommended markup has been updated to implement the [WAI-ARIA 1.1 Accordion design pattern](https://www.w3.org/TR/wai-aria-practices-1.1/#accordion) to better support accessibility for keyboard and screen reader users." - -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Accordion now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-Accordion--size*` class. - - ### Density - Accordion now supports density and requires that you specify one of the density type `compact` `regular` `spacious`. - -examples: - - id: accordion - name: Compact - S - markup: | - -
- - - - -
- - - id: accordion - name: Compact - M - markup: | - -
- - - - -
- - - id: accordion - name: Compact - L - markup: | - -
- - - - -
- - - id: accordion - name: Compact - XL - markup: | - -
- - - - -
- - - id: accordion - name: Regular - S - markup: | - -
- - - - -
- - - id: accordion - name: Regular - M - markup: | - -
- - - - -
- - - id: accordion - name: Regular - L - markup: | - -
- - - - -
- - - id: accordion - name: Regular - XL - markup: | - -
- - - - -
- - - id: accordion - name: Spacious - S - markup: | - -
- - - - -
- - - id: accordion - name: Spacious - M - markup: | - -
- - - - -
- - - id: accordion - name: Spacious - L - markup: | - -
- - - - -
- - - id: accordion - name: Spacious - XL - markup: | - -
- - - - -
diff --git a/components/accordion/metadata/metadata.json b/components/accordion/metadata/metadata.json index c08d3b41079..fa084f39b88 100644 --- a/components/accordion/metadata/metadata.json +++ b/components/accordion/metadata/metadata.json @@ -2,17 +2,6 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Accordion", - ".spectrum-Accordion--compact", - ".spectrum-Accordion--compact.spectrum-Accordion--sizeL", - ".spectrum-Accordion--compact.spectrum-Accordion--sizeS", - ".spectrum-Accordion--compact.spectrum-Accordion--sizeXL", - ".spectrum-Accordion--sizeL", - ".spectrum-Accordion--sizeS", - ".spectrum-Accordion--sizeXL", - ".spectrum-Accordion--spacious", - ".spectrum-Accordion--spacious.spectrum-Accordion--sizeL", - ".spectrum-Accordion--spacious.spectrum-Accordion--sizeS", - ".spectrum-Accordion--spacious.spectrum-Accordion--sizeXL", ".spectrum-Accordion-item", ".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemContent", ".spectrum-Accordion-item.is-disabled .spectrum-Accordion-itemHeader", @@ -36,6 +25,11 @@ ".spectrum-Accordion-itemHeading", ".spectrum-Accordion-itemIconContainer", ".spectrum-Accordion-itemIconContainer:dir(rtl)", + ".spectrum-Accordion.spectrum-Accordion--compact", + ".spectrum-Accordion.spectrum-Accordion--sizeL", + ".spectrum-Accordion.spectrum-Accordion--sizeS", + ".spectrum-Accordion.spectrum-Accordion--sizeXL", + ".spectrum-Accordion.spectrum-Accordion--spacious", ".spectrum-Accordion:dir(rtl)", ".spectrum-Accordion:lang(ja)", ".spectrum-Accordion:lang(ko)", @@ -102,10 +96,16 @@ "--spectrum-accordion-bottom-to-text-spacious-medium", "--spectrum-accordion-bottom-to-text-spacious-small", "--spectrum-accordion-component-edge-to-text", + "--spectrum-accordion-component-edge-to-text-size-l", + "--spectrum-accordion-component-edge-to-text-size-s", + "--spectrum-accordion-component-edge-to-text-size-xl", "--spectrum-accordion-content-area-bottom-to-content", "--spectrum-accordion-content-area-top-to-content", "--spectrum-accordion-corner-radius", "--spectrum-accordion-disclosure-indicator-height", + "--spectrum-accordion-disclosure-indicator-height-size-l", + "--spectrum-accordion-disclosure-indicator-height-size-s", + "--spectrum-accordion-disclosure-indicator-height-size-xl", "--spectrum-accordion-disclosure-indicator-to-text", "--spectrum-accordion-disclosure-indicator-to-text-space", "--spectrum-accordion-divider-color", @@ -122,10 +122,17 @@ "--spectrum-accordion-item-content-disabled-color", "--spectrum-accordion-item-content-font", "--spectrum-accordion-item-content-font-size", + "--spectrum-accordion-item-content-font-size-size-l", + "--spectrum-accordion-item-content-font-size-size-s", + "--spectrum-accordion-item-content-font-size-size-xl", "--spectrum-accordion-item-content-font-style", "--spectrum-accordion-item-content-font-weight", "--spectrum-accordion-item-content-line-height", + "--spectrum-accordion-item-content-line-height-cjk", "--spectrum-accordion-item-header-bottom-to-text-space", + "--spectrum-accordion-item-header-bottom-to-text-space-size-l", + "--spectrum-accordion-item-header-bottom-to-text-space-size-s", + "--spectrum-accordion-item-header-bottom-to-text-space-size-xl", "--spectrum-accordion-item-header-color-default", "--spectrum-accordion-item-header-color-down", "--spectrum-accordion-item-header-color-hover", @@ -133,11 +140,24 @@ "--spectrum-accordion-item-header-disabled-color", "--spectrum-accordion-item-header-font", "--spectrum-accordion-item-header-font-size", + "--spectrum-accordion-item-header-font-size-size-l", + "--spectrum-accordion-item-header-font-size-size-s", + "--spectrum-accordion-item-header-font-size-size-xl", "--spectrum-accordion-item-header-font-style", "--spectrum-accordion-item-header-font-weight", "--spectrum-accordion-item-header-line-height", + "--spectrum-accordion-item-header-line-height-cjk", + "--spectrum-accordion-item-header-line-height-size-l", + "--spectrum-accordion-item-header-line-height-size-s", + "--spectrum-accordion-item-header-line-height-size-xl", "--spectrum-accordion-item-header-top-to-text-space", + "--spectrum-accordion-item-header-top-to-text-space-size-l", + "--spectrum-accordion-item-header-top-to-text-space-size-s", + "--spectrum-accordion-item-header-top-to-text-space-size-xl", "--spectrum-accordion-item-height", + "--spectrum-accordion-item-height-size-l", + "--spectrum-accordion-item-height-size-s", + "--spectrum-accordion-item-height-size-xl", "--spectrum-accordion-item-width", "--spectrum-accordion-min-block-size", "--spectrum-accordion-minimum-width", @@ -188,7 +208,7 @@ "--spectrum-font-size-300", "--spectrum-font-size-500", "--spectrum-font-size-700", - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-gray-900-rgb", "--spectrum-line-height-100", "--spectrum-logical-rotation", diff --git a/components/accordion/package.json b/components/accordion/package.json index 6dcc011a503..44e8cf6e098 100644 --- a/components/accordion/package.json +++ b/components/accordion/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/accordion", - "version": "5.2.2", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS accordion component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/accordion/stories/template.js b/components/accordion/stories/template.js index 79fc3648bf3..8294f3a4027 100644 --- a/components/accordion/stories/template.js +++ b/components/accordion/stories/template.js @@ -7,6 +7,9 @@ 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/tokens/dist/css/express/custom-vars.css b/components/accordion/themes/express.css similarity index 89% rename from tokens/dist/css/express/custom-vars.css rename to components/accordion/themes/express.css index 17dc8b0cca4..b1f3d9e5ad7 100644 --- a/tokens/dist/css/express/custom-vars.css +++ b/components/accordion/themes/express.css @@ -11,6 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum--express{ - --system:express; -} + +/* @combine .spectrum.spectrum--express */ + +@import "./spectrum.css"; diff --git a/components/accordion/themes/spectrum-two.css b/components/accordion/themes/spectrum-two.css new file mode 100644 index 00000000000..3f70e07ac09 --- /dev/null +++ b/components/accordion/themes/spectrum-two.css @@ -0,0 +1,132 @@ +/*! + * 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 + * + * 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-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); + --spectrum-accordion-edge-to-disclosure-indicator-space: var(--spectrum-accordion-edge-to-disclosure-indicator); + --spectrum-accordion-edge-to-text-space: var(--spectrum-accordion-edge-to-text); + --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-medium); + --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-medium); + --spectrum-accordion-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-accordion-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-accordion-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-accordion-item-content-area-top-to-content: var(--spectrum-accordion-content-area-top-to-content); + --spectrum-accordion-item-content-area-bottom-to-content: var(--spectrum-accordion-content-area-bottom-to-content); + --spectrum-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-75); + + /* Text header */ + --spectrum-accordion-item-header-font: var(--spectrum-sans-font-family-stack); + --spectrum-accordion-item-header-font-weight: var(--spectrum-bold-font-weight); + --spectrum-accordion-item-header-font-style: var(--spectrum-default-font-style); + --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-300); + --spectrum-accordion-item-header-line-height: 1.25; + + /* Text body */ + --spectrum-accordion-item-content-font: var(--spectrum-sans-font-family-stack); + --spectrum-accordion-item-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-accordion-item-content-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-accordion-item-content-font-size: var(--spectrum-body-size-s); + --spectrum-accordion-item-content-line-height: var(--spectrum-line-height-100); + + /* Colors */ + --spectrum-accordion-background-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default)); + --spectrum-accordion-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover)); + --spectrum-accordion-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down)); + --spectrum-accordion-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus)); + + /* Label */ + --spectrum-accordion-item-header-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-accordion-item-header-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-accordion-item-header-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-accordion-item-header-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-accordion-item-header-disabled-color: var(--spectrum-disabled-content-color); + --spectrum-accordion-item-content-disabled-color: var(--spectrum-disabled-content-color); + + /* Body */ + --spectrum-accordion-item-content-color: var(--spectrum-body-color); + + /* Focus indicator */ + --spectrum-accordion-focus-indicator-color: var(--spectrum-focus-indicator-color); + + /* Divider */ + --spectrum-accordion-divider-color: var(--spectrum-gray-200); + + --spectrum-accordion-item-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --spectrum-accordion-item-content-line-height-cjk: var(--spectrum-cjk-line-height-100); + + --spectrum-accordion-item-height-size-s: var(--spectrum-component-height-100); + --spectrum-accordion-disclosure-indicator-height-size-s: var(--spectrum-component-height-75); + --spectrum-accordion-component-edge-to-text-size-s: var(--spectrum-component-edge-to-text-50); + --spectrum-accordion-item-header-font-size-size-s: var(--spectrum-font-size-200); + --spectrum-accordion-item-content-font-size-size-s: var(--spectrum-body-size-xs); + --spectrum-accordion-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-regular-small); + --spectrum-accordion-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-regular-small); + + --spectrum-accordion-item-height-size-l: var(--spectrum-component-height-300); + --spectrum-accordion-disclosure-indicator-height-size-l: var(--spectrum-component-height-200); + --spectrum-accordion-component-edge-to-text-size-l: var(--spectrum-component-edge-to-text-100); + --spectrum-accordion-item-header-font-size-size-l: var(--spectrum-font-size-500); + --spectrum-accordion-item-content-font-size-size-l: var(--spectrum-body-size-m); + --spectrum-accordion-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-regular-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-regular-large); + + --spectrum-accordion-item-height-size-xl: var(--spectrum-component-height-400); + --spectrum-accordion-disclosure-indicator-height-size-xl: var(--spectrum-component-height-300); + --spectrum-accordion-component-edge-to-text-size-xl: var(--spectrum-component-edge-to-text-200); + --spectrum-accordion-item-header-font-size-size-xl: var(--spectrum-font-size-700); + --spectrum-accordion-item-content-font-size-size-xl: var(--spectrum-body-size-l); + --spectrum-accordion-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-regular-extra-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-regular-extra-large); + + &.spectrum-Accordion--compact { + --spectrum-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-item-height-size-s: var(--spectrum-component-height-75); + --spectrum-accordion-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-compact-small); + --spectrum-accordion-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-compact-small); + + --spectrum-accordion-item-height-size-l: var(--spectrum-component-height-200); + --spectrum-accordion-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-compact-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-compact-large); + + --spectrum-accordion-item-height-size-xl: var(--spectrum-component-height-300); + --spectrum-accordion-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-compact-extra-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-compact-extra-large); + } + + &.spectrum-Accordion--spacious { + --spectrum-accordion-item-header-line-height: 1.278; + --spectrum-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-medium); + --spectrum-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-medium); + + --spectrum-accordion-item-header-line-height-size-l: 1.273; + --spectrum-accordion-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-spacious-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-spacious-large); + + --spectrum-accordion-item-header-line-height-size-xl: 1.25; + --spectrum-accordion-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-spacious-extra-large); + --spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-spacious-extra-large); + + --spectrum-accordion-item-header-line-height-size-s: 1.25; + --spectrum-accordion-item-header-top-to-text-space-size-s: var(--spectrum-accordion-small-top-to-text-spacious); + --spectrum-accordion-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-spacious-small); + } + } +} diff --git a/components/accordion/themes/spectrum.css b/components/accordion/themes/spectrum.css new file mode 100644 index 00000000000..629252ea079 --- /dev/null +++ b/components/accordion/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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 { + /* Divider */ + --spectrum-accordion-divider-color: var(--spectrum-gray-300); + } +} diff --git a/components/actionbar/CHANGELOG.md b/components/actionbar/CHANGELOG.md index 93dcbf109a5..6a2226d33ee 100644 --- a/components/actionbar/CHANGELOG.md +++ b/components/actionbar/CHANGELOG.md @@ -1,5 +1,223 @@ # Change Log +## 9.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.13 + - @spectrum-css/closebutton@6.0.0-s2-foundations.14 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.13 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 9.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`7eb68bb`](https://github.com/adobe/spectrum-css/commit/7eb68bb0091195d151f2406a983b0a4caadf66a9) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-233] Moves inset-inline-start and inset-inline-end to sticky variant to fix issue with fixed actionbar unexpectedly taking up full width + +## 9.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.12 + - @spectrum-css/closebutton@6.0.0-s2-foundations.12 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 9.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.11 + - @spectrum-css/closebutton@6.0.0-s2-foundations.11 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.11 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 9.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.10 + - @spectrum-css/closebutton@6.0.0-s2-foundations.10 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 9.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.9 + - @spectrum-css/closebutton@6.0.0-s2-foundations.9 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 9.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.8 + - @spectrum-css/closebutton@6.0.0-s2-foundations.8 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 9.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.7 + - @spectrum-css/closebutton@6.0.0-s2-foundations.7 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 9.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actiongroup@6.0.0-s2-foundations.6 + - @spectrum-css/closebutton@6.0.0-s2-foundations.6 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + +## 9.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.5 + - @spectrum-css/closebutton@6.0.0-s2-foundations.5 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 9.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.4 + - @spectrum-css/closebutton@6.0.0-s2-foundations.4 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 9.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.3 + - @spectrum-css/closebutton@6.0.0-s2-foundations.3 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 9.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.2 + - @spectrum-css/closebutton@6.0.0-s2-foundations.2 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 9.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.1 + - @spectrum-css/closebutton@6.0.0-s2-foundations.1 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 9.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actiongroup@6.0.0-s2-foundations.0 + - @spectrum-css/closebutton@6.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.0 + ## 8.1.3 ### Patch Changes diff --git a/components/actionbar/index.css b/components/actionbar/index.css index 42b3b643ee6..2c32111154a 100644 --- a/components/actionbar/index.css +++ b/components/actionbar/index.css @@ -11,52 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-ActionBar { - --spectrum-actionbar-height: var(--spectrum-action-bar-height); - --spectrum-actionbar-corner-radius: var(--spectrum-corner-radius-100); - - /* item counter field label */ - --spectrum-actionbar-item-counter-font-size: var(--spectrum-font-size-100); - --spectrum-actionbar-item-counter-line-height: var(--spectrum-line-height-100); - --spectrum-actionbar-item-counter-color: var(--spectrum-neutral-content-color-default); - - /* cjk language support for item counter */ - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-actionbar-item-counter-line-height-cjk: var(--spectrum-cjk-line-height-100); - } - - /* colors - applied to popover */ - --spectrum-actionbar-popover-background-color: var(--spectrum-gray-50); - --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); - - /* emphasized variation colors */ - --spectrum-actionbar-emphasized-background-color: var(--spectrum-informative-background-color-default); - --spectrum-actionbar-emphasized-item-counter-color: var(--spectrum-white); - - /* spacing of action bar bottom and horizontal outer edge */ - --spectrum-actionbar-spacing-outer-edge: var(--spectrum-spacing-300); - - /* spacing of close button */ - --spectrum-actionbar-spacing-close-button-top: var(--spectrum-spacing-100); - --spectrum-actionbar-spacing-close-button-start: var(--spectrum-spacing-100); - --spectrum-actionbar-spacing-close-button-end: var(--spectrum-spacing-75); - - /* spacing of item counter field label */ - --spectrum-actionbar-spacing-item-counter-top: var(--spectrum-action-bar-top-to-item-counter); - --spectrum-actionbar-spacing-item-counter-end: var(--spectrum-spacing-400); - - /* spacing of action group */ - --spectrum-actionbar-spacing-action-group-top: var(--spectrum-spacing-100); - --spectrum-actionbar-spacing-action-group-end: var(--spectrum-spacing-100); - - /* drop shadow */ - --spectrum-actionbar-shadow-horizontal: var(--spectrum-drop-shadow-x); - --spectrum-actionbar-shadow-vertical: var(--spectrum-drop-shadow-y); - --spectrum-actionbar-shadow-blur: var(--spectrum-drop-shadow-blur); - --spectrum-actionbar-shadow-color: var(--spectrum-drop-shadow-color); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { diff --git a/components/actionbar/metadata/actionbar.yml b/components/actionbar/metadata/actionbar.yml deleted file mode 100644 index e92113541b9..00000000000 --- a/components/actionbar/metadata/actionbar.yml +++ /dev/null @@ -1,297 +0,0 @@ -name: Action bar -description: Floating Action bar that appears in selection mode. -SpectrumSiteSlug: https://spectrum.adobe.com/page/action-bar/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Popover Dependency - Action bar requires Popover, which is nested within Action bar. Action bar background, border, and corner radius are applied to the nested Popover component and can be overriden by Action bar. - - ### Action bar close button - Checkbox has been replaced by Close button. - - ### Item counter - Item counter has replaced the checkbox field label. Item counter is a Field Label component. - - ### New Action button markup - Action button requires `.spectrum-ActionButton-icon` class on icons nested inside of Action button. - - Emphasized Action bar requires `.spectrum-ActionButton-staticWhite` class on Action button. - - ### New ActionGroup markup - Action bar now uses the new ActionGroup markup. Replace `.spectrum-ButtonGroup` with `.spectrum-ActionGroup` and apply `.spectrum-ActionGroup-item` to each action button. See the [Action Group](actiongroup.html) for more information. - - ### Change workflow icon size to medium - If you use icon action button in your markup, please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - -examples: - - id: actionbar - name: Standard - description: Standard Action bars fill the width of their container. - markup: | -
-
- - - - -
- - - -
-
-
- -
-
- - - - -
- - - -
-
-
- -
-
- - - - -
- - - -
-
-
- - - id: actionbar-emphasized - name: Emphasized - description: Emphasized Action bar. - markup: | -
-
- - - - -
- - - -
-
-
- - -
-
- - - - -
- - - -
-
-
- - -
-
- - - - -
- - - -
-
-
- - - id: actionbar-flexible - name: Flexible - description: Flexible Action bars fit the width of their content. - markup: | -
-
- - - - -
- - -
-
-
- - - id: actionbar-sticky - name: Sticky - description: - This example shows how the sticky Action bar looks within a scrollable element. Please see usage section of the guidelines - for more information about using Action bar with underlying content. - markup: | -
-

Scroll down to view sticky behavior

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim - ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in - reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt - in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod - tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut - aliquip ex ea commodo consequat. -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim - ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in - reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. -

-
-
- - - - -
- - - -
-
-
-
diff --git a/components/actionbar/metadata/metadata.json b/components/actionbar/metadata/metadata.json index 2da94885776..cbb96539325 100644 --- a/components/actionbar/metadata/metadata.json +++ b/components/actionbar/metadata/metadata.json @@ -14,10 +14,7 @@ ".spectrum-ActionBar--fixed", ".spectrum-ActionBar--flexible .spectrum-ActionBar-popover", ".spectrum-ActionBar--sticky", - ".spectrum-ActionBar.is-open", - ".spectrum-ActionBar:lang(ja)", - ".spectrum-ActionBar:lang(ko)", - ".spectrum-ActionBar:lang(zh)" + ".spectrum-ActionBar.is-open" ], "modifiers": [ "--mod-actionbar-corner-radius", @@ -77,8 +74,8 @@ "--spectrum-drop-shadow-x", "--spectrum-drop-shadow-y", "--spectrum-font-size-100", + "--spectrum-gray-25", "--spectrum-gray-400", - "--spectrum-gray-50", "--spectrum-informative-background-color-default", "--spectrum-line-height-100", "--spectrum-neutral-content-color-default", diff --git a/components/actionbar/package.json b/components/actionbar/package.json index 541a44fecc6..494f8a2dac2 100644 --- a/components/actionbar/package.json +++ b/components/actionbar/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/actionbar", - "version": "8.1.3", + "version": "9.0.0-s2-foundations.14", "description": "The Spectrum CSS actionbar component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/actionbar/stories/template.js b/components/actionbar/stories/template.js index 55b864933af..b6829a6b6e3 100644 --- a/components/actionbar/stories/template.js +++ b/components/actionbar/stories/template.js @@ -5,8 +5,12 @@ import { Template as Popover } from "@spectrum-css/popover/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.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 = ({ rootClass = "spectrum-ActionBar", @@ -24,8 +28,7 @@ export const Template = ({
+ * + * 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 { + --spectrum-actionbar-height: var(--spectrum-action-bar-height); + --spectrum-actionbar-corner-radius: var(--spectrum-corner-radius-100); + + /* item counter field label */ + --spectrum-actionbar-item-counter-font-size: var(--spectrum-font-size-100); + --spectrum-actionbar-item-counter-line-height: var(--spectrum-line-height-100); + --spectrum-actionbar-item-counter-color: var(--spectrum-neutral-content-color-default); + + /* cjk language support for item counter */ + --spectrum-actionbar-item-counter-line-height-cjk: var(--spectrum-cjk-line-height-100); + + /* colors - applied to popover */ + --spectrum-actionbar-popover-background-color: var(--spectrum-gray-25); + --spectrum-actionbar-popover-border-color: var(--spectrum-gray-400); + + /* emphasized variation colors */ + --spectrum-actionbar-emphasized-background-color: var(--spectrum-informative-background-color-default); + --spectrum-actionbar-emphasized-item-counter-color: var(--spectrum-white); + + /* spacing of action bar bottom and horizontal outer edge */ + --spectrum-actionbar-spacing-outer-edge: var(--spectrum-spacing-300); + + /* spacing of close button */ + --spectrum-actionbar-spacing-close-button-top: var(--spectrum-spacing-100); + --spectrum-actionbar-spacing-close-button-start: var(--spectrum-spacing-100); + --spectrum-actionbar-spacing-close-button-end: var(--spectrum-spacing-75); + + /* spacing of item counter field label */ + --spectrum-actionbar-spacing-item-counter-top: var(--spectrum-action-bar-top-to-item-counter); + --spectrum-actionbar-spacing-item-counter-end: var(--spectrum-spacing-400); + + /* spacing of action group */ + --spectrum-actionbar-spacing-action-group-top: var(--spectrum-spacing-100); + --spectrum-actionbar-spacing-action-group-end: var(--spectrum-spacing-100); + + /* drop shadow */ + --spectrum-actionbar-shadow-horizontal: var(--spectrum-drop-shadow-x); + --spectrum-actionbar-shadow-vertical: var(--spectrum-drop-shadow-y); + --spectrum-actionbar-shadow-blur: var(--spectrum-drop-shadow-blur); + --spectrum-actionbar-shadow-color: var(--spectrum-drop-shadow-color); + } +} diff --git a/components/actionbar/themes/spectrum.css b/components/actionbar/themes/spectrum.css new file mode 100644 index 00000000000..352696f6682 --- /dev/null +++ b/components/actionbar/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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 3daaff6669c..367518f4ec2 100644 --- a/components/actionbutton/CHANGELOG.md +++ b/components/actionbutton/CHANGELOG.md @@ -1,5 +1,233 @@ # Change Log +## 7.0.0-s2-foundations.19 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0) Thanks [@pfulton](https://github.com/pfulton)! - ActionButton: + + - Correct --spectrum-actionbutton-background-color-selected-disabled to be --spectrum-actionbutton-(background|border)-color-disabled-selected + + Combobox: + + - Move --spectrum-combobox-min-inline-size and --spectrum-combobox-button-width to the index.css + + FieldGroup: + + - Swap gap back to margin-inline-end on FieldGroup + + Typography: + + - Remap body size to xs if xxs provided + +## 7.0.0-s2-foundations.18 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.17 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`1252094`](https://github.com/adobe/spectrum-css/commit/1252094e476eb60b51d33c3ec574b843b005ef82) Thanks [@pfulton](https://github.com/pfulton)! - Right-side padding fix + +## 7.0.0-s2-foundations.16 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`f15243a`](https://github.com/adobe/spectrum-css/commit/f15243adaa633531e82edbb61b2e4444517af64e) Thanks [@pfulton](https://github.com/pfulton)! - fix(actionbutton): migrate --mods to index.css + +## 7.0.0-s2-foundations.15 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0e08995`](https://github.com/adobe/spectrum-css/commit/0e08995cfd43f7d4495df4e3403106ced7760381) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-248]: Selected, static black actionbutton content color should be white, not black + +## 7.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-248] Action button selected static black state overrides not working + +### Patch Changes + +- Updated dependencies [[`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.15 + +## 7.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.12 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.11 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4265d20`](https://github.com/adobe/spectrum-css/commit/4265d208b6eb2db923e558fca100b4532b964e45) Thanks [@pfulton](https://github.com/pfulton)! - Fix unsupported variables created in components/actionbutton/themes/spectrum.css + +- Updated dependencies [[`4265d20`](https://github.com/adobe/spectrum-css/commit/4265d208b6eb2db923e558fca100b4532b964e45)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.11 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/actionbutton/index.css b/components/actionbutton/index.css index 8ff9e6121f3..70c27c9e673 100644 --- a/components/actionbutton/index.css +++ b/components/actionbutton/index.css @@ -12,116 +12,7 @@ */ @import "@spectrum-css/commons/basebutton.css"; -@import "./themes/express.css"; - -.spectrum-ActionButton { - --spectrum-actionbutton-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-actionbutton-border-radius: var(--spectrum-corner-radius-100); - --spectrum-actionbutton-border-width: var(--spectrum-border-width-100); - - --spectrum-actionbutton-content-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-actionbutton-content-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-actionbutton-content-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-actionbutton-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-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-focus-indicator-border-radius: calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap)); - - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } - - &.is-selected { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-default-selected, var(--spectrum-neutral-background-color-selected-default)); - --mod-actionbutton-background-color-hover: var(--mod-actionbutton-background-color-hover-selected, var(--spectrum-neutral-background-color-selected-hover)); - --mod-actionbutton-background-color-down: var(--mod-actionbutton-background-color-down-selected, var(--spectrum-neutral-background-color-selected-down)); - --mod-actionbutton-background-color-focus: var(--mod-actionbutton-background-color-focus-selected, var(--spectrum-neutral-background-color-selected-key-focus)); - - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-default-selected, var(--spectrum-gray-50)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-content-color-hover-selected, var(--spectrum-gray-50)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-content-color-down-selected, var(--spectrum-gray-50)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-content-color-focus-selected, var(--spectrum-gray-50)); - - &.spectrum-ActionButton--emphasized { - --mod-actionbutton-background-color-default: var(--mod-actionbutton-background-color-default-selected-emphasized, var(--spectrum-accent-background-color-default)); - --mod-actionbutton-background-color-hover: var(--mod-actionbutton-background-color-hover-selected-emphasized, var(--spectrum-accent-background-color-hover)); - --mod-actionbutton-background-color-down: var(--mod-actionbutton-background-color-down-selected-emphasized, var(--spectrum-accent-background-color-down)); - --mod-actionbutton-background-color-focus: var(--mod-actionbutton-background-color-focus-selected-emphasized, var(--spectrum-accent-background-color-key-focus)); - - --mod-actionbutton-content-color-default: var(--mod-actionbutton-content-color-default-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-content-color-hover-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-content-color-down-selected-emphasized, var(--spectrum-white)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-content-color-focus-selected-emphasized, var(--spectrum-white)); - } - } -} - -.spectrum-ActionButton--sizeXS { - --spectrum-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(--spectrum-action-button-edge-to-hold-icon-extra-small); - --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-component-edge-to-visual-50) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-component-edge-to-text-50) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width)); -} - -.spectrum-ActionButton--sizeS { - --spectrum-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(--spectrum-action-button-edge-to-hold-icon-small); - --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-component-edge-to-visual-75) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-component-edge-to-text-75) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width)); -} - -.spectrum-ActionButton--sizeM { - --spectrum-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-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(--spectrum-action-button-edge-to-hold-icon-medium); - --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-component-edge-to-visual-100) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-component-edge-to-text-100) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width)); -} - -.spectrum-ActionButton--sizeL { - --spectrum-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(--spectrum-action-button-edge-to-hold-icon-large); - --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-component-edge-to-visual-200) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-component-edge-to-text-200) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width)); -} - -.spectrum-ActionButton--sizeXL { - --spectrum-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(--spectrum-action-button-edge-to-hold-icon-extra-large); - --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-component-edge-to-visual-300) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-component-edge-to-text-300) - var(--spectrum-actionbutton-border-width)); - --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width)); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-ActionButton { @@ -165,6 +56,13 @@ .spectrum-ActionButton { @extend %spectrum-BaseButton; + + --spectrum-actionbutton-focus-indicator-border-radius: calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap)); + + --spectrum-actionbutton-edge-to-visual: calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width)); + --spectrum-actionbutton-edge-to-text: calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width)); + --spectrum-actionbutton-edge-to-visual-only: calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width)); + position: relative; min-inline-size: var(--mod-actionbutton-min-width, var(--spectrum-actionbutton-min-width)); @@ -182,6 +80,29 @@ border-color: var(--highcontrast-actionbutton-border-color-default, var(--mod-actionbutton-border-color-default, var(--spectrum-actionbutton-border-color-default))); color: var(--highcontrast-actionbutton-content-color-default, var(--mod-actionbutton-content-color-default, var(--spectrum-actionbutton-content-color-default))); + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); + } + + &.is-selected { + --mod-actionbutton-border-color-default: var(--spectrum-actionbutton-border-color-default-selected); + --mod-actionbutton-border-color-hover: var(--spectrum-actionbutton-border-color-hover-selected); + --mod-actionbutton-border-color-down: var(--spectrum-actionbutton-border-color-down-selected); + --mod-actionbutton-border-color-focus: var(--spectrum-actionbutton-border-color-focus-selected); + --mod-actionbutton-border-color-disabled: var(--spectrum-actionbutton-border-color-disabled-selected); + + --mod-actionbutton-background-color-default: var(--spectrum-actionbutton-background-color-default-selected); + --mod-actionbutton-background-color-hover: var(--spectrum-actionbutton-background-color-hover-selected); + --mod-actionbutton-background-color-down: var(--spectrum-actionbutton-background-color-down-selected); + --mod-actionbutton-background-color-focus: var(--spectrum-actionbutton-background-color-focus-selected); + --mod-actionbutton-background-color-disabled: var(--spectrum-actionbutton-background-color-disabled-selected); + + --mod-actionbutton-content-color-default: var(--spectrum-actionbutton-content-color-default-selected); + --mod-actionbutton-content-color-hover: var(--spectrum-actionbutton-content-color-hover-selected); + --mod-actionbutton-content-color-down: var(--spectrum-actionbutton-content-color-down-selected); + --mod-actionbutton-content-color-focus: var(--spectrum-actionbutton-content-color-focus-selected); + } + &:hover { background-color: var(--highcontrast-actionbutton-background-color-hover, var(--mod-actionbutton-background-color-hover, var(--spectrum-actionbutton-background-color-hover))); border-color: var(--highcontrast-actionbutton-border-color-hover, var(--mod-actionbutton-border-color-hover, var(--spectrum-actionbutton-border-color-hover))); diff --git a/components/actionbutton/metadata/actionbutton.yml b/components/actionbutton/metadata/actionbutton.yml deleted file mode 100644 index acc03b5be7c..00000000000 --- a/components/actionbutton/metadata/actionbutton.yml +++ /dev/null @@ -1,1264 +0,0 @@ -name: Action button -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/action-button/ -description: | - - For Action Buttons that only contain an icon with no label, do not include the element with the `.spectrum-ActionButton-label` class in the markup - - If an icon and a label are both used, ensure that the element with the `.spectrum-ActionButton-label` class comes after the `.spectrum-Icon` element. - - If the hold icon is used, ensure that the element with the `.spectrum-ActionButton-hold` class comes before the `.spectrum-Icon` element. - - When using `.spectrum-ActionButton--staticWhite` or `.spectrum-ActionButton--staticblack`, use the `--mod-actionbutton-content-color-default` custom property to set the text color when selected. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Action Button now requires a class on its icon - The `.spectrum-ActionButton-icon` class is now required on the icon. - - ### T-shirt sizing - Action Button now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-ActionButton--size*` class. - - ### Action Button is now a separate component - Action Button has been moved to the [Action Button](actionbutton.html) component. - - ### Change workflow icon size - - Previously, all Action Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Action button classname | Workflow icon classname | - | -------------------------------- | --------------------------------- | - | `.spectrum-ActionButton--sizeXS` | `.spectrum-Icon--sizeXS` | - | `.spectrum-ActionButton--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-ActionButton--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-ActionButton--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-ActionButton--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Change hold icon classnames - - Hold icon classnames must be set as follows: - - | Action button classname | Hold icon classname | - | -------------------------------- | ------------------------------------ | - | `.spectrum-ActionButton--sizeXS` | `.spectrum-UIIcon-CornerTriangle50` | - | `.spectrum-ActionButton--sizeS` | `.spectrum-UIIcon-CornerTriangle75` | - | `.spectrum-ActionButton--sizeM` | `.spectrum-UIIcon-CornerTriangle100` | - | `.spectrum-ActionButton--sizeL` | `.spectrum-UIIcon-CornerTriangle200` | - | `.spectrum-ActionButton--sizeXL` | `.spectrum-UIIcon-CornerTriangle300` | - - ### Include markup for hold icon before workflow icon - Because of the way padding is calculated, the hold icon must be placed before the workflow icon. - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: actionbutton-sizing - name: Sizing - markup: | -
-
-

XS

- -
- - - - - - - -
-
-
-

S

- -
- - - - - - - -
-
-
-

M (default)

- -
- - - - - - - -
-
- -
-

L

- -
- - - - - - - -
-
- -
-

XL

- -
- - - - - - - -
-
-
- - - id: actionbutton-standard - name: Standard - markup: | -
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
- - - id: actionbutton-quiet - name: Quiet - description: The Quiet Action Button should be used where you previously used the [deprecated Tool component](tool.html). - markup: | -
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
- - - id: actionbutton-emphasized - name: Emphasized - markup: | -
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
- - - id: actionbutton-emphasized-quiet - name: Emphasized (quiet) - markup: | -
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
- - - id: actionbutton-staticwhite - name: Static White - markup: | -
-
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
-
- - - id: actionbutton-staticblack - name: Static Black - markup: | -
-
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
-
- - - id: actionbutton-staticwhite-quiet - name: Static White (quiet) - markup: | -
-
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
-
- - - id: actionbutton-staticblack-quiet - name: Static Black (quiet) - markup: | -
-
-
-

Default

- -
- - - - - - - -
-
-
-

Selected

- -
- - - - - - - -
-
-
-

Disabled

- -
- - - - - - - -
-
-
-

Selected + Disabled

- -
- - - - - - - -
-
-
-
diff --git a/components/actionbutton/metadata/metadata.json b/components/actionbutton/metadata/metadata.json index ad24ea1b5b6..bc84ddd6198 100644 --- a/components/actionbutton/metadata/metadata.json +++ b/components/actionbutton/metadata/metadata.json @@ -2,11 +2,6 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-ActionButton", - ".spectrum-ActionButton--sizeL", - ".spectrum-ActionButton--sizeM", - ".spectrum-ActionButton--sizeS", - ".spectrum-ActionButton--sizeXL", - ".spectrum-ActionButton--sizeXS", ".spectrum-ActionButton-hold", ".spectrum-ActionButton-hold + .spectrum-ActionButton-icon", ".spectrum-ActionButton-icon", @@ -18,13 +13,18 @@ ".spectrum-ActionButton.is-selected .spectrum-ActionButton-hold", ".spectrum-ActionButton.is-selected .spectrum-ActionButton-icon", ".spectrum-ActionButton.is-selected .spectrum-ActionButton-label", - ".spectrum-ActionButton.is-selected.spectrum-ActionButton--emphasized", + ".spectrum-ActionButton.spectrum-ActionButton--emphasized", ".spectrum-ActionButton.spectrum-ActionButton--quiet", + ".spectrum-ActionButton.spectrum-ActionButton--sizeL", + ".spectrum-ActionButton.spectrum-ActionButton--sizeM", + ".spectrum-ActionButton.spectrum-ActionButton--sizeS", + ".spectrum-ActionButton.spectrum-ActionButton--sizeXL", + ".spectrum-ActionButton.spectrum-ActionButton--sizeXS", ".spectrum-ActionButton.spectrum-ActionButton--staticBlack", - ".spectrum-ActionButton.spectrum-ActionButton--staticBlack.is-selected", + ".spectrum-ActionButton.spectrum-ActionButton--staticBlack.spectrum-ActionButton--emphasized", ".spectrum-ActionButton.spectrum-ActionButton--staticBlack.spectrum-ActionButton--quiet", ".spectrum-ActionButton.spectrum-ActionButton--staticWhite", - ".spectrum-ActionButton.spectrum-ActionButton--staticWhite.is-selected", + ".spectrum-ActionButton.spectrum-ActionButton--staticWhite.spectrum-ActionButton--emphasized", ".spectrum-ActionButton.spectrum-ActionButton--staticWhite.spectrum-ActionButton--quiet", ".spectrum-ActionButton::-moz-focus-inner", ".spectrum-ActionButton:active", @@ -41,18 +41,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", @@ -61,18 +53,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", @@ -86,7 +70,6 @@ "--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", @@ -100,26 +83,44 @@ "--spectrum-action-button-edge-to-hold-icon-small", "--spectrum-actionbutton-animation-duration", "--spectrum-actionbutton-background-color-default", + "--spectrum-actionbutton-background-color-default-selected", "--spectrum-actionbutton-background-color-disabled", + "--spectrum-actionbutton-background-color-disabled-selected", "--spectrum-actionbutton-background-color-down", + "--spectrum-actionbutton-background-color-down-selected", "--spectrum-actionbutton-background-color-focus", + "--spectrum-actionbutton-background-color-focus-selected", "--spectrum-actionbutton-background-color-hover", + "--spectrum-actionbutton-background-color-hover-selected", "--spectrum-actionbutton-border-color-default", + "--spectrum-actionbutton-border-color-default-selected", "--spectrum-actionbutton-border-color-disabled", + "--spectrum-actionbutton-border-color-disabled-selected", "--spectrum-actionbutton-border-color-down", + "--spectrum-actionbutton-border-color-down-selected", "--spectrum-actionbutton-border-color-focus", + "--spectrum-actionbutton-border-color-focus-selected", "--spectrum-actionbutton-border-color-hover", + "--spectrum-actionbutton-border-color-hover-selected", "--spectrum-actionbutton-border-radius", "--spectrum-actionbutton-border-width", "--spectrum-actionbutton-content-color-default", + "--spectrum-actionbutton-content-color-default-selected", "--spectrum-actionbutton-content-color-disabled", "--spectrum-actionbutton-content-color-down", + "--spectrum-actionbutton-content-color-down-selected", "--spectrum-actionbutton-content-color-focus", + "--spectrum-actionbutton-content-color-focus-selected", "--spectrum-actionbutton-content-color-hover", + "--spectrum-actionbutton-content-color-hover-selected", + "--spectrum-actionbutton-content-color-selected", "--spectrum-actionbutton-edge-to-hold-icon", "--spectrum-actionbutton-edge-to-text", + "--spectrum-actionbutton-edge-to-text-size", "--spectrum-actionbutton-edge-to-visual", "--spectrum-actionbutton-edge-to-visual-only", + "--spectrum-actionbutton-edge-to-visual-only-size", + "--spectrum-actionbutton-edge-to-visual-size", "--spectrum-actionbutton-focus-indicator-border-radius", "--spectrum-actionbutton-focus-indicator-color", "--spectrum-actionbutton-focus-indicator-gap", @@ -162,10 +163,8 @@ "--spectrum-disabled-background-color", "--spectrum-disabled-border-color", "--spectrum-disabled-content-color", - "--spectrum-disabled-static-black-background-color", "--spectrum-disabled-static-black-border-color", "--spectrum-disabled-static-black-content-color", - "--spectrum-disabled-static-white-background-color", "--spectrum-disabled-static-white-border-color", "--spectrum-disabled-static-white-content-color", "--spectrum-focus-indicator-color", @@ -176,13 +175,13 @@ "--spectrum-font-size-300", "--spectrum-font-size-50", "--spectrum-font-size-75", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", "--spectrum-gray-400", "--spectrum-gray-50", "--spectrum-gray-500", "--spectrum-gray-600", - "--spectrum-gray-75", + "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-logical-rotation", "--spectrum-neutral-background-color-selected-default", @@ -201,19 +200,19 @@ "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-50", "--spectrum-text-to-visual-75", - "--spectrum-transparent-black-200", + "--spectrum-transparent-black-1000", "--spectrum-transparent-black-300", "--spectrum-transparent-black-400", "--spectrum-transparent-black-500", "--spectrum-transparent-black-600", - "--spectrum-transparent-black-800", + "--spectrum-transparent-black-700", "--spectrum-transparent-black-900", - "--spectrum-transparent-white-200", + "--spectrum-transparent-white-1000", "--spectrum-transparent-white-300", "--spectrum-transparent-white-400", "--spectrum-transparent-white-500", "--spectrum-transparent-white-600", - "--spectrum-transparent-white-800", + "--spectrum-transparent-white-700", "--spectrum-transparent-white-900", "--spectrum-white", "--spectrum-workflow-icon-size-100", @@ -222,97 +221,7 @@ "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-actionbutton-background-color-default", - "--system-spectrum-actionbutton-background-color-disabled", - "--system-spectrum-actionbutton-background-color-down", - "--system-spectrum-actionbutton-background-color-focus", - "--system-spectrum-actionbutton-background-color-hover", - "--system-spectrum-actionbutton-border-color-default", - "--system-spectrum-actionbutton-border-color-disabled", - "--system-spectrum-actionbutton-border-color-down", - "--system-spectrum-actionbutton-border-color-focus", - "--system-spectrum-actionbutton-border-color-hover", - "--system-spectrum-actionbutton-content-color-disabled", - "--system-spectrum-actionbutton-quiet-background-color-default", - "--system-spectrum-actionbutton-quiet-background-color-disabled", - "--system-spectrum-actionbutton-quiet-background-color-down", - "--system-spectrum-actionbutton-quiet-background-color-focus", - "--system-spectrum-actionbutton-quiet-background-color-hover", - "--system-spectrum-actionbutton-quiet-border-color-default", - "--system-spectrum-actionbutton-quiet-border-color-disabled", - "--system-spectrum-actionbutton-quiet-border-color-down", - "--system-spectrum-actionbutton-quiet-border-color-focus", - "--system-spectrum-actionbutton-quiet-border-color-hover", - "--system-spectrum-actionbutton-selected-background-color-disabled", - "--system-spectrum-actionbutton-selected-border-color-default", - "--system-spectrum-actionbutton-selected-border-color-disabled", - "--system-spectrum-actionbutton-selected-border-color-down", - "--system-spectrum-actionbutton-selected-border-color-focus", - "--system-spectrum-actionbutton-selected-border-color-hover", - "--system-spectrum-actionbutton-staticblack-background-color-default", - "--system-spectrum-actionbutton-staticblack-background-color-disabled", - "--system-spectrum-actionbutton-staticblack-background-color-down", - "--system-spectrum-actionbutton-staticblack-background-color-focus", - "--system-spectrum-actionbutton-staticblack-background-color-hover", - "--system-spectrum-actionbutton-staticblack-border-color-default", - "--system-spectrum-actionbutton-staticblack-border-color-disabled", - "--system-spectrum-actionbutton-staticblack-border-color-down", - "--system-spectrum-actionbutton-staticblack-border-color-focus", - "--system-spectrum-actionbutton-staticblack-border-color-hover", - "--system-spectrum-actionbutton-staticblack-content-color-default", - "--system-spectrum-actionbutton-staticblack-content-color-disabled", - "--system-spectrum-actionbutton-staticblack-content-color-down", - "--system-spectrum-actionbutton-staticblack-content-color-focus", - "--system-spectrum-actionbutton-staticblack-content-color-hover", - "--system-spectrum-actionbutton-staticblack-focus-indicator-color", - "--system-spectrum-actionbutton-staticblack-quiet-border-color-default", - "--system-spectrum-actionbutton-staticblack-quiet-border-color-disabled", - "--system-spectrum-actionbutton-staticblack-quiet-border-color-down", - "--system-spectrum-actionbutton-staticblack-quiet-border-color-focus", - "--system-spectrum-actionbutton-staticblack-quiet-border-color-hover", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus", - "--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover", - "--system-spectrum-actionbutton-staticwhite-background-color-default", - "--system-spectrum-actionbutton-staticwhite-background-color-disabled", - "--system-spectrum-actionbutton-staticwhite-background-color-down", - "--system-spectrum-actionbutton-staticwhite-background-color-focus", - "--system-spectrum-actionbutton-staticwhite-background-color-hover", - "--system-spectrum-actionbutton-staticwhite-border-color-default", - "--system-spectrum-actionbutton-staticwhite-border-color-disabled", - "--system-spectrum-actionbutton-staticwhite-border-color-down", - "--system-spectrum-actionbutton-staticwhite-border-color-focus", - "--system-spectrum-actionbutton-staticwhite-border-color-hover", - "--system-spectrum-actionbutton-staticwhite-content-color-default", - "--system-spectrum-actionbutton-staticwhite-content-color-disabled", - "--system-spectrum-actionbutton-staticwhite-content-color-down", - "--system-spectrum-actionbutton-staticwhite-content-color-focus", - "--system-spectrum-actionbutton-staticwhite-content-color-hover", - "--system-spectrum-actionbutton-staticwhite-focus-indicator-color", - "--system-spectrum-actionbutton-staticwhite-quiet-border-color-default", - "--system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled", - "--system-spectrum-actionbutton-staticwhite-quiet-border-color-down", - "--system-spectrum-actionbutton-staticwhite-quiet-border-color-focus", - "--system-spectrum-actionbutton-staticwhite-quiet-border-color-hover", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus", - "--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover" - ], + "system-theme": [], "passthroughs": [ "--mod-button-animation-duration", "--mod-button-font-family", diff --git a/components/actionbutton/metadata/mods.md b/components/actionbutton/metadata/mods.md index 0c91d4059bc..ddb650937ec 100644 --- a/components/actionbutton/metadata/mods.md +++ b/components/actionbutton/metadata/mods.md @@ -1,54 +1,37 @@ -| Modifiable custom properties | -| ----------------------------------------------------------------- | -| `--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` | -| `--mod-actionbutton-border-color-focus` | -| `--mod-actionbutton-border-color-hover` | -| `--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` | -| `--mod-actionbutton-edge-to-visual-only` | -| `--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` | +| Modifiable custom properties | +| -------------------------------------------------- | +| `--mod-actionbutton-animation-duration` | +| `--mod-actionbutton-background-color-default` | +| `--mod-actionbutton-background-color-disabled` | +| `--mod-actionbutton-background-color-down` | +| `--mod-actionbutton-background-color-focus` | +| `--mod-actionbutton-background-color-hover` | +| `--mod-actionbutton-border-color-default` | +| `--mod-actionbutton-border-color-disabled` | +| `--mod-actionbutton-border-color-down` | +| `--mod-actionbutton-border-color-focus` | +| `--mod-actionbutton-border-color-hover` | +| `--mod-actionbutton-border-radius` | +| `--mod-actionbutton-border-width` | +| `--mod-actionbutton-content-color-default` | +| `--mod-actionbutton-content-color-disabled` | +| `--mod-actionbutton-content-color-down` | +| `--mod-actionbutton-content-color-focus` | +| `--mod-actionbutton-content-color-hover` | +| `--mod-actionbutton-edge-to-hold-icon` | +| `--mod-actionbutton-edge-to-text` | +| `--mod-actionbutton-edge-to-visual` | +| `--mod-actionbutton-edge-to-visual-only` | +| `--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-text-to-visual` | +| `--mod-animation-duration-100` | +| `--mod-line-height-100` | +| `--mod-sans-font-family-stack` | diff --git a/components/actionbutton/package.json b/components/actionbutton/package.json index 53a1af6d06e..34c6fecc25a 100644 --- a/components/actionbutton/package.json +++ b/components/actionbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/actionbutton", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.19", "description": "The Spectrum CSS action button component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/actionbutton/stories/actionbutton.stories.js b/components/actionbutton/stories/actionbutton.stories.js index 6a214ab0a18..cdefc28cbad 100644 --- a/components/actionbutton/stories/actionbutton.stories.js +++ b/components/actionbutton/stories/actionbutton.stories.js @@ -111,30 +111,6 @@ Quiet.parameters = { }; // ********* VRT ONLY ********* // -export const StaticBlack = ActionButtonGroup.bind({}); -StaticBlack.tags = ["!autodocs", "!dev"]; -StaticBlack.args = { - ...Default.args, - staticColor: "black", -}; -StaticBlack.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; - -export const StaticWhite = ActionButtonGroup.bind({}); -StaticWhite.tags = ["!autodocs", "!dev"]; -StaticWhite.args = { - ...Default.args, - staticColor: "white", -}; -StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; - export const WithForcedColors = ActionButtonGroup.bind({}); WithForcedColors.args = Default.args; WithForcedColors.tags = ["!autodocs", "!dev"]; diff --git a/components/actionbutton/stories/actionbutton.test.js b/components/actionbutton/stories/actionbutton.test.js index e0e7a3dcbde..8cc45e6e983 100644 --- a/components/actionbutton/stories/actionbutton.test.js +++ b/components/actionbutton/stories/actionbutton.test.js @@ -56,6 +56,14 @@ export const ActionButtonGroup = Variants({ }, withStates: false, }, + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [{ testHeading: "Disabled", diff --git a/components/actionbutton/stories/template.js b/components/actionbutton/stories/template.js index 7e51376187d..797d658838d 100644 --- a/components/actionbutton/stories/template.js +++ b/components/actionbutton/stories/template.js @@ -7,6 +7,9 @@ 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 @@ -67,6 +70,7 @@ export const Template = ({ role = "button", } = {}, context = {}) => { const { updateArgs } = context; + return html` - - -
- - - id: actiongroup-horizontal-icon-only - name: Horizontal (icon-only) - markup: | -
- - - -
- - - id: actiongroup-quiet-icon-only - name: Horizontal (quiet, icon-only) - markup: | -
- - - -
- - - id: actiongroup-horizontal-compact - name: Horizontal (compact) - markup: | -
- - - -
- - - id: actiongroup-horizontal-compact-icon-only - name: Horizontal (compact, icon-only) - markup: | -
- - - -
- - - id: actiongroup-horizontal-compact-quiet-icon-only - name: Horizontal (compact, quiet, icon-only) - markup: | -
- - - -
- - - id: actiongroup-vertical - name: Vertical - markup: | -
- - - -
- - - id: actiongroup-vertical-icon-only - name: Vertical (icon-only) - markup: | -
- - - -
- - - id: actiongroup-vertical-quiet-icon-only - name: Vertical (icon-only, quiet) - markup: | -
- - - -
- - - id: actiongroup-vertical-compact - name: Vertical (compact) - markup: | -
- - - -
- - - id: actiongroup-vertical-compact-icon-only - name: Vertical (compact, icon-only) - markup: | -
- - - -
- - - id: actiongroup-vertical-compact-quiet-icon-only - name: Vertical (icon-only, compact, quiet) - markup: | -
- - - -
- - - id: actiongroup-justified - name: Justified - markup: | -
- - -
- - - id: actiongroup-justified-icon-only - name: Justified (icon-only) - markup: | -
- - - -
- - - id: actiongroup-justified-compact-icon-only - name: Justified (compact, icon-only) - markup: | -
- - - -
- - - id: actiongroup-sizing-horizontal - name: Horizontal Sizing - markup: | -
-
-

XS

-
- - - -
-
-
-

S

-
- - - -
-
-
-

M

-
- - - -
-
-
-

L

-
- - - -
-
-
-

XL

-
- - - -
-
-
- - - id: actiongroup-sizing-vertical - name: Vertical Sizing - markup: | -
-
-

XS

-
- - - -
-
-
-

S

-
- - - -
-
-
-

M

-
- - - -
-
-
-

L

-
- - - -
-
-
-

XL

-
- - - -
-
-
diff --git a/components/actiongroup/metadata/metadata.json b/components/actiongroup/metadata/metadata.json index 8ed65cac3a8..13d4a48b900 100644 --- a/components/actiongroup/metadata/metadata.json +++ b/components/actiongroup/metadata/metadata.json @@ -20,12 +20,12 @@ ".spectrum-ActionGroup--compact:not(.spectrum-ActionGroup--quiet) .spectrum-ActionGroup-item:last-child", ".spectrum-ActionGroup--compact:not(.spectrum-ActionGroup--quiet).spectrum-ActionGroup--vertical", ".spectrum-ActionGroup--justified .spectrum-ActionGroup-item", - ".spectrum-ActionGroup--sizeL", - ".spectrum-ActionGroup--sizeM", - ".spectrum-ActionGroup--sizeS", - ".spectrum-ActionGroup--sizeXL", - ".spectrum-ActionGroup--sizeXS", ".spectrum-ActionGroup--vertical", + ".spectrum-ActionGroup.spectrum-ActionGroup--sizeL", + ".spectrum-ActionGroup.spectrum-ActionGroup--sizeM", + ".spectrum-ActionGroup.spectrum-ActionGroup--sizeS", + ".spectrum-ActionGroup.spectrum-ActionGroup--sizeXL", + ".spectrum-ActionGroup.spectrum-ActionGroup--sizeXS", ".spectrum-ActionGroup.spectrum-ActionGroup:not(.spectrum-ActionGroup--vertical):not(.spectrum-ActionGroup--compact) .spectrum-ActionGroup-item" ], "modifiers": [ @@ -35,6 +35,12 @@ "--mod-actiongroup-gap-size-compact", "--mod-actiongroup-horizontal-spacing-compact", "--mod-actiongroup-horizontal-spacing-regular", + "--mod-actiongroup-margin-block", + "--mod-actiongroup-margin-block-end", + "--mod-actiongroup-margin-block-start", + "--mod-actiongroup-margin-inline", + "--mod-actiongroup-margin-inline-end", + "--mod-actiongroup-margin-inline-start", "--mod-actiongroup-vertical-spacing-compact", "--mod-actiongroup-vertical-spacing-regular" ], @@ -51,14 +57,9 @@ "global": [ "--spectrum-corner-radius-100", "--spectrum-spacing-100", - "--spectrum-spacing-50", "--spectrum-spacing-75" ], - "system-theme": [ - "--system-spectrum-actiongroup-gap-size-compact", - "--system-spectrum-actiongroup-horizontal-spacing-compact", - "--system-spectrum-actiongroup-vertical-spacing-compact" - ], + "system-theme": [], "passthroughs": ["--mod-actionbutton-focus-indicator-border-radius"], "high-contrast": [] } diff --git a/components/actiongroup/metadata/mods.md b/components/actiongroup/metadata/mods.md index 2fcc384c89f..8e6f63714e2 100644 --- a/components/actiongroup/metadata/mods.md +++ b/components/actiongroup/metadata/mods.md @@ -6,5 +6,11 @@ | `--mod-actiongroup-gap-size-compact` | | `--mod-actiongroup-horizontal-spacing-compact` | | `--mod-actiongroup-horizontal-spacing-regular` | +| `--mod-actiongroup-margin-block` | +| `--mod-actiongroup-margin-block-end` | +| `--mod-actiongroup-margin-block-start` | +| `--mod-actiongroup-margin-inline` | +| `--mod-actiongroup-margin-inline-end` | +| `--mod-actiongroup-margin-inline-start` | | `--mod-actiongroup-vertical-spacing-compact` | | `--mod-actiongroup-vertical-spacing-regular` | diff --git a/components/actiongroup/package.json b/components/actiongroup/package.json index ea2054e362e..13ca9bdb959 100644 --- a/components/actiongroup/package.json +++ b/components/actiongroup/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/actiongroup", - "version": "5.1.2", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS actiongroup component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/actiongroup/stories/actiongroup.test.js b/components/actiongroup/stories/actiongroup.test.js index 3390f1f6de2..e180b3dcde0 100644 --- a/components/actiongroup/stories/actiongroup.test.js +++ b/components/actiongroup/stories/actiongroup.test.js @@ -25,5 +25,13 @@ export const ActionGroups = Variants({ testHeading: "Vertical", vertical: true, }, + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], }); diff --git a/components/actiongroup/stories/template.js b/components/actiongroup/stories/template.js index 99bfd6ccd75..5bb7be41dfc 100644 --- a/components/actiongroup/stories/template.js +++ b/components/actiongroup/stories/template.js @@ -6,6 +6,9 @@ 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 index 7beafcda729..78d4f30eda9 100644 --- a/components/actiongroup/themes/express.css +++ b/components/actiongroup/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-ActionGroup { --spectrum-actiongroup-gap-size-compact: var(--spectrum-spacing-50); diff --git a/components/actiongroup/themes/spectrum-two.css b/components/actiongroup/themes/spectrum-two.css new file mode 100644 index 00000000000..904c1c3c923 --- /dev/null +++ b/components/actiongroup/themes/spectrum-two.css @@ -0,0 +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 + * + * 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; + + --spectrum-actiongroup-button-spacing-reset: 0; + --spectrum-actiongroup-border-radius-reset: 0; + --spectrum-actiongroup-border-radius: var(--spectrum-corner-radius-100); + + &.spectrum-ActionGroup--sizeXS, + &.spectrum-ActionGroup--sizeS { + --spectrum-actiongroup-horizontal-spacing-regular: var(--spectrum-spacing-75); + --spectrum-actiongroup-vertical-spacing-regular: var(--spectrum-spacing-75); + } + + &, + &.spectrum-ActionGroup--sizeM, + &.spectrum-ActionGroup--sizeL, + &.spectrum-ActionGroup--sizeXL { + --spectrum-actiongroup-horizontal-spacing-regular: var(--spectrum-spacing-100); + --spectrum-actiongroup-vertical-spacing-regular: var(--spectrum-spacing-100); + } + } +} diff --git a/components/actiongroup/themes/spectrum.css b/components/actiongroup/themes/spectrum.css index ff6e1cab39d..5a930981122 100644 --- a/components/actiongroup/themes/spectrum.css +++ b/components/actiongroup/themes/spectrum.css @@ -11,12 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--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; - } -} +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/actionmenu/CHANGELOG.md b/components/actionmenu/CHANGELOG.md index 7d1059a0541..8847750ad9e 100644 --- a/components/actionmenu/CHANGELOG.md +++ b/components/actionmenu/CHANGELOG.md @@ -1,5 +1,217 @@ # Change Log +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/actionmenu/metadata/actionmenu.yml b/components/actionmenu/metadata/actionmenu.yml deleted file mode 100644 index d8832196366..00000000000 --- a/components/actionmenu/metadata/actionmenu.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Action menu -description: Simply an action button with a Popover. Note that the `is-selected` class should be applied to the button when the menu is open. Also note the accessibility roles are different for an action menu vs a normal menu. -sections: - - name: Migration Guide - description: | - ### New Action Button markup - Action Button requires `.spectrum-ActionButton-icon` class on icons nested inside of Action Button. - - ### Change workflow icon size to medium - Replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. -examples: - - id: actionmenu - name: Standard - markup: | - -
- -
- -
- -
- - -
- -
- -
- -
- - diff --git a/components/actionmenu/package.json b/components/actionmenu/package.json index 97d19a3e9ad..24e11031f6e 100644 --- a/components/actionmenu/package.json +++ b/components/actionmenu/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/actionmenu", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.13", "description": "The Spectrum CSS actionmenu component", "license": "Apache-2.0", "author": "Adobe", @@ -32,12 +32,6 @@ "stories/*", "metadata/*" ], - "keywords": [ - "spectrum", - "css", - "design system", - "adobe" - ], "peerDependencies": { "@spectrum-css/actionbutton": ">=6", "@spectrum-css/icon": ">=7", @@ -52,6 +46,12 @@ "@spectrum-css/popover": "workspace:^", "@spectrum-css/tokens": "workspace:^" }, + "keywords": [ + "spectrum", + "css", + "design system", + "adobe" + ], "publishConfig": { "access": "public" } diff --git a/components/alertbanner/CHANGELOG.md b/components/alertbanner/CHANGELOG.md index 2c6648e22b9..8434a003c9f 100644 --- a/components/alertbanner/CHANGELOG.md +++ b/components/alertbanner/CHANGELOG.md @@ -1,5 +1,223 @@ # Change Log +## 3.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.14 + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 3.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9956547`](https://github.com/adobe/spectrum-css/commit/9956547660d88ddfe77f9fc641b2036ab5b33efc) Thanks [@pfulton](https://github.com/pfulton)! - Express color updated for alert banner component + +## 3.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.12 + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 3.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.11 + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 3.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.10 + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 3.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.9 + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 3.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.8 + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 3.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.7 + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 3.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/closebutton@6.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 3.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.5 + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 3.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.4 + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 3.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.3 + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 3.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.2 + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 3.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.1 + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.0 + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 2.2.2 ### Patch Changes diff --git a/components/alertbanner/index.css b/components/alertbanner/index.css index af4976e1afa..6a0011e190a 100644 --- a/components/alertbanner/index.css +++ b/components/alertbanner/index.css @@ -11,30 +11,9 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; .spectrum-AlertBanner { - --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-font-size: var(--spectrum-font-size-100); - --spectrum-alert-banner-icon-size: var(--spectrum-workflow-icon-size-100); - - /* 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-text-to-button-horizontal: var(--spectrum-spacing-300); - /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- internal reference below; todo solve for this edge case in the plugin */ - --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); - - /* 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-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; @@ -49,9 +28,7 @@ --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 { display: none; justify-content: space-between; inline-size: var(--mod-alert-banner-size, var(--spectrum-alert-banner-size)); @@ -59,20 +36,20 @@ 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)); color: var(--mod-alert-banner-font-color, var(--spectrum-alert-banner-font-color)); - background-color: var(--mod-alert-banner-netural-background, var(--spectrum-alert-banner-netural-background)); + background-color: var(--mod-alert-banner-neutral-background, var(--spectrum-alert-banner-neutral-background)); border: var(--highcontrast-alert-banner-border-width, 0) solid var(--highcontrast-alert-banner-border-color, transparent); &.is-open { display: flex; } -} -.spectrum-AlertBanner--info { - background-color: var(--mod-alert-banner-informative-background, var(--spectrum-alert-banner-informative-background)); -} + &.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--negative { + background-color: var(--mod-alert-banner-negative-background, var(--spectrum-alert-banner-negative-background)); + } } .spectrum-AlertBanner-body { diff --git a/components/alertbanner/metadata/alertbanner.yml b/components/alertbanner/metadata/alertbanner.yml deleted file mode 100644 index bd73acb5039..00000000000 --- a/components/alertbanner/metadata/alertbanner.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: Alert banner -description: Alert banners show pressing and high-signal messages, such as system alerts. They're meant to be noticed and prompt users to take action. -SpectrumSiteSlug: https://spectrum.adobe.com/page/alert-banner/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: alertbanner - name: Neutral - description: Standard Alert Banners - markup: | -
-
-
-

Your trial has expired

-
-
-
-
- -
-
-
- -
-
-
-

Your trial has expired

-
- -
-
-
- -
-
-
- -
-
-
-

Your trial has expired. Please purchase to continue. Your work has been saved and is ready for you to open again once you have purchased the software.

-
- -
-
-
- -
-
- - id: alertbanner - name: Informative - description: Informative Alert Banners - markup: | -
-
-
- -

Your trial will expire in 3 days

-
- -
-
-
- -
-
- - id: alertbanner - name: Negative - description: Negative Alert Banners - markup: | -
-
-
- -

Connection interupted. Check your network to continue.

-
- -
-
-
- -
-
diff --git a/components/alertbanner/metadata/metadata.json b/components/alertbanner/metadata/metadata.json index fe2abd0efaa..d8e71d3b592 100644 --- a/components/alertbanner/metadata/metadata.json +++ b/components/alertbanner/metadata/metadata.json @@ -2,14 +2,14 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-AlertBanner", - ".spectrum-AlertBanner--info", - ".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.spectrum-AlertBanner--info", + ".spectrum-AlertBanner.spectrum-AlertBanner--negative" ], "modifiers": [ "--mod-alert-banner-bottom-text", @@ -24,7 +24,7 @@ "--mod-alert-banner-max-inline-size", "--mod-alert-banner-min-height", "--mod-alert-banner-negative-background", - "--mod-alert-banner-netural-background", + "--mod-alert-banner-neutral-background", "--mod-alert-banner-size", "--mod-alert-banner-start-edge", "--mod-alert-banner-text-to-button-horizontal", @@ -48,7 +48,7 @@ "--spectrum-alert-banner-min-height", "--spectrum-alert-banner-minimum-height", "--spectrum-alert-banner-negative-background", - "--spectrum-alert-banner-netural-background", + "--spectrum-alert-banner-neutral-background", "--spectrum-alert-banner-size", "--spectrum-alert-banner-start-edge", "--spectrum-alert-banner-text-to-button-horizontal", @@ -65,16 +65,13 @@ "--spectrum-font-size-100", "--spectrum-informative-background-color-default", "--spectrum-negative-background-color-default", - "--spectrum-neutral-background-color-default", "--spectrum-neutral-subdued-background-color-default", "--spectrum-spacing-300", "--spectrum-text-to-visual-300", "--spectrum-white", "--spectrum-workflow-icon-size-100" ], - "system-theme": [ - "--system-spectrum-alertbanner-spectrum-alert-banner-netural-background" - ], + "system-theme": [], "passthroughs": [ "--mod-button-margin-block", "--mod-button-margin-left", diff --git a/components/alertbanner/metadata/mods.md b/components/alertbanner/metadata/mods.md index 7d700385511..55726ac5b71 100644 --- a/components/alertbanner/metadata/mods.md +++ b/components/alertbanner/metadata/mods.md @@ -12,7 +12,7 @@ | `--mod-alert-banner-max-inline-size` | | `--mod-alert-banner-min-height` | | `--mod-alert-banner-negative-background` | -| `--mod-alert-banner-netural-background` | +| `--mod-alert-banner-neutral-background` | | `--mod-alert-banner-size` | | `--mod-alert-banner-start-edge` | | `--mod-alert-banner-text-to-button-horizontal` | diff --git a/components/alertbanner/package.json b/components/alertbanner/package.json index d302573dd6c..0b018673a7a 100644 --- a/components/alertbanner/package.json +++ b/components/alertbanner/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/alertbanner", - "version": "2.2.2", + "version": "3.0.0-s2-foundations.14", "description": "The Spectrum CSS alertbanner component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/alertbanner/stories/template.js b/components/alertbanner/stories/template.js index 16a44563d1b..e6478741b05 100644 --- a/components/alertbanner/stories/template.js +++ b/components/alertbanner/stories/template.js @@ -10,6 +10,9 @@ 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", diff --git a/components/alertbanner/themes/express.css b/components/alertbanner/themes/express.css index ceebfffaf18..a853e4673bd 100644 --- a/components/alertbanner/themes/express.css +++ b/components/alertbanner/themes/express.css @@ -11,10 +11,13 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-AlertBanner { - --spectrum-alert-banner-netural-background: var(--spectrum-neutral-background-color-default); + --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 new file mode 100644 index 00000000000..7c2bc3ef0e8 --- /dev/null +++ b/components/alertbanner/themes/spectrum-two.css @@ -0,0 +1,38 @@ +/*! + * 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 + * + * 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); + + --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-font-size: var(--spectrum-font-size-100); + --spectrum-alert-banner-icon-size: var(--spectrum-workflow-icon-size-100); + + /* 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-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); + + /* 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-font-color: var(--spectrum-white); + } +} diff --git a/components/alertbanner/themes/spectrum.css b/components/alertbanner/themes/spectrum.css index adcf854d6cb..dd4a5af0289 100644 --- a/components/alertbanner/themes/spectrum.css +++ b/components/alertbanner/themes/spectrum.css @@ -11,8 +11,13 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + @container (--system: spectrum) { .spectrum-AlertBanner { - --spectrum-alert-banner-netural-background: var(--spectrum-neutral-subdued-background-color-default); + --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 4ef5edb3fc1..25117c23363 100644 --- a/components/alertdialog/CHANGELOG.md +++ b/components/alertdialog/CHANGELOG.md @@ -1,5 +1,231 @@ # Change Log +## 3.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.13 + - @spectrum-css/underlay@5.0.0-s2-foundations.13 + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/modal@6.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 3.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.12 + - @spectrum-css/underlay@5.0.0-s2-foundations.12 + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/modal@6.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 3.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.11 + - @spectrum-css/underlay@5.0.0-s2-foundations.11 + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/modal@6.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 3.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.10 + - @spectrum-css/underlay@5.0.0-s2-foundations.10 + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/modal@6.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 3.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.9 + - @spectrum-css/underlay@5.0.0-s2-foundations.9 + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/modal@6.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 3.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.8 + - @spectrum-css/underlay@5.0.0-s2-foundations.8 + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/modal@6.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 3.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.7 + - @spectrum-css/underlay@5.0.0-s2-foundations.7 + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/modal@6.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 3.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.6 + - @spectrum-css/underlay@5.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/modal@6.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 3.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.5 + - @spectrum-css/underlay@5.0.0-s2-foundations.5 + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/modal@6.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 3.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.4 + - @spectrum-css/underlay@5.0.0-s2-foundations.4 + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/modal@6.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 3.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.3 + - @spectrum-css/underlay@5.0.0-s2-foundations.3 + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/modal@6.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 3.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.2 + - @spectrum-css/underlay@5.0.0-s2-foundations.2 + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/modal@6.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 3.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/buttongroup@8.0.0-s2-foundations.1 + - @spectrum-css/underlay@5.0.0-s2-foundations.1 + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/modal@6.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/modal@6.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + - @spectrum-css/underlay@5.0.0-s2-foundations.0 + ## 2.1.3 ### Patch Changes diff --git a/components/alertdialog/index.css b/components/alertdialog/index.css index 14e6e555f2c..488f7a430a1 100644 --- a/components/alertdialog/index.css +++ b/components/alertdialog/index.css @@ -11,40 +11,12 @@ * governing permissions and limitations under the License. */ -.spectrum-AlertDialog { - --spectrum-alert-dialog-min-width: var(--spectrum-alert-dialog-minimum-width); - --spectrum-alert-dialog-max-width: var(--spectrum-alert-dialog-maximum-width); - --spectrum-alert-dialog-icon-size: var(--spectrum-workflow-icon-size-100); - - /* color */ - --spectrum-alert-dialog-warning-icon-color: var(--spectrum-notice-visual-color); - --spectrum-alert-dialog-error-icon-color: var(--spectrum-negative-visual-color); - - /* typography */ - --spectrum-alert-dialog-title-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-alert-dialog-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-alert-dialog-title-font-style: var(--spectrum-heading-sans-serif-font-style); - --spectrum-alert-dialog-title-font-size: var(--spectrum-alert-dialog-title-size); - --spectrum-alert-dialog-title-line-height: var(--spectrum-heading-line-height); - --spectrum-alert-dialog-title-color: var(--spectrum-heading-color); - - --spectrum-alert-dialog-body-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-alert-dialog-body-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-alert-dialog-body-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-alert-dialog-body-font-size: var(--spectrum-alert-dialog-description-size); - --spectrum-alert-dialog-body-line-height: var(--spectrum-line-height-100); - --spectrum-alert-dialog-body-color: var(--spectrum-body-color); - - /* spacing */ - --spectrum-alert-dialog-title-to-divider: var(--spectrum-spacing-200); - --spectrum-alert-dialog-divider-to-description: var(--spectrum-spacing-300); - --spectrum-alert-dialog-title-to-icon: var(--spectrum-spacing-300); +@import "./themes/spectrum-two.css"; +.spectrum-AlertDialog { /* mods for nested component */ --mod-buttongroup-justify-content: flex-end; -} -.spectrum-AlertDialog { display: flex; box-sizing: border-box; inline-size: fit-content; diff --git a/components/alertdialog/metadata/alertdialog.yml b/components/alertdialog/metadata/alertdialog.yml deleted file mode 100644 index 72a8337d7c7..00000000000 --- a/components/alertdialog/metadata/alertdialog.yml +++ /dev/null @@ -1,202 +0,0 @@ -name: Alert dialog -SpectrumSiteSlug: https://spectrum.adobe.com/page/alertdialog/ -examples: - - id: alertdialog - name: Confirmation - description: This is the default variant for alert dialogs. Use a confirmation variant for asking a user to confirm a choice. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - -
-
- -
-
- - id: alertdialog-information - name: Information - description: Information alert dialogs communicate important information that a user needs to acknowledge. Before using this kind of alert dialog, make sure it's the appropriate communication channel for the message instead of a toast or a more lightweight messaging option. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
- - id: alertdialog-warning - name: Warning - description: Warning alert dialogs communicate important information to users in relation to an issue that needs to be acknowledged, but does not block the user from moving forward. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
- - id: alertdialog-error - name: Error - description: Error alert dialogs communicate critical information about an issue that a user needs to acknowledge. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
- - id: alertdialog-destructive - name: Destructive - description: Destructive alert dialogs are for when a user needs to confirm an action that will impact their data or experience in a potentially negative way, such as deleting files or contacts. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
- - id: alertdialog-secondary-button - name: Secondary Button - description: An alert dialog can have a total of 3 buttons if the secondary outline button label is defined. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
- - id: alertdialog-scroll - name: Scroll - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
-
- -
-
diff --git a/components/alertdialog/package.json b/components/alertdialog/package.json index ea4e196070d..f3dfb533a68 100644 --- a/components/alertdialog/package.json +++ b/components/alertdialog/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/alertdialog", - "version": "2.1.3", + "version": "3.0.0-s2-foundations.13", "description": "The Spectrum CSS alertdialog component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/alertdialog/stories/template.js b/components/alertdialog/stories/template.js index c52b776e09a..cd687e9f072 100644 --- a/components/alertdialog/stories/template.js +++ b/components/alertdialog/stories/template.js @@ -10,6 +10,9 @@ 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 Dialog = ({ rootClass = "spectrum-AlertDialog", diff --git a/site/tasks/index.js b/components/alertdialog/themes/express.css similarity index 87% rename from site/tasks/index.js rename to components/alertdialog/themes/express.css index c8465a25eb6..b1f3d9e5ad7 100644 --- a/site/tasks/index.js +++ b/components/alertdialog/themes/express.css @@ -11,5 +11,7 @@ * governing permissions and limitations under the License. */ -exports.builder = require("./builder").default; -exports.server = require("./server"); + +/* @combine .spectrum.spectrum--express */ + +@import "./spectrum.css"; diff --git a/components/alertdialog/themes/spectrum-two.css b/components/alertdialog/themes/spectrum-two.css new file mode 100644 index 00000000000..fd99483cdb2 --- /dev/null +++ b/components/alertdialog/themes/spectrum-two.css @@ -0,0 +1,44 @@ +/*! + * 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 + * + * 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-AlertDialog { + --spectrum-alert-dialog-min-width: var(--spectrum-alert-dialog-minimum-width); + --spectrum-alert-dialog-max-width: var(--spectrum-alert-dialog-maximum-width); + --spectrum-alert-dialog-icon-size: var(--spectrum-workflow-icon-size-100); + + /* color */ + --spectrum-alert-dialog-warning-icon-color: var(--spectrum-notice-visual-color); + --spectrum-alert-dialog-error-icon-color: var(--spectrum-negative-visual-color); + + /* typography */ + --spectrum-alert-dialog-title-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-alert-dialog-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-alert-dialog-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --spectrum-alert-dialog-title-font-size: var(--spectrum-alert-dialog-title-size); + --spectrum-alert-dialog-title-line-height: var(--spectrum-heading-line-height); + --spectrum-alert-dialog-title-color: var(--spectrum-heading-color); + + --spectrum-alert-dialog-body-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-alert-dialog-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-alert-dialog-body-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-alert-dialog-body-font-size: var(--spectrum-alert-dialog-description-size); + --spectrum-alert-dialog-body-line-height: var(--spectrum-line-height-100); + --spectrum-alert-dialog-body-color: var(--spectrum-body-color); + + /* spacing */ + --spectrum-alert-dialog-title-to-divider: var(--spectrum-spacing-200); + --spectrum-alert-dialog-divider-to-description: var(--spectrum-spacing-300); + --spectrum-alert-dialog-title-to-icon: var(--spectrum-spacing-300); + } +} diff --git a/tokens/dist/css/components/spectrum/tabs.css b/components/alertdialog/themes/spectrum.css similarity index 87% rename from tokens/dist/css/components/spectrum/tabs.css rename to components/alertdialog/themes/spectrum.css index 18cd20ef3ce..5a930981122 100644 --- a/tokens/dist/css/components/spectrum/tabs.css +++ b/components/alertdialog/themes/spectrum.css @@ -11,6 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum { - --system-spectrum-tabs-font-weight: var(--spectrum-default-font-weight); -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/asset/CHANGELOG.md b/components/asset/CHANGELOG.md index 87e4c702162..202d6501d69 100644 --- a/components/asset/CHANGELOG.md +++ b/components/asset/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/asset/index.css b/components/asset/index.css index 3c30287e688..2f7a4333419 100644 --- a/components/asset/index.css +++ b/components/asset/index.css @@ -11,6 +11,8 @@ * governing permissions and limitations under the License. */ +@import "./themes/spectrum-two.css"; + .spectrum-Asset { display: flex; align-items: center; @@ -24,7 +26,7 @@ max-inline-size: 100%; max-block-size: 100%; object-fit: contain; - transition: opacity var(--spectrum-animation-duration-100); + transition: opacity var(--spectrum-asset-transition-duration); } .spectrum-Asset-folder, @@ -35,16 +37,16 @@ } .spectrum-Asset-folderBackground { - fill: var(--highcontrast-asset-folder-background-color, var(--mod-asset-folder-background-color, var(--spectrum-gray-300))); + fill: var(--highcontrast-asset-folder-background-color, var(--mod-asset-folder-background-color, var(--spectrum-asset-folder-background-color))); } .spectrum-Asset-fileBackground { - fill: var(--highcontrast-asset-file-background-color, var(--mod-asset-file-background-color, var(--spectrum-gray-50))); + fill: var(--highcontrast-asset-file-background-color, var(--mod-asset-file-background-color, var(--spectrum-asset-file-background-color))); } .spectrum-Asset-folderOutline, .spectrum-Asset-fileOutline { - fill: var(--mod-asset-icon-outline-color, var(--spectrum-gray-500)); + fill: var(--mod-asset-icon-outline-color, var(--spectrum-asset-icon-outline-color)); } @media (forced-colors: active) { diff --git a/components/asset/metadata/asset.yml b/components/asset/metadata/asset.yml deleted file mode 100644 index a52d54c9980..00000000000 --- a/components/asset/metadata/asset.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Asset -examples: - - id: asset - name: Image - markup: | -
- -
- - id: asset - name: File - markup: | -
- - - - -
- - id: asset - name: Folder - markup: | -
- - - - -
diff --git a/components/asset/metadata/metadata.json b/components/asset/metadata/metadata.json index c4dba7ecfc7..8c0203d4628 100644 --- a/components/asset/metadata/metadata.json +++ b/components/asset/metadata/metadata.json @@ -18,11 +18,16 @@ "--mod-asset-icon-min-width", "--mod-asset-icon-outline-color" ], - "component": [], + "component": [ + "--spectrum-asset-file-background-color", + "--spectrum-asset-folder-background-color", + "--spectrum-asset-icon-outline-color", + "--spectrum-asset-transition-duration" + ], "global": [ "--spectrum-animation-duration-100", - "--spectrum-gray-300", - "--spectrum-gray-50", + "--spectrum-gray-200", + "--spectrum-gray-25", "--spectrum-gray-500" ], "system-theme": [], diff --git a/components/asset/package.json b/components/asset/package.json index 2edf783adf4..be682d79b2e 100644 --- a/components/asset/package.json +++ b/components/asset/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/asset", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS asset component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/asset/stories/template.js b/components/asset/stories/template.js index 30bb729941a..9365bd5d4f4 100644 --- a/components/asset/stories/template.js +++ b/components/asset/stories/template.js @@ -5,6 +5,9 @@ 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", @@ -14,7 +17,7 @@ export const Template = ({ customClasses = [], customStyles = {}, isCardAssetOverride = false, -}) => { +} = {}) => { let visual; if (preset === "file") { visual = svg` diff --git a/components/asset/themes/express.css b/components/asset/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/asset/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..76ac6f0f85b --- /dev/null +++ b/components/asset/themes/spectrum-two.css @@ -0,0 +1,21 @@ +/*! + * 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 + * + * 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-transition-duration: var(--spectrum-animation-duration-100); + --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 new file mode 100644 index 00000000000..dd4f4c986db --- /dev/null +++ b/components/asset/themes/spectrum.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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 56bced50a11..857f08a16f2 100644 --- a/components/assetcard/CHANGELOG.md +++ b/components/assetcard/CHANGELOG.md @@ -1,5 +1,193 @@ # Change Log +## 5.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9df688a`](https://github.com/adobe/spectrum-css/commit/9df688a6a83be5f13bc4e0e732fed294af08bf3f) Thanks [@pfulton](https://github.com/pfulton)! - Replaces raw RGB value/direct token references with abstracted custom properties in theme/spectrum-two.css files + + Asset card + + - removes raw rgb value for box-shadow from `index.css` + - creates new `--spectrum-assetcard-selectionindicator-box-shadow-color` + in `themes/spectrum-two.css` with previous rgb value to use instead + + Well + + - removes `--spectrum-gray-800-rgb` for background-color from `index.css` + - creates new `--spectrum-well-background-color` in `themes/spectrum-two.css` + with previous `--spectrum-gray-800-rgb` property to use instead + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 4.1.3 ### Patch Changes diff --git a/components/assetcard/index.css b/components/assetcard/index.css index 3664978d933..d688bbf4c9b 100644 --- a/components/assetcard/index.css +++ b/components/assetcard/index.css @@ -11,85 +11,9 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; /* outer container, unstyled */ -.spectrum-AssetCard { - /* 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-200); - --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); - - --spectrum-assetcard-border-radius: var(--spectrum-corner-radius-100); - --spectrum-assetcard-border-color: transparent; - --spectrum-assetcard-border-color-hover: var(--spectrum-gray-500); - --spectrum-assetcard-border-color-down: var(--spectrum-gray-600); - - --spectrum-assetcard-focus-ring-gap: 5px; - --spectrum-assetcard-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - - /* selection indicator - checkbox or number */ - --spectrum-assetcard-selectionindicator-background-color-default: rgba(var(--spectrum-gray-100-rgb), 0.9); - --spectrum-assetcard-selectionindicator-size: var(--spectrum-card-selection-background-size); - --spectrum-assetcard-selectionindicator-border-radius: var(--spectrum-corner-radius-100); - --spectrum-assetcard-selectionindicator-offset-y: 4px; - --spectrum-assetcard-selectionindicator-blur: 6px; - --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); - - /* title */ - --spectrum-assetcard-title-text-color: var(--spectrum-gray-900); - --spectrum-assetcard-title-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-assetcard-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-assetcard-title-font-style: var(--spectrum-default-font-style); - --spectrum-assetcard-title-line-height: var(--spectrum-line-height-100); - --spectrum-assetcard-title-letter-spacing: 0; - - /* header content */ - --spectrum-assetcard-header-content-text-color: var(--spectrum-gray-900); - --spectrum-assetcard-header-content-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-assetcard-header-content-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-assetcard-header-content-font-style: var(--spectrum-default-font-style); - --spectrum-assetcard-header-content-line-height: var(--spectrum-line-height-200); - --spectrum-assetcard-header-content-letter-spacing: 0; - - /* content */ - --spectrum-assetcard-content-text-color: var(--spectrum-gray-700); - --spectrum-assetcard-content-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-assetcard-content-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-assetcard-content-font-style: var(--spectrum-default-font-style); - --spectrum-assetcard-content-line-height: var(--spectrum-line-height-200); - --spectrum-assetcard-content-letter-spacing: 0; - - --spectrum-assetcard-content-margin-block-start: var(--spectrum-spacing-75); - - &:lang(zh), - &:lang(ja), - &:lang(ko) { - --spectrum-assetcard-title-font-family: var(--spectrum-cjk-font-family-stack); - --spectrum-assetcard-title-font-style: var(--spectrum-heading-cjk-font-style); - --spectrum-assetcard-title-font-weight: var(--spectrum-heading-cjk-font-weight); - --spectrum-assetcard-title-font-size: var(--spectrum-heading-cjk-size-xs); - --spectrum-assetcard-title-line-height: var(--spectrum-heading-cjk-line-height); - --spectrum-assetcard-title-letter-spacing: var(--spectrum-cjk-letter-spacing); - - --spectrum-assetcard-header-content-font-family: var(--spectrum-cjk-font-family-stack); - --spectrum-assetcard-header-content-font-weight: var(--spectrum-body-cjk-font-weight); - --spectrum-assetcard-header-content-line-height: var(--spectrum-body-cjk-line-height); - --spectrum-assetcard-header-content-font-style: var(--spectrum-body-cjk-font-style); - --spectrum-assetcard-header-content-letter-spacing: var(--spectrum-cjk-letter-spacing); - - --spectrum-assetcard-content-font-family: var(--spectrum-cjk-font-family-stack); - --spectrum-assetcard-content-font-weight: var(--spectrum-body-cjk-font-weight); - --spectrum-assetcard-content-line-height: var(--spectrum-body-cjk-line-height); - --spectrum-assetcard-content-font-style: var(--spectrum-body-cjk-font-style); - --spectrum-assetcard-content-letter-spacing: var(--spectrum-cjk-letter-spacing); - } -} - .spectrum-AssetCard { /* contain selection indicator */ position: relative; @@ -101,6 +25,8 @@ cursor: pointer; + outline: none; + &.is-selected, &:hover, &:focus-visible { @@ -120,8 +46,6 @@ } } - outline: none; - &:focus-visible { .spectrum-AssetCard-assetContainer::before { opacity: 1; @@ -182,9 +106,7 @@ inline-size: 100%; block-size: 100%; - transition: - inline-size var(--mod-assetcard-asset-animation-duration, var(--spectrum-assetcard-asset-animation-duration)) ease-in-out, - block-size var(--mod-assetcard-asset-animation-duration, var(--spectrum-assetcard-asset-animation-duration)) ease-in-out; + transition: inline-size var(--mod-assetcard-asset-animation-duration, var(--spectrum-assetcard-asset-animation-duration)) ease-in-out, block-size var(--mod-assetcard-asset-animation-duration, var(--spectrum-assetcard-asset-animation-duration)) ease-in-out; border-radius: calc(var(--mod-assetcard-border-radius, var(--spectrum-assetcard-border-radius)) - 1px); } @@ -272,7 +194,7 @@ border-radius: var(--mod-assetcard-selectionindicator-border-radius, var(--spectrum-assetcard-selectionindicator-border-radius)); - box-shadow: 0 var(--spectrum-assetcard-selectionindicator-offset-y) var(--spectrum-assetcard-selectionindicator-blur) rgb(0, 0, 0, 15%); + box-shadow: 0 var(--spectrum-assetcard-selectionindicator-offset-y) var(--spectrum-assetcard-selectionindicator-blur) var(--spectrum-assetcard-selectionindicator-box-shadow-color); color: var(--highcontrast-assetcard-selectionindicator-color, var(--mod-assetcard-selectionindicator-color, var(--spectrum-assetcard-selectionindicator-color))); font-weight: var(--mod-assetcard-selectionindicator-font-weight, var(--spectrum-assetcard-selectionindicator-font-weight)); diff --git a/components/assetcard/metadata/assetcard.yml b/components/assetcard/metadata/assetcard.yml deleted file mode 100644 index a146a0e0fe2..00000000000 --- a/components/assetcard/metadata/assetcard.yml +++ /dev/null @@ -1,215 +0,0 @@ -name: Asset card -SpectrumSiteSlug: https://spectrum.adobe.com/page/cards/ -description: | - - Set the `--spectrum-assetcard-asset-size` custom property to the size you want to display the asset as -sections: - - name: Migration Guide - description: | - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: assetcard-portrait - name: Portrait - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
-
- - - - - -
-
-
- - - id: assetcard-landscape - name: Landscape - markup: | -
-
- assetcard example image in landscape -
-
-
-
Card Title
-
-
-
- Image -
-
-
- - - - - -
-
-
- - - id: assetcard-square - name: Square - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
-
- - - - - -
-
-
- - - id: assetcard-optional - name: Optional content - description: | - The `.spectrum-AssetCard-content` and `.spectrum-AssetCard-headerContent` elements are optional. - markup: | -
-
- assetcard example image -
-
-
-
MVI_0123.mp4
-
39:02
-
-
-
- - - - - -
-
-
- - - id: assetcard-highlight - name: Highlight Selection - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
- - - id: assetcard-checkbox - name: Checkbox Selection - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
-
- - - - - -
-
-
- - - id: assetcard-ordered - name: Ordered Selection - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
-
1
-
-
- - - id: assetcard-ordered - name: Drop Target - markup: | -
-
- assetcard example image -
-
-
-
Card Title
-
-
-
- Image -
-
-
1
-
-
diff --git a/components/assetcard/metadata/metadata.json b/components/assetcard/metadata/metadata.json index decca789994..44fb3b45fcd 100644 --- a/components/assetcard/metadata/metadata.json +++ b/components/assetcard/metadata/metadata.json @@ -123,10 +123,13 @@ "--spectrum-assetcard-header-content-text-color", "--spectrum-assetcard-header-margin-block-start", "--spectrum-assetcard-overlay-background-color", + "--spectrum-assetcard-overlay-background-color-opacity", + "--spectrum-assetcard-overlay-background-color-rgb", "--spectrum-assetcard-selectionindicator-background-color-default", "--spectrum-assetcard-selectionindicator-background-color-ordered", "--spectrum-assetcard-selectionindicator-blur", "--spectrum-assetcard-selectionindicator-border-radius", + "--spectrum-assetcard-selectionindicator-box-shadow-color", "--spectrum-assetcard-selectionindicator-color", "--spectrum-assetcard-selectionindicator-font-size", "--spectrum-assetcard-selectionindicator-font-weight", @@ -156,11 +159,11 @@ "--spectrum-default-font-style", "--spectrum-focus-indicator-thickness", "--spectrum-font-size-400", - "--spectrum-gray-100-rgb", - "--spectrum-gray-200", "--spectrum-gray-500", "--spectrum-gray-600", "--spectrum-gray-700", + "--spectrum-gray-75", + "--spectrum-gray-75-rgb", "--spectrum-gray-900", "--spectrum-heading-cjk-font-style", "--spectrum-heading-cjk-font-weight", @@ -172,9 +175,10 @@ "--spectrum-sans-font-family-stack", "--spectrum-spacing-300", "--spectrum-spacing-75", + "--spectrum-transparent-black-300", "--spectrum-white" ], - "system-theme": ["--system-spectrum-assetcard-overlay-background-color"], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-assectcard-border-color-selected-down", diff --git a/components/assetcard/package.json b/components/assetcard/package.json index b702befae4b..11f0100d589 100644 --- a/components/assetcard/package.json +++ b/components/assetcard/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/assetcard", - "version": "4.1.3", + "version": "5.0.0-s2-foundations.14", "description": "The Spectrum CSS asset card component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/assetcard/stories/template.js b/components/assetcard/stories/template.js index 1b44be4e568..864fcd951b7 100644 --- a/components/assetcard/stories/template.js +++ b/components/assetcard/stories/template.js @@ -8,6 +8,9 @@ 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 index f208227f90e..58e2787dabb 100644 --- a/components/assetcard/themes/express.css +++ b/components/assetcard/themes/express.css @@ -11,10 +11,13 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: rgba(109, 115, 246, 20%); + --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 new file mode 100644 index 00000000000..86de8e84b93 --- /dev/null +++ b/components/assetcard/themes/spectrum-two.css @@ -0,0 +1,93 @@ +/*! + * 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 + * + * 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%); + + /* 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-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); + + --spectrum-assetcard-border-radius: var(--spectrum-corner-radius-100); + --spectrum-assetcard-border-color: transparent; + --spectrum-assetcard-border-color-hover: var(--spectrum-gray-500); + --spectrum-assetcard-border-color-down: var(--spectrum-gray-600); + + --spectrum-assetcard-focus-ring-gap: 5px; + --spectrum-assetcard-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + + /* selection indicator - checkbox or number */ + --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); + --spectrum-assetcard-selectionindicator-size: var(--spectrum-card-selection-background-size); + --spectrum-assetcard-selectionindicator-border-radius: var(--spectrum-corner-radius-100); + --spectrum-assetcard-selectionindicator-offset-y: 4px; + --spectrum-assetcard-selectionindicator-blur: 6px; + --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); + + /* title */ + --spectrum-assetcard-title-text-color: var(--spectrum-gray-900); + --spectrum-assetcard-title-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-assetcard-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-assetcard-title-font-style: var(--spectrum-default-font-style); + --spectrum-assetcard-title-line-height: var(--spectrum-line-height-100); + --spectrum-assetcard-title-letter-spacing: 0; + + /* header content */ + --spectrum-assetcard-header-content-text-color: var(--spectrum-gray-900); + --spectrum-assetcard-header-content-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-assetcard-header-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-assetcard-header-content-font-style: var(--spectrum-default-font-style); + --spectrum-assetcard-header-content-line-height: var(--spectrum-line-height-200); + --spectrum-assetcard-header-content-letter-spacing: 0; + + /* content */ + --spectrum-assetcard-content-text-color: var(--spectrum-gray-700); + --spectrum-assetcard-content-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-assetcard-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-assetcard-content-font-style: var(--spectrum-default-font-style); + --spectrum-assetcard-content-line-height: var(--spectrum-line-height-200); + --spectrum-assetcard-content-letter-spacing: 0; + + --spectrum-assetcard-content-margin-block-start: var(--spectrum-spacing-75); + + &:lang(zh), + &:lang(ja), + &:lang(ko) { + --spectrum-assetcard-title-font-family: var(--spectrum-cjk-font-family-stack); + --spectrum-assetcard-title-font-style: var(--spectrum-heading-cjk-font-style); + --spectrum-assetcard-title-font-weight: var(--spectrum-heading-cjk-font-weight); + --spectrum-assetcard-title-font-size: var(--spectrum-heading-cjk-size-xs); + --spectrum-assetcard-title-line-height: var(--spectrum-heading-cjk-line-height); + --spectrum-assetcard-title-letter-spacing: var(--spectrum-cjk-letter-spacing); + + --spectrum-assetcard-header-content-font-family: var(--spectrum-cjk-font-family-stack); + --spectrum-assetcard-header-content-font-weight: var(--spectrum-body-cjk-font-weight); + --spectrum-assetcard-header-content-line-height: var(--spectrum-body-cjk-line-height); + --spectrum-assetcard-header-content-font-style: var(--spectrum-body-cjk-font-style); + --spectrum-assetcard-header-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + + --spectrum-assetcard-content-font-family: var(--spectrum-cjk-font-family-stack); + --spectrum-assetcard-content-font-weight: var(--spectrum-body-cjk-font-weight); + --spectrum-assetcard-content-line-height: var(--spectrum-body-cjk-line-height); + --spectrum-assetcard-content-font-style: var(--spectrum-body-cjk-font-style); + --spectrum-assetcard-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + } + } +} diff --git a/components/assetcard/themes/spectrum.css b/components/assetcard/themes/spectrum.css index 6104113334b..2ab40afaa2a 100644 --- a/components/assetcard/themes/spectrum.css +++ b/components/assetcard/themes/spectrum.css @@ -11,8 +11,18 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @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-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 70a3604d890..9bb301eb38f 100644 --- a/components/assetlist/CHANGELOG.md +++ b/components/assetlist/CHANGELOG.md @@ -1,5 +1,189 @@ # Change Log +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.2.0 ### Minor Changes diff --git a/components/assetlist/index.css b/components/assetlist/index.css index 69d89fd9e21..23d20183e4a 100644 --- a/components/assetlist/index.css +++ b/components/assetlist/index.css @@ -11,40 +11,16 @@ * governing permissions and limitations under the License. */ -.spectrum-AssetList { - --spectrum-assetlist-width: 272px; - --spectrum-assetlist-child-indicator-animation: var(--spectrum-animation-duration-100); - - /* item */ - --spectrum-assetlist-item-height: var(--spectrum-spacing-600); - --spectrum-assetlist-item-padding-inline-start: var(--spectrum-spacing-300); - --spectrum-assetlist-item-padding-inline-end: var(--spectrum-spacing-300); - --spectrum-assetlist-item-margin-block-end: var(--spectrum-spacing-75); - --spectrum-assetlist-item-border-radius: var(--spectrum-spacing-75); - --spectrum-assetlist-item-animation: var(--spectrum-animation-duration-100); - --spectrum-assetlist-item-font-size: var(--spectrum-font-size-100); - --spectrum-assetlist-item-font-weight: var(--spectrum-regular-font-weight); - --spectrum-assetlist-item-background-color-down: var(--spectrum-gray-300); - --spectrum-assetlist-item-background-color-hover: var(--spectrum-gray-200); - - /* thumbnail */ - --spectrum-assetlist-thumbnail-width: var(--spectrum-spacing-400); - --spectrum-assetlist-thumbnail-height: var(--spectrum-spacing-400); - --spectrum-assetlist-thumbnail-margin-inline-start: var(--spectrum-spacing-100); - - /* label */ - --spectrum-assetlist-item-label-padding-inline-start: var(--spectrum-spacing-100); - --spectrum-assetlist-label-color: var(--spectrum-neutral-content-color-default); - - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } -} +@import "./themes/spectrum-two.css"; .spectrum-AssetList { margin-block-start: 0; margin-block-end: 0; padding: 0; + + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); + } } .spectrum-AssetList-item { @@ -173,13 +149,14 @@ @media (forced-colors: active) { .spectrum-AssetList-item { - forced-color-adjust: none; --highcontrast-assetlist-border-color-key-focus: Highlight; --highcontrast-assetlist-item-background-color-hover: Highlight; --highcontrast-assetlist-item-background-color-selected-hover: Highlight; --highcontrast-assetlist-label-color: ButtonText; --highcontrast-assetlist-item-background-color-selected: SelectedItem; + forced-color-adjust: none; + &:hover, &.is-selected, &.is-navigated { diff --git a/components/assetlist/metadata/assetlist.yml b/components/assetlist/metadata/assetlist.yml deleted file mode 100644 index 39d72733122..00000000000 --- a/components/assetlist/metadata/assetlist.yml +++ /dev/null @@ -1,81 +0,0 @@ -id: asset-list -name: Asset list -description: "A selectable list of Assets, often used inside of Miller Columns." -examples: - - id: asset-list - name: Standard - markup: | -
    - -
  • - - asset item thumbnail - Shantanu.jpg - -
  • - -
  • - - - Resource Allocation.csv - -
  • - -
  • - - - Frontend Projects - -
  • - - -
  • - - - Downloads - -
  • - -
diff --git a/components/assetlist/metadata/metadata.json b/components/assetlist/metadata/metadata.json index 2de86c31204..4a4d1f31381 100644 --- a/components/assetlist/metadata/metadata.json +++ b/components/assetlist/metadata/metadata.json @@ -82,8 +82,8 @@ "global": [ "--spectrum-animation-duration-100", "--spectrum-font-size-100", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", "--spectrum-logical-rotation", "--spectrum-neutral-content-color-default", "--spectrum-regular-font-weight", diff --git a/components/assetlist/package.json b/components/assetlist/package.json index 70908a75220..3484d611d60 100644 --- a/components/assetlist/package.json +++ b/components/assetlist/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/assetlist", - "version": "6.2.0", + "version": "7.0.0-s2-foundations.13", "description": "The Spectrum CSS assetlist component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/assetlist/stories/template.js b/components/assetlist/stories/template.js index f7b1552151a..8834beb297c 100644 --- a/components/assetlist/stories/template.js +++ b/components/assetlist/stories/template.js @@ -7,6 +7,9 @@ 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", @@ -20,34 +23,20 @@ export const AssetListItem = ({ isSelected = false, isBranch = false, onclick = () => {}, -}) => html` -
  • - ${when(isSelectable, () => - Checkbox({ - size: "m", - isChecked: isSelected, - ariaLabelledby, - id: checkboxId, - customClasses: [`${rootClass}Selector`], - }))} - ${when( - image, - () => - html`asset image thumbnail` - )} - ${when(iconName, () => Icon({ iconName, customClasses: [`${rootClass}Thumbnail`] }))} - ${when(label, () => html`${label}`)} - ${when(!isSelectable && !isBranch, () => +} = {}) => { + return html` +
  • + ${when(isSelectable, () => Checkbox({ size: "m", isChecked: isSelected, @@ -55,14 +44,30 @@ export const AssetListItem = ({ id: checkboxId, customClasses: [`${rootClass}Selector`], }))} - ${when(isBranch, () => - Icon({ - iconName: "ChevronRight100", - customClasses: [`${rootClass}ChildIndicator`], - }) - )} -
  • -`; + ${when( + image, + () => + html`asset image thumbnail` + )} + ${when(iconName, () => Icon({ iconName, customClasses: [`${rootClass}Thumbnail`] }))} + ${when(label, () => html`${label}`)} + ${when(!isSelectable && !isBranch, () => + Checkbox({ + size: "m", + isChecked: isSelected, + ariaLabelledby, + id: checkboxId, + customClasses: [`${rootClass}Selector`], + }))} + ${when(isBranch, () => + Icon({ + iconName: "ChevronRight100", + customClasses: [`${rootClass}ChildIndicator`], + }) + )} + + `; +}; export const Template = ({ rootClass = "spectrum-AssetList", diff --git a/components/assetlist/themes/express.css b/components/assetlist/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/assetlist/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..d0ebc859b12 --- /dev/null +++ b/components/assetlist/themes/spectrum-two.css @@ -0,0 +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 + * + * 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-width: 272px; + --spectrum-assetlist-child-indicator-animation: var(--spectrum-animation-duration-100); + + /* item */ + --spectrum-assetlist-item-height: var(--spectrum-spacing-600); + --spectrum-assetlist-item-padding-inline-start: var(--spectrum-spacing-300); + --spectrum-assetlist-item-padding-inline-end: var(--spectrum-spacing-300); + --spectrum-assetlist-item-margin-block-end: var(--spectrum-spacing-75); + --spectrum-assetlist-item-border-radius: var(--spectrum-spacing-75); + --spectrum-assetlist-item-animation: var(--spectrum-animation-duration-100); + --spectrum-assetlist-item-font-size: var(--spectrum-font-size-100); + --spectrum-assetlist-item-font-weight: var(--spectrum-regular-font-weight); + --spectrum-assetlist-item-background-color-down: var(--spectrum-gray-200); + --spectrum-assetlist-item-background-color-hover: var(--spectrum-gray-100); + + /* thumbnail */ + --spectrum-assetlist-thumbnail-width: var(--spectrum-spacing-400); + --spectrum-assetlist-thumbnail-height: var(--spectrum-spacing-400); + --spectrum-assetlist-thumbnail-margin-inline-start: var(--spectrum-spacing-100); + + /* label */ + --spectrum-assetlist-item-label-padding-inline-start: var(--spectrum-spacing-100); + --spectrum-assetlist-label-color: var(--spectrum-neutral-content-color-default); + } +} diff --git a/components/assetlist/themes/spectrum.css b/components/assetlist/themes/spectrum.css new file mode 100644 index 00000000000..dd22cb5b9ad --- /dev/null +++ b/components/assetlist/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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 85a6040a76e..2dcc02be310 100644 --- a/components/avatar/CHANGELOG.md +++ b/components/avatar/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 8.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 7.2.0 ### Minor Changes diff --git a/components/avatar/index.css b/components/avatar/index.css index 11f36117cef..c919d6422a3 100644 --- a/components/avatar/index.css +++ b/components/avatar/index.css @@ -11,65 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Avatar { - --spectrum-avatar-color-opacity: 1; - - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-100); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-100); - - --spectrum-avatar-border-radius: var(--spectrum-avatar-block-size); - - --spectrum-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-avatar-focus-indicator-color: var(--spectrum-focus-indicator-color); - - --spectrum-avatar-color-opacity-disabled: var(--spectrum-avatar-opacity-disabled); -} - -.spectrum-Avatar--size50 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-50); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-50); -} - -.spectrum-Avatar--size75 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-75); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-75); -} - -.spectrum-Avatar--size100 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-100); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-100); -} - -.spectrum-Avatar--size200 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-200); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-200); -} - -.spectrum-Avatar--size300 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-300); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-300); -} - -.spectrum-Avatar--size400 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-400); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-400); -} - -.spectrum-Avatar--size500 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-500); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-500); -} - -.spectrum-Avatar--size600 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-600); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-600); -} - -.spectrum-Avatar--size700 { - --spectrum-avatar-inline-size: var(--spectrum-avatar-size-700); - --spectrum-avatar-block-size: var(--spectrum-avatar-size-700); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-Avatar { @@ -78,6 +20,8 @@ } .spectrum-Avatar { + --spectrum-avatar-border-radius: var(--spectrum-avatar-block-size); + display: inline-block; position: relative; inline-size: var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)); diff --git a/components/avatar/metadata/avatar.yml b/components/avatar/metadata/avatar.yml deleted file mode 100644 index e3d62fded37..00000000000 --- a/components/avatar/metadata/avatar.yml +++ /dev/null @@ -1,116 +0,0 @@ -name: Avatar -status: Verified -description: | - An image representing a user. - - An avatar image is wrapped in a link that uses the `.spectrum-Avatar-link` - class by default, however, an avatar may also be used without a link. - When disabled the avatar should only be used without a link. -SpectrumSiteSlug: https://spectrum.adobe.com/page/avatar/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### A div wrapper is required for avatar - ``` -
    - Avatar -
    - ``` - ### Sizes added to `avatar`. - A second class has to be added to `spectrum-Avatar` to declare which size to use. 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`, and `spectrum-Avatar--size700`. -examples: - - id: avatar - name: Standard - markup: | -
    -
    -

    50

    -
    - - Avatar - -
    -
    -
    -

    75

    -
    - - Avatar - -
    -
    -
    -

    100 (default)

    -
    - - Avatar - -
    -
    -
    -

    200

    -
    - - Avatar - -
    -
    -
    -

    300

    -
    - - Avatar - -
    -
    -
    -

    400

    -
    - - Avatar - -
    -
    -
    -

    500

    -
    - - Avatar - -
    -
    -
    -

    600

    -
    - - Avatar - -
    -
    -
    -

    700

    -
    - - Avatar - -
    -
    -
    - - - id: avatar-no-link - name: No Link - markup: | -
    -
    -

    700

    -
    - Avatar -
    -
    - Disabled Avatar -
    -
    -
    diff --git a/components/avatar/package.json b/components/avatar/package.json index 28147b7d2eb..3d8ae743b0b 100644 --- a/components/avatar/package.json +++ b/components/avatar/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/avatar", - "version": "7.2.0", + "version": "8.0.0-s2-foundations.13", "description": "The Spectrum CSS avatar component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/avatar/stories/template.js b/components/avatar/stories/template.js index ff83e599c37..e62d412d965 100644 --- a/components/avatar/stories/template.js +++ b/components/avatar/stories/template.js @@ -5,6 +5,9 @@ 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-Avatar", diff --git a/components/avatar/themes/express.css b/components/avatar/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/avatar/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/avatar/themes/spectrum-two.css b/components/avatar/themes/spectrum-two.css new file mode 100644 index 00000000000..2de84de0bd6 --- /dev/null +++ b/components/avatar/themes/spectrum-two.css @@ -0,0 +1,72 @@ +/*! + * 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 + * + * 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-Avatar { + --spectrum-avatar-color-opacity: 1; + + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-100); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-100); + + --spectrum-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-avatar-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-avatar-color-opacity-disabled: var(--spectrum-avatar-opacity-disabled); + } + + .spectrum-Avatar--size50 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-50); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-50); + } + + .spectrum-Avatar--size75 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-75); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-75); + } + + .spectrum-Avatar--size100 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-100); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-100); + } + + .spectrum-Avatar--size200 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-200); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-200); + } + + .spectrum-Avatar--size300 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-300); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-300); + } + + .spectrum-Avatar--size400 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-400); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-400); + } + + .spectrum-Avatar--size500 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-500); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-500); + } + + .spectrum-Avatar--size600 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-600); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-600); + } + + .spectrum-Avatar--size700 { + --spectrum-avatar-inline-size: var(--spectrum-avatar-size-700); + --spectrum-avatar-block-size: var(--spectrum-avatar-size-700); + } +} diff --git a/components/avatar/themes/spectrum.css b/components/avatar/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/avatar/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/badge/CHANGELOG.md b/components/badge/CHANGELOG.md index bac8ce05241..6cea36a9cdf 100644 --- a/components/badge/CHANGELOG.md +++ b/components/badge/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 5.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 4.1.3 ### Patch Changes diff --git a/components/badge/index.css b/components/badge/index.css index 62d7b037fe7..62bb0bb0012 100644 --- a/components/badge/index.css +++ b/components/badge/index.css @@ -11,142 +11,12 @@ * governing permissions and limitations under the License. */ -.spectrum-Badge { - /* badge styling for all t-shirt sizes and all themes */ - --spectrum-badge-corner-radius: var(--spectrum-corner-radius-100); - - /* label text styles for all t-shirt sizes and all themes */ - --spectrum-badge-line-height: var(--spectrum-line-height-100); - --spectrum-badge-line-height-cjk: var(--spectrum-cjk-line-height-100); - - /* text and icon color default white for all t-shirt sizes and all themes */ - --spectrum-badge-label-icon-color: var(--spectrum-white); - - /* background color default for all t-shirt sizes and all themes */ - --spectrum-badge-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - - /* semantic background colors for all t-shirt sizes and all themes */ - --spectrum-badge-background-color-accent: var(--spectrum-accent-background-color-default); - --spectrum-badge-background-color-informative: var(--spectrum-informative-background-color-default); - --spectrum-badge-background-color-negative: var(--spectrum-negative-background-color-default); - --spectrum-badge-background-color-positive: var(--spectrum-positive-background-color-default); - --spectrum-badge-background-color-notice: var(--spectrum-notice-background-color-default); - - /* non-semantic background colors */ - --spectrum-badge-background-color-gray: var(--spectrum-gray-background-color-default); - --spectrum-badge-background-color-red: var(--spectrum-red-background-color-default); - --spectrum-badge-background-color-orange: var(--spectrum-orange-background-color-default); - --spectrum-badge-background-color-yellow: var(--spectrum-yellow-background-color-default); - --spectrum-badge-background-color-chartreuse: var(--spectrum-chartreuse-background-color-default); - --spectrum-badge-background-color-celery: var(--spectrum-celery-background-color-default); - --spectrum-badge-background-color-green: var(--spectrum-green-background-color-default); - --spectrum-badge-background-color-seafoam: var(--spectrum-seafoam-background-color-default); - --spectrum-badge-background-color-cyan: var(--spectrum-cyan-background-color-default); - --spectrum-badge-background-color-blue: var(--spectrum-blue-background-color-default); - --spectrum-badge-background-color-indigo: var(--spectrum-indigo-background-color-default); - --spectrum-badge-background-color-purple: var(--spectrum-purple-background-color-default); - --spectrum-badge-background-color-fuchsia: var(--spectrum-fuchsia-background-color-default); - --spectrum-badge-background-color-magenta: var(--spectrum-magenta-background-color-default); - - /*** DEFAULT STYLE fallbacks if no t-shirt size - uses Medium t-shirt styles ***/ - /* badge height - fallback if no t-shirt size */ - --spectrum-badge-height: var(--spectrum-component-height-100); - - /* label font size - fallback if no t-shirt size */ - --spectrum-badge-font-size: var(--spectrum-font-size-100); - - /* label spacing - fallback if no t-shirt size */ - --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-100); - --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-100); - --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-100); - - /* icon size - fallback if no t-shirt size */ - --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-100); - - /* icon spacing - fallback if no t-shirt size */ - --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-100); - --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-100); - --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-100); -} - -/* text and icon color is black for these background colors */ -.spectrum-Badge--orange, -.spectrum-Badge--yellow, -.spectrum-Badge--chartreuse, -.spectrum-Badge--celery { - --spectrum-badge-label-icon-color: var(--spectrum-black); -} - -/* dark theme all non-semantic colors are black */ -.spectrum-Badge--gray, -.spectrum-Badge--red, -.spectrum-Badge--green, -.spectrum-Badge--seafoam, -.spectrum-Badge--cyan, -.spectrum-Badge--blue, -.spectrum-Badge--indigo, -.spectrum-Badge--purple, -.spectrum-Badge--fuchsia, -.spectrum-Badge--magenta { - --spectrum-badge-label-icon-color: var(--spectrum-badge-label-icon-color-primary); -} - -.spectrum-Badge--sizeS { - --spectrum-badge-height: var(--spectrum-component-height-75); - - /* label */ - --spectrum-badge-font-size: var(--spectrum-font-size-75); - --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-75); - --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-75); - --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-75); - - /* icon */ - --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-75); - --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-75); - --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-75); - --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-75); -} - -.spectrum-Badge--sizeL { - --spectrum-badge-height: var(--spectrum-component-height-100); - - /* label */ - --spectrum-badge-font-size: var(--spectrum-font-size-200); - --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-200); - --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-200); - --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-200); - - /* icon */ - --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-200); - --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-200); - --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-200); - --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-200); -} - -.spectrum-Badge--sizeXL { - --spectrum-badge-height: var(--spectrum-component-height-100); - - /* label */ - --spectrum-badge-font-size: var(--spectrum-font-size-300); - --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-300); - --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-300); - --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-300); - - /* icon */ - --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-300); - --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-300); - --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-300); - --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-300); - --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-300); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { .spectrum-Badge { - border-color: CanvasText; /* stylelint-disable-line declaration-property-value-no-unknown */ + border-color: CanvasText; /* stylelint-disable-line declaration-property-value-no-unknown -- Windows High Contrast mode */ } } diff --git a/components/badge/metadata/badge.yml b/components/badge/metadata/badge.yml deleted file mode 100644 index d60ec93ef8d..00000000000 --- a/components/badge/metadata/badge.yml +++ /dev/null @@ -1,256 +0,0 @@ -name: Badge -SpectrumSiteSlug: https://spectrum.adobe.com/page/badge/ -description: | - - Badge may include a label with no icon, an icon with no label, or an icon with a label - - Badge t-shirt sizes correspond to icon sizes - - Fixed positioning impacts the border radius of the badge component - -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Badge now includes icon and label elements - - Label and icon elements must be nested inside a parent container of class `.spectrum-Badge` in order to achieve the correct layout and wrapping behavior. - - Layout of Badge is applied with a display of inline-flex, allowing badge to display as inline while the child elements for the label and icon utilize flexbox for layout. - - ### Badge now includes fixed positioning - - This document represents the border radius style which applies to each position. - - border radius is 0 along the fixed edge of the component. - - The actual component position is not represented in this document. - -examples: - - id: badge - name: Standard - markup: | -
    -
    Neutral
    -
    - -
    -
    Accent
    -
    - -
    -
    Informative
    -
    - -
    -
    Positive
    -
    - -
    -
    Negative
    -
    - -
    -
    Notice
    -
    - - - id: badge-non-semantic - name: Non-Semantic - markup: | -
    -
    Gray
    -
    - -
    -
    Red
    -
    - -
    -
    Orange
    -
    - -
    -
    Yellow
    -
    - -
    -
    Chartreuse
    -
    - -
    -
    Celery
    -
    - -
    -
    Green
    -
    - -
    -
    Seafoam
    -
    - -
    -
    Cyan
    -
    - -
    -
    Blue
    -
    - -
    -
    Indigo
    -
    - -
    -
    Purple
    -
    - -
    -
    Fuchsia
    -
    - -
    -
    Magenta
    -
    - - - id: badge-sizing - name: Sizing - markup: | -

    Label Only

    -
    -
    -
    Small
    -
    - -
    -
    Medium
    -
    - -
    -
    Large
    -
    - -
    -
    Extra Large
    -
    - -
    -
    -
    -
    - -

    Icon Only

    -
    -
    - -
    - -
    - -
    - -
    - -
    - -
    - -
    - -
    -
    -
    -
    - -

    Icon with Label

    -
    -
    - -
    Small
    -
    - -
    - -
    Medium
    -
    - -
    - -
    Large
    -
    - -
    - -
    Extra Large
    -
    - - - id: badge-text-wrapping - name: Text Wrapping - markup: | -
    - -
    Label Text Wrapping Behavior
    -
    - - - id: badge-fixed-edge - name: Fixed Edge - markup: | - -
    -
    -

    Fixed Inline Start

    - -
    - -
    Label Text
    -
    -
    - -
    -

    Fixed Inline End

    - -
    - -
    Label Text
    -
    -
    - -
    -

    Fixed Block Start

    - -
    - -
    Label Text
    -
    -
    - -
    -

    Fixed Block End

    - -
    - -
    Label Text
    -
    -
    - -
    diff --git a/components/badge/package.json b/components/badge/package.json index ac267fc1285..6975780327b 100644 --- a/components/badge/package.json +++ b/components/badge/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/badge", - "version": "4.1.3", + "version": "5.0.0-s2-foundations.13", "description": "The Spectrum CSS badge component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/badge/stories/badge.stories.js b/components/badge/stories/badge.stories.js index d5976ef5ba8..262ba17d3c4 100644 --- a/components/badge/stories/badge.stories.js +++ b/components/badge/stories/badge.stories.js @@ -1,13 +1,11 @@ import { default as IconStories } from "@spectrum-css/icon/stories/icon.stories.js"; +import { ArgGrid } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; import { size } from "@spectrum-css/preview/types"; import pkgJson from "../package.json"; import { BadgeGroup } from "./badge.test.js"; -import { PreviewSets } from "./template.js"; +import { Template } from "./template.js"; -const semanticOptions = ["neutral", "accent", "informative", "positive", "negative"]; -const nonSemanticOptions = ["gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"]; -const fixedOptions = ["none", "fixed-inline-start", "fixed-inline-end", "fixed-block-start", "fixed-block-end"]; /** * A badge element displays a small amount of color-categorized metadata; ideal for getting a user's attention. Some notes about badge: * - Badge t-shirt sizes correspond to icon sizes @@ -50,7 +48,7 @@ export default { type: { summary: "string" }, category: "Advanced", }, - options: fixedOptions, + options: ["none", "fixed-inline-start", "fixed-inline-end", "fixed-block-start", "fixed-block-end"], control: "select", }, }, @@ -73,19 +71,40 @@ Default.args = { }; // ********* DOCS ONLY ********* // -export const SemanticVariants = (args, context) => PreviewSets(semanticOptions, args, context); +export const SemanticVariants = (args, context) => ArgGrid({ + Template, + argKey: "variant", + options: ["neutral", "accent", "informative", "positive", "negative"], + withBorder: false, + ...args, +}, context); +SemanticVariants.args = Default.args; SemanticVariants.tags = ["!dev"]; SemanticVariants.parameters = { chromatic: { disableSnapshot: true }, }; -export const NonSemanticVariants = (args, context) => PreviewSets(nonSemanticOptions, args, context); +export const NonSemanticVariants = (args, context) => ArgGrid({ + Template, + argKey: "variant", + options: ["gray", "red", "orange", "yellow", "chartreuse", "celery", "green", "seafoam", "cyan", "blue", "indigo", "purple", "fuchsia", "magenta"], + withBorder: false, + ...args, +}, context); +NonSemanticVariants.args = Default.args; NonSemanticVariants.tags = ["!dev"]; NonSemanticVariants.parameters = { chromatic: { disableSnapshot: true }, }; -export const FixedVariants = (args, context) => PreviewSets(fixedOptions, args, context); +export const FixedVariants = (args, context) => ArgGrid({ + Template, + argKey: "fixed", + options: ["none", "fixed-inline-start", "fixed-inline-end", "fixed-block-start", "fixed-block-end"], + withBorder: false, + ...args, +}, context); +FixedVariants.args = Default.args; FixedVariants.tags = ["!dev"]; FixedVariants.parameters = { chromatic: { disableSnapshot: true }, diff --git a/components/badge/stories/template.js b/components/badge/stories/template.js index 1bff9f41455..38ea520c979 100644 --- a/components/badge/stories/template.js +++ b/components/badge/stories/template.js @@ -5,9 +5,11 @@ 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 } from "lodash-es"; import "../index.css"; +import "../themes/spectrum.css"; +/* Must be imported last */ +import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Badge", @@ -19,52 +21,31 @@ export const Template = ({ customStyles = {}, customClasses = [], id = getRandomId("badge"), -}) => html` -
    ({ ...a, [c]: true }), {}), - })} - id=${ifDefined(id)} - style=${styleMap(customStyles)} - > - ${when(iconName, () => - Icon({ - iconName, - customClasses: [ - ...(typeof label === "undefined" - ? [`${rootClass}-icon--no-label`] - : []), - `${rootClass}-icon`, - ], - }) - )} - ${when(label, () => html`
    ${label}
    `)} -
    -`; - -export const PreviewSets = (variants, args, context) => html` -
    - ${variants.map((variant) => html` -
    - ${Template({ ...args, variant, label: capitalize(variant) }, context)} -
    - `)} -
    -`; +} = {}) => { + return html` +
    ({ ...a, [c]: true }), {}), + })} + id=${ifDefined(id)} + style=${styleMap(customStyles)} + > + ${when(iconName, () => + Icon({ + iconName, + customClasses: [ + ...(typeof label === "undefined" + ? [`${rootClass}-icon--no-label`] + : []), + `${rootClass}-icon`, + ], + }) + )} + ${when(label, () => html`
    ${label}
    `)} +
    + `; +}; diff --git a/components/badge/themes/express.css b/components/badge/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/badge/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/badge/themes/spectrum-two.css b/components/badge/themes/spectrum-two.css new file mode 100644 index 00000000000..7e1af1bd9d6 --- /dev/null +++ b/components/badge/themes/spectrum-two.css @@ -0,0 +1,146 @@ +/*! + * 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 + * + * 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-Badge { + /* badge styling for all t-shirt sizes and all themes */ + --spectrum-badge-corner-radius: var(--spectrum-corner-radius-100); + + /* label text styles for all t-shirt sizes and all themes */ + --spectrum-badge-line-height: var(--spectrum-line-height-100); + --spectrum-badge-line-height-cjk: var(--spectrum-cjk-line-height-100); + + /* text and icon color default white for all t-shirt sizes and all themes */ + --spectrum-badge-label-icon-color: var(--spectrum-white); + + /* background color default for all t-shirt sizes and all themes */ + --spectrum-badge-background-color-default: var(--spectrum-neutral-subdued-background-color-default); + + /* semantic background colors for all t-shirt sizes and all themes */ + --spectrum-badge-background-color-accent: var(--spectrum-accent-background-color-default); + --spectrum-badge-background-color-informative: var(--spectrum-informative-background-color-default); + --spectrum-badge-background-color-negative: var(--spectrum-negative-background-color-default); + --spectrum-badge-background-color-positive: var(--spectrum-positive-background-color-default); + --spectrum-badge-background-color-notice: var(--spectrum-notice-background-color-default); + + /* non-semantic background colors */ + --spectrum-badge-background-color-gray: var(--spectrum-gray-background-color-default); + --spectrum-badge-background-color-red: var(--spectrum-red-background-color-default); + --spectrum-badge-background-color-orange: var(--spectrum-orange-background-color-default); + --spectrum-badge-background-color-yellow: var(--spectrum-yellow-background-color-default); + --spectrum-badge-background-color-chartreuse: var(--spectrum-chartreuse-background-color-default); + --spectrum-badge-background-color-celery: var(--spectrum-celery-background-color-default); + --spectrum-badge-background-color-green: var(--spectrum-green-background-color-default); + --spectrum-badge-background-color-seafoam: var(--spectrum-seafoam-background-color-default); + --spectrum-badge-background-color-cyan: var(--spectrum-cyan-background-color-default); + --spectrum-badge-background-color-blue: var(--spectrum-blue-background-color-default); + --spectrum-badge-background-color-indigo: var(--spectrum-indigo-background-color-default); + --spectrum-badge-background-color-purple: var(--spectrum-purple-background-color-default); + --spectrum-badge-background-color-fuchsia: var(--spectrum-fuchsia-background-color-default); + --spectrum-badge-background-color-magenta: var(--spectrum-magenta-background-color-default); + + /*** DEFAULT STYLE fallbacks if no t-shirt size - uses Medium t-shirt styles ***/ + /* badge height - fallback if no t-shirt size */ + --spectrum-badge-height: var(--spectrum-component-height-100); + + /* label font size - fallback if no t-shirt size */ + --spectrum-badge-font-size: var(--spectrum-font-size-100); + + /* label spacing - fallback if no t-shirt size */ + --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-100); + --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-100); + --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-100); + + /* icon size - fallback if no t-shirt size */ + --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-100); + + /* icon spacing - fallback if no t-shirt size */ + --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-100); + --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-100); + --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-100); + } + + /* text and icon color is black for these background colors */ + .spectrum-Badge--orange, + .spectrum-Badge--yellow, + .spectrum-Badge--chartreuse, + .spectrum-Badge--celery { + --spectrum-badge-label-icon-color: var(--spectrum-black); + } + + /* dark theme all non-semantic colors are black */ + .spectrum-Badge--gray, + .spectrum-Badge--red, + .spectrum-Badge--green, + .spectrum-Badge--seafoam, + .spectrum-Badge--cyan, + .spectrum-Badge--blue, + .spectrum-Badge--indigo, + .spectrum-Badge--purple, + .spectrum-Badge--fuchsia, + .spectrum-Badge--magenta { + --spectrum-badge-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + } + + .spectrum-Badge--sizeS { + --spectrum-badge-height: var(--spectrum-component-height-75); + + /* label */ + --spectrum-badge-font-size: var(--spectrum-font-size-75); + --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-75); + --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-75); + --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-75); + + /* icon */ + --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-75); + --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-75); + --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-75); + --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-75); + --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-75); + } + + .spectrum-Badge--sizeL { + --spectrum-badge-height: var(--spectrum-component-height-100); + + /* label */ + --spectrum-badge-font-size: var(--spectrum-font-size-200); + --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-200); + --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-200); + --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-200); + + /* icon */ + --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-200); + --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-200); + --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-200); + --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-200); + } + + .spectrum-Badge--sizeXL { + --spectrum-badge-height: var(--spectrum-component-height-100); + + /* label */ + --spectrum-badge-font-size: var(--spectrum-font-size-300); + --spectrum-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-300); + --spectrum-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-300); + --spectrum-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-300); + + /* icon */ + --spectrum-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-300); + --spectrum-badge-icon-text-spacing: var(--spectrum-text-to-visual-300); + --spectrum-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-300); + --spectrum-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-300); + --spectrum-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-300); + } +} diff --git a/components/badge/themes/spectrum.css b/components/badge/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/badge/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/breadcrumb/CHANGELOG.md b/components/breadcrumb/CHANGELOG.md index 7ec32837d16..9070cb8efb5 100644 --- a/components/breadcrumb/CHANGELOG.md +++ b/components/breadcrumb/CHANGELOG.md @@ -1,5 +1,191 @@ # Change Log +## 10.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 10.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 10.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 10.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 10.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 10.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 10.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.0.0-s2-foundations.6 + +### Patch Changes + +- [#2886](https://github.com/adobe/spectrum-css/pull/2886) [`a01ac07`](https://github.com/adobe/spectrum-css/commit/a01ac075ae227574628f72b4c0fe61f1f53792c5) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Ensures disabled breadrumb items behave as expected. They are conditionally left out of tab order depending on their `isDisabled` value. Uses [aria-disabled="true"] and applies `is-disabled` class to `.spectrum-Breadcrumb-itemLink`. + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 10.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 10.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 10.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 10.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 10.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 10.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 9.1.5 ### Patch Changes diff --git a/components/breadcrumb/index.css b/components/breadcrumb/index.css index 11e5a68e03b..62c43480804 100644 --- a/components/breadcrumb/index.css +++ b/components/breadcrumb/index.css @@ -11,100 +11,7 @@ * governing permissions and limitations under the License. */ -.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); - - /* text regular */ - --spectrum-breadcrumbs-line-height: var(--spectrum-line-height-100); - --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-200); - --spectrum-breadcrumbs-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-breadcrumbs-font-weight: var(--spectrum-regular-font-weight); - - /* text regular active item */ - --spectrum-breadcrumbs-font-size-current: var(--spectrum-font-size-200); - --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 */ - --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); - - /* 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); - - /* 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); - --spectrum-breadcrumbs-inline-end: var(--spectrum-breadcrumbs-end-edge-to-text); - - /* menu action button icon spacing */ - --spectrum-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator-icon); - - /* action button spacing */ - --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 */ - --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); - - /* Colors */ - --spectrum-breadcrumbs-text-color: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-breadcrumbs-text-color-current: var(--spectrum-neutral-content-color-default); - --spectrum-breadcrumbs-text-color-disabled: var(--spectrum-disabled-content-color); - --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); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { diff --git a/components/breadcrumb/metadata/breadcrumb.yml b/components/breadcrumb/metadata/breadcrumb.yml deleted file mode 100644 index aac5cae9412..00000000000 --- a/components/breadcrumb/metadata/breadcrumb.yml +++ /dev/null @@ -1,379 +0,0 @@ -name: Breadcrumbs -SpectrumSiteSlug: https://spectrum.adobe.com/page/breadcrumbs/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### New Action Button markup - Action Button requires `.spectrum-ActionButton-icon` class on icons nested inside of Action Button. - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: breadcrumb - name: Standard - status: Verified - markup: | - - - id: breadcrumb-dragged - name: Dragged - status: Verified - markup: | - - - id: breadcrumb-nested - name: Nested - status: Verified - markup: | - - - id: breadcrumb-nested-root - name: Nested (root visible) - status: Verified - markup: | - - - id: breadcrumb-multiline - name: Multiline - status: Verified - markup: | - - - id: breadcrumb-multiline-dragged - name: Multiline (dragged) - status: Verified - markup: | - - - id: breadcrumb-multiline-nested - name: Multiline Nested - status: Verified - markup: | - - - id: breadcrumb-multiline-nested-root - name: Multiline Nested (root visible) - status: Verified - markup: | - - - id: breadcrumb-compact - name: Compact - status: Verified - markup: | - - - id: breadcrumb-compact-nested - name: Compact Nested - status: Verified - markup: | - - - id: breadcrumb-compact-nested-root - name: Compact Nested (root visible) - status: Verified - markup: | - - - id: breadcrumb-disabled - name: Disabled - status: Verified - markup: | - - diff --git a/components/breadcrumb/package.json b/components/breadcrumb/package.json index 6f320d202e6..a6c46c977cb 100644 --- a/components/breadcrumb/package.json +++ b/components/breadcrumb/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/breadcrumb", - "version": "9.1.5", + "version": "10.0.0-s2-foundations.13", "description": "The Spectrum CSS breadcrumb component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/breadcrumb/stories/template.js b/components/breadcrumb/stories/template.js index 67110657dec..bcfa08d6ce5 100644 --- a/components/breadcrumb/stories/template.js +++ b/components/breadcrumb/stories/template.js @@ -6,79 +6,81 @@ 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-Breadcrumbs", - customClasses = [], - items = [], - variant, - isDragged = false, - } = {}, - context = {}, -) => html` - + `; +}; diff --git a/components/breadcrumb/themes/express.css b/components/breadcrumb/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/breadcrumb/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/breadcrumb/themes/spectrum-two.css b/components/breadcrumb/themes/spectrum-two.css new file mode 100644 index 00000000000..43469d54dd8 --- /dev/null +++ b/components/breadcrumb/themes/spectrum-two.css @@ -0,0 +1,109 @@ +/*! + * 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 + * + * 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-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); + + /* text regular */ + --spectrum-breadcrumbs-line-height: var(--spectrum-line-height-100); + --spectrum-breadcrumbs-font-size: var(--spectrum-font-size-200); + --spectrum-breadcrumbs-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-breadcrumbs-font-weight: var(--spectrum-regular-font-weight); + + /* text regular active item */ + --spectrum-breadcrumbs-font-size-current: var(--spectrum-font-size-200); + --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 */ + --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); + + /* 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); + + /* 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); + --spectrum-breadcrumbs-inline-end: var(--spectrum-breadcrumbs-end-edge-to-text); + + /* menu action button icon spacing */ + --spectrum-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator-icon); + + /* action button spacing */ + --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 */ + --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); + + /* Colors */ + --spectrum-breadcrumbs-text-color: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-breadcrumbs-text-color-current: var(--spectrum-neutral-content-color-default); + --spectrum-breadcrumbs-text-color-disabled: var(--spectrum-disabled-content-color); + --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); + } +} diff --git a/components/breadcrumb/themes/spectrum.css b/components/breadcrumb/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/breadcrumb/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/button/CHANGELOG.md b/components/button/CHANGELOG.md index d851493819a..7eaef637775 100644 --- a/components/button/CHANGELOG.md +++ b/components/button/CHANGELOG.md @@ -1,5 +1,206 @@ # Change Log +## 14.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 14.0.0-s2-foundations.14 + +### Minor Changes + +- [#3049](https://github.com/adobe/spectrum-css/pull/3049) [`db528ce`](https://github.com/adobe/spectrum-css/commit/db528ce0a6f7d817e6124604014faf9f4accfc1e) Thanks [@TarunAdobe](https://github.com/TarunAdobe)! - updated content color for button primary variant and fixes swc-342 + +### Patch Changes + +- Updated dependencies [[`db528ce`](https://github.com/adobe/spectrum-css/commit/db528ce0a6f7d817e6124604014faf9f4accfc1e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.20 + +## 14.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0da23e5`](https://github.com/adobe/spectrum-css/commit/0da23e5aee4c2f6298e9690a8c8db9bbe11243f8) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-315]: Static white button mods should be applied at component level + +## 14.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 14.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 14.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 14.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 14.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 14.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 14.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/progresscircle@4.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 14.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 14.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 14.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 14.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 14.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 14.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 13.3.0 ### Minor Changes diff --git a/components/button/index.css b/components/button/index.css index b8cbb8ef146..aec84120376 100644 --- a/components/button/index.css +++ b/components/button/index.css @@ -11,101 +11,17 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; @import "@spectrum-css/commons/basebutton.css"; /* default for all buttons */ -.spectrum-Button { - --spectrum-button-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-button-border-radius: var(--spectrum-corner-radius-100); - --spectrum-button-border-width: var(--spectrum-border-width-200); - --spectrum-button-line-height: 1.2; /* Hack to keep buttons at 32px */ - - --spectrum-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); - --spectrum-button-focus-ring-border-radius: calc(var(--spectrum-button-border-radius) + var(--spectrum-button-focus-ring-gap)); - --spectrum-button-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-button-focus-indicator-color: var(--spectrum-focus-indicator-color); - --spectrum-button-intended-icon-size: var(--spectrum-workflow-icon-size-50); - - --mod-progress-circle-position: absolute; -} - -.spectrum-Button--sizeS { - --spectrum-button-min-width: calc(var(--spectrum-component-height-75) * var(--spectrum-button-minimum-width-multiplier)); - - --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-75); - --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(--spectrum-button-border-width)); - --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-75); - --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-75) - 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--sizeM { - --spectrum-button-min-width: calc(var(--spectrum-component-height-100) * var(--spectrum-button-minimum-width-multiplier)); - - --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-100); - --spectrum-button-height: var(--spectrum-component-height-100); - - --spectrum-button-font-size: var(--spectrum-font-size-100); - - --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-100) - var(--spectrum-button-border-width)); - --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-100); - --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-100) - 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); -} - -.spectrum-Button--sizeL { - --spectrum-button-min-width: calc(var(--spectrum-component-height-200) * var(--spectrum-button-minimum-width-multiplier)); - - --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-200); - --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(--spectrum-button-border-width)); - --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-200); - --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-200) - 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-min-width: calc(var(--spectrum-component-height-300) * var(--spectrum-button-minimum-width-multiplier)); - - --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-300); - --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(--spectrum-button-border-width)); - --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-300); - --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-300) - 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); -} - .spectrum-Button { @extend %spectrum-BaseButton; @extend %spectrum-ButtonWithFocusRing; + /** @passthrough ProgressCircle */ + --mod-progress-circle-position: absolute; + 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; @@ -124,9 +40,10 @@ /* let staticColor variants inherit their color */ color: inherit; - margin-block: var(--mod-button-margin-block); - margin-inline-end: var(--mod-button-margin-right); - margin-inline-start: var(--mod-button-margin-left); + /* Remove button the margin in Firefox and Safari. */ + margin-block: var(--mod-button-margin-block, 0); + margin-inline-end: var(--mod-button-margin-right, 0); + margin-inline-start: var(--mod-button-margin-left, 0); &:hover, &:active { @@ -134,9 +51,9 @@ } .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, var(--spectrum-button-intended-icon-size) - var(--spectrum-icon-block-size, var(--spectrum-button-intended-icon-size))); + /* 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, var(--spectrum-button-intended-icon-size) - var(--spectrum-icon-size, var(--spectrum-button-intended-icon-size))); 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(--_icon-size-difference, 0px) / 2))); @@ -146,11 +63,6 @@ align-self: flex-start; } - /* correct focus indicator radius for t-shirt sizing */ - &::after { - border-radius: calc(var(--mod-button-border-radius, var(--spectrum-button-border-radius)) + var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap))); - } - &.spectrum-Button--iconOnly { min-inline-size: unset; padding: calc(var(--mod-button-edge-to-visual-only, var(--spectrum-button-edge-to-visual-only)) - var(--mod-button-border-width, var(--spectrum-button-border-width))); @@ -174,6 +86,7 @@ a.spectrum-Button { .spectrum-Button-label { @extend %spectrum-ButtonLabel; + 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)); @@ -202,7 +115,7 @@ a.spectrum-Button { position: absolute; inset: 0; 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, var(--spectrum-button-focus-ring-border-radius)); + border-radius: var(--mod-button-focus-ring-border-radius, calc(var(--mod-button-border-radius, var(--spectrum-button-border-radius)) + var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap)))); transition: box-shadow var(--mod-button-animation-duration, var(--spectrum-button-animation-duration)) ease-in-out; pointer-events: none; content: ""; @@ -306,11 +219,18 @@ a.spectrum-Button { /* Static color variants */ -.spectrum-Button--staticWhite { +.spectrum-Button.spectrum-Button--staticWhite { --spectrum-button-focus-indicator-color: var(--mod-static-black-focus-indicator-color, var(--spectrum-static-black-focus-indicator-color)); + + &.is-selected { + --spectrum-button-content-color-default: var(--mod-button-static-content-color, var(--spectrum-button-static-white-content-color-default)); + --spectrum-button-content-color-hover: var(--mod-button-static-content-color, var(--spectrum-button-static-white-content-color-hover)); + --spectrum-button-content-color-down: var(--mod-button-static-content-color, var(--spectrum-button-static-white-content-color-down)); + --spectrum-button-content-color-focus: var(--mod-button-static-content-color, var(--spectrum-button-static-white-content-color-focus)); + } } -.spectrum-Button--staticBlack { +.spectrum-Button.spectrum-Button--staticBlack { --spectrum-button-focus-indicator-color: var(--mod-static-black-focus-indicator-color, var(--spectrum-static-black-focus-indicator-color)); } diff --git a/components/button/metadata/button-accent.yml b/components/button/metadata/button-accent.yml deleted file mode 100644 index 8d3be60b926..00000000000 --- a/components/button/metadata/button-accent.yml +++ /dev/null @@ -1,260 +0,0 @@ -name: Button - accent -status: Verified -description: The call to action button communicates strong emphasis and is reserved for encouraging critical actions. -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Call-to-action-variant -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Fill or Outline class required - All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class. - - ### CTA replaced by Accent with Fill - Replace all `.spectrum-Button--cta` with `.spectrum-Button--accent .spectrum-Button--fill`. - - ### Icon Only - Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label. - Provide an `aria-label` on the button itself when using this variant for accessibility. - - ### T-shirt sizing - Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class. - - ### Change workflow icon size - - Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Button classname | Workflow icon classname | - | -------------------------- | --------------------------------- | - | `.spectrum-Button--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-Button--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-Button--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-Button--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: button-accent - name: Sizing - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-accent-disabled - name: Disabled - markup: | -
    -
    - - - - - -
    -
    - - - id: button-accent-outline - name: Outline - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-accent-outline-disabled - name: Outline- Disabled - markup: | -
    -
    - - - - - -
    -
    diff --git a/components/button/metadata/button-negative.yml b/components/button/metadata/button-negative.yml deleted file mode 100644 index 9acb42c7e1f..00000000000 --- a/components/button/metadata/button-negative.yml +++ /dev/null @@ -1,255 +0,0 @@ -name: Button - negative -status: Verified -description: The negative button is for high emphasis of negative or destructive actions. -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Negative -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Fill or Outline class required - All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class. - - ### Negative replaced by Negative with Outline - Replace all `.spectrum-Button--negative` with `.spectrum-Button--negative .spectrum-Button--outline`. - - ### Negative Quiet replaced by Negative with Outline - Replace all `.spectrum-Button--negative .spectrum-Button--quiet` with `.spectrum-Button--negative .spectrum-Button--outline`. - - ### Icon Only - Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label. - Provide an `aria-label` on the button itself when using this variant for accessibility. - - ### T-shirt sizing - Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class. - - ### Change workflow icon size - - Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Button classname | Workflow icon classname | - | -------------------------- | --------------------------------- | - | `.spectrum-Button--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-Button--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-Button--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-Button--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: button-negative - name: Sizing - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-negative-disabled - name: Disabled - markup: | - - - - - - - - id: button-negative-outline - name: Outline - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-negative-outline-disabled - name: Outline - Disabled - markup: | - - - - - diff --git a/components/button/metadata/button-pending.yml b/components/button/metadata/button-pending.yml deleted file mode 100644 index 1c9fd32a4ec..00000000000 --- a/components/button/metadata/button-pending.yml +++ /dev/null @@ -1,1067 +0,0 @@ -name: Button - pending -status: Verified -description: 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. -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Pending -examples: - - id: button-pending - name: Default (accent, negative, primary, and secondary) - markup: | -
    -
    -

    S

    - - - - - -
    - -
    -

    M (default)

    - - - - - -
    - -
    -

    L

    - - - - - -
    - -
    -

    XL

    - - - - - -
    -
    - - id: button-pending-outline - name: Outline (accent, negative, primary, and secondary) - markup: | -
    -
    -

    S

    - - - - - -
    - -
    -

    M (default)

    - - - - - -
    - -
    -

    L

    - - - - - -
    - -
    -

    XL

    - - - - - -
    -
    - - id: button-pending-static - name: Static white - description: Pending button state is only supported for static white, not for static black. - markup: | -
    -
    -
    -

    S

    - - - - - -
    - -
    -

    M (default)

    - - - - - -
    - -
    -

    L

    - - - - - -
    - -
    -

    XL

    - - - - - -
    -
    -
    - - id: button-pending-static-outline - name: Outline on Static White - description: Pending button state is only supported for static white, not for static black. - markup: | -
    -
    -
    -

    S

    - - - - - -
    - -
    -

    M (default)

    - - - - - -
    - -
    -

    L

    - - - - - -
    - -
    -

    XL

    - - - - - -
    -
    -
    diff --git a/components/button/metadata/button-primary.yml b/components/button/metadata/button-primary.yml deleted file mode 100644 index e7bb7f449ec..00000000000 --- a/components/button/metadata/button-primary.yml +++ /dev/null @@ -1,255 +0,0 @@ -name: Button - primary -status: Verified -description: The primary button is used for medium emphasis. -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Primary -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Fill or Outline class required - All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class. - - ### Primary replaced by Primary with Outline - Replace all `.spectrum-Button--primary` with `.spectrum-Button--primary .spectrum-Button--outline`. - - ### Primary Quiet replaced by Secondary with Outline - Replace all `.spectrum-Button--primary .spectrum-Button--quiet` with `.spectrum-Button--secondary .spectrum-Button--outline`. - - ### Icon Only - Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label. - Provide an `aria-label` on the button itself when using this variant for accessibility. - - ### T-shirt sizing - Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class. - - ### Change workflow icon size - - Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Button classname | Workflow icon classname | - | -------------------------- | --------------------------------- | - | `.spectrum-Button--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-Button--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-Button--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-Button--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: button-primary - name: Sizing - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-primary-disabled - name: Disabled - markup: | - - - - - - - - id: button-primary-outline - name: Outline - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-primary-outline-disabled - name: Outline - Disabled - markup: | - - - - - diff --git a/components/button/metadata/button-secondary.yml b/components/button/metadata/button-secondary.yml deleted file mode 100644 index 7b86a380ffc..00000000000 --- a/components/button/metadata/button-secondary.yml +++ /dev/null @@ -1,255 +0,0 @@ -name: Button - secondary -status: Verified -description: The secondary button is for low emphasis. -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Secondary -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Fill or Outline class required - All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class. - - ### Secondary replaced by Secondary with Outline - Replace all `.spectrum-Button--secondary` with `.spectrum-Button--secondary .spectrum-Button--outline`. - - ### Secondary Quiet replaced by Secondary with Outline - Replace all `.spectrum-Button--secondary .spectrum-Button--quiet` with `.spectrum-Button--secondary .spectrum-Button--outline`. - - ### Icon Only - Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label. - Provide an `aria-label` on the button itself when using this variant for accessibility. - - ### T-shirt sizing - Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class. - - ### Change workflow icon size - - Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Button classname | Workflow icon classname | - | -------------------------- | --------------------------------- | - | `.spectrum-Button--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-Button--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-Button--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-Button--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: button-secondary - name: Sizing - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-secondary - name: Disabled - markup: | - - - - - - - - id: button-secondary - name: Outline - markup: | -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    - - - id: button-secondary-outline-disabled - name: Outline - Disabled - markup: | - - - - - diff --git a/components/button/metadata/button-staticcolor.yml b/components/button/metadata/button-staticcolor.yml deleted file mode 100644 index ae8792424af..00000000000 --- a/components/button/metadata/button-staticcolor.yml +++ /dev/null @@ -1,575 +0,0 @@ -name: Button - static color -status: Verified -description: "When a button needs to be placed on top of a colored background or a visual, use the over background button. In order to implement this button, you must set the CSS color property of a parent element to the same value as the background the button is placed against." -SpectrumSiteSlug: https://spectrum.adobe.com/page/button/#Over-background -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Fill or Outline class required - All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class. - - ### Over background replaced by StaticWhite with Outline - Replace all `.spectrum-Button--overBackground` with `.spectrum-Button--staticWhite .spectrum-Button--outline`. - - ### Over background Quiet replaced by StaticWhite with Outline - Replace all `.spectrum-Button--overBackground .spectrum-Button--quiet` with `.spectrum-Button--staticWhite .spectrum-Button--outline`. - - ### Icon Only - Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label. - Provide an `aria-label` on the button itself when using this variant for accessibility. - - ### T-shirt sizing - Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class. - - ### Change workflow icon size - - Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed: - - | Button classname | Workflow icon classname | - | -------------------------- | --------------------------------- | - | `.spectrum-Button--sizeS` | `.spectrum-Icon--sizeS` | - | `.spectrum-Button--sizeM` | `.spectrum-Icon--sizeM` | - | `.spectrum-Button--sizeL` | `.spectrum-Icon--sizeL` | - | `.spectrum-Button--sizeXL` | `.spectrum-Icon--sizeXL` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: button-staticcolor - name: Static White - markup: | -
    -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    -
    - - - id: button-staticcolor - name: Static White - Disabled - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static White - Secondary - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static Black - markup: | -
    -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    -
    - - - id: button-staticcolor - name: Static Black - Disabled - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static Black - Secondary - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static White - Outline - markup: | -
    -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    -
    - - - id: button-staticcolor - name: Static White - Outline, Disabled - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static White - Outline, Secondary - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static Black - Outline - markup: | -
    -
    -
    -

    S

    - - - - - - -
    -
    -

    M (default)

    - - - - - - -
    - -
    -

    L

    - - - - - - -
    - -
    -

    XL

    - - - - - - -
    -
    -
    - - - id: button-staticcolor - name: Static Black - Outline, Disabled - markup: | -
    - - - - - -
    - - - id: button-staticcolor - name: Static Black - Outline, Secondary - markup: | -
    - - - - - -
    diff --git a/components/button/metadata/metadata.json b/components/button/metadata/metadata.json index c82fc9d582b..7ba7fc4093c 100644 --- a/components/button/metadata/metadata.json +++ b/components/button/metadata/metadata.json @@ -11,8 +11,6 @@ ".spectrum-Button--sizeM", ".spectrum-Button--sizeS", ".spectrum-Button--sizeXL", - ".spectrum-Button--staticBlack", - ".spectrum-Button--staticWhite", ".spectrum-Button-label", ".spectrum-Button-label:empty", ".spectrum-Button.is-disabled", @@ -140,7 +138,6 @@ "--spectrum-button-edge-to-visual", "--spectrum-button-edge-to-visual-only", "--spectrum-button-focus-indicator-color", - "--spectrum-button-focus-ring-border-radius", "--spectrum-button-focus-ring-gap", "--spectrum-button-focus-ring-thickness", "--spectrum-button-font-size", @@ -150,6 +147,10 @@ "--spectrum-button-min-width", "--spectrum-button-minimum-width-multiplier", "--spectrum-button-padding-label-to-icon", + "--spectrum-button-static-white-content-color-default", + "--spectrum-button-static-white-content-color-down", + "--spectrum-button-static-white-content-color-focus", + "--spectrum-button-static-white-content-color-hover", "--spectrum-button-top-to-icon", "--spectrum-button-top-to-text", "--spectrum-button-top-to-text-extra-large", @@ -212,15 +213,16 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", + "--spectrum-gray-25", "--spectrum-gray-400", + "--spectrum-gray-50", "--spectrum-gray-500", "--spectrum-gray-600", - "--spectrum-gray-75", "--spectrum-gray-800", "--spectrum-gray-900", - "--spectrum-icon-block-size", + "--spectrum-icon-size", "--spectrum-line-height-100", "--spectrum-negative-background-color-default", "--spectrum-negative-background-color-down", @@ -255,18 +257,18 @@ "--spectrum-text-to-visual-200", "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-75", - "--spectrum-transparent-black-200", + "--spectrum-transparent-black-1000", "--spectrum-transparent-black-300", "--spectrum-transparent-black-400", "--spectrum-transparent-black-500", "--spectrum-transparent-black-600", - "--spectrum-transparent-black-800", + "--spectrum-transparent-black-700", "--spectrum-transparent-black-900", - "--spectrum-transparent-white-200", + "--spectrum-transparent-white-1000", "--spectrum-transparent-white-300", "--spectrum-transparent-white-400", "--spectrum-transparent-white-500", - "--spectrum-transparent-white-800", + "--spectrum-transparent-white-600", "--spectrum-transparent-white-900", "--spectrum-white", "--spectrum-workflow-icon-size-100", @@ -275,319 +277,7 @@ "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-button-accent-background-color-default", - "--system-spectrum-button-accent-background-color-disabled", - "--system-spectrum-button-accent-background-color-down", - "--system-spectrum-button-accent-background-color-focus", - "--system-spectrum-button-accent-background-color-hover", - "--system-spectrum-button-accent-border-color-default", - "--system-spectrum-button-accent-border-color-disabled", - "--system-spectrum-button-accent-border-color-down", - "--system-spectrum-button-accent-border-color-focus", - "--system-spectrum-button-accent-border-color-hover", - "--system-spectrum-button-accent-content-color-default", - "--system-spectrum-button-accent-content-color-disabled", - "--system-spectrum-button-accent-content-color-down", - "--system-spectrum-button-accent-content-color-focus", - "--system-spectrum-button-accent-content-color-hover", - "--system-spectrum-button-accent-outline-background-color-default", - "--system-spectrum-button-accent-outline-background-color-disabled", - "--system-spectrum-button-accent-outline-background-color-down", - "--system-spectrum-button-accent-outline-background-color-focus", - "--system-spectrum-button-accent-outline-background-color-hover", - "--system-spectrum-button-accent-outline-border-color-default", - "--system-spectrum-button-accent-outline-border-color-disabled", - "--system-spectrum-button-accent-outline-border-color-down", - "--system-spectrum-button-accent-outline-border-color-focus", - "--system-spectrum-button-accent-outline-border-color-hover", - "--system-spectrum-button-accent-outline-content-color-default", - "--system-spectrum-button-accent-outline-content-color-disabled", - "--system-spectrum-button-accent-outline-content-color-down", - "--system-spectrum-button-accent-outline-content-color-focus", - "--system-spectrum-button-accent-outline-content-color-hover", - "--system-spectrum-button-background-color-default", - "--system-spectrum-button-background-color-disabled", - "--system-spectrum-button-background-color-down", - "--system-spectrum-button-background-color-focus", - "--system-spectrum-button-background-color-hover", - "--system-spectrum-button-border-color-default", - "--system-spectrum-button-border-color-disabled", - "--system-spectrum-button-border-color-down", - "--system-spectrum-button-border-color-focus", - "--system-spectrum-button-border-color-hover", - "--system-spectrum-button-content-color-default", - "--system-spectrum-button-content-color-disabled", - "--system-spectrum-button-content-color-down", - "--system-spectrum-button-content-color-focus", - "--system-spectrum-button-content-color-hover", - "--system-spectrum-button-negative-background-color-default", - "--system-spectrum-button-negative-background-color-disabled", - "--system-spectrum-button-negative-background-color-down", - "--system-spectrum-button-negative-background-color-focus", - "--system-spectrum-button-negative-background-color-hover", - "--system-spectrum-button-negative-border-color-default", - "--system-spectrum-button-negative-border-color-disabled", - "--system-spectrum-button-negative-border-color-down", - "--system-spectrum-button-negative-border-color-focus", - "--system-spectrum-button-negative-border-color-hover", - "--system-spectrum-button-negative-content-color-default", - "--system-spectrum-button-negative-content-color-disabled", - "--system-spectrum-button-negative-content-color-down", - "--system-spectrum-button-negative-content-color-focus", - "--system-spectrum-button-negative-content-color-hover", - "--system-spectrum-button-negative-outline-background-color-default", - "--system-spectrum-button-negative-outline-background-color-disabled", - "--system-spectrum-button-negative-outline-background-color-down", - "--system-spectrum-button-negative-outline-background-color-focus", - "--system-spectrum-button-negative-outline-background-color-hover", - "--system-spectrum-button-negative-outline-border-color-default", - "--system-spectrum-button-negative-outline-border-color-disabled", - "--system-spectrum-button-negative-outline-border-color-down", - "--system-spectrum-button-negative-outline-border-color-focus", - "--system-spectrum-button-negative-outline-border-color-hover", - "--system-spectrum-button-negative-outline-content-color-default", - "--system-spectrum-button-negative-outline-content-color-disabled", - "--system-spectrum-button-negative-outline-content-color-down", - "--system-spectrum-button-negative-outline-content-color-focus", - "--system-spectrum-button-negative-outline-content-color-hover", - "--system-spectrum-button-primary-background-color-default", - "--system-spectrum-button-primary-background-color-disabled", - "--system-spectrum-button-primary-background-color-down", - "--system-spectrum-button-primary-background-color-focus", - "--system-spectrum-button-primary-background-color-hover", - "--system-spectrum-button-primary-border-color-default", - "--system-spectrum-button-primary-border-color-disabled", - "--system-spectrum-button-primary-border-color-down", - "--system-spectrum-button-primary-border-color-focus", - "--system-spectrum-button-primary-border-color-hover", - "--system-spectrum-button-primary-content-color-default", - "--system-spectrum-button-primary-content-color-disabled", - "--system-spectrum-button-primary-content-color-down", - "--system-spectrum-button-primary-content-color-focus", - "--system-spectrum-button-primary-content-color-hover", - "--system-spectrum-button-primary-outline-background-color-default", - "--system-spectrum-button-primary-outline-background-color-disabled", - "--system-spectrum-button-primary-outline-background-color-down", - "--system-spectrum-button-primary-outline-background-color-focus", - "--system-spectrum-button-primary-outline-background-color-hover", - "--system-spectrum-button-primary-outline-border-color-default", - "--system-spectrum-button-primary-outline-border-color-disabled", - "--system-spectrum-button-primary-outline-border-color-down", - "--system-spectrum-button-primary-outline-border-color-focus", - "--system-spectrum-button-primary-outline-border-color-hover", - "--system-spectrum-button-primary-outline-content-color-default", - "--system-spectrum-button-primary-outline-content-color-disabled", - "--system-spectrum-button-primary-outline-content-color-down", - "--system-spectrum-button-primary-outline-content-color-focus", - "--system-spectrum-button-primary-outline-content-color-hover", - "--system-spectrum-button-quiet-background-color-default", - "--system-spectrum-button-quiet-background-color-disabled", - "--system-spectrum-button-quiet-background-color-down", - "--system-spectrum-button-quiet-background-color-focus", - "--system-spectrum-button-quiet-background-color-hover", - "--system-spectrum-button-quiet-border-color-default", - "--system-spectrum-button-quiet-border-color-disabled", - "--system-spectrum-button-quiet-border-color-down", - "--system-spectrum-button-quiet-border-color-focus", - "--system-spectrum-button-quiet-border-color-hover", - "--system-spectrum-button-secondary-background-color-default", - "--system-spectrum-button-secondary-background-color-disabled", - "--system-spectrum-button-secondary-background-color-down", - "--system-spectrum-button-secondary-background-color-focus", - "--system-spectrum-button-secondary-background-color-hover", - "--system-spectrum-button-secondary-border-color-default", - "--system-spectrum-button-secondary-border-color-disabled", - "--system-spectrum-button-secondary-border-color-down", - "--system-spectrum-button-secondary-border-color-focus", - "--system-spectrum-button-secondary-border-color-hover", - "--system-spectrum-button-secondary-content-color-default", - "--system-spectrum-button-secondary-content-color-disabled", - "--system-spectrum-button-secondary-content-color-down", - "--system-spectrum-button-secondary-content-color-focus", - "--system-spectrum-button-secondary-content-color-hover", - "--system-spectrum-button-secondary-outline-background-color-default", - "--system-spectrum-button-secondary-outline-background-color-disabled", - "--system-spectrum-button-secondary-outline-background-color-down", - "--system-spectrum-button-secondary-outline-background-color-focus", - "--system-spectrum-button-secondary-outline-background-color-hover", - "--system-spectrum-button-secondary-outline-border-color-default", - "--system-spectrum-button-secondary-outline-border-color-disabled", - "--system-spectrum-button-secondary-outline-border-color-down", - "--system-spectrum-button-secondary-outline-border-color-focus", - "--system-spectrum-button-secondary-outline-border-color-hover", - "--system-spectrum-button-secondary-outline-content-color-default", - "--system-spectrum-button-secondary-outline-content-color-disabled", - "--system-spectrum-button-secondary-outline-content-color-down", - "--system-spectrum-button-secondary-outline-content-color-focus", - "--system-spectrum-button-secondary-outline-content-color-hover", - "--system-spectrum-button-selected-background-color-default", - "--system-spectrum-button-selected-background-color-disabled", - "--system-spectrum-button-selected-background-color-down", - "--system-spectrum-button-selected-background-color-focus", - "--system-spectrum-button-selected-background-color-hover", - "--system-spectrum-button-selected-border-color-default", - "--system-spectrum-button-selected-border-color-disabled", - "--system-spectrum-button-selected-border-color-down", - "--system-spectrum-button-selected-border-color-focus", - "--system-spectrum-button-selected-border-color-hover", - "--system-spectrum-button-selected-content-color-default", - "--system-spectrum-button-selected-content-color-down", - "--system-spectrum-button-selected-content-color-focus", - "--system-spectrum-button-selected-content-color-hover", - "--system-spectrum-button-selected-emphasized-background-color-default", - "--system-spectrum-button-selected-emphasized-background-color-down", - "--system-spectrum-button-selected-emphasized-background-color-focus", - "--system-spectrum-button-selected-emphasized-background-color-hover", - "--system-spectrum-button-staticblack-background-color-default", - "--system-spectrum-button-staticblack-background-color-disabled", - "--system-spectrum-button-staticblack-background-color-down", - "--system-spectrum-button-staticblack-background-color-focus", - "--system-spectrum-button-staticblack-background-color-hover", - "--system-spectrum-button-staticblack-border-color-default", - "--system-spectrum-button-staticblack-border-color-disabled", - "--system-spectrum-button-staticblack-border-color-down", - "--system-spectrum-button-staticblack-border-color-focus", - "--system-spectrum-button-staticblack-border-color-hover", - "--system-spectrum-button-staticblack-content-color-default", - "--system-spectrum-button-staticblack-content-color-disabled", - "--system-spectrum-button-staticblack-content-color-down", - "--system-spectrum-button-staticblack-content-color-focus", - "--system-spectrum-button-staticblack-content-color-hover", - "--system-spectrum-button-staticblack-focus-indicator-color", - "--system-spectrum-button-staticblack-outline-background-color-default", - "--system-spectrum-button-staticblack-outline-background-color-disabled", - "--system-spectrum-button-staticblack-outline-background-color-down", - "--system-spectrum-button-staticblack-outline-background-color-focus", - "--system-spectrum-button-staticblack-outline-background-color-hover", - "--system-spectrum-button-staticblack-outline-border-color-default", - "--system-spectrum-button-staticblack-outline-border-color-disabled", - "--system-spectrum-button-staticblack-outline-border-color-down", - "--system-spectrum-button-staticblack-outline-border-color-focus", - "--system-spectrum-button-staticblack-outline-border-color-hover", - "--system-spectrum-button-staticblack-outline-content-color-default", - "--system-spectrum-button-staticblack-outline-content-color-disabled", - "--system-spectrum-button-staticblack-outline-content-color-down", - "--system-spectrum-button-staticblack-outline-content-color-focus", - "--system-spectrum-button-staticblack-outline-content-color-hover", - "--system-spectrum-button-staticblack-outline-focus-indicator-color", - "--system-spectrum-button-staticblack-quiet-border-color-default", - "--system-spectrum-button-staticblack-quiet-border-color-disabled", - "--system-spectrum-button-staticblack-quiet-border-color-down", - "--system-spectrum-button-staticblack-quiet-border-color-focus", - "--system-spectrum-button-staticblack-quiet-border-color-hover", - "--system-spectrum-button-staticblack-secondary-background-color-default", - "--system-spectrum-button-staticblack-secondary-background-color-disabled", - "--system-spectrum-button-staticblack-secondary-background-color-down", - "--system-spectrum-button-staticblack-secondary-background-color-focus", - "--system-spectrum-button-staticblack-secondary-background-color-hover", - "--system-spectrum-button-staticblack-secondary-border-color-default", - "--system-spectrum-button-staticblack-secondary-border-color-disabled", - "--system-spectrum-button-staticblack-secondary-border-color-down", - "--system-spectrum-button-staticblack-secondary-border-color-focus", - "--system-spectrum-button-staticblack-secondary-border-color-hover", - "--system-spectrum-button-staticblack-secondary-content-color-default", - "--system-spectrum-button-staticblack-secondary-content-color-disabled", - "--system-spectrum-button-staticblack-secondary-content-color-down", - "--system-spectrum-button-staticblack-secondary-content-color-focus", - "--system-spectrum-button-staticblack-secondary-content-color-hover", - "--system-spectrum-button-staticblack-secondary-focus-indicator-color", - "--system-spectrum-button-staticblack-secondary-outline-background-color-default", - "--system-spectrum-button-staticblack-secondary-outline-background-color-disabled", - "--system-spectrum-button-staticblack-secondary-outline-background-color-down", - "--system-spectrum-button-staticblack-secondary-outline-background-color-focus", - "--system-spectrum-button-staticblack-secondary-outline-background-color-hover", - "--system-spectrum-button-staticblack-secondary-outline-border-color-default", - "--system-spectrum-button-staticblack-secondary-outline-border-color-disabled", - "--system-spectrum-button-staticblack-secondary-outline-border-color-down", - "--system-spectrum-button-staticblack-secondary-outline-border-color-focus", - "--system-spectrum-button-staticblack-secondary-outline-border-color-hover", - "--system-spectrum-button-staticblack-secondary-outline-content-color-default", - "--system-spectrum-button-staticblack-secondary-outline-content-color-disabled", - "--system-spectrum-button-staticblack-secondary-outline-content-color-down", - "--system-spectrum-button-staticblack-secondary-outline-content-color-focus", - "--system-spectrum-button-staticblack-secondary-outline-content-color-hover", - "--system-spectrum-button-staticblack-secondary-outline-focus-indicator-color", - "--system-spectrum-button-staticwhite-background-color-default", - "--system-spectrum-button-staticwhite-background-color-disabled", - "--system-spectrum-button-staticwhite-background-color-down", - "--system-spectrum-button-staticwhite-background-color-focus", - "--system-spectrum-button-staticwhite-background-color-hover", - "--system-spectrum-button-staticwhite-border-color-default", - "--system-spectrum-button-staticwhite-border-color-disabled", - "--system-spectrum-button-staticwhite-border-color-down", - "--system-spectrum-button-staticwhite-border-color-focus", - "--system-spectrum-button-staticwhite-border-color-hover", - "--system-spectrum-button-staticwhite-content-color-default", - "--system-spectrum-button-staticwhite-content-color-disabled", - "--system-spectrum-button-staticwhite-content-color-down", - "--system-spectrum-button-staticwhite-content-color-focus", - "--system-spectrum-button-staticwhite-content-color-hover", - "--system-spectrum-button-staticwhite-focus-indicator-color", - "--system-spectrum-button-staticwhite-outline-background-color-default", - "--system-spectrum-button-staticwhite-outline-background-color-disabled", - "--system-spectrum-button-staticwhite-outline-background-color-down", - "--system-spectrum-button-staticwhite-outline-background-color-focus", - "--system-spectrum-button-staticwhite-outline-background-color-hover", - "--system-spectrum-button-staticwhite-outline-border-color-default", - "--system-spectrum-button-staticwhite-outline-border-color-disabled", - "--system-spectrum-button-staticwhite-outline-border-color-down", - "--system-spectrum-button-staticwhite-outline-border-color-focus", - "--system-spectrum-button-staticwhite-outline-border-color-hover", - "--system-spectrum-button-staticwhite-outline-content-color-default", - "--system-spectrum-button-staticwhite-outline-content-color-disabled", - "--system-spectrum-button-staticwhite-outline-content-color-down", - "--system-spectrum-button-staticwhite-outline-content-color-focus", - "--system-spectrum-button-staticwhite-outline-content-color-hover", - "--system-spectrum-button-staticwhite-outline-focus-indicator-color", - "--system-spectrum-button-staticwhite-quiet-border-color-default", - "--system-spectrum-button-staticwhite-quiet-border-color-disabled", - "--system-spectrum-button-staticwhite-quiet-border-color-down", - "--system-spectrum-button-staticwhite-quiet-border-color-focus", - "--system-spectrum-button-staticwhite-quiet-border-color-hover", - "--system-spectrum-button-staticwhite-secondary-background-color-default", - "--system-spectrum-button-staticwhite-secondary-background-color-disabled", - "--system-spectrum-button-staticwhite-secondary-background-color-down", - "--system-spectrum-button-staticwhite-secondary-background-color-focus", - "--system-spectrum-button-staticwhite-secondary-background-color-hover", - "--system-spectrum-button-staticwhite-secondary-border-color-default", - "--system-spectrum-button-staticwhite-secondary-border-color-disabled", - "--system-spectrum-button-staticwhite-secondary-border-color-down", - "--system-spectrum-button-staticwhite-secondary-border-color-focus", - "--system-spectrum-button-staticwhite-secondary-border-color-hover", - "--system-spectrum-button-staticwhite-secondary-content-color-default", - "--system-spectrum-button-staticwhite-secondary-content-color-disabled", - "--system-spectrum-button-staticwhite-secondary-content-color-down", - "--system-spectrum-button-staticwhite-secondary-content-color-focus", - "--system-spectrum-button-staticwhite-secondary-content-color-hover", - "--system-spectrum-button-staticwhite-secondary-focus-indicator-color", - "--system-spectrum-button-staticwhite-secondary-outline-background-color-default", - "--system-spectrum-button-staticwhite-secondary-outline-background-color-disabled", - "--system-spectrum-button-staticwhite-secondary-outline-background-color-down", - "--system-spectrum-button-staticwhite-secondary-outline-background-color-focus", - "--system-spectrum-button-staticwhite-secondary-outline-background-color-hover", - "--system-spectrum-button-staticwhite-secondary-outline-border-color-default", - "--system-spectrum-button-staticwhite-secondary-outline-border-color-disabled", - "--system-spectrum-button-staticwhite-secondary-outline-border-color-down", - "--system-spectrum-button-staticwhite-secondary-outline-border-color-focus", - "--system-spectrum-button-staticwhite-secondary-outline-border-color-hover", - "--system-spectrum-button-staticwhite-secondary-outline-content-color-default", - "--system-spectrum-button-staticwhite-secondary-outline-content-color-disabled", - "--system-spectrum-button-staticwhite-secondary-outline-content-color-down", - "--system-spectrum-button-staticwhite-secondary-outline-content-color-focus", - "--system-spectrum-button-staticwhite-secondary-outline-content-color-hover", - "--system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color", - "--system-spectrum-button-staticwhite-selected-background-color-default", - "--system-spectrum-button-staticwhite-selected-background-color-disabled", - "--system-spectrum-button-staticwhite-selected-background-color-down", - "--system-spectrum-button-staticwhite-selected-background-color-focus", - "--system-spectrum-button-staticwhite-selected-background-color-hover", - "--system-spectrum-button-staticwhite-selected-border-color-disabled", - "--system-spectrum-button-staticwhite-selected-content-color-default", - "--system-spectrum-button-staticwhite-selected-content-color-down", - "--system-spectrum-button-staticwhite-selected-content-color-focus", - "--system-spectrum-button-staticwhite-selected-content-color-hover" - ], + "system-theme": [], "passthroughs": [ "--mod-progress-circle-position", "--mod-progress-circle-thickness", diff --git a/components/button/package.json b/components/button/package.json index 0e4246e236a..860731b4c0a 100644 --- a/components/button/package.json +++ b/components/button/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/button", - "version": "13.3.0", + "version": "14.0.0-s2-foundations.15", "description": "The Spectrum CSS button component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/button/stories/button.stories.js b/components/button/stories/button.stories.js index 0fc0cb8cd6a..476c7a85afd 100644 --- a/components/button/stories/button.stories.js +++ b/components/button/stories/button.stories.js @@ -93,28 +93,6 @@ export const Default = ButtonGroups.bind({}); Default.args = {}; // ********* VRT ONLY ********* // -export const StaticWhite = ButtonGroups.bind({}); -StaticWhite.tags = ["!autodocs", "!dev"]; -StaticWhite.args = { - staticColor: "white", -}; -StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; - -export const StaticBlack = ButtonGroups.bind({}); -StaticBlack.tags = ["!autodocs", "!dev"]; -StaticBlack.args = { - staticColor: "black", -}; -StaticBlack.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; - export const WithForcedColors = ButtonGroups.bind({}); WithForcedColors.args = Default.args; WithForcedColors.tags = ["!autodocs", "!dev"]; @@ -266,7 +244,7 @@ Pending.parameters = { }; /** - * A button in a disabled state shows that an action exists, but is not available in that circumstance. + * 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. */ @@ -281,7 +259,7 @@ Disabled.parameters = { }; /** - * When the button text is too long for the horizontal space available, it wraps to form another line. + * 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. diff --git a/components/button/stories/button.test.js b/components/button/stories/button.test.js index ea61e2fc8cf..7b8496ee540 100644 --- a/components/button/stories/button.test.js +++ b/components/button/stories/button.test.js @@ -45,6 +45,14 @@ export const ButtonGroups = Variants({ variant, treatment: "outline", })), + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, { testHeading: "Text wrapping with workflow icon", customStyles: { diff --git a/components/button/stories/template.js b/components/button/stories/template.js index 00b2c727897..cf4cc30c252 100644 --- a/components/button/stories/template.js +++ b/components/button/stories/template.js @@ -9,6 +9,9 @@ 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", diff --git a/components/button/themes/express.css b/components/button/themes/express.css index 0aa78f6519c..76c7da2854e 100644 --- a/components/button/themes/express.css +++ b/components/button/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Button { --spectrum-button-background-color-default: var(--spectrum-gray-200); --spectrum-button-background-color-hover: var(--spectrum-gray-300); diff --git a/components/button/themes/spectrum-two.css b/components/button/themes/spectrum-two.css new file mode 100644 index 00000000000..3c2f1ad10c1 --- /dev/null +++ b/components/button/themes/spectrum-two.css @@ -0,0 +1,540 @@ +/*! + * 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 + * + * 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-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-button-border-radius: var(--spectrum-corner-radius-100); + --spectrum-button-border-width: var(--spectrum-border-width-200); + --spectrum-button-line-height: 1.2; /* Hack to keep buttons at 32px */ + + --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-intended-icon-size: var(--spectrum-workflow-icon-size-50); + + --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-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-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); + + &.spectrum-Button--accent { + --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); + + --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-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-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-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-accent-color-200); + --spectrum-button-background-color-down: var(--spectrum-accent-color-300); + --spectrum-button-background-color-focus: var(--spectrum-accent-color-200); + + --spectrum-button-border-color-default: var(--spectrum-accent-color-900); + --spectrum-button-border-color-hover: var(--spectrum-accent-color-1000); + --spectrum-button-border-color-down: var(--spectrum-accent-color-1100); + --spectrum-button-border-color-focus: var(--spectrum-accent-color-1000); + + --spectrum-button-content-color-default: var(--spectrum-accent-content-color-default); + --spectrum-button-content-color-hover: var(--spectrum-accent-content-color-hover); + --spectrum-button-content-color-down: var(--spectrum-accent-content-color-down); + --spectrum-button-content-color-focus: var(--spectrum-accent-content-color-key-focus); + + --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); + } + } + + &.spectrum-Button--negative { + --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); + + --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-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-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-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-negative-color-200); + --spectrum-button-background-color-down: var(--spectrum-negative-color-300); + --spectrum-button-background-color-focus: var(--spectrum-negative-color-200); + + --spectrum-button-border-color-default: var(--spectrum-negative-color-900); + --spectrum-button-border-color-hover: var(--spectrum-negative-color-1000); + --spectrum-button-border-color-down: var(--spectrum-negative-color-1100); + --spectrum-button-border-color-focus: var(--spectrum-negative-color-1000); + + --spectrum-button-content-color-default: var(--spectrum-negative-content-color-default); + --spectrum-button-content-color-hover: var(--spectrum-negative-content-color-hover); + --spectrum-button-content-color-down: var(--spectrum-negative-content-color-down); + --spectrum-button-content-color-focus: var(--spectrum-negative-content-color-key-focus); + + --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); + } + } + + &.spectrum-Button--primary { + --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-border-color-default: transparent; + --spectrum-button-border-color-hover: transparent; + --spectrum-button-border-color-down: transparent; + --spectrum-button-border-color-focus: transparent; + + --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-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-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-gray-200); + --spectrum-button-background-color-down: var(--spectrum-gray-400); + --spectrum-button-background-color-focus: var(--spectrum-gray-200); + + --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); + + --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); + } + } + + &.spectrum-Button--secondary { + --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-400); + --spectrum-button-background-color-focus: var(--spectrum-gray-200); + + --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-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-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-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-gray-200); + --spectrum-button-background-color-down: var(--spectrum-gray-400); + --spectrum-button-background-color-focus: var(--spectrum-gray-200); + + --spectrum-button-border-color-default: var(--spectrum-gray-200); + --spectrum-button-border-color-hover: var(--spectrum-gray-400); + --spectrum-button-border-color-down: var(--spectrum-gray-500); + --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-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); + } + } + + &.spectrum-Button--quiet { + --spectrum-button-background-color-default: transparent; + --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: transparent; + --spectrum-button-border-color-hover: transparent; + --spectrum-button-border-color-down: transparent; + --spectrum-button-border-color-focus: transparent; + + --spectrum-button-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: transparent; + } + + &.is-selected { + --spectrum-button-background-color-default: var(--spectrum-neutral-subdued-background-color-default); + --spectrum-button-background-color-hover: var(--spectrum-neutral-subdued-background-color-hover); + --spectrum-button-background-color-down: var(--spectrum-neutral-subdued-background-color-down); + --spectrum-button-background-color-focus: var(--spectrum-neutral-subdued-background-color-key-focus); + + --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-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-background-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-button-border-color-disabled: transparent; + + &.spectrum-Button--emphasized { + --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); + } + } + + &.spectrum-Button--staticBlack, + &.spectrum-Button--staticWhite { + &.spectrum-Button--quiet { + --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-border-color-disabled: transparent; + } + } + + /* static white */ + &.spectrum-Button--staticWhite { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-900); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-1000); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-1000); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-1000); + + --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-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-focus-indicator-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--outline { + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-400); + + --spectrum-button-border-color-default: var(--spectrum-transparent-white-900); + --spectrum-button-border-color-hover: var(--spectrum-transparent-white-1000); + --spectrum-button-border-color-down: var(--spectrum-transparent-white-1000); + --spectrum-button-border-color-focus: var(--spectrum-transparent-white-1000); + + --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-white-focus-indicator-color); + + --spectrum-button-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + } + + &.is-selected { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-900); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-1000); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-1000); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-1000); + + --spectrum-button-static-white-content-color-default: var(--spectrum-black); + --spectrum-button-static-white-content-color-hover: var(--spectrum-black); + --spectrum-button-static-white-content-color-down: var(--spectrum-black); + --spectrum-button-static-white-content-color-focus: var(--spectrum-black); + + --spectrum-button-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + --spectrum-button-border-color-disabled: transparent; + } + } + + &.spectrum-Button--staticWhite.spectrum-Button--secondary { + --spectrum-button-background-color-default: var(--spectrum-transparent-white-300); + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-400); + + --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-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-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--outline { + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-transparent-white-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-white-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-white-400); + + --spectrum-button-border-color-default: var(--spectrum-transparent-white-400); + --spectrum-button-border-color-hover: var(--spectrum-transparent-white-500); + --spectrum-button-border-color-down: var(--spectrum-transparent-white-600); + --spectrum-button-border-color-focus: var(--spectrum-transparent-white-500); + + --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-white-focus-indicator-color); + + --spectrum-button-background-color-disabled: transparent; + --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + } + } + + /* static black */ + &.spectrum-Button--staticBlack { + --spectrum-button-background-color-default: var(--spectrum-transparent-black-900); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-1000); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-1000); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-1000); + + --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-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 { + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-400); + + --spectrum-button-border-color-default: var(--spectrum-transparent-black-500); + --spectrum-button-border-color-hover: var(--spectrum-transparent-black-600); + --spectrum-button-border-color-down: var(--spectrum-transparent-black-700); + --spectrum-button-border-color-focus: var(--spectrum-transparent-black-600); + + --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-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + + --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--staticBlack.spectrum-Button--secondary { + --spectrum-button-background-color-default: var(--spectrum-transparent-black-300); + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-400); + + --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-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-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 { + --spectrum-button-background-color-default: transparent; + --spectrum-button-background-color-hover: var(--spectrum-transparent-black-400); + --spectrum-button-background-color-down: var(--spectrum-transparent-black-500); + --spectrum-button-background-color-focus: var(--spectrum-transparent-black-400); + + --spectrum-button-border-color-default: var(--spectrum-transparent-black-400); + --spectrum-button-border-color-hover: var(--spectrum-transparent-black-500); + --spectrum-button-border-color-down: var(--spectrum-transparent-black-600); + --spectrum-button-border-color-focus: var(--spectrum-transparent-black-500); + + --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-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + + --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--sizeS { + --spectrum-button-min-width: calc(var(--spectrum-component-height-75) * var(--spectrum-button-minimum-width-multiplier)); + + --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-75); + --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(--spectrum-button-border-width)); + --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-75); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-75) - 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--sizeM { + --spectrum-button-min-width: calc(var(--spectrum-component-height-100) * var(--spectrum-button-minimum-width-multiplier)); + + --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-100); + --spectrum-button-height: var(--spectrum-component-height-100); + + --spectrum-button-font-size: var(--spectrum-font-size-100); + + --spectrum-button-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-100) - var(--spectrum-button-border-width)); + --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-100); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-100) - 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); + } + + .spectrum-Button--sizeL { + --spectrum-button-min-width: calc(var(--spectrum-component-height-200) * var(--spectrum-button-minimum-width-multiplier)); + + --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-200); + --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(--spectrum-button-border-width)); + --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-200); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-200) - 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-min-width: calc(var(--spectrum-component-height-300) * var(--spectrum-button-minimum-width-multiplier)); + + --spectrum-button-border-radius: var(--spectrum-component-pill-edge-to-text-300); + --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(--spectrum-button-border-width)); + --spectrum-button-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-300); + --spectrum-button-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-300) - 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); + } +} diff --git a/components/button/themes/spectrum.css b/components/button/themes/spectrum.css index 851cb0efd65..5eec00363ce 100644 --- a/components/button/themes/spectrum.css +++ b/components/button/themes/spectrum.css @@ -11,7 +11,12 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .spectrum-Button { --spectrum-button-background-color-default: var(--spectrum-gray-75); --spectrum-button-background-color-hover: var(--spectrum-gray-200); @@ -23,121 +28,14 @@ --spectrum-button-border-color-down: var(--spectrum-gray-600); --spectrum-button-border-color-focus: var(--spectrum-gray-500); - --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-background-color-disabled: transparent; - --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); - --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); - - &.spectrum-Button--accent { - --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); - - --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-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-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-default: transparent; - --spectrum-button-background-color-hover: var(--spectrum-accent-color-200); - --spectrum-button-background-color-down: var(--spectrum-accent-color-300); - --spectrum-button-background-color-focus: var(--spectrum-accent-color-200); - - --spectrum-button-border-color-default: var(--spectrum-accent-color-900); - --spectrum-button-border-color-hover: var(--spectrum-accent-color-1000); - --spectrum-button-border-color-down: var(--spectrum-accent-color-1100); - --spectrum-button-border-color-focus: var(--spectrum-accent-color-1000); - - --spectrum-button-content-color-default: var(--spectrum-accent-content-color-default); - --spectrum-button-content-color-hover: var(--spectrum-accent-content-color-hover); - --spectrum-button-content-color-down: var(--spectrum-accent-content-color-down); - --spectrum-button-content-color-focus: var(--spectrum-accent-content-color-key-focus); - - --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); - } - } - - &.spectrum-Button--negative { - --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); - - --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-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-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-default: transparent; - --spectrum-button-background-color-hover: var(--spectrum-negative-color-200); - --spectrum-button-background-color-down: var(--spectrum-negative-color-300); - --spectrum-button-background-color-focus: var(--spectrum-negative-color-200); - - --spectrum-button-border-color-default: var(--spectrum-negative-color-900); - --spectrum-button-border-color-hover: var(--spectrum-negative-color-1000); - --spectrum-button-border-color-down: var(--spectrum-negative-color-1100); - --spectrum-button-border-color-focus: var(--spectrum-negative-color-1000); - - --spectrum-button-content-color-default: var(--spectrum-negative-content-color-default); - --spectrum-button-content-color-hover: var(--spectrum-negative-content-color-hover); - --spectrum-button-content-color-down: var(--spectrum-negative-content-color-down); - --spectrum-button-content-color-focus: var(--spectrum-negative-content-color-key-focus); - - --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); - } - } - &.spectrum-Button--primary { - --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-border-color-default: transparent; - --spectrum-button-border-color-hover: transparent; - --spectrum-button-border-color-down: transparent; - --spectrum-button-border-color-focus: transparent; --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-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-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-gray-300); --spectrum-button-background-color-down: var(--spectrum-gray-400); --spectrum-button-background-color-focus: var(--spectrum-gray-300); @@ -146,15 +44,6 @@ --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); - - --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); } } @@ -164,22 +53,7 @@ --spectrum-button-background-color-down: var(--spectrum-gray-400); --spectrum-button-background-color-focus: var(--spectrum-gray-300); - --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-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-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-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-gray-300); --spectrum-button-background-color-down: var(--spectrum-gray-400); --spectrum-button-background-color-focus: var(--spectrum-gray-300); @@ -188,98 +62,16 @@ --spectrum-button-border-color-hover: var(--spectrum-gray-400); --spectrum-button-border-color-down: var(--spectrum-gray-500); --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-background-color-disabled: transparent; - --spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); - --spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); } } - &.spectrum-Button--quiet { - --spectrum-button-background-color-default: transparent; - --spectrum-button-background-color-hover: var(--spectrum-gray-200); - --spectrum-button-background-color-down: var(--spectrum-gray-300); - --spectrum-button-background-color-focus: var(--spectrum-gray-200); - - --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: transparent; - --spectrum-button-border-color-disabled: transparent; - } - - &.is-selected { - --spectrum-button-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --spectrum-button-background-color-hover: var(--spectrum-neutral-subdued-background-color-hover); - --spectrum-button-background-color-down: var(--spectrum-neutral-subdued-background-color-down); - --spectrum-button-background-color-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - - --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-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-background-color-disabled: var(--spectrum-disabled-background-color); - --spectrum-button-border-color-disabled: transparent; - - &.spectrum-Button--emphasized { - --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); - } - } - - &.spectrum-Button--staticBlack, - &.spectrum-Button--staticWhite { - &.spectrum-Button--quiet { - --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-border-color-disabled: transparent; - } - } - - /* static white */ - &.spectrum-Button--staticWhite { --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-border-color-default: transparent; - --spectrum-button-border-color-hover: transparent; - --spectrum-button-border-color-down: transparent; - --spectrum-button-border-color-focus: 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-focus-indicator-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--outline { - --spectrum-button-background-color-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-transparent-white-300); --spectrum-button-background-color-down: var(--spectrum-transparent-white-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-white-300); @@ -288,17 +80,6 @@ --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-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-white-focus-indicator-color); - - --spectrum-button-background-color-disabled: transparent; - --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); } &.is-selected { @@ -306,14 +87,6 @@ --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-content-color-default: var(--mod-button-static-content-color, var(--spectrum-black)); - --spectrum-button-content-color-hover: var(--mod-button-static-content-color, var(--spectrum-black)); - --spectrum-button-content-color-down: var(--mod-button-static-content-color, var(--spectrum-black)); - --spectrum-button-content-color-focus: var(--mod-button-static-content-color, var(--spectrum-black)); - - --spectrum-button-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --spectrum-button-border-color-disabled: transparent; } } @@ -323,24 +96,7 @@ --spectrum-button-background-color-down: var(--spectrum-transparent-white-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-white-300); - --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-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-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--outline { - --spectrum-button-background-color-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-transparent-white-300); --spectrum-button-background-color-down: var(--spectrum-transparent-white-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-white-300); @@ -349,45 +105,16 @@ --spectrum-button-border-color-hover: var(--spectrum-transparent-white-400); --spectrum-button-border-color-down: var(--spectrum-transparent-white-500); --spectrum-button-border-color-focus: var(--spectrum-transparent-white-400); - - --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-white-focus-indicator-color); - - --spectrum-button-background-color-disabled: transparent; - --spectrum-button-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --spectrum-button-content-color-disabled: var(--spectrum-disabled-static-white-content-color); } } - /* static black */ &.spectrum-Button--staticBlack { --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-border-color-default: transparent; - --spectrum-button-border-color-hover: transparent; - --spectrum-button-border-color-down: transparent; - --spectrum-button-border-color-focus: transparent; - - --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 { - --spectrum-button-background-color-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-transparent-black-300); --spectrum-button-background-color-down: var(--spectrum-transparent-black-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-black-300); @@ -396,17 +123,6 @@ --spectrum-button-border-color-hover: var(--spectrum-transparent-black-500); --spectrum-button-border-color-down: var(--spectrum-transparent-black-600); --spectrum-button-border-color-focus: var(--spectrum-transparent-black-500); - - --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-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - - --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); } } @@ -416,24 +132,7 @@ --spectrum-button-background-color-down: var(--spectrum-transparent-black-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-black-300); - --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-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-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 { - --spectrum-button-background-color-default: transparent; --spectrum-button-background-color-hover: var(--spectrum-transparent-black-300); --spectrum-button-background-color-down: var(--spectrum-transparent-black-400); --spectrum-button-background-color-focus: var(--spectrum-transparent-black-300); @@ -442,17 +141,6 @@ --spectrum-button-border-color-hover: var(--spectrum-transparent-black-400); --spectrum-button-border-color-down: var(--spectrum-transparent-black-500); --spectrum-button-border-color-focus: var(--spectrum-transparent-black-400); - - --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-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - - --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); } } } diff --git a/components/buttongroup/CHANGELOG.md b/components/buttongroup/CHANGELOG.md index bb217a5a3af..164dbb79254 100644 --- a/components/buttongroup/CHANGELOG.md +++ b/components/buttongroup/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 8.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 7.1.3 ### Patch Changes diff --git a/components/buttongroup/index.css b/components/buttongroup/index.css index 2d3fa7ac5ff..ebedcd9c2aa 100644 --- a/components/buttongroup/index.css +++ b/components/buttongroup/index.css @@ -11,30 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-ButtonGroup { - --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); - --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); -} - -.spectrum-ButtonGroup--sizeS { - --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-200); - --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-200); -} - -.spectrum-ButtonGroup--sizeM { - --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); - --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); -} - -.spectrum-ButtonGroup--sizeL { - --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); - --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); -} - -.spectrum-ButtonGroup--sizeXL { - --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); - --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); -} +@import "./themes/spectrum-two.css"; .spectrum-ButtonGroup { display: flex; diff --git a/components/buttongroup/metadata/buttongroup.yml b/components/buttongroup/metadata/buttongroup.yml deleted file mode 100644 index 7b208e22716..00000000000 --- a/components/buttongroup/metadata/buttongroup.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Button group -SpectrumSiteSlug: https://spectrum.adobe.com/page/button-group/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: buttongroup-horizontal - name: Horizontal - description: | - Default spacing for Medium, Large, and Extra Large t-shirt sizes. - markup: | -
    - - - -
    - - - id: buttongroup-horizontal-small - name: Horizontal - Small - description: | - Spacing for the Small t-shirt size. - markup: | -
    - - - -
    - - - id: buttongroup-vertical - name: Vertical - description: | - Default spacing for Medium, Large, and Extra Large t-shirt sizes. - markup: | -
    - - - -
    - - - id: buttongroup-vertical-small - name: Vertical - Small - description: | - Spacing for the Small t-shirt size. - markup: | -
    - - - -
    diff --git a/components/buttongroup/package.json b/components/buttongroup/package.json index 258d641d89d..acd2862fcf8 100644 --- a/components/buttongroup/package.json +++ b/components/buttongroup/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/buttongroup", - "version": "7.1.3", + "version": "8.0.0-s2-foundations.13", "description": "The Spectrum CSS buttongroup component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/buttongroup/stories/template.js b/components/buttongroup/stories/template.js index 1d85c23d2cc..464b4908442 100644 --- a/components/buttongroup/stories/template.js +++ b/components/buttongroup/stories/template.js @@ -3,6 +3,9 @@ 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-ButtonGroup", @@ -15,8 +18,7 @@ export const Template = ({
    ({ ...a, [c]: true }), {}), })} diff --git a/components/buttongroup/themes/express.css b/components/buttongroup/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/buttongroup/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/buttongroup/themes/spectrum-two.css b/components/buttongroup/themes/spectrum-two.css new file mode 100644 index 00000000000..9458f27755c --- /dev/null +++ b/components/buttongroup/themes/spectrum-two.css @@ -0,0 +1,39 @@ +/*! + * 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 + * + * 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-ButtonGroup { + --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); + --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); + } + + .spectrum-ButtonGroup--sizeS { + --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-200); + --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-200); + } + + .spectrum-ButtonGroup--sizeM { + --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); + --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); + } + + .spectrum-ButtonGroup--sizeL { + --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); + --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); + } + + .spectrum-ButtonGroup--sizeXL { + --spectrum-buttongroup-spacing-horizontal: var(--spectrum-spacing-300); + --spectrum-buttongroup-spacing-vertical: var(--spectrum-spacing-300); + } +} diff --git a/components/buttongroup/themes/spectrum.css b/components/buttongroup/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/buttongroup/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/calendar/CHANGELOG.md b/components/calendar/CHANGELOG.md index 112f8d8d28e..1c21038462c 100644 --- a/components/calendar/CHANGELOG.md +++ b/components/calendar/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.2.0 ### Minor Changes diff --git a/components/calendar/index.css b/components/calendar/index.css index 271286337ad..22af5998ba5 100644 --- a/components/calendar/index.css +++ b/components/calendar/index.css @@ -11,55 +11,17 @@ * governing permissions and limitations under the License. */ +@import "./themes/spectrum-two.css"; + .spectrum-Calendar { - --spectrum-calendar-day-width: var(--spectrum-component-height-100); - --spectrum-calendar-day-height: var(--spectrum-component-height-100); - --spectrum-calendar-border-radius-reset: 0; - --spectrum-calendar-border-width-reset: 0; - --spectrum-calendar-day-border-size: var(--spectrum-border-width-200); - --spectrum-calendar-margin-y: 24px; - --spectrum-calendar-margin-x: 32px; - --spectrum-calendar-day-padding: 4px; - --spectrum-calendar-width: calc((var(--spectrum-calendar-day-width) + var(--spectrum-calendar-day-padding) * 2) * 7); - - --spectrum-calendar-title-text-letter-spacing: 0.06em; - --spectrum-calendar-title-height: 32px; - --spectrum-calendar-title-text-size: var(--spectrum-font-size-300); - - --spectrum-calendar-day-title-text-font-weight: var(--spectrum-bold-font-weight); - --spectrum-calendar-day-title-text-color: var(--spectrum-gray-700); - --spectrum-calendar-day-title-text-size: var(--spectrum-font-size-50); - --spectrum-calendar-day-text-size-han: var(--spectrum-font-size-50); - - --spectrum-calendar-day-text-size: var(--spectrum-font-size-100); - --spectrum-calendar-day-text-color-selected: var(--spectrum-gray-900); - --spectrum-calendar-day-text-color-hover: var(--spectrum-gray-900); - --spectrum-calendar-day-text-color-cap-selected: var(--spectrum-gray-900); - --spectrum-calendar-day-text-font-weight-selected: var(--spectrum-bold-font-weight); - --spectrum-calendar-day-text-font-weight-cap-selected: var(--spectrum-bold-font-weight); - - --spectrum-calendar-day-today-text-color: var(--spectrum-gray-800); - --spectrum-calendar-day-today-text-font-weight: var(--spectrum-bold-font-weight); - --spectrum-calendar-day-today-border-color: var(--spectrum-gray-800); - - --spectrum-calendar-day-today-text-color-disabled: var(--spectrum-gray-500); - --spectrum-calendar-day-today-border-color-disabled: var(--spectrum-gray-400); - --spectrum-calendar-day-text-color-disabled: var(--spectrum-disabled-content-color); - - --spectrum-calendar-day-text-color-key-focus: var(--spectrum-gray-900); - - --spectrum-calendar-button-icon-color: var(--spectrum-gray-700); + inline-size: var(--mod-calendar-width, var(--spectrum-calendar-width)); + display: inline-block; &:dir(rtl) { --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); } } -.spectrum-Calendar { - inline-size: var(--mod-calendar-width, var(--spectrum-calendar-width)); - display: inline-block; -} - .spectrum-Calendar--padded { margin: var(--mod-calendar-margin-x, var(--spectrum-calendar-margin-x)) var(--mod-calendar-margin-y, var(--spectrum-calendar-margin-y)); } @@ -132,6 +94,7 @@ /* Add letter spacing of 0.66px from Typography > Detail issue #407 */ letter-spacing: var(--mod-calendar-title-text-letter-spacing, var(--spectrum-calendar-title-text-letter-spacing)); + } } @@ -436,6 +399,7 @@ --highcontrast-calendar-day-today-text-color-disabled: GrayText; --highcontrast-calendar-day-today-text-color: ButtonText; + color: CanvasText; forced-color-adjust: none; &.is-range-selection { diff --git a/components/calendar/metadata/calendar.yml b/components/calendar/metadata/calendar.yml deleted file mode 100644 index 06611f7c127..00000000000 --- a/components/calendar/metadata/calendar.yml +++ /dev/null @@ -1,458 +0,0 @@ -name: Calendar -sections: - - name: Migration Guide - description: | - ### Previous/Next Icon size change - ChevronLeftLarge/ChevronRightLarge was changed to ChevronLeftMedium/ChevronRightMedium. -examples: - - id: calendar - name: Standard - markup: | -
    -
    -
    August 2017
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - id: calendar - name: Standard with calendar day of the week abbreviations - markup: | -
    -
    -
    August 2017
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - id: calendar - name: Disabled - markup: | -
    -
    -
    August 2017
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - id: calendar - name: Focused - markup: | -
    -
    -
    August 2017
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - id: calendar - name: Range Selection - description: | - A calendar with a range selected. - `.is-selection-start` goes on the first day in the selection, and `.is-range-start` goes on the first day of each week or month in the middle of a selection (but not the first day of the selection). - `.is-selection-end` goes on the last day of the selection, and `.is-range-end` goes on the last day of each week or month in the middle of the selection (but not on the last day of the selection). - markup: | -
    -
    -
    August 2017
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    diff --git a/components/calendar/package.json b/components/calendar/package.json index 7d0f3f86e4f..ba756564ad6 100644 --- a/components/calendar/package.json +++ b/components/calendar/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/calendar", - "version": "5.2.0", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS calendar component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/calendar/stories/template.js b/components/calendar/stories/template.js index 2a739d64bcf..2180fa9cca8 100644 --- a/components/calendar/stories/template.js +++ b/components/calendar/stories/template.js @@ -8,6 +8,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/calendar/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..11e905c488f --- /dev/null +++ b/components/calendar/themes/spectrum-two.css @@ -0,0 +1,54 @@ +/*! + * 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 + * + * 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-width: var(--spectrum-component-height-100); + --spectrum-calendar-day-height: var(--spectrum-component-height-100); + --spectrum-calendar-border-radius-reset: 0; + --spectrum-calendar-border-width-reset: 0; + --spectrum-calendar-day-border-size: var(--spectrum-border-width-200); + --spectrum-calendar-margin-y: 24px; + --spectrum-calendar-margin-x: 32px; + --spectrum-calendar-day-padding: 4px; + --spectrum-calendar-width: calc((var(--spectrum-calendar-day-width) + var(--spectrum-calendar-day-padding) * 2) * 7); + + --spectrum-calendar-title-text-letter-spacing: 0.06em; + --spectrum-calendar-title-height: 32px; + --spectrum-calendar-title-text-size: var(--spectrum-font-size-300); + + --spectrum-calendar-day-title-text-font-weight: var(--spectrum-bold-font-weight); + --spectrum-calendar-day-title-text-color: var(--spectrum-gray-700); + --spectrum-calendar-day-title-text-size: var(--spectrum-font-size-50); + --spectrum-calendar-day-text-size-han: var(--spectrum-font-size-50); + + --spectrum-calendar-day-text-size: var(--spectrum-font-size-100); + --spectrum-calendar-day-text-color-selected: var(--spectrum-gray-900); + --spectrum-calendar-day-text-color-hover: var(--spectrum-gray-900); + --spectrum-calendar-day-text-color-cap-selected: var(--spectrum-gray-900); + --spectrum-calendar-day-text-font-weight-selected: var(--spectrum-bold-font-weight); + --spectrum-calendar-day-text-font-weight-cap-selected: var(--spectrum-bold-font-weight); + + --spectrum-calendar-day-today-text-color: var(--spectrum-gray-800); + --spectrum-calendar-day-today-text-font-weight: var(--spectrum-bold-font-weight); + --spectrum-calendar-day-today-border-color: var(--spectrum-gray-800); + + --spectrum-calendar-day-today-text-color-disabled: var(--spectrum-gray-500); + --spectrum-calendar-day-today-border-color-disabled: var(--spectrum-gray-400); + --spectrum-calendar-day-text-color-disabled: var(--spectrum-disabled-content-color); + + --spectrum-calendar-day-text-color-key-focus: var(--spectrum-gray-900); + + --spectrum-calendar-button-icon-color: var(--spectrum-gray-700); + } +} diff --git a/components/calendar/themes/spectrum.css b/components/calendar/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/calendar/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/card/CHANGELOG.md b/components/card/CHANGELOG.md index 2b87113478d..940178e0502 100644 --- a/components/card/CHANGELOG.md +++ b/components/card/CHANGELOG.md @@ -1,5 +1,264 @@ # Change Log +## 10.0.0-s2-foundations.17 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`d8394c7`](https://github.com/adobe/spectrum-css/commit/d8394c7cd6e49e65928972eedaae0dbf013ea8f9) Thanks [@pfulton](https://github.com/pfulton)! - S2 preview background color mapping update + +- Updated dependencies [[`9ae725f`](https://github.com/adobe/spectrum-css/commit/9ae725f10ebbb78b62070c4c477cb41cfc1b1ed6), [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0)]: + - @spectrum-css/typography@7.0.0-s2-foundations.15 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.19 + +## 10.0.0-s2-foundations.16 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/typography@7.0.0-s2-foundations.14 + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/asset@6.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 10.0.0-s2-foundations.15 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de) Thanks [@pfulton](https://github.com/pfulton)! - Updates to custom property inheritance and properties order + +### Patch Changes + +- Updated dependencies [[`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.19 + +## 10.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`1037169`](https://github.com/adobe/spectrum-css/commit/103716919fa4e0d43c68e67e1fd3355651c02016) Thanks [@pfulton](https://github.com/pfulton)! - Move --highcontrast references out of themes; remove remaining --mods from the themes + +## 10.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9f8732d`](https://github.com/adobe/spectrum-css/commit/9f8732d05da8c2be2ce3d95baac4b1272a6c62bd) Thanks [@pfulton](https://github.com/pfulton)! - Migrating Card component quiet and gallery variant mods to index css file + +## 10.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/typography@7.0.0-s2-foundations.13 + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/asset@6.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 10.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/typography@7.0.0-s2-foundations.12 + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/asset@6.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 10.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/typography@7.0.0-s2-foundations.11 + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/asset@6.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 10.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/typography@7.0.0-s2-foundations.9 + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/asset@6.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 10.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/typography@7.0.0-s2-foundations.8 + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/asset@6.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 10.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/typography@7.0.0-s2-foundations.7 + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/asset@6.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/typography@7.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/asset@6.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 10.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/typography@7.0.0-s2-foundations.5 + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/asset@6.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 10.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/typography@7.0.0-s2-foundations.4 + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/asset@6.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 10.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/typography@7.0.0-s2-foundations.3 + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/asset@6.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 10.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/typography@7.0.0-s2-foundations.2 + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/asset@6.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 10.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/typography@7.0.0-s2-foundations.1 + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/asset@6.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 10.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/asset@6.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + - @spectrum-css/typography@7.0.0-s2-foundations.0 + ## 9.1.1 ### Patch Changes diff --git a/components/card/index.css b/components/card/index.css index 87ab611f7a3..2e01277d394 100644 --- a/components/card/index.css +++ b/components/card/index.css @@ -11,89 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Card { - /* Default Layout */ - --spectrum-card-background-color: var(--spectrum-background-layer-2-color); - --spectrum-card-body-spacing: var(--spectrum-spacing-400); - --spectrum-card-title-padding-top: var(--spectrum-spacing-300); - --spectrum-card-title-padding-right: var(--spectrum-spacing-400); - --spectrum-card-content-margin-top: var(--spectrum-spacing-100); - --spectrum-card-content-margin-bottom: var(--spectrum-spacing-300); - --spectrum-card-footer-padding-top: var(--spectrum-spacing-100); - --spectrum-card-subtitle-padding-right: var(--spectrum-spacing-100); - - --spectrum-card-border-width: var(--spectrum-border-width-100); - --spectrum-card-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-card-border-color: var(--spectrum-gray-200); - --spectrum-card-border-color-hover: var(--spectrum-gray-300); - --spectrum-card-border-color-selected: var(--spectrum-blue-700); - - --spectrum-card-divider-color: var(--spectrum-gray-300); - - /* Typography */ - --spectrum-card-title-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-card-title-font-size: var(--spectrum-heading-size-xxs); - --spectrum-card-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-card-title-font-style: var(--spectrum-heading-sans-serif-font-style); - --spectrum-card-title-line-height: var(--spectrum-heading-line-height); - --spectrum-card-title-font-color: var(--spectrum-heading-color); - - --spectrum-card-body-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-card-body-font-size: var(--spectrum-body-size-s); - --spectrum-card-body-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-card-body-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-card-body-line-height: var(--spectrum-body-line-height); - --spectrum-card-body-font-color: var(--spectrum-body-color); - - /* Quick Actions */ - --spectrum-card-actions-spacing: var(--spectrum-spacing-300); - --spectrum-card-actions-size: var(--spectrum-card-selection-background-size); - --spectrum-card-actions-border-radius: var(--spectrum-corner-radius-100); - - /* TODO update to --spectrum-card-selection-background-color token once an RGB stripped value is available */ - --spectrum-card-actions-background-color-rgb: var(--spectrum-gray-100-rgb); - --spectrum-card-actions-background-color-opacity: var(--spectrum-card-selection-background-color-opacity); - --spectrum-card-actions-drop-shadow-color: var(--spectrum-drop-shadow-color); - --spectrum-card-actions-drop-shadow-x: var(--spectrum-drop-shadow-x); - --spectrum-card-actions-drop-shadow-y: var(--spectrum-drop-shadow-y); - --spectrum-card-actions-drop-shadow-blur: var(--spectrum-drop-shadow-blur); - - /* Focus */ - --spectrum-card-focus-indicator-color: var(--spectrum-focus-indicator-color); - --spectrum-card-focus-indicator-width: var(--spectrum-focus-indicator-thickness); - - /* Selected */ - --spectrum-card-selected-background-opacity: 0.1; /* table-selected-row-background-opacity does not exist in tokens yet */ - - --spectrum-card-preview-border-width-selected: var(--spectrum-border-width-100); - --spectrum-card-preview-background-color: var(--spectrum-background-base-color); - --spectrum-card-preview-background-color-hover: var(--spectrum-gray-300); - - /* Horizontal */ - --spectrum-card-horizontal-body-padding: var(--spectrum-spacing-300); - --spectrum-card-horizontal-preview-padding: var(--spectrum-spacing-200); - - /* TODO: These are placeholder until recursive RGB is available */ - .spectrum--light &, - .spectrum--lightest & { - --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); - } - - .spectrum--dark & { - --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-500-rgb); - } - - .spectrum--darkest & { - --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-600-rgb); - } -} - -/* Quiet/Gallery */ -.spectrum-Card--quiet, -.spectrum-Card--gallery { - --mod-card-content-margin-top: var(--mod-card-content-margin-top-quiet, var(--spectrum-spacing-100)); - --mod-card-minimum-width: var(--mod-card-minimum-width-quiet, var(--spectrum-card-minimum-width)); -} +@import "./themes/spectrum-two.css"; .spectrum-Card { position: relative; @@ -108,9 +26,7 @@ border-radius: var(--mod-card-corner-radius, var(--spectrum-card-corner-radius)); border-color: var(--highcontrast-card-border-color, var(--mod-card-border-color, var(--spectrum-card-border-color))); - /* @deprecation --mod-spectrum-card-background-color has been renamed to - --mod-card-background-color. The fallback will be removed in a future version. */ - background-color: var(--highcontrast-card-background-color, var(--mod-card-background-color, var(--mod-spectrum-card-background-color, var(--spectrum-card-background-color)))); + background-color: var(--highcontrast-card-background-color, var(--mod-card-background-color, var(--spectrum-card-background-color))); &::before { content: ""; @@ -183,7 +99,6 @@ &:hover { .spectrum-Card-quickActions, .spectrum-Card-actions { - /* Ideally, this would simply apply is-open to the QuickActions component */ visibility: visible; opacity: 1; pointer-events: all; @@ -203,6 +118,18 @@ inset-inline-start: calc(var(--mod-card-actions-spacing, var(--spectrum-card-actions-spacing)) - var(--mod-card-border-width, var(--spectrum-card-border-width))); inset-block-start: calc(var(--mod-card-actions-spacing, var(--spectrum-card-actions-spacing)) - var(--mod-card-border-width, var(--spectrum-card-border-width))); + + /* From QuickAction component that is officially deprecated */ + pointer-events: auto; + display:inline-flex; + align-items:center; + justify-content:center; + box-sizing:border-box; + + transition: + transform var(--mod-overlay-animation-duration, var(--spectrum-animation-duration-100, 130ms)) ease-in-out, + opacity var(--mod-overlay-animation-duration, var(--spectrum-animation-duration-100, 130ms)) ease-in-out, + visibility 0ms linear var(--mod-overlay-animation-duration, var(--spectrum-animation-duration-100, 130ms)); } .spectrum-Card-actions { @@ -350,6 +277,9 @@ .spectrum-Card--quiet, .spectrum-Card--gallery { + --spectrum-card-content-margin-top: var(--mod-card-content-margin-top-quiet, var(--spectrum-card-content-margin-top-quiet)); + --spectrum-card-minimum-width: var(--mod-card-minimum-width-quiet, var(--spectrum-card-minimum-width-quiet)); + block-size: 100%; min-inline-size: var(--mod-card-minimum-width, var(--spectrum-card-minimum-width)); border-width: 0; @@ -437,9 +367,6 @@ .spectrum-Card-body { margin-block-start: var(--mod-card-content-margin-top, var(--spectrum-card-content-margin-top)); - } - - .spectrum-Card-body { padding: 0; } diff --git a/components/card/metadata/card-asset.yml b/components/card/metadata/card-asset.yml deleted file mode 100644 index 39137eeedca..00000000000 --- a/components/card/metadata/card-asset.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Card - asset preview -description: A standard cards with a full-sized asset preview. -SpectrumSiteSlug: https://spectrum.adobe.com/page/cards/ -sections: - - name: Migration Guide - description: | - ### Use Spectrum Heading for title and Spectrum Detail for subtitle - To make the card component more flexible, products can have more fine control over the typography by using the Heading and Detail components with their corresponding sizes. To be more consistent with previous card designs you can use the following: - * Add the `spectrum-Heading` and `spectrum-Heading--sizeXS` or `spectrum-Heading--sizeXXS` to the `spectrum-Card-title` element. - * Add the `spectrum-Detail` and `spectrum-Detail--sizeS` classes to `spectrum-Card-subtitle`. - ### Small Card deprecated - Card only has one size moving forward and the minimum width has been updated to allow for smaller card widths if needed. There is no longer a need for the `spectrum-Card--sizeM` class on this component. -examples: - - id: card-asset - name: Standard - markup: | -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    Card Title
    -
    -
    -
    jpg
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    diff --git a/components/card/metadata/card-gallery.yml b/components/card/metadata/card-gallery.yml deleted file mode 100644 index 3fa7e8c9b99..00000000000 --- a/components/card/metadata/card-gallery.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Card - gallery -status: Beta -description: A gallery card for an image. -SpectrumSiteSlug: https://spectrum.adobe.com/page/cards/ -sections: - - name: Migration Guide - description: | - ### Change workflow icon size to medium - Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - ### Use Spectrum Heading for title and Spectrum Detail for subtitle - To make the card component more flexible, products can have more fine control over the typography by using the Heading and Detail components with their corresponding sizes. To be more consistent with previous card designs you can use the following: - * Add the `spectrum-Heading` and `spectrum-Heading--sizeXS` or `spectrum-Heading--sizeXXS` to the `spectrum-Card-title` element. - * Add the `spectrum-Detail` and `spectrum-Detail--sizeS` classes to `spectrum-Card-subtitle`. - ### Small Card deprecated - Card only has one size moving forward and the minimum width has been updated to allow for smaller card widths if needed. There is no longer a need for the `spectrum-Card--sizeM` class on this component. -examples: - - id: card-gallery - name: Standard - markup: | -
    - -
    diff --git a/components/card/metadata/card.yml b/components/card/metadata/card.yml deleted file mode 100644 index 93bfcaa50fd..00000000000 --- a/components/card/metadata/card.yml +++ /dev/null @@ -1,428 +0,0 @@ -name: Card -SpectrumSiteSlug: https://spectrum.adobe.com/page/cards/ -sections: - - name: Migration Guide - description: | - ### New Action Button markup - Action Button requires `.spectrum-ActionButton-icon` class on icons nested inside of Action Button. - - ### Change workflow icon size to medium - Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - ### Use Spectrum Heading for title - To make the card component more flexible, products can have more fine control over the typography by using the Heading component with its corresponding sizes. To be more consistent with previous card designs you can use the following: - * Add the `spectrum-Heading` and `spectrum-Heading--sizeXS` or `spectrum-Heading--sizeXXS` to the `spectrum-Card-title` element. - ### Subtitle deprecated - For this first Card iteration, the `subtitle` option has been removed. - ### Small Card deprecated - Card only has one size moving forward and the minimum width has been updated to allow for smaller card widths if needed. There is no longer a need for the `spectrum-Card--sizeM` class on this component. -examples: - - id: card - name: Standard - description: A standard card with cover photo and footer. - markup: | -
    -
    -
    -
    -
    -
    Card Title
    -
    - -
    -
    -
    -
    Optional description; should be kept to one or two lines
    -
    -
    - -
    -
    - - - - - -
    -
    -
    - - id: card-long-title - name: Standard (long title) - description: A standard card with a title that wraps - markup: | -
    -
    -
    -
    -
    -
    This is an exceptionally long card title
    -
    - -
    -
    -
    -
    Optional description; should be kept to one or two lines
    -
    -
    - -
    -
    - - - - - -
    -
    -
    - - id: card-no-image - name: Standard (no image) - description: A standard card with no photo - markup: | -
    -
    -
    -
    Card Title
    -
    - -
    -
    -
    -
    Optional description; should be kept to one or two lines
    -
    -
    -
    -
    - - - - - -
    -
    -
    - - id: card-focused - name: Standard (focused) - markup: | -
    -
    -
    -
    -
    -
    -
    -
    Card Title
    -
    - -
    -
    -
    -
    Optional description; should be kept to one or two lines
    -
    -
    - -
    -
    - - - - - -
    -
    -
    -
    -
    - - id: card-selected - name: Standard (selected) - markup: | -
    -
    -
    -
    -
    -
    -
    -
    Card Title
    -
    - -
    -
    -
    -
    Optional description; should be kept to one or two lines
    -
    -
    - -
    -
    - - - - - -
    -
    -
    -
    -
    - - id: card-quiet - name: Quiet - description: A quiet card for an image. - markup: | -
    -
    -
    -
    - -
    -
    -
    -
    -
    Name
    -
    - -
    -
    -
    -
    10/15/18
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - id: card-quiet-selected - name: Quiet (selected) - markup: | -
    -
    -
    -
    - -
    -
    -
    -
    -
    Name
    -
    - -
    -
    -
    -
    10/15/18
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - id: card-quiet-focused - name: Quiet (focused) - markup: | -
    -
    -
    -
    - -
    -
    -
    -
    -
    Name
    -
    - -
    -
    -
    -
    10/15/18
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - id: card-quiet-file - name: Quiet (file) - description: A quiet card for a file asset. - markup: | -
    -
    -
    -
    - - - - -
    -
    -
    -
    -
    FileName
    -
    -
    -
    PDF
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - id: card-quiet-folder - name: Quiet (folder) - description: A quiet card for a folder asset. - markup: | -
    -
    -
    -
    - - - - -
    -
    -
    -
    -
    FolderName
    -
    -
    -
    Folder
    -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - id: card-horizontal - name: Horizontal - description: A card with a horizontal layout. - markup: | -
    -
    - -
    -
    -
    -
    FileName
    -
    -
    -
    PDF
    -
    -
    -
    diff --git a/components/card/metadata/metadata.json b/components/card/metadata/metadata.json index 5e0e83d7fe0..7dea7fd48de 100644 --- a/components/card/metadata/metadata.json +++ b/components/card/metadata/metadata.json @@ -1,10 +1,6 @@ { "sourceFile": "index.css", "selectors": [ - ".spectrum--dark .spectrum-Card", - ".spectrum--darkest .spectrum-Card", - ".spectrum--light .spectrum-Card", - ".spectrum--lightest .spectrum-Card", ".spectrum-Card", ".spectrum-Card .spectrum-Divider", ".spectrum-Card--gallery", @@ -139,7 +135,7 @@ "--mod-card-title-line-height", "--mod-card-title-padding-right", "--mod-card-title-padding-top", - "--mod-spectrum-card-background-color" + "--mod-overlay-animation-duration" ], "component": [ "--spectrum-card-actions-background-color-opacity", @@ -166,6 +162,7 @@ "--spectrum-card-border-width", "--spectrum-card-content-margin-bottom", "--spectrum-card-content-margin-top", + "--spectrum-card-content-margin-top-quiet", "--spectrum-card-corner-radius", "--spectrum-card-divider-color", "--spectrum-card-focus-indicator-color", @@ -174,6 +171,7 @@ "--spectrum-card-horizontal-body-padding", "--spectrum-card-horizontal-preview-padding", "--spectrum-card-minimum-width", + "--spectrum-card-minimum-width-quiet", "--spectrum-card-preview-background-color", "--spectrum-card-preview-background-color-hover", "--spectrum-card-preview-border-width-selected", @@ -196,10 +194,7 @@ "--spectrum-animation-duration-100", "--spectrum-background-base-color", "--spectrum-background-layer-2-color", - "--spectrum-blue-500-rgb", - "--spectrum-blue-600-rgb", "--spectrum-blue-700", - "--spectrum-blue-900-rgb", "--spectrum-body-color", "--spectrum-body-line-height", "--spectrum-body-sans-serif-font-style", @@ -213,9 +208,9 @@ "--spectrum-drop-shadow-y", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-thickness", + "--spectrum-gray-100", "--spectrum-gray-100-rgb", "--spectrum-gray-200", - "--spectrum-gray-300", "--spectrum-heading-color", "--spectrum-heading-line-height", "--spectrum-heading-sans-serif-font-style", diff --git a/components/card/metadata/mods.md b/components/card/metadata/mods.md index 69311af19ed..438f734c02c 100644 --- a/components/card/metadata/mods.md +++ b/components/card/metadata/mods.md @@ -61,4 +61,4 @@ | `--mod-card-title-line-height` | | `--mod-card-title-padding-right` | | `--mod-card-title-padding-top` | -| `--mod-spectrum-card-background-color` | +| `--mod-overlay-animation-duration` | diff --git a/components/card/package.json b/components/card/package.json index 9d2cc78ecc9..4b3817c4156 100644 --- a/components/card/package.json +++ b/components/card/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/card", - "version": "9.1.1", + "version": "10.0.0-s2-foundations.17", "description": "The Spectrum CSS card component", "license": "Apache-2.0", "author": "Adobe", @@ -37,7 +37,6 @@ "@spectrum-css/asset": ">=5", "@spectrum-css/checkbox": ">=9", "@spectrum-css/icon": ">=7", - "@spectrum-css/quickaction": ">=3", "@spectrum-css/tokens": ">=14", "@spectrum-css/typography": ">=6" }, @@ -54,9 +53,6 @@ "@spectrum-css/icon": { "optional": true }, - "@spectrum-css/quickaction": { - "optional": true - }, "@spectrum-css/typography": { "optional": true } @@ -66,7 +62,6 @@ "@spectrum-css/asset": "workspace:^", "@spectrum-css/checkbox": "workspace:^", "@spectrum-css/icon": "workspace:^", - "@spectrum-css/quickaction": "^3.1.1", "@spectrum-css/tokens": "workspace:^", "@spectrum-css/typography": "workspace:^" }, diff --git a/components/card/stories/template.js b/components/card/stories/template.js index 185d0cc6ae8..1002505dd2f 100644 --- a/components/card/stories/template.js +++ b/components/card/stories/template.js @@ -4,7 +4,6 @@ import { Template as Checkbox } from "@spectrum-css/checkbox/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 { getRandomId } from "@spectrum-css/preview/decorators"; -import { Template as QuickAction } from "@spectrum-css/quickaction/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -12,6 +11,9 @@ 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", @@ -27,8 +29,8 @@ export const Template = ({ isGallery = false, isCardAssetOverride = false, isGrid = false, - hasQuickAction = false, hasActions = false, + hasQuickAction = false, showAsset, customStyles = {}, customClasses = [], @@ -196,25 +198,23 @@ export const Template = ({ ` )} ${when(hasQuickAction && !isHorizontal, () => - QuickAction( - { - noOverlay: true, - content: [ - Checkbox( - { - isChecked: isSelected, - title: "Select", - }, - context - ), - ], - onclick: function() { + html` +
    + ${Checkbox( + { + isChecked: isSelected, + title: "Select", + }, + context + )} +
    ` )}
    `; diff --git a/components/card/themes/express.css b/components/card/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/card/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..bf8224f9aa7 --- /dev/null +++ b/components/card/themes/spectrum-two.css @@ -0,0 +1,81 @@ +/*! + * 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 + * + * 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 { + /* Default Layout */ + --spectrum-card-background-color: var(--spectrum-background-layer-2-color); + --spectrum-card-body-spacing: var(--spectrum-spacing-400); + --spectrum-card-title-padding-top: var(--spectrum-spacing-300); + --spectrum-card-title-padding-right: var(--spectrum-spacing-400); + --spectrum-card-content-margin-top: var(--spectrum-spacing-100); + --spectrum-card-content-margin-bottom: var(--spectrum-spacing-300); + --spectrum-card-footer-padding-top: var(--spectrum-spacing-100); + --spectrum-card-subtitle-padding-right: var(--spectrum-spacing-100); + + --spectrum-card-border-width: var(--spectrum-border-width-100); + --spectrum-card-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-card-border-color: var(--spectrum-gray-100); + --spectrum-card-border-color-hover: var(--spectrum-gray-200); + --spectrum-card-border-color-selected: var(--spectrum-blue-700); + + --spectrum-card-divider-color: var(--spectrum-gray-200); + + /* Typography */ + --spectrum-card-title-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-card-title-font-size: var(--spectrum-heading-size-xxs); + --spectrum-card-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-card-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --spectrum-card-title-line-height: var(--spectrum-heading-line-height); + --spectrum-card-title-font-color: var(--spectrum-heading-color); + + --spectrum-card-body-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-card-body-font-size: var(--spectrum-body-size-s); + --spectrum-card-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-card-body-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-card-body-line-height: var(--spectrum-body-line-height); + --spectrum-card-body-font-color: var(--spectrum-body-color); + + /* Quick Actions */ + --spectrum-card-actions-spacing: var(--spectrum-spacing-300); + --spectrum-card-actions-size: var(--spectrum-card-selection-background-size); + --spectrum-card-actions-border-radius: var(--spectrum-corner-radius-100); + + /* TODO update to --spectrum-card-selection-background-color token once an RGB stripped value is available */ + --spectrum-card-actions-background-color-rgb: var(--spectrum-gray-100-rgb); + --spectrum-card-actions-background-color-opacity: var(--spectrum-card-selection-background-color-opacity); + --spectrum-card-actions-drop-shadow-color: var(--spectrum-drop-shadow-color); + --spectrum-card-actions-drop-shadow-x: var(--spectrum-drop-shadow-x); + --spectrum-card-actions-drop-shadow-y: var(--spectrum-drop-shadow-y); + --spectrum-card-actions-drop-shadow-blur: var(--spectrum-drop-shadow-blur); + + /* Focus */ + --spectrum-card-focus-indicator-color: var(--spectrum-focus-indicator-color); + --spectrum-card-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + + /* Selected */ + --spectrum-card-selected-background-opacity: 0.1; + + --spectrum-card-preview-border-width-selected: var(--spectrum-border-width-100); + --spectrum-card-preview-background-color: var(--spectrum-gray-100); + --spectrum-card-preview-background-color-hover: var(--spectrum-gray-200); + + /* Horizontal */ + --spectrum-card-horizontal-body-padding: var(--spectrum-spacing-300); + --spectrum-card-horizontal-preview-padding: var(--spectrum-spacing-200); + + /* Quiet/Gallery */ + --spectrum-card-content-margin-top-quiet: var(--spectrum-spacing-100); + --spectrum-card-minimum-width-quiet: var(--spectrum-card-minimum-width); + } +} diff --git a/components/card/themes/spectrum.css b/components/card/themes/spectrum.css new file mode 100644 index 00000000000..c3d1f63f477 --- /dev/null +++ b/components/card/themes/spectrum.css @@ -0,0 +1,36 @@ +/*! + * 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 + * + * 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); + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); + + .spectrum--dark & { + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-500-rgb); + } + + .spectrum--darkest & { + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-600-rgb); + } + } +} diff --git a/components/checkbox/CHANGELOG.md b/components/checkbox/CHANGELOG.md index a75dcb16cf8..f0d323aee26 100644 --- a/components/checkbox/CHANGELOG.md +++ b/components/checkbox/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 10.0.0-s2-foundations.16 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 10.0.0-s2-foundations.15 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`be5d85f`](https://github.com/adobe/spectrum-css/commit/be5d85f36aa6f81485b02fe943c5de22922fe0ff) Thanks [@pfulton](https://github.com/pfulton)! - Fix S1 checkbox color + +## 10.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`f38c66a`](https://github.com/adobe/spectrum-css/commit/f38c66a314c94058d7f8f084faa4967c89b20e7b) Thanks [@pfulton](https://github.com/pfulton)! - Fix icon sizing and checkbox border colors + +### Patch Changes + +- Updated dependencies [[`f38c66a`](https://github.com/adobe/spectrum-css/commit/f38c66a314c94058d7f8f084faa4967c89b20e7b)]: + - @spectrum-css/icon@8.0.0-s2-foundations.14 + +## 10.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-238] t-shirt-based calc moved out of theme into base css + +### Patch Changes + +- Updated dependencies [[`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f), [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.14 + +## 10.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 10.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 10.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 10.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 10.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 10.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 10.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 10.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 10.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 10.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 10.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 10.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 9.1.3 ### Patch Changes diff --git a/components/checkbox/index.css b/components/checkbox/index.css index 482a192afcc..5ba53f4a32c 100644 --- a/components/checkbox/index.css +++ b/components/checkbox/index.css @@ -11,7 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; /* checkbox/index.css * @@ -19,98 +19,6 @@ * .spectrum-Checkbox-box::after is the focus indicator */ -/* Component tokens by t-shirt size */ -.spectrum-Checkbox { - /* 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-focus-indicator-color: var(--spectrum-focus-indicator-color); - - --spectrum-checkbox-content-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-checkbox-control-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-checkbox-checkmark-color: var(--spectrum-gray-75); - - --spectrum-checkbox-invalid-color-default: var(--spectrum-negative-color-900); - --spectrum-checkbox-invalid-color-hover: var(--spectrum-negative-color-1000); - --spectrum-checkbox-invalid-color-down: var(--spectrum-negative-color-1100); - --spectrum-checkbox-invalid-color-focus: var(--spectrum-negative-color-1000); - - --spectrum-checkbox-emphasized-color-default: var(--spectrum-accent-color-900); - --spectrum-checkbox-emphasized-color-hover: var(--spectrum-accent-color-1000); - --spectrum-checkbox-emphasized-color-down: var(--spectrum-accent-color-1100); - --spectrum-checkbox-emphasized-color-focus: var(--spectrum-accent-color-1000); - - --spectrum-checkbox-control-selected-color-default: var(--spectrum-neutral-background-color-selected-default); - --spectrum-checkbox-control-selected-color-hover: var(--spectrum-neutral-background-color-selected-hover); - --spectrum-checkbox-control-selected-color-down: var(--spectrum-neutral-background-color-selected-down); - --spectrum-checkbox-control-selected-color-focus: var(--spectrum-neutral-background-color-selected-key-focus); - - /* Font */ - --spectrum-checkbox-font-size: var(--spectrum-font-size-100); - --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-75); - - --spectrum-checkbox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-checkbox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - - --spectrum-checkbox-border-width: var(--spectrum-border-width-200); - --spectrum-checkbox-selected-border-width: calc(var(--spectrum-checkbox-control-size) / 2); - - /* Spacing */ - --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-animation-duration: var(--spectrum-animation-duration-100); -} - -.spectrum-Checkbox--sizeS { - --spectrum-checkbox-font-size: var(--spectrum-font-size-75); - - --spectrum-checkbox-height: var(--spectrum-component-height-75); - --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-small); - - --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-75); -} - -.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--sizeL { - --spectrum-checkbox-font-size: var(--spectrum-font-size-200); - - --spectrum-checkbox-height: var(--spectrum-component-height-200); - --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-large); - - --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-200); -} - -.spectrum-Checkbox--sizeXL { - --spectrum-checkbox-font-size: var(--spectrum-font-size-300); - - --spectrum-checkbox-height: var(--spectrum-component-height-300); - --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-extra-large); - - --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-300); - --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-300); -} - -/* stylelint-disable max-nesting-depth */ /* Default Unchecked */ .spectrum-Checkbox { color: var(--highcontrast-checkbox-content-color-default, var(--mod-checkbox-content-color-default, var(--spectrum-checkbox-content-color-default))); @@ -284,7 +192,6 @@ } } } -/* stylelint-enable max-nesting-depth */ /* Emphasized */ .spectrum-Checkbox--emphasized { @@ -477,6 +384,10 @@ } .spectrum-Checkbox-box { + /* Fix vertical alignment when not wrapping since we're flex-start */ + --spectrum-checkbox-spacing: calc(var(--mod-checkbox-height, var(--spectrum-checkbox-height)) - var(--mod-checkbox-control-size, var(--spectrum-checkbox-control-size))); + --spectrum-checkbox-selected-border-width: calc(var(--spectrum-checkbox-control-size) / 2); + display: flex; align-items: center; justify-content: center; @@ -486,8 +397,6 @@ inline-size: var(--mod-checkbox-control-size, var(--spectrum-checkbox-control-size)); block-size: var(--mod-checkbox-control-size, var(--spectrum-checkbox-control-size)); - /* Fix vertical alignment when not wrapping since we're flex-start */ - --spectrum-checkbox-spacing: calc(var(--mod-checkbox-height, var(--spectrum-checkbox-height)) - var(--mod-checkbox-control-size, var(--spectrum-checkbox-control-size))); margin: calc(var(--mod-checkbox-spacing, var(--spectrum-checkbox-spacing)) / 2) 0; flex-grow: 0; @@ -526,9 +435,7 @@ inset-block-start: 0; margin: var(--mod-checkbox-focus-indicator-gap, var(--spectrum-checkbox-focus-indicator-gap)); - transition: - box-shadow var(--mod-checkbox-animation-duration, var(--spectrum-checkbox-animation-duration)) ease-out, - margin var(--mod-checkbox-animation-duration, var(--spectrum-checkbox-animation-duration)) ease-out; + transition: box-shadow var(--mod-checkbox-animation-duration, var(--spectrum-checkbox-animation-duration)) ease-out, margin var(--mod-checkbox-animation-duration, var(--spectrum-checkbox-animation-duration)) ease-out; /* force ff to render on the pixel grid */ transform: translate(0, 0); diff --git a/components/checkbox/metadata/checkbox.yml b/components/checkbox/metadata/checkbox.yml deleted file mode 100644 index bb6268fa972..00000000000 --- a/components/checkbox/metadata/checkbox.yml +++ /dev/null @@ -1,617 +0,0 @@ -name: Checkbox -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/checkbox/ -description: | - - Checkboxes allow users to select multiple items from a list of individual items, or mark one individual item as selected. - - Checkboxes should not be used on their own, they should always be used within a [FieldGroup](fieldgroup.html). - - Invalid checkboxes are indicated with an alert [HelpText](helptext.html) when included in a Fieldgroup. - -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Quiet and emphasized - Spectrum has chosen the variant previously known as `quiet` to be the default and has added an `emphasized` variant with the same styles as the previous default. - If you were using the `quiet` variant, the `.spectrum-Checkbox--quiet` class is no longer required and can be removed. - If you need a switch to look like it did before this change, add `.spectrum-Checkbox--emphasized`. - ### T-shirt sizing - Checkbox now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-Checkbox--size*` class. - Using the classes `.spectrum-Checkbox .spectrum-Checkbox--sizeM` will get result in the previous default checkbox size. -examples: - - id: checkbox-default - name: Standard - markup: | -
    -
    -

    Default

    - - - -
    - - - -
    - - -
    - -
    -

    Invalid

    - - -
    - - - -
    - - -
    - -
    -

    Disabled

    - - - -
    - - - -
    - - -
    - -
    -

    Read-only

    - - - -
    - - - -
    - - -
    -
    - - - id: checkbox-emphasized - name: Emphasized - markup: | -
    -
    -

    Default

    - - - -
    - - - -
    - - -
    - -
    -

    Invalid

    - - -
    - - - -
    - - -
    - -
    -

    Disabled

    - - - -
    - - - -
    - - -
    - -
    -

    Read-only

    - - - -
    - - - -
    - - -
    -
    - - id: t-shirt-sizes - name: T-Shirt Sizes - markup: | -
    -
    -

    S

    - - - -
    - - - -
    - - - -
    -
    -

    M (default)

    - - - -
    - - - -
    - - - -
    - -
    -

    L

    - - - -
    - - - -
    - - - - - -
    - -
    -

    XL

    - - - -
    - - - -
    - - - -
    -
    - - id: checkbox-wrapping - name: Wrapping behavior - markup: | - diff --git a/components/checkbox/metadata/metadata.json b/components/checkbox/metadata/metadata.json index d95164d16a1..e8d6231f4d1 100644 --- a/components/checkbox/metadata/metadata.json +++ b/components/checkbox/metadata/metadata.json @@ -27,10 +27,6 @@ ".spectrum-Checkbox--emphasized:focus-visible .spectrum-Checkbox-box:before", ".spectrum-Checkbox--emphasized:focus-visible .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box:before", ".spectrum-Checkbox--emphasized:hover .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box:before", - ".spectrum-Checkbox--sizeL", - ".spectrum-Checkbox--sizeM", - ".spectrum-Checkbox--sizeS", - ".spectrum-Checkbox--sizeXL", ".spectrum-Checkbox-box", ".spectrum-Checkbox-box:after", ".spectrum-Checkbox-box:before", @@ -74,6 +70,10 @@ ".spectrum-Checkbox.is-readOnly .spectrum-Checkbox-input:disabled ~ .spectrum-Checkbox-label", ".spectrum-Checkbox.is-readOnly:active .spectrum-Checkbox-box:before", ".spectrum-Checkbox.is-readOnly:hover .spectrum-Checkbox-box:before", + ".spectrum-Checkbox.spectrum-Checkbox--sizeL", + ".spectrum-Checkbox.spectrum-Checkbox--sizeM", + ".spectrum-Checkbox.spectrum-Checkbox--sizeS", + ".spectrum-Checkbox.spectrum-Checkbox--sizeXL", ".spectrum-Checkbox:active .spectrum-Checkbox-box:before", ".spectrum-Checkbox:active .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box:before", ".spectrum-Checkbox:active .spectrum-Checkbox-label", @@ -190,11 +190,10 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", + "--spectrum-gray-50", "--spectrum-gray-600", "--spectrum-gray-700", - "--spectrum-gray-75", "--spectrum-gray-800", - "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-negative-color-1000", "--spectrum-negative-color-1100", @@ -212,12 +211,7 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-spectrum-checkbox-control-color-default", - "--system-spectrum-checkbox-control-color-down", - "--system-spectrum-checkbox-control-color-focus", - "--system-spectrum-checkbox-control-color-hover" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-checkbox-background-color-default", diff --git a/components/checkbox/package.json b/components/checkbox/package.json index ddcef108414..273ecb14136 100644 --- a/components/checkbox/package.json +++ b/components/checkbox/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/checkbox", - "version": "9.1.3", + "version": "10.0.0-s2-foundations.16", "description": "The Spectrum CSS checkbox component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/checkbox/stories/template.js b/components/checkbox/stories/template.js index 6a11e647225..9210d919810 100644 --- a/components/checkbox/stories/template.js +++ b/components/checkbox/stories/template.js @@ -1,5 +1,5 @@ import { Template as Icon } from "@spectrum-css/icon/stories/template.js"; -import { getRandomId, Container } from "@spectrum-css/preview/decorators"; +import { Container, getRandomId } from "@spectrum-css/preview/decorators"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -7,6 +7,9 @@ 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 index 54d273354cf..03cadcfceff 100644 --- a/components/checkbox/themes/express.css +++ b/components/checkbox/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Checkbox { --spectrum-checkbox-control-color-default: var(--spectrum-gray-800); --spectrum-checkbox-control-color-hover: var(--spectrum-gray-900); diff --git a/components/checkbox/themes/spectrum-two.css b/components/checkbox/themes/spectrum-two.css new file mode 100644 index 00000000000..0eb7e4e6fa4 --- /dev/null +++ b/components/checkbox/themes/spectrum-two.css @@ -0,0 +1,95 @@ +/*! + * 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 + * + * 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); + + /* 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-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-checkbox-content-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-checkbox-control-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-checkbox-checkmark-color: var(--spectrum-gray-50); + + --spectrum-checkbox-invalid-color-default: var(--spectrum-negative-color-900); + --spectrum-checkbox-invalid-color-hover: var(--spectrum-negative-color-1000); + --spectrum-checkbox-invalid-color-down: var(--spectrum-negative-color-1100); + --spectrum-checkbox-invalid-color-focus: var(--spectrum-negative-color-1000); + + --spectrum-checkbox-emphasized-color-default: var(--spectrum-accent-color-900); + --spectrum-checkbox-emphasized-color-hover: var(--spectrum-accent-color-1000); + --spectrum-checkbox-emphasized-color-down: var(--spectrum-accent-color-1100); + --spectrum-checkbox-emphasized-color-focus: var(--spectrum-accent-color-1000); + + --spectrum-checkbox-control-selected-color-default: var(--spectrum-neutral-background-color-selected-default); + --spectrum-checkbox-control-selected-color-hover: var(--spectrum-neutral-background-color-selected-hover); + --spectrum-checkbox-control-selected-color-down: var(--spectrum-neutral-background-color-selected-down); + --spectrum-checkbox-control-selected-color-focus: var(--spectrum-neutral-background-color-selected-key-focus); + + /* Font */ + --spectrum-checkbox-line-height: var(--spectrum-line-height-100); + --spectrum-checkbox-line-height-cjk: var(--spectrum-cjk-line-height-100); + + /* Size */ + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-75); + + --spectrum-checkbox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-checkbox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + + --spectrum-checkbox-border-width: var(--spectrum-border-width-200); + + --spectrum-checkbox-animation-duration: var(--spectrum-animation-duration-100); + + &.spectrum-Checkbox--sizeS { + --spectrum-checkbox-font-size: var(--spectrum-font-size-75); + --spectrum-checkbox-height: var(--spectrum-component-height-75); + --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-small); + --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-75); + } + + &, + &.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--sizeL { + --spectrum-checkbox-font-size: var(--spectrum-font-size-200); + --spectrum-checkbox-height: var(--spectrum-component-height-200); + --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-large); + --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-200); + } + + &.spectrum-Checkbox--sizeXL { + --spectrum-checkbox-font-size: var(--spectrum-font-size-300); + --spectrum-checkbox-height: var(--spectrum-component-height-300); + --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-extra-large); + --spectrum-checkbox-top-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-checkbox-text-to-control: var(--spectrum-text-to-control-300); + } + } +} diff --git a/components/checkbox/themes/spectrum.css b/components/checkbox/themes/spectrum.css index 49c95dd11a1..7aacd0c2754 100644 --- a/components/checkbox/themes/spectrum.css +++ b/components/checkbox/themes/spectrum.css @@ -11,11 +11,13 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .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-75); } } diff --git a/components/clearbutton/CHANGELOG.md b/components/clearbutton/CHANGELOG.md index 3d95eab25a0..3d924dd227b 100644 --- a/components/clearbutton/CHANGELOG.md +++ b/components/clearbutton/CHANGELOG.md @@ -1,5 +1,181 @@ # Change Log +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`a66241b`](https://github.com/adobe/spectrum-css/commit/a66241bc5ec06ecb81b221187db1740caf1bd8f8) Thanks [@pfulton](https://github.com/pfulton)! - Migrating Clear Button disabled variants to index.css + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/clearbutton/index.css b/components/clearbutton/index.css index 062fab30977..bb0a6d4c438 100644 --- a/components/clearbutton/index.css +++ b/components/clearbutton/index.css @@ -11,60 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-ClearButton { - --spectrum-clear-button-height: var(--spectrum-component-height-100); - --spectrum-clear-button-width: var(--spectrum-component-height-100); - --spectrum-clear-button-padding: var(--spectrum-in-field-button-edge-to-fill); - - --spectrum-clear-button-icon-color: var(--spectrum-neutral-content-color-default); - --spectrum-clear-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --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); - - &.spectrum-ClearButton--sizeS { - --spectrum-clear-button-height: var(--spectrum-component-height-75); - --spectrum-clear-button-width: var(--spectrum-component-height-75); - } - - &.spectrum-ClearButton--sizeL { - --spectrum-clear-button-height: var(--spectrum-component-height-200); - --spectrum-clear-button-width: var(--spectrum-component-height-200); - } - - &.spectrum-ClearButton--sizeXL { - --spectrum-clear-button-height: var(--spectrum-component-height-300); - --spectrum-clear-button-width: var(--spectrum-component-height-300); - } - - &.spectrum-ClearButton--quiet { - --mod-clear-button-background-color: var(--spectrum-clear-button-background-color-quiet, transparent); - --mod-clear-button-background-color-hover: var(--spectrum-clear-button-background-color-hover-quiet, transparent); - --mod-clear-button-background-color-down: var(--spectrum-clear-button-background-color-down-quiet, transparent); - --mod-clear-button-background-color-key-focus: var(--spectrum-clear-button-background-color-key-focus-quiet, transparent); - } - - &.spectrum-ClearButton--overBackground { - --mod-clear-button-icon-color: var(--spectrum-clear-button-icon-color-over-background, var(--spectrum-white)); - --mod-clear-button-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-over-background, var(--spectrum-white)); - --mod-clear-button-icon-color-down: var(--spectrum-clear-button-icon-color-down-over-background, var(--spectrum-white)); - --mod-clear-button-icon-color-key-focus: var(--spectrum-clear-button-icon-color-key-focus-over-background, var(--spectrum-white)); - - --mod-clear-button-background-color: var(--spectrum-clear-button-background-color-over-background, transparent); - --mod-clear-button-background-color-hover: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); - --mod-clear-button-background-color-down: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-400)); - --mod-clear-button-background-color-key-focus: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); - } - - &:disabled, - &.is-disabled { - --mod-clear-button-icon-color: var(--mod-clear-button-icon-color-disabled, var(--spectrum-disabled-content-color)); - --mod-clear-button-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); - --mod-clear-button-icon-color-down: var(--spectrum-clear-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); - --mod-clear-button-background-color: var(--mod-clear-button-background-color-disabled, transparent); - } -} +@import "./themes/spectrum-two.css"; .spectrum-ClearButton { block-size: var(--mod-clear-button-height, var(--spectrum-clear-button-height)); @@ -109,6 +56,12 @@ background-color: var(--mod-clear-button-background-color-key-focus, var(--spectrum-clear-button-background-color-key-focus)); } } + + &:disabled, + &.is-disabled { + --spectrum-clear-button-icon-color: var(--mod-clear-button-icon-color-disabled, var(--spectrum-disabled-content-color)); + --spectrum-clear-button-background-color: var(--mod-clear-button-background-color-disabled, transparent); + } } .spectrum-ClearButton-fill { diff --git a/components/clearbutton/metadata/clearbutton.yml b/components/clearbutton/metadata/clearbutton.yml deleted file mode 100644 index b97e778950c..00000000000 --- a/components/clearbutton/metadata/clearbutton.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: Clear button -description: Used in search and tags. -sections: - - name: Migration Guide - description: | - ### New markup - In order to support Express, ClearButton has new markup that includes an inner `.spectrum-ClearButton-fill` element. - - ### T-shirt sizing - ClearButton now supports t-shirt sizing and requires that you specify the size of the clear button by adding a `.spectrum-ClearButton--size*` class. - - Also, use the correct icon size for cross icons: - - | T-shirt Size | Icon Size | - |--------------------------------|------------------------------| - | `spectrum-ClearButton--sizeS` | `spectrum-css-icon-Cross75` | - | `spectrum-ClearButton--sizeM` | `spectrum-css-icon-Cross100` | - | `spectrum-ClearButton--sizeL` | `spectrum-css-icon-Cross200` | - | `spectrum-ClearButton--sizeXL` | `spectrum-css-icon-Cross300` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: clearbutton - name: Sizing - markup: | -
    -
    -

    S

    - - -
    -
    -

    M (default)

    - - -
    - -
    -

    L

    - - -
    - -
    -

    XL

    - - -
    -
    - - id: clearbutton-disabled - name: Disabled - markup: | - - - id: clearbutton-quiet - name: Quiet - markup: | - - - id: clearbutton-overbackground - name: Overbackground - markup: | -
    - -
    diff --git a/components/clearbutton/metadata/metadata.json b/components/clearbutton/metadata/metadata.json index 086704b7a34..c433116065b 100644 --- a/components/clearbutton/metadata/metadata.json +++ b/components/clearbutton/metadata/metadata.json @@ -72,24 +72,16 @@ "--spectrum-component-height-300", "--spectrum-component-height-75", "--spectrum-disabled-content-color", - "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-400", "--spectrum-in-field-button-edge-to-fill", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", "--spectrum-neutral-content-color-hover", "--spectrum-neutral-content-color-key-focus", - "--spectrum-transparent-white-300", "--spectrum-transparent-white-400", + "--spectrum-transparent-white-500", "--spectrum-white" ], - "system-theme": [ - "--system-spectrum-clearbutton-spectrum-clear-button-background-color", - "--system-spectrum-clearbutton-spectrum-clear-button-background-color-down", - "--system-spectrum-clearbutton-spectrum-clear-button-background-color-hover", - "--system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus" - ], + "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-clear-button-icon-color-hover"] } diff --git a/components/clearbutton/package.json b/components/clearbutton/package.json index 26f7ff63127..8d5c1e7c6de 100644 --- a/components/clearbutton/package.json +++ b/components/clearbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/clearbutton", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.14", "description": "The Spectrum CSS clearbutton component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/clearbutton/stories/clearbutton.stories.js b/components/clearbutton/stories/clearbutton.stories.js index 9270808c04f..6706eaa93af 100644 --- a/components/clearbutton/stories/clearbutton.stories.js +++ b/components/clearbutton/stories/clearbutton.stories.js @@ -100,6 +100,7 @@ Sizing.args = {}; Sizing.tags = ["!dev"]; Sizing.parameters = { chromatic: { disableSnapshot: true }, + }; export const OverBackground = ClearButtonGroup.bind({}); @@ -109,7 +110,7 @@ OverBackground.args = { }; OverBackground.parameters = { chromatic: { - modes: disableDefaultModes + chromatic: { disableSnapshot: true }, }, }; diff --git a/components/clearbutton/stories/clearbutton.test.js b/components/clearbutton/stories/clearbutton.test.js index f4292fff350..f9fcd8b7b70 100644 --- a/components/clearbutton/stories/clearbutton.test.js +++ b/components/clearbutton/stories/clearbutton.test.js @@ -13,6 +13,10 @@ export const ClearButtonGroup = Variants({ testHeading: "Quiet", isQuiet: true, }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [ { diff --git a/components/clearbutton/stories/template.js b/components/clearbutton/stories/template.js index 3f8a9a8d9a4..fa2f9401429 100644 --- a/components/clearbutton/stories/template.js +++ b/components/clearbutton/stories/template.js @@ -6,6 +6,9 @@ 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", @@ -16,28 +19,29 @@ export const Template = ({ id = getRandomId("clearbutton"), customClasses = [], customStyles = {}, -}, context) => html` - -`; +} = {}, context = {}) => { + return html` + + `; +}; diff --git a/components/clearbutton/themes/express.css b/components/clearbutton/themes/express.css index 3d3b47cc65b..7ad29df08bf 100644 --- a/components/clearbutton/themes/express.css +++ b/components/clearbutton/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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); diff --git a/components/clearbutton/themes/spectrum-two.css b/components/clearbutton/themes/spectrum-two.css new file mode 100644 index 00000000000..b9fc7058c22 --- /dev/null +++ b/components/clearbutton/themes/spectrum-two.css @@ -0,0 +1,72 @@ +/*! + * 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 + * + * 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-clear-button-height: var(--spectrum-component-height-100); + --spectrum-clear-button-width: var(--spectrum-component-height-100); + --spectrum-clear-button-padding: var(--spectrum-in-field-button-edge-to-fill); + + --spectrum-clear-button-icon-color: var(--spectrum-neutral-content-color-default); + --spectrum-clear-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --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); + + &.spectrum-ClearButton--sizeS { + --spectrum-clear-button-height: var(--spectrum-component-height-75); + --spectrum-clear-button-width: var(--spectrum-component-height-75); + } + + &.spectrum-ClearButton--sizeL { + --spectrum-clear-button-height: var(--spectrum-component-height-200); + --spectrum-clear-button-width: var(--spectrum-component-height-200); + } + + &.spectrum-ClearButton--sizeXL { + --spectrum-clear-button-height: var(--spectrum-component-height-300); + --spectrum-clear-button-width: var(--spectrum-component-height-300); + } + + &.spectrum-ClearButton--quiet { + --spectrum-clear-button-background-color: var(--spectrum-clear-button-background-color-quiet, transparent); + --spectrum-clear-button-background-color-hover: var(--spectrum-clear-button-background-color-hover-quiet, transparent); + --spectrum-clear-button-background-color-down: var(--spectrum-clear-button-background-color-down-quiet, transparent); + --spectrum-clear-button-background-color-key-focus: var(--spectrum-clear-button-background-color-key-focus-quiet, transparent); + } + + &.spectrum-ClearButton--overBackground { + --spectrum-clear-button-icon-color: var(--spectrum-clear-button-icon-color-over-background, var(--spectrum-white)); + --spectrum-clear-button-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-over-background, var(--spectrum-white)); + --spectrum-clear-button-icon-color-down: var(--spectrum-clear-button-icon-color-down-over-background, var(--spectrum-white)); + --spectrum-clear-button-icon-color-key-focus: var(--spectrum-clear-button-icon-color-key-focus-over-background, var(--spectrum-white)); + + --spectrum-clear-button-background-color: var(--spectrum-clear-button-background-color-over-background, transparent); + --spectrum-clear-button-background-color-hover: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-400)); + --spectrum-clear-button-background-color-down: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-500)); + --spectrum-clear-button-background-color-key-focus: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-400)); + } + + &:disabled, + &.is-disabled { + --spectrum-clear-button-icon-color: var(--spectrum-disabled-content-color); + --spectrum-clear-button-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); + --spectrum-clear-button-icon-color-down: var(--spectrum-clear-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); + --spectrum-clear-button-background-color: transparent; + } + } +} diff --git a/components/clearbutton/themes/spectrum.css b/components/clearbutton/themes/spectrum.css index 84194abf9ab..70d5593ab70 100644 --- a/components/clearbutton/themes/spectrum.css +++ b/components/clearbutton/themes/spectrum.css @@ -11,11 +11,17 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .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--overBackground { + --spectrum-clear-button-background-color-hover: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); + --spectrum-clear-button-background-color-down: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-400)); + --spectrum-clear-button-background-color-key-focus: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); + } + } } diff --git a/components/closebutton/CHANGELOG.md b/components/closebutton/CHANGELOG.md index a287d62cfe2..5f9d01520af 100644 --- a/components/closebutton/CHANGELOG.md +++ b/components/closebutton/CHANGELOG.md @@ -1,5 +1,184 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5d50b15`](https://github.com/adobe/spectrum-css/commit/5d50b1557e0d4f8236be43728cde66c9d41b16e7) Thanks [@pfulton](https://github.com/pfulton)! - Typo in CloseButton classes for sizing + +- Updated dependencies [[`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.19 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.2.0 ### Minor Changes diff --git a/components/closebutton/index.css b/components/closebutton/index.css index b88ecfcab23..1e9edda5318 100644 --- a/components/closebutton/index.css +++ b/components/closebutton/index.css @@ -11,93 +11,8 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; @import "@spectrum-css/commons/basebutton.css"; - -.spectrum-CloseButton { - /* Hardcoded tokens */ - --spectrum-closebutton-size-300: 24px; - --spectrum-closebutton-size-400: 32px; - --spectrum-closebutton-size-500: 40px; - --spectrum-closebutton-size-600: 48px; - - /* Cross icon */ - --spectrum-closebutton-icon-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-closebutton-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-closebutton-icon-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-closebutton-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); - --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-content-color); - - /* Focus ring */ - --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-height: var(--spectrum-component-height-100); - --spectrum-closebutton-width: var(--spectrum-closebutton-height); - --spectrum-closebutton-size: var(--spectrum-closebutton-size-400); - --spectrum-closebutton-border-radius: var(--spectrum-closebutton-size-400); - - --spectrum-closebutton-animation-duration: var(--spectrum-animation-duration-100); -} - -/* @deprecated .spectrum-Closebutton--sizeS */ -.spectrum-CloseButton--sizeS, -.spectrum-Closebutton--sizeS { - --spectrum-closebutton-height: var(--spectrum-component-height-75); - --spectrum-closebutton-width: var(--spectrum-closebutton-height); - --spectrum-closebutton-size: var(--spectrum-closebutton-size-300); - --spectrum-closebutton-border-radius: var(--spectrum-closebutton-size-300); -} - -/* @deprecated .spectrum-Closebutton--sizeM */ -.spectrum-CloseButton, -.spectrum-CloseButton--sizeM, -.spectrum-Closebutton--sizeM { - --spectrum-closebutton-height: var(--spectrum-component-height-100); - --spectrum-closebutton-width: var(--spectrum-closebutton-height); - --spectrum-closebutton-size: var(--spectrum-closebutton-size-400); - --spectrum-closebutton-border-radius: var(--spectrum-closebutton-size-400); -} - -/* @deprecated .spectrum-Closebutton--sizeL */ -.spectrum-CloseButton--sizeL, -.spectrum-Closebutton--sizeL { - --spectrum-closebutton-height: var(--spectrum-component-height-200); - --spectrum-closebutton-width: var(--spectrum-closebutton-height); - --spectrum-closebutton-size: var(--spectrum-closebutton-size-500); - --spectrum-closebutton-border-radius: var(--spectrum-closebutton-size-500); -} - -/* @deprecated .spectrum-Closebutton--sizeXL */ -.spectrum-CloseButton--sizeXL, -.spectrum-Closebutton--sizeXL { - --spectrum-closebutton-height: var(--spectrum-component-height-300); - --spectrum-closebutton-width: var(--spectrum-closebutton-height); - --spectrum-closebutton-size: var(--spectrum-closebutton-size-600); - --spectrum-closebutton-border-radius: var(--spectrum-closebutton-size-600); -} - -.spectrum-CloseButton--staticWhite { - --spectrum-closebutton-static-background-color-default: transparent; - --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-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 { - --spectrum-closebutton-static-background-color-default: transparent; - --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); - --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); -} +@import "./themes/spectrum-two.css"; /* Windows high contrast mode */ @media (forced-colors: active) { @@ -140,15 +55,15 @@ a.spectrum-CloseButton { .spectrum-CloseButton { @extend %spectrum-BaseButton; - block-size: var(--mod-closebutton-height, var(--spectrum-closebutton-height)); - inline-size: var(--mod-closebutton-width, var(--spectrum-closebutton-width)); + block-size: var(--mod-closebutton-height, var(--spectrum-closebutton-size)); + inline-size: var(--mod-closebutton-width, var(--spectrum-closebutton-size)); position: relative; color: inherit; border-color: transparent; - border-radius: var(--mod-closebutton-border-radius, var(--spectrum-closebutton-border-radius)); + border-radius: var(--mod-closebutton-border-radius, var(--spectrum-closebutton-size)); border-width: 0; justify-content: center; diff --git a/components/closebutton/metadata/closebutton.yml b/components/closebutton/metadata/closebutton.yml deleted file mode 100644 index 26e2d624c45..00000000000 --- a/components/closebutton/metadata/closebutton.yml +++ /dev/null @@ -1,204 +0,0 @@ -name: Close button -SpectrumSiteSlug: https://spectrum.adobe.com/page/close-button/ -status: Verified -description: | - A button used to close or dismiss components. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Sizing - Close button supports different sized icons. By default, you should use the following icons: - - | Close button classname | UI icon classname | - | ------------------------------- | --------------------------- | - | `.spectrum-CloseButton--sizeS` | `.spectrum-UIIcon-Cross75` | - | `.spectrum-CloseButton--sizeM` | `.spectrum-UIIcon-Cross100` | - | `.spectrum-CloseButton--sizeL` | `.spectrum-UIIcon-Cross200` | - | `.spectrum-CloseButton--sizeXL` | `.spectrum-UIIcon-Cross300` | - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: close - name: Icon Size - Regular - markup: | -
    -
    -

    S

    - -
    - -
    -
    -
    -

    M (default)

    - -
    - -
    -
    - -
    -

    L

    - -
    - -
    -
    - -
    -

    XL

    - -
    - -
    -
    -
    - - id: closebutton-largeicon - name: Icon Size - Large - description: | - Close button supports different sized icons. For cases where you need large icons, you should use the following icons: - - | Close button classname | UI icon classname | - | ------------------------------- | --------------------------- | - | `.spectrum-CloseButton--sizeS` | `.spectrum-UIIcon-Cross200` | - | `.spectrum-CloseButton--sizeM` | `.spectrum-UIIcon-Cross300` | - | `.spectrum-CloseButton--sizeL` | `.spectrum-UIIcon-Cross400` | - | `.spectrum-CloseButton--sizeXL` | `.spectrum-UIIcon-Cross500` | - markup: | -
    -
    -

    S

    - -
    - -
    -
    -
    -

    M (default)

    - -
    - -
    -
    - -
    -

    L

    - -
    - -
    -
    - -
    -

    XL

    - -
    - -
    -
    -
    - - - id: closebutton-disabled - name: Disabled - markup: | - - - - id: closebutton-staticwhite - name: Static White - markup: | -
    -
    -
    -

    Default

    - -
    - -
    -
    -
    -

    Disabled

    - -
    - -
    -
    -
    -
    - - - id: closebutton-staticblack - name: Static Black - markup: | -
    -
    -
    -

    Default

    - -
    - -
    -
    -
    -

    Disabled

    - -
    - -
    -
    -
    -
    diff --git a/components/closebutton/metadata/metadata.json b/components/closebutton/metadata/metadata.json index eaad2c086e8..7058920a824 100644 --- a/components/closebutton/metadata/metadata.json +++ b/components/closebutton/metadata/metadata.json @@ -2,10 +2,6 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-CloseButton", - ".spectrum-CloseButton--sizeL", - ".spectrum-CloseButton--sizeM", - ".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)", @@ -39,6 +35,12 @@ ".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", @@ -55,10 +57,6 @@ ".spectrum-CloseButton:not(:disabled):focus-visible .spectrum-CloseButton-UIIcon", ".spectrum-CloseButton:not(:disabled):hover", ".spectrum-CloseButton:not(:disabled):hover .spectrum-CloseButton-UIIcon", - ".spectrum-Closebutton--sizeL", - ".spectrum-Closebutton--sizeM", - ".spectrum-Closebutton--sizeS", - ".spectrum-Closebutton--sizeXL", "a.spectrum-CloseButton" ], "modifiers": [ @@ -97,26 +95,19 @@ "--spectrum-closebutton-background-color-down", "--spectrum-closebutton-background-color-focus", "--spectrum-closebutton-background-color-hover", - "--spectrum-closebutton-border-radius", "--spectrum-closebutton-focus-indicator-color", "--spectrum-closebutton-focus-indicator-gap", "--spectrum-closebutton-focus-indicator-thickness", - "--spectrum-closebutton-height", "--spectrum-closebutton-icon-color-default", "--spectrum-closebutton-icon-color-disabled", "--spectrum-closebutton-icon-color-down", "--spectrum-closebutton-icon-color-focus", "--spectrum-closebutton-icon-color-hover", "--spectrum-closebutton-size", - "--spectrum-closebutton-size-300", - "--spectrum-closebutton-size-400", - "--spectrum-closebutton-size-500", - "--spectrum-closebutton-size-600", "--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-width" + "--spectrum-closebutton-static-background-color-hover" ], "global": [ "--spectrum-animation-duration-100", @@ -131,9 +122,8 @@ "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-400", "--spectrum-line-height-100", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", @@ -142,18 +132,13 @@ "--spectrum-sans-font-family-stack", "--spectrum-static-black-focus-indicator-color", "--spectrum-static-white-focus-indicator-color", - "--spectrum-transparent-black-300", "--spectrum-transparent-black-400", - "--spectrum-transparent-white-300", + "--spectrum-transparent-black-500", "--spectrum-transparent-white-400", + "--spectrum-transparent-white-500", "--spectrum-white" ], - "system-theme": [ - "--system-spectrum-closebutton-background-color-default", - "--system-spectrum-closebutton-background-color-down", - "--system-spectrum-closebutton-background-color-focus", - "--system-spectrum-closebutton-background-color-hover" - ], + "system-theme": [], "passthroughs": [ "--mod-button-animation-duration", "--mod-button-font-family", diff --git a/components/closebutton/package.json b/components/closebutton/package.json index 563562b52b6..cab88e5bf24 100644 --- a/components/closebutton/package.json +++ b/components/closebutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/closebutton", - "version": "5.2.0", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS close button component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/closebutton/stories/closebutton.stories.js b/components/closebutton/stories/closebutton.stories.js index 1475a07760e..6592d7e95d0 100644 --- a/components/closebutton/stories/closebutton.stories.js +++ b/components/closebutton/stories/closebutton.stories.js @@ -52,10 +52,22 @@ export default { export const Default = CloseButtonGroup.bind({}); Default.args = {}; +// ********* VRT ONLY ********* // +export const WithForcedColors = CloseButtonGroup.bind({}); +WithForcedColors.tags = ["!autodocs", "!dev"]; +WithForcedColors.parameters = { + chromatic: { + forcedColors: "active", + modes: disableDefaultModes + }, +}; + +// ********* DOCS ONLY ********* // + /** * Close button provides a "large" icon size option, for displaying a larger cross icon for each component size. * When using this option, the following UI icons should be used: - * + * * | Close button class name | UI icon class name | * | ------------------------------- | --------------------------- | * | `.spectrum-CloseButton--sizeS` | `.spectrum-UIIcon-Cross200` | @@ -74,23 +86,14 @@ SizingLargeIcons.args = { iconSize: "large", }; SizingLargeIcons.tags = ["!dev"]; - -// ********* VRT ONLY ********* // -export const WithForcedColors = CloseButtonGroup.bind({}); -WithForcedColors.tags = ["!autodocs", "!dev"]; -WithForcedColors.parameters = { - chromatic: { - forcedColors: "active", - modes: disableDefaultModes - }, +SizingLargeIcons.parameters = { + chromatic: { disableSnapshot: true }, }; -// ********* DOCS ONLY ********* // - /** * Close buttons come in four different sizes: small, medium, large, and extra-large. By default ("regular" icon size), the cross icon * within the close button should use the following UI icons for each component size: -* +* * | Close button class name | UI icon class name | * | ------------------------------- | --------------------------- | * | `.spectrum-CloseButton--sizeS` | `.spectrum-UIIcon-Cross75` | @@ -136,4 +139,3 @@ StaticBlack.tags = ["!dev"]; StaticBlack.parameters = { chromatic: { disableSnapshot: true }, }; - diff --git a/components/closebutton/stories/closebutton.test.js b/components/closebutton/stories/closebutton.test.js index 713d73dc84b..7786a4e62e7 100644 --- a/components/closebutton/stories/closebutton.test.js +++ b/components/closebutton/stories/closebutton.test.js @@ -3,12 +3,18 @@ import { Template } from "./template.js"; export const CloseButtonGroup = Variants({ Template, - stateDirection: "row", - sizeDirection: "row", testData: [ { testHeading: "Default", }, + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [ { diff --git a/components/closebutton/stories/template.js b/components/closebutton/stories/template.js index b9ebe1e854d..9014b93a308 100644 --- a/components/closebutton/stories/template.js +++ b/components/closebutton/stories/template.js @@ -6,6 +6,9 @@ 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", diff --git a/components/closebutton/themes/express.css b/components/closebutton/themes/express.css index 5ade53f9b28..5033b353f95 100644 --- a/components/closebutton/themes/express.css +++ b/components/closebutton/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-CloseButton { --spectrum-closebutton-background-color-default: transparent; --spectrum-closebutton-background-color-hover: var(--spectrum-gray-300); diff --git a/components/closebutton/themes/spectrum-two.css b/components/closebutton/themes/spectrum-two.css new file mode 100644 index 00000000000..121db7ffcf8 --- /dev/null +++ b/components/closebutton/themes/spectrum-two.css @@ -0,0 +1,72 @@ +/*! + * 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 + * + * 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); + + /* Cross icon */ + --spectrum-closebutton-icon-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-closebutton-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-closebutton-icon-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-closebutton-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); + --spectrum-closebutton-icon-color-disabled: var(--spectrum-disabled-content-color); + + /* Focus ring */ + --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); + + --spectrum-closebutton-animation-duration: var(--spectrum-animation-duration-100); + + &.spectrum-CloseButton--sizeS { + --spectrum-closebutton-size: var(--spectrum-component-height-75); + } + + &, + &.spectrum-CloseButton--sizeM { + --spectrum-closebutton-size: var(--spectrum-component-height-100); + } + + &.spectrum-CloseButton--sizeL { + --spectrum-closebutton-size: var(--spectrum-component-height-200); + } + + &.spectrum-CloseButton--sizeXL { + --spectrum-closebutton-size: var(--spectrum-component-height-300); + } + + &.spectrum-CloseButton--staticWhite { + --spectrum-closebutton-static-background-color-default: transparent; + --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-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 { + --spectrum-closebutton-static-background-color-default: transparent; + --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); + --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); + } + } +} diff --git a/components/closebutton/themes/spectrum.css b/components/closebutton/themes/spectrum.css index 84b1402f85c..089b7185f28 100644 --- a/components/closebutton/themes/spectrum.css +++ b/components/closebutton/themes/spectrum.css @@ -11,11 +11,27 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .spectrum-CloseButton { - --spectrum-closebutton-background-color-default: transparent; --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 80da828558c..aec724866e7 100644 --- a/components/coachindicator/CHANGELOG.md +++ b/components/coachindicator/CHANGELOG.md @@ -1,5 +1,167 @@ # Change Log +## 3.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 3.0.0-s2-foundations.13 + +### Minor Changes + +- [#3041](https://github.com/adobe/spectrum-css/pull/3041) [`7be40c3`](https://github.com/adobe/spectrum-css/commit/7be40c334748f3e1064c614af793117f06146475) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - --mod properties were moved out of `coachindicator/themes/spectrum-two.css` into `coachindicator/index.css` so --mods can be applied at the component level. + +## 3.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 3.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 3.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 3.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 3.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 3.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 3.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 3.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 3.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 3.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 3.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 3.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 2.1.4 ### Patch Changes @@ -20,6 +182,12 @@ - [#2842](https://github.com/adobe/spectrum-css/pull/2842) [`4cd3a15`](https://github.com/adobe/spectrum-css/commit/4cd3a15db914b667f5d606388051ecd2cd318134) Thanks [@castastrophe](https://github.com/castastrophe)! - Updated CSSNano plugin to toggle reduceIdent off to prevent invalid abstractions from breaking named grid templates. +## 2.1.2 + +### Patch Changes + +- [#2842](https://github.com/adobe/spectrum-css/pull/2842) [`4cd3a15`](https://github.com/adobe/spectrum-css/commit/4cd3a15db914b667f5d606388051ecd2cd318134) Thanks [@castastrophe](https://github.com/castastrophe)! - Updated CSSNano plugin to toggle reduceIdent off to prevent invalid abstractions from breaking named grid templates. + ## 2.1.1 ### Patch Changes diff --git a/components/coachindicator/animation.css b/components/coachindicator/animation.css deleted file mode 100644 index 9a025fb13d8..00000000000 --- a/components/coachindicator/animation.css +++ /dev/null @@ -1,55 +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 - * - * 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-CoachIndicator { - --spectrum-coach-indicator-animation-keyframe-0-scale: 1; - --spectrum-coach-indicator-animation-keyframe-0-opacity: 0; - --spectrum-coach-indicator-animation-keyframe-50-scale: 1.5; - --spectrum-coach-indicator-animation-keyframe-50-opacity: 1; - --spectrum-coach-indicator-animation-keyframe-100-scale: 2; - --spectrum-coach-indicator-animation-keyframe-100-opacity: 0; - --spectrum-coach-indicator-quiet-animation-keyframe-0-scale: 0.8; -} - -@keyframes pulse { - 0% { - transform: scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-0-opacity); - } - - 50% { - transform: scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-50-opacity); - } - - 100% { - transform: scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-100-opacity); - } -} - -@keyframes pulse-quiet { - 0% { - transform: scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-0-opacity); - } - - 50% { - transform: scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-50-opacity); - } - - 100% { - transform: scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale)); - opacity: var(--spectrum-coach-indicator-animation-keyframe-100-opacity); - } -} diff --git a/components/coachindicator/index.css b/components/coachindicator/index.css index 9d385914d5b..632c4a99f99 100644 --- a/components/coachindicator/index.css +++ b/components/coachindicator/index.css @@ -11,43 +11,7 @@ * governing permissions and limitations under the License. */ -@import "animation.css"; - -.spectrum-CoachIndicator { - --spectrum-coach-indicator-ring-border-size: var(--spectrum-border-width-200); - --spectrum-coach-indicator-min-inline-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); - --spectrum-coach-indicator-min-block-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); - --spectrum-coach-indicator-inline-size: var(--spectrum-coach-indicator-min-inline-size); - --spectrum-coach-indicator-block-size: var(--spectrum-coach-indicator-min-block-size); - --spectrum-coach-indicator-ring-inline-size: var(--spectrum-coach-indicator-ring-diameter); - --spectrum-coach-indicator-ring-block-size: var(--spectrum-coach-indicator-ring-diameter); - - --spectrum-coach-indicator-top: calc((var(--spectrum-coach-indicator-block-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); - --spectrum-coach-indicator-left: calc((var(--spectrum-coach-indicator-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); - - /* animation */ - --spectrum-coach-animation-indicator-ring-duration: var(--spectrum-animation-duration-6000); - --spectrum-coach-animation-indicator-ring-inner-delay-multiple: -0.5; - --spectrum-coach-animation-indicator-ring-center-delay-multiple: -0.66; - --spectrum-coach-animation-indicator-ring-outer-delay-multiple: -1; - --spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple: -0.33; - --spectrum-coach-indicator-animation-name: pulse; - --spectrum-coach-indicator-inner-animation-delay-multiple: var(--spectrum-coach-animation-indicator-ring-inner-delay-multiple); -} - -.spectrum-CoachIndicator--quiet { - --mod-coach-indicator-min-inline-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)) * 2.75); - --mod-coach-indicator-min-block-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)) * 2.75); - --mod-coach-indicator-inline-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)) * 2.75); - --mod-coach-indicator-block-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)) * 2.75); - --mod-coach-indicator-ring-inline-size: var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)); - --mod-coach-indicator-ring-block-size: var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter)); - - --mod-coach-indicator-top: calc((var(--mod-coach-indicator-min-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); - --mod-coach-indicator-left: calc((var(--mod-coach-indicator-min-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); - --mod-coach-indicator-animation-name: pulse-quiet; - --mod-coach-indicator-inner-animation-delay-multiple: var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple, var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple)); -} +@import "./themes/spectrum-two.css"; .spectrum-CoachIndicator { position: relative; @@ -58,6 +22,19 @@ inline-size: var(--mod-coach-indicator-inline-size, var(--spectrum-coach-indicator-inline-size)); block-size: var(--mod-coach-indicator-block-size, var(--spectrum-coach-indicator-block-size)); + + &.spectrum-CoachIndicator--quiet { + --mod-coach-indicator-min-inline-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)) * 2.75); + --mod-coach-indicator-min-block-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)) * 2.75); + --mod-coach-indicator-inline-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)) * 2.75); + --mod-coach-indicator-block-size: calc(var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)) * 2.75); + --mod-coach-indicator-ring-inline-size: var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)); + --mod-coach-indicator-ring-block-size: var(--mod-coach-indicator-quiet-ring-diameter, var(--spectrum-coach-indicator-quiet-ring-diameter-size)); + + --mod-coach-indicator-top: calc((var(--mod-coach-indicator-min-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); + --mod-coach-indicator-left: calc((var(--mod-coach-indicator-min-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); + --mod-coach-indicator-inner-animation-delay-multiple: var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple, var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple)); + } } .spectrum-CoachIndicator-ring { @@ -102,3 +79,37 @@ animation: none; } } + +@keyframes pulse { + 0% { + transform: scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-0-opacity); + } + + 50% { + transform: scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-50-opacity); + } + + 100% { + transform: scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-100-opacity); + } +} + +@keyframes pulse-quiet { + 0% { + transform: scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-0-opacity); + } + + 50% { + transform: scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-50-opacity); + } + + 100% { + transform: scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale)); + opacity: var(--spectrum-coach-indicator-animation-keyframe-100-opacity); + } +} diff --git a/components/coachindicator/metadata/coachindicator.yml b/components/coachindicator/metadata/coachindicator.yml deleted file mode 100644 index 383b91c4fd7..00000000000 --- a/components/coachindicator/metadata/coachindicator.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Coach indicator -SpectrumSiteSlug: https://spectrum.adobe.com/page/coach-mark/ -sections: - - name: Migration Guide - description: | - - Coach Indicator is now a seperate component from Coach Mark -examples: - - id: coach-indicator - name: Standard - markup: | -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - id: coach-indicator-quiet - name: Quiet - markup: | -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    diff --git a/components/coachindicator/metadata/metadata.json b/components/coachindicator/metadata/metadata.json index 6e93ca9156d..18fe7a23593 100644 --- a/components/coachindicator/metadata/metadata.json +++ b/components/coachindicator/metadata/metadata.json @@ -4,11 +4,11 @@ ".spectrum-CoachIndicator", ".spectrum-CoachIndicator--dark .spectrum-CoachIndicator-ring", ".spectrum-CoachIndicator--light .spectrum-CoachIndicator-ring", - ".spectrum-CoachIndicator--quiet", ".spectrum-CoachIndicator-ring", ".spectrum-CoachIndicator-ring:first-child", ".spectrum-CoachIndicator-ring:nth-child(2)", ".spectrum-CoachIndicator-ring:nth-child(3)", + ".spectrum-CoachIndicator.spectrum-CoachIndicator--quiet", "0%", "50%", "to" @@ -53,6 +53,7 @@ "--spectrum-coach-indicator-quiet-animation-keyframe-0-scale", "--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple", "--spectrum-coach-indicator-quiet-ring-diameter", + "--spectrum-coach-indicator-quiet-ring-diameter-size", "--spectrum-coach-indicator-ring-block-size", "--spectrum-coach-indicator-ring-border-size", "--spectrum-coach-indicator-ring-dark-color", @@ -68,7 +69,9 @@ "--spectrum-coach-animation-indicator-ring-center-delay-multiple", "--spectrum-coach-animation-indicator-ring-duration", "--spectrum-coach-animation-indicator-ring-inner-delay-multiple", - "--spectrum-coach-animation-indicator-ring-outer-delay-multiple" + "--spectrum-coach-animation-indicator-ring-outer-delay-multiple", + "--spectrum-gray-25", + "--spectrum-gray-900" ], "system-theme": [], "passthroughs": [], diff --git a/components/coachindicator/package.json b/components/coachindicator/package.json index b1c5bc0d87c..896178ef453 100644 --- a/components/coachindicator/package.json +++ b/components/coachindicator/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/coachindicator", - "version": "2.1.4", + "version": "3.0.0-s2-foundations.14", "description": "The Spectrum CSS Coach Indicator component ", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/coachindicator/stories/coachindicator.stories.js b/components/coachindicator/stories/coachindicator.stories.js index 9d6e59b0cc6..2dfacc8a739 100644 --- a/components/coachindicator/stories/coachindicator.stories.js +++ b/components/coachindicator/stories/coachindicator.stories.js @@ -2,7 +2,7 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes"; import { isQuiet } from "@spectrum-css/preview/types"; import pkgJson from "../package.json"; import { CoachIndicatorGroup } from "./coachindicator.test.js"; -import { AllVariantsCoachIndicatorGroup } from "./template"; +import { AllVariantsCoachIndicatorGroup } from "./template.js"; /** * The coach indicator component can be used to bring added attention to specific parts of a page. diff --git a/components/coachindicator/stories/template.js b/components/coachindicator/stories/template.js index 62cd68e7ff1..3dd24772184 100644 --- a/components/coachindicator/stories/template.js +++ b/components/coachindicator/stories/template.js @@ -4,6 +4,9 @@ import { classMap } from "lit-html/directives/class-map.js"; import { styleMap } from "lit-html/directives/style-map.js"; import "../index.css"; +import "../themes/spectrum.css"; +/* Must be imported last */ +import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-CoachIndicator", @@ -11,21 +14,23 @@ export const Template = ({ variant, customClasses = [], customStyles = {}, -}) => html` -
    ({ ...a, [c]: true }), {}), - })} - style=${styleMap(customStyles)} - > - ${Array.from({ length: 3 }).map(() => html` -
    - `)} -
    -`; +} = {}) => { + return html` +
    ({ ...a, [c]: true }), {}), + })} + style=${styleMap(customStyles)} + > + ${Array.from({ length: 3 }).map(() => html` +
    + `)} +
    + `; +}; /* This template group showcases multiple coach indicator variants at once. */ export const AllVariantsCoachIndicatorGroup = (args, context) => Container({ @@ -52,4 +57,3 @@ export const AllVariantsCoachIndicatorGroup = (args, context) => Container({ })} ` }); - diff --git a/components/coachindicator/themes/express.css b/components/coachindicator/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/coachindicator/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/coachindicator/themes/spectrum-two.css b/components/coachindicator/themes/spectrum-two.css new file mode 100644 index 00000000000..ebcdc6afbac --- /dev/null +++ b/components/coachindicator/themes/spectrum-two.css @@ -0,0 +1,52 @@ +/*! + * 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 + * + * 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-CoachIndicator { + --spectrum-coach-indicator-ring-border-size: var(--spectrum-border-width-200); + --spectrum-coach-indicator-min-inline-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --spectrum-coach-indicator-min-block-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --spectrum-coach-indicator-inline-size: var(--spectrum-coach-indicator-min-inline-size); + --spectrum-coach-indicator-block-size: var(--spectrum-coach-indicator-min-block-size); + --spectrum-coach-indicator-ring-inline-size: var(--spectrum-coach-indicator-ring-diameter); + --spectrum-coach-indicator-ring-block-size: var(--spectrum-coach-indicator-ring-diameter); + + --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); + --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-25); + + --spectrum-coach-indicator-top: calc((var(--spectrum-coach-indicator-block-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); + --spectrum-coach-indicator-left: calc((var(--spectrum-coach-indicator-inline-size) / 3) - var(--spectrum-coach-indicator-ring-border-size)); + + /* animation */ + --spectrum-coach-animation-indicator-ring-duration: var(--spectrum-animation-duration-6000); + --spectrum-coach-animation-indicator-ring-inner-delay-multiple: -0.5; + --spectrum-coach-animation-indicator-ring-center-delay-multiple: -0.66; + --spectrum-coach-animation-indicator-ring-outer-delay-multiple: -1; + --spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple: -0.33; + --spectrum-coach-indicator-animation-name: pulse; + --spectrum-coach-indicator-inner-animation-delay-multiple: var(--spectrum-coach-animation-indicator-ring-inner-delay-multiple); + + --spectrum-coach-indicator-animation-keyframe-0-scale: 1; + --spectrum-coach-indicator-animation-keyframe-0-opacity: 0; + --spectrum-coach-indicator-animation-keyframe-50-scale: 1.5; + --spectrum-coach-indicator-animation-keyframe-50-opacity: 1; + --spectrum-coach-indicator-animation-keyframe-100-scale: 2; + --spectrum-coach-indicator-animation-keyframe-100-opacity: 0; + --spectrum-coach-indicator-quiet-animation-keyframe-0-scale: 0.8; + + &.spectrum-CoachIndicator--quiet { + --spectrum-coach-indicator-quiet-ring-diameter-size: var(--spectrum-coach-indicator-quiet-ring-diameter); + --spectrum-coach-indicator-animation-name: pulse-quiet; + } + } +} diff --git a/components/coachindicator/themes/spectrum.css b/components/coachindicator/themes/spectrum.css new file mode 100644 index 00000000000..ad7c2429e0e --- /dev/null +++ b/components/coachindicator/themes/spectrum.css @@ -0,0 +1,23 @@ +/*! + * 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 + * + * 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-CoachIndicator { + --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); + } +} diff --git a/components/coachmark/CHANGELOG.md b/components/coachmark/CHANGELOG.md index 544dbebeb7e..c95d303a681 100644 --- a/components/coachmark/CHANGELOG.md +++ b/components/coachmark/CHANGELOG.md @@ -1,5 +1,267 @@ # Change Log +## 8.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.13 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.13 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.14 + +### Minor Changes + +- [#3015](https://github.com/adobe/spectrum-css/pull/3015) [`db6f93d`](https://github.com/adobe/spectrum-css/commit/db6f93d6cb4b745a53a03a363284ac9e4f9cd46a) Thanks [@cdransf](https://github.com/cdransf)! - Move the coachmark modifiers out of the theme to the base index.css. + +### Patch Changes + +- Updated dependencies [[`f15243a`](https://github.com/adobe/spectrum-css/commit/f15243adaa633531e82edbb61b2e4444517af64e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.16 + +## 8.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-239] passthroughs referencing global token values in index.css abstracted to define alias' in the coach mark theme file + +### Patch Changes + +- Updated dependencies [[`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f), [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.14 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.12 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.11 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.11 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.10 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.9 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.8 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.7 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.6 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.5 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.4 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.3 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.2 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.1 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/actionmenu@7.0.0-s2-foundations.0 + - @spectrum-css/buttongroup@8.0.0-s2-foundations.0 + ## 7.1.3 ### Patch Changes diff --git a/components/coachmark/index.css b/components/coachmark/index.css index 79550d30787..ffe9c5be395 100644 --- a/components/coachmark/index.css +++ b/components/coachmark/index.css @@ -11,55 +11,19 @@ * governing permissions and limitations under the License. */ -.spectrum-CoachMark { - --spectrum-coachmark-min-width: var(--spectrum-coach-mark-minimum-width); - --spectrum-coachmark-width: var(--spectrum-coach-mark-width); - --spectrum-coachmark-max-width: var(--spectrum-coach-mark-maximum-width); - - --spectrum-coachmark-media-height: var(--spectrum-coach-mark-media-height); - --spectrum-coachmark-media-min-height: var(--spectrum-coach-mark-media-minimum-height); - - --spectrum-coachmark-border-size: var(--mod-popover-border-width); - --spectrum-coachmark-border-radius: var(--mod-popover-corner-radius); +@import "./themes/spectrum-two.css"; - /* layout */ - --spectrum-coachmark-padding: var(--spectrum-coach-mark-edge-to-content); - --spectrum-coachmark-heading-to-action-button: var(--spectrum-spacing-300); - --spectrum-coachmark-header-to-body: var(--spectrum-spacing-200); - --spectrum-coachmark-body-to-footer: var(--spectrum-spacing-300); - - /* font */ - --spectrum-coachmark-title-color: var(--spectrum-heading-color); - --spectrum-coachmark-title-font-family: var(--spectrum-sans-serif-font); - --spectrum-coachmark-title-font-style: var(--spectrum-heading-serif-font-style); - --spectrum-coachmark-title-text-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-coachmark-title-font-size: var(--spectrum-coach-mark-title-size); - --spectrum-coachmark-title-text-line-height: var(--spectrum-heading-line-height); - - --spectrum-coachmark-content-font-color: var(--spectrum-body-color); - --spectrum-coachmark-content-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-coachmark-content-font-family: var(--spectrum-sans-serif-font); - --spectrum-coachmark-content-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-coachmark-content-line-height: var(--spectrum-body-line-height); - --spectrum-coachmark-content-font-size: var(--spectrum-coach-mark-body-size); - - --spectrum-coachmark-step-color: var(--spectrum-coach-mark-pagination-color); - --spectrum-coachmark-step-font-weight: var(--spectrum-body-medium-font-weight); - --spectrum-coachmark-step-font-family: var(--spectrum-sans-serif-font); - --spectrum-coachmark-step-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-coachmark-step-line-height: var(--spectrum-body-line-height); - --spectrum-coachmark-step-font-size: var(--spectrum-coach-mark-pagination-body-size); - --spectrum-coachmark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge); - - /* mods */ +.spectrum-CoachMark { + /** @passthroughs */ --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-border-width: var(--spectrum-coachmark-popover-border-width); + --mod-popover-corner-radius: var(--spectrum-coachmark-popover-corner-radius); --mod-popover-content-area-spacing-vertical: 0; --mod-button-edge-to-visual-only: 9px; -} -.spectrum-CoachMark { + --spectrum-coachmark-border-size: var(--mod-popover-border-width); + --spectrum-coachmark-border-radius: var(--mod-popover-corner-radius); + position: relative; min-inline-size: var(--mod-coachmark-min-width, var(--spectrum-coachmark-min-width)); max-inline-size: var(--mod-coachmark-max-width, var(--spectrum-coachmark-max-width)); @@ -71,7 +35,8 @@ } .spectrum-CoachMark-buttongroup--mobile { - --mod-buttongroup-spacing-horizontal: var(--spectrum-spacing-100); + --mod-buttongroup-spacing-horizontal: var(--spectrum-coachmark-buttongroup-spacing-horizontal); + display: var(--spectrum-coachmark-buttongroup-mobile-display); } diff --git a/components/coachmark/metadata/coachmark.yml b/components/coachmark/metadata/coachmark.yml deleted file mode 100644 index 077941d0cf6..00000000000 --- a/components/coachmark/metadata/coachmark.yml +++ /dev/null @@ -1,211 +0,0 @@ -name: Coach mark -SpectrumSiteSlug: https://spectrum.adobe.com/page/coach-mark/ -sections: - - name: Migration Guide - description: | - - Coach Mark is now a seperate component from Coach Indicator -examples: - - id: coachmark - name: Standard - markup: | -
    -
    -
    -
    -
    Try playing with a pixel brush
    -
    -
    - Pixel brushes use pixels to create brush strokes, just like in other design and drawing tools. Start drawing, and zoom in to see the pixels in each stroke. -
    - -
    -
    -
    - -
    -
    -
    -
    -
    Try playing with a pixel brush
    -
    - - - - - -
    -
    - -
    -
    -
    -
    - Pixel brushes use pixels to create brush strokes, just like in other design and drawing tools. Start drawing, and zoom in to see the pixels in each stroke. -
    - -
    -
    -
    - - - id: coachmark - name: With Media - markup: | -
    -
    - -
    -
    - -
    -
    -
    Try playing with a pixel brush
    -
    -
    - Pixel brushes use pixels to create brush strokes, just like in other design and drawing tools. Start drawing, and zoom in to see the pixels in each stroke. -
    - - -
    -
    -
    - -
    -
    -
    -
    - -
    -
    -
    Try playing with a pixel brush
    -
    - - - - - -
    -
    - -
    -
    -
    -
    - Pixel brushes use pixels to create brush strokes, just like in other design and drawing tools. Start drawing, and zoom in to see the pixels in each stroke. -
    - -
    -
    -
    diff --git a/components/coachmark/metadata/metadata.json b/components/coachmark/metadata/metadata.json index 9aa6e64f433..437c74d17d6 100644 --- a/components/coachmark/metadata/metadata.json +++ b/components/coachmark/metadata/metadata.json @@ -64,6 +64,7 @@ "--spectrum-coachmark-border-size", "--spectrum-coachmark-buttongroup-display", "--spectrum-coachmark-buttongroup-mobile-display", + "--spectrum-coachmark-buttongroup-spacing-horizontal", "--spectrum-coachmark-content-font-color", "--spectrum-coachmark-content-font-family", "--spectrum-coachmark-content-font-size", @@ -79,6 +80,8 @@ "--spectrum-coachmark-menu-mobile-display", "--spectrum-coachmark-min-width", "--spectrum-coachmark-padding", + "--spectrum-coachmark-popover-border-width", + "--spectrum-coachmark-popover-corner-radius", "--spectrum-coachmark-step-color", "--spectrum-coachmark-step-font-family", "--spectrum-coachmark-step-font-size", diff --git a/components/coachmark/package.json b/components/coachmark/package.json index 42879ccfe58..e76a3e3183e 100644 --- a/components/coachmark/package.json +++ b/components/coachmark/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/coachmark", - "version": "7.1.3", + "version": "8.0.0-s2-foundations.15", "description": "The Spectrum CSS coachmark component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/coachmark/stories/template.js b/components/coachmark/stories/template.js index 9ea953878be..e0512226948 100644 --- a/components/coachmark/stories/template.js +++ b/components/coachmark/stories/template.js @@ -8,6 +8,9 @@ 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 CoachContainer = ({ rootClass = "spectrum-CoachMark", @@ -17,6 +20,7 @@ export const CoachContainer = ({ isOpen = false, } = {}, context = {}) => { const { globals = {} } = context; + const scale = globals.scale ?? "medium"; return html` diff --git a/components/coachmark/themes/express.css b/components/coachmark/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/coachmark/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/coachmark/themes/spectrum-two.css b/components/coachmark/themes/spectrum-two.css new file mode 100644 index 00000000000..3e7d52e4d33 --- /dev/null +++ b/components/coachmark/themes/spectrum-two.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 + * + * 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-CoachMark { + --spectrum-coachmark-min-width: var(--spectrum-coach-mark-minimum-width); + --spectrum-coachmark-width: var(--spectrum-coach-mark-width); + --spectrum-coachmark-max-width: var(--spectrum-coach-mark-maximum-width); + + --spectrum-coachmark-media-height: var(--spectrum-coach-mark-media-height); + --spectrum-coachmark-media-min-height: var(--spectrum-coach-mark-media-minimum-height); + + /* layout */ + --spectrum-coachmark-padding: var(--spectrum-coach-mark-edge-to-content); + --spectrum-coachmark-heading-to-action-button: var(--spectrum-spacing-300); + --spectrum-coachmark-header-to-body: var(--spectrum-spacing-200); + --spectrum-coachmark-body-to-footer: var(--spectrum-spacing-300); + + /* font */ + --spectrum-coachmark-title-color: var(--spectrum-heading-color); + --spectrum-coachmark-title-font-family: var(--spectrum-sans-serif-font); + --spectrum-coachmark-title-font-style: var(--spectrum-heading-serif-font-style); + --spectrum-coachmark-title-text-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-coachmark-title-font-size: var(--spectrum-coach-mark-title-size); + --spectrum-coachmark-title-text-line-height: var(--spectrum-heading-line-height); + + --spectrum-coachmark-content-font-color: var(--spectrum-body-color); + --spectrum-coachmark-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-coachmark-content-font-family: var(--spectrum-sans-serif-font); + --spectrum-coachmark-content-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-coachmark-content-line-height: var(--spectrum-body-line-height); + --spectrum-coachmark-content-font-size: var(--spectrum-coach-mark-body-size); + + --spectrum-coachmark-step-color: var(--spectrum-coach-mark-pagination-color); + --spectrum-coachmark-step-font-weight: var(--spectrum-body-medium-font-weight); + --spectrum-coachmark-step-font-family: var(--spectrum-sans-serif-font); + --spectrum-coachmark-step-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-coachmark-step-line-height: var(--spectrum-body-line-height); + --spectrum-coachmark-step-font-size: var(--spectrum-coach-mark-pagination-body-size); + --spectrum-coachmark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge); + + /* passthrough abstractions */ + --spectrum-coachmark-popover-border-width: var(--spectrum-border-width-100); + --spectrum-coachmark-popover-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-coachmark-buttongroup-spacing-horizontal: var(--spectrum-spacing-100); + } +} diff --git a/components/coachmark/themes/spectrum.css b/components/coachmark/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/coachmark/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorarea/CHANGELOG.md b/components/colorarea/CHANGELOG.md index 0caa23d8a32..744783a9f07 100644 --- a/components/colorarea/CHANGELOG.md +++ b/components/colorarea/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/colorarea/index.css b/components/colorarea/index.css index cf24c6c22d7..83594a02b5b 100644 --- a/components/colorarea/index.css +++ b/components/colorarea/index.css @@ -10,16 +10,8 @@ * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -.spectrum-ColorArea { - --spectrum-colorarea-border-radius: var(--spectrum-color-area-border-rounding); - --spectrum-colorarea-border-color: rgba(0, 0, 0, 10%); /* TODO replace with token --spectrum-color-area-border-color and --spectrum-color-area-border-opacity using RGBA function */ - --spectrum-colorarea-disabled-background-color: var(--spectrum-disabled-background-color); - --spectrum-colorarea-border-width: var(--spectrum-color-area-border-width); - --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); -} + +@import "./themes/spectrum-two.css"; /* Windows High Contrast Mode */ @media (forced-colors: active) { diff --git a/components/colorarea/metadata/colorarea.yml b/components/colorarea/metadata/colorarea.yml deleted file mode 100644 index ae2e5ea9e5b..00000000000 --- a/components/colorarea/metadata/colorarea.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Color area -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/color-area/ -description: | - - The `.spectrum-ColorHandle` should be moved with the `transform: translate(x, y)` style property as the sliders are dragged - - Set the `background` style property of `.spectrum-ColorArea-gradient` to the gradient of the colors to be selected - - Set the `value` attribute of `.spectrum-ColorArea-slider[name=x]` to the currently selected x value (i.e. saturation) - - Set the `value` attribute of `.spectrum-ColorArea-slider[name=y]` to the currently selected y value (i.e. value) - - Set the value of the ColorHandle component to the selected color - - Marshall focus between the saturation and value sliders according to which keys are pressed (up/down for value, left/right for saturation) -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - - canvas variant has been removed -examples: - - id: color-area - name: Standard - markup: | -
    -
    - -
    -
    - - - -
    - - - -
    - - - id: color-area - name: Disabled - markup: | -
    -
    - -
    -
    -
    - - - -
    - - - id: color-area - name: Custom Size - markup: | -
    -
    - -
    -
    - - - -
    - - - -
    diff --git a/components/colorarea/metadata/metadata.json b/components/colorarea/metadata/metadata.json index 700f0f3caf3..21a748b6a12 100644 --- a/components/colorarea/metadata/metadata.json +++ b/components/colorarea/metadata/metadata.json @@ -30,6 +30,8 @@ "--spectrum-color-area-minimum-width", "--spectrum-color-area-width", "--spectrum-colorarea-border-color", + "--spectrum-colorarea-border-color-opacity", + "--spectrum-colorarea-border-color-rgb", "--spectrum-colorarea-border-radius", "--spectrum-colorarea-border-width", "--spectrum-colorarea-disabled-background-color", diff --git a/components/colorarea/package.json b/components/colorarea/package.json index 0b912f9b9f8..132d8e5c2c5 100644 --- a/components/colorarea/package.json +++ b/components/colorarea/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/colorarea", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS Color Area component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/colorarea/stories/colorarea.test.js b/components/colorarea/stories/colorarea.test.js index e55ef65e161..0536a118c06 100644 --- a/components/colorarea/stories/colorarea.test.js +++ b/components/colorarea/stories/colorarea.test.js @@ -14,7 +14,6 @@ export const ColorAreaGroup = Variants({ }, ], stateData: [ - { testHeading: "Disabled", isDisabled: true, diff --git a/components/colorarea/stories/template.js b/components/colorarea/stories/template.js index 35a66e3cc69..541357db203 100644 --- a/components/colorarea/stories/template.js +++ b/components/colorarea/stories/template.js @@ -4,6 +4,9 @@ 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-ColorArea", @@ -16,6 +19,7 @@ export const Template = ({ selectedColor = "rgba(255, 0, 0, 1)", } = {}, context = {}) => { const { updateArgs } = context; + return html`
    + * + * 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/colorarea/themes/spectrum-two.css b/components/colorarea/themes/spectrum-two.css new file mode 100644 index 00000000000..4ba68fa1502 --- /dev/null +++ b/components/colorarea/themes/spectrum-two.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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-ColorArea { + --spectrum-colorarea-border-radius: var(--spectrum-color-area-border-rounding); + --spectrum-colorarea-border-color: rgb(0 0 0 / 10%); /* TODO replace with token --spectrum-color-area-border-color and --spectrum-color-area-border-opacity using RGBA function */ + --spectrum-colorarea-disabled-background-color: var(--spectrum-disabled-background-color); + --spectrum-colorarea-border-width: var(--spectrum-color-area-border-width); + --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); + } +} diff --git a/components/colorarea/themes/spectrum.css b/components/colorarea/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/colorarea/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorhandle/CHANGELOG.md b/components/colorhandle/CHANGELOG.md index d08033a1fb8..c083c23d749 100644 --- a/components/colorhandle/CHANGELOG.md +++ b/components/colorhandle/CHANGELOG.md @@ -1,5 +1,195 @@ # Change Log +## 9.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.13 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 9.0.0-s2-foundations.13 + +### Minor Changes + +- [#3016](https://github.com/adobe/spectrum-css/pull/3016) [`9dd8558`](https://github.com/adobe/spectrum-css/commit/9dd85581dff69b051a16a3b71054fa65334d106b) Thanks [@cdransf](https://github.com/cdransf)! - Move the color handle passthrough modifiers out of the theme to the base index.css. + +## 9.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.12 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 9.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.11 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 9.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.10 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 9.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.9 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 9.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.8 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 9.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.7 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 9.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.6 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.6 + +## 9.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.5 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 9.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.4 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 9.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.3 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 9.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.2 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 9.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.1 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 9.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.0 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.0 + ## 8.1.3 ### Patch Changes diff --git a/components/colorhandle/index.css b/components/colorhandle/index.css index b6ce941d068..6908571f9c1 100644 --- a/components/colorhandle/index.css +++ b/components/colorhandle/index.css @@ -10,32 +10,13 @@ * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -.spectrum-ColorHandle { - --spectrum-colorhandle-size: var(--spectrum-color-handle-size); - --spectrum-colorhandle-focused-size: var(--spectrum-color-handle-size-key-focus); - --spectrum-colorhandle-hitarea-size: var(--spectrum-color-control-track-width); - - --spectrum-colorhandle-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-colorhandle-animation-easing: ease-in-out; - - /* outer border as box shadow on the colorhandle */ - --spectrum-colorhandle-outer-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-outer-border-opacity)); /* TODO replace --spectrum-black-rgb with color-handle-outer-border-color when supported by RGBA */ - --spectrum-colorhandle-outer-border-width: var(--spectrum-color-handle-outer-border-width); - /* inner border as inset boxshadow on the colorhandle-inner */ - --spectrum-colorhandle-inner-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-inner-border-opacity)); /* TODO replace --spectrum-black-rgb with color-handle-inner-border-color when supported by RGBA */ - --spectrum-colorhandle-inner-border-width: var(--spectrum-color-handle-inner-border-width); +@import "./themes/spectrum-two.css"; - /* primary border on color handle */ - --spectrum-colorhandle-border-width: var(--spectrum-color-handle-border-width); - --spectrum-colorhandle-border-color: var(--spectrum-white); - - --spectrum-colorhandle-border-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-colorhandle-fill-color-disabled: var(--spectrum-disabled-background-color); +.spectrum-ColorHandle { + /* @passthrough -- opacity checkerboard customization */ --mod-opacity-checkerboard-position: 50%; -} -.spectrum-ColorHandle { display: block; position: absolute; z-index: 1; /* Be above */ @@ -54,6 +35,8 @@ border-radius: 100%; + transition: all var(--mod-colorhandle-animation-duration, var(--spectrum-colorhandle-animation-duration)) var(--mod-colorhandle-animation-easing, var(--spectrum-colorhandle-animation-easing)); + &::after { content: ""; inset-inline: calc(50% - calc(var(--mod-colorhandle-hitarea-size, var(--spectrum-colorhandle-hitarea-size)) / 2)); @@ -65,8 +48,6 @@ border-radius: var(--mod-colorhandle-hitarea-border-radius, 100%); } - transition: all var(--mod-colorhandle-animation-duration, var(--spectrum-colorhandle-animation-duration)) var(--mod-colorhandle-animation-easing, var(--spectrum-colorhandle-animation-easing)); - &.is-focused, &:focus-visible { /* Bigger handle when focused */ diff --git a/components/colorhandle/metadata/colorhandle.yml b/components/colorhandle/metadata/colorhandle.yml deleted file mode 100644 index 1367e3caf31..00000000000 --- a/components/colorhandle/metadata/colorhandle.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Color handle -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/color-area/ -description: | - - Set the `--spectrum-picked-color` custom property to the CSS color value you want to show - - Apply `.is-open` to `.spectrum-ColorLoupe` display the loupe -sections: - - name: Migration Guide - description: | - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: color-area - name: Standard - demoClassName: spectrum-CSSExample-example--spacious - markup: | -
    -
    -
    - - id: color-area - name: Disabled - demoClassName: spectrum-CSSExample-example--spacious - markup: | -
    -
    -
    - - id: color-area - name: Open - demoClassName: spectrum-CSSExample-example--spacious - markup: | -
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/components/colorhandle/package.json b/components/colorhandle/package.json index e22a6f1700c..4a1659d4123 100644 --- a/components/colorhandle/package.json +++ b/components/colorhandle/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/colorhandle", - "version": "8.1.3", + "version": "9.0.0-s2-foundations.14", "description": "The Spectrum CSS Color Handle component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/colorhandle/stories/template.js b/components/colorhandle/stories/template.js index 12bb5cdb7dc..bc97938bbd8 100644 --- a/components/colorhandle/stories/template.js +++ b/components/colorhandle/stories/template.js @@ -5,6 +5,9 @@ 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-ColorHandle", diff --git a/components/colorhandle/themes/express.css b/components/colorhandle/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/colorhandle/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorhandle/themes/spectrum-two.css b/components/colorhandle/themes/spectrum-two.css new file mode 100644 index 00000000000..f3ef852ab6b --- /dev/null +++ b/components/colorhandle/themes/spectrum-two.css @@ -0,0 +1,38 @@ +/*! + * 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 + * + * 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-ColorHandle { + --spectrum-colorhandle-size: var(--spectrum-color-handle-size); + --spectrum-colorhandle-focused-size: var(--spectrum-color-handle-size-key-focus); + --spectrum-colorhandle-hitarea-size: var(--spectrum-color-control-track-width); + + --spectrum-colorhandle-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-colorhandle-animation-easing: ease-in-out; + + /* outer border as box shadow on the colorhandle */ + --spectrum-colorhandle-outer-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-outer-border-opacity)); /* TODO replace --spectrum-black-rgb with color-handle-outer-border-color when supported by RGBA */ + --spectrum-colorhandle-outer-border-width: var(--spectrum-color-handle-outer-border-width); + + /* inner border as inset boxshadow on the colorhandle-inner */ + --spectrum-colorhandle-inner-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-inner-border-opacity)); /* TODO replace --spectrum-black-rgb with color-handle-inner-border-color when supported by RGBA */ + --spectrum-colorhandle-inner-border-width: var(--spectrum-color-handle-inner-border-width); + + /* primary border on color handle */ + --spectrum-colorhandle-border-width: var(--spectrum-color-handle-border-width); + --spectrum-colorhandle-border-color: var(--spectrum-white); + + --spectrum-colorhandle-border-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-colorhandle-fill-color-disabled: var(--spectrum-disabled-background-color); + } +} diff --git a/components/colorhandle/themes/spectrum.css b/components/colorhandle/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/colorhandle/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorloupe/CHANGELOG.md b/components/colorloupe/CHANGELOG.md index 06ee063a5d1..72129e2bea8 100644 --- a/components/colorloupe/CHANGELOG.md +++ b/components/colorloupe/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/colorloupe/index.css b/components/colorloupe/index.css index 2f243c42612..0e0ba122aaa 100644 --- a/components/colorloupe/index.css +++ b/components/colorloupe/index.css @@ -10,26 +10,8 @@ * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -.spectrum-ColorLoupe { - --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-x); - --spectrum-colorloupe-drop-shadow-y: var(--spectrum-color-loupe-drop-shadow-y); - --spectrum-colorloupe-drop-shadow-blur: var(--spectrum-color-loupe-drop-shadow-blur); - --spectrum-colorloupe-drop-shadow-color: var(--spectrum-color-loupe-drop-shadow-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); -} +@import "./themes/spectrum-two.css"; .spectrum-ColorLoupe { inline-size: var(--spectrum-colorloupe-width); @@ -42,9 +24,7 @@ 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; + 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-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))); diff --git a/components/colorloupe/metadata/colorloupe.yml b/components/colorloupe/metadata/colorloupe.yml deleted file mode 100644 index 00520ee320d..00000000000 --- a/components/colorloupe/metadata/colorloupe.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Color loupe -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/color-loupe/ -description: | - - Set the `--spectrum-picked-color` custom property to the CSS color value you want to show - - Apply `.is-open` to display the loupe - - Color Loupe does not have a disabled style; do not show it when the handle its attached to is disabled. -examples: - - id: color-loupe - name: Standard - demoClassName: spectrum-CSSExample-example--spacious - markup: | - - - - - - - - - - - - - - - - - - - - - - - diff --git a/components/colorloupe/package.json b/components/colorloupe/package.json index 24301bbeaac..c47064e8a51 100644 --- a/components/colorloupe/package.json +++ b/components/colorloupe/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/colorloupe", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS Color Loupe component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/colorloupe/stories/template.js b/components/colorloupe/stories/template.js index 0205238614a..8f3a3989b48 100644 --- a/components/colorloupe/stories/template.js +++ b/components/colorloupe/stories/template.js @@ -3,6 +3,9 @@ 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-ColorLoupe", @@ -11,7 +14,8 @@ export const Template = ({ customStyles = {}, customClasses = [], selectedColor = "rgba(255, 0, 0, 0.5)", -} = {}) => svg` +} = {}) => { + return svg` -`; + `; +}; diff --git a/components/colorloupe/themes/express.css b/components/colorloupe/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/colorloupe/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorloupe/themes/spectrum-two.css b/components/colorloupe/themes/spectrum-two.css new file mode 100644 index 00000000000..d04f3765aa0 --- /dev/null +++ b/components/colorloupe/themes/spectrum-two.css @@ -0,0 +1,35 @@ +/*! + * 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 + * + * 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-ColorLoupe { + --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-x); + --spectrum-colorloupe-drop-shadow-y: var(--spectrum-color-loupe-drop-shadow-y); + --spectrum-colorloupe-drop-shadow-blur: var(--spectrum-color-loupe-drop-shadow-blur); + --spectrum-colorloupe-drop-shadow-color: var(--spectrum-color-loupe-drop-shadow-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); + } +} diff --git a/components/colorloupe/themes/spectrum.css b/components/colorloupe/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/colorloupe/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorslider/CHANGELOG.md b/components/colorslider/CHANGELOG.md index 4d9b2943e22..f1324148a78 100644 --- a/components/colorslider/CHANGELOG.md +++ b/components/colorslider/CHANGELOG.md @@ -1,5 +1,200 @@ # Change Log +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.13 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Minor Changes + +- [#3017](https://github.com/adobe/spectrum-css/pull/3017) [`2715979`](https://github.com/adobe/spectrum-css/commit/2715979ffef5eda39cf2701d0cccd18efd94136c) Thanks [@cdransf](https://github.com/cdransf)! - Move the color slider passthrough modifiers out of the theme to the base index.css. + +### Patch Changes + +- Updated dependencies [[`9dd8558`](https://github.com/adobe/spectrum-css/commit/9dd85581dff69b051a16a3b71054fa65334d106b)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.12 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.11 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.10 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.9 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.8 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.7 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.6 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.5 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.4 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.3 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.2 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.1 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.0 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/colorslider/index.css b/components/colorslider/index.css index c8b855b9bd9..069547f657c 100644 --- a/components/colorslider/index.css +++ b/components/colorslider/index.css @@ -11,21 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-ColorSlider { - /* Size and Spacing */ - --spectrum-color-slider-handle-margin-block: var(--spectrum-component-top-to-text-75); - - /* @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-rgba: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-color-slider-border-opacity)); - - /* Checkerboard pattern */ - --spectrum-color-slider-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); - --spectrum-color-slider-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); - --spectrum-color-slider-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); - - /* Settings for nested Color handle */ - --mod-colorhandle-hitarea-border-radius: var(--mod-color-slider-handle-hitarea-border-radius, 0px); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-ColorSlider { @@ -37,6 +23,9 @@ } .spectrum-ColorSlider { + /* @passthroughs -- settings for nested color handle */ + --mod-colorhandle-hitarea-border-radius: var(--mod-color-slider-handle-hitarea-border-radius, 0px); + position: relative; display: block; diff --git a/components/colorslider/metadata/colorslider.yml b/components/colorslider/metadata/colorslider.yml deleted file mode 100644 index 50edaee50bb..00000000000 --- a/components/colorslider/metadata/colorslider.yml +++ /dev/null @@ -1,197 +0,0 @@ -name: Color slider -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/color-slider/ -description: | - - Set the color of the nested Color handle component to match Color slider's currently selected color using its custom property: `--spectrum-picked-color`. - - The `.spectrum-ColorHandle` should be moved with `inset-inline-*` (horizontal) or `inset-block-*` (vertical) style properties as the slider is dragged. - - Ensure that you set the `min` and `max` attributes of the `.spectrum-ColorSlider-slider` input to the corresponding scale (i.e. `0` to `1` for `a`, `0` to `255` for `r`, etc). - - Ensure that you set the `step` attribute of the `.spectrum-ColorSlider-slider` input appropriately (i.e. `0.1` for `a`, `s`, `v` or `1` and `h`, `r`, etc). - - Set the `background` style property of `.spectrum-ColorSlider-gradient` to the gradient of the colors to be selected. The CSS will automatically reverse the gradient element horizontally when using a RTL (right-to-left) base direction. - - Alternatively, provide a `` or `` element with the gradient you want to use and apply the `.spectrum-ColorSlider-gradient` class. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - - The component now supports a RTL (right-to-left) base direction with logical properties, and reverses the gradient. - - Color slider examples no longer display a "canvas" variant. -examples: - - id: color-slider - name: Standard - markup: | -
    - - -
    -
    - - - -
    - - -
    - - - id: color-slider-alpha - name: Alpha - markup: | -
    - - -
    -
    - - - -
    - - -
    - - - id: color-slider-disabled - name: Disabled - markup: | -
    - - -
    -
    - - - -
    - - -
    - - - id: color-slider-vertical - name: Vertical - markup: | -
    - - -
    -
    - - - -
    - - -
    - - - id: color-slider-with-image - name: Standard (with image) - markup: | -
    - - -
    -
    - - - - - - -
    - - -
    - - - id: color-slider-full - name: Full example - demoClassName: spectrum-CSSExample-example--spacious - markup: | -
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    - - -
    - - - id: color-slider-full-alpha - name: Full example (alpha) - demoClassName: spectrum-CSSExample-example--spacious - markup: | -
    - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    - - -
    diff --git a/components/colorslider/package.json b/components/colorslider/package.json index dbfdb16336c..be515527e9c 100644 --- a/components/colorslider/package.json +++ b/components/colorslider/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/colorslider", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.14", "description": "The Spectrum CSS Color slider component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/colorslider/stories/template.js b/components/colorslider/stories/template.js index 821f05c9839..b3bfb4bf4c5 100644 --- a/components/colorslider/stories/template.js +++ b/components/colorslider/stories/template.js @@ -6,6 +6,9 @@ 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-ColorSlider", @@ -28,6 +31,7 @@ export const Template = ({ colorHandleStyle = {}, } = {}, context = {}) => { const { updateArgs } = context; + return html`
    + * + * 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/colorslider/themes/spectrum-two.css b/components/colorslider/themes/spectrum-two.css new file mode 100644 index 00000000000..4f81f14b83d --- /dev/null +++ b/components/colorslider/themes/spectrum-two.css @@ -0,0 +1,27 @@ +/*! + * 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 + * + * 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-ColorSlider { + /* Size and Spacing */ + --spectrum-color-slider-handle-margin-block: var(--spectrum-component-top-to-text-75); + + /* @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-rgba: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-color-slider-border-opacity)); + + /* Checkerboard pattern */ + --spectrum-color-slider-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --spectrum-color-slider-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --spectrum-color-slider-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); + } +} diff --git a/components/colorslider/themes/spectrum.css b/components/colorslider/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/colorslider/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/colorwheel/CHANGELOG.md b/components/colorwheel/CHANGELOG.md index 89ea46070f2..5aff8c5cb74 100644 --- a/components/colorwheel/CHANGELOG.md +++ b/components/colorwheel/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 5.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.14 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.13 + - @spectrum-css/colorarea@6.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.12 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.12 + - @spectrum-css/colorarea@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.11 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.11 + - @spectrum-css/colorarea@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.10 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.10 + - @spectrum-css/colorarea@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.9 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.9 + - @spectrum-css/colorarea@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.8 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.8 + - @spectrum-css/colorarea@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.7 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.7 + - @spectrum-css/colorarea@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.6 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.6 + - @spectrum-css/colorarea@6.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.5 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.5 + - @spectrum-css/colorarea@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.4 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.4 + - @spectrum-css/colorarea@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.3 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.3 + - @spectrum-css/colorarea@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.2 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.2 + - @spectrum-css/colorarea@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/colorhandle@9.0.0-s2-foundations.1 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.1 + - @spectrum-css/colorarea@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/colorarea@6.0.0-s2-foundations.0 + - @spectrum-css/colorhandle@9.0.0-s2-foundations.0 + - @spectrum-css/colorloupe@6.0.0-s2-foundations.0 + ## 4.1.3 ### Patch Changes diff --git a/components/colorwheel/index.css b/components/colorwheel/index.css index 20d95047da6..7aac955ca2f 100644 --- a/components/colorwheel/index.css +++ b/components/colorwheel/index.css @@ -10,31 +10,24 @@ * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -.spectrum-ColorWheel { - --spectrum-colorwheel-width: var(--spectrum-color-wheel-width); - --spectrum-colorwheel-min-width: var(--spectrum-color-wheel-minimum-width); - --spectrum-colorwheel-height: var(--spectrum-color-wheel-width); - --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-200); - --spectrum-colorwheel-border-width: var(--spectrum-border-width-100); - --spectrum-colorwheel-fill-color-disabled: var(--spectrum-disabled-background-color); - --spectrum-colorwheel-track-width: var(--spectrum-color-control-track-width); - --spectrum-colorwheel-colorarea-margin: var(--spectrum-color-wheel-color-area-margin); - --spectrum-colorwheel-colorhandle-position: calc((var(--spectrum-colorwheel-width) / 2) - (var(--spectrum-colorwheel-track-width) / 2)); -} + +@import "./themes/spectrum-two.css"; /* Windows High Contrast Mode */ @media (forced-colors: active) { .spectrum-ColorWheel { --highcontrast-colorwheel-border-color-disabled: GrayText; --highcontrast-colorwheel-fill-color-disabled: Canvas; - } - .spectrum-ColorWheel { forced-color-adjust: none; } } .spectrum-ColorWheel { + /* --_track-width and --_border-width to be used with JS in calculating the clip-path paths and colorarea-container-size */ + --_track-width: var(--mod-colorwheel-track-width, var(--spectrum-colorwheel-track-width)); + --_border-width: var(--mod-colorwheel-border-width, var(--spectrum-colorwheel-border-width)); + position: relative; display: block; min-inline-size: var(--mod-colorwheel-min-width, var(--spectrum-colorwheel-min-width)); @@ -47,10 +40,6 @@ z-index: 2; } - /* --track-width and --border-width to be used with JS in calculating the clip-path paths and colorarea-container-size */ - --track-width: var(--mod-colorwheel-track-width, var(--spectrum-colorwheel-track-width)); - --border-width: var(--mod-colorwheel-border-width, var(--spectrum-colorwheel-border-width)); - &.is-disabled { pointer-events: none; } @@ -124,7 +113,7 @@ .spectrum-ColorWheel-wheel { position: absolute; - background: conic-gradient(from 90deg, red, rgb(255, 128, 0), rgb(255, 255, 0), rgb(128, 255, 0), rgb(0, 255, 0), rgb(0, 255, 128), rgb(0, 255, 255), rgb(0, 128, 255), rgb(0, 0, 255), rgb(128, 0, 255), rgb(255, 0, 255), rgb(255, 0, 128), red); + background: conic-gradient(from 90deg, red, rgb(255 128 0), rgb(255 255 0), rgb(128 255 0), rgb(0 255 0), rgb(0 255 128), rgb(0 255 255), rgb(0 128 255), rgb(0 0 255), rgb(128 0 255), rgb(255 0 255), rgb(255 0 128), red); inset-block: var(--spectrum-colorwheel-border-width); inset-inline: var(--spectrum-colorwheel-border-width); clip-path: path(evenodd, var(--mod-colorwheel-path, var(--spectrum-colorwheel-path))); diff --git a/components/colorwheel/metadata/colorwheel.yml b/components/colorwheel/metadata/colorwheel.yml deleted file mode 100644 index 27dd8f12780..00000000000 --- a/components/colorwheel/metadata/colorwheel.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Color wheel -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/color-wheel/ -description: | - - For a given rotation on the wheel, `X`, the `.spectrum-ColorHandle` should be moved by applying the style property `transform: translate(${Y * Math.cos(X)}px, ${Y * Math.sin(X)}px)`, where Y is ((radius - `.spectrum-colorwheel-track-width`) / 2)) - - Set the `value` attribute of `.spectrum-ColorWheel-value` to the currently selected color (i.e. `hsl(326, 100%, 50%)`) - - Add `.is-dragged` when the handle is being dragged - - To display with ColorArea inside of ColorWheel, add ColorArea to `spectrum-ColorWheel-colorarea-container` with `style="--mod-colorarea-width: 70.1%; --mod-colorarea-height: 70.1%"` - - `.spectrum-colorwheel-colorarea-container-size` is hard coded to position the ColorArea within the ColorWheel using `.spectrum-color-wheel-color-area-margin`. Using JS container size can be calcaulted with `Math.sqrt(2 * R * R)`, where R is the innerRadius as calcaulted for the clip paths - - `.spectrum-colorwheel-path`, `.spectrum-colorwheel-path-borders` and `.spectrum-colorwheel-colorarea-container` are hard coded in CSS and include token values in custom CSS variables so they can be accessed with JS to and used to calcualte these values, `const wheel = document.querySelector(".spectrum-ColorWheel-wheel") getComputedStyle(wheel).getPropertyValue('--track-width'))` -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - - Colorwheel no longer displays a canvas variant - - ColorWheel refactored to use a clip-path instead of an svg with a mask -examples: - - id: color-wheel - name: Standard - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - - - - -
    - -
    - - id: color-wheel - name: Disabled - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - - - - -
    - -
    - - id: color-wheel - name: Standard with ColorArea - markup: | -
    -
    -
    -
    -
    -
    -
    - - - -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    - -
    diff --git a/components/colorwheel/package.json b/components/colorwheel/package.json index d7f5f1aea8a..c7aecb94d8d 100644 --- a/components/colorwheel/package.json +++ b/components/colorwheel/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/colorwheel", - "version": "4.1.3", + "version": "5.0.0-s2-foundations.13", "description": "The Spectrum CSS Color Area component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/colorwheel/stories/template.js b/components/colorwheel/stories/template.js index 1d02f5e7823..851150ffd37 100644 --- a/components/colorwheel/stories/template.js +++ b/components/colorwheel/stories/template.js @@ -5,6 +5,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/colorwheel/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..66ddfcbb48c --- /dev/null +++ b/components/colorwheel/themes/spectrum-two.css @@ -0,0 +1,26 @@ +/*! + * 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 + * + * 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-width: var(--spectrum-color-wheel-width); + --spectrum-colorwheel-min-width: var(--spectrum-color-wheel-minimum-width); + --spectrum-colorwheel-height: var(--spectrum-color-wheel-width); + --spectrum-colorwheel-border-color: var(--spectrum-transparent-black-200); + --spectrum-colorwheel-border-width: var(--spectrum-border-width-100); + --spectrum-colorwheel-fill-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-colorwheel-track-width: var(--spectrum-color-control-track-width); + --spectrum-colorwheel-colorarea-margin: var(--spectrum-color-wheel-color-area-margin); + --spectrum-colorwheel-colorhandle-position: calc((var(--spectrum-colorwheel-width) / 2) - (var(--spectrum-colorwheel-track-width) / 2)); + } +} diff --git a/components/colorwheel/themes/spectrum.css b/components/colorwheel/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/colorwheel/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/combobox/CHANGELOG.md b/components/combobox/CHANGELOG.md index 4db24a7d7cb..662b882431b 100644 --- a/components/combobox/CHANGELOG.md +++ b/components/combobox/CHANGELOG.md @@ -1,5 +1,276 @@ # Change Log +## 4.0.0-s2-foundations.16 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0) Thanks [@pfulton](https://github.com/pfulton)! - ActionButton: + + - Correct --spectrum-actionbutton-background-color-selected-disabled to be --spectrum-actionbutton-(background|border)-color-disabled-selected + + Combobox: + + - Move --spectrum-combobox-min-inline-size and --spectrum-combobox-button-width to the index.css + + FieldGroup: + + - Swap gap back to margin-inline-end on FieldGroup + + Typography: + + - Remap body size to xs if xxs provided + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9ae725f`](https://github.com/adobe/spectrum-css/commit/9ae725f10ebbb78b62070c4c477cb41cfc1b1ed6) Thanks [@pfulton](https://github.com/pfulton)! - Combobox moved the quiet min-inline-size property to index.css from theme to pick up the t-shirt sizing for the calc. + + Typography increases specificity for the t-shirt sizing. + + Stepper fixes for the disabled + hovered states as well as regressions fixed for the quiet variant. + +## 4.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.13 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.14 + - @spectrum-css/textfield@8.0.0-s2-foundations.14 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.14 + +### Minor Changes + +- [#3036](https://github.com/adobe/spectrum-css/pull/3036) [`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - [CSS-890]: adjusts --mods to be applied inside of index.css + +### Patch Changes + +- Updated dependencies [[`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.18 + +## 4.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`a0d6de4`](https://github.com/adobe/spectrum-css/commit/a0d6de45845c9158ca30da1a34e30461a9d0af31) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-240] Quiet combobox picker button should have transparent borders + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.12 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.12 + - @spectrum-css/textfield@8.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.11 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.11 + - @spectrum-css/textfield@8.0.0-s2-foundations.11 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.10 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.10 + - @spectrum-css/textfield@8.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.9 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.9 + - @spectrum-css/textfield@8.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.8 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.8 + - @spectrum-css/textfield@8.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.7 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.7 + - @spectrum-css/textfield@8.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/progresscircle@4.0.0-s2-foundations.6 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.6 + - @spectrum-css/textfield@8.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.5 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.5 + - @spectrum-css/textfield@8.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.4 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.4 + - @spectrum-css/textfield@8.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.3 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.3 + - @spectrum-css/textfield@8.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.2 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.2 + - @spectrum-css/textfield@8.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.1 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.1 + - @spectrum-css/textfield@8.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/progresscircle@4.0.0-s2-foundations.0 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.0 + - @spectrum-css/textfield@8.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 3.1.4 ### Patch Changes diff --git a/components/combobox/index.css b/components/combobox/index.css index af500b165ac..4498aee162e 100644 --- a/components/combobox/index.css +++ b/components/combobox/index.css @@ -11,42 +11,30 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; -.spectrum-Combobox { - --spectrum-combobox-inline-size: var(--spectrum-field-width); - --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); - - --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-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); - - --spectrum-combobox-border-radius: var(--spectrum-corner-radius-100); - --spectrum-combobox-border-width: var(--spectrum-border-width-100); +@media (forced-colors: active) { + .spectrum-Combobox { + --highcontrast-combobox-border-color-highlight: Highlight; + --highcontrast-combobox-border-color-invalid: Highlight; - --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component); + .spectrum-Combobox-button.spectrum-PickerButton--quiet { + .spectrum-PickerButton-fill { + forced-color-adjust: none; + } - --spectrum-combobox-font-style: var(--spectrum-default-font-style); - --spectrum-combobox-line-height: var(--spectrum-line-height-100); + .spectrum-PickerButton-icon { + /* Should match foreground color of the Textfield. */ + color: CanvasText; + } + } + } +} - --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); - --spectrum-combobox-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); - --spectrum-combobox-border-color-invalid-key-focus: var(--spectrum-negative-border-color-key-focus); +.spectrum-Combobox { + --spectrum-combobox-button-inline-offset: 0px; + --spectrum-combobox-min-inline-size: calc(var(--spectrum-combobox-minimum-width-multiplier) * var(--spectrum-combobox-block-size)); + --spectrum-combobox-button-width: var(--spectrum-combobox-block-size); /* @passthroughs start -- settings for nested Textfield component */ --mod-textfield-focus-indicator-gap: var(--mod-combobox-focus-indicator-gap, var(--spectrum-combobox-focus-indicator-gap)); @@ -90,115 +78,7 @@ --mod-picker-button-background-color-disabled: var(--mod-combobox-background-color-disabled); --mod-picker-button-font-color-disabled: var(--mod-combobox-font-color-disabled); /* @passthroughs end -- settings for nested Picker Button component */ -} - -.spectrum-Combobox--sizeS { - --spectrum-combobox-block-size: var(--spectrum-component-height-75); - --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-combobox-font-size: var(--spectrum-font-size-75); - - --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-small); - --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-small); - --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-small); - --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-small); - --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-75); - --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-75); - --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-75); -} - -.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--sizeL { - --spectrum-combobox-block-size: var(--spectrum-component-height-200); - --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-combobox-font-size: var(--spectrum-font-size-200); - - --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-large); - --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-large); - --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-large); - --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-large); - --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-200); - --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-200); - --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-200); -} - -.spectrum-Combobox--sizeXL { - --spectrum-combobox-block-size: var(--spectrum-component-height-300); - --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-300); - --spectrum-combobox-font-size: var(--spectrum-font-size-300); - - --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-extra-large); - --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-extra-large); - --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-extra-large); - --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-extra-large); - --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-300); - --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-300); - --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-300); - --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-300); -} - -.spectrum-Combobox--quiet { - --spectrum-combobox-min-inline-size: calc(var(--spectrum-combo-box-quiet-minimum-width-multiplier) * var(--spectrum-combobox-block-size)); - --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-quiet); - --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)); - - &.spectrum-Combobox--sizeS { - --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-small); - } - - &.spectrum-Combobox--sizeM { - --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-medium); - } - - &.spectrum-Combobox--sizeL { - --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-large); - } - - &.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) { - .spectrum-Combobox { - --highcontrast-combobox-border-color-highlight: Highlight; - --highcontrast-combobox-border-color-invalid: Highlight; - - .spectrum-Combobox-button.spectrum-PickerButton--quiet { - .spectrum-PickerButton-fill { - forced-color-adjust: none; - } - - .spectrum-PickerButton-icon { - /* Should match foreground color of the Textfield. */ - color: CanvasText; - } - } - } -} -.spectrum-Combobox { position: relative; display: inline-flex; flex-flow: row nowrap; @@ -231,7 +111,7 @@ /* PICKER BUTTON */ .spectrum-Combobox-button { position: absolute; - inset-inline-end: calc(-1 * var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset, 0px))); + inset-inline-end: calc(-1 * var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset))); /* Default */ &:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet) { @@ -345,7 +225,7 @@ .spectrum-Combobox-textfield.is-invalid &, .spectrum-Combobox-textfield.is-loading & { padding-inline-end: calc( - var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-icon-to-button, var(--spectrum-combobox-spacing-inline-icon-to-button)) + var(--mod-combobox-icon-size, var(--spectrum-combobox-icon-size)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset, 0px)) - + var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-icon-to-button, var(--spectrum-combobox-spacing-inline-icon-to-button)) + var(--mod-combobox-icon-size, var(--spectrum-combobox-icon-size)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset)) - (var(--mod-combobox-border-width, var(--spectrum-combobox-border-width)) * 2) ); } @@ -370,13 +250,19 @@ } /* QUIET VARIATION (no visible background) */ -.spectrum-Combobox--quiet { - border-radius: 0; +.spectrum-Combobox.spectrum-Combobox--quiet { + --spectrum-combobox-min-inline-size: calc(var(--spectrum-combobox-minimum-width-multiplier) * var(--mod-combobox-block-size, var(--spectrum-combobox-block-size))); + --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)); + --spectrum-combobox-border-radius: 0; - .spectrum-Combobox-textfield { - &.is-invalid .spectrum-Textfield-validationIcon { - inset-inline-end: var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)); - } + /* Settings for nested Picker Button component. */ + --mod-picker-button-background-color-quiet: transparent; + --mod-picker-button-border-color-quiet: transparent; + --mod-picker-button-border-color: var(--mod-picker-button-border-color-quiet); + + + .spectrum-Combobox-textfield.is-invalid .spectrum-Textfield-validationIcon { + inset-inline-end: var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)); } .spectrum-Combobox-input { @@ -386,11 +272,11 @@ padding-block-end: calc(var(--mod-combobox-spacing-block-end-edge-to-text, var(--spectrum-combobox-spacing-block-end-edge-to-text)) - var(--mod-combobox-border-width, var(--spectrum-combobox-border-width))); padding-inline-start: var(--mod-combobox-spacing-inline-start-edge-to-text, var(--spectrum-combobox-spacing-inline-start-edge-to-text)); - padding-inline-end: calc(var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset, 0px))); + padding-inline-end: calc(var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset))); } .spectrum-Combobox-textfield.is-invalid .spectrum-Combobox-input, .spectrum-Combobox-textfield.is-loading .spectrum-Combobox-input { - padding-inline-end: calc(var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-icon-to-button, var(--spectrum-combobox-spacing-inline-icon-to-button)) + var(--mod-combobox-icon-size, var(--spectrum-combobox-icon-size)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset, 0px))); + padding-inline-end: calc(var(--mod-combobox-button-width, var(--spectrum-combobox-button-width)) + var(--mod-combobox-spacing-inline-icon-to-button, var(--spectrum-combobox-spacing-inline-icon-to-button)) + var(--mod-combobox-icon-size, var(--spectrum-combobox-icon-size)) + var(--mod-combobox-spacing-inline-end-edge-to-text, var(--spectrum-combobox-spacing-inline-end-edge-to-text)) - var(--mod-combobox-button-inline-offset, var(--spectrum-combobox-button-inline-offset))); } } diff --git a/components/combobox/metadata/combobox.yml b/components/combobox/metadata/combobox.yml deleted file mode 100644 index c0b03aa21c7..00000000000 --- a/components/combobox/metadata/combobox.yml +++ /dev/null @@ -1,376 +0,0 @@ -name: Combobox -description: Combobox combines a text field with a picker menu. -SpectrumSiteSlug: https://spectrum.adobe.com/page/combo-box/ -sections: - - name: Migration Guide - description: | - ### Component separated from InputGroup - This component was previously a variant style for InputGroup. **InputGroup is now deprecated**. - The classes containing `InputGroup` have been renamed or removed. For details, see the "renamed" and "removed" sections below or the example markup. - - ### New Picker markup - Instead of a `.spectrum-Picker`, Combobox now uses `.spectrum-PickerButton`. Refer to the example markup for usage details. - - ### New Textfield markup - Combobox now uses the new Textfield markup. See the [Textfield migration guide](textfield.html#migrationguide) for more information. - - ### Additional clases - The following classes must be added: - - * `.spectrum-Combobox-textfield` is now required on the Textfield outer element (`.spectrum-Textfield`) - * `.spectrum-Combobox-input` is now required on the `` element inside of Textfields (`.spectrum-Textfield-input`) - * `.spectrum-Combobox-button` is now required on the FieldButton (`.spectrum-ActionButton spectrum-ActionButton--sizeM`) - - ### Indicating validity and focus - Validity and focus must be bubbled up to the parent so descendants siblings can be styled. - - Thus, implementations should add the following classes to the `.spectrum-Combobox` parent class in the following situations: - - * `.is-focused` - when the input or button is focused with the mouse - * `.is-keyboardFocused` - when the input or button is focused with the keyboard - * `.is-valid` - when the input has an explicit valid state - * `.is-invalid` - when the input has an explicit invalid state - * `.is-disabled` - when the control is disabled; should also add to the `.spectrum-Combobox-textfield` and include a `[disabled]` attribute to the `.spectrum-Combobox-button` - * `.is-loading` - when the progress circle is being shown - - ### Renamed classes - - * `.spectrum-InputGroup-textfield` -> `.spectrum-Combobox-textfield` - * `.spectrum-InputGroup-input` -> `.spectrum-Combobox-input` - * `.spectrum-InputGroup-button` -> `.spectrum-Combobox-button` - - ### Removed classes - - * `.InputGroup` (can be be removed from the parent element) - -examples: - - id: combobox - name: Standard - markup: | -
    -
    -

    Default

    - -
    -
    -
    - -
    - - -
    -
    -
    -
    -

    With Field Label

    - -
    -
    Country
    - -
    -
    - -
    - - -
    -
    -
    -
    -

    Disabled

    - -
    -
    -
    - -
    - - -
    -
    -
    -
    -

    Open

    - -
    -
    -
    - -
    - - - -
    -
      -
    • - Ballard -
    • -
    • - Fremont -
    • -
    • - Greenwood -
    • - -
    • - United States of America -
    • -
    -
    -
    -
    -
    -
    - - - id: combobox-quiet - name: Quiet - markup: | -
    -
    -

    Default

    - -
    -
    -
    - -
    - - -
    -
    -
    -
    -

    With Field Label

    - -
    -
    Country
    - -
    -
    - -
    - - -
    -
    -
    -
    -

    Disabled

    - -
    -
    -
    - -
    - - -
    -
    -
    -
    -

    Open

    - -
    -
    -
    - -
    - - - -
    -
      -
    • - Ballard -
    • -
    • - Fremont -
    • -
    • - Greenwood -
    • - -
    • - United States of America -
    • -
    -
    -
    -
    -
    -
    - - - id: combobox - name: Invalid - markup: | -
    -
    -

    Standard

    - -
    -
    -
    - - -
    - - -
    -
    -
    -
    -

    Quiet

    - -
    -
    -
    - - -
    - - -
    -
    -
    -
    - - - id: combobox - name: Loading - markup: | -
    -
    -

    Standard

    - -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -

    Quiet

    - -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    -
    diff --git a/components/combobox/metadata/metadata.json b/components/combobox/metadata/metadata.json index 2f52b2f96ec..141c3ce7cb6 100644 --- a/components/combobox/metadata/metadata.json +++ b/components/combobox/metadata/metadata.json @@ -5,19 +5,6 @@ ".spectrum-Combobox .spectrum-Combobox-button.spectrum-PickerButton--quiet .spectrum-PickerButton-fill", ".spectrum-Combobox .spectrum-Combobox-button.spectrum-PickerButton--quiet .spectrum-PickerButton-icon", ".spectrum-Combobox .spectrum-Popover.is-open", - ".spectrum-Combobox--quiet", - ".spectrum-Combobox--quiet .spectrum-Combobox-input", - ".spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-invalid .spectrum-Combobox-input", - ".spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-invalid .spectrum-Textfield-validationIcon", - ".spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-loading .spectrum-Combobox-input", - ".spectrum-Combobox--quiet.spectrum-Combobox--sizeL", - ".spectrum-Combobox--quiet.spectrum-Combobox--sizeM", - ".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", ".spectrum-Combobox-button.is-focused:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet)", ".spectrum-Combobox-button.is-focused:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet):hover", @@ -59,6 +46,19 @@ ".spectrum-Combobox.is-focused:hover .spectrum-Combobox-button:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet)", ".spectrum-Combobox.is-keyboardFocused .spectrum-Combobox-button.is-invalid:not(:disabled, .spectrum-PickerButton--quiet)", ".spectrum-Combobox.is-keyboardFocused .spectrum-Combobox-button:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet)", + ".spectrum-Combobox.spectrum-Combobox--quiet", + ".spectrum-Combobox.spectrum-Combobox--quiet .spectrum-Combobox-input", + ".spectrum-Combobox.spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-invalid .spectrum-Combobox-input", + ".spectrum-Combobox.spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-invalid .spectrum-Textfield-validationIcon", + ".spectrum-Combobox.spectrum-Combobox--quiet .spectrum-Combobox-textfield.is-loading .spectrum-Combobox-input", + ".spectrum-Combobox.spectrum-Combobox--quiet.spectrum-Combobox--sizeL", + ".spectrum-Combobox.spectrum-Combobox--quiet.spectrum-Combobox--sizeM", + ".spectrum-Combobox.spectrum-Combobox--quiet.spectrum-Combobox--sizeS", + ".spectrum-Combobox.spectrum-Combobox--quiet.spectrum-Combobox--sizeXL", + ".spectrum-Combobox.spectrum-Combobox--sizeL", + ".spectrum-Combobox.spectrum-Combobox--sizeM", + ".spectrum-Combobox.spectrum-Combobox--sizeS", + ".spectrum-Combobox.spectrum-Combobox--sizeXL", ".spectrum-Combobox:has(:active) .spectrum-Combobox-button.is-invalid:not(:disabled, .spectrum-PickerButton--quiet)", ".spectrum-Combobox:has(:active) .spectrum-Combobox-button:not(:disabled, .is-invalid, .spectrum-PickerButton--quiet)", ".spectrum-Combobox:has(:focus) .spectrum-Combobox-button.is-invalid:not(:disabled, .spectrum-PickerButton--quiet)", @@ -158,6 +158,7 @@ "--spectrum-combobox-inline-size", "--spectrum-combobox-line-height", "--spectrum-combobox-min-inline-size", + "--spectrum-combobox-minimum-width-multiplier", "--spectrum-combobox-spacing-block-end-edge-to-text", "--spectrum-combobox-spacing-block-start-edge-to-text", "--spectrum-combobox-spacing-edge-to-menu", @@ -212,11 +213,8 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-400", "--spectrum-gray-500", "--spectrum-gray-600", - "--spectrum-gray-800", - "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-negative-border-color-default", "--spectrum-negative-border-color-focus", @@ -228,13 +226,7 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-combobox-border-color-default", - "--system-spectrum-combobox-border-color-focus", - "--system-spectrum-combobox-border-color-focus-hover", - "--system-spectrum-combobox-border-color-hover", - "--system-spectrum-combobox-border-color-key-focus" - ], + "system-theme": [], "passthroughs": [ "--mod-picker-button-background-color", "--mod-picker-button-background-color-disabled", diff --git a/components/combobox/package.json b/components/combobox/package.json index 2354f8d574d..af8bf27fcaf 100644 --- a/components/combobox/package.json +++ b/components/combobox/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/combobox", - "version": "3.1.4", + "version": "4.0.0-s2-foundations.16", "description": "The Spectrum CSS combobox component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/combobox/stories/template.js b/components/combobox/stories/template.js index 56c5bbd633b..43982349278 100644 --- a/components/combobox/stories/template.js +++ b/components/combobox/stories/template.js @@ -11,6 +11,9 @@ 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", @@ -29,6 +32,7 @@ const Combobox = ({ selectedDay, } = {}, context = {}) => { const { globals = {}, updateArgs } = context; + const lang = globals.lang ?? "en-US"; // If selectedDay is a string, convert it to a Date object diff --git a/components/combobox/themes/express.css b/components/combobox/themes/express.css index 96606718a8c..bdc808d8367 100644 --- a/components/combobox/themes/express.css +++ b/components/combobox/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Combobox { --spectrum-combobox-border-color-default: var(--spectrum-gray-400); --spectrum-combobox-border-color-hover: var(--spectrum-gray-500); diff --git a/components/combobox/themes/spectrum-two.css b/components/combobox/themes/spectrum-two.css new file mode 100644 index 00000000000..e455bc11f43 --- /dev/null +++ b/components/combobox/themes/spectrum-two.css @@ -0,0 +1,127 @@ +/*! + * 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 + * + * 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-500); + --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-600); + --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-600); + + --spectrum-combobox-inline-size: var(--spectrum-field-width); + --spectrum-combobox-minimum-width-multiplier: var(--spectrum-combo-box-minimum-width-multiplier); + + --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); + + --spectrum-combobox-border-radius: var(--spectrum-corner-radius-100); + --spectrum-combobox-border-width: var(--spectrum-border-width-100); + + --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component); + + --spectrum-combobox-font-style: var(--spectrum-default-font-style); + --spectrum-combobox-line-height: var(--spectrum-line-height-100); + + --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); + --spectrum-combobox-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); + --spectrum-combobox-border-color-invalid-key-focus: var(--spectrum-negative-border-color-key-focus); + + &.spectrum-Combobox--sizeS { + --spectrum-combobox-block-size: var(--spectrum-component-height-75); + --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-75); + --spectrum-combobox-font-size: var(--spectrum-font-size-75); + + --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-small); + --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-small); + --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-small); + --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-small); + --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-75); + --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-75); + --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-75); + } + + &, + &.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--sizeL { + --spectrum-combobox-block-size: var(--spectrum-component-height-200); + --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-combobox-font-size: var(--spectrum-font-size-200); + + --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-large); + --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-large); + --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-large); + --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-large); + --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-200); + --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-200); + --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-200); + } + + &.spectrum-Combobox--sizeXL { + --spectrum-combobox-block-size: var(--spectrum-component-height-300); + --spectrum-combobox-icon-size: var(--spectrum-workflow-icon-size-300); + --spectrum-combobox-font-size: var(--spectrum-font-size-300); + + --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-extra-large); + --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-extra-large); + --spectrum-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-extra-large); + --spectrum-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-extra-large); + --spectrum-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-300); + --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-300); + --spectrum-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-300); + } + + &.spectrum-Combobox--quiet { + --spectrum-combobox-minimum-width-multiplier: var(--spectrum-combo-box-quiet-minimum-width-multiplier); + --spectrum-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-quiet); + --spectrum-combobox-spacing-inline-start-edge-to-text: var(--spectrum-field-edge-to-text-quiet); + + &.spectrum-Combobox--sizeS { + --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-small); + } + + &, + &.spectrum-Combobox--sizeM { + --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-medium); + } + + &.spectrum-Combobox--sizeL { + --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-large); + } + + &.spectrum-Combobox--sizeXL { + --spectrum-combobox-spacing-label-to-combobox: var(--spectrum-field-label-to-component-quiet-extra-large); + } + } + } +} diff --git a/components/combobox/themes/spectrum.css b/components/combobox/themes/spectrum.css index 31c5e848d42..5a930981122 100644 --- a/components/combobox/themes/spectrum.css +++ b/components/combobox/themes/spectrum.css @@ -11,12 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--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-500); - --spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-600); - --spectrum-combobox-border-color-key-focus: var(--spectrum-gray-600); - } -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/commons/CHANGELOG.md b/components/commons/CHANGELOG.md index a1221c1b9b1..c267957138a 100644 --- a/components/commons/CHANGELOG.md +++ b/components/commons/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 11.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 11.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 11.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 11.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 11.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 11.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 11.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 11.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 11.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 11.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 11.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 10.1.0 ### Minor Changes diff --git a/components/commons/basebutton.css b/components/commons/basebutton.css index 4d16c2fac24..3dbe78cd83d 100644 --- a/components/commons/basebutton.css +++ b/components/commons/basebutton.css @@ -32,6 +32,11 @@ /* @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))); + -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))); text-decoration: none; @@ -53,10 +58,7 @@ 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; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - /* Remove the inner border and padding in Firefox (normalize). */ + /* Fix Firefox */ &::-moz-focus-inner { border-style: none; padding: 0; @@ -90,7 +92,7 @@ display: block; /* @deprecation --mod-focus-indicator-gap has been renamed and will be removed in a future version. */ - margin: calc(var(--mod-button-focus-indicator-gap, var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap))) * -1); + margin: calc(-1 * var(--mod-button-focus-indicator-gap, var(--mod-focus-indicator-gap, var(--spectrum-focus-indicator-gap)))); /* @deprecation --mod-animation-duration-100 has been renamed and will be removed in a future version. */ transition: diff --git a/components/commons/overlay.css b/components/commons/overlay.css index c3a57da85dd..fc40b564b05 100644 --- a/components/commons/overlay.css +++ b/components/commons/overlay.css @@ -13,7 +13,7 @@ /* TODO: replace legacy animation variables with core tokens when available */ -/** @note used in modal, popover, quickaction, tooltip, underlay */ +/** @note used in modal, tooltip, underlay */ %spectrum-overlay { pointer-events: none; visibility: hidden; @@ -24,30 +24,10 @@ visibility 0ms linear var(--mod-overlay-animation-duration, var(--spectrum-animation-duration-100, 130ms)); } -/** @note used in modal, popover, quickaction, tooltip, underlay */ +/** @note used in modal, tooltip, underlay */ %spectrum-overlay--open { pointer-events: auto; visibility: visible; opacity: 1; transition-delay: var(--mod-overlay-animation-duration-opened, var(--spectrum-animation-duration-0, 0ms)); } - -/** @note currently unused */ -%spectrum-overlay--bottom--open { - transform: translateY(var(--mod-overlay-animation-distance, var(--spectrum-overlay-animation-distance, 6px))); -} - -/** @note currently unused */ -%spectrum-overlay--top--open { - transform: translateY(calc(-1 * var(--mod-overlay-animation-distance, var(--spectrum-overlay-animation-distance, 6px)))); -} - -/** @note used in quickaction */ -%spectrum-overlay--right--open { - transform: translateX(var(--mod-overlay-animation-distance, var(--spectrum-overlay-animation-distance, 6px))); -} - -/** @note used in quickaction */ -%spectrum-overlay--left--open { - transform: translateX(calc(-1 * var(--mod-overlay-animation-distance, var(--spectrum-overlay-animation-distance, 6px)))); -} diff --git a/components/commons/package.json b/components/commons/package.json index 2e480bf4bb2..be0b1d4f086 100644 --- a/components/commons/package.json +++ b/components/commons/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/commons", - "version": "10.1.0", + "version": "11.0.0-s2-foundations.13", "description": "Common mixins for Spectrum CSS components", "license": "Apache-2.0", "author": "Adobe", @@ -14,6 +14,13 @@ "url": "https://github.com/adobe/spectrum-css/issues" }, "main": "index.css", + "exports": { + ".": "./index.css", + "./CHANGELOG.md": "./CHANGELOG.md", + "./README.md": "./README.md", + "./*.css": "./*.css", + "./package.json": "./package.json" + }, "peerDependencies": { "@spectrum-css/tokens": ">=14" }, diff --git a/components/contextualhelp/CHANGELOG.md b/components/contextualhelp/CHANGELOG.md index 3ada3a3f246..6f732de457c 100644 --- a/components/contextualhelp/CHANGELOG.md +++ b/components/contextualhelp/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/link@6.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/link@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/link@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/link@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/link@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/link@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/link@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + - @spectrum-css/link@6.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/link@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/link@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/link@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/link@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/link@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/link@6.0.0-s2-foundations.0 + ## 3.1.3 ### Patch Changes diff --git a/components/contextualhelp/index.css b/components/contextualhelp/index.css index fa89a7a3783..943e81dc845 100644 --- a/components/contextualhelp/index.css +++ b/components/contextualhelp/index.css @@ -11,22 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-ContextualHelp { - /* Layout Variables */ - --spectrum-contextual-help-padding: var(--spectrum-spacing-400); - --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-100); - --spectrum-contextual-help-link-spacing: var(--spectrum-spacing-300); - - /* Typography Variables */ - --spectrum-contextual-help-heading-size: var(--spectrum-contextual-help-title-size); - --spectrum-contextual-help-heading-color: var(--spectrum-heading-color); - --spectrum-contextual-help-body-color: var(--spectrum-body-color); - - /* Mobile styling */ - .spectrum--large & { - --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-200); - } -} +@import "./themes/spectrum-two.css"; .spectrum-ContextualHelp { position: relative; diff --git a/components/contextualhelp/metadata/contextualhelp.yml b/components/contextualhelp/metadata/contextualhelp.yml deleted file mode 100644 index 7e06a9641ca..00000000000 --- a/components/contextualhelp/metadata/contextualhelp.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Contextual help -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/contextual-help/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: contextualhelp-variants - name: Info Icon - markup: | -
    -
    -
    - - -
    -
    -
    -
    -
    - -
    - -
    -
    -
    - - id: contextualhelp-variants - name: Help Icon - markup: | -
    -
    -
    - - -
    -
    -
    -
    diff --git a/components/contextualhelp/metadata/metadata.json b/components/contextualhelp/metadata/metadata.json index 6a976298b9a..e3952ec7081 100644 --- a/components/contextualhelp/metadata/metadata.json +++ b/components/contextualhelp/metadata/metadata.json @@ -1,7 +1,6 @@ { "sourceFile": "index.css", "selectors": [ - ".spectrum--large .spectrum-ContextualHelp", ".spectrum-ContextualHelp", ".spectrum-ContextualHelp-button", ".spectrum-ContextualHelp-link", @@ -33,8 +32,6 @@ "global": [ "--spectrum-body-color", "--spectrum-heading-color", - "--spectrum-spacing-100", - "--spectrum-spacing-200", "--spectrum-spacing-300", "--spectrum-spacing-400" ], diff --git a/components/contextualhelp/package.json b/components/contextualhelp/package.json index 7fbe536478c..56554bfb534 100644 --- a/components/contextualhelp/package.json +++ b/components/contextualhelp/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/contextualhelp", - "version": "3.1.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS contextualhelp component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/contextualhelp/stories/template.js b/components/contextualhelp/stories/template.js index 2f55ee842f2..98251b5107d 100644 --- a/components/contextualhelp/stories/template.js +++ b/components/contextualhelp/stories/template.js @@ -8,6 +8,9 @@ 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-ContextualHelp", diff --git a/components/contextualhelp/themes/express.css b/components/contextualhelp/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/contextualhelp/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/contextualhelp/themes/spectrum-two.css b/components/contextualhelp/themes/spectrum-two.css new file mode 100644 index 00000000000..96cf07c4a4f --- /dev/null +++ b/components/contextualhelp/themes/spectrum-two.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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-ContextualHelp { + /* Layout Variables */ + --spectrum-contextual-help-padding: var(--spectrum-spacing-400); + --spectrum-contextual-help-link-spacing: var(--spectrum-spacing-300); + + /* Typography Variables */ + --spectrum-contextual-help-heading-size: var(--spectrum-contextual-help-title-size); + --spectrum-contextual-help-heading-color: var(--spectrum-heading-color); + --spectrum-contextual-help-body-color: var(--spectrum-body-color); + } +} diff --git a/components/contextualhelp/themes/spectrum.css b/components/contextualhelp/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/contextualhelp/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/datepicker/CHANGELOG.md b/components/datepicker/CHANGELOG.md index 28a4f084f20..e0f6ee559d1 100644 --- a/components/datepicker/CHANGELOG.md +++ b/components/datepicker/CHANGELOG.md @@ -1,5 +1,217 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.14 + - @spectrum-css/textfield@8.0.0-s2-foundations.14 + - @spectrum-css/calendar@6.0.0-s2-foundations.13 + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.12 + - @spectrum-css/textfield@8.0.0-s2-foundations.12 + - @spectrum-css/calendar@6.0.0-s2-foundations.12 + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.11 + - @spectrum-css/textfield@8.0.0-s2-foundations.11 + - @spectrum-css/calendar@6.0.0-s2-foundations.11 + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.10 + - @spectrum-css/textfield@8.0.0-s2-foundations.10 + - @spectrum-css/calendar@6.0.0-s2-foundations.10 + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.9 + - @spectrum-css/textfield@8.0.0-s2-foundations.9 + - @spectrum-css/calendar@6.0.0-s2-foundations.9 + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.8 + - @spectrum-css/textfield@8.0.0-s2-foundations.8 + - @spectrum-css/calendar@6.0.0-s2-foundations.8 + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.7 + - @spectrum-css/textfield@8.0.0-s2-foundations.7 + - @spectrum-css/calendar@6.0.0-s2-foundations.7 + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.6 + - @spectrum-css/textfield@8.0.0-s2-foundations.6 + - @spectrum-css/calendar@6.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.5 + - @spectrum-css/textfield@8.0.0-s2-foundations.5 + - @spectrum-css/calendar@6.0.0-s2-foundations.5 + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.4 + - @spectrum-css/textfield@8.0.0-s2-foundations.4 + - @spectrum-css/calendar@6.0.0-s2-foundations.4 + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.3 + - @spectrum-css/textfield@8.0.0-s2-foundations.3 + - @spectrum-css/calendar@6.0.0-s2-foundations.3 + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.2 + - @spectrum-css/textfield@8.0.0-s2-foundations.2 + - @spectrum-css/calendar@6.0.0-s2-foundations.2 + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.1 + - @spectrum-css/textfield@8.0.0-s2-foundations.1 + - @spectrum-css/calendar@6.0.0-s2-foundations.1 + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/pickerbutton@6.0.0-s2-foundations.0 + - @spectrum-css/textfield@8.0.0-s2-foundations.0 + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/calendar@6.0.0-s2-foundations.0 + ## 3.2.3 ### Patch Changes diff --git a/components/datepicker/index.css b/components/datepicker/index.css index 7a5a6e71859..d5b8b1ccf56 100644 --- a/components/datepicker/index.css +++ b/components/datepicker/index.css @@ -11,64 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-DatePicker { - --spectrum-datepicker-border-radius: var(--spectrum-corner-radius-100); - --spectrum-datepicker-border-radius-quiet: 0; - --spectrum-datepicker-border-width: var(--spectrum-border-width-100); - --spectrum-datepicker-min-width: var(--spectrum-field-width); - --spectrum-datepicker-icon-size: var(--spectrum-workflow-icon-size-100); - - /* button */ - --spectrum-datepicker-pickerbutton-border-color: var(--spectrum-gray-500); - --spectrum-datepicker-pickerbutton-border-color-invalid: var(--spectrum-negative-border-color-default); - --spectrum-datepicker-pickerbutton-width: calc((var(--spectrum-field-edge-to-disclosure-icon-100) * 2) + var(--spectrum-workflow-icon-size-100)); - --spectrum-datepicker-pickerbutton-width-quiet: calc(var(--spectrum-datepicker-pickerbutton-width) - var(--spectrum-datepicker-quiet-button-offset)); - --spectrum-datepicker-quiet-button-offset: var(--spectrum-text-to-visual-100); - --spectrum-datepicker-icon-to-button: var(--spectrum-text-to-visual-100); - --spectrum-datepicker-icon-to-text: var(--spectrum-component-edge-to-text-100); - - /* focus */ - --spectrum-datepicker-focus-ring-gap: var(--spectrum-focus-indicator-gap); - --spectrum-datepicker-focus-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-datepicker-focus-animation: var(--spectrum-animation-duration-100); - --spectrum-datepicker-focus-ring-width: var(--spectrum-border-width-100); - --spectrum-datepicker-focus-ring-color: var(--spectrum-focus-indicator-color); - --spectrum-datepicker-focus-line-gap: var(--spectrum-spacing-75); - - /* color */ - --spectrum-datepicker-invalid-quiet-color: var(--spectrum-negative-border-color-default); - --spectrum-datepicker-quiet-border-color-hover: var(--spectrum-gray-500); - --spectrum-datepicker-border-color-disabled: var(--spectrum-disabled-border-color); - - /* dash */ - --spectrum-datepicker-dash-font-size: var(--spectrum-font-size-100); - --spectrum-datepicker-dash-color: var(--spectrum-neutral-content-color-default); - --spectrum-datepicker-dash-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-datepicker-range-dash-marin-inline-start: calc(-0.5 * var(--spectrum-datepicker-dash-font-size)); - --spectrum-datepicker-range-dash-padding-top: 0; - - /* calculating widths */ - /* todo: if we add t-shirt sizing, this will be wrong ❤️ */ - --spectrum-datepicker-input-width-base: calc(var(--spectrum-datepicker-range-input-width-first) + var(--spectrum-datepicker-icon-size)); - --spectrum-datepicker-input-width: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-initial-height)); - --spectrum-datepicker-input-width-quiet: calc(var(--spectrum-datepicker-range-input-width-quiet-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); - - --spectrum-datepicker-range-input-width-first: calc(var(--spectrum-datepicker-initial-width) - 2 * var(--spectrum-datepicker-generic-padding)); - --spectrum-datepicker-range-input-width-quiet-first: calc(var(--spectrum-datepicker-width-quiet-first) + var(--spectrum-datepicker-width-quiet-second)); - - --spectrum-datepicker-datetime-input-width-first: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-datetime-width-first)); - --spectrum-datepicker-datetime-input-width: calc(var(--spectrum-datepicker-datetime-input-width-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); - --spectrum-datepicker-datetime-quiet-input-width-first: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-input-datetime-width)); - --spectrum-datepicker-datetime-quiet-input-width: calc(var(--spectrum-datepicker-datetime-quiet-input-width-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); - - /* padding inline end */ - --spectrum-datepicker-padding-inline-end: calc(var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) - (var(--spectrum-datepicker-border-width) * 2)); - --spectrum-datepicker-padding-inline-end-quiet: calc((var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100)) - var(--spectrum-datepicker-quiet-button-offset)); - --spectrum-datepicker-padding-inline-end-invalid: calc(var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) + var(--spectrum-datepicker-icon-to-button) + var(--spectrum-datepicker-icon-size) - (var(--spectrum-datepicker-border-width) * 2)); - --spectrum-datepicker-padding-inline-end-invalid-quiet: calc(var(--spectrum-datepicker-pickerbutton-width-quiet) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-icon-to-text)); -} +@import "./themes/spectrum-two.css"; .spectrum-DatePicker { position: relative; diff --git a/components/datepicker/metadata/datepicker.yml b/components/datepicker/metadata/datepicker.yml deleted file mode 100644 index 06dce8a4789..00000000000 --- a/components/datepicker/metadata/datepicker.yml +++ /dev/null @@ -1,313 +0,0 @@ -name: Date picker -description: A date picker displays a Text Field input with a button next to it, and can display two Text Fields next to each other for choosing a date range. -sections: - - name: Migration Guide - description: | - ### Component separated from InputGroup - This component was previously a variant within InputGroup. **InputGroup is now deprecated**. - The classes containing `InputGroup` have been renamed or removed. For details, see the "renamed" and "removed" sections below or the example markup. - - ### New Picker markup - Instead of a `.spectrum-Picker`, DatePicker now uses `.spectrum-PickerButton`. Refer to the example markup for usage details. - - ### Workflow icon size changed to medium - If your markup is still using the small icon, replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - - ### Renamed classes - - * v1.0.0: All date picker classes have been renamed to have a capital P: `.spectrum-Datepicker` is now `.spectrum-DatePicker` - * v1.0.0: `.spectrum-InputGroup-textfield` is now `.spectrum-DatePicker-textfield`, `.spectrum-InputGroup-input` is now `.spectrum-DatePicker-input`, and `.spectrum-InputGroup-button` is now `.spectrum-DatePicker-button` - * `.spectrum-Datepicker--rangeDash` was renamed to `.spectrum-DatePicker-rangeDash` - - ### Removed elements - - * v1.0.0: The class `.InputGroup` is no longer used and can be be removed from the parent element - * `.spectrum-Datepicker-focusRing` is no longer required and should be removed - -examples: - - id: datepicker - name: Standard - markup: | -
    -
    - -
    - -
    - - id: datepicker-readonly - name: Read-only - markup: | -
    -
    - -
    -
    - - id: datepicker-quiet - name: Quiet - markup: | -
    -
    - -
    - -
    - - id: datepicker-invalid - name: Invalid - markup: | -
    -
    -

    Standard

    - -
    - -
    -
    -
    -

    Quiet

    - -
    -
    - - -
    - -
    -
    - -
    -
    -
    - - - id: datepicker-range - name: Range - markup: | - - -

    - -

    - -

    - -

    - -

    - -

    -

    - -

    - - id: datepicker-range-quiet - name: Range (quiet) - markup: | - - -

    - -

    - -

    - -

    -

    - -

    -

    - -

    diff --git a/components/datepicker/metadata/metadata.json b/components/datepicker/metadata/metadata.json index 35711fc2d3d..146e9dbf97e 100644 --- a/components/datepicker/metadata/metadata.json +++ b/components/datepicker/metadata/metadata.json @@ -133,7 +133,6 @@ "--spectrum-border-width-100", "--spectrum-component-edge-to-text-100", "--spectrum-component-height-100", - "--spectrum-component-height-75", "--spectrum-corner-radius-100", "--spectrum-disabled-border-color", "--spectrum-disabled-content-color", @@ -150,7 +149,7 @@ "--spectrum-text-to-visual-100", "--spectrum-workflow-icon-size-100" ], - "system-theme": ["--system-spectrum-datepicker-initial-height"], + "system-theme": [], "passthroughs": [ "--mod-picker-button-border-color", "--mod-textfield-icon-spacing-inline-end-invalid", diff --git a/components/datepicker/package.json b/components/datepicker/package.json index 8383a686ecc..329f1491423 100644 --- a/components/datepicker/package.json +++ b/components/datepicker/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/datepicker", - "version": "3.2.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS datepicker component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/datepicker/stories/template.js b/components/datepicker/stories/template.js index 335cc73b150..251d1bde7e1 100644 --- a/components/datepicker/stories/template.js +++ b/components/datepicker/stories/template.js @@ -9,6 +9,9 @@ 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", @@ -27,6 +30,7 @@ export const DatePicker = ({ lastDay, } = {}, context = {}) => { const { globals = {}, updateArgs } = context; + const lang = globals.lang ?? "en-US"; const triggerId = getRandomId("datepicker-trigger"); diff --git a/components/datepicker/themes/express.css b/components/datepicker/themes/express.css index 76f792cc5cf..76b068fbae4 100644 --- a/components/datepicker/themes/express.css +++ b/components/datepicker/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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 new file mode 100644 index 00000000000..313ee6a18f5 --- /dev/null +++ b/components/datepicker/themes/spectrum-two.css @@ -0,0 +1,73 @@ +/*! + * 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 + * + * 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); + + --spectrum-datepicker-border-radius: var(--spectrum-corner-radius-100); + --spectrum-datepicker-border-radius-quiet: 0; + --spectrum-datepicker-border-width: var(--spectrum-border-width-100); + --spectrum-datepicker-min-width: var(--spectrum-field-width); + --spectrum-datepicker-icon-size: var(--spectrum-workflow-icon-size-100); + + /* button */ + --spectrum-datepicker-pickerbutton-border-color: var(--spectrum-gray-500); + --spectrum-datepicker-pickerbutton-border-color-invalid: var(--spectrum-negative-border-color-default); + --spectrum-datepicker-pickerbutton-width: calc((var(--spectrum-field-edge-to-disclosure-icon-100) * 2) + var(--spectrum-workflow-icon-size-100)); + --spectrum-datepicker-pickerbutton-width-quiet: calc(var(--spectrum-datepicker-pickerbutton-width) - var(--spectrum-datepicker-quiet-button-offset)); + --spectrum-datepicker-quiet-button-offset: var(--spectrum-text-to-visual-100); + --spectrum-datepicker-icon-to-button: var(--spectrum-text-to-visual-100); + --spectrum-datepicker-icon-to-text: var(--spectrum-component-edge-to-text-100); + + /* focus */ + --spectrum-datepicker-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --spectrum-datepicker-focus-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-datepicker-focus-animation: var(--spectrum-animation-duration-100); + --spectrum-datepicker-focus-ring-width: var(--spectrum-border-width-100); + --spectrum-datepicker-focus-ring-color: var(--spectrum-focus-indicator-color); + --spectrum-datepicker-focus-line-gap: var(--spectrum-spacing-75); + + /* color */ + --spectrum-datepicker-invalid-quiet-color: var(--spectrum-negative-border-color-default); + --spectrum-datepicker-quiet-border-color-hover: var(--spectrum-gray-500); + --spectrum-datepicker-border-color-disabled: var(--spectrum-disabled-border-color); + + /* dash */ + --spectrum-datepicker-dash-font-size: var(--spectrum-font-size-100); + --spectrum-datepicker-dash-color: var(--spectrum-neutral-content-color-default); + --spectrum-datepicker-dash-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-datepicker-range-dash-marin-inline-start: calc(-0.5 * var(--spectrum-datepicker-dash-font-size)); + --spectrum-datepicker-range-dash-padding-top: 0; + + /* calculating widths */ + /* todo: if we add t-shirt sizing, this will be wrong ❤️ */ + --spectrum-datepicker-input-width-base: calc(var(--spectrum-datepicker-range-input-width-first) + var(--spectrum-datepicker-icon-size)); + --spectrum-datepicker-input-width: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-initial-height)); + --spectrum-datepicker-input-width-quiet: calc(var(--spectrum-datepicker-range-input-width-quiet-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); + + --spectrum-datepicker-range-input-width-first: calc(var(--spectrum-datepicker-initial-width) - 2 * var(--spectrum-datepicker-generic-padding)); + --spectrum-datepicker-range-input-width-quiet-first: calc(var(--spectrum-datepicker-width-quiet-first) + var(--spectrum-datepicker-width-quiet-second)); + + --spectrum-datepicker-datetime-input-width-first: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-datetime-width-first)); + --spectrum-datepicker-datetime-input-width: calc(var(--spectrum-datepicker-datetime-input-width-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); + --spectrum-datepicker-datetime-quiet-input-width-first: calc(var(--spectrum-datepicker-input-width-base) + var(--spectrum-datepicker-input-datetime-width)); + --spectrum-datepicker-datetime-quiet-input-width: calc(var(--spectrum-datepicker-datetime-quiet-input-width-first) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-initial-height)); + + /* padding inline end */ + --spectrum-datepicker-padding-inline-end: calc(var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) - (var(--spectrum-datepicker-border-width) * 2)); + --spectrum-datepicker-padding-inline-end-quiet: calc((var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100)) - var(--spectrum-datepicker-quiet-button-offset)); + --spectrum-datepicker-padding-inline-end-invalid: calc(var(--spectrum-datepicker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) + var(--spectrum-datepicker-icon-to-button) + var(--spectrum-datepicker-icon-size) - (var(--spectrum-datepicker-border-width) * 2)); + --spectrum-datepicker-padding-inline-end-invalid-quiet: calc(var(--spectrum-datepicker-pickerbutton-width-quiet) + var(--spectrum-datepicker-icon-size) + var(--spectrum-datepicker-icon-to-text)); + } +} diff --git a/components/datepicker/themes/spectrum.css b/components/datepicker/themes/spectrum.css index c409dbd2e9a..5a930981122 100644 --- a/components/datepicker/themes/spectrum.css +++ b/components/datepicker/themes/spectrum.css @@ -11,8 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-DatePicker { - --spectrum-datepicker-initial-height: var(--spectrum-component-height-100); - } -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/dial/CHANGELOG.md b/components/dial/CHANGELOG.md index 7de270958fa..21fd3c379be 100644 --- a/components/dial/CHANGELOG.md +++ b/components/dial/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 3.1.3 ### Patch Changes diff --git a/components/dial/index.css b/components/dial/index.css index c04feaf08cd..b8877b49fd8 100644 --- a/components/dial/index.css +++ b/components/dial/index.css @@ -11,57 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Dial { - --spectrum-dial-background-color-default: var(--spectrum-gray-100); - - --spectrum-dial-handle-marker-color-disabled: var(--spectrum-gray-300); - --spectrum-dial-border-color-disabled: var(--spectrum-gray-300); - - --spectrum-dial-handle-marker-color: var(--spectrum-gray-700); - --spectrum-dial-border-color: var(--spectrum-gray-700); - - --spectrum-dial-handle-marker-color-down: var(--spectrum-gray-800); - --spectrum-dial-border-color-down: var(--spectrum-gray-800); - --spectrum-dial-handle-marker-color-hover: var(--spectrum-gray-800); - --spectrum-dial-border-color-hover: var(--spectrum-gray-800); - - --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-50); - --spectrum-dial-border-color-key-focus: var(--spectrum-gray-50); - - --spectrum-dial-handle-marker-color-mouse-focus: var(--spectrum-gray-700); - --spectrum-dial-border-color-mouse-focus: var(--spectrum-gray-700); - - --spectrum-dial-min-max-tick-color: var(--spectrum-gray-600); - - --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); - - --spectrum-dial-container-width: 48px; - - --spectrum-dial-handle-marker-width: 12px; - --spectrum-dial-handle-marker-height: 2px; - - --spectrum-dial-handle-marker-border-radius: 1px; - - --spectrum-dial-handle-size: 100%; - --spectrum-dial-min-height: 0; - --spectrum-dial-controls-min-height: 0; - - --spectrum-dial-min-max-tick-angles: 45deg; - - --spectrum-dial-width: 32px; - --spectrum-dial-height: 32px; - - --spectrum-dial-handle-border-size: var(--spectrum-border-width-200); - --spectrum-dial-label-text-size: var(--spectrum-font-size-75); - --spectrum-dial-label-line-height: var(--spectrum-line-height-200); -} - -.spectrum-Dial--small { - --spectrum-dial-width: 24px; - --spectrum-dial-height: 24px; -} +@import "./themes/spectrum-two.css"; .spectrum-Dial { position: relative; @@ -237,7 +187,8 @@ padding: 0; position: absolute; overflow: hidden; - /* @todo Look into replacing with opacity 0. The tiny opacity value appears to be a workaround for a ChromeVox legacy bug (circa 2018). */ + + /* stylelint-disable-next-line number-max-precision -- @todo Replace with opacity 0. Workaround for a ChromeVox legacy bug (circa 2018). */ opacity: 0.000001; cursor: default; appearance: none; diff --git a/components/dial/metadata/dial.yml b/components/dial/metadata/dial.yml deleted file mode 100644 index 26f8ddd44b2..00000000000 --- a/components/dial/metadata/dial.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Dial -description: A dial for turning it up to 11. -examples: - - id: dial - name: Standard - markup: | -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    -

    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    -
    -
    - - id: dial - name: With label - markup: | -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -

    -
    -
    - -
    54
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    54
    -
    -
    -
    - -
    -
    -
    diff --git a/components/dial/metadata/metadata.json b/components/dial/metadata/metadata.json index bc66ec5f0c6..27b6dce0064 100644 --- a/components/dial/metadata/metadata.json +++ b/components/dial/metadata/metadata.json @@ -114,12 +114,12 @@ "global": [ "--spectrum-border-width-200", "--spectrum-font-size-75", - "--spectrum-gray-100", - "--spectrum-gray-300", + "--spectrum-gray-200", + "--spectrum-gray-25", "--spectrum-gray-400", - "--spectrum-gray-50", "--spectrum-gray-600", "--spectrum-gray-700", + "--spectrum-gray-75", "--spectrum-gray-800", "--spectrum-line-height-200" ], diff --git a/components/dial/package.json b/components/dial/package.json index 800aedf53bc..5dbd7e9451f 100644 --- a/components/dial/package.json +++ b/components/dial/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/dial", - "version": "3.1.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS dial component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/dial/stories/template.js b/components/dial/stories/template.js index 547fb97f661..c8f25c2175b 100644 --- a/components/dial/stories/template.js +++ b/components/dial/stories/template.js @@ -5,6 +5,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/dial/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..5debb640d02 --- /dev/null +++ b/components/dial/themes/spectrum-two.css @@ -0,0 +1,66 @@ +/*! + * 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 + * + * 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-disabled: var(--spectrum-gray-200); + --spectrum-dial-border-color-disabled: var(--spectrum-gray-200); + + --spectrum-dial-handle-marker-color: var(--spectrum-gray-700); + --spectrum-dial-border-color: var(--spectrum-gray-700); + + --spectrum-dial-handle-marker-color-down: var(--spectrum-gray-800); + --spectrum-dial-border-color-down: var(--spectrum-gray-800); + --spectrum-dial-handle-marker-color-hover: var(--spectrum-gray-800); + --spectrum-dial-border-color-hover: var(--spectrum-gray-800); + + --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-25); + --spectrum-dial-border-color-key-focus: var(--spectrum-gray-25); + + --spectrum-dial-handle-marker-color-mouse-focus: var(--spectrum-gray-700); + --spectrum-dial-border-color-mouse-focus: var(--spectrum-gray-700); + + --spectrum-dial-min-max-tick-color: var(--spectrum-gray-600); + + --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); + + --spectrum-dial-container-width: 48px; + + --spectrum-dial-handle-marker-width: 12px; + --spectrum-dial-handle-marker-height: 2px; + + --spectrum-dial-handle-marker-border-radius: 1px; + + --spectrum-dial-handle-size: 100%; + --spectrum-dial-min-height: 0; + --spectrum-dial-controls-min-height: 0; + + --spectrum-dial-min-max-tick-angles: 45deg; + + --spectrum-dial-width: 32px; + --spectrum-dial-height: 32px; + + --spectrum-dial-handle-border-size: var(--spectrum-border-width-200); + --spectrum-dial-label-text-size: var(--spectrum-font-size-75); + --spectrum-dial-label-line-height: var(--spectrum-line-height-200); + } + + .spectrum-Dial--small { + --spectrum-dial-width: 24px; + --spectrum-dial-height: 24px; + } +} diff --git a/tokens/dist/css/express/custom-medium-vars.css b/components/dial/themes/spectrum.css similarity index 56% rename from tokens/dist/css/express/custom-medium-vars.css rename to components/dial/themes/spectrum.css index aeb5ff2f344..b0ee0f29a64 100644 --- a/tokens/dist/css/express/custom-medium-vars.css +++ b/components/dial/themes/spectrum.css @@ -11,13 +11,17 @@ * governing permissions and limitations under the License. */ -.spectrum--express.spectrum--medium{ - --spectrum-colorwheel-path:"M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - --spectrum-dialog-confirm-border-radius:6px; +/* @combine .spectrum.spectrum--legacy */ - --spectrum-dial-border-radius:12px; +@import "./spectrum-two.css"; - --spectrum-assetcard-focus-ring-border-radius:10px; +@container style(--system: legacy) { + .spectrum-Dial { + --spectrum-dial-background-color-default: var(--spectrum-gray-100); + --spectrum-dial-handle-marker-color-disabled: var(--spectrum-gray-300); + --spectrum-dial-border-color-disabled: var(--spectrum-gray-300); + --spectrum-dial-handle-marker-color-key-focus: var(--spectrum-gray-50); + --spectrum-dial-border-color-key-focus: var(--spectrum-gray-50); + } } diff --git a/components/dialog/CHANGELOG.md b/components/dialog/CHANGELOG.md index b8f34fde21d..03655ccd45e 100644 --- a/components/dialog/CHANGELOG.md +++ b/components/dialog/CHANGELOG.md @@ -1,5 +1,217 @@ # Change Log +## 11.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.14 + - @spectrum-css/underlay@5.0.0-s2-foundations.13 + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/modal@6.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 11.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.12 + - @spectrum-css/underlay@5.0.0-s2-foundations.12 + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/modal@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 11.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.11 + - @spectrum-css/underlay@5.0.0-s2-foundations.11 + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/modal@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 11.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.10 + - @spectrum-css/underlay@5.0.0-s2-foundations.10 + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/modal@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.9 + - @spectrum-css/underlay@5.0.0-s2-foundations.9 + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/modal@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 11.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.8 + - @spectrum-css/underlay@5.0.0-s2-foundations.8 + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/modal@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 11.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.7 + - @spectrum-css/underlay@5.0.0-s2-foundations.7 + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/modal@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 11.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/closebutton@6.0.0-s2-foundations.6 + - @spectrum-css/underlay@5.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/modal@6.0.0-s2-foundations.6 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.5 + - @spectrum-css/underlay@5.0.0-s2-foundations.5 + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/modal@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 11.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.4 + - @spectrum-css/underlay@5.0.0-s2-foundations.4 + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/modal@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.3 + - @spectrum-css/underlay@5.0.0-s2-foundations.3 + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/modal@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 11.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.2 + - @spectrum-css/underlay@5.0.0-s2-foundations.2 + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/modal@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 11.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.1 + - @spectrum-css/underlay@5.0.0-s2-foundations.1 + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/modal@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 11.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.0 + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/modal@6.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/underlay@5.0.0-s2-foundations.0 + ## 10.1.4 ### Patch Changes diff --git a/components/dialog/index.css b/components/dialog/index.css index 78b31a80fd6..ec4faabb42c 100644 --- a/components/dialog/index.css +++ b/components/dialog/index.css @@ -11,30 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Dialog { - /* The font-size of the fullscreen dialog header */ - --spectrum-dialog-fullscreen-header-text-size: 28px; - --spectrum-dialog-min-inline-size: 288px; - --spectrum-dialog-confirm-small-width: 400px; - --spectrum-dialog-confirm-medium-width: 480px; - --spectrum-dialog-confirm-large-width: 640px; - --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-title-text-color: var(--spectrum-gray-900); - --spectrum-dialog-confirm-description-text-line-height: var(--spectrum-line-height-100); - --spectrum-dialog-confirm-title-text-line-height: var(--spectrum-line-height-100); - --spectrum-dialog-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); - - --spectrum-dialog-confirm-description-padding: var(--spectrum-spacing-50); - --spectrum-dialog-confirm-description-margin: calc(var(--spectrum-spacing-50) * -1); - --spectrum-dialog-confirm-footer-padding-top: var(--spectrum-spacing-600); - --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-dialog-confirm-divider-height: var(--spectrum-spacing-50); -} +@import "./themes/spectrum-two.css"; .spectrum-Dialog { /* Be a flexbox to allow a full sized content area that scrolls */ @@ -82,7 +59,6 @@ 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 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); grid-template-areas: "hero hero hero hero hero hero" ". . . . . ." @@ -90,7 +66,7 @@ ". 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)); inline-size: 100%; } @@ -169,6 +145,7 @@ /* 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, var(--spectrum-dialog-confirm-description-margin)); + } .spectrum-Dialog-footer { @@ -209,7 +186,6 @@ 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 1fr auto var(--mod-dialog-confirm-padding-grid, var(--spectrum-dialog-confirm-padding-grid)); grid-template-areas: "hero hero hero hero hero hero hero" ". . . . . closeButton closeButton" @@ -217,7 +193,7 @@ ". 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; @@ -322,8 +298,7 @@ ". divider divider divider divider divider ." ". content content content content content ." ". footer footer buttonGroup buttonGroup buttonGroup ." - ". . . . . . ."; - } + ". . . . . . .";} .spectrum-Dialog .spectrum-Dialog-header { justify-content: flex-start; @@ -342,8 +317,7 @@ ". divider ." ". content ." ". buttonGroup ." - ". . ."; - } + ". . .";} .spectrum-Dialog-buttonGroup { padding-block-start: var(--mod-dialog-confirm-buttongroup-padding-top, var(--spectrum-dialog-confirm-buttongroup-padding-top)); diff --git a/components/dialog/metadata/dialog.yml b/components/dialog/metadata/dialog.yml deleted file mode 100644 index a587473500b..00000000000 --- a/components/dialog/metadata/dialog.yml +++ /dev/null @@ -1,333 +0,0 @@ -name: Dialog -description: 'In order to avoid blurry Dialogs, wrap them in `
    ` and apply `.is-open` to both the Wrapper and the Dialog at the same time. See [this example](#dialog-wrapped) for a working demonstration.' -SpectrumSiteSlug: https://spectrum.adobe.com/page/dialog/ -sections: - - name: Migration Guide - description: | - - Alert variants of Dialog have been removed from Dialog into their own compoment, Alert Dialog. -examples: - - id: dialog - name: Dialog - Small - status: Verified - description: A small dialog - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
    -
    - -
    -
    - - id: dialog - name: Dialog - Medium - status: Verified - description: A medium dialog - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
    -
    - -
    -
    - - id: dialog - name: Dialog - Large - status: Verified - description: A large dialog - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
    -
    - -
    -
    - - id: dialog - name: Dialog - Dismissible - status: Verified - description: A dialog that can be dismissed without taking an action. Dismissible dialogs should never have buttons. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
    -
    - -
    -
    - - id: dialog - name: Dialog - No Divider - status: Verified - description: Dialogs can forgo the divider if they have content that spans the entire width of the dialog. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - - -
    -
    - -
    -
    - - id: dialog - name: Dialog - Hero - status: Verified - description: Dialogs can have a hero header. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - -
    -
    - -
    -
    - - id: dialog-scrolling - name: Dialog - Scrolling - status: Contribution - description: A dialog without `.spectrum-Dialog--alert` can expand to a larger size to house larger contents. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - -
    -
    -
    -
    -

    EULA

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -
    -
    - - -
    -
    -
    -
    -
    - - id: dialog-fullscreen - name: Dialog - Fullscreen - status: Contribution - description: A fullscreen dialog will automatically fill almost all of the available screen space. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - -
    -
    -
    -
    -

    Default Dialog - Fullscreen

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis - aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -

    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam - voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed - quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis - autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

    -

    At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui - officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat - facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum - rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

    -
    -
    - - -
    -
    -
    -
    -
    - - id: dialog-fullscreen - name: Dialog - Fullscreen Takeover - status: Contribution - description: A fullscreen takeover dialog will fill all of the available screen space. - demoClassName: spectrum-CSSExample-example--overlay - markup: | - -
    -
    -
    -
    -

    Fullscreen Takeover

    -
    -
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover - dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a - fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    This is a fullscreen takeover dialog.
    -
    -
    - - -
    -
    -
    -
    -
    diff --git a/components/dialog/package.json b/components/dialog/package.json index 4618269b741..0bb68b6a134 100644 --- a/components/dialog/package.json +++ b/components/dialog/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/dialog", - "version": "10.1.4", + "version": "11.0.0-s2-foundations.13", "description": "The Spectrum CSS dialog component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/dialog/stories/template.js b/components/dialog/stories/template.js index 860bd6b6302..f97d22a7bd1 100644 --- a/components/dialog/stories/template.js +++ b/components/dialog/stories/template.js @@ -10,6 +10,9 @@ 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-Dialog", @@ -29,7 +32,10 @@ export const Template = ({ customStyles = {}, } = {}, context = {}) => { const { updateArgs } = context; - const toggleOpen = () => updateArgs({ isOpen: !isOpen }); + + const toggleOpen = function () { + updateArgs({ isOpen: !isOpen }); + }; const Dialog = html`
    layout !== l), [`${rootClass}--${layout}`]: typeof layout !== "undefined", - [`${rootClass}--${size}`]: typeof size !== "undefined", + [`${rootClass}--${size}`]: typeof size !== "undefined", [`${rootClass}--noDivider`]: !hasDivider, ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), })} @@ -50,7 +56,7 @@ export const Template = ({
    ${when(typeof heroImageUrl !== "undefined", () => html` -
    @@ -119,4 +125,3 @@ export const Template = ({ return Dialog; } }; - diff --git a/components/dialog/themes/express.css b/components/dialog/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/dialog/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/dialog/themes/spectrum-two.css b/components/dialog/themes/spectrum-two.css new file mode 100644 index 00000000000..82952d5395c --- /dev/null +++ b/components/dialog/themes/spectrum-two.css @@ -0,0 +1,39 @@ +/*! + * 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 + * + * 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-Dialog { + /* The font-size of the fullscreen dialog header */ + --spectrum-dialog-fullscreen-header-text-size: 28px; + --spectrum-dialog-min-inline-size: 288px; + --spectrum-dialog-confirm-small-width: 400px; + --spectrum-dialog-confirm-medium-width: 480px; + --spectrum-dialog-confirm-large-width: 640px; + --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-title-text-color: var(--spectrum-gray-900); + --spectrum-dialog-confirm-description-text-line-height: var(--spectrum-line-height-100); + --spectrum-dialog-confirm-title-text-line-height: var(--spectrum-line-height-100); + --spectrum-dialog-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + + --spectrum-dialog-confirm-description-padding: var(--spectrum-spacing-50); + --spectrum-dialog-confirm-description-margin: calc(var(--spectrum-spacing-50) * -1); + --spectrum-dialog-confirm-footer-padding-top: var(--spectrum-spacing-600); + --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-dialog-confirm-divider-height: var(--spectrum-spacing-50); + } +} diff --git a/components/dialog/themes/spectrum.css b/components/dialog/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/dialog/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/divider/CHANGELOG.md b/components/divider/CHANGELOG.md index 8d19694dd5f..f77667fcdf5 100644 --- a/components/divider/CHANGELOG.md +++ b/components/divider/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 3.1.3 ### Patch Changes diff --git a/components/divider/index.css b/components/divider/index.css index ea5859e45b6..9fc3f0c0ee6 100644 --- a/components/divider/index.css +++ b/components/divider/index.css @@ -11,60 +11,12 @@ * governing permissions and limitations under the License. */ -.spectrum-Divider { - /* default thickness no size */ - --spectrum-divider-thickness: var(--spectrum-divider-thickness-medium); - - /* default background color no size */ - --spectrum-divider-background-color: var(--spectrum-divider-background-color-medium); - - /* background colors */ - --spectrum-divider-background-color-small: var(--spectrum-gray-300); - --spectrum-divider-background-color-medium: var(--spectrum-gray-300); - --spectrum-divider-background-color-large: var(--spectrum-gray-800); - - /* static white background colors */ - --spectrum-divider-background-color-small-static-white: var(--spectrum-transparent-white-300); - --spectrum-divider-background-color-medium-static-white: var(--spectrum-transparent-white-300); - --spectrum-divider-background-color-large-static-white: var(--spectrum-transparent-white-800); - - /* static black background colors */ - --spectrum-divider-background-color-small-static-black: var(--spectrum-transparent-black-300); - --spectrum-divider-background-color-medium-static-black: var(--spectrum-transparent-black-300); - --spectrum-divider-background-color-large-static-black: var(--spectrum-transparent-black-800); -} - -/* small divider */ -.spectrum-Divider--sizeS { - --spectrum-divider-thickness: var(--spectrum-divider-thickness-small); - --spectrum-divider-background-color: var(--spectrum-divider-background-color-small); -} - -/* medium divider */ -.spectrum-Divider--sizeM { - --spectrum-divider-thickness: var(--spectrum-divider-thickness-medium); - --spectrum-divider-background-color: var(--spectrum-divider-background-color-medium); -} - -/* large divider */ -.spectrum-Divider--sizeL { - --spectrum-divider-thickness: var(--spectrum-divider-thickness-large); - --spectrum-divider-background-color: var(--spectrum-divider-background-color-large); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { - .spectrum-Divider, - .spectrum-Divider--sizeS, - .spectrum-Divider--sizeM, - .spectrum-Divider--sizeL { - --spectrum-divider-background-color: CanvasText; - --spectrum-divider-background-color-small-static-white: CanvasText; - --spectrum-divider-background-color-medium-static-white: CanvasText; - --spectrum-divider-background-color-large-static-white: CanvasText; - --spectrum-divider-background-color-small-static-black: CanvasText; - --spectrum-divider-background-color-medium-static-black: CanvasText; - --spectrum-divider-background-color-large-static-black: CanvasText; + .spectrum-Divider { + background-color: CanvasText !important; } } @@ -80,6 +32,22 @@ border-radius: var(--mod-divider-thickness, var(--spectrum-divider-thickness)); background-color: var(--mod-divider-background-color, var(--spectrum-divider-background-color)); + + &.spectrum-Divider--sizeS { + --spectrum-divider-thickness: var(--spectrum-divider-thickness-small); + --spectrum-divider-background-color: var(--spectrum-divider-background-color-small); + } + + &, + &.spectrum-Divider--sizeM { + --spectrum-divider-thickness: var(--spectrum-divider-thickness-medium); + --spectrum-divider-background-color: var(--spectrum-divider-background-color-medium); + } + + &.spectrum-Divider--sizeL { + --spectrum-divider-thickness: var(--spectrum-divider-thickness-large); + --spectrum-divider-background-color: var(--spectrum-divider-background-color-large); + } } /* static white variant colors */ diff --git a/components/divider/metadata/divider.yml b/components/divider/metadata/divider.yml deleted file mode 100644 index f994fc5f66a..00000000000 --- a/components/divider/metadata/divider.yml +++ /dev/null @@ -1,126 +0,0 @@ -name: Divider -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/divider/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Change workflow icon size to medium - Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - - ### T-shirt sizing - Divider supports t-shirt sizes of small, medium and large. Divider requires that you specify the size by adding a `.spectrum-Divider--size*` class. No specified size class results in a medium size divider. -examples: - - id: divider-large - name: "Large" - markup: | -

    Large

    -
    -

    Page or Section Titles.

    - - - id: divider-medium - name: "Medium" - markup: | -

    Medium

    -
    -

    Divide subsections, or divide different groups of elements (between panels, rails, etc.)

    - - - id: divider-small - name: "Small" - markup: | -

    Small

    -
    -

    Divide like-elements (tables, tool groups, elements within a panel, etc.)

    - - - id: divider-vertical-small - name: "Vertical" - description: | - When a vertical Divider is used inside of a flex container, use `align-self: stretch; height: auto` on the Divider. - markup: | -
    -
    -

    Small

    -
    - -
    - -
    -
    - -
    -

    Medium

    -
    - -
    - -
    -
    - -
    -

    Large

    -
    - -
    - -
    -
    - -
    - - - id: divider-static-white - name: Static White - markup: | -
    -
    -

    Small

    -
    - -

    Medium

    -
    - -

    Large

    -
    -
    -
    - - - id: divider-static-black - name: Static Black - markup: | -
    -
    -

    Small

    -
    - -

    Medium

    -
    - -

    Large

    -
    -
    -
    diff --git a/components/divider/metadata/metadata.json b/components/divider/metadata/metadata.json index 2c200f1bbff..f972c40da48 100644 --- a/components/divider/metadata/metadata.json +++ b/components/divider/metadata/metadata.json @@ -2,16 +2,16 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Divider", - ".spectrum-Divider--sizeL", - ".spectrum-Divider--sizeM", - ".spectrum-Divider--sizeS", ".spectrum-Divider--staticBlack.spectrum-Divider--sizeL", ".spectrum-Divider--staticBlack.spectrum-Divider--sizeM", ".spectrum-Divider--staticBlack.spectrum-Divider--sizeS", ".spectrum-Divider--staticWhite.spectrum-Divider--sizeL", ".spectrum-Divider--staticWhite.spectrum-Divider--sizeM", ".spectrum-Divider--staticWhite.spectrum-Divider--sizeS", - ".spectrum-Divider--vertical" + ".spectrum-Divider--vertical", + ".spectrum-Divider.spectrum-Divider--sizeL", + ".spectrum-Divider.spectrum-Divider--sizeM", + ".spectrum-Divider.spectrum-Divider--sizeS" ], "modifiers": [ "--mod-divider-background-color", @@ -43,12 +43,12 @@ "--spectrum-divider-thickness-small" ], "global": [ - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-gray-800", - "--spectrum-transparent-black-300", - "--spectrum-transparent-black-800", - "--spectrum-transparent-white-300", - "--spectrum-transparent-white-800" + "--spectrum-transparent-black-400", + "--spectrum-transparent-black-900", + "--spectrum-transparent-white-400", + "--spectrum-transparent-white-900" ], "system-theme": [], "passthroughs": [], diff --git a/components/divider/package.json b/components/divider/package.json index 88e070f09d2..3ae232a1877 100644 --- a/components/divider/package.json +++ b/components/divider/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/divider", - "version": "3.1.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS divider component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/divider/stories/divider.stories.js b/components/divider/stories/divider.stories.js index 60fde7aa00e..4b231bb27f6 100644 --- a/components/divider/stories/divider.stories.js +++ b/components/divider/stories/divider.stories.js @@ -1,6 +1,6 @@ +import { Sizes } from "@spectrum-css/preview/decorators"; import { disableDefaultModes } from "@spectrum-css/preview/modes"; import { size, staticColor } from "@spectrum-css/preview/types"; -import { Sizes } from "@spectrum-css/preview/decorators"; import pkgJson from "../package.json"; import { DividerGroup } from "./divider.test.js"; import { Template } from "./template.js"; @@ -38,7 +38,7 @@ export default { }; /** - * By default, dividers are horizontal and should be used for separating content vertically. The small divider is the default size. + * By default, dividers are horizontal and should be used for separating content vertically. The small divider is the default size. */ export const Default = DividerGroup.bind({}); Default.args = {}; @@ -91,9 +91,7 @@ StaticWhiteGroup.args = { staticColor: "white", }; StaticWhiteGroup.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; export const StaticBlackGroup = Default.bind({}); @@ -103,9 +101,7 @@ StaticBlackGroup.args = { staticColor: "black", }; StaticBlackGroup.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; // ********* VRT ONLY ********* // diff --git a/components/divider/stories/divider.test.js b/components/divider/stories/divider.test.js index 007799065bb..0122648b6b6 100644 --- a/components/divider/stories/divider.test.js +++ b/components/divider/stories/divider.test.js @@ -20,6 +20,14 @@ export const DividerGroup = Variants({ testHeading: "Vertical", vertical: true, minDimensionValues: true, - } + }, + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], }); diff --git a/components/divider/stories/template.js b/components/divider/stories/template.js index cd3d9bc1a64..ac2ffa2a4c1 100644 --- a/components/divider/stories/template.js +++ b/components/divider/stories/template.js @@ -4,6 +4,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/divider/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..261e20f0a19 --- /dev/null +++ b/components/divider/themes/spectrum-two.css @@ -0,0 +1,31 @@ +/*! + * 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 + * + * 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-small: var(--spectrum-gray-200); + --spectrum-divider-background-color-medium: var(--spectrum-gray-200); + --spectrum-divider-background-color-large: var(--spectrum-gray-800); + + /* static white background colors */ + --spectrum-divider-background-color-small-static-white: var(--spectrum-transparent-white-400); + --spectrum-divider-background-color-medium-static-white: var(--spectrum-transparent-white-400); + --spectrum-divider-background-color-large-static-white: var(--spectrum-transparent-white-900); + + /* static black background colors */ + --spectrum-divider-background-color-small-static-black: var(--spectrum-transparent-black-400); + --spectrum-divider-background-color-medium-static-black: var(--spectrum-transparent-black-400); + --spectrum-divider-background-color-large-static-black: var(--spectrum-transparent-black-900); + } +} diff --git a/components/divider/themes/spectrum.css b/components/divider/themes/spectrum.css new file mode 100644 index 00000000000..7688e6187a6 --- /dev/null +++ b/components/divider/themes/spectrum.css @@ -0,0 +1,35 @@ +/*! + * 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 + * + * 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-small: var(--spectrum-gray-300); + --spectrum-divider-background-color-medium: var(--spectrum-gray-300); + + /* static white background colors */ + --spectrum-divider-background-color-small-static-white: var(--spectrum-transparent-white-300); + --spectrum-divider-background-color-medium-static-white: var(--spectrum-transparent-white-300); + --spectrum-divider-background-color-large-static-white: var(--spectrum-transparent-white-800); + + /* static black background colors */ + --spectrum-divider-background-color-small-static-black: var(--spectrum-transparent-black-300); + --spectrum-divider-background-color-medium-static-black: var(--spectrum-transparent-black-300); + --spectrum-divider-background-color-large-static-black: var(--spectrum-transparent-black-800); + } +} diff --git a/components/dropindicator/CHANGELOG.md b/components/dropindicator/CHANGELOG.md index a3bd0e6e9e1..ea8fab10092 100644 --- a/components/dropindicator/CHANGELOG.md +++ b/components/dropindicator/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/dropindicator/index.css b/components/dropindicator/index.css index 84bff4ead14..b28281cd63f 100644 --- a/components/dropindicator/index.css +++ b/components/dropindicator/index.css @@ -11,19 +11,14 @@ * governing permissions and limitations under the License. */ +@import "./themes/spectrum-two.css"; + @media (forced-colors: active) { .spectrum-DropIndicator { --highcontrast-dropindicator-color: Highlight; } } -.spectrum-DropIndicator { - --spectrum-dropindicator-border-color: var(--spectrum-dropindicator-color); - --spectrum-dropindicator-circle-color: var(--spectrum-dropindicator-color); - --spectrum-dropindicator-border-size: var(--spectrum-border-width-200); - --spectrum-dropindicator-circle-size: 12px; -} - .spectrum-DropIndicator { position: relative; background: var(--highcontrast-dropindicator-color, var(--mod-dropindicator-border-color, var(--spectrum-dropindicator-border-color))); diff --git a/components/dropindicator/metadata/dropindicator.yml b/components/dropindicator/metadata/dropindicator.yml deleted file mode 100644 index a63b135eb70..00000000000 --- a/components/dropindicator/metadata/dropindicator.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Drop indicator -description: A Drop Indicator is used to show the insertion position into a list or table. -examples: - - id: dropindicator - name: Standard - markup: | -
    -
    -
    -
    diff --git a/components/dropindicator/package.json b/components/dropindicator/package.json index 383768c8e16..fae7e40e476 100644 --- a/components/dropindicator/package.json +++ b/components/dropindicator/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/dropindicator", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS dropindicator component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/dropindicator/stories/template.js b/components/dropindicator/stories/template.js index e9d57e8ffcf..6106bd1cc66 100644 --- a/components/dropindicator/stories/template.js +++ b/components/dropindicator/stories/template.js @@ -4,6 +4,9 @@ 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-DropIndicator", diff --git a/components/dropindicator/themes/express.css b/components/dropindicator/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/dropindicator/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/tokens/dist/css/components/bridge/actiongroup.css b/components/dropindicator/themes/spectrum-two.css similarity index 64% rename from tokens/dist/css/components/bridge/actiongroup.css rename to components/dropindicator/themes/spectrum-two.css index 79d96d08704..206c1331639 100644 --- a/tokens/dist/css/components/bridge/actiongroup.css +++ b/components/dropindicator/themes/spectrum-two.css @@ -11,8 +11,11 @@ * governing permissions and limitations under the License. */ -.spectrum-ActionGroup { - --spectrum-actiongroup-gap-size-compact: var(--system-spectrum-actiongroup-gap-size-compact); - --spectrum-actiongroup-horizontal-spacing-compact: var(--system-spectrum-actiongroup-horizontal-spacing-compact); - --spectrum-actiongroup-vertical-spacing-compact: var(--system-spectrum-actiongroup-vertical-spacing-compact); +@container style(--system: spectrum) { + .spectrum-DropIndicator { + --spectrum-dropindicator-border-color: var(--spectrum-dropindicator-color); + --spectrum-dropindicator-circle-color: var(--spectrum-dropindicator-color); + --spectrum-dropindicator-border-size: var(--spectrum-border-width-200); + --spectrum-dropindicator-circle-size: 12px; + } } diff --git a/components/dropindicator/themes/spectrum.css b/components/dropindicator/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/dropindicator/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/dropzone/CHANGELOG.md b/components/dropzone/CHANGELOG.md index 1339f2acc4d..f02b3f06b76 100644 --- a/components/dropzone/CHANGELOG.md +++ b/components/dropzone/CHANGELOG.md @@ -1,5 +1,209 @@ # Change Log +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.13 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/link@6.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`877ca25`](https://github.com/adobe/spectrum-css/commit/877ca2516363e9483e7b3ecbfddc900b4e6a9a65) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-241] In order to show dropzone background color, --spectrum-drop-zone-background-color has been changed to --mod-drop-zone-background-color in &.is-dragged and &.is-filled + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.12 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/link@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.11 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/link@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.10 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/link@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.9 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/link@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.8 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/link@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.7 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/link@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/link@6.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.5 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/link@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.4 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/link@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.3 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/link@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.2 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/link@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.1 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/link@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/illustratedmessage@8.0.0-s2-foundations.0 + - @spectrum-css/link@6.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/dropzone/index.css b/components/dropzone/index.css index 58913ca04e3..588e58b3acf 100644 --- a/components/dropzone/index.css +++ b/components/dropzone/index.css @@ -11,51 +11,10 @@ * governing permissions and limitations under the License. */ +@import "./themes/spectrum-two.css"; + .spectrum-DropZone { - --spectrum-drop-zone-padding: var(--spectrum-spacing-400); - --spectrum-drop-zone-illustration-to-heading: var(--spectrum-spacing-400); - --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-300); - - --spectrum-drop-zone-heading-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-drop-zone-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); - --spectrum-drop-zone-heading-font-style: var(--spectrum-heading-sans-serif-font-style); - --spectrum-drop-zone-heading-font-size: var(--spectrum-drop-zone-title-size); - --spectrum-drop-zone-heading-line-height: var(--spectrum-heading-line-height); - --spectrum-drop-zone-heading-color: var(--spectrum-heading-color); - - --spectrum-drop-zone-body-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-drop-zone-body-font-weight: var(--spectrum-body-sans-serif-font-weight); - --spectrum-drop-zone-body-font-style: var(--spectrum-body-sans-serif-font-style); - --spectrum-drop-zone-body-font-size: var(--spectrum-drop-zone-body-size); - --spectrum-drop-zone-body-line-height: var(--spectrum-body-line-height); - --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); - --spectrum-drop-zone-illustration-color: var(--spectrum-neutral-visual-color); - --spectrum-drop-zone-illustration-color-hover: var(--spectrum-accent-visual-color); - - /* 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); - --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); - --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); - --spectrum-drop-zone-content-color: var(--spectrum-white); - - /* Settings for a nested illustrated message */ + /* @passthrough 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)); --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-drop-zone-illustration-to-heading)); @@ -76,20 +35,11 @@ --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 */ + /** @passthrough ActionButton -- 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) { - --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-drop-zone-padding)) - var(--mod-drop-zone-border-width, var(--spectrum-drop-zone-border-width))); @@ -97,13 +47,18 @@ 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-drop-zone-corner-radius)); - border-style: var(--mod-drop-zone-border-style, dashed); - background-size: cover; + border-style: var(--mod-drop-zone-border-style, var(--spectrum-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) { + --spectrum-drop-zone-heading-font-size: var(--spectrum-drop-zone-heading-font-size-cjk); + } &.is-dragged { - /* @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-border-style: 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))); --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))); @@ -131,7 +86,7 @@ } .spectrum-DropZone-content { - display: var(--mod-drop-zone-content-display, none); + display: var(--mod-drop-zone-content-display, var(--spectrum-drop-zone-content-display, none)); block-size: 100%; align-items: center; justify-content: center; diff --git a/components/dropzone/metadata/dropzone.yml b/components/dropzone/metadata/dropzone.yml deleted file mode 100644 index ee00e8e082d..00000000000 --- a/components/dropzone/metadata/dropzone.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Drop zone -description: 'A Drop Zone is an area on the screen into a which an object can be dragged and dropped to accomplish a task. For example, a Drop Zone might be used in an upload workflow to enable the user to simply drop a file from their operating system into the Drop Zone, which is a more efficient and intuitive action, rather than utilize the standard "Choose File" dialog.' -examples: - - id: dropzone - name: Default - markup: | -
    -
    - -

    Drag and drop your file

    -

    Select a file from your computer.

    -
    -
    - - id: dropzone-dragged - name: Dragged - markup: | -
    -
    - -

    Drag and drop your file

    -

    Select a file from your computer.

    -
    -
    - - id: dropzone-filled - name: Filled and dragged - markup: | -
    -
    - -
    -
    diff --git a/components/dropzone/metadata/metadata.json b/components/dropzone/metadata/metadata.json index a3bbc3e93e8..38bdf6c3410 100644 --- a/components/dropzone/metadata/metadata.json +++ b/components/dropzone/metadata/metadata.json @@ -27,7 +27,6 @@ "--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", @@ -72,11 +71,13 @@ "--spectrum-drop-zone-body-size", "--spectrum-drop-zone-border-color", "--spectrum-drop-zone-border-color-hover", + "--spectrum-drop-zone-border-style", "--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-display", "--spectrum-drop-zone-content-edge-to-text", "--spectrum-drop-zone-content-font-family", "--spectrum-drop-zone-content-font-size", @@ -91,6 +92,7 @@ "--spectrum-drop-zone-heading-color", "--spectrum-drop-zone-heading-font-family", "--spectrum-drop-zone-heading-font-size", + "--spectrum-drop-zone-heading-font-size-cjk", "--spectrum-drop-zone-heading-font-style", "--spectrum-drop-zone-heading-font-weight", "--spectrum-drop-zone-heading-line-height", @@ -117,7 +119,7 @@ "--spectrum-corner-radius-100", "--spectrum-default-font-style", "--spectrum-font-size-300", - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-heading-color", "--spectrum-heading-line-height", "--spectrum-heading-sans-serif-font-style", diff --git a/components/dropzone/metadata/mods.md b/components/dropzone/metadata/mods.md index da00c42f335..21a65244705 100644 --- a/components/dropzone/metadata/mods.md +++ b/components/dropzone/metadata/mods.md @@ -12,7 +12,6 @@ | `--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` | diff --git a/components/dropzone/package.json b/components/dropzone/package.json index c9e15ba6bd6..592a5f6f03e 100644 --- a/components/dropzone/package.json +++ b/components/dropzone/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/dropzone", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.14", "description": "The Spectrum CSS dropzone component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/dropzone/stories/template.js b/components/dropzone/stories/template.js index 3363790eccc..9eb2dfface7 100644 --- a/components/dropzone/stories/template.js +++ b/components/dropzone/stories/template.js @@ -7,6 +7,9 @@ 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", diff --git a/components/dropzone/themes/express.css b/components/dropzone/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/dropzone/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..5a768a931c7 --- /dev/null +++ b/components/dropzone/themes/spectrum-two.css @@ -0,0 +1,61 @@ +/*! + * 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 + * + * 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-padding: var(--spectrum-spacing-400); + --spectrum-drop-zone-illustration-to-heading: var(--spectrum-spacing-400); + --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); + + --spectrum-drop-zone-heading-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-drop-zone-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-drop-zone-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --spectrum-drop-zone-heading-font-size: var(--spectrum-drop-zone-title-size); + --spectrum-drop-zone-heading-line-height: var(--spectrum-heading-line-height); + --spectrum-drop-zone-heading-color: var(--spectrum-heading-color); + + --spectrum-drop-zone-body-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-drop-zone-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-drop-zone-body-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-drop-zone-body-font-size: var(--spectrum-drop-zone-body-size); + --spectrum-drop-zone-body-line-height: var(--spectrum-body-line-height); + --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); + --spectrum-drop-zone-illustration-color: var(--spectrum-neutral-visual-color); + --spectrum-drop-zone-illustration-color-hover: var(--spectrum-accent-visual-color); + + /* 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); + --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); + --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); + --spectrum-drop-zone-content-color: var(--spectrum-white); + + --spectrum-drop-zone-heading-font-size-cjk: var(--spectrum-drop-zone-cjk-title-size); + } +} diff --git a/components/page/index.css b/components/dropzone/themes/spectrum.css similarity index 75% rename from components/page/index.css rename to components/dropzone/themes/spectrum.css index 28bab4cccc2..d8cc6efa999 100644 --- a/components/page/index.css +++ b/components/dropzone/themes/spectrum.css @@ -11,9 +11,13 @@ * governing permissions and limitations under the License. */ -:root { - background-color: var(--spectrum-gray-100); - /* Prevent tap highlights */ - -webkit-tap-highlight-color: var(--spectrum-transparent-black-100); +/* @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 ece8235168a..dfb4798951f 100644 --- a/components/fieldgroup/CHANGELOG.md +++ b/components/fieldgroup/CHANGELOG.md @@ -1,5 +1,223 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0) Thanks [@pfulton](https://github.com/pfulton)! - ActionButton: + + - Correct --spectrum-actionbutton-background-color-selected-disabled to be --spectrum-actionbutton-(background|border)-color-disabled-selected + + Combobox: + + - Move --spectrum-combobox-min-inline-size and --spectrum-combobox-button-width to the index.css + + FieldGroup: + + - Swap gap back to margin-inline-end on FieldGroup + + Typography: + + - Remap body size to xs if xxs provided + +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/helptext@6.0.0-s2-foundations.13 + - @spectrum-css/radio@10.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/helptext@6.0.0-s2-foundations.12 + - @spectrum-css/radio@10.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/helptext@6.0.0-s2-foundations.11 + - @spectrum-css/radio@10.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/helptext@6.0.0-s2-foundations.10 + - @spectrum-css/radio@10.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/helptext@6.0.0-s2-foundations.9 + - @spectrum-css/radio@10.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/helptext@6.0.0-s2-foundations.8 + - @spectrum-css/radio@10.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/helptext@6.0.0-s2-foundations.7 + - @spectrum-css/radio@10.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/helptext@6.0.0-s2-foundations.6 + - @spectrum-css/radio@10.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/helptext@6.0.0-s2-foundations.5 + - @spectrum-css/radio@10.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/helptext@6.0.0-s2-foundations.4 + - @spectrum-css/radio@10.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/helptext@6.0.0-s2-foundations.3 + - @spectrum-css/radio@10.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/helptext@6.0.0-s2-foundations.2 + - @spectrum-css/radio@10.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/helptext@6.0.0-s2-foundations.1 + - @spectrum-css/radio@10.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/radio@10.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/helptext@6.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/fieldgroup/index.css b/components/fieldgroup/index.css index e253a7a71ca..f4207eabbb9 100644 --- a/components/fieldgroup/index.css +++ b/components/fieldgroup/index.css @@ -11,6 +11,8 @@ * governing permissions and limitations under the License. */ +@import "./themes/spectrum-two.css"; + /* fieldgroup/index.css * * fieldgroup contains four component dependences: @@ -18,12 +20,6 @@ * */ -/* custom properties */ -.spectrum-FieldGroup { - --spectrum-fieldgroup-margin: var(--spectrum-spacing-300); - --spectrum-fieldgroup-readonly-delimiter: "\002c"; -} - /* field group */ .spectrum-FieldGroup { display: flex; diff --git a/components/fieldgroup/metadata/fieldgroup.yml b/components/fieldgroup/metadata/fieldgroup.yml deleted file mode 100644 index 291711c17e8..00000000000 --- a/components/fieldgroup/metadata/fieldgroup.yml +++ /dev/null @@ -1,527 +0,0 @@ -name: Field group -description: | - - A group of fields, usually Radios or Checkboxes. - - Field group incorporates the Help text component which may appear below a Field group. - - Help text is necessary to denote invalid checkbox fields, invalid radio button fields, and required fields. - - Invalid radio buttons are signified only by negative Help text. - - Invalid checkboxes are signified by negative Help text and the negative/invalid color on the input box. -sections: - - name: Migration Guide - description: | - ### Field group now includes Field label and Help text - - Include Field Label as size medium, `spectrum-FieldLabel spectrum-FieldLabel--sizeM`. - - Include Help text as `spectrum-HelpText-text`. - ### Field group label has two layout options - - Label can be top aligned with `spectrum-FieldGroup spectrum-FieldGroup--toplabel`. - - Label can be side aligned with `spectrum-FieldGroup spectrum-FieldGroup--sidelabel`. - ### Field group must now include `spectrum-FieldGroupInputLayout` as the immediate parent of the Field group items - - Due to the addition of label, a new nested div must wrap the fieldgroup items to control their layout separately from the label - -examples: - - id: fieldgroup-vertical - name: Vertical - description: A vertical group of fields. - markup: | -
    -
    -

    Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Checkbox

    -
    -
    -
    Checkbox Group Label
    - -
    - - - - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    - - - id: fieldgroup-horizontal - name: Horizontal - description: A horizontal group of fields. - markup: | -
    -
    -

    Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Checkbox

    -
    -
    -
    Checkbox Group Label
    - -
    - - - - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    - - - id: fieldgroup-invalid - name: Invalid - description: An invalid group of fields. - markup: | - -
    -
    -

    Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    - -
    Select an option.
    -
    -
    -
    -
    -
    - - -
    -

    Checkbox

    -
    -
    -
    Checkbox Group Label
    - -
    - - - - -
    - -
    Select an option.
    -
    -
    -
    -
    -
    - -
    - - - id: fieldgroup-required-optional - name: Required or Optional - description: An optional or required group of fields. - markup: | -
    -
    -

    Required

    -
    -
    -
    Radio Group Label (required)
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Required Asterisk

    -
    -
    -
    Radio Group Label - -
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Optional

    -
    -
    -
    Radio Group Label (optional)
    - -
    -
    - - - -
    - -
    - - - -
    -
    -
    -
    -
    -
    - - - id: fieldgroup-sidelabel - name: Side Label Position - markup: | -
    - -
    -

    Side Label Vertical Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Side Label Vertical Checkbox

    -
    -
    -
    Checkbox Group Label
    - -
    - - - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    -

    Side Label Horizontal Radio

    -
    -
    -
    Radio Group Label
    - -
    -
    - - - -
    - -
    - - - -
    - -
    -
    Select an option.
    -
    -
    -
    -
    - -
    - -

    Side Label Horizontal Checkbox

    -
    -
    -
    Checkbox Group Label
    - -
    - - - - -
    -
    Select an option.
    -
    -
    -
    -
    -
    - -
    - - - id: fieldgroup-readonly-checkboxes - name: Read-only Checkboxes - description: A group of read-only checkboxes that have been `checked`. In U.S. English, use commas to delineate items within read-only checkbox groups. In other languages, use the locale-specific formatting. - markup: | -
    - - - - - -
    diff --git a/components/fieldgroup/package.json b/components/fieldgroup/package.json index 43623c96af0..272f6352295 100644 --- a/components/fieldgroup/package.json +++ b/components/fieldgroup/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/fieldgroup", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS fieldgroup component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/fieldgroup/stories/template.js b/components/fieldgroup/stories/template.js index 12ec029017b..a0a4c95f17b 100644 --- a/components/fieldgroup/stories/template.js +++ b/components/fieldgroup/stories/template.js @@ -7,23 +7,23 @@ 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-FieldGroup", - customClasses = [], - layout = "vertical", - inputType = "radio", - isReadOnly = false, - isRequired = false, - label, - labelPosition, - isInvalid, - helpText, - items = [], - } = {}, - context = {}, -) => { +export const Template = ({ + rootClass = "spectrum-FieldGroup", + customClasses = [], + layout = "vertical", + inputType = "radio", + isReadOnly = false, + isRequired = false, + label, + labelPosition, + isInvalid, + helpText, + items = [], +} = {}, context = {}) => { return html`
    + * + * 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/tokens/dist/css/components/bridge/alertbanner.css b/components/fieldgroup/themes/spectrum-two.css similarity index 77% rename from tokens/dist/css/components/bridge/alertbanner.css rename to components/fieldgroup/themes/spectrum-two.css index 030ea9fb330..dbecf1d4c89 100644 --- a/tokens/dist/css/components/bridge/alertbanner.css +++ b/components/fieldgroup/themes/spectrum-two.css @@ -11,6 +11,9 @@ * governing permissions and limitations under the License. */ -.spectrum-AlertBanner { - --spectrum-alert-banner-netural-background: var(--system-spectrum-alertbanner-spectrum-alert-banner-netural-background); +@container style(--system: spectrum) { + .spectrum-FieldGroup { + --spectrum-fieldgroup-margin: var(--spectrum-spacing-300); + --spectrum-fieldgroup-readonly-delimiter: "\002c"; + } } diff --git a/components/fieldgroup/themes/spectrum.css b/components/fieldgroup/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/fieldgroup/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/fieldlabel/CHANGELOG.md b/components/fieldlabel/CHANGELOG.md index 3bd83d3c162..880504060ec 100644 --- a/components/fieldlabel/CHANGELOG.md +++ b/components/fieldlabel/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 9.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 9.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 9.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 9.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 9.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 9.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 9.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 9.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 9.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 9.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 9.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 9.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 9.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 9.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 8.1.3 ### Patch Changes diff --git a/components/fieldlabel/index.css b/components/fieldlabel/index.css index f63c9c3b1f4..d63bdcefba9 100644 --- a/components/fieldlabel/index.css +++ b/components/fieldlabel/index.css @@ -11,72 +11,17 @@ * governing permissions and limitations under the License. */ -.spectrum-FieldLabel { - --spectrum-fieldlabel-min-height: var(--spectrum-component-height-75); - --spectrum-fieldlabel-color: var(--spectrum-neutral-subdued-content-color-default); - - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); - - --spectrum-fieldlabel-font-weight: var(--spectrum-regular-font-weight); - --spectrum-fieldlabel-line-height: var(--spectrum-line-height-100); - --spectrum-fieldlabel-line-height-cjk: var(--spectrum-cjk-line-height-100); -} - -.spectrum-FieldLabel--sizeS { - --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-font-size: var(--spectrum-font-size-75); - - --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-small); - --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-100); - - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); -} - -.spectrum-FieldLabel--sizeM { - --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-font-size: var(--spectrum-font-size-75); - - --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); - --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); - - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); -} - -.spectrum-FieldLabel--sizeL { - --spectrum-fieldlabel-min-height: var(--spectrum-component-height-100); - --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-font-size: var(--spectrum-font-size-100); - - --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-large); - --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); - - --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); -} - -.spectrum-FieldLabel--sizeXL { - --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-font-size: var(--spectrum-font-size-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); -} +@import "./themes/spectrum-two.css"; .spectrum-FieldLabel { display: block; box-sizing: border-box; min-block-size: var(--mod-fieldlabel-min-height, var(--spectrum-fieldlabel-min-height)); - padding-block: var(--mod-field-label-top-to-text, var(--spectrum-fieldlabel-top-to-text)) var(--mod-field-label-bottom-to-text, var(--spectrum-fieldlabel-bottom-to-text)); - padding-inline: 0; + padding-block: var(--mod-fieldlabel-padding-block, var(--mod-field-label-top-to-text, var(--spectrum-fieldlabel-top-to-text)) var(--mod-field-label-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-fieldlabel-font-size)); font-weight: var(--mod-fieldlabel-font-weight, var(--spectrum-fieldlabel-font-weight)); @@ -86,13 +31,13 @@ -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto; - color: var(--spectrum-fieldlabel-color); + color: var(--mod-fieldlabel-color, var(--spectrum-fieldlabel-color)); /* CJK (Chinese, Japanese, and Korean) language support */ &:lang(ja), &:lang(zh), &:lang(ko) { - line-height: var(--mod-fieldlabel-line-height-cjk, var(--spectrum-fieldlabel-line-height-cjk)); + --mod-fieldlabel-line-height: var(--mod-fieldlabel-line-height-cjk, var(--spectrum-fieldlabel-line-height-cjk)); } } @@ -130,6 +75,7 @@ /* @deprecation --mod-tableform-item-block-spacing has been renamed to --mod-form-item-block-spacing. The fallback will be removed in a future version. */ row-gap: var(--mod-form-item-block-spacing, var(--mod-tableform-item-block-spacing, var(--spectrum-tableform-item-block-spacing))); + } /* Row */ diff --git a/components/fieldlabel/metadata/fieldlabel.yml b/components/fieldlabel/metadata/fieldlabel.yml deleted file mode 100644 index 4a1a2c3ab65..00000000000 --- a/components/fieldlabel/metadata/fieldlabel.yml +++ /dev/null @@ -1,121 +0,0 @@ -name: Field label -SpectrumSiteSlug: https://spectrum.adobe.com/page/text-field/#Include-a-label -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Field label now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-FieldLabel--size*` class. -examples: - - id: fieldlabel-sizing - name: Sizing - markup: | -
    -
    -

    S

    - - -
    - -
    -
    -
    -

    M (default)

    - - -
    - -
    -
    - -
    -

    L

    - - -
    - -
    -
    - -
    -

    XL

    - - -
    - -
    -
    -
    - - id: fieldlabel-standard - name: Standard - markup: | - -
    - -
    - - -
    - -
    - - id: fieldlabel-side-left - name: Left - description: A left aligned Field label. - markup: | - - -
    - -
    - - id: fieldlabel-side-right - name: Right - description: A right aligned Field label. - markup: | - - -
    - -
    - - id: fieldlabel-required - name: Required - description: A Field label for a required field can display either the text "(required)", or an asterisk. If using the asterisk icon, do not leave any space between the label text and the start of the `` element in the markup, so extra space is not added in addition to the inline margin. - markup: | - -
    - -
    - - -
    - -
    - -
    -
    - - -
    - -
    - - -
    - -
    diff --git a/components/fieldlabel/metadata/form.yml b/components/fieldlabel/metadata/form.yml deleted file mode 100644 index 92375a2152c..00000000000 --- a/components/fieldlabel/metadata/form.yml +++ /dev/null @@ -1,261 +0,0 @@ -name: Form -description: Form provides structure and spacing for your form fields. -examples: - - id: form-labels-left - name: Standard - left-aligned text - description: A two column layout with left-aligned label text. Apply `.spectrum-FieldLabel--left` to each Field label. - markup: | -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    Interests
    -
    -
    - - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - - id: form-labels-right - name: Right-aligned text - description: A two column layout with right-aligned label text. Apply `.spectrum-FieldLabel--right` to each Field label. - markup: | -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    Interests
    -
    -
    - - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - - id: form-labels-above - name: Labels above - description: "A stacked layout with the labels above the form fields. Apply the variant class `.spectrum-Form--labelsAbove` to the Form itself. You do not need to apply a specific class to the Field label." - markup: | -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    Interests
    -
    -
    - - -
    -
    -
    - -
    - -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    diff --git a/components/fieldlabel/metadata/metadata.json b/components/fieldlabel/metadata/metadata.json index 409f73ab3ab..aa7b129cf0b 100644 --- a/components/fieldlabel/metadata/metadata.json +++ b/components/fieldlabel/metadata/metadata.json @@ -4,13 +4,13 @@ ".spectrum-FieldLabel", ".spectrum-FieldLabel--left", ".spectrum-FieldLabel--right", - ".spectrum-FieldLabel--sizeL", - ".spectrum-FieldLabel--sizeM", - ".spectrum-FieldLabel--sizeS", - ".spectrum-FieldLabel--sizeXL", ".spectrum-FieldLabel-requiredIcon", ".spectrum-FieldLabel.is-disabled", ".spectrum-FieldLabel.is-disabled .spectrum-FieldLabel-requiredIcon", + ".spectrum-FieldLabel.spectrum-FieldLabel--sizeL", + ".spectrum-FieldLabel.spectrum-FieldLabel--sizeM", + ".spectrum-FieldLabel.spectrum-FieldLabel--sizeS", + ".spectrum-FieldLabel.spectrum-FieldLabel--sizeXL", ".spectrum-FieldLabel:lang(ja)", ".spectrum-FieldLabel:lang(ko)", ".spectrum-FieldLabel:lang(zh)", @@ -30,11 +30,20 @@ "--mod-field-label-bottom-to-text", "--mod-field-label-text-to-asterisk", "--mod-field-label-top-to-text", + "--mod-fieldlabel-color", "--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-form-grid-template-columns", diff --git a/components/fieldlabel/metadata/mods.md b/components/fieldlabel/metadata/mods.md index 35f6422ca6a..e3355f4d3b9 100644 --- a/components/fieldlabel/metadata/mods.md +++ b/components/fieldlabel/metadata/mods.md @@ -5,11 +5,20 @@ | `--mod-field-label-bottom-to-text` | | `--mod-field-label-text-to-asterisk` | | `--mod-field-label-top-to-text` | +| `--mod-fieldlabel-color` | | `--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-form-grid-template-columns` | diff --git a/components/fieldlabel/package.json b/components/fieldlabel/package.json index c7fdef1d037..556690bb627 100644 --- a/components/fieldlabel/package.json +++ b/components/fieldlabel/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/fieldlabel", - "version": "8.1.3", + "version": "9.0.0-s2-foundations.13", "description": "The Spectrum CSS fieldlabel component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/fieldlabel/stories/form.template.js b/components/fieldlabel/stories/form.template.js index 27b5ec90669..3715e1be20c 100644 --- a/components/fieldlabel/stories/form.template.js +++ b/components/fieldlabel/stories/form.template.js @@ -8,6 +8,9 @@ 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-Form", @@ -16,35 +19,37 @@ export const Template = ({ customStyles = {}, id = getRandomId("form"), items = [], -}, context) => html` -
    ({ ...a, [c]: true }), {}), - })} - id=${ifDefined(id)} - style=${styleMap(customStyles)} - > - ${repeat(items, (item) => item.id, ({ label, content, ...item }) => { - if (!content) return; +} = {}, context = {}) => { + return html` + ({ ...a, [c]: true }), {}), + })} + id=${ifDefined(id)} + style=${styleMap(customStyles)} + > + ${repeat(items, (item) => item.id, ({ label, content, ...item }) => { + if (!content) return; - return html` -
    - ${when(label, () => FieldLabel({ - label, - forInput: item.id, - alignment: labelsAbove ? undefined : "left", - }, context))} + return html`
    - ${renderContent(content, { context })} + ${when(label, () => FieldLabel({ + label, + forInput: item.id, + alignment: labelsAbove ? undefined : "left", + }, context))} +
    + ${renderContent(content, { context })} +
    -
    - `; - })} -
    -`; + `; + })} + + `; +}; diff --git a/components/fieldlabel/stories/template.js b/components/fieldlabel/stories/template.js index 7f5477e4d5f..97fd584410a 100644 --- a/components/fieldlabel/stories/template.js +++ b/components/fieldlabel/stories/template.js @@ -7,6 +7,9 @@ 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-FieldLabel", diff --git a/components/fieldlabel/themes/express.css b/components/fieldlabel/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/fieldlabel/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/fieldlabel/themes/spectrum-two.css b/components/fieldlabel/themes/spectrum-two.css new file mode 100644 index 00000000000..f58541f2250 --- /dev/null +++ b/components/fieldlabel/themes/spectrum-two.css @@ -0,0 +1,74 @@ +/*! + * 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 + * + * 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-FieldLabel { + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-75); + --spectrum-fieldlabel-color: var(--spectrum-neutral-subdued-content-color-default); + + --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + + --spectrum-fieldlabel-font-weight: var(--spectrum-regular-font-weight); + --spectrum-fieldlabel-line-height: var(--spectrum-line-height-100); + --spectrum-fieldlabel-line-height-cjk: var(--spectrum-cjk-line-height-100); + + &.spectrum-FieldLabel--sizeS { + --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-font-size: var(--spectrum-font-size-75); + + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-small); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-100); + + --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); + } + + &, + &.spectrum-FieldLabel--sizeM { + --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-font-size: var(--spectrum-font-size-75); + + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); + + --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + } + + &.spectrum-FieldLabel--sizeL { + --spectrum-fieldlabel-min-height: var(--spectrum-component-height-100); + --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-font-size: var(--spectrum-font-size-100); + + --spectrum-fieldlabel-side-margin-block-start: var(--spectrum-field-label-top-margin-large); + --spectrum-fieldlabel-side-padding-right: var(--spectrum-spacing-200); + + --spectrum-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); + } + + &.spectrum-FieldLabel--sizeXL { + --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-font-size: var(--spectrum-font-size-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); + } + } +} diff --git a/components/fieldlabel/themes/spectrum.css b/components/fieldlabel/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/fieldlabel/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/floatingactionbutton/CHANGELOG.md b/components/floatingactionbutton/CHANGELOG.md index e45eb97d0d5..607a160f2df 100644 --- a/components/floatingactionbutton/CHANGELOG.md +++ b/components/floatingactionbutton/CHANGELOG.md @@ -1,5 +1,150 @@ # Change Log +## 3.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`43c7d40`](https://github.com/adobe/spectrum-css/commit/43c7d40cd97d75162fa954a9bd35cfcdbc37ccd1) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to static white background color and selected states + +### Patch Changes + +- Updated dependencies [[`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.19 + +## 3.0.0-s2-foundations.11 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 3.0.0-s2-foundations.10 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 3.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 3.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 3.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 3.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 3.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 3.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 3.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 3.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 3.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 2.1.3 ### Patch Changes diff --git a/components/floatingactionbutton/index.css b/components/floatingactionbutton/index.css index 7f75872dbbb..966f6d8d77f 100644 --- a/components/floatingactionbutton/index.css +++ b/components/floatingactionbutton/index.css @@ -11,45 +11,10 @@ * governing permissions and limitations under the License. */ -.spectrum-FloatingActionButton { - --spectrum-floating-action-button-size: var(--spectrum-component-height-200); - --spectrum-floating-action-button-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-floating-action-button-padding: var(--spectrum-component-pill-edge-to-visual-only-200); - --spectrum-floating-action-button-margin: var(--spectrum-spacing-200); - --spectrum-floating-action-button-drop-shadow-x: var(--spectrum-drop-shadow-x); - - --spectrum-floating-action-button-focus-ring-width: var(--spectrum-focus-indicator-thickness); - --spectrum-floating-action-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); - --spectrum-floating-action-button-focus-ring-color: var(--spectrum-focus-indicator-color); - - --spectrum-floating-action-button-background-color: var(--spectrum-accent-background-color-default); - --spectrum-floating-action-button-background-color-hover: var(--spectrum-accent-background-color-hover); - --spectrum-floating-action-button-background-color-down: var(--spectrum-accent-background-color-down); - --spectrum-floating-action-button-background-color-key-focus: var(--spectrum-accent-background-color-key-focus); - --spectrum-floating-action-button-icon-color: var(--spectrum-white); - --spectrum-floating-action-button-icon-color-hover: var(--spectrum-white); - --spectrum-floating-action-button-icon-color-down: var(--spectrum-white); - --spectrum-floating-action-button-icon-color-key-focus: var(--spectrum-white); -} - -.spectrum-FloatingActionButton--secondary { - --spectrum-floating-action-button-background-color: var(--spectrum-background-layer-2-color); - --spectrum-floating-action-button-background-color-hover: var(--spectrum-background-layer-2-color); - --spectrum-floating-action-button-background-color-down: var(--spectrum-background-layer-2-color); - --spectrum-floating-action-button-background-color-key-focus: var(--spectrum-background-layer-2-color); - --spectrum-floating-action-button-icon-color: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-floating-action-button-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-floating-action-button-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-floating-action-button-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-FloatingActionButton { - &::after { - /* make sure focus-ring renders */ - forced-color-adjust: none; - } - --highcontrast-floating-action-button-background-color: ButtonText; --highcontrast-floating-action-button-background-color-hover: Highlight; --highcontrast-floating-action-button-background-color-down: Highlight; @@ -59,6 +24,11 @@ --highcontrast-floating-action-button-icon-color-hover: ButtonFace; --highcontrast-floating-action-button-icon-color-down: ButtonFace; --highcontrast-floating-action-button-icon-color-key-focus: ButtonFace; + + &::after { + /* make sure focus-ring renders */ + forced-color-adjust: none; + } } } diff --git a/components/floatingactionbutton/metadata/floatingactionbutton.yml b/components/floatingactionbutton/metadata/floatingactionbutton.yml deleted file mode 100644 index c2d5f13c39f..00000000000 --- a/components/floatingactionbutton/metadata/floatingactionbutton.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Floating action button -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/floating-action-button/ -description: | - - Floating action button is used to give users a more prominent button for high frequency actions - - When using Floating Action Button in dark themes, the `background-layer-color-2` will often show up on the base color `gray-50` or `gray-75` or on content, images, etc. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: floatingactionbutton-primary - name: Primary - markup: | - - - id: floatingactionbutton-secondary - name: Secondary - markup: | - diff --git a/components/floatingactionbutton/package.json b/components/floatingactionbutton/package.json index 85e4e686b88..e414bf00622 100644 --- a/components/floatingactionbutton/package.json +++ b/components/floatingactionbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/floatingactionbutton", - "version": "2.1.3", + "version": "3.0.0-s2-foundations.12", "description": "The Spectrum CSS floatingactionbutton component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/floatingactionbutton/stories/template.js b/components/floatingactionbutton/stories/template.js index 6d181eb7b89..3dcea7418bb 100644 --- a/components/floatingactionbutton/stories/template.js +++ b/components/floatingactionbutton/stories/template.js @@ -6,6 +6,9 @@ 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-FloatingActionButton", diff --git a/components/floatingactionbutton/themes/express.css b/components/floatingactionbutton/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/floatingactionbutton/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/floatingactionbutton/themes/spectrum-two.css b/components/floatingactionbutton/themes/spectrum-two.css new file mode 100644 index 00000000000..59a0892c7dd --- /dev/null +++ b/components/floatingactionbutton/themes/spectrum-two.css @@ -0,0 +1,46 @@ +/*! + * 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 + * + * 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-FloatingActionButton { + --spectrum-floating-action-button-size: var(--spectrum-component-height-200); + --spectrum-floating-action-button-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-floating-action-button-padding: var(--spectrum-component-pill-edge-to-visual-only-200); + --spectrum-floating-action-button-margin: var(--spectrum-spacing-200); + --spectrum-floating-action-button-drop-shadow-x: var(--spectrum-drop-shadow-x); + + --spectrum-floating-action-button-focus-ring-width: var(--spectrum-focus-indicator-thickness); + --spectrum-floating-action-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --spectrum-floating-action-button-focus-ring-color: var(--spectrum-focus-indicator-color); + + --spectrum-floating-action-button-background-color: var(--spectrum-accent-background-color-default); + --spectrum-floating-action-button-background-color-hover: var(--spectrum-accent-background-color-hover); + --spectrum-floating-action-button-background-color-down: var(--spectrum-accent-background-color-down); + --spectrum-floating-action-button-background-color-key-focus: var(--spectrum-accent-background-color-key-focus); + --spectrum-floating-action-button-icon-color: var(--spectrum-white); + --spectrum-floating-action-button-icon-color-hover: var(--spectrum-white); + --spectrum-floating-action-button-icon-color-down: var(--spectrum-white); + --spectrum-floating-action-button-icon-color-key-focus: var(--spectrum-white); + } + + .spectrum-FloatingActionButton--secondary { + --spectrum-floating-action-button-background-color: var(--spectrum-background-layer-2-color); + --spectrum-floating-action-button-background-color-hover: var(--spectrum-background-layer-2-color); + --spectrum-floating-action-button-background-color-down: var(--spectrum-background-layer-2-color); + --spectrum-floating-action-button-background-color-key-focus: var(--spectrum-background-layer-2-color); + --spectrum-floating-action-button-icon-color: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-floating-action-button-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-floating-action-button-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-floating-action-button-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + } +} diff --git a/components/floatingactionbutton/themes/spectrum.css b/components/floatingactionbutton/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/floatingactionbutton/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/helptext/CHANGELOG.md b/components/helptext/CHANGELOG.md index 2dc3348bd02..667c60bcec0 100644 --- a/components/helptext/CHANGELOG.md +++ b/components/helptext/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/helptext/index.css b/components/helptext/index.css index e9ff01d5240..7874b0ce2bd 100644 --- a/components/helptext/index.css +++ b/components/helptext/index.css @@ -11,77 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-HelpText { - --spectrum-helptext-line-height: var(--spectrum-line-height-100); - --spectrum-helptext-content-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-helptext-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-helptext-disabled-content-color: var(--spectrum-disabled-content-color); - - &.spectrum-HelpText--neutral { - --spectrum-helptext-content-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-helptext-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - } - - &.spectrum-HelpText--negative { - --spectrum-helptext-content-color-default: var(--spectrum-negative-color-900); - --spectrum-helptext-icon-color-default: var(--spectrum-negative-color-900); - } - - &.is-disabled { - --spectrum-helptext-content-color-default: var(--spectrum-helptext-disabled-content-color); - --spectrum-helptext-icon-color-default: var(--spectrum-helptext-disabled-content-color); - } - - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-helptext-line-height-cjk: var(--spectrum-cjk-line-height-100); - } -} - -.spectrum-HelpText--sizeS { - --spectrum-helptext-min-height: var(--spectrum-component-height-75); - --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-helptext-font-size: var(--spectrum-font-size-75); - --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-75); - --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-small); - --spectrum-helptext-bottom-to-workflow-icon: var(--spectrum-helptext-top-to-workflow-icon); - --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-75); -} - -.spectrum-HelpText--sizeM { - --spectrum-helptext-min-height: var(--spectrum-component-height-75); - --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-helptext-font-size: var(--spectrum-font-size-75); - --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-75); - --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-medium); - --spectrum-helptext-bottom-to-workflow-icon: var(--spectrum-helptext-top-to-workflow-icon); - --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-75); -} - -.spectrum-HelpText--sizeL { - --spectrum-helptext-min-height: var(--spectrum-component-height-100); - --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-helptext-font-size: var(--spectrum-font-size-100); - --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-100); - --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-large); - --spectrum-helptext-bottom-to-workflow-icon: var(--spectrum-helptext-top-to-workflow-icon); - --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-100); -} - -.spectrum-HelpText--sizeXL { - --spectrum-helptext-min-height: var(--spectrum-component-height-200); - --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-300); - --spectrum-helptext-font-size: var(--spectrum-font-size-200); - --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-200); - --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-extra-large); - --spectrum-helptext-bottom-to-workflow-icon: var(--spectrum-helptext-top-to-workflow-icon); - --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-200); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-HelpText { @@ -98,6 +28,8 @@ } .spectrum-HelpText { + --spectrum-helptext-bottom-to-workflow-icon: var(--spectrum-helptext-top-to-workflow-icon); + color: var(--highcontrast-helptext-content-color-default, var(--mod-helptext-content-color-default, var(--spectrum-helptext-content-color-default))); display: flex; font-size: var(--mod-helptext-font-size, var(--spectrum-helptext-font-size)); diff --git a/components/helptext/metadata/helptext.yml b/components/helptext/metadata/helptext.yml deleted file mode 100644 index 5e1b6d9eb31..00000000000 --- a/components/helptext/metadata/helptext.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: Help text -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/help-text/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: helptext-sizing - name: Sizing - markup: | -
    -
    -

    S

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    M

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    L

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    XL

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    - - id: helptext-negative - name: Negative - markup: | -
    -
    -

    Negative

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    Negative with icon

    -
    - -
    Create a password with at least 8 characters.
    -
    -
    -
    - - id: helptext-negative-sizing - name: Negative Sizing (with icons) - markup: | -
    -
    -

    S

    -
    - -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    M

    -
    - -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    L

    -
    - -
    Create a password with at least 8 characters.
    -
    -
    -
    -

    XL

    -
    - -
    Create a password with at least 8 characters.
    -
    -
    -
    - - id: helptext-wrapping - name: Wrapping - markup: | -
    -
    -

    Wrapping

    -
    - -
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    -
    -
    -
    - - id: helptext-disabled - name: Disabled - markup: | -
    -
    -

    Disabled

    -
    -
    Create a password with at least 8 characters.
    -
    -
    -
    diff --git a/components/helptext/package.json b/components/helptext/package.json index e3bfd9e78b2..f52b21d2004 100644 --- a/components/helptext/package.json +++ b/components/helptext/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/helptext", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS helptext component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/helptext/stories/template.js b/components/helptext/stories/template.js index 7c0f5c3fd44..8a0e8e8e87a 100644 --- a/components/helptext/stories/template.js +++ b/components/helptext/stories/template.js @@ -7,6 +7,9 @@ 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-HelpText", diff --git a/components/helptext/themes/express.css b/components/helptext/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/helptext/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/helptext/themes/spectrum-two.css b/components/helptext/themes/spectrum-two.css new file mode 100644 index 00000000000..84aba5c3564 --- /dev/null +++ b/components/helptext/themes/spectrum-two.css @@ -0,0 +1,82 @@ +/*! + * 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 + * + * 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-HelpText { + --spectrum-helptext-line-height: var(--spectrum-line-height-100); + --spectrum-helptext-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-helptext-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-helptext-disabled-content-color: var(--spectrum-disabled-content-color); + + &.spectrum-HelpText--neutral { + --spectrum-helptext-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-helptext-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + } + + &.spectrum-HelpText--negative { + --spectrum-helptext-content-color-default: var(--spectrum-negative-color-900); + --spectrum-helptext-icon-color-default: var(--spectrum-negative-color-900); + } + + &.is-disabled { + --spectrum-helptext-content-color-default: var(--spectrum-helptext-disabled-content-color); + --spectrum-helptext-icon-color-default: var(--spectrum-helptext-disabled-content-color); + } + + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-helptext-line-height-cjk: var(--spectrum-cjk-line-height-100); + } + } + + .spectrum-HelpText--sizeS { + --spectrum-helptext-min-height: var(--spectrum-component-height-75); + --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-75); + --spectrum-helptext-font-size: var(--spectrum-font-size-75); + --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-75); + --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-small); + --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + } + + .spectrum-HelpText--sizeM { + --spectrum-helptext-min-height: var(--spectrum-component-height-75); + --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-helptext-font-size: var(--spectrum-font-size-75); + --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-75); + --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-medium); + --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + } + + .spectrum-HelpText--sizeL { + --spectrum-helptext-min-height: var(--spectrum-component-height-100); + --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-helptext-font-size: var(--spectrum-font-size-100); + --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-100); + --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-large); + --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + } + + .spectrum-HelpText--sizeXL { + --spectrum-helptext-min-height: var(--spectrum-component-height-200); + --spectrum-helptext-icon-size: var(--spectrum-workflow-icon-size-300); + --spectrum-helptext-font-size: var(--spectrum-font-size-200); + --spectrum-helptext-text-to-visual: var(--spectrum-text-to-visual-200); + --spectrum-helptext-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-extra-large); + --spectrum-helptext-top-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-helptext-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + } +} diff --git a/components/helptext/themes/spectrum.css b/components/helptext/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/helptext/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/icon/CHANGELOG.md b/components/icon/CHANGELOG.md index 9ad19ce8f73..9098d3ba585 100644 --- a/components/icon/CHANGELOG.md +++ b/components/icon/CHANGELOG.md @@ -1,5 +1,179 @@ # Change Log +## 8.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`f38c66a`](https://github.com/adobe/spectrum-css/commit/f38c66a314c94058d7f8f084faa4967c89b20e7b) Thanks [@pfulton](https://github.com/pfulton)! - Fix icon sizing and checkbox border colors + +## 8.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.12 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.11 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.10 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`494da11`](https://github.com/adobe/spectrum-css/commit/494da118554c2ecc425564e42d25424325efc331) Thanks [@pfulton](https://github.com/pfulton)! - ## Feature [@spectrum-css/icon] + + Update source files to load the mappings from component-level to global tokens for size and transform values. This will allow for more consistent and predictable behavior when using the `size` and `transform` props on icons when switching between contexts for S1, S2, and Express. + + ## Patch [@spectrum-css/typography] + + Remove the sourcemap footer from compiled assets. + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 7.1.4 ### Patch Changes diff --git a/components/icon/icons.css b/components/icon/icons.css deleted file mode 100644 index e413ba95173..00000000000 --- a/components/icon/icons.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 - * - * 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-Icon, -.spectrum-UIIcon { - --spectrum-icon-inline-size: var(--mod-icon-inline-size, var(--mod-icon-size, var(--spectrum-icon-size))); - --spectrum-icon-block-size: var(--mod-icon-block-size, var(--mod-icon-size, var(--spectrum-icon-size))); - - display: inline-block; - inline-size: var(--spectrum-icon-inline-size); - block-size: var(--spectrum-icon-block-size); - - /* Use custom pass through or inherit the text color. */ - color: var(--mod-icon-color, inherit); - - /* Fill should match the current text color. */ - fill: currentColor; - - /* Don't catch clicks or hover, otherwise they may not escape the SVG. */ - pointer-events: none; -} - -@media (forced-colors: active) { - .spectrum-Icon, - .spectrum-UIIcon { - /* Automatically adjust the SVG to pick up the text color for High Contrast mode */ - forced-color-adjust: auto; - } -} diff --git a/components/icon/index.css b/components/icon/index.css index a9a0b75f267..0718d7cce9d 100644 --- a/components/icon/index.css +++ b/components/icon/index.css @@ -11,6 +11,145 @@ * governing permissions and limitations under the License. */ -@import "icons.css"; -@import "workflow-icons.css"; -@import "ui-icons.css"; + @import "./themes/spectrum-two.css"; + + /* + * Component-specific icon transforms + */ + .spectrum-UIIcon-ChevronDown50, + .spectrum-UIIcon-ChevronDown75, + .spectrum-UIIcon-ChevronDown100, + .spectrum-UIIcon-ChevronDown200, + .spectrum-UIIcon-ChevronDown300, + .spectrum-UIIcon-ChevronDown400, + .spectrum-UIIcon-ChevronDown500, + .spectrum-UIIcon-ArrowDown75, + .spectrum-UIIcon-ArrowDown100, + .spectrum-UIIcon-ArrowDown200, + .spectrum-UIIcon-ArrowDown300, + .spectrum-UIIcon-ArrowDown400, + .spectrum-UIIcon-ArrowDown500, + .spectrum-UIIcon-ArrowDown600 { + --spectrum-icon-transform: rotate(90deg); + } + + .spectrum-UIIcon-ChevronLeft50, + .spectrum-UIIcon-ChevronLeft75, + .spectrum-UIIcon-ChevronLeft100, + .spectrum-UIIcon-ChevronLeft200, + .spectrum-UIIcon-ChevronLeft300, + .spectrum-UIIcon-ChevronLeft400, + .spectrum-UIIcon-ChevronLeft500, + .spectrum-UIIcon-ArrowLeft75, + .spectrum-UIIcon-ArrowLeft100, + .spectrum-UIIcon-ArrowLeft200, + .spectrum-UIIcon-ArrowLeft300, + .spectrum-UIIcon-ArrowLeft400, + .spectrum-UIIcon-ArrowLeft500, + .spectrum-UIIcon-ArrowLeft600 { + --spectrum-icon-transform: rotate(180deg); + } + + .spectrum-UIIcon-ChevronUp50, + .spectrum-UIIcon-ChevronUp75, + .spectrum-UIIcon-ChevronUp100, + .spectrum-UIIcon-ChevronUp200, + .spectrum-UIIcon-ChevronUp300, + .spectrum-UIIcon-ChevronUp400, + .spectrum-UIIcon-ChevronUp500, + .spectrum-UIIcon-ArrowUp75, + .spectrum-UIIcon-ArrowUp100, + .spectrum-UIIcon-ArrowUp200, + .spectrum-UIIcon-ArrowUp300, + .spectrum-UIIcon-ArrowUp400, + .spectrum-UIIcon-ArrowUp500, + .spectrum-UIIcon-ArrowUp600 { + --spectrum-icon-transform: rotate(270deg); + } + + /* + * Icon root class styles + */ +.spectrum-Icon, +.spectrum-UIIcon { + /* XXS icon size is not within the design spec and is planned to be deprecated in Spectrum 2. */ + &.spectrum-Icon--sizeXXS { + --spectrum-icon-size: var(--spectrum-icon-size-xxs); + } + + &.spectrum-Icon--sizeXS { + --spectrum-icon-size: var(--spectrum-icon-size-xs); + } + + &.spectrum-Icon--sizeS { + --spectrum-icon-size: var(--spectrum-icon-size-s); + } + + &, + &.spectrum-Icon--sizeM { + --spectrum-icon-size: var(--spectrum-icon-size-m); + } + + &.spectrum-Icon--sizeL { + --spectrum-icon-size: var(--spectrum-icon-size-l); + } + + &.spectrum-Icon--sizeXL { + --spectrum-icon-size: var(--spectrum-icon-size-xl); + } + + &.spectrum-Icon--sizeXXL { + --spectrum-icon-size: var(--spectrum-icon-size-xxl); + } + + /* Don't catch clicks or hover, otherwise they may not escape the SVG. */ + pointer-events: none; + + /* Only some icons have a transform applied to them */ + transform: var(--spectrum-icon-transform, none); + + display: inline-block; + inline-size: var(--mod-icon-inline-size, var(--mod-icon-size, var(--spectrum-icon-size))); + block-size: var(--mod-icon-block-size, var(--mod-icon-size, var(--spectrum-icon-size))); + + /* Use custom pass through or inherit the text color. */ + color: var(--mod-icon-color, inherit); + + /* Fill should match the current text color. */ + fill: currentColor; + + img, + svg { + inline-size: var(--mod-icon-inline-size, var(--mod-icon-size, var(--spectrum-icon-size))); + block-size: var(--mod-icon-block-size, var(--mod-icon-size, var(--spectrum-icon-size))); + } + + /* Hide the SVG overflow in IE. */ + &:not(:root) { + overflow: hidden; + } +} + +/* + * Medium/large scale + * ------------------ + * In the "combined" versiom of the UI Icon SVGs, the medium and the large icons are + * contained within the same SVG. The two separate elements are shown or hidden based + * on the current platform scale. + */ + +.spectrum-UIIcon--medium { + display: var(--mod-ui-icon-medium-display, var(--spectrum-ui-icon-medium-display, block)); +} + +.spectrum-UIIcon--large { + display: var(--mod-ui-icon-large-display, var(--spectrum-ui-icon-large-display, none)); +} + +@media (forced-colors: active) { + .spectrum-Icon, + .spectrum-UIIcon { + /* Automatically adjust the SVG to pick up the text color for High Contrast mode */ + forced-color-adjust: auto; + } +} diff --git a/components/icon/metadata/metadata.json b/components/icon/metadata/metadata.json index 7f5d27e3789..5d2e119f7f2 100644 --- a/components/icon/metadata/metadata.json +++ b/components/icon/metadata/metadata.json @@ -4,13 +4,17 @@ ".spectrum-Icon", ".spectrum-Icon img", ".spectrum-Icon svg", - ".spectrum-Icon--sizeL", - ".spectrum-Icon--sizeS", - ".spectrum-Icon--sizeXL", - ".spectrum-Icon--sizeXS", - ".spectrum-Icon--sizeXXL", - ".spectrum-Icon--sizeXXS", + ".spectrum-Icon.spectrum-Icon--sizeL", + ".spectrum-Icon.spectrum-Icon--sizeM", + ".spectrum-Icon.spectrum-Icon--sizeS", + ".spectrum-Icon.spectrum-Icon--sizeXL", + ".spectrum-Icon.spectrum-Icon--sizeXS", + ".spectrum-Icon.spectrum-Icon--sizeXXL", + ".spectrum-Icon.spectrum-Icon--sizeXXS", + ".spectrum-Icon:not(:root)", ".spectrum-UIIcon", + ".spectrum-UIIcon img", + ".spectrum-UIIcon svg", ".spectrum-UIIcon--large", ".spectrum-UIIcon--medium", ".spectrum-UIIcon-ArrowDown100", @@ -99,7 +103,15 @@ ".spectrum-UIIcon-Dash50", ".spectrum-UIIcon-Dash500", ".spectrum-UIIcon-Dash600", - ".spectrum-UIIcon-Dash75" + ".spectrum-UIIcon-Dash75", + ".spectrum-UIIcon.spectrum-Icon--sizeL", + ".spectrum-UIIcon.spectrum-Icon--sizeM", + ".spectrum-UIIcon.spectrum-Icon--sizeS", + ".spectrum-UIIcon.spectrum-Icon--sizeXL", + ".spectrum-UIIcon.spectrum-Icon--sizeXS", + ".spectrum-UIIcon.spectrum-Icon--sizeXXL", + ".spectrum-UIIcon.spectrum-Icon--sizeXXS", + ".spectrum-UIIcon:not(:root)" ], "modifiers": [ "--mod-icon-block-size", @@ -110,9 +122,15 @@ "--mod-ui-icon-medium-display" ], "component": [ - "--spectrum-icon-block-size", - "--spectrum-icon-inline-size", - "--spectrum-icon-size" + "--spectrum-icon-size", + "--spectrum-icon-size-l", + "--spectrum-icon-size-m", + "--spectrum-icon-size-s", + "--spectrum-icon-size-xl", + "--spectrum-icon-size-xs", + "--spectrum-icon-size-xxl", + "--spectrum-icon-size-xxs", + "--spectrum-icon-transform" ], "global": [ "--spectrum-arrow-icon-size-100", diff --git a/components/icon/package.json b/components/icon/package.json index 4773bd3a8d9..a277c0baf48 100644 --- a/components/icon/package.json +++ b/components/icon/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/icon", - "version": "7.1.4", + "version": "8.0.0-s2-foundations.15", "description": "The Spectrum CSS icon component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/icon/stories/icon.stories.js b/components/icon/stories/icon.stories.js index 978535f323c..e5c368ff4cc 100644 --- a/components/icon/stories/icon.stories.js +++ b/components/icon/stories/icon.stories.js @@ -102,7 +102,10 @@ WithForcedColors.tags = ["!autodocs", "!dev"]; WithForcedColors.parameters = { chromatic: { forcedColors: "active", - modes: disableDefaultModes + modes: { + ...disableDefaultModes, + "Mobile": { disable: true }, + }, }, }; diff --git a/components/icon/stories/template.js b/components/icon/stories/template.js index cf4b2067091..16f3b57bffb 100644 --- a/components/icon/stories/template.js +++ b/components/icon/stories/template.js @@ -5,6 +5,9 @@ import { ifDefined } from "lit/directives/if-defined.js"; import { unsafeSVG } from "lit/directives/unsafe-svg.js"; import "../index.css"; +import "../themes/spectrum.css"; +/* Must be imported last */ +import "../themes/express.css"; /** * @typedef { keyof import("./icon.stories.js").default.args } IconArgs @@ -111,6 +114,7 @@ export const Template = ({ uiIconSizes, } = {}, context = {}) => { const { globals = {}, loaded = {} } = context; + const scale = globals.scale ?? "medium"; if (!workflowIcons || !uiIcons || !uiIconSizes) { diff --git a/components/icon/themes/express.css b/components/icon/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/icon/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/icon/themes/spectrum-two.css b/components/icon/themes/spectrum-two.css new file mode 100644 index 00000000000..b891e1acee5 --- /dev/null +++ b/components/icon/themes/spectrum-two.css @@ -0,0 +1,378 @@ +/*! + * 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 + * + * 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-Icon { + --spectrum-icon-size-xxs: var(--spectrum-workflow-icon-size-xxs); + --spectrum-icon-size-xs: var(--spectrum-workflow-icon-size-50); + --spectrum-icon-size-s: var(--spectrum-workflow-icon-size-75); + --spectrum-icon-size-m: var(--spectrum-workflow-icon-size-100); + --spectrum-icon-size-l: var(--spectrum-workflow-icon-size-200); + --spectrum-icon-size-xl: var(--spectrum-workflow-icon-size-300); + --spectrum-icon-size-xxl: var(--spectrum-workflow-icon-size-xxl); + } + + /* Chevron */ + .spectrum-UIIcon-ChevronRight50, + .spectrum-UIIcon-ChevronDown50 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); + } + + .spectrum-UIIcon-ChevronRight75, + .spectrum-UIIcon-ChevronDown75 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); + } + + .spectrum-UIIcon-ChevronRight100, + .spectrum-UIIcon-ChevronDown100 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); + } + + .spectrum-UIIcon-ChevronRight200, + .spectrum-UIIcon-ChevronDown200 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); + } + + .spectrum-UIIcon-ChevronRight300, + .spectrum-UIIcon-ChevronDown300 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); + } + + .spectrum-UIIcon-ChevronRight400, + .spectrum-UIIcon-ChevronDown400 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); + } + + .spectrum-UIIcon-ChevronRight500, + .spectrum-UIIcon-ChevronDown500 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); + } + + .spectrum-UIIcon-ChevronDown100 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); + } + + .spectrum-UIIcon-ChevronDown200 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); + } + + .spectrum-UIIcon-ChevronDown300 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); + } + + .spectrum-UIIcon-ChevronDown400 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); + } + + .spectrum-UIIcon-ChevronDown500 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); + } + + .spectrum-UIIcon-ChevronLeft50 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); + } + + .spectrum-UIIcon-ChevronLeft75 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); + } + + .spectrum-UIIcon-ChevronLeft100 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); + } + + .spectrum-UIIcon-ChevronLeft200 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); + } + + .spectrum-UIIcon-ChevronLeft300 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); + } + + .spectrum-UIIcon-ChevronLeft400 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); + } + + .spectrum-UIIcon-ChevronLeft500 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); + } + + .spectrum-UIIcon-ChevronUp50 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); + } + + .spectrum-UIIcon-ChevronUp75 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); + } + + .spectrum-UIIcon-ChevronUp100 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); + } + + .spectrum-UIIcon-ChevronUp200 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); + } + + .spectrum-UIIcon-ChevronUp300 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); + } + + .spectrum-UIIcon-ChevronUp400 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); + } + + .spectrum-UIIcon-ChevronUp500 { + --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); + } + + /* Arrow */ + .spectrum-UIIcon-ArrowRight75 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); + } + + .spectrum-UIIcon-ArrowRight100 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); + } + + .spectrum-UIIcon-ArrowRight200 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); + } + + .spectrum-UIIcon-ArrowRight300 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); + } + + .spectrum-UIIcon-ArrowRight400 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); + } + + .spectrum-UIIcon-ArrowRight500 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); + } + + .spectrum-UIIcon-ArrowRight600 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); + } + + .spectrum-UIIcon-ArrowDown75 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); + } + + .spectrum-UIIcon-ArrowDown100 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); + } + + .spectrum-UIIcon-ArrowDown200 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); + } + + .spectrum-UIIcon-ArrowDown300 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); + } + + .spectrum-UIIcon-ArrowDown400 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); + } + + .spectrum-UIIcon-ArrowDown500 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); + } + + .spectrum-UIIcon-ArrowDown600 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); + } + + .spectrum-UIIcon-ArrowLeft75 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); + } + + .spectrum-UIIcon-ArrowLeft100 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); + } + + .spectrum-UIIcon-ArrowLeft200 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); + } + + .spectrum-UIIcon-ArrowLeft300 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); + } + + .spectrum-UIIcon-ArrowLeft400 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); + } + + .spectrum-UIIcon-ArrowLeft500 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); + } + + .spectrum-UIIcon-ArrowLeft600 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); + } + + .spectrum-UIIcon-ArrowUp75 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); + } + + .spectrum-UIIcon-ArrowUp100 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); + } + + .spectrum-UIIcon-ArrowUp200 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); + } + + .spectrum-UIIcon-ArrowUp300 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); + } + + .spectrum-UIIcon-ArrowUp400 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); + } + + .spectrum-UIIcon-ArrowUp500 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); + } + + .spectrum-UIIcon-ArrowUp600 { + --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); + } + + /* Checkmark */ + .spectrum-UIIcon-Checkmark50 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-50); + } + + .spectrum-UIIcon-Checkmark75 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-75); + } + + .spectrum-UIIcon-Checkmark100 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-100); + } + + .spectrum-UIIcon-Checkmark200 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-200); + } + + .spectrum-UIIcon-Checkmark300 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-300); + } + + .spectrum-UIIcon-Checkmark400 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-400); + } + + .spectrum-UIIcon-Checkmark500 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-500); + } + + .spectrum-UIIcon-Checkmark600 { + --spectrum-icon-size: var(--spectrum-checkmark-icon-size-600); + } + + /* Dash */ + .spectrum-UIIcon-Dash50 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-50); + } + + .spectrum-UIIcon-Dash75 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-75); + } + + .spectrum-UIIcon-Dash100 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-100); + } + + .spectrum-UIIcon-Dash200 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-200); + } + + .spectrum-UIIcon-Dash300 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-300); + } + + .spectrum-UIIcon-Dash400 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-400); + } + + .spectrum-UIIcon-Dash500 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-500); + } + + .spectrum-UIIcon-Dash600 { + --spectrum-icon-size: var(--spectrum-dash-icon-size-600); + } + + /* Cross */ + .spectrum-UIIcon-Cross75 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-75); + } + + .spectrum-UIIcon-Cross100 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-100); + } + + .spectrum-UIIcon-Cross200 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-200); + } + + .spectrum-UIIcon-Cross300 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-300); + } + + .spectrum-UIIcon-Cross400 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-400); + } + + .spectrum-UIIcon-Cross500 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-500); + } + + .spectrum-UIIcon-Cross600 { + --spectrum-icon-size: var(--spectrum-cross-icon-size-600); + } + + /* Corner Triangle */ + .spectrum-UIIcon-CornerTriangle75 { + --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-75); + } + + .spectrum-UIIcon-CornerTriangle100 { + --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-100); + } + + .spectrum-UIIcon-CornerTriangle200 { + --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-200); + } + + .spectrum-UIIcon-CornerTriangle300 { + --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-300); + } + + /* Asterisk */ + .spectrum-UIIcon-Asterisk75 { + --spectrum-icon-size: var(--spectrum-asterisk-icon-size-75); + } + + .spectrum-UIIcon-Asterisk100 { + --spectrum-icon-size: var(--spectrum-asterisk-icon-size-100); + } + + .spectrum-UIIcon-Asterisk200 { + --spectrum-icon-size: var(--spectrum-asterisk-icon-size-200); + } + + .spectrum-UIIcon-Asterisk300 { + --spectrum-icon-size: var(--spectrum-asterisk-icon-size-300); + } +} diff --git a/components/icon/themes/spectrum.css b/components/icon/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/icon/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/icon/ui-icons.css b/components/icon/ui-icons.css deleted file mode 100644 index ce39d50ea8c..00000000000 --- a/components/icon/ui-icons.css +++ /dev/null @@ -1,432 +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 - * - * 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. - */ - -/* - * Medium/large scale - * ------------------ - * In the "combined" versiom of the UI Icon SVGs, the medium and the large icons are - * contained within the same SVG. The two separate elements are shown or hidden based - * on the current platform scale. - */ - -.spectrum-UIIcon--medium { - display: var(--mod-ui-icon-medium-display, var(--spectrum-ui-icon-medium-display, block)); -} - -.spectrum-UIIcon--large { - display: var(--mod-ui-icon-large-display, var(--spectrum-ui-icon-large-display, none)); -} - -/* - * UI icons list - * ------------- - * - Unlike workflow icons, UI icons come in various sizes, defined by their own tokens. - * - Their base icon is rotated for directional variations (e.g. left and down). - */ - -/* Chevron */ -.spectrum-UIIcon-ChevronRight50 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); -} - -.spectrum-UIIcon-ChevronRight75 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); -} - -.spectrum-UIIcon-ChevronRight100 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); -} - -.spectrum-UIIcon-ChevronRight200 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); -} - -.spectrum-UIIcon-ChevronRight300 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); -} - -.spectrum-UIIcon-ChevronRight400 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); -} - -.spectrum-UIIcon-ChevronRight500 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); -} - -.spectrum-UIIcon-ChevronDown50 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown75 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown100 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown200 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown300 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown400 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronDown500 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ChevronLeft50 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft75 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft100 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft200 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft300 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft400 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronLeft500 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ChevronUp50 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-50); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp75 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-75); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp100 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-100); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp200 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-200); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp300 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-300); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp400 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-400); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ChevronUp500 { - --spectrum-icon-size: var(--spectrum-chevron-icon-size-500); - transform: rotate(270deg); -} - -/* Arrow */ -.spectrum-UIIcon-ArrowRight75 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); -} - -.spectrum-UIIcon-ArrowRight100 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); -} - -.spectrum-UIIcon-ArrowRight200 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); -} - -.spectrum-UIIcon-ArrowRight300 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); -} - -.spectrum-UIIcon-ArrowRight400 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); -} - -.spectrum-UIIcon-ArrowRight500 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); -} - -.spectrum-UIIcon-ArrowRight600 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); -} - -.spectrum-UIIcon-ArrowDown75 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown100 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown200 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown300 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown400 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown500 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowDown600 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); - transform: rotate(90deg); -} - -.spectrum-UIIcon-ArrowLeft75 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft100 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft200 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft300 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft400 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft500 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowLeft600 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); - transform: rotate(180deg); -} - -.spectrum-UIIcon-ArrowUp75 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-75); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp100 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-100); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp200 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-200); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp300 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-300); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp400 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-400); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp500 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-500); - transform: rotate(270deg); -} - -.spectrum-UIIcon-ArrowUp600 { - --spectrum-icon-size: var(--spectrum-arrow-icon-size-600); - transform: rotate(270deg); -} - -/* Checkmark */ -.spectrum-UIIcon-Checkmark50 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-50); -} - -.spectrum-UIIcon-Checkmark75 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-75); -} - -.spectrum-UIIcon-Checkmark100 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-100); -} - -.spectrum-UIIcon-Checkmark200 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-200); -} - -.spectrum-UIIcon-Checkmark300 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-300); -} - -.spectrum-UIIcon-Checkmark400 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-400); -} - -.spectrum-UIIcon-Checkmark500 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-500); -} - -.spectrum-UIIcon-Checkmark600 { - --spectrum-icon-size: var(--spectrum-checkmark-icon-size-600); -} - -/* Dash */ -.spectrum-UIIcon-Dash50 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-50); -} - -.spectrum-UIIcon-Dash75 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-75); -} - -.spectrum-UIIcon-Dash100 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-100); -} - -.spectrum-UIIcon-Dash200 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-200); -} - -.spectrum-UIIcon-Dash300 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-300); -} - -.spectrum-UIIcon-Dash400 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-400); -} - -.spectrum-UIIcon-Dash500 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-500); -} - -.spectrum-UIIcon-Dash600 { - --spectrum-icon-size: var(--spectrum-dash-icon-size-600); -} - -/* Cross */ -.spectrum-UIIcon-Cross75 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-75); -} - -.spectrum-UIIcon-Cross100 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-100); -} - -.spectrum-UIIcon-Cross200 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-200); -} - -.spectrum-UIIcon-Cross300 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-300); -} - -.spectrum-UIIcon-Cross400 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-400); -} - -.spectrum-UIIcon-Cross500 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-500); -} - -.spectrum-UIIcon-Cross600 { - --spectrum-icon-size: var(--spectrum-cross-icon-size-600); -} - -/* Corner Triangle */ -.spectrum-UIIcon-CornerTriangle75 { - --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-75); -} - -.spectrum-UIIcon-CornerTriangle100 { - --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-100); -} - -.spectrum-UIIcon-CornerTriangle200 { - --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-200); -} - -.spectrum-UIIcon-CornerTriangle300 { - --spectrum-icon-size: var(--spectrum-corner-triangle-icon-size-300); -} - -/* Asterisk */ -.spectrum-UIIcon-Asterisk75 { - --spectrum-icon-size: var(--spectrum-asterisk-icon-size-75); -} - -.spectrum-UIIcon-Asterisk100 { - --spectrum-icon-size: var(--spectrum-asterisk-icon-size-100); -} - -.spectrum-UIIcon-Asterisk200 { - --spectrum-icon-size: var(--spectrum-asterisk-icon-size-200); -} - -.spectrum-UIIcon-Asterisk300 { - --spectrum-icon-size: var(--spectrum-asterisk-icon-size-300); -} diff --git a/components/icon/workflow-icons.css b/components/icon/workflow-icons.css deleted file mode 100644 index 22c35deb803..00000000000 --- a/components/icon/workflow-icons.css +++ /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 - * - * 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-Icon { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-100); -} - -/* XXS icon size is not within the design spec and is planned to be deprecated in Spectrum 2. */ -.spectrum-Icon--sizeXXS { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-xxs); -} - -.spectrum-Icon--sizeXS { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-50); -} - -.spectrum-Icon--sizeS { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-75); -} - -.spectrum-Icon--sizeL { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-200); -} - -.spectrum-Icon--sizeXL { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-300); -} - -/* XXL icon size is not within the design spec and is planned to be deprecated in Spectrum 2. */ -.spectrum-Icon--sizeXXL { - --spectrum-icon-size: var(--spectrum-workflow-icon-size-xxl); -} - -.spectrum-Icon { - img, - svg { - inline-size: var(--spectrum-icon-inline-size); - block-size: var(--spectrum-icon-block-size); - } -} diff --git a/components/illustratedmessage/CHANGELOG.md b/components/illustratedmessage/CHANGELOG.md index 1c1c538cb0e..c4f254a9809 100644 --- a/components/illustratedmessage/CHANGELOG.md +++ b/components/illustratedmessage/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 8.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/typography@7.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/typography@7.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/typography@7.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/typography@7.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/typography@7.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/typography@7.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/typography@7.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/typography@7.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/typography@7.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/typography@7.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/typography@7.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/typography@7.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/typography@7.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/typography@7.0.0-s2-foundations.0 + ## 7.1.3 ### Patch Changes diff --git a/components/illustratedmessage/index.css b/components/illustratedmessage/index.css index 4663cd886aa..ae48a68291c 100644 --- a/components/illustratedmessage/index.css +++ b/components/illustratedmessage/index.css @@ -11,40 +11,7 @@ * 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); - - /* Illustration */ - --spectrum-illustrated-message-illustration-color: var(--spectrum-neutral-visual-color); - --spectrum-illustrated-message-illustration-accent-color: var(--spectrum-accent-visual-color); - - /* 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-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-color: var(--spectrum-body-color); - - /* 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); - } -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-IllustratedMessage { @@ -93,6 +60,7 @@ 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); + } .spectrum-IllustratedMessage-description { diff --git a/components/illustratedmessage/metadata/illustratedmessage.yml b/components/illustratedmessage/metadata/illustratedmessage.yml deleted file mode 100644 index 3760b7ba401..00000000000 --- a/components/illustratedmessage/metadata/illustratedmessage.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Illustrated message -description: 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. -SpectrumSiteSlug: https://spectrum.adobe.com/page/informational-illustrations/ -sections: - - name: Migration Guide - description: | - ### Removed Classes - `.spectrum-IllustratedMessage--cta` — The Standard variant currently provides the same styles. -examples: - - id: illustratedmessage-default - name: Standard - markup: | -
    - Asset 1 -

    Error 404: Page not found

    -

    This page isn't available. Try checking the URL or visit a different page.

    -
    - - id: illustratedmessage-default - name: Illustration Accent Color - description: To use the accent color, the class `.spectrum-IllustratedMessage-accent` can be added to element(s) within the illustration SVG. - markup: | -
    - -

    Drag and drop your file

    -

    Select a file from your computer.

    -
    diff --git a/components/illustratedmessage/package.json b/components/illustratedmessage/package.json index f9214c516b9..2147097cce6 100644 --- a/components/illustratedmessage/package.json +++ b/components/illustratedmessage/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/illustratedmessage", - "version": "7.1.3", + "version": "8.0.0-s2-foundations.13", "description": "The Spectrum CSS illustratedmessage component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/illustratedmessage/stories/template.js b/components/illustratedmessage/stories/template.js index 58b0a69076e..9d9f06852b9 100644 --- a/components/illustratedmessage/stories/template.js +++ b/components/illustratedmessage/stories/template.js @@ -4,6 +4,9 @@ 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-IllustratedMessage", @@ -11,34 +14,36 @@ export const Template = ({ description, customClasses = [], useAccentColor = false, -} = {}, context = {}) => html` -
    ({ ...a, [c]: true }), {}), - })} - > - ${illustrationSvgMarkup(useAccentColor)} - ${when(heading, () => - Typography({ - semantics: "heading", - "size": "m", - customClasses: [`${rootClass}-heading`], - content: [heading], - }, context) - )} - ${when(description, () => - Typography({ - semantics: "body", - "size": "s", - customClasses: [`${rootClass}-description`], - content: [ - ...description.map((c) => (typeof c === "function" ? c({}) : c)) - ], - }, context) - )} -
    -`; +} = {}, context = {}) => { + return html` +
    ({ ...a, [c]: true }), {}), + })} + > + ${illustrationSvgMarkup(useAccentColor)} + ${when(heading, () => + Typography({ + semantics: "heading", + "size": "m", + customClasses: [`${rootClass}-heading`], + content: [heading], + }, context) + )} + ${when(description, () => + Typography({ + semantics: "body", + "size": "s", + customClasses: [`${rootClass}-description`], + content: [ + ...description.map((c) => (typeof c === "function" ? c({}) : c)) + ], + }, context) + )} +
    + `; +}; const illustrationSvgMarkup = (withAccentColorClass = false) => html` + * + * 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/illustratedmessage/themes/spectrum-two.css b/components/illustratedmessage/themes/spectrum-two.css new file mode 100644 index 00000000000..792f05c6180 --- /dev/null +++ b/components/illustratedmessage/themes/spectrum-two.css @@ -0,0 +1,49 @@ +/*! + * 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 + * + * 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-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); + + /* Illustration */ + --spectrum-illustrated-message-illustration-color: var(--spectrum-neutral-visual-color); + --spectrum-illustrated-message-illustration-accent-color: var(--spectrum-accent-visual-color); + + /* 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-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-color: var(--spectrum-body-color); + + /* 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); + } + } +} diff --git a/components/illustratedmessage/themes/spectrum.css b/components/illustratedmessage/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/illustratedmessage/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/infieldbutton/CHANGELOG.md b/components/infieldbutton/CHANGELOG.md index 058d2e70791..114ebfb98f3 100644 --- a/components/infieldbutton/CHANGELOG.md +++ b/components/infieldbutton/CHANGELOG.md @@ -1,5 +1,181 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#3040](https://github.com/adobe/spectrum-css/pull/3040) [`cf2e737`](https://github.com/adobe/spectrum-css/commit/cf2e73743b2c3d43d4c51fceeabfb99fda1ac4b5) Thanks [@aramos-adobe](https://github.com/aramos-adobe)! - Migrating --mod to index.css from infield button, logic button and table components + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/infieldbutton/index.css b/components/infieldbutton/index.css index 82cd68d3a81..5f951982070 100644 --- a/components/infieldbutton/index.css +++ b/components/infieldbutton/index.css @@ -11,102 +11,13 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; -.spectrum-InfieldButton { - /* Medium size is the default */ - --spectrum-infield-button-height: var(--spectrum-component-height-100); - --spectrum-infield-button-width: var(--spectrum-component-height-100); - --spectrum-infield-button-stacked-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); - - --spectrum-infield-button-edge-to-fill: var(--spectrum-in-field-button-edge-to-fill); - --spectrum-infield-button-inner-edge-to-fill: var(--spectrum-in-field-button-stacked-inner-edge-to-fill); - --spectrum-infield-button-fill-padding: 0px; - --spectrum-infield-button-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium); - --spectrum-infield-button-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); - --spectrum-infield-button-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium); - - --spectrum-infield-button-animation-duration: var(--spectrum-animation-duration-100); - - --spectrum-infield-button-icon-color: var(--spectrum-neutral-content-color-default); - --spectrum-infield-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-infield-button-icon-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-infield-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-infield-button-fill-justify-content: center; - - &:disabled { - --mod-infield-button-background-color: var(--mod-infield-button-background-color-disabled, var(--spectrum-disabled-background-color)); - --mod-infield-button-background-color-hover: var(--mod-infield-button-background-color-hover-disabled, var(--spectrum-disabled-background-color)); - --mod-infield-button-background-color-down: var(--mod-infield-button-background-color-down-disabled, var(--spectrum-disabled-background-color)); - --mod-infield-button-border-color: var(--mod-infield-button-border-color-disabled, var(--spectrum-disabled-background-color)); - - --mod-infield-button-icon-color: var(--mod-infield-button-icon-color-disabled, var(--spectrum-disabled-content-color)); - --mod-infield-button-icon-color-hover: var(--mod-infield-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); - --mod-infield-button-icon-color-down: var(--mod-infield-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); - --mod-infield-button-icon-color-key-focus: var(--mod-infield-button-icon-color-key-focus-disabled, var(--spectrum-disabled-content-color)); - } - - &.spectrum-InfieldButton--sizeS { - --spectrum-infield-button-height: var(--spectrum-component-height-75); - --spectrum-infield-button-width: var(--spectrum-component-height-75); - --spectrum-infield-button-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-small); - --spectrum-infield-button-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); - --spectrum-infield-button-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small); - } - - &.spectrum-InfieldButton--sizeL { - --spectrum-infield-button-height: var(--spectrum-component-height-200); - --spectrum-infield-button-width: var(--spectrum-component-height-200); - --spectrum-infield-button-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-large); - --spectrum-infield-button-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); - --spectrum-infield-button-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large); - } - - &.spectrum-InfieldButton--sizeXL { - --spectrum-infield-button-height: var(--spectrum-component-height-300); - --spectrum-infield-button-width: var(--spectrum-component-height-300); - --spectrum-infield-button-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large); - --spectrum-infield-button-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); - --spectrum-infield-button-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large); - } - - &.spectrum-InfieldButton--top, - &.spectrum-InfieldButton--bottom { - --mod-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-medium)); - - &.spectrum-InfieldButton--sizeS { - --mod-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-small)); - } - - &.spectrum-InfieldButton--sizeL { - --mod-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-large)); - } - - &.spectrum-InfieldButton--sizeXL { - --mod-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-extra-large)); - } - } - - &.spectrum-InfieldButton--quiet { - --mod-infield-button-background-color: var(--mod-infield-button-background-color-quiet, transparent); - --mod-infield-button-background-color-hover: var(--mod-infield-button-background-color-hover-quiet, transparent); - --mod-infield-button-background-color-down: var(--mod-infield-button-background-color-down-quiet, transparent); - --mod-infield-button-background-color-key-focus: var(--mod-infield-button-background-color-key-focus-quiet, transparent); - - --mod-infield-border-color: var(--mod-infield-border-color-quiet, transparent); - --mod-infield-button-border-width: var(--mod-infield-button-border-width-quiet, 0); - - &:disabled { - --mod-infield-button-background-color: var(--mod-infield-button-background-color-quiet-disabled, transparent); - --mod-infield-button-border-color: var(--mod-infield-button-border-color-quiet-disabled, transparent); - } - } - - &:hover:not(:disabled), - &:active:not(:disabled), - &:focus-visible:not(:disabled) { - @media (forced-colors: active) { +@media (forced-colors: active) { + .spectrum-InfieldButton { + &:hover:not(:disabled), + &:active:not(:disabled), + &:focus-visible:not(:disabled) { --highcontrast-infield-button-border-color: Highlight; } } @@ -161,7 +72,49 @@ } } + &.spectrum-InfieldButton--top, + &.spectrum-InfieldButton--bottom { + --spectrum-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-medium)); + + &.spectrum-InfieldButton--sizeS { + --spectrum-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-small)); + } + + &.spectrum-InfieldButton--sizeL { + --spectrum-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-large)); + } + + &.spectrum-InfieldButton--sizeXL { + --spectrum-infield-button-width: var(--mod-infield-button-width-stacked, var(--spectrum-in-field-button-width-stacked-extra-large)); + } + } + + &.spectrum-InfieldButton--quiet { + --spectrum-infield-button-background-color: var(--mod-infield-button-background-color-quiet, transparent); + --spectrum-infield-button-background-color-hover: var(--mod-infield-button-background-color-hover-quiet, transparent); + --spectrum-infield-button-background-color-down: var(--mod-infield-button-background-color-down-quiet, transparent); + --spectrum-infield-button-background-color-key-focus: var(--mod-infield-button-background-color-key-focus-quiet, transparent); + + --spectrum-infield-border-color: var(--mod-infield-border-color-quiet, transparent); + --spectrum-infield-button-border-width: var(--mod-infield-button-border-width-quiet, 0); + + &:disabled { + --spectrum-infield-button-background-color: var(--mod-infield-button-background-color-quiet-disabled, transparent); + --spectrum-infield-button-border-color: var(--mod-infield-button-border-color-quiet-disabled, transparent); + } + } + &:disabled { + --spectrum-infield-button-background-color: var(--mod-infield-button-background-color-disabled, var(--spectrum-disabled-background-color)); + --spectrum-infield-button-background-color-hover: var(--mod-infield-button-background-color-hover-disabled, var(--spectrum-disabled-background-color)); + --spectrum-infield-button-background-color-down: var(--mod-infield-button-background-color-down-disabled, var(--spectrum-disabled-background-color)); + --spectrum-infield-button-border-color: var(--mod-infield-button-border-color-disabled, var(--spectrum-disabled-background-color)); + + --spectrum-infield-button-icon-color: var(--mod-infield-button-icon-color-disabled, var(--spectrum-disabled-content-color)); + --spectrum-infield-button-icon-color-hover: var(--mod-infield-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); + --spectrum-infield-button-icon-color-down: var(--mod-infield-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); + --spectrum-infield-button-icon-color-key-focus: var(--mod-infield-button-icon-color-key-focus-disabled, var(--spectrum-disabled-content-color)); + cursor: auto; } @@ -203,8 +156,6 @@ display: flex; align-items: center; justify-content: var(--mod-infield-button-fill-justify-content, var(--spectrum-infield-button-fill-justify-content)); - - transition: border-color var(--spectrum-global-animation-duration-100) ease-in-out; } /* Stacked in-field buttons */ diff --git a/components/infieldbutton/metadata/infieldbutton.yml b/components/infieldbutton/metadata/infieldbutton.yml deleted file mode 100644 index 4fff0bdff64..00000000000 --- a/components/infieldbutton/metadata/infieldbutton.yml +++ /dev/null @@ -1,220 +0,0 @@ -name: In-field button -status: Contribution -SpectrumSiteSlug: https://spectrum.adobe.com/page/picker/ -sections: - - name: Migration Guide - description: | - ### In-field button uses the [Quiet](infieldbutton.html#quiet) variant instead of loudness levels. - - The Loudness level classes, `.spectrum-InfieldButton--low`, `.spectrum-InfieldButton--medium`, and `.spectrum-InfieldButton--high`, have been removed. - - - Use the base class, `.spectrum-InfieldButton`, to apply the default button styles. The default styles correspond to what was previously the Loudness - High variant, which used the class `.spectrum-InfieldButton--high`. - - Use the modifier class, `spectrum-InfieldButton--quiet`, to apply the quiet variant styles. Quiet corresponds to what was previously the Loudness - Low variant, which used the class `.spectrum-InfieldButton--low` class. - - The Loudness - Medium variant has been removed, so there is no equivalent. - - ### Stacked in-field buttons - - In order to create the stacked In-field buttons, give the first button a class of `spectrum-InfieldButton--top` and the second a class of `spectrum-InfieldButton--bottom` - -examples: - - id: infieldbutton-sizing - name: Sizing - markup: | -
    -
    -

    S

    - -
    - -
    -

    M

    - -
    - -
    -

    L

    - -
    - -
    -

    XL

    - -
    -
    - - - id: infieldbutton-quiet - name: Quiet - markup: | -
    -
    - -
    -
    - - - id: infieldbutton-position - name: Position - markup: | -
    -
    -

    Start

    - -
    -
    -

    End

    - -
    -
    - - - id: infieldbutton-disabled - name: Disabled - markup: | - - - - id: infieldbutton-stacked - name: Stacked - markup: | -
    -
    -

    M

    - - -
    - - - - id: infieldbutton-stacked - name: Stacked - markup: | -
    -
    -

    S

    - - -
    - -
    -

    M

    - - -
    - -
    -

    L

    - - -
    - -
    -

    XL

    - - -
    -
    diff --git a/components/infieldbutton/metadata/metadata.json b/components/infieldbutton/metadata/metadata.json index 68851e8f6d8..ecb6eae18bd 100644 --- a/components/infieldbutton/metadata/metadata.json +++ b/components/infieldbutton/metadata/metadata.json @@ -38,7 +38,6 @@ ".spectrum-InfieldButton:hover:not(:disabled)" ], "modifiers": [ - "--mod-infield-border-color", "--mod-infield-border-color-quiet", "--mod-infield-button-background-color", "--mod-infield-button-background-color-disabled", @@ -137,31 +136,18 @@ "--spectrum-component-height-300", "--spectrum-component-height-75", "--spectrum-corner-radius-100", - "--spectrum-corner-radius-75", "--spectrum-disabled-background-color", "--spectrum-disabled-content-color", - "--spectrum-global-animation-duration-100", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-400", - "--spectrum-gray-75", + "--spectrum-gray-50", + "--spectrum-infield-border-color", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", "--spectrum-neutral-content-color-hover", "--spectrum-neutral-content-color-key-focus" ], - "system-theme": [ - "--system-spectrum-infieldbutton-spectrum-infield-button-background-color", - "--system-spectrum-infieldbutton-spectrum-infield-button-background-color-down", - "--system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover", - "--system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus", - "--system-spectrum-infieldbutton-spectrum-infield-button-border-color", - "--system-spectrum-infieldbutton-spectrum-infield-button-border-radius", - "--system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset", - "--system-spectrum-infieldbutton-spectrum-infield-button-border-width", - "--system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start", - "--system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start" - ], + "system-theme": [], "passthroughs": [], "high-contrast": ["--highcontrast-infield-button-border-color"] } diff --git a/components/infieldbutton/metadata/mods.md b/components/infieldbutton/metadata/mods.md index b9732dd92fc..f81a9c2af65 100644 --- a/components/infieldbutton/metadata/mods.md +++ b/components/infieldbutton/metadata/mods.md @@ -1,6 +1,5 @@ | Modifiable custom properties | | ------------------------------------------------------------- | -| `--mod-infield-border-color` | | `--mod-infield-border-color-quiet` | | `--mod-infield-button-background-color` | | `--mod-infield-button-background-color-disabled` | diff --git a/components/infieldbutton/package.json b/components/infieldbutton/package.json index 5cb36e1429b..6b326970188 100644 --- a/components/infieldbutton/package.json +++ b/components/infieldbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/infieldbutton", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS infield button component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/infieldbutton/stories/template.js b/components/infieldbutton/stories/template.js index 4a329934732..54fa61e9afa 100644 --- a/components/infieldbutton/stories/template.js +++ b/components/infieldbutton/stories/template.js @@ -4,25 +4,25 @@ 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-InfieldButton", - customClasses = [], - size = "m", - position, - isQuiet, - iconName = "Add", - isDisabled, - isInvalid, - isHovered, - isActive, - isFocused, - isStacked, - tabIndex = 0, - } = {}, - context = {}, -) => { +export const Template = ({ + rootClass = "spectrum-InfieldButton", + customClasses = [], + size = "m", + position, + isQuiet, + iconName = "Add", + isDisabled, + isInvalid, + isHovered, + isActive, + isFocused, + isStacked, + tabIndex = 0, +} = {}, context = {}) => { return isStacked ? html` -
    -
    diff --git a/components/inlinealert/package.json b/components/inlinealert/package.json index d14a264d1fb..8e71b56d518 100644 --- a/components/inlinealert/package.json +++ b/components/inlinealert/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/inlinealert", - "version": "8.1.3", + "version": "9.0.0-s2-foundations.13", "description": "The Spectrum CSS in-line alert component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/inlinealert/stories/template.js b/components/inlinealert/stories/template.js index df1dc4149a2..dff95cb1d7b 100644 --- a/components/inlinealert/stories/template.js +++ b/components/inlinealert/stories/template.js @@ -5,6 +5,9 @@ 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-InLineAlert", diff --git a/components/inlinealert/themes/express.css b/components/inlinealert/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/inlinealert/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/inlinealert/themes/spectrum-two.css b/components/inlinealert/themes/spectrum-two.css new file mode 100644 index 00000000000..cb25df52527 --- /dev/null +++ b/components/inlinealert/themes/spectrum-two.css @@ -0,0 +1,51 @@ +/*! + * 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 + * + * 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-InLineAlert { + /* Font */ + --spectrum-inlinealert-heading-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-inlinealert-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --spectrum-inlinealert-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --spectrum-inlinealert-heading-font-size: var(--spectrum-heading-size-xxs); + --spectrum-inlinealert-heading-line-height: var(--spectrum-heading-line-height); + + --spectrum-inlinealert-content-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-inlinealert-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --spectrum-inlinealert-content-font-style: var(--spectrum-body-sans-serif-font-style); + --spectrum-inlinealert-content-font-size: var(--spectrum-body-size-s); + --spectrum-inlinealert-content-line-height: var(--spectrum-body-line-height); + + /* Size */ + --spectrum-inlinealert-border-width: var(--spectrum-border-width-200); + --spectrum-inlinealert-border-radius: var(--spectrum-corner-radius-100); + --spectrum-inlinealert-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-inlinealert-min-inline-size: var(--spectrum-in-line-alert-minimum-width); + --spectrum-inlinealert-header-min-block-size: var(--spectrum-component-height-50); + + /* Spacing */ + --spectrum-inlinealert-spacing-edge-to-text: var(--spectrum-spacing-400); + --spectrum-inlinealert-spacing-header-to-icon: var(--spectrum-spacing-400); + --spectrum-inlinealert-spacing-header-content-button: var(--spectrum-spacing-300); + + /* Color */ + --spectrum-inlinealert-background-color: var(--spectrum-background-layer-2-color); + --spectrum-inlinealert-border-and-icon-color: var(--spectrum-neutral-visual-color); + --spectrum-inlinealert-header-color: var(--spectrum-heading-color); + --spectrum-inlinealert-content-color: var(--spectrum-body-color); + --spectrum-inlinealert-border-and-icon-color-info: var(--spectrum-informative-visual-color); + --spectrum-inlinealert-border-and-icon-color-positive: var(--spectrum-positive-visual-color); + --spectrum-inlinealert-border-and-icon-color-notice: var(--spectrum-notice-visual-color); + --spectrum-inlinealert-border-and-icon-color-negative: var(--spectrum-negative-visual-color); + } +} diff --git a/components/inlinealert/themes/spectrum.css b/components/inlinealert/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/inlinealert/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/link/CHANGELOG.md b/components/link/CHANGELOG.md index 4c693e168f1..a138f0d4851 100644 --- a/components/link/CHANGELOG.md +++ b/components/link/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/link/index.css b/components/link/index.css index 08ada8cfbf1..508d040afe1 100644 --- a/components/link/index.css +++ b/components/link/index.css @@ -11,25 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Link { - --spectrum-link-animation-duration: var(--spectrum-animation-duration-100); - - /* Colors */ - /* Primary */ - --spectrum-link-text-color-primary-default: var(--spectrum-accent-content-color-default); - --spectrum-link-text-color-primary-hover: var(--spectrum-accent-content-color-hover); - --spectrum-link-text-color-primary-active: var(--spectrum-accent-content-color-down); - --spectrum-link-text-color-primary-focus: var(--spectrum-accent-content-color-key-focus); - - /* Secondary */ - --spectrum-link-text-color-secondary-default: var(--spectrum-neutral-content-color-default); - --spectrum-link-text-color-secondary-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-link-text-color-secondary-active: var(--spectrum-neutral-content-color-down); - --spectrum-link-text-color-secondary-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-link-text-color-white: var(--spectrum-white); - --spectrum-link-text-color-black: var(--spectrum-black); -} +@import "./themes/spectrum-two.css"; /* Windows high contrast mode */ @media (forced-colors: active) { diff --git a/components/link/metadata/link.yml b/components/link/metadata/link.yml deleted file mode 100644 index 58bc1ccb4c3..00000000000 --- a/components/link/metadata/link.yml +++ /dev/null @@ -1,75 +0,0 @@ -id: link-primary-m -name: Link -SpectrumSiteSlug: https://spectrum.adobe.com/page/link/ -status: Verified -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Subtle variant - Subtle variant was removed. Please use Quiet. -examples: - - id: link-primary - name: Primary - status: Verified - markup: | - Link using spectrum-Link - - id: link-secondary - name: Secondary - status: Verified - markup: | - Link using spectrum-Link--secondary - - - id: link-static-white - name: Static White - status: Verified - markup: | -
    -

    - Hello, this is my spectrum-Link--staticWhite. This is just filler text, but if you keep reading maybe something good will happen. -

    -
    - - - id: link-static-black - name: Static Black - status: Verified - markup: | -
    -

    - Hello, this is my spectrum-Link--staticBlack. This is just filler text, but if you keep reading maybe something good will happen. -

    -
    - - - id: link-quiet-primary-m - name: Quiet (Primary) - status: Verified - markup: | -

    This uses spectrum-Link--quiet.

    - - - id: link-quiet-secondary-m - name: Quiet (Secondary) - status: Verified - markup: | -

    This uses spectrum-Link--quiet and spectrum-Link--secondary.

    - - - id: link-quiet-static-white - name: Quiet (Static White) - status: Verified - markup: | -
    -

    - Hello, this is my spectrum-Link--staticWhite and spectrum-Link--quiet. This is just filler text, but if you keep reading maybe something good will happen. -

    -
    - - - id: link-quiet-static-black - name: Quiet (Static Black) - status: Verified - markup: | -
    -

    - Hello, this is my spectrum-Link--staticBlack and spectrum-Link--quiet. This is just filler text, but if you keep reading maybe something good will happen. -

    -
    diff --git a/components/link/package.json b/components/link/package.json index 7320f95ae8e..61dce9c714f 100644 --- a/components/link/package.json +++ b/components/link/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/link", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS link component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/link/stories/link.stories.js b/components/link/stories/link.stories.js index 5fc8782e289..da92c01ca44 100644 --- a/components/link/stories/link.stories.js +++ b/components/link/stories/link.stories.js @@ -144,9 +144,7 @@ StaticWhite.args = { }; StaticWhite.tags = ["!dev"]; StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; /** @@ -160,9 +158,7 @@ StaticBlack.args = { }; StaticBlack.tags = ["!dev"]; StaticBlack.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; export const QuietStaticWhite = Default.bind({}); @@ -174,9 +170,7 @@ QuietStaticWhite.args = { }; QuietStaticWhite.tags = ["!dev"]; QuietStaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; export const QuietStaticBlack = Default.bind({}); @@ -188,9 +182,7 @@ QuietStaticBlack.args = { }; QuietStaticBlack.tags = ["!dev"]; QuietStaticBlack.parameters = { - chromatic: { - modes: disableDefaultModes, - }, + chromatic: { disableSnapshot: true }, }; // ********* VRT ONLY ********* // diff --git a/components/link/stories/link.test.js b/components/link/stories/link.test.js index 59b47b589c4..c28a4a1f9a0 100644 --- a/components/link/stories/link.test.js +++ b/components/link/stories/link.test.js @@ -20,6 +20,14 @@ export const LinkGroup = Variants({ isQuiet: true, variant: "secondary", }, + { + testHeading: "Static black", + staticColor: "black", + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [ { diff --git a/components/link/stories/template.js b/components/link/stories/template.js index 2c4cd925c15..e999236a81f 100644 --- a/components/link/stories/template.js +++ b/components/link/stories/template.js @@ -5,6 +5,9 @@ import { ifDefined } from "lit/directives/if-defined.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-Link", @@ -19,31 +22,33 @@ export const Template = ({ isVisited = false, id = getRandomId("link"), customClasses = [], -} = {}) => html` - ({ ...a, [c]: true }), {}), - })} - id=${ifDefined(id)} - href=${ifDefined(url)} - > - ${text} - -`; +} = {}) => { + return html` + ({ ...a, [c]: true }), {}), + })} + id=${ifDefined(id)} + href=${ifDefined(url)} + > + ${text} + + `; +}; export const TemplateWithFillerText = (args, context) => html`
    Hello, this is a - ${Template({...args, context})} + ${Template(args, context)} . This is just filler text, but if you keep reading maybe something good will happen.
    `; diff --git a/components/link/themes/express.css b/components/link/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/link/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/link/themes/spectrum-two.css b/components/link/themes/spectrum-two.css new file mode 100644 index 00000000000..e5e6a28245f --- /dev/null +++ b/components/link/themes/spectrum-two.css @@ -0,0 +1,34 @@ +/*! + * 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 + * + * 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-Link { + --spectrum-link-animation-duration: var(--spectrum-animation-duration-100); + + /* Colors */ + /* Primary */ + --spectrum-link-text-color-primary-default: var(--spectrum-accent-content-color-default); + --spectrum-link-text-color-primary-hover: var(--spectrum-accent-content-color-hover); + --spectrum-link-text-color-primary-active: var(--spectrum-accent-content-color-down); + --spectrum-link-text-color-primary-focus: var(--spectrum-accent-content-color-key-focus); + + /* Secondary */ + --spectrum-link-text-color-secondary-default: var(--spectrum-neutral-content-color-default); + --spectrum-link-text-color-secondary-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-link-text-color-secondary-active: var(--spectrum-neutral-content-color-down); + --spectrum-link-text-color-secondary-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-link-text-color-white: var(--spectrum-white); + --spectrum-link-text-color-black: var(--spectrum-black); + } +} diff --git a/components/link/themes/spectrum.css b/components/link/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/link/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/logicbutton/CHANGELOG.md b/components/logicbutton/CHANGELOG.md index a119747c390..0f30597f683 100644 --- a/components/logicbutton/CHANGELOG.md +++ b/components/logicbutton/CHANGELOG.md @@ -1,5 +1,167 @@ # Change Log +## 5.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.13 + +### Major Changes + +- [#3040](https://github.com/adobe/spectrum-css/pull/3040) [`cf2e737`](https://github.com/adobe/spectrum-css/commit/cf2e73743b2c3d43d4c51fceeabfb99fda1ac4b5) Thanks [@aramos-adobe](https://github.com/aramos-adobe)! - Migrating --mod to index.css from infield button, logic button and table components + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 4.1.3 ### Patch Changes diff --git a/components/logicbutton/index.css b/components/logicbutton/index.css index bbcdde6513c..c78184aa5c9 100644 --- a/components/logicbutton/index.css +++ b/components/logicbutton/index.css @@ -12,41 +12,7 @@ */ @import "@spectrum-css/commons/basebutton.css"; - -.spectrum-LogicButton { - --spectrum-logic-button-height: 24px; - --spectrum-logic-button-padding: var(--spectrum-component-edge-to-text-50); - --spectrum-logic-button-font-size: var(--spectrum-font-size-100); - --spectrum-logic-button-font-weight: var(--spectrum-bold-font-weight); - - --spectrum-logic-button-border-width: var(--spectrum-border-width-200); - --spectrum-logic-button-border-radius: var(--spectrum-corner-radius-100); - - --spectrum-logic-button-focus-indicator-width: var(--spectrum-focus-indicator-thickness); - --spectrum-logic-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-logic-button-focus-indicator-color: var(--spectrum-focus-indicator-color); - - --spectrum-logic-button-and-text-color: var(--spectrum-white); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); - - --spectrum-logic-button-or-text-color: var(--spectrum-white); - - &:disabled, - &.is-disabled { - --mod-logic-button-and-background-color: var(--mod-logic-button-and-background-color-disabled, var(--spectrum-gray-200)); - --mod-logic-button-and-border-color: var(--mod-logic-button-and-border-color-disabled, var(--spectrum-gray-200)); - --mod-logic-button-and-text-color: var(--mod-logic-button-and-text-color-disabled, var(--spectrum-gray-500)); - --mod-logic-button-and-background-color-hover: var(--mod-logic-button-and-background-color-hover-disabled, var(--spectrum-gray-200)); - --mod-logic-button-and-border-color-hover: var(--mod-logic-button-and-border-color-hover-disabled, var(--spectrum-gray-200)); - - --mod-logic-button-or-background-color: var(--mod-logic-button-or-background-color-disabled, var(--spectrum-gray-200)); - --mod-logic-button-or-border-color: var(--mod-logic-button-or-border-color-disabled, var(--spectrum-gray-200)); - --mod-logic-button-or-text-color: var(--mod-logic-button-or-text-color-disabled, var(--spectrum-gray-500)); - --mod-logic-button-or-background-color-hover: var(--mod-logic-button-or-background-color-hover-disabled, var(--spectrum-gray-200)); - --mod-logic-button-or-border-color-hover: var(--mod-logic-button-or-border-color-hover-disabled, var(--spectrum-gray-200)); - } -} +@import "./themes/spectrum-two.css"; .spectrum-LogicButton { @extend %spectrum-BaseButton; @@ -76,10 +42,25 @@ box-shadow: 0 0 0 var(--mod-logic-button-focus-indicator-width, var(--spectrum-logic-button-focus-indicator-width)) var(--highcontrast-logic-button-focus-indicator-color, var(--mod-logic-button-focus-indicator-color, var(--spectrum-logic-button-focus-indicator-color))); } } + + &:disabled, + &.is-disabled { + --mod-logic-button-and-background-color: var(--mod-logic-button-and-background-color-disabled, var(--spectrum-logic-button-and-background-color-default-disabled)); + --mod-logic-button-and-border-color: var(--mod-logic-button-and-border-color-disabled, var(--spectrum-logic-button-and-border-color-disabled)); + --mod-logic-button-and-text-color: var(--mod-logic-button-and-text-color-disabled, var(--spectrum-logic-button-and-text-color-disabled)); + --mod-logic-button-and-background-color-hover: var(--mod-logic-button-and-background-color-hover-disabled, var(--spectrum-logic-button-and-background-color-hover-disabled)); + --mod-logic-button-and-border-color-hover: var(--mod-logic-button-and-border-color-hover-disabled, var(--spectrum-logic-button-and-border-color-hover-disabled)); + + --mod-logic-button-or-background-color: var(--mod-logic-button-or-background-color-disabled, var(--spectrum-logic-button-or-background-color-disabled)); + --mod-logic-button-or-border-color: var(--mod-logic-button-or-border-color-disabled, var(--spectrum-logic-button-or-border-color-disabled)); + --mod-logic-button-or-text-color: var(--mod-logic-button-or-text-color-disabled, var(--spectrum-logic-button-or-text-color-disabled)); + --mod-logic-button-or-background-color-hover: var(--mod-logic-button-or-background-color-hover-disabled, var(--spectrum-logic-button-or-background-color-hover-disabled)); + --mod-logic-button-or-border-color-hover: var(--mod-logic-button-or-border-color-hover-disabled, var(--spectrum-logic-button-or-border-color-hover-disabled)); + } } .spectrum-LogicButton--and { - background-color: var(--highcontrast-logic-button-and-background-color, var(--mod-logic-button-and-background-color, var(--spectrum-logic-button-and-background-color))); + background-color: var(--highcontrast-logic-button-and-background-color, var(--mod-logic-button-and-background-color, var(--spectrum-logic-button-and-background-color-default))); border-color: var(--highcontrast-logic-button-and-border-color, var(--mod-logic-button-and-border-color, var(--spectrum-logic-button-and-border-color))); color: var(--highcontrast-logic-button-and-text-color, var(--mod-logic-button-and-text-color, var(--spectrum-logic-button-and-text-color))); @@ -103,10 +84,22 @@ @media (forced-colors: active) { .spectrum-LogicButton::after { --highcontrast-logic-button-focus-indicator-color: Highlight; + forced-color-adjust: none; } .spectrum-LogicButton { + --highcontrast-logic-button-and-background-color: ButtonFace; + --highcontrast-logic-button-and-background-color-hover: ButtonFace; + --highcontrast-logic-button-and-border-color: ButtonText; + --highcontrast-logic-button-and-border-color-hover: Highlight; + --highcontrast-logic-button-and-text-color: ButtonText; + --highcontrast-logic-button-or-background-color: ButtonFace; + --highcontrast-logic-button-or-background-color-hover: ButtonFace; + --highcontrast-logic-button-or-border-color: ButtonText; + --highcontrast-logic-button-or-border-color-hover: Highlight; + --highcontrast-logic-button-or-text-color: ButtonText; + forced-color-adjust: none; &:disabled, @@ -118,16 +111,5 @@ --highcontrast-logic-button-or-border-color: GrayText; --highcontrast-logic-button-or-text-color: GrayText; } - - --highcontrast-logic-button-and-background-color: ButtonFace; - --highcontrast-logic-button-and-background-color-hover: ButtonFace; - --highcontrast-logic-button-and-border-color: ButtonText; - --highcontrast-logic-button-and-border-color-hover: Highlight; - --highcontrast-logic-button-and-text-color: ButtonText; - --highcontrast-logic-button-or-background-color: ButtonFace; - --highcontrast-logic-button-or-background-color-hover: ButtonFace; - --highcontrast-logic-button-or-border-color: ButtonText; - --highcontrast-logic-button-or-border-color-hover: Highlight; - --highcontrast-logic-button-or-text-color: ButtonText; } } diff --git a/components/logicbutton/metadata/logicbutton.yml b/components/logicbutton/metadata/logicbutton.yml deleted file mode 100644 index f8dba482fc8..00000000000 --- a/components/logicbutton/metadata/logicbutton.yml +++ /dev/null @@ -1,19 +0,0 @@ -id: logicbutton-and -name: Logic button -description: A LogicButton displays an operator within a boolean logic sequence. -sections: - - name: Migration Guide - description: | - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: logicbutton-and - name: And - markup: | - - - - id: logicbutton-or - name: Or - markup: | - - diff --git a/components/logicbutton/metadata/metadata.json b/components/logicbutton/metadata/metadata.json index 36af6ae9a7a..a8beede92ff 100644 --- a/components/logicbutton/metadata/metadata.json +++ b/components/logicbutton/metadata/metadata.json @@ -51,10 +51,16 @@ ], "component": [ "--spectrum-logic-button-and-background-color", + "--spectrum-logic-button-and-background-color-default", + "--spectrum-logic-button-and-background-color-default-disabled", "--spectrum-logic-button-and-background-color-hover", + "--spectrum-logic-button-and-background-color-hover-disabled", "--spectrum-logic-button-and-border-color", + "--spectrum-logic-button-and-border-color-disabled", "--spectrum-logic-button-and-border-color-hover", + "--spectrum-logic-button-and-border-color-hover-disabled", "--spectrum-logic-button-and-text-color", + "--spectrum-logic-button-and-text-color-disabled", "--spectrum-logic-button-border-radius", "--spectrum-logic-button-border-width", "--spectrum-logic-button-focus-indicator-color", @@ -64,10 +70,15 @@ "--spectrum-logic-button-font-weight", "--spectrum-logic-button-height", "--spectrum-logic-button-or-background-color", + "--spectrum-logic-button-or-background-color-disabled", "--spectrum-logic-button-or-background-color-hover", + "--spectrum-logic-button-or-background-color-hover-disabled", "--spectrum-logic-button-or-border-color", + "--spectrum-logic-button-or-border-color-disabled", "--spectrum-logic-button-or-border-color-hover", + "--spectrum-logic-button-or-border-color-hover-disabled", "--spectrum-logic-button-or-text-color", + "--spectrum-logic-button-or-text-color-disabled", "--spectrum-logic-button-padding" ], "global": [ @@ -81,7 +92,7 @@ "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", "--spectrum-font-size-100", - "--spectrum-gray-200", + "--spectrum-gray-100", "--spectrum-gray-500", "--spectrum-line-height-100", "--spectrum-sans-font-family-stack", diff --git a/components/logicbutton/package.json b/components/logicbutton/package.json index 3ff22f27461..46c50e80902 100644 --- a/components/logicbutton/package.json +++ b/components/logicbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/logicbutton", - "version": "4.1.3", + "version": "5.0.0-s2-foundations.14", "description": "The Spectrum CSS logicbutton component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/logicbutton/stories/template.js b/components/logicbutton/stories/template.js index 889eda68e38..5b0730616ef 100644 --- a/components/logicbutton/stories/template.js +++ b/components/logicbutton/stories/template.js @@ -2,28 +2,33 @@ 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", customClasses = [], variant = "and", isDisabled = false, -} = {}) => html` - -`; +} = {}) => { + return html` + + `; +}; export const VariantGroup = (args, context) => html` ${Template({...args}, context)} diff --git a/components/logicbutton/themes/express.css b/components/logicbutton/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/logicbutton/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..89d8597a5a5 --- /dev/null +++ b/components/logicbutton/themes/spectrum-two.css @@ -0,0 +1,47 @@ +/*! + * 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 + * + * 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-height: 24px; + --spectrum-logic-button-padding: var(--spectrum-component-edge-to-text-50); + --spectrum-logic-button-font-size: var(--spectrum-font-size-100); + --spectrum-logic-button-font-weight: var(--spectrum-bold-font-weight); + + --spectrum-logic-button-border-width: var(--spectrum-border-width-200); + --spectrum-logic-button-border-radius: var(--spectrum-corner-radius-100); + + --spectrum-logic-button-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --spectrum-logic-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-logic-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-logic-button-and-text-color: var(--spectrum-white); + --spectrum-logic-button-and-background-color-default: var(--spectrum-logic-button-and-background-color); + --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); + --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); + + --spectrum-logic-button-or-text-color: var(--spectrum-white); + + --spectrum-logic-button-and-background-color-default-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-and-border-color-disabled: var(--spectrum-gray-100); + --spectrum-logic-button-and-text-color-disabled: var(--spectrum-gray-500); + --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-text-color-disabled: var(--spectrum-gray-500); + --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 new file mode 100644 index 00000000000..3265830b412 --- /dev/null +++ b/components/logicbutton/themes/spectrum.css @@ -0,0 +1,31 @@ +/*! + * 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 + * + * 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-default-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 ae72deefcb2..c6ecb352039 100644 --- a/components/menu/CHANGELOG.md +++ b/components/menu/CHANGELOG.md @@ -1,5 +1,231 @@ # Change Log +## 8.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/switch@6.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tray@4.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/switch@6.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tray@4.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/switch@6.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tray@4.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/switch@6.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tray@4.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/switch@6.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tray@4.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/switch@6.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tray@4.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/switch@6.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tray@4.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/switch@6.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + - @spectrum-css/tray@4.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/switch@6.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tray@4.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/switch@6.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tray@4.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/switch@6.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tray@4.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/switch@6.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tray@4.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/switch@6.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tray@4.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/switch@6.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + - @spectrum-css/tray@4.0.0-s2-foundations.0 + ## 7.1.7 ### Patch Changes diff --git a/components/menu/index.css b/components/menu/index.css index ef81aa6c6fa..00c5dc540a2 100644 --- a/components/menu/index.css +++ b/components/menu/index.css @@ -11,176 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Menu { - --spectrum-menu-item-min-height: var(--spectrum-component-height-100); - --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-100); - --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-100); - --spectrum-menu-item-label-font-size: var(--spectrum-font-size-100); - --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-100); - - --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); - --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); - - --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-100); - - --spectrum-menu-item-description-font-size: var(--spectrum-font-size-75); - - --spectrum-menu-section-header-font-size: var(--spectrum-font-size-100); - --spectrum-menu-section-header-min-width: var(--spectrum-component-height-100); - - --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); - - --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); - --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); - --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); - - --spectrum-menu-item-top-to-action: var(--spectrum-spacing-50); - --spectrum-menu-item-top-to-checkbox: var(--spectrum-spacing-50); - - --spectrum-menu-item-label-line-height: var(--spectrum-line-height-100); - --spectrum-menu-item-label-line-height-cjk: var(--spectrum-cjk-line-height-100); - --spectrum-menu-item-label-to-description-spacing: var(--spectrum-menu-item-label-to-description); - --spectrum-menu-item-focus-indicator-width: var(--spectrum-border-width-200); - --spectrum-menu-item-focus-indicator-color: var(--spectrum-blue-800); - --spectrum-menu-item-label-to-value-area-min-spacing: var(--spectrum-spacing-100); - - --spectrum-menu-item-label-content-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-menu-item-label-content-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-menu-item-label-content-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-menu-item-label-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-menu-item-label-icon-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-menu-item-label-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-menu-item-label-icon-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-menu-item-label-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-menu-item-label-content-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-menu-item-label-icon-color-disabled: var(--spectrum-disabled-content-color); - - --spectrum-menu-item-description-line-height: var(--spectrum-line-height-100); - --spectrum-menu-item-description-line-height-cjk: var(--spectrum-cjk-line-height-100); - - --spectrum-menu-item-description-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-menu-item-description-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-menu-item-description-color-down: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-menu-item-description-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --spectrum-menu-item-description-color-disabled: var(--spectrum-disabled-content-color); - - --spectrum-menu-section-header-line-height: var(--spectrum-line-height-100); - --spectrum-menu-section-header-line-height-cjk: var(--spectrum-cjk-line-height-100); - --spectrum-menu-section-header-font-weight: var(--spectrum-bold-font-weight); - --spectrum-menu-section-header-color: var(--spectrum-gray-900); - --spectrum-menu-collapsible-icon-color: var(--spectrum-gray-900); - - --spectrum-menu-checkmark-icon-color-default: var(--spectrum-accent-color-900); - --spectrum-menu-checkmark-icon-color-hover: var(--spectrum-accent-color-1000); - --spectrum-menu-checkmark-icon-color-down: var(--spectrum-accent-color-1100); - --spectrum-menu-checkmark-icon-color-focus: var(--spectrum-accent-color-1000); - - --spectrum-menu-drillin-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-menu-drillin-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-menu-drillin-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-menu-drillin-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - - --spectrum-menu-item-value-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-menu-item-value-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-menu-item-value-color-down: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-menu-item-value-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - - --spectrum-menu-checkmark-display-hidden: none; - --spectrum-menu-checkmark-display-shown: block; - --spectrum-menu-checkmark-display: var(--spectrum-menu-checkmark-display-shown); - - --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); - - /* "one" icon: chevron + additional icon (we don't count the chevron as an icon because it HAS to be there for a collapsible) */ - --spectrum-menu-item-collapsible-has-icon-submenu-item-padding-x-start: calc((var(--spectrum-menu-item-label-inline-edge-to-content) + var(--spectrum-menu-item-checkmark-width) + var(--spectrum-menu-item-text-to-control) + var(--spectrum-menu-item-icon-width) + var(--spectrum-menu-item-label-text-to-visual) + var(--spectrum-menu-item-focus-indicator-width))); - - /* "no" icon: just the chevron (we're not counting it because it HAS to be there for a collapsible) */ - --spectrum-menu-item-collapsible-no-icon-submenu-item-padding-x-start: calc((var(--spectrum-menu-item-label-inline-edge-to-content) + var(--spectrum-menu-item-checkmark-width) + var(--spectrum-menu-item-label-text-to-visual) + var(--spectrum-menu-item-focus-indicator-width))); -} - -.spectrum-Menu--sizeS { - --spectrum-menu-item-min-height: var(--spectrum-component-height-75); - --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-75); - --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-75); - --spectrum-menu-item-label-font-size: var(--spectrum-font-size-75); - --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-75); - - --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-75); - --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-75); - - --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-75); - - --spectrum-menu-item-description-font-size: var(--spectrum-font-size-50); - - --spectrum-menu-section-header-font-size: var(--spectrum-font-size-75); - --spectrum-menu-section-header-min-width: var(--spectrum-component-height-75); - - --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-small); - - --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-small); - --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-small); - --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-small); - - --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-small); -} - -.spectrum-Menu--sizeL { - --spectrum-menu-item-min-height: var(--spectrum-component-height-200); - --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-200); - --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-200); - --spectrum-menu-item-label-font-size: var(--spectrum-font-size-200); - --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-200); - - --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-200); - --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-200); - - --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-200); - - --spectrum-menu-item-description-font-size: var(--spectrum-font-size-100); - - --spectrum-menu-section-header-font-size: var(--spectrum-font-size-200); - --spectrum-menu-section-header-min-width: var(--spectrum-component-height-200); - - --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-large); - - --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-large); - --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-large); - --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-large); - - --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-large); -} - -.spectrum-Menu--sizeXL { - --spectrum-menu-item-min-height: var(--spectrum-component-height-300); - --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-300); - --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-300); - --spectrum-menu-item-label-font-size: var(--spectrum-font-size-300); - --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-300); - - --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-300); - --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-300); - --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-300); - - --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-300); - - --spectrum-menu-item-description-font-size: var(--spectrum-font-size-200); - - --spectrum-menu-section-header-font-size: var(--spectrum-font-size-300); - --spectrum-menu-section-header-min-width: var(--spectrum-component-height-300); - - --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large); - - --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-extra-large); - --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-extra-large); - --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-extra-large); - - --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-extra-large); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-Menu { @@ -281,11 +112,13 @@ /* Provide inline-start spacing for potential checkmarks. */ .spectrum-Menu-item { --spectrum-menu-checkmark-display: var(--spectrum-menu-checkmark-display-hidden); + padding-inline-start: var(--mod-menu-item-selectable-edge-to-text-not-selected, var(--spectrum-menu-item-selectable-edge-to-text-not-selected)); /* Remove inline-start spacing once an item is selected and a checkmark appears. */ &.is-selected { --spectrum-menu-checkmark-display: var(--spectrum-menu-checkmark-display-shown); + padding-inline-start: var(--mod-menu-item-label-inline-edge-to-content, var(--spectrum-menu-item-label-inline-edge-to-content)); } } @@ -366,6 +199,7 @@ line-height: var(--mod-menu-item-label-line-height, var(--spectrum-menu-item-label-line-height)); min-block-size: var(--mod-menu-item-min-height, var(--spectrum-menu-item-min-height)); + padding-block-start: var(--mod-menu-item-top-edge-to-text, var(--spectrum-menu-item-top-edge-to-text)); padding-block-end: var(--mod-menu-item-bottom-edge-to-text, var(--spectrum-menu-item-bottom-edge-to-text)); padding-inline: var(--mod-menu-item-label-inline-edge-to-content, var(--spectrum-menu-item-label-inline-edge-to-content)); @@ -376,11 +210,11 @@ .spectrum-Menu-itemCheckbox { --mod-checkbox-top-to-text: 0; --mod-checkbox-text-to-control: 0; + min-block-size: 0; .spectrum-Checkbox-box { margin-inline-end: var(--mod-menu-item-text-to-control, var(--spectrum-menu-item-text-to-control)); - margin-block-start: var(--mod-menu-item-top-to-checkbox, var(--spectrum-menu-item-top-to-checkbox)); margin-block-end: 0; } @@ -558,6 +392,9 @@ } .spectrum-Menu-itemLabel { + --spectrum-switch-control-label-spacing: 0; + --spectrum-switch-spacing-top-to-label: 0; + grid-area: labelArea; font-size: var(--mod-menu-item-label-font-size, var(--spectrum-menu-item-label-font-size)); color: var(--highcontrast-menu-item-color-default, var(--mod-menu-item-label-content-color-default, var(--spectrum-menu-item-label-content-color-default))); @@ -763,8 +600,8 @@ } .spectrum-Menu-itemIcon { - fill: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); color: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); + fill: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); } &:hover { @@ -782,8 +619,8 @@ } .spectrum-Menu-itemIcon { - fill: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); color: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); + fill: var(--highcontrast-menu-item-color-disabled, var(--mod-menu-item-label-icon-color-disabled, var(--spectrum-menu-item-label-icon-color-disabled))); } } } @@ -826,6 +663,6 @@ .spectrum-Menu .spectrum-Menu-backIcon { margin-block: var(--mod-menu-back-icon-margin-block, var(--spectrum-menu-back-icon-margin)); margin-inline: var(--mod-menu-back-icon-margin-inline, var(--spectrum-menu-back-icon-margin)); - fill: var(--highcontrast-menu-item-color-default, var(--mod-menu-back-icon-color-default)); - color: var(--highcontrast-menu-item-color-default, var(--mod-menu-back-icon-color-default)); + fill: var(--highcontrast-menu-item-color-default, var(--mod-menu-back-icon-color-default, var(--spectrum-menu-section-header-color))); + color: var(--highcontrast-menu-item-color-default, var(--mod-menu-back-icon-color-default, var(--spectrum-menu-section-header-color))); } diff --git a/components/menu/metadata/menu.yml b/components/menu/metadata/menu.yml deleted file mode 100644 index 27f5e85cf32..00000000000 --- a/components/menu/metadata/menu.yml +++ /dev/null @@ -1,1411 +0,0 @@ -name: Menu -SpectrumSiteSlug: https://spectrum.adobe.com/page/menu/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Menu now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-Menu--size*` class. - - ### Use small divider classes - When using a section divider, add `.spectrum-Divider` and `spectrum-Divider--sizeS` classes to `spectrum-Menu-divider`. The divider has also changed from medium to small. - - ### Change workflow icon size to medium - Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - - ### Menu item with switch mark up ### - In the case of a menu item that includes an icon and a switch, the label and icon should be seperate elements. As opposed to the icon SVG being with in the label. This matches the pattern of other variants with icons within the menu item. - -examples: - - id: sizing - name: Sizing - markup: | -
    -
    -

    S

    -
    - -
    -
    -
    -

    M

    -
    - -
    -
    -
    -

    L

    -
    - -
    -
    -
    -

    XL

    -
    - -
    -
    -
    - - id: sizing-with-icons - name: Sizing with Icons - markup: | -
    -
    -

    S

    -
    - -
    -
    -
    -

    M

    -
    - -
    -
    -
    -

    L

    -
    - -
    -
    -
    -

    XL

    -
    - -
    -
    -
    - - id: with-disabled-items - name: With disabled item(s) - markup: | -
    -
    -

    Menu with icons

    -
    - -
    -
    -
    -

    Menu with descriptions

    -
    - -
    -
    -
    -

    Menu with icons & descriptions

    -
    - -
    -
    -
    - - id: text-overflow - name: Text overflow - markup: | -
    -
    -

    Menu without descriptions

    -
    - -
    -
    -
    -

    Menu with descriptions

    -
    - -
    -
    -
    - - id: sizing-descriptions - name: Sizing with descriptions - markup: | -
    -
    -

    S

    -
    - -
    -
    -
    -

    M

    -
    - -
    -
    -
    -

    L

    -
    - -
    -
    -
    -

    XL

    -
    - -
    -
    -
    - - id: sizing-descriptions-icons - name: Sizing with descriptions and icons - markup: | -
    -
    -

    S

    -
    - -
    -
    -
    -

    M

    -
    - -
    -
    -
    -

    L

    -
    - -
    -
    -
    -

    XL

    -
    - -
    -
    -
    - - id: collapsible - name: Collapsible - markup: | -
    -
    -

    S

    -
    - -
    -
    -
    -

    M

    -
    - -
    -
    -
    -

    L

    -
    - -
    -
    -
    -

    XL

    -
    - -
    -
    -
    - - id: standard-with-dividers - name: Standard with dividers - markup: | -
    -
    - -
    -
    - - id: standard-with-section-headers-and-dividers - name: Standard with section headers and dividers - markup: | -
    -
    - -
    -
    - - id: single-selection - name: Single Selection - markup: | -
    -
    -

    Without icons

    -
    - -
    -
    -
    -

    With icons

    -
    - -
    -
    -
    - - id: multi-selection - name: Multi-Selection - markup: | -
    -
    -

    Without icons

    -
    - -
    -
    -
    -

    With icons

    -
    - -
    -
    -
    - - id: with-switch - name: With Switch - markup: | -
    -
    -

    Without icons

    -
    - -
    -
    -
    -

    With icons

    -
    - -
    -
    -
    - - id: submenu-drillin - name: Drill-in for submenu - description: Use the class `spectrum-Menu-itemLabel--truncate` on the item label or section heading that should truncate within a menu. When text would typically overflow beyond the available horizontal space and wrap (default behavior), ellipsis will appear instead. This is demonstrated here by setting an `inline-size` on the menu. - markup: | -
    -
    - -
    -
    - - id: tray-submenus - name: Tray submenus - description: - "When a menu is displayed within a tray, a submenu will replace the tray content when the parent menu item is selected. A submenu displays a back button (labeled by the title of the parent item) at the top of the tray to return the user to the previous level of the menu. - The back arrow size scale used with the various menu sizes are small: `200`, medium: `300`, large: `400`, and extra large: `500`." - markup: | -
    -
    -
    -
    - - - id: menu-truncate - name: Menu with truncating text - description: Use the class `spectrum-Menu-itemLabel--truncate` on the item label or section heading that should truncate with in a menu with a set `inline-size` or `max-inline-size` - markup: | -
    -
    - -
    -
    diff --git a/components/menu/metadata/metadata.json b/components/menu/metadata/metadata.json index 2eaf12cdb18..efdcc4f7017 100644 --- a/components/menu/metadata/metadata.json +++ b/components/menu/metadata/metadata.json @@ -25,9 +25,6 @@ ".spectrum-Menu .spectrum-Menu-itemIcon--workflowIcon", ".spectrum-Menu .spectrum-Menu-itemIcon:not(.spectrum-Menu-chevron, .spectrum-Menu-checkmark)", ".spectrum-Menu li:not(.spectrum-Menu-item, .spectrum-Menu-divider)", - ".spectrum-Menu--sizeL", - ".spectrum-Menu--sizeS", - ".spectrum-Menu--sizeXL", ".spectrum-Menu-back", ".spectrum-Menu-back .spectrum-Menu-sectionHeading", ".spectrum-Menu-back:focus-visible", @@ -134,6 +131,10 @@ ".spectrum-Menu.is-selectable .spectrum-Menu-item", ".spectrum-Menu.is-selectable .spectrum-Menu-item.is-selected", ".spectrum-Menu.js-focus-within .spectrum-Menu-item--collapsible.is-open[focus-within]", + ".spectrum-Menu.spectrum-Menu--sizeL", + ".spectrum-Menu.spectrum-Menu--sizeM", + ".spectrum-Menu.spectrum-Menu--sizeS", + ".spectrum-Menu.spectrum-Menu--sizeXL", ".spectrum-Menu:lang(ja)", ".spectrum-Menu:lang(ko)", ".spectrum-Menu:lang(zh)", @@ -342,6 +343,8 @@ "--spectrum-font-size-300", "--spectrum-font-size-50", "--spectrum-font-size-75", + "--spectrum-gray-1000", + "--spectrum-gray-25", "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-navigational-indicator-top-to-back-icon-extra-large", @@ -358,6 +361,8 @@ "--spectrum-neutral-subdued-content-color-key-focus", "--spectrum-spacing-100", "--spectrum-spacing-50", + "--spectrum-switch-control-label-spacing", + "--spectrum-switch-spacing-top-to-label", "--spectrum-text-to-control-100", "--spectrum-text-to-control-200", "--spectrum-text-to-control-300", @@ -366,6 +371,7 @@ "--spectrum-text-to-visual-200", "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-75", + "--spectrum-transparent-black-200-opacity", "--spectrum-workflow-icon-size-100", "--spectrum-workflow-icon-size-200", "--spectrum-workflow-icon-size-300", diff --git a/components/menu/package.json b/components/menu/package.json index 974fee64cf1..cb5050b466c 100644 --- a/components/menu/package.json +++ b/components/menu/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/menu", - "version": "7.1.7", + "version": "8.0.0-s2-foundations.13", "description": "The Spectrum CSS menu component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/menu/stories/menu.stories.js b/components/menu/stories/menu.stories.js index 607304e0663..ed626f72d8a 100644 --- a/components/menu/stories/menu.stories.js +++ b/components/menu/stories/menu.stories.js @@ -229,6 +229,9 @@ TraySubmenu.parameters = { height: "400px" } }, + viewport: { + defaultViewport: "mobile2" + }, }; export const MenuItem = MenuItemGroup.bind({}); diff --git a/components/menu/stories/template.js b/components/menu/stories/template.js index 78579784fc5..27d43727ea9 100644 --- a/components/menu/stories/template.js +++ b/components/menu/stories/template.js @@ -11,6 +11,9 @@ 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). @@ -28,303 +31,298 @@ const iconWithScale = (size = "m", iconName = "ArrowLeft") => { } }; -export const MenuItem = ( - { - rootClass = "spectrum-Menu-item", - label, - description, - iconName, - iconSet = "workflow", - hasActions = false, - id = getRandomId("menuitem"), - idx = 0, - isActive = false, - isCollapsible = false, - isDisabled = false, - isDrillIn = false, - isFocused = false, - isHighlighted = false, - isHovered = false, - isOpen = false, - isSelected = false, - items = [], - role = "menuitem", - shouldTruncate = false, - size = "m", - selectionMode = "none", - value, - customClasses = [], - customStyles = {}, - } = {}, - context = {}, -) => html` -
  • ({ ...a, [c]: true }), {}), - })} - style=${styleMap(customStyles)} - id=${ifDefined(id)} - role=${ifDefined(role)} - aria-selected=${isSelected ? "true" : "false"} - aria-disabled=${isDisabled ? "true" : "false"} - tabindex=${ifDefined(!isDisabled ? "0" : undefined)} - > - ${when(isCollapsible || (selectionMode == "single" && isSelected), () => - Icon( - { - iconName: iconWithScale( - size, - isCollapsible ? "ChevronRight" : "Checkmark", - ), - setName: "ui", - size, - customClasses: [ - `${rootClass}Icon`, - isCollapsible ? "spectrum-Menu-chevron" : "spectrum-Menu-checkmark", - ], - }, - context, - ), - )} - ${when(selectionMode === "multiple" && !hasActions, () => - Checkbox( - { - size, - isEmphasized: true, - isChecked: isSelected, - isDisabled, - id: `menu-checkbox-${idx}`, - customClasses: [`${rootClass}Checkbox`], - }, - context, - ), - )} - ${when(iconName, () => - Icon( - { - iconName, - setName: iconSet, - size, - customClasses: [`${rootClass}Icon`, `${rootClass}Icon--workflowIcon`], - }, - context, - ), - )} - ${when( - isCollapsible, - () => html` - - ${label} - - `, - () => html` - - ${label} - - `, - )} - ${when( - description, - () => html` - - ${description} - - `, - )} - ${when( - value, - () => html` - - ${value} - - `, - )} - ${when( - hasActions && selectionMode == "multiple", - () => html` -
    - ${Switch( - { +export const MenuItem = ({ + rootClass = "spectrum-Menu-item", + label, + description, + iconName, + iconSet = "workflow", + hasActions = false, + id = getRandomId("menuitem"), + idx = 0, + isActive = false, + isCollapsible = false, + isDisabled = false, + isDrillIn = false, + isFocused = false, + isHighlighted = false, + isHovered = false, + isOpen = false, + isSelected = false, + items = [], + role = "menuitem", + shouldTruncate = false, + size = "m", + selectionMode = "none", + value, + customClasses = [], + customStyles = {}, +} = {}, context = {}) => { + return html` +
  • ({ ...a, [c]: true }), {}), + })} + style=${styleMap(customStyles)} + id=${ifDefined(id)} + role=${ifDefined(role)} + aria-selected=${isSelected ? "true" : "false"} + aria-disabled=${isDisabled ? "true" : "false"} + tabindex=${ifDefined(!isDisabled ? "0" : undefined)} + > + ${when(isCollapsible || (selectionMode == "single" && isSelected), () => + Icon( + { + iconName: iconWithScale( size, - isChecked: isSelected, - isDisabled, - label: null, - id: `menu-switch-${idx}`, - customClasses: [`${rootClass}Switch`], - }, - context, - )} -
  • - `, - )} - ${when(isDrillIn, () => - Icon( - { - iconName: iconWithScale(size, "ChevronRight"), - setName: "ui", - size, - customClasses: [`${rootClass}Icon`, "spectrum-Menu-chevron"], - }, - context, - ), - )} - ${when(isCollapsible && items.length > 0, () => - Template( - { - items, - isOpen, - size, - shouldTruncate, - }, - context, - ), - )} - -`; - -export const MenuGroup = ( - { - heading, - id = getRandomId("menugroup"), - idx = 0, - items = [], - isDisabled = false, - isSelectable = false, - isTraySubmenu = false, - shouldTruncate = false, - subrole = "menuitem", - size = "m", - customStyles = {}, - } = {}, - context = {}, -) => html` - -`; +
    + `, + )} + ${when(isDrillIn, () => + Icon( + { + iconName: iconWithScale(size, "ChevronRight"), + setName: "ui", + size, + customClasses: [`${rootClass}Icon`, "spectrum-Menu-chevron"], + }, + context, + ), + )} + ${when(isCollapsible && items.length > 0, () => + Template( + { + items, + isOpen, + size, + shouldTruncate, + }, + context, + ), + )} + + `; +}; + +export const MenuGroup = ({ + heading, + id = getRandomId("menugroup"), + idx = 0, + items = [], + isDisabled = false, + isSelectable = false, + isTraySubmenu = false, + shouldTruncate = false, + subrole = "menuitem", + size = "m", + customStyles = {}, +} = {}, context = {}) => { + return html` + + `; +}; -export const Template = ( - { - rootClass = "spectrum-Menu", - customClasses = [], - customStyles = {}, - id = getRandomId("menu"), - hasActions = false, - hasDividers = false, - isDisabled = false, - isOpen = false, - isTraySubmenu = false, - items = [], - labelledby = getRandomId("menu-label"), - role = "menu", - selectionMode = "none", - singleItemValue, - shouldTruncate, - size = "m", - subrole = "menuitem", - } = {}, - context = {}, -) => { +export const Template = ({ + rootClass = "spectrum-Menu", + customClasses = [], + customStyles = {}, + id = getRandomId("menu"), + hasActions = false, + hasDividers = false, + isDisabled = false, + isOpen = false, + isTraySubmenu = false, + items = [], + labelledby = getRandomId("menu-label"), + role = "menu", + selectionMode = "none", + singleItemValue, + shouldTruncate, + size = "m", + subrole = "menuitem", +} = {}, context = {}) => { const menuMarkup = html`
      + * + * 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 new file mode 100644 index 00000000000..3fb0e679559 --- /dev/null +++ b/components/menu/themes/spectrum-two.css @@ -0,0 +1,193 @@ +/*! + * 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 + * + * 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-top-to-action: var(--spectrum-spacing-50); + --spectrum-menu-item-top-to-checkbox: var(--spectrum-spacing-50); + + --spectrum-menu-item-label-line-height: var(--spectrum-line-height-100); + --spectrum-menu-item-label-line-height-cjk: var(--spectrum-cjk-line-height-100); + --spectrum-menu-item-label-to-description-spacing: var(--spectrum-menu-item-label-to-description); + --spectrum-menu-item-focus-indicator-width: var(--spectrum-border-width-200); + --spectrum-menu-item-focus-indicator-color: var(--spectrum-blue-800); + --spectrum-menu-item-label-to-value-area-min-spacing: var(--spectrum-spacing-100); + + --spectrum-menu-item-label-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-menu-item-label-content-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-menu-item-label-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-menu-item-label-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-menu-item-label-icon-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-menu-item-label-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-menu-item-label-icon-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-menu-item-label-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-menu-item-label-content-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-menu-item-label-icon-color-disabled: var(--spectrum-disabled-content-color); + + --spectrum-menu-item-description-line-height: var(--spectrum-line-height-100); + --spectrum-menu-item-description-line-height-cjk: var(--spectrum-cjk-line-height-100); + + --spectrum-menu-item-description-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-menu-item-description-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-menu-item-description-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-menu-item-description-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --spectrum-menu-item-description-color-disabled: var(--spectrum-disabled-content-color); + + --spectrum-menu-section-header-line-height: var(--spectrum-line-height-100); + --spectrum-menu-section-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --spectrum-menu-section-header-font-weight: var(--spectrum-bold-font-weight); + --spectrum-menu-section-header-color: var(--spectrum-gray-900); + --spectrum-menu-collapsible-icon-color: var(--spectrum-gray-900); + + --spectrum-menu-checkmark-icon-color-default: var(--spectrum-accent-color-900); + --spectrum-menu-checkmark-icon-color-hover: var(--spectrum-accent-color-1000); + --spectrum-menu-checkmark-icon-color-down: var(--spectrum-accent-color-1100); + --spectrum-menu-checkmark-icon-color-focus: var(--spectrum-accent-color-1000); + + --spectrum-menu-drillin-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-menu-drillin-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-menu-drillin-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-menu-drillin-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + + --spectrum-menu-item-value-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-menu-item-value-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-menu-item-value-color-down: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-menu-item-value-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + + --spectrum-menu-checkmark-display-hidden: none; + --spectrum-menu-checkmark-display-shown: block; + --spectrum-menu-checkmark-display: var(--spectrum-menu-checkmark-display-shown); + + /* "one" icon: chevron + additional icon (we don't count the chevron as an icon because it HAS to be there for a collapsible) */ + --spectrum-menu-item-collapsible-has-icon-submenu-item-padding-x-start: calc((var(--spectrum-menu-item-label-inline-edge-to-content) + var(--spectrum-menu-item-checkmark-width) + var(--spectrum-menu-item-text-to-control) + var(--spectrum-menu-item-icon-width) + var(--spectrum-menu-item-label-text-to-visual) + var(--spectrum-menu-item-focus-indicator-width))); + + /* "no" icon: just the chevron (we're not counting it because it HAS to be there for a collapsible) */ + --spectrum-menu-item-collapsible-no-icon-submenu-item-padding-x-start: calc((var(--spectrum-menu-item-label-inline-edge-to-content) + var(--spectrum-menu-item-checkmark-width) + var(--spectrum-menu-item-label-text-to-visual) + var(--spectrum-menu-item-focus-indicator-width))); + + --spectrum-menu-item-background-color-default: var(--spectrum-gray-25); + --spectrum-menu-item-background-color-hover: rgba(var(--spectrum-gray-1000), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-down: rgba(var(--spectrum-gray-1000), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-1000), var(--spectrum-transparent-black-200-opacity)); + + &.spectrum-Menu--sizeS { + --spectrum-menu-item-min-height: var(--spectrum-component-height-75); + --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-75); + --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-75); + --spectrum-menu-item-label-font-size: var(--spectrum-font-size-75); + --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-75); + + --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-75); + --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-75); + + --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-75); + + --spectrum-menu-item-description-font-size: var(--spectrum-font-size-50); + + --spectrum-menu-section-header-font-size: var(--spectrum-font-size-75); + --spectrum-menu-section-header-min-width: var(--spectrum-component-height-75); + + --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-small); + + --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-small); + --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-small); + --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-small); + + --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-small); + } + + &, + &.spectrum-Menu--sizeM { + --spectrum-menu-item-min-height: var(--spectrum-component-height-100); + --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-100); + --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-100); + --spectrum-menu-item-label-font-size: var(--spectrum-font-size-100); + --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-100); + + --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); + --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); + + --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-100); + + --spectrum-menu-item-description-font-size: var(--spectrum-font-size-75); + + --spectrum-menu-section-header-font-size: var(--spectrum-font-size-100); + --spectrum-menu-section-header-min-width: var(--spectrum-component-height-100); + + --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); + + --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); + --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); + --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); + + --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); + } + + &.spectrum-Menu--sizeL { + --spectrum-menu-item-min-height: var(--spectrum-component-height-200); + --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-200); + --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-200); + --spectrum-menu-item-label-font-size: var(--spectrum-font-size-200); + --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-200); + + --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-200); + --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-200); + + --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-200); + + --spectrum-menu-item-description-font-size: var(--spectrum-font-size-100); + + --spectrum-menu-section-header-font-size: var(--spectrum-font-size-200); + --spectrum-menu-section-header-min-width: var(--spectrum-component-height-200); + + --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-large); + + --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-large); + --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-large); + --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-large); + + --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-large); + } + + &.spectrum-Menu--sizeXL { + --spectrum-menu-item-min-height: var(--spectrum-component-height-300); + --spectrum-menu-item-icon-height: var(--spectrum-workflow-icon-size-300); + --spectrum-menu-item-icon-width: var(--spectrum-workflow-icon-size-300); + --spectrum-menu-item-label-font-size: var(--spectrum-font-size-300); + --spectrum-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-300); + + --spectrum-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-300); + --spectrum-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-300); + + --spectrum-menu-item-text-to-control: var(--spectrum-text-to-control-300); + + --spectrum-menu-item-description-font-size: var(--spectrum-font-size-200); + + --spectrum-menu-section-header-font-size: var(--spectrum-font-size-300); + --spectrum-menu-section-header-min-width: var(--spectrum-component-height-300); + + --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large); + + --spectrum-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-extra-large); + --spectrum-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-extra-large); + --spectrum-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-extra-large); + + --spectrum-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-extra-large); + } + } +} diff --git a/tokens/custom-express/custom-medium-vars.css b/components/menu/themes/spectrum.css similarity index 51% rename from tokens/custom-express/custom-medium-vars.css rename to components/menu/themes/spectrum.css index 3ea2be5d865..3454f406fee 100644 --- a/tokens/custom-express/custom-medium-vars.css +++ b/components/menu/themes/spectrum.css @@ -11,15 +11,16 @@ * governing permissions and limitations under the License. */ -/* This file contains overrides and additions to core tokens */ -.spectrum--express.spectrum--medium { - --spectrum-colorwheel-path: "M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0"; - --spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; +/* @combine .spectrum.spectrum--legacy */ - --spectrum-dialog-confirm-border-radius: 6px; +@import "./spectrum-two.css"; - --spectrum-dial-border-radius: 12px; - - --spectrum-assetcard-focus-ring-border-radius: 10px; +@container style(--system: legacy) { + .spectrum-Menu { + --spectrum-menu-item-background-color-default: var(--spectrum-gray-50); + --spectrum-menu-item-background-color-hover: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-down: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --spectrum-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + } } diff --git a/components/miller/CHANGELOG.md b/components/miller/CHANGELOG.md index b24ffe4697e..2ae70f7596d 100644 --- a/components/miller/CHANGELOG.md +++ b/components/miller/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.13 + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.12 + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.11 + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.10 + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.9 + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.8 + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.7 + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/assetlist@7.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.5 + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.4 + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.3 + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.2 + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.1 + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/assetlist@7.0.0-s2-foundations.0 + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/miller/index.css b/components/miller/index.css index 8093f1bec55..b66c77823e1 100644 --- a/components/miller/index.css +++ b/components/miller/index.css @@ -11,12 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-MillerColumns { - --spectrum-millercolumns-inline-size: 272px; - --spectrum-millercolumns-padding: var(--spectrum-spacing-100); - --spectrum-millercolumns-margin-inline-start: var(--spectrum-spacing-100); - --spectrum-millercolumns-margin-inline-end: var(--spectrum-spacing-100); -} +@import "./themes/spectrum-two.css"; .spectrum-MillerColumns { overflow-x: auto; diff --git a/components/miller/metadata/miller.yml b/components/miller/metadata/miller.yml deleted file mode 100644 index fc5b01b03b8..00000000000 --- a/components/miller/metadata/miller.yml +++ /dev/null @@ -1,180 +0,0 @@ -name: Miller columns -examples: - - id: miller-column - name: Miller Columns (Branches Selectable) - description: Miller columns that allow both files and folders to be selected. - markup: | -
      -
      -
        -
      • - - File 1 - -
      • -
      • - - File 2 - -
      • -
      • - - asset item thumbnail - File 3 - -
      • -
      -
      -
      -
        -
      • - - File 1 - -
      • -
      • - - File 2 - -
      • -
      • - - asset item thumbnail - File 3 - -
      • -
      -
      -
      - - id: miller-column - name: Miller Columns (Files Selectable) - description: Miller columns that only allow files to be selected. - markup: | -
      -
      -
        -
      • - File 1 - -
      • -
      • - File 2 - - -
      • -
      • - asset item thumbnail - File 3 - - -
      • -
      -
      - -
      -
        -
      • - File 1 - -
      • -
      • - File 2 - - -
      • -
      • - asset item thumbnail - File 3 - - -
      • -
      -
      -
      diff --git a/components/miller/package.json b/components/miller/package.json index 2877bfc78f3..f2c8607d7ab 100644 --- a/components/miller/package.json +++ b/components/miller/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/miller", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.13", "description": "The Spectrum CSS miller component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/miller/stories/template.js b/components/miller/stories/template.js index 66caafe96fe..9476ef5fc35 100644 --- a/components/miller/stories/template.js +++ b/components/miller/stories/template.js @@ -3,6 +3,9 @@ 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-MillerColumns", diff --git a/components/miller/themes/express.css b/components/miller/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/miller/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/miller/themes/spectrum-two.css b/components/miller/themes/spectrum-two.css new file mode 100644 index 00000000000..818d7638591 --- /dev/null +++ b/components/miller/themes/spectrum-two.css @@ -0,0 +1,21 @@ +/*! + * 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 + * + * 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-MillerColumns { + --spectrum-millercolumns-inline-size: 272px; + --spectrum-millercolumns-padding: var(--spectrum-spacing-100); + --spectrum-millercolumns-margin-inline-start: var(--spectrum-spacing-100); + --spectrum-millercolumns-margin-inline-end: var(--spectrum-spacing-100); + } +} diff --git a/components/miller/themes/spectrum.css b/components/miller/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/miller/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/modal/CHANGELOG.md b/components/modal/CHANGELOG.md index 3d57d8de3c2..cd3b3f786b6 100644 --- a/components/modal/CHANGELOG.md +++ b/components/modal/CHANGELOG.md @@ -1,5 +1,172 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#3056](https://github.com/adobe/spectrum-css/pull/3056) [`5bbbc78`](https://github.com/adobe/spectrum-css/commit/5bbbc78a6ef9442dc51c5fcc14a82fbe9bc277bf) Thanks [@Rajdeepc](https://github.com/Rajdeepc)! - Updates the spectrum-modal-background-color in dark and light in spectrum-two theme + +### Patch Changes + +- Updated dependencies [[`db528ce`](https://github.com/adobe/spectrum-css/commit/db528ce0a6f7d817e6124604014faf9f4accfc1e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.20 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/modal/index.css b/components/modal/index.css index 62af51de41e..29214c0ed68 100644 --- a/components/modal/index.css +++ b/components/modal/index.css @@ -12,23 +12,7 @@ */ @import "@spectrum-css/commons/overlay.css"; - -.spectrum-Modal { - /* Bug: this must be 0ms, not 0 */ - --spectrum-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: 32px; - --spectrum-modal-max-height: 90vh; - --spectrum-modal-max-width: 90%; - - --spectrum-modal-background-color: var(--spectrum-gray-100); - --spectrum-modal-confirm-border-radius: var(--spectrum-corner-radius-100); - --spectrum-modal-confirm-exit-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-modal-confirm-entry-animation-duration: var(--spectrum-animation-duration-500); - --spectrum-modal-confirm-entry-animation-delay: var(--spectrum-animation-duration-200); - --spectrum-modal-transition-animation-duration: var(--spectrum-animation-duration-100); -} +@import "./themes/spectrum-two.css"; /* Used to position the modal */ .spectrum-Modal-wrapper { @@ -73,6 +57,7 @@ .spectrum-Modal { @extend %spectrum-overlay; + /* Start offset by the animation distance */ transform: translateY(var(--mod-modal-confirm-entry-animation-distance, var(--spectrum-modal-confirm-entry-animation-distance))); diff --git a/components/modal/metadata/metadata.json b/components/modal/metadata/metadata.json index 0fcba109eea..083d82af770 100644 --- a/components/modal/metadata/metadata.json +++ b/components/modal/metadata/metadata.json @@ -46,8 +46,8 @@ "--spectrum-animation-duration-500", "--spectrum-animation-ease-in", "--spectrum-animation-ease-out", - "--spectrum-corner-radius-100", - "--spectrum-gray-100" + "--spectrum-background-layer-2-color", + "--spectrum-corner-radius-100" ], "system-theme": [], "passthroughs": [], diff --git a/components/modal/metadata/modal.yml b/components/modal/metadata/modal.yml deleted file mode 100644 index f4addf1d0a0..00000000000 --- a/components/modal/metadata/modal.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Modal -description: A modal component that is used primarily by Dialog. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: modal - name: Modal - demoClassName: spectrum-CSSExample-example--overlay - description: - This is a base component used by other components, and should not be used on its own like the following example. If you need a full-featured modal for - displaying content, take a look at the Dialog component instead. - markup: | -
      -
      A basic example of the Modal markup.
      -
      diff --git a/components/modal/package.json b/components/modal/package.json index 866a1430064..5b4d3c69e14 100644 --- a/components/modal/package.json +++ b/components/modal/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/modal", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS modal component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/modal/stories/template.js b/components/modal/stories/template.js index 9abbf49ebea..07a52b89131 100644 --- a/components/modal/stories/template.js +++ b/components/modal/stories/template.js @@ -5,6 +5,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/modal/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..60255f16bc4 --- /dev/null +++ b/components/modal/themes/spectrum-two.css @@ -0,0 +1,31 @@ +/*! + * 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 + * + * 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 { + /* Bug: this must be 0ms, not 0 */ + --spectrum-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: 32px; + --spectrum-modal-max-height: 90vh; + --spectrum-modal-max-width: 90%; + + --spectrum-modal-background-color: var(--spectrum-background-layer-2-color); + --spectrum-modal-confirm-border-radius: var(--spectrum-corner-radius-100); + --spectrum-modal-confirm-exit-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-modal-confirm-entry-animation-duration: var(--spectrum-animation-duration-500); + --spectrum-modal-confirm-entry-animation-delay: var(--spectrum-animation-duration-200); + --spectrum-modal-transition-animation-duration: var(--spectrum-animation-duration-100); + } +} diff --git a/tokens/dist/css/components/spectrum/actiongroup.css b/components/modal/themes/spectrum.css similarity index 76% rename from tokens/dist/css/components/spectrum/actiongroup.css rename to components/modal/themes/spectrum.css index bd7f9acb1ca..ef15059420f 100644 --- a/tokens/dist/css/components/spectrum/actiongroup.css +++ b/components/modal/themes/spectrum.css @@ -11,8 +11,13 @@ * governing permissions and limitations under the License. */ -.spectrum { - --system-spectrum-actiongroup-gap-size-compact: 0; - --system-spectrum-actiongroup-horizontal-spacing-compact: -1px; - --system-spectrum-actiongroup-vertical-spacing-compact: -1px; + +/* @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 cb85b2032fa..c39ebdecaf3 100644 --- a/components/opacitycheckerboard/CHANGELOG.md +++ b/components/opacitycheckerboard/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 3.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 3.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 3.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 3.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 3.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 3.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 3.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 3.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 3.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 3.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 3.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 3.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 3.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 2.1.3 ### Patch Changes diff --git a/components/opacitycheckerboard/index.css b/components/opacitycheckerboard/index.css index 6a71d4f9835..32f824cf90a 100644 --- a/components/opacitycheckerboard/index.css +++ b/components/opacitycheckerboard/index.css @@ -1,18 +1,17 @@ -/*! 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 + * + * 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-OpacityCheckerboard { - --spectrum-opacity-checkerboard-dark: var(--spectrum-opacity-checkerboard-square-dark); - --spectrum-opacity-checkerboard-light: var(--spectrum-opacity-checkerboard-square-light); - --spectrum-opacity-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); - --spectrum-opacity-checkerboard-position: left top; -} +@import "./themes/spectrum-two.css"; .spectrum-OpacityCheckerboard { background: repeating-conic-gradient(var(--mod-opacity-checkerboard-light, var(--spectrum-opacity-checkerboard-light)) 0% 25%, var(--mod-opacity-checkerboard-dark, var(--spectrum-opacity-checkerboard-dark)) 0% 50%) var(--mod-opacity-checkerboard-position, var(--spectrum-opacity-checkerboard-position)) / calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-size)) * 2) calc(var(--mod-opacity-checkerboard-size, var(--spectrum-opacity-checkerboard-size)) * 2); diff --git a/components/opacitycheckerboard/metadata/opacitycheckerboard.yml b/components/opacitycheckerboard/metadata/opacitycheckerboard.yml deleted file mode 100644 index ca741c75676..00000000000 --- a/components/opacitycheckerboard/metadata/opacitycheckerboard.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Opacity checkerboard -description: Opacity checkerboard is a class used to highlight background color opacity. -examples: - - id: opacity-checkerboard - name: Opacity checkerboard - markup: | -
      -
      -
      -
      - - id: opacity-checkerboard - name: Opacity checkerboard with color overlay - markup: | -
      -
      -
      -
      diff --git a/components/opacitycheckerboard/package.json b/components/opacitycheckerboard/package.json index 634f0c510d2..318855866f0 100644 --- a/components/opacitycheckerboard/package.json +++ b/components/opacitycheckerboard/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/opacitycheckerboard", - "version": "2.1.3", + "version": "3.0.0-s2-foundations.13", "description": "The Spectrum CSS opacitycheckerboard component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/opacitycheckerboard/stories/template.js b/components/opacitycheckerboard/stories/template.js index 5327a593cb8..4f55fe23408 100644 --- a/components/opacitycheckerboard/stories/template.js +++ b/components/opacitycheckerboard/stories/template.js @@ -5,6 +5,9 @@ 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-OpacityCheckerboard", @@ -14,18 +17,21 @@ export const Template = ({ id = getRandomId("opacity-checkerboard"), content = [], role, -}) => html` -
      ({ ...a, [c]: true }), {}), - })} - style=${ifDefined(styleMap({ - "--mod-opacity-checkerboard-position": backgroundPosition, - ...customStyles, - }))} - role=${ifDefined(role)} - id=${ifDefined(id)} - > - ${renderContent(content)} -
      `; +} = {}) => { + return html` +
      ({ ...a, [c]: true }), {}), + })} + style=${ifDefined(styleMap({ + "--mod-opacity-checkerboard-position": backgroundPosition, + ...customStyles, + }))} + role=${ifDefined(role)} + id=${ifDefined(id)} + > + ${renderContent(content)} +
      + `; +}; diff --git a/components/opacitycheckerboard/themes/express.css b/components/opacitycheckerboard/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/opacitycheckerboard/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/opacitycheckerboard/themes/spectrum-two.css b/components/opacitycheckerboard/themes/spectrum-two.css new file mode 100644 index 00000000000..23b4e5c4ee9 --- /dev/null +++ b/components/opacitycheckerboard/themes/spectrum-two.css @@ -0,0 +1,21 @@ +/*! + * 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 + * + * 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-OpacityCheckerboard { + --spectrum-opacity-checkerboard-dark: var(--spectrum-opacity-checkerboard-square-dark); + --spectrum-opacity-checkerboard-light: var(--spectrum-opacity-checkerboard-square-light); + --spectrum-opacity-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --spectrum-opacity-checkerboard-position: left top; + } +} diff --git a/components/opacitycheckerboard/themes/spectrum.css b/components/opacitycheckerboard/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/opacitycheckerboard/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/page/CHANGELOG.md b/components/page/CHANGELOG.md deleted file mode 100644 index 9435fed6603..00000000000 --- a/components/page/CHANGELOG.md +++ /dev/null @@ -1,746 +0,0 @@ -# Change Log - -## 8.1.3 - -### Patch Changes - -- [#3107](https://github.com/adobe/spectrum-css/pull/3107) [`83d5a17`](https://github.com/adobe/spectrum-css/commit/83d5a171bd850df693707611203ecce21f22e7d2) Thanks [@castastrophe](https://github.com/castastrophe)! - Incorporate glob export for the dist directory in all component packages as well as glob markdown exports (to include both CHANGELOG and READMEs). - - Sort keys in the package.json assets. - -## 8.1.2 - -### Patch Changes - -- [#3045](https://github.com/adobe/spectrum-css/pull/3045) [`5d6e03f`](https://github.com/adobe/spectrum-css/commit/5d6e03f30891f9171f1a600b06d534ee85719277) Thanks [@castastrophe](https://github.com/castastrophe)! - Improve changeset suggestions by using exports instead of files in component packages - -## 8.1.1 - -### Patch Changes - -- [#2677](https://github.com/adobe/spectrum-css/pull/2677) [`d83200c`](https://github.com/adobe/spectrum-css/commit/d83200ca70a959aa70329e71de0c4383de157855) Thanks [@castastrophe](https://github.com/castastrophe)! - Leveral local workspace versioning to prevent misalignment - -## 8.1.0 - -### Minor Changes - -- [#2616](https://github.com/adobe/spectrum-css/pull/2616) [`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d) Thanks [@castastrophe](https://github.com/castastrophe)! - -#### Build optmizations to support minification - -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/tokens@>=14 - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - - - -## 8.0.0 - -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@7.1.4...@spectrum-css/page@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 - - * - - Removes component-builder & component-builder-simple for script leveraging postcss - -- Imports added to index.css and themes/express.css - - - -## 7.1.4 - -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@7.1.3...@spectrum-css/page@7.1.4) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 7.1.3 - -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@7.1.2...@spectrum-css/page@7.1.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 7.1.2 - -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@7.1.1...@spectrum-css/page@7.1.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 7.1.1 - -🗓 -2024-02-06 - -**Note:** Version bump only for package @spectrum-css/page - - - -## 7.1.0 - -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.1.0...@spectrum-css/page@7.1.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)) - - - -## 7.0.0 - -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.1.0...@spectrum-css/page@7.0.0) - -### 🛑 BREAKING CHANGES - -replace & with :root ([1eadd4f](https://github.com/adobe/spectrum-css/commit/bd6c40eb5a4b43df94dff1f325502e5cd08b7f5f)) - - - -## 6.1.0 - -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.10...@spectrum-css/page@6.1.0) - -### ✨ Features - -\*remove theme files without content([1eadd4f](https://github.com/adobe/spectrum-css/commit/1eadd4f)) - - - -## 6.0.10 - -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.9...@spectrum-css/page@6.0.10) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.9 - -🗓 -2023-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.8...@spectrum-css/page@6.0.9) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.8 - -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.6...@spectrum-css/page@6.0.8) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.7 - -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.6...@spectrum-css/page@6.0.7) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.6 - -🗓 -2023-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.5...@spectrum-css/page@6.0.6) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.5 - -🗓 -2023-10-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.4...@spectrum-css/page@6.0.5) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.4 - -🗓 -2023-09-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.3...@spectrum-css/page@6.0.4) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.3 - -🗓 -2023-09-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.2...@spectrum-css/page@6.0.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.2 - -🗓 -2023-09-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.1...@spectrum-css/page@6.0.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.1 - -🗓 -2023-09-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@6.0.0...@spectrum-css/page@6.0.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 6.0.0 - -🗓 -2023-09-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.33...@spectrum-css/page@6.0.0) - -\*feat(page)!: migrate to spectrum-tokens (#2150)([bdf535b](https://github.com/adobe/spectrum-css/commit/bdf535b)), closes[#2150](https://github.com/adobe/spectrum-css/issues/2150) - - ### - 🛑 BREAKING CHANGES - - * - migrates the Page component to use `@adobe/spectrum-tokens` - - - -## 5.0.33 - -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.32...@spectrum-css/page@5.0.33) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.32 - -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.31...@spectrum-css/page@5.0.32) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.31 - -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.30...@spectrum-css/page@5.0.31) - -### 🐛 Bug fixes - -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) - - - -## 5.0.30 - -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.29...@spectrum-css/page@5.0.30) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.29 - -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.28...@spectrum-css/page@5.0.29) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.28 - -🗓 2023-05-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.27...@spectrum-css/page@5.0.28) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.27 - -🗓 2023-05-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.26...@spectrum-css/page@5.0.27) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.26 - -🗓 2023-05-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.25...@spectrum-css/page@5.0.26) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.25 - -🗓 2023-04-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.24...@spectrum-css/page@5.0.25) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.24 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.22...@spectrum-css/page@5.0.24) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.23 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.22...@spectrum-css/page@5.0.23) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.22 - -🗓 2023-04-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.20...@spectrum-css/page@5.0.22) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.21 - -🗓 2023-04-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.20...@spectrum-css/page@5.0.21) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.20 - -🗓 2023-04-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.19...@spectrum-css/page@5.0.20) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.19 - -🗓 2023-03-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.18...@spectrum-css/page@5.0.19) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.18 - -🗓 2023-02-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.17...@spectrum-css/page@5.0.18) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.17 - -🗓 2023-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.16...@spectrum-css/page@5.0.17) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.16 - -🗓 2023-02-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.15...@spectrum-css/page@5.0.16) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.15 - -🗓 2023-01-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.14...@spectrum-css/page@5.0.15) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.14 - -🗓 2023-01-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.12...@spectrum-css/page@5.0.14) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.13 - -🗓 2023-01-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.12...@spectrum-css/page@5.0.13) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.12 - -🗓 2022-11-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.11...@spectrum-css/page@5.0.12) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.11 - -🗓 2022-06-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.10...@spectrum-css/page@5.0.11) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.10 - -🗓 2022-06-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.9...@spectrum-css/page@5.0.10) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.9 - -🗓 2022-04-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.8...@spectrum-css/page@5.0.9) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.8 - -🗓 2022-04-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.7...@spectrum-css/page@5.0.8) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.7 - -🗓 2022-03-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.6...@spectrum-css/page@5.0.7) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.6 - -🗓 2022-03-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.5...@spectrum-css/page@5.0.6) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.5 - -🗓 2022-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.4...@spectrum-css/page@5.0.5) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.4 - -🗓 2022-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.3...@spectrum-css/page@5.0.4) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.3 - -🗓 2022-02-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.2...@spectrum-css/page@5.0.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.2 - -🗓 2022-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.1...@spectrum-css/page@5.0.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.1 - -🗓 2022-01-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@5.0.0...@spectrum-css/page@5.0.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 5.0.0 - -🗓 2022-01-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.9...@spectrum-css/page@5.0.0) - -### 📚 Documentation - -- use new Button markup ([886b2cb](https://github.com/adobe/spectrum-css/commit/886b2cb)) - -### 🛑 BREAKING CHANGES - -- Button markup has changed - - - -## 4.0.0 - -🗓 2022-01-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@4.0.0-beta.0...@spectrum-css/page@4.0.0) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 4.0.0-beta.0 - -🗓 2021-12-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.9...@spectrum-css/page@4.0.0-beta.0) - -### 📚 Documentation - -- use new Button markup ([629bf05](https://github.com/adobe/spectrum-css/commit/629bf05)) - -### 🛑 BREAKING CHANGES - -- Button markup has changed - - - -## 3.0.9 - -🗓 2021-12-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.8...@spectrum-css/page@3.0.9) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.8 - -🗓 2021-11-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.7...@spectrum-css/page@3.0.8) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.7 - -🗓 2021-11-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.6...@spectrum-css/page@3.0.7) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.6 - -🗓 2021-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.5...@spectrum-css/page@3.0.6) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.5 - -🗓 2021-11-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.3...@spectrum-css/page@3.0.5) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.4 - -🗓 2021-10-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.3...@spectrum-css/page@3.0.4) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.3 - -🗓 2021-09-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.3...@spectrum-css/page@3.0.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.3-alpha.3 - -🗓 2021-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.2...@spectrum-css/page@3.0.3-alpha.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.3-alpha.2 - -🗓 2021-06-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.1...@spectrum-css/page@3.0.3-alpha.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.3-alpha.1 - -🗓 2021-05-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.3-alpha.0...@spectrum-css/page@3.0.3-alpha.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.3-alpha.0 - -🗓 2021-04-27 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.2...@spectrum-css/page@3.0.3-alpha.0) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.2 - -🗓 2021-04-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.1...@spectrum-css/page@3.0.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.1 - -🗓 2021-03-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.0...@spectrum-css/page@3.0.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.0 - -🗓 2021-02-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@3.0.0-beta.0...@spectrum-css/page@3.0.0) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 3.0.0-beta.0 - -🗓 2020-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.8-beta.1...@spectrum-css/page@3.0.0-beta.0) - -### 🐛 Bug fixes - -- update main, resolved conflicts ([d7880a2](https://github.com/adobe/spectrum-css/commit/d7880a2)) -- use new Button markup ([502a1b0](https://github.com/adobe/spectrum-css/commit/502a1b0)) - -### 🛑 BREAKING CHANGES - -- markup has changed and now requires new Button markup (.spectrum-Button--sizeM) - - - -## 2.0.8-beta.1 - -🗓 2020-10-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.8-beta.0...@spectrum-css/page@2.0.8-beta.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.8-beta.0 - -🗓 2020-09-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.7...@spectrum-css/page@2.0.8-beta.0) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.7 - -🗓 2020-05-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.6...@spectrum-css/page@2.0.7) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.6 - -🗓 2020-03-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.5...@spectrum-css/page@2.0.6) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.5 - -🗓 2020-03-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.4...@spectrum-css/page@2.0.5) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.4 - -🗓 2020-02-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.3...@spectrum-css/page@2.0.4) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.3 - -🗓 2019-12-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.2...@spectrum-css/page@2.0.3) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.2 - -🗓 2019-11-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.1...@spectrum-css/page@2.0.2) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.1 - -🗓 2019-11-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/page@2.0.0...@spectrum-css/page@2.0.1) - -**Note:** Version bump only for package @spectrum-css/page - - - -## 2.0.0 - -🗓 2019-10-08 - -### ✨ Features - -- move to individually versioned packages with Lerna ([#265](https://github.com/adobe/spectrum-css/issues/265)) ([cb7fd4b](https://github.com/adobe/spectrum-css/commit/cb7fd4b)), closes [#231](https://github.com/adobe/spectrum-css/issues/231) [#214](https://github.com/adobe/spectrum-css/issues/214) [#229](https://github.com/adobe/spectrum-css/issues/229) [#240](https://github.com/adobe/spectrum-css/issues/240) [#239](https://github.com/adobe/spectrum-css/issues/239) [#161](https://github.com/adobe/spectrum-css/issues/161) [#242](https://github.com/adobe/spectrum-css/issues/242) [#246](https://github.com/adobe/spectrum-css/issues/246) [#219](https://github.com/adobe/spectrum-css/issues/219) [#235](https://github.com/adobe/spectrum-css/issues/235) [#189](https://github.com/adobe/spectrum-css/issues/189) [#248](https://github.com/adobe/spectrum-css/issues/248) [#232](https://github.com/adobe/spectrum-css/issues/232) [#248](https://github.com/adobe/spectrum-css/issues/248) [#218](https://github.com/adobe/spectrum-css/issues/218) [#237](https://github.com/adobe/spectrum-css/issues/237) [#255](https://github.com/adobe/spectrum-css/issues/255) [#256](https://github.com/adobe/spectrum-css/issues/256) [#258](https://github.com/adobe/spectrum-css/issues/258) [#257](https://github.com/adobe/spectrum-css/issues/257) [#259](https://github.com/adobe/spectrum-css/issues/259) diff --git a/components/page/README.md b/components/page/README.md deleted file mode 100644 index b9ab95ef3ff..00000000000 --- a/components/page/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# @spectrum-css/page - -> The Spectrum CSS page 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/page/metadata/metadata.json b/components/page/metadata/metadata.json deleted file mode 100644 index 3ea846415da..00000000000 --- a/components/page/metadata/metadata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "sourceFile": "index.css", - "selectors": [":root"], - "modifiers": [], - "component": [], - "global": ["--spectrum-gray-100", "--spectrum-transparent-black-100"], - "system-theme": [], - "passthroughs": [], - "high-contrast": [] -} diff --git a/components/page/metadata/mods.md b/components/page/metadata/mods.md deleted file mode 100644 index a98209f6e87..00000000000 --- a/components/page/metadata/mods.md +++ /dev/null @@ -1,2 +0,0 @@ -| Modifiable custom properties | -| ---------------------------- | diff --git a/components/page/metadata/page.yml b/components/page/metadata/page.yml deleted file mode 100644 index 750d2cbdd73..00000000000 --- a/components/page/metadata/page.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Page -description: | - The outer page container. A parent tag should only have the `.spectrum` class if using a standalone CSS file. - If using multistops, a parent tag should have both the `.spectrum` class and the corresponding colorstop variant class, i.e. `.spectrum--light`. - Finally, if scaling to large with the diff strategy, a parent tag should have the `.spectrum--large` class. -examples: - - id: page - name: Standard - markup: | - Text here!
      -

      -
      - Text here!
      -
      -

      - - -

      -
      - -
      -

      diff --git a/components/page/package.json b/components/page/package.json deleted file mode 100644 index 21fcf381781..00000000000 --- a/components/page/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@spectrum-css/page", - "version": "8.1.3", - "description": "The Spectrum CSS page component", - "license": "Apache-2.0", - "author": "Adobe", - "homepage": "https://opensource.adobe.com/spectrum-css/page", - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "components/page" - }, - "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": "./metadata/metadata.json", - "./metadata/*": "./metadata/*", - "./package.json": "./package.json", - "./stories/*": "./stories/*" - }, - "main": "dist/index.css", - "files": [ - "dist/*", - "*.md", - "package.json", - "stories/*", - "metadata/*" - ], - "peerDependencies": { - "@spectrum-css/tokens": ">=14" - }, - "devDependencies": { - "@spectrum-css/tokens": "workspace:^" - }, - "keywords": [ - "spectrum", - "css", - "design system", - "adobe" - ], - "publishConfig": { - "access": "public" - } -} diff --git a/components/page/project.json b/components/page/project.json deleted file mode 100644 index ba93abb5315..00000000000 --- a/components/page/project.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "page", - "tags": ["component"], - "targets": { - "build": {}, - "clean": {}, - "compare": {}, - "format": {}, - "lint": {}, - "report": {}, - "test": { - "defaultConfiguration": "scope" - }, - "validate": {} - } -} diff --git a/components/pagination/CHANGELOG.md b/components/pagination/CHANGELOG.md index f4001431810..6e013e870ab 100644 --- a/components/pagination/CHANGELOG.md +++ b/components/pagination/CHANGELOG.md @@ -1,5 +1,217 @@ # Change Log +## 9.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/textfield@8.0.0-s2-foundations.14 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 9.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/textfield@8.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 9.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/textfield@8.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 9.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/textfield@8.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 9.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/textfield@8.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 9.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/textfield@8.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 9.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/textfield@8.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 9.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/textfield@8.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 9.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/textfield@8.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 9.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/textfield@8.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 9.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/textfield@8.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 9.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/textfield@8.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 9.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/textfield@8.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 9.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/textfield@8.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 8.1.3 ### Patch Changes diff --git a/components/pagination/index.css b/components/pagination/index.css index c73b5629ecc..7766050d0c8 100644 --- a/components/pagination/index.css +++ b/components/pagination/index.css @@ -11,13 +11,9 @@ * governing permissions and limitations under the License. */ -.spectrum-Pagination { - --spectrum-pagination-counter-margin-inline-start: var(--spectrum-pagination-item-inline-spacing); - --spectrum-pagination-page-button-inline-spacing: var(--spectrum-pagination-item-inline-spacing); - --spectrum-pagination-counter-color: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-pagination-counter-font-size: var(--spectrum-font-size-100); - --spectrum-pagination-counter-line-height: var(--spectrum-line-height-100); +@import "./themes/spectrum-two.css"; +.spectrum-Pagination { &:dir(rtl) { --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); } diff --git a/components/pagination/metadata/pagination-button-style.yml b/components/pagination/metadata/pagination-button-style.yml deleted file mode 100644 index 9d5e4d4146e..00000000000 --- a/components/pagination/metadata/pagination-button-style.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Pagination - button style -examples: - - id: pagination-button - name: CTA - markup: | - - - id: pagination-button - name: Primary - markup: | - - - id: pagination-button - name: Secondary - markup: | - diff --git a/components/pagination/metadata/pagination-explicit.yml b/components/pagination/metadata/pagination-explicit.yml deleted file mode 100644 index 5172823a889..00000000000 --- a/components/pagination/metadata/pagination-explicit.yml +++ /dev/null @@ -1,27 +0,0 @@ -id: pagination-explicit -name: Pagination - explicit -sections: - - name: Migration Guide - description: | - ### New Textfield markup - Pagination(Explicit) now uses the new Textfield markup. See the [Textfield migration guide](textfield.html#migrationguide) for more information. You must add `.spectrum-Pagination-textfield` modifier to the outer element `div.spectrum-Textfield`. -examples: - - id: pagination-explicit - name: Standard - markup: | - diff --git a/components/pagination/metadata/pagination-listing.yml b/components/pagination/metadata/pagination-listing.yml deleted file mode 100644 index 169cafa911a..00000000000 --- a/components/pagination/metadata/pagination-listing.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Pagination - page -status: Contribution -examples: - - id: pagination-listing - name: Standard - markup: | - diff --git a/components/pagination/package.json b/components/pagination/package.json index fcdfc9130fd..68d9972eb97 100644 --- a/components/pagination/package.json +++ b/components/pagination/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/pagination", - "version": "8.1.3", + "version": "9.0.0-s2-foundations.13", "description": "The Spectrum CSS Pagination component", "license": "Apache-2.0", "author": "Adobe", @@ -36,7 +36,6 @@ "@spectrum-css/actionbutton": ">=6", "@spectrum-css/button": ">=13", "@spectrum-css/icon": ">=7", - "@spectrum-css/splitbutton": ">=8", "@spectrum-css/textfield": ">=7", "@spectrum-css/tokens": ">=14" }, @@ -44,7 +43,6 @@ "@spectrum-css/actionbutton": "workspace:^", "@spectrum-css/button": "workspace:^", "@spectrum-css/icon": "workspace:^", - "@spectrum-css/splitbutton": "^8.1.2", "@spectrum-css/textfield": "workspace:^", "@spectrum-css/tokens": "workspace:^" }, diff --git a/components/pagination/stories/pagination.test.js b/components/pagination/stories/pagination.test.js index 43cccd9e9e0..24f80f6fcc5 100644 --- a/components/pagination/stories/pagination.test.js +++ b/components/pagination/stories/pagination.test.js @@ -12,9 +12,5 @@ export const PaginationGroup = Variants({ testHeading: "Explicit", variant: "explicit", }, - { - testHeading: "Button", - variant: "button", - }, ] }); diff --git a/components/pagination/stories/template.js b/components/pagination/stories/template.js index efb50b44bbf..7a85122f7cf 100644 --- a/components/pagination/stories/template.js +++ b/components/pagination/stories/template.js @@ -1,12 +1,14 @@ import { Template as ActionButton } from "@spectrum-css/actionbutton/stories/template.js"; import { Template as Button } from "@spectrum-css/button/stories/template.js"; -import { Default as SplitButton } from "@spectrum-css/preview/deprecated/splitbutton/splitbutton.stories.js"; import { Template as Textfield } from "@spectrum-css/textfield/stories/template.js"; import { html } from "lit"; import { classMap } from "lit/directives/class-map.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-Pagination", @@ -15,7 +17,6 @@ export const Template = ({ variant, items } = {}, context = {}) => { - const explicitVariant = html`
    - - - id: picker-sizing - name: Sizing - markup: | -

    S

    - - -

    M

    - - -

    L

    - - -

    XL

    - - - id: picker-quiet - name: Quiet - status: Verified - markup: | -

    Closed

    -
    Country
    - - -

    Open

    - -
    -
      -
    • - Ballard - -
    • -
    • - Fremont - -
    • -
    • - Greenwood - -
    • - -
    • - United States of America - -
    • -
    -
    - -
    - -

    Open - With Thumbnails

    - -
    -
      -
    • - - Ballard - -
    • -
    • - - Fremont - -
    • -
    • - - Greenwood - -
    • - -
    • - - United States of America - -
    • -
    -
    - -
    - -

    Side Label

    -
    Country
    - - -

    Disabled

    - - -

    Closed and Invalid

    - - -

    Open and Invalid

    - -
    -
      -
    • - Ballard - -
    • -
    • - Fremont - -
    • -
    • - Greenwood - -
    • - -
    • - United States of America - -
    • -
    -
    - -
    - -

    Disabled and Invalid

    - diff --git a/components/picker/package.json b/components/picker/package.json index 38adef5cb20..94e5b5935c2 100644 --- a/components/picker/package.json +++ b/components/picker/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/picker", - "version": "8.1.6", + "version": "9.0.0-s2-foundations.13", "description": "The Spectrum CSS picker component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/picker/stories/template.js b/components/picker/stories/template.js index 40b71ffb7b2..042cbe6fbba 100644 --- a/components/picker/stories/template.js +++ b/components/picker/stories/template.js @@ -11,6 +11,9 @@ 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 Picker = ({ rootClass = "spectrum-Picker", diff --git a/components/picker/themes/express.css b/components/picker/themes/express.css index 05de433acae..e0faeee531c 100644 --- a/components/picker/themes/express.css +++ b/components/picker/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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); diff --git a/components/picker/themes/spectrum-two.css b/components/picker/themes/spectrum-two.css new file mode 100644 index 00000000000..e05a16e0cee --- /dev/null +++ b/components/picker/themes/spectrum-two.css @@ -0,0 +1,162 @@ +/*! + * 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 + * + * 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-50); + --spectrum-picker-background-color-default-open: var(--spectrum-gray-100); + --spectrum-picker-background-color-active: var(--spectrum-gray-200); + --spectrum-picker-background-color-hover: var(--spectrum-gray-100); + --spectrum-picker-background-color-hover-open: var(--spectrum-gray-100); + --spectrum-picker-background-color-key-focus: var(--spectrum-gray-100); + + --spectrum-picker-border-color-default: var(--spectrum-gray-500); + --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-600); + --spectrum-picker-border-color-active: var(--spectrum-gray-700); + --spectrum-picker-border-color-key-focus: var(--spectrum-gray-600); + + --spectrum-picker-border-width: var(--spectrum-border-width-100); + + /* 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); + + /* height */ + --spectrum-picker-block-size: var(--spectrum-component-height-100); + --spectrum-picker-inline-size: var(--spectrum-field-width); + + /* border */ + --spectrum-picker-border-radius: var(--spectrum-corner-radius-100); + + /* 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); + --spectrum-picker-spacing-label-to-picker: var(--spectrum-field-label-to-component); + + --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); + --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-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); + + & + .spectrum-Popover--bottom.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 */ + --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); + --spectrum-picker-font-color-hover-open: var(--spectrum-neutral-content-color-focus-hover); + --spectrum-picker-font-color-active: var(--spectrum-neutral-content-color-down); + --spectrum-picker-font-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-picker-icon-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-picker-icon-color-default-open: var(--spectrum-neutral-content-color-focus); + --spectrum-picker-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-picker-icon-color-hover-open: var(--spectrum-neutral-content-color-focus-hover); + --spectrum-picker-icon-color-active: var(--spectrum-neutral-content-color-down); + --spectrum-picker-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-picker-border-color-error-default: var(--spectrum-negative-border-color-default); + --spectrum-picker-border-color-error-default-open: var(--spectrum-negative-border-color-focus); + --spectrum-picker-border-color-error-hover: var(--spectrum-negative-border-color-hover); + --spectrum-picker-border-color-error-hover-open: var(--spectrum-negative-border-color-focus-hover); + --spectrum-picker-border-color-error-active: var(--spectrum-negative-border-color-down); + --spectrum-picker-border-color-error-key-focus: var(--spectrum-negative-border-color-key-focus); + + --spectrum-picker-icon-color-error: var(--spectrum-negative-visual-color); + + --spectrum-picker-background-color-disabled: var(--spectrum-disabled-background-color); + --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 */ + --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-Picker--sizeS { + --spectrum-picker-font-size: var(--spectrum-font-size-75); + --spectrum-picker-block-size: var(--spectrum-component-height-75); + --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-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-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-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-block-size: var(--spectrum-component-height-200); + --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-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-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-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-block-size: var(--spectrum-component-height-300); + --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-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-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-picker-spacing-picker-to-popover: var(--spectrum-component-to-menu-extra-large); + } + } +} diff --git a/components/picker/themes/spectrum.css b/components/picker/themes/spectrum.css index b98f70f57ea..185cf8a2d7c 100644 --- a/components/picker/themes/spectrum.css +++ b/components/picker/themes/spectrum.css @@ -11,7 +11,12 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @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); @@ -19,14 +24,5 @@ --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-default-open: var(--spectrum-gray-500); - --spectrum-picker-border-color-hover: var(--spectrum-gray-600); - --spectrum-picker-border-color-hover-open: var(--spectrum-gray-600); - --spectrum-picker-border-color-active: var(--spectrum-gray-700); - --spectrum-picker-border-color-key-focus: var(--spectrum-gray-600); - - --spectrum-picker-border-width: var(--spectrum-border-width-100); } } diff --git a/components/pickerbutton/CHANGELOG.md b/components/pickerbutton/CHANGELOG.md index 0d9084c1bbf..dd32ba0108e 100644 --- a/components/pickerbutton/CHANGELOG.md +++ b/components/pickerbutton/CHANGELOG.md @@ -1,5 +1,209 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/popover@8.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Patch Changes + +- [#3023](https://github.com/adobe/spectrum-css/pull/3023) [`213efa8`](https://github.com/adobe/spectrum-css/commit/213efa8618cdccf75a274ee9c2dd0404864c1779) Thanks [@jawinn](https://github.com/jawinn)! - Relocates --mod custom properties from the themes CSS to the index.css. + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/popover@8.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/popover@8.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/popover@8.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/popover@8.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/popover@8.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/popover@8.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/popover@8.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/popover@8.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/popover@8.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/popover@8.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/popover@8.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/popover@8.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/popover@8.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/pickerbutton/index.css b/components/pickerbutton/index.css index 14b89f9bbfd..467a3d9702f 100644 --- a/components/pickerbutton/index.css +++ b/components/pickerbutton/index.css @@ -11,84 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-PickerButton { - --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); - - --spectrum-picker-button-padding: var(--spectrum-in-field-button-edge-to-fill); - --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-50); - --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-100); - - --spectrum-picker-button-border-radius-rounded: var(--spectrum-corner-radius-200); - - --spectrum-picker-button-icon-color: var(--spectrum-neutral-content-color-default); - --spectrum-picker-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-picker-button-icon-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-picker-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-picker-button-font-color: var(--spectrum-neutral-content-color-default); - --spectrum-picker-button-font-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-picker-button-font-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-picker-button-font-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-picker-button-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-picker-button-font-style: var(--spectrum-default-font-style); - --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-background-animation-duration: var(--spectrum-animation-duration-100); - - &:disabled { - --mod-picker-button-background-color: var(--mod-picker-button-background-color-disabled, var(--spectrum-disabled-background-color)); - --mod-picker-button-background-color-hover: var(--mod-picker-button-background-color-hover-disabled, var(--spectrum-disabled-background-color)); - --mod-picker-button-background-color-down: var(--mod-picker-button-background-color-down-disabled, var(--spectrum-disabled-background-color)); - --mod-picker-button-border-color: var(--mod-picker-button-border-color-disabled, var(--spectrum-disabled-background-color)); - - --mod-picker-button-font-color: var(--mod-picker-button-font-color-disabled, var(--spectrum-disabled-content-color)); - --mod-picker-button-font-color-hover: var(--mod-picker-button-font-color-hover-disabled, var(--spectrum-disabled-content-color)); - --mod-picker-button-font-color-down: var(--mod-picker-button-font-color-down-disabled, var(--spectrum-disabled-content-color)); - - --mod-picker-button-icon-color: var(--mod-picker-button-icon-color-disabled, var(--spectrum-disabled-content-color)); - --mod-picker-button-icon-color-hover: var(--mod-picker-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); - --mod-picker-button-icon-color-down: var(--mod-picker-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); - } - - &.spectrum-PickerButton--quiet { - --mod-picker-button-background-color: var(--mod-picker-button-background-color-quiet, transparent); - --mod-picker-button-background-color-hover: var(--mod-picker-button-background-color-hover-quiet, transparent); - --mod-picker-button-background-color-down: var(--mod-picker-button-background-color-down-quiet, transparent); - --mod-picker-button-background-color-key-focus: var(--mod-picker-button-background-color-key-focus-quiet, transparent); - - --mod-picker-button-border-color: var(--mod-picker-button-border-color-quiet, transparent); - } - - &.spectrum-PickerButton--sizeS { - --spectrum-picker-button-height: var(--spectrum-component-height-75); - --spectrum-picker-button-width: var(--spectrum-component-height-75); - --spectrum-picker-button-label-padding: var(--spectrum-spacing-75); - --spectrum-picker-button-font-size: var(--spectrum-font-size-75); - --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-75); - } - - &.spectrum-PickerButton--sizeL { - --spectrum-picker-button-height: var(--spectrum-component-height-200); - --spectrum-picker-button-width: var(--spectrum-component-height-200); - --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-200); - --spectrum-picker-button-font-size: var(--spectrum-font-size-200); - --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-200); - } - - &.spectrum-PickerButton--sizeXL { - --spectrum-picker-button-height: var(--spectrum-component-height-300); - --spectrum-picker-button-width: var(--spectrum-component-height-300); - --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-300); - --spectrum-picker-button-font-size: var(--spectrum-font-size-300); - --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-300); - } -} +@import "./themes/spectrum-two.css"; .spectrum-PickerButton { border-style: none; @@ -145,6 +68,35 @@ color: var(--mod-picker-button-icon-color-key-focus, var(--spectrum-picker-button-icon-color-key-focus)); } } + + &:disabled, + &.is-disabled { + --mod-picker-button-background-color: var(--mod-picker-button-background-color-disabled, var(--spectrum-picker-button-background-color-disabled)); + --mod-picker-button-background-color-hover: var(--mod-picker-button-background-color-hover-disabled, var(--spectrum-picker-button-background-color-hover-disabled)); + --mod-picker-button-background-color-down: var(--mod-picker-button-background-color-down-disabled, var(--spectrum-picker-button-background-color-down-disabled)); + --mod-picker-button-border-color: var(--mod-picker-button-border-color-disabled, var(--spectrum-picker-button-border-color-disabled)); + + --mod-picker-button-font-color: var(--mod-picker-button-font-color-disabled, var(--spectrum-picker-button-font-color-disabled)); + --mod-picker-button-font-color-hover: var(--mod-picker-button-font-color-hover-disabled, var(--spectrum-picker-button-font-color-hover-disabled)); + --mod-picker-button-font-color-down: var(--mod-picker-button-font-color-down-disabled, var(--spectrum-picker-button-font-color-down-disabled)); + + --mod-picker-button-icon-color: var(--mod-picker-button-icon-color-disabled, var(--spectrum-picker-button-icon-color-disabled)); + --mod-picker-button-icon-color-hover: var(--mod-picker-button-icon-color-hover-disabled, var(--spectrum-picker-button-icon-color-hover-disabled)); + --mod-picker-button-icon-color-down: var(--mod-picker-button-icon-color-down-disabled, var(--spectrum-picker-button-icon-color-down-disabled)); + } + + &.spectrum-PickerButton--quiet { + --mod-picker-button-background-color: var(--mod-picker-button-background-color-quiet, transparent); + --mod-picker-button-background-color-hover: var(--mod-picker-button-background-color-hover-quiet, transparent); + --mod-picker-button-background-color-down: var(--mod-picker-button-background-color-down-quiet, transparent); + --mod-picker-button-background-color-key-focus: var(--mod-picker-button-background-color-key-focus-quiet, transparent); + --mod-picker-button-border-color: var(--mod-picker-button-border-color-quiet, transparent); + + &:disabled, + &.is-disabled { + --mod-picker-button-background-color: var(--mod-picker-button-background-color-quiet, transparent); + } + } } .spectrum-PickerButton--right { diff --git a/components/pickerbutton/metadata/metadata.json b/components/pickerbutton/metadata/metadata.json index c605d88694b..919d263c50f 100644 --- a/components/pickerbutton/metadata/metadata.json +++ b/components/pickerbutton/metadata/metadata.json @@ -14,6 +14,7 @@ ".spectrum-PickerButton-fill", ".spectrum-PickerButton-icon", ".spectrum-PickerButton-label", + ".spectrum-PickerButton.is-disabled", ".spectrum-PickerButton.is-focused .spectrum-PickerButton-fill", ".spectrum-PickerButton.is-focused .spectrum-PickerButton-icon", ".spectrum-PickerButton.is-focused .spectrum-PickerButton-label", @@ -24,6 +25,8 @@ ".spectrum-PickerButton.is-open .spectrum-PickerButton-icon", ".spectrum-PickerButton.is-open .spectrum-PickerButton-label", ".spectrum-PickerButton.spectrum-PickerButton--quiet", + ".spectrum-PickerButton.spectrum-PickerButton--quiet.is-disabled", + ".spectrum-PickerButton.spectrum-PickerButton--quiet:disabled", ".spectrum-PickerButton.spectrum-PickerButton--sizeL", ".spectrum-PickerButton.spectrum-PickerButton--sizeS", ".spectrum-PickerButton.spectrum-PickerButton--sizeXL", @@ -90,10 +93,14 @@ "component": [ "--spectrum-picker-button-background-animation-duration", "--spectrum-picker-button-background-color", + "--spectrum-picker-button-background-color-disabled", "--spectrum-picker-button-background-color-down", + "--spectrum-picker-button-background-color-down-disabled", "--spectrum-picker-button-background-color-hover", + "--spectrum-picker-button-background-color-hover-disabled", "--spectrum-picker-button-background-color-key-focus", "--spectrum-picker-button-border-color", + "--spectrum-picker-button-border-color-disabled", "--spectrum-picker-button-border-radius", "--spectrum-picker-button-border-radius-rounded", "--spectrum-picker-button-border-radius-rounded-sided", @@ -101,8 +108,11 @@ "--spectrum-picker-button-border-width", "--spectrum-picker-button-fill-padding", "--spectrum-picker-button-font-color", + "--spectrum-picker-button-font-color-disabled", "--spectrum-picker-button-font-color-down", + "--spectrum-picker-button-font-color-down-disabled", "--spectrum-picker-button-font-color-hover", + "--spectrum-picker-button-font-color-hover-disabled", "--spectrum-picker-button-font-color-key-focus", "--spectrum-picker-button-font-family", "--spectrum-picker-button-font-size", @@ -111,8 +121,11 @@ "--spectrum-picker-button-gap", "--spectrum-picker-button-height", "--spectrum-picker-button-icon-color", + "--spectrum-picker-button-icon-color-disabled", "--spectrum-picker-button-icon-color-down", + "--spectrum-picker-button-icon-color-down-disabled", "--spectrum-picker-button-icon-color-hover", + "--spectrum-picker-button-icon-color-hover-disabled", "--spectrum-picker-button-icon-color-key-focus", "--spectrum-picker-button-label-padding", "--spectrum-picker-button-padding", @@ -128,7 +141,6 @@ "--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", @@ -140,10 +152,9 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-400", - "--spectrum-gray-75", + "--spectrum-gray-50", "--spectrum-in-field-button-edge-to-fill", "--spectrum-neutral-content-color-default", "--spectrum-neutral-content-color-down", @@ -155,17 +166,7 @@ "--spectrum-text-to-visual-300", "--spectrum-text-to-visual-50" ], - "system-theme": [ - "--system-spectrum-pickerbutton-spectrum-picker-button-background-color", - "--system-spectrum-pickerbutton-spectrum-picker-button-background-color-down", - "--system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover", - "--system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus", - "--system-spectrum-pickerbutton-spectrum-picker-button-border-color", - "--system-spectrum-pickerbutton-spectrum-picker-button-border-radius", - "--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided", - "--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided", - "--system-spectrum-pickerbutton-spectrum-picker-button-border-width" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [] } diff --git a/components/pickerbutton/metadata/pickerbutton.yml b/components/pickerbutton/metadata/pickerbutton.yml deleted file mode 100644 index be4fbe0f6a6..00000000000 --- a/components/pickerbutton/metadata/pickerbutton.yml +++ /dev/null @@ -1,154 +0,0 @@ -name: Picker button -status: Contribution -SpectrumSiteSlug: https://spectrum.adobe.com/page/picker/ -sections: - - name: Migration Guide - description: | - ### Picker button uses the [Quiet](pickerbutton.html#quiet) variant instead of loudness levels. - - The Loudness level classes, `.spectrum-PickerButton--low`, `.spectrum-PickerButton--medium`, and `.spectrum-PickerButton--high`, have been removed. - - - Use the base class, `.spectrum-PickerButton`, to apply the default button styles. The default styles correspond to what was previously the Loudness - High variant, which used the class `.spectrum-InfieldButton--high`. - - Use the modifier class, `spectrum-PickerButton--quiet`, to apply the quiet variant styles. Quiet corresponds to what was previously the Loudness - Low variant, which used the class `.spectrum-InfieldButton--low` class. - - The Loudness - Medium variant has been removed, so there is no equivalent. - - ### .spectrum-PickerButton-UIIcon class removed - - The `.spectrum-PickerButton-UIIcon` class no longer matches our naming convention. Both types of icons now use the `spectrum-PickerButton-icon` class - -examples: - - id: pickerbutton-sizing - name: Sizing - markup: | -
    -
    -

    S

    - -
    - -
    -

    M

    - -
    - -
    -

    L

    - -
    - -
    -

    XL

    - -
    -
    - - - id: pickerbutton-quiet - name: Quiet - markup: | - - - - id: pickerbutton-texticon - name: Text icon - markup: | - - - - id: pickerbutton-icononly - name: UI icon only - markup: | - - - - id: pickerbutton-icononly-custom - name: Custom icon only - markup: | - - - - id: pickerbutton-rounded - name: Rounded - markup: | - - - - id: pickerbutton-open - name: Open - markup: | - - - - id: pickerbutton-disabled - name: Disabled - markup: | - diff --git a/components/pickerbutton/package.json b/components/pickerbutton/package.json index 7e9539acce3..2f1a627190a 100644 --- a/components/pickerbutton/package.json +++ b/components/pickerbutton/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/pickerbutton", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS picker button component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/pickerbutton/stories/template.js b/components/pickerbutton/stories/template.js index b2365dff866..0d72a52ed53 100644 --- a/components/pickerbutton/stories/template.js +++ b/components/pickerbutton/stories/template.js @@ -8,6 +8,9 @@ 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 index f399ef81f83..1f3981fbcbc 100644 --- a/components/pickerbutton/themes/express.css +++ b/components/pickerbutton/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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); diff --git a/components/pickerbutton/themes/spectrum-two.css b/components/pickerbutton/themes/spectrum-two.css new file mode 100644 index 00000000000..10aa9c27769 --- /dev/null +++ b/components/pickerbutton/themes/spectrum-two.css @@ -0,0 +1,91 @@ +/*! + * 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 + * + * 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: 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-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); + + --spectrum-picker-button-padding: var(--spectrum-in-field-button-edge-to-fill); + --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-50); + --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-100); + + --spectrum-picker-button-border-radius-rounded: var(--spectrum-corner-radius-200); + + --spectrum-picker-button-icon-color: var(--spectrum-neutral-content-color-default); + --spectrum-picker-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-picker-button-icon-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-picker-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-picker-button-font-color: var(--spectrum-neutral-content-color-default); + --spectrum-picker-button-font-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-picker-button-font-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-picker-button-font-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-picker-button-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-picker-button-font-style: var(--spectrum-default-font-style); + --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-background-animation-duration: var(--spectrum-animation-duration-100); + + --spectrum-picker-button-background-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-picker-button-background-color-hover-disabled: var(--spectrum-disabled-background-color); + --spectrum-picker-button-background-color-down-disabled: var(--spectrum-disabled-background-color); + --spectrum-picker-button-border-color-disabled: var(--spectrum-disabled-background-color); + + --spectrum-picker-button-font-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-picker-button-font-color-hover-disabled: var(--spectrum-disabled-content-color); + --spectrum-picker-button-font-color-down-disabled: var(--spectrum-disabled-content-color); + + --spectrum-picker-button-icon-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-picker-button-icon-color-hover-disabled: var(--spectrum-disabled-content-color); + --spectrum-picker-button-icon-color-down-disabled: var(--spectrum-disabled-content-color); + + &.spectrum-PickerButton--sizeS { + --spectrum-picker-button-height: var(--spectrum-component-height-75); + --spectrum-picker-button-width: var(--spectrum-component-height-75); + --spectrum-picker-button-label-padding: var(--spectrum-spacing-75); + --spectrum-picker-button-font-size: var(--spectrum-font-size-75); + --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-75); + } + + &.spectrum-PickerButton--sizeL { + --spectrum-picker-button-height: var(--spectrum-component-height-200); + --spectrum-picker-button-width: var(--spectrum-component-height-200); + --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-200); + --spectrum-picker-button-font-size: var(--spectrum-font-size-200); + --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-200); + } + + &.spectrum-PickerButton--sizeXL { + --spectrum-picker-button-height: var(--spectrum-component-height-300); + --spectrum-picker-button-width: var(--spectrum-component-height-300); + --spectrum-picker-button-label-padding: var(--spectrum-text-to-visual-300); + --spectrum-picker-button-font-size: var(--spectrum-font-size-300); + --spectrum-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-300); + } + } +} diff --git a/components/pickerbutton/themes/spectrum.css b/components/pickerbutton/themes/spectrum.css index 1daf4d9af8e..3b74f86d055 100644 --- a/components/pickerbutton/themes/spectrum.css +++ b/components/pickerbutton/themes/spectrum.css @@ -11,17 +11,16 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @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); } } diff --git a/components/popover/CHANGELOG.md b/components/popover/CHANGELOG.md index 553ff7c258e..62d8601d492 100644 --- a/components/popover/CHANGELOG.md +++ b/components/popover/CHANGELOG.md @@ -1,5 +1,223 @@ # Change Log +## 8.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.13 + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/dialog@11.0.0-s2-foundations.13 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.13 + +### Patch Changes + +- [#2982](https://github.com/adobe/spectrum-css/pull/2982) [`dffdefa`](https://github.com/adobe/spectrum-css/commit/dffdefaa1ffc39fbf7706e218d261da3a02695b5) Thanks [@castastrophe](https://github.com/castastrophe)! - Remove internal-only --flow-direction variable + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.12 + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/dialog@11.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.11 + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/dialog@11.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.10 + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/dialog@11.0.0-s2-foundations.10 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.9 + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/dialog@11.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.8 + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/dialog@11.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.7 + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/dialog@11.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/alertdialog@3.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/dialog@11.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.5 + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/dialog@11.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.4 + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/dialog@11.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.3 + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/dialog@11.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.2 + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/dialog@11.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/alertdialog@3.0.0-s2-foundations.1 + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/dialog@11.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/alertdialog@3.0.0-s2-foundations.0 + - @spectrum-css/dialog@11.0.0-s2-foundations.0 + ## 7.1.6 ### Patch Changes diff --git a/components/popover/index.css b/components/popover/index.css index 5c94377b78c..4978d4e7cf7 100644 --- a/components/popover/index.css +++ b/components/popover/index.css @@ -11,38 +11,8 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; @import "@spectrum-css/commons/overlay.css"; - -.spectrum-Popover { - /* animation distance is equal to and responsible for popover offset */ - --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); - - /* popover inner padding */ - --spectrum-popover-content-area-spacing-vertical: var(--spectrum-popover-top-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); - - /* popover corner radius */ - --spectrum-popover-corner-radius: var(--spectrum-corner-radius-100); - - /* 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)); - - /* 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)); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { @@ -52,9 +22,10 @@ } .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))); @extend %spectrum-overlay; + --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))); + box-sizing: border-box; position: absolute; diff --git a/components/popover/metadata/metadata.json b/components/popover/metadata/metadata.json index c0ec791c2b5..8f8a0a0934f 100644 --- a/components/popover/metadata/metadata.json +++ b/components/popover/metadata/metadata.json @@ -148,7 +148,7 @@ "--spectrum-gray-400", "--spectrum-spacing-100" ], - "system-theme": ["--system-spectrum-popover-border-width"], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-popover-background-color", diff --git a/components/popover/metadata/popover.yml b/components/popover/metadata/popover.yml deleted file mode 100644 index 6bcff1652b6..00000000000 --- a/components/popover/metadata/popover.yml +++ /dev/null @@ -1,666 +0,0 @@ -name: Popover -SpectrumSiteSlug: https://spectrum.adobe.com/page/popover/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### New Popover Positions - - Popover has 22 available positions. 10 positions use logical properties. - - Popover position and distance to source should be handled by implementation. - - In this document, Popover positions will appear to only impact default tip positioning because popovers in this document are already open by default. - - Animation direction, speed, and distance are handled by overlay. - - #### Position Class Naming - - First position term is popover position, second term is source position. - - Example: --top-left = popover is to top and source is to left. - - Popover has 8px spacing from the source by default. - - #### Position of Tip - - Default tip position is centered on the edge for top/bottom/left/right/start/end positions. - - Default tip position distance from edge is equal to popover corner radius for all other positions. - - Popover tip position can be overridden in implementation to center with the source by setting '--spectrum-popover-pointer-edge-offset' equal to half the width of the source (for top and bottom popovers) or half the height of the source (for side popovers). - - #### Tip SVG - - Tip SVG should be updated in the markup - - Popover tip SVG polygon can retain the same markup and points for top and bottom (it is flipped in the CSS) - - Popover tip SVG polygon can retain the same markup and points for left/right/start/end (it is flipped in the CSS) - -examples: - - id: popover - name: Standard - markup: | -
    -
    -

    Default

    -
    -
    -
      -
    • - Ballard -
    • -
    • - Fremont -
    • -
    • - Greenwood -
    • - -
    • - United States of America -
    • -
    -
    -
    - -
    - -
    -

    With Tip

    -
    -
    -
      -
    • - Ballard -
    • -
    • - Fremont -
    • -
    • - Greenwood -
    • - -
    • - United States of America -
    • -
    - - - -
    -
    - -
    -
    - - - id: popover-offset-animation - name: Popover - Offset and Animation - description: Spectrum Popover has an offset default of 8px distance from the source that is applied with an animation transform when the `.is-open` class is added. - markup: | -
    -
    -

    Top with Tip

    -
    - -
    - - -
    -
    - -
    -

    Bottom with Tip

    - - - - -
    -
    -
    - - - id: popover-cross-offset - name: Popover - Cross Offset - description: Spectrum Popover tip distance to edge can be overridden in implementation by setting the property to half of the source width or height. This results in the tip centering with the center of the source. - markup: | -
    -
    -

    Cross Offset of Tip = 50px

    -
    - -
    - - -
    -
    - -
    -

    Cross Offset of Tip = 50px

    - - - - -
    -
    -
    - - - id: popover-dialog - name: Popover - Dialog style - description: Spectrum Popovers are implemented using the Dialog and Alert Dialog inner elements. - markup: | -
    -
    -

    Dialog

    - -
    -
    - -
    -

    Alert Dialog - Error

    - -
    -
    -
    - - - id: popover-top - name: Popover - Position Top - markup: | -
    -
    -

    Top

    - -
    -
    -
    - -
    -
    -

    Top Start

    - -
    -
    - -
    -

    Top End

    - -
    -
    -
    - -
    -
    -

    Top Left

    - -
    -
    - -
    -

    Top Right

    - -
    -
    -
    - - - id: popover-bottom - name: Popover - Position Bottom - markup: | -
    -
    -

    Bottom

    - -
    -
    -
    -
    - -
    -
    -

    Bottom Start

    - -
    -
    -
    - -
    -

    Bottom End

    - -
    -
    -
    -
    - -
    -
    -

    Bottom Left

    - -
    -
    -
    - -
    -

    Bottom Right

    - -
    -
    -
    - - - id: popover-left - name: Popover - Position Left - markup: | -
    -
    -

    Left

    - -
    -
    -
    - -
    -
    -

    Left Top

    - -
    -
    - -
    -

    Left Bottom

    - -
    -
    -
    - - - id: popover-right - name: Popover - Position Right - markup: | -
    -
    -

    Right

    - -
    -
    -
    -
    - -
    -
    -

    Right Top

    - -
    -
    - -
    -

    Right Bottom

    - -
    -
    -
    - - - id: popover-start - name: Popover - Position Start - markup: | -
    -
    -

    Start

    - -
    -
    -
    - -
    -
    -

    Start Top

    - -
    -
    - -
    -

    Start Bottom

    - -
    -
    -
    - - - id: popover-end - name: Popover - Position End - markup: | -
    -
    -

    End

    - -
    -
    -
    - -
    -
    -

    End Top

    - -
    -
    - -
    -

    End Bottom

    - -
    -
    -
    diff --git a/components/popover/package.json b/components/popover/package.json index 54205fecb68..9169a291772 100644 --- a/components/popover/package.json +++ b/components/popover/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/popover", - "version": "7.1.6", + "version": "8.0.0-s2-foundations.14", "description": "The Spectrum CSS popover component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/popover/stories/template.js b/components/popover/stories/template.js index 1be2e30689e..9d18ec4dc87 100644 --- a/components/popover/stories/template.js +++ b/components/popover/stories/template.js @@ -6,8 +6,12 @@ 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 } from "lodash-es"; import "../index.css"; +import "../themes/spectrum.css"; +/* Must be imported last */ +import "../themes/express.css"; export const Template = ({ rootClass = "spectrum-Popover", @@ -186,8 +190,7 @@ export const Template = ({ class=${classMap({ [rootClass]: true, "is-open": isOpen, - [`${rootClass}--size${size?.toUpperCase()}`]: - typeof size !== "undefined", + [`${rootClass}--size${capitalize(size)}`]: typeof size !== "undefined", [`${rootClass}--withTip`]: withTip, [`${rootClass}--${position}`]: typeof position !== "undefined", ...customClasses.reduce((a, c) => ({ ...a, [c]: true }), {}), @@ -275,7 +278,7 @@ export const TipPlacementVariants = (args, context) => { /** * Contains a source button with a fixed width, and an always open Popover. */ -export const FixedWidthSourceTemplate = (args) => html` +export const FixedWidthSourceTemplate = (args, context) => html`
    ${ActionButton({ label: "Source", @@ -283,12 +286,12 @@ export const FixedWidthSourceTemplate = (args) => html` width: "100px", display: "block", }, - })} + }, context)} ${Template({ ...args, position: "bottom-start", isOpen: true, trigger: () => null, - })} + }, context)}
    `; diff --git a/components/popover/themes/express.css b/components/popover/themes/express.css index 4748454f03d..d034e34fb0b 100644 --- a/components/popover/themes/express.css +++ b/components/popover/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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 new file mode 100644 index 00000000000..5a227df273b --- /dev/null +++ b/components/popover/themes/spectrum-two.css @@ -0,0 +1,46 @@ +/*! + * 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 + * + * 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); + + /* animation distance is equal to and responsible for popover offset */ + --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); + + /* popover inner padding */ + --spectrum-popover-content-area-spacing-vertical: var(--spectrum-popover-top-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); + + /* popover corner radius */ + --spectrum-popover-corner-radius: var(--spectrum-corner-radius-100); + + /* 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)); + + /* 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)); + } +} diff --git a/components/popover/themes/spectrum.css b/components/popover/themes/spectrum.css index 2f0c2993266..5a930981122 100644 --- a/components/popover/themes/spectrum.css +++ b/components/popover/themes/spectrum.css @@ -11,8 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Popover { - --spectrum-popover-border-width: var(--spectrum-border-width-100); - } -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/progressbar/CHANGELOG.md b/components/progressbar/CHANGELOG.md index 6b8e98e98ea..b7146728fe0 100644 --- a/components/progressbar/CHANGELOG.md +++ b/components/progressbar/CHANGELOG.md @@ -1,5 +1,192 @@ # Change Log +## 5.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.14 + +### Patch Changes + +- [#3023](https://github.com/adobe/spectrum-css/pull/3023) [`213efa8`](https://github.com/adobe/spectrum-css/commit/213efa8618cdccf75a274ee9c2dd0404864c1779) Thanks [@jawinn](https://github.com/jawinn)! - Relocates --mod custom properties from the themes CSS to the index.css. + +## 5.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-235] meter properties moved out of theme and into index.css + +### Patch Changes + +- Updated dependencies [[`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f), [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.14 + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/fieldlabel@9.0.0-s2-foundations.0 + ## 4.1.7 ### Patch Changes diff --git a/components/progressbar/index.css b/components/progressbar/index.css index d7eb060eb8c..c9b8f8f80d1 100644 --- a/components/progressbar/index.css +++ b/components/progressbar/index.css @@ -11,121 +11,23 @@ * governing permissions and limitations under the License. */ -.spectrum-ProgressBar { - /* 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-100); - - --spectrum-progressbar-fill-size-indeterminate: 70%; - - /* --spectrum-global-dimension-static-size-2400 */ - --spectrum-progressbar-size-2400: 192px; - - /* --spectrum-global-dimension-static-size-2500 */ - --spectrum-progressbar-size-2500: 200px; - - /* --spectrum-global-dimension-static-size-2800 */ - --spectrum-progressbar-size-2800: 224px; - - /* Size */ - --spectrum-progressbar-font-size: var(--spectrum-font-size-75); - --spectrum-progressbar-line-height-cjk: var(--spectrum-cjk-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); - --spectrum-progressbar-line-height: var(--spectrum-line-height-100); - - /* Spacing */ - --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-text-color: var(--spectrum-neutral-content-color-default); - --spectrum-progressbar-track-color: var(--spectrum-gray-300); - --spectrum-progressbar-fill-color: var(--spectrum-accent-color-900); - --spectrum-progressbar-fill-color-positive: var(--spectrum-positive-visual-color); - --spectrum-progressbar-fill-color-notice: var(--spectrum-notice-visual-color); - --spectrum-progressbar-fill-color-negative: var(--spectrum-negative-visual-color); - --spectrum-progressbar-label-and-value-white: var(--spectrum-white); - --spectrum-progressbar-track-color-white: var(--spectrum-transparent-white-300); - --spectrum-progressbar-fill-color-white: var(--spectrum-white); - - /* Meter */ - --spectrum-meter-min-width: var(--spectrum-meter-minimum-width); - --spectrum-meter-max-width: var(--spectrum-meter-maximum-width); - --spectrum-meter-inline-size: var(--spectrum-meter-default-width); - --spectrum-meter-thickness-s: var(--spectrum-meter-thickness-small); - --spectrum-meter-thickness-l: var(--spectrum-meter-thickness-large); - --spectrum-meter-top-to-text: var(--spectrum-component-top-to-text); -} - -.spectrum-ProgressBar--sizeS, -.spectrum-Meter--sizeS { - --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); - - --spectrum-progressbar-font-size: var(--spectrum-font-size-75); - --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-small); - - --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); -} - -.spectrum-ProgressBar--sizeM { - --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); - - --spectrum-progressbar-font-size: var(--spectrum-font-size-75); - --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-large); - - --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); -} - -.spectrum-ProgressBar--sizeL, -.spectrum-Meter--sizeL { - --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2500); - - --spectrum-progressbar-font-size: var(--spectrum-font-size-100); - --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-large); - - --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); -} - -.spectrum-ProgressBar--sizeXL { - --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2800); - - --spectrum-progressbar-font-size: var(--spectrum-font-size-200); - --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-extra-large); - - --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-300); -} +@import "./themes/spectrum-two.css"; .spectrum-Meter { --spectrum-progressbar-size-default: var(--mod-meter-inline-size, var(--spectrum-meter-inline-size)); --spectrum-progressbar-max-size: var(--mod-meter-max-width, var(--spectrum-meter-max-width)); --spectrum-progressbar-min-size: var(--mod-meter-min-width, var(--spectrum-meter-min-width)); - /* Meter only supports size S and L */ - &.spectrum-Meter--sizeS { - --spectrum-progressbar-thickness: var(--spectrum-meter-thickness-s); - } - - &.spectrum-Meter--sizeL { - --spectrum-progressbar-thickness: var(--spectrum-meter-thickness-l); - --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); - } - &.is-positive .spectrum-ProgressBar-fill { - background: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-positive, var(--spectrum-progressbar-fill-color-positive))); + background-color: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-positive, var(--spectrum-progressbar-fill-color-positive))); } &.is-notice .spectrum-ProgressBar-fill { - background: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-notice, var(--spectrum-progressbar-fill-color-notice))); + background-color: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-notice, var(--spectrum-progressbar-fill-color-notice))); } &.is-negative .spectrum-ProgressBar-fill { - background: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-negative, var(--spectrum-progressbar-fill-color-negative))); + background-color: var(--highcontrast-progressbar-fill-color, var(--mod-progressbar-fill-color-negative, var(--spectrum-progressbar-fill-color-negative))); } } @@ -151,13 +53,13 @@ line-height: var(--mod-progressbar-line-height, var(--spectrum-progressbar-line-height)); + color: var(--mod-progressbar-text-color, var(--spectrum-progressbar-text-color)); + &: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)); } /* Label */ @@ -270,9 +172,10 @@ @media (forced-colors: active) { .spectrum-ProgressBar-track { - forced-color-adjust: none; --highcontrast-progressbar-fill-color: ButtonText; --highcontrast-progressbar-track-color: ButtonFace; + + forced-color-adjust: none; border: 1px solid ButtonText; } } diff --git a/components/progressbar/metadata/metadata.json b/components/progressbar/metadata/metadata.json index 54140bf3880..9041d6f97f2 100644 --- a/components/progressbar/metadata/metadata.json +++ b/components/progressbar/metadata/metadata.json @@ -2,8 +2,6 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Meter", - ".spectrum-Meter--sizeL", - ".spectrum-Meter--sizeS", ".spectrum-Meter.is-negative .spectrum-ProgressBar-fill", ".spectrum-Meter.is-notice .spectrum-ProgressBar-fill", ".spectrum-Meter.is-positive .spectrum-ProgressBar-fill", @@ -114,26 +112,24 @@ "--spectrum-font-size-100", "--spectrum-font-size-200", "--spectrum-font-size-75", - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-line-height-100", - "--spectrum-meter-default-width", "--spectrum-meter-inline-size", "--spectrum-meter-max-width", "--spectrum-meter-maximum-width", "--spectrum-meter-min-width", "--spectrum-meter-minimum-width", - "--spectrum-meter-thickness-l", "--spectrum-meter-thickness-large", - "--spectrum-meter-thickness-s", "--spectrum-meter-thickness-small", "--spectrum-meter-top-to-text", + "--spectrum-meter-width", "--spectrum-negative-visual-color", "--spectrum-neutral-content-color-default", "--spectrum-notice-visual-color", "--spectrum-positive-visual-color", "--spectrum-spacing-200", "--spectrum-spacing-75", - "--spectrum-transparent-white-300", + "--spectrum-transparent-white-400", "--spectrum-white" ], "system-theme": [], diff --git a/components/progressbar/metadata/meter.yml b/components/progressbar/metadata/meter.yml deleted file mode 100644 index c04b96c7955..00000000000 --- a/components/progressbar/metadata/meter.yml +++ /dev/null @@ -1,114 +0,0 @@ -name: Meter -description: | - Meter is implemented using the [Progress bar](progressbar.html) component. Refer to the [Progress bar API docs](progressbar.html) for API details. - Meter should be only used with `S` or `L` t-shirt sizes. [The Meter table of options](https://spectrum.adobe.com/page/meter/#Table-of-options) provides further details on which variants are available. - - | Previous size classname | New size classname | - | ------------------------------- | --------------------------------- | - | `.spectrum-ProgressBar--sizeS` | `.spectrum-Meter--sizeS` | - | `.spectrum-ProgressBar--sizeL` | `.spectrum-Meter--sizeL` | -SpectrumSiteSlug: https://spectrum.adobe.com/page/meter/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### spectrum-Meter class - Meter now uses the class `spectrum-Meter` on the parent `div` -examples: - - id: meter-sizes - name: Sizing - markup: | -
    -
    -
    -
    Storage Space
    -
    50%
    -
    -
    -
    -
    -
    -
    -
    -
    -
    Storage Space
    -
    80%
    -
    -
    -
    -
    - - id: meter-colors - name: Colors - markup: | -
    -
    -
    Storage Space
    -
    50%
    -
    -
    -
    -
    -
    -
    -
    -
    Storage Space
    -
    80%
    -
    -
    -
    -
    -
    -
    -
    -
    Storage Space
    -
    90%
    -
    -
    -
    -
    -
    -
    -
    Storage Space
    -
    40%
    -
    -
    -
    -
    -
    - - id: meter-neutral - name: Neutral - markup: | -
    -
    -
    Storage Space
    -
    50%
    -
    -
    -
    -
    -
    - - id: meter-notice - name: Notice - markup: | -
    -
    -
    Storage Space
    -
    80%
    -
    -
    -
    -
    -
    - - id: meter-negative - name: Negative - markup: | -
    -
    -
    Storage Space
    -
    90%
    -
    -
    -
    -
    diff --git a/components/progressbar/metadata/progressbar.yml b/components/progressbar/metadata/progressbar.yml deleted file mode 100644 index 0d1cb0b47a9..00000000000 --- a/components/progressbar/metadata/progressbar.yml +++ /dev/null @@ -1,151 +0,0 @@ -name: Progress bar -SpectrumSiteSlug: https://spectrum.adobe.com/page/progress-bar/ -status: Verified -id: progressbar-m -sections: - - name: Migration Guide - description: | - ### Component renamed - Bar loader is now known as Progress bar. Replace all `.spectrum-BarLoader*` classnames with `.spectrum-ProgressBar*`. - - ### T-shirt sizing - Progress bar now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-ProgressBar--size*` class. - - ### Size classnames changed - Previous size classnames map as follows: - - | Previous size classname | New size classname | - | ------------------------------- | --------------------------------- | - | `.spectrum-ProgressBar--small` | `.spectrum-ProgressBar--sizeS` | - | `.spectrum-ProgressBar--large` | `.spectrum-ProgressBar--sizeM` | - - ### Label and percentage now use Field Label - Progress bar now uses [Field label](fieldlabel.html) for its label and percentage. Add the appropriately sized Field label to match the t-shirt size of the Progress bar. -examples: - - id: progressbar-m - name: Sizing - markup: | -
    -
    -

    S

    - -
    -
    Loading
    -
    50%
    -
    -
    -
    - -
    -
    -
    -

    M (default)

    - -
    -
    Loading
    -
    50%
    -
    -
    -
    - -
    -
    - -
    -

    L

    - -
    -
    Loading
    -
    50%
    -
    -
    -
    - -
    -
    - -
    -

    XL

    - -
    -
    Loading
    -
    50%
    -
    -
    -
    - -
    -
    -
    - - id: progressbar-m - name: Top label (default) - markup: | -
    -
    Loading
    -
    50%
    -
    -
    -
    -
    - - id: progressbar-m - name: Side label - markup: | -
    -
    Loading
    -
    50%
    -
    -
    -
    -
    - - id: progressbar-static-white - name: Static White - markup: | -
    - -
    -
    Loading
    -
    50%
    -
    -
    -
    -
    - -
    - - id: progressbar-indeterminate-m - name: Indeterminate - markup: | -
    -
    -
    -
    - -
    - - id: progressbar-indeterminate-m - name: Indeterminate (with label) - markup: | -
    -
    Loading
    -
    -
    -
    -
    - - id: progressbar-m - name: Custom width - markup: | -
    -
    Loading
    -
    50%
    -
    -
    -
    -
    - - id: progressbar-m - name: Custom width (side label) - markup: | -
    -
    Loading
    -
    50%
    -
    -
    -
    -
    diff --git a/components/progressbar/package.json b/components/progressbar/package.json index 20e0b5f05c1..810ed747988 100644 --- a/components/progressbar/package.json +++ b/components/progressbar/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/progressbar", - "version": "4.1.7", + "version": "5.0.0-s2-foundations.15", "description": "The Spectrum CSS progress bar component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/progressbar/stories/meter.stories.js b/components/progressbar/stories/meter.stories.js index 69928bed336..da9e04072d6 100644 --- a/components/progressbar/stories/meter.stories.js +++ b/components/progressbar/stories/meter.stories.js @@ -1,4 +1,5 @@ import { disableDefaultModes } from "@spectrum-css/preview/modes"; +import { size } from "@spectrum-css/preview/types"; import pkgJson from "../package.json"; import { MeterGroup } from "./meter.test.js"; import { default as ProgressBar } from "./progressbar.stories"; @@ -11,6 +12,7 @@ export default { component: "ProgressBar", argTypes: { ...ProgressBar.argTypes, + size: size(["s", "l"]), fill: { name: "Fill color", type: { name: "string" }, @@ -22,7 +24,10 @@ export default { control: "select", }, }, - args: ProgressBar.args, + args: { + ...ProgressBar.args, + size: "s", + }, parameters: { packageJson: pkgJson, }, @@ -44,16 +49,3 @@ WithForcedColors.parameters = { modes: disableDefaultModes }, }; - -export const StaticWhite = Default.bind({}); -StaticWhite.tags = ["!autodocs", "!dev"]; -StaticWhite.args = { - staticColor: "white", - label: "Loading your fonts, images, and icons", - value: 50, -}; -StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; diff --git a/components/progressbar/stories/meter.template.js b/components/progressbar/stories/meter.template.js index b79fc5cc255..a6894a04c2f 100644 --- a/components/progressbar/stories/meter.template.js +++ b/components/progressbar/stories/meter.template.js @@ -1,19 +1,24 @@ import { Template as ProgressBar } from "./template.js"; import "../index.css"; +import "../themes/spectrum.css"; +/* Must be imported last */ +import "../themes/express.css"; export const Template = ({ customClasses = [], fill, size = "s", ...item -} = {}, context = {}) => ProgressBar({ - customClasses: [ - ...customClasses, - "spectrum-Meter", - typeof size !== "undefined" ? `spectrum-Meter--size${size.toUpperCase()}` : null, - typeof fill !== "undefined" ? `is-${fill}` : null, - ].filter(Boolean), - size, - ...item, -}, context); +} = {}, context = {}) => { + return ProgressBar({ + customClasses: [ + ...customClasses, + "spectrum-Meter", + typeof size !== "undefined" ? `spectrum-Meter--size${size.toUpperCase()}` : null, + typeof fill !== "undefined" ? `is-${fill}` : null, + ].filter(Boolean), + size, + ...item, + }, context); +}; diff --git a/components/progressbar/stories/meter.test.js b/components/progressbar/stories/meter.test.js index 32808ae31fd..8da83a03af7 100644 --- a/components/progressbar/stories/meter.test.js +++ b/components/progressbar/stories/meter.test.js @@ -20,13 +20,17 @@ export const MeterGroup = Variants({ testHeading: "Text overflow", label: "Storage space remaining for XYZ user" }, - /* The gradient story below supports linear-gradients used by Express. For use cases that require a custom + /* The gradient story below supports linear-gradients used by Express. For use cases that require a custom linear-gradient for any --mod-*-{fill} properties, set those custom properties in CSS. */ { - testHeading: "Gradient support", + testHeading: "Gradient support", trackFill: "linear-gradient(to right, hotpink, orange)", progressBarFill: "linear-gradient(to left, teal, purple)", - } + }, + { + testHeading: "Static white", + staticColor: "white", + }, ], }); diff --git a/components/progressbar/stories/progressbar.stories.js b/components/progressbar/stories/progressbar.stories.js index 612f485de1a..bd6acfb7805 100644 --- a/components/progressbar/stories/progressbar.stories.js +++ b/components/progressbar/stories/progressbar.stories.js @@ -73,16 +73,3 @@ WithForcedColors.parameters = { modes: disableDefaultModes }, }; - -export const StaticWhite = ProgressBarGroup.bind({}); -StaticWhite.tags = ["!autodocs", "!dev"]; -StaticWhite.args = { - staticColor: "white", - label: "Loading your fonts, images, and icons", - value: 50, -}; -StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes - }, -}; diff --git a/components/progressbar/stories/progressbar.test.js b/components/progressbar/stories/progressbar.test.js index aad8b120026..b931385eef4 100644 --- a/components/progressbar/stories/progressbar.test.js +++ b/components/progressbar/stories/progressbar.test.js @@ -15,7 +15,7 @@ export const ProgressBarGroup = Variants({ testHeading: "Text overflow", label: "Storage space remaining for XYZ user" }, - /* The gradient story below supports linear-gradients used by Express. For use cases that require a custom + /* The gradient story below supports linear-gradients used by Express. For use cases that require a custom linear-gradient for any --mod-*-{fill} properties, set those custom properties in CSS. */ { @@ -23,6 +23,10 @@ export const ProgressBarGroup = Variants({ trackFill: "linear-gradient(to right, hotpink, orange)", progressBarFill: "linear-gradient(to left, teal, purple)", }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [ { diff --git a/components/progressbar/stories/template.js b/components/progressbar/stories/template.js index 4fdd746492e..9a5da141e72 100644 --- a/components/progressbar/stories/template.js +++ b/components/progressbar/stories/template.js @@ -6,6 +6,9 @@ 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", @@ -20,7 +23,8 @@ export const Template = ({ progressBarFill, customStyles = {}, size = "m", -} = {}, context = {}) => html` +} = {}, context = {}) => { + return html`
    -`; + `; +}; diff --git a/components/progressbar/themes/express.css b/components/progressbar/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/progressbar/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..be63cf8e57b --- /dev/null +++ b/components/progressbar/themes/spectrum-two.css @@ -0,0 +1,117 @@ +/*! + * 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 + * + * 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 { + /* 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-100); + + --spectrum-progressbar-fill-size-indeterminate: 70%; + + /* --spectrum-global-dimension-static-size-2400 */ + --spectrum-progressbar-size-2400: 192px; + + /* --spectrum-global-dimension-static-size-2500 */ + --spectrum-progressbar-size-2500: 200px; + + /* --spectrum-global-dimension-static-size-2800 */ + --spectrum-progressbar-size-2800: 224px; + + /* Size */ + --spectrum-progressbar-font-size: var(--spectrum-font-size-75); + --spectrum-progressbar-line-height-cjk: var(--spectrum-cjk-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); + --spectrum-progressbar-line-height: var(--spectrum-line-height-100); + + /* Spacing */ + --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-text-color: var(--spectrum-neutral-content-color-default); + --spectrum-progressbar-track-color: var(--spectrum-gray-200); + --spectrum-progressbar-fill-color: var(--spectrum-accent-color-900); + --spectrum-progressbar-fill-color-positive: var(--spectrum-positive-visual-color); + --spectrum-progressbar-fill-color-notice: var(--spectrum-notice-visual-color); + --spectrum-progressbar-fill-color-negative: var(--spectrum-negative-visual-color); + --spectrum-progressbar-label-and-value-white: var(--spectrum-white); + --spectrum-progressbar-track-color-white: var(--spectrum-transparent-white-400); + --spectrum-progressbar-fill-color-white: var(--spectrum-white); + } + + .spectrum-ProgressBar--sizeS { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); + + --spectrum-progressbar-font-size: var(--spectrum-font-size-75); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-small); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + } + + .spectrum-ProgressBar--sizeM { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); + + --spectrum-progressbar-font-size: var(--spectrum-font-size-75); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-large); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + } + + .spectrum-ProgressBar--sizeL { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2500); + + --spectrum-progressbar-font-size: var(--spectrum-font-size-100); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-large); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + } + + .spectrum-ProgressBar--sizeXL { + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2800); + + --spectrum-progressbar-font-size: var(--spectrum-font-size-200); + --spectrum-progressbar-thickness: var(--spectrum-progress-bar-thickness-extra-large); + + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-300); + } + + .spectrum-Meter { + /* Meter */ + --spectrum-meter-min-width: var(--spectrum-meter-minimum-width); + --spectrum-meter-max-width: var(--spectrum-meter-maximum-width); + --spectrum-meter-inline-size: var(--spectrum-meter-width); + --spectrum-meter-top-to-text: var(--spectrum-component-top-to-text); + + /* Meter only supports size S and L */ + &.spectrum-Meter--sizeS { + --spectrum-progressbar-thickness: var(--spectrum-meter-thickness-small); + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2400); + --spectrum-progressbar-font-size: var(--spectrum-font-size-75); + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + } + + &.spectrum-Meter--sizeL { + --spectrum-progressbar-thickness: var(--spectrum-meter-thickness-large); + --spectrum-progressbar-size-default: var(--spectrum-progressbar-size-2500); + --spectrum-progressbar-font-size: var(--spectrum-font-size-100); + --spectrum-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + } + } +} diff --git a/components/progressbar/themes/spectrum.css b/components/progressbar/themes/spectrum.css new file mode 100644 index 00000000000..83f143f6141 --- /dev/null +++ b/components/progressbar/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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 99b4d14ab8b..51cd7a85fad 100644 --- a/components/progresscircle/CHANGELOG.md +++ b/components/progresscircle/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 3.1.4 ### Patch Changes diff --git a/components/progresscircle/animation.css b/components/progresscircle/animation.css deleted file mode 100644 index 176d4da4c17..00000000000 --- a/components/progresscircle/animation.css +++ /dev/null @@ -1,510 +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 - * - * 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-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); - } -} - -@keyframes spectrum-fills-rotate { - 0% { - transform: rotate(-90deg); - } - - 100% { - transform: rotate(270deg); - } -} diff --git a/components/progresscircle/index.css b/components/progresscircle/index.css index 4e48312a866..0ca643da6ca 100644 --- a/components/progresscircle/index.css +++ b/components/progresscircle/index.css @@ -11,43 +11,7 @@ * governing permissions and limitations under the License. */ -@import "animation.css"; - -.spectrum-ProgressCircle { - /* circle unfilled border color */ - --spectrum-progress-circle-track-border-color: var(--spectrum-gray-300); - - /* 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); - - /* default size and thickness */ - --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-medium); - --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); - - /* 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); -} - -.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--large { - --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-large); - --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-large); -} +@import "./themes/spectrum-two.css"; /* windows high contrast mode */ @media (forced-colors: active) { @@ -165,3 +129,501 @@ 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); + } +} + +@keyframes spectrum-fills-rotate { + 0% { + transform: rotate(-90deg); + } + + 100% { + transform: rotate(270deg); + } +} diff --git a/components/progresscircle/metadata/metadata.json b/components/progresscircle/metadata/metadata.json index cc43dfd0c63..1d3fe3b9642 100644 --- a/components/progresscircle/metadata/metadata.json +++ b/components/progresscircle/metadata/metadata.json @@ -106,9 +106,9 @@ ], "global": [ "--spectrum-accent-content-color-default", - "--spectrum-gray-300", - "--spectrum-transparent-white-300", - "--spectrum-transparent-white-900" + "--spectrum-gray-200", + "--spectrum-transparent-white-1000", + "--spectrum-transparent-white-400" ], "system-theme": [], "passthroughs": [], diff --git a/components/progresscircle/metadata/progresscircle.yml b/components/progresscircle/metadata/progresscircle.yml deleted file mode 100644 index 3a421c35475..00000000000 --- a/components/progresscircle/metadata/progresscircle.yml +++ /dev/null @@ -1,236 +0,0 @@ -name: Progress circle -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/progress-circle/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Component renamed - Circle loader is now known as Progress circle. Replace all `.spectrum-CircleLoader*` classnames with `.spectrum-ProgressCircle*`. -examples: - - id: progresscircle-sizes - name: Standard - markup: | - -
    -
    -

    Small

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    Medium

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    Large

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - id: progresscircle-indeterminate - name: Indeterminate - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - - id: progresscircle-static-white - name: Static White - markup: | -
    -
    -

    Standard

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    Indeterminate

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/components/progresscircle/package.json b/components/progresscircle/package.json index 6e579a85ee8..ce4a39c5003 100644 --- a/components/progresscircle/package.json +++ b/components/progresscircle/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/progresscircle", - "version": "3.1.4", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS progress circle component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/progresscircle/stories/progresscircle.stories.js b/components/progresscircle/stories/progresscircle.stories.js index 65b5464342b..049991c8e5a 100644 --- a/components/progresscircle/stories/progresscircle.stories.js +++ b/components/progresscircle/stories/progresscircle.stories.js @@ -44,18 +44,6 @@ WithForcedColors.parameters = { }, }; -export const StaticWhite = ProgressCircleGroup.bind({}); -StaticWhite.tags = ["!autodocs", "!dev"]; -StaticWhite.storyName = "Static white"; -StaticWhite.args = { - staticColor: "white", -}; -StaticWhite.parameters = { - chromatic: { - modes: disableDefaultModes, - }, -}; - // ********* DOCS ONLY ********* // export const Sizing = (args, context) => Sizes({ @@ -107,4 +95,4 @@ StaticWhiteIndeterminate.args = { }; StaticWhiteIndeterminate.parameters = { chromatic: { disableSnapshot: true }, -}; \ No newline at end of file +}; diff --git a/components/progresscircle/stories/progresscircle.test.js b/components/progresscircle/stories/progresscircle.test.js index 7a3ed9c665b..26c9d8e078c 100644 --- a/components/progresscircle/stories/progresscircle.test.js +++ b/components/progresscircle/stories/progresscircle.test.js @@ -7,6 +7,10 @@ export const ProgressCircleGroup = Variants({ { testHeading: "Default", }, + { + testHeading: "Static white", + staticColor: "white", + }, ], stateData: [ { diff --git a/components/progresscircle/stories/template.js b/components/progresscircle/stories/template.js index a0fa4486e8b..2e27221f91a 100644 --- a/components/progresscircle/stories/template.js +++ b/components/progresscircle/stories/template.js @@ -5,6 +5,9 @@ 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 = ({ id = getRandomId("progress-circle"), @@ -15,7 +18,7 @@ export const Template = ({ size = "m", staticColor, isIndeterminate = false, -}) => { +} = {}) => { let sizeClassName = "medium"; switch (size) { case "s": diff --git a/components/progresscircle/themes/express.css b/components/progresscircle/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/progresscircle/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..ca22544163d --- /dev/null +++ b/components/progresscircle/themes/spectrum-two.css @@ -0,0 +1,50 @@ +/*! + * 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 + * + * 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); + + /* 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-400); + + /* over background progress fill border color */ + --spectrum-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-1000); + + /* default size and thickness */ + --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-medium); + --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); + + /* 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); + } + + .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--large { + --spectrum-progress-circle-size: var(--spectrum-progress-circle-size-large); + --spectrum-progress-circle-thickness: var(--spectrum-progress-circle-thickness-large); + } +} diff --git a/components/progresscircle/themes/spectrum.css b/components/progresscircle/themes/spectrum.css new file mode 100644 index 00000000000..0a4fd6ef490 --- /dev/null +++ b/components/progresscircle/themes/spectrum.css @@ -0,0 +1,27 @@ +/*! + * 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 + * + * 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 268f7690dc1..3892e5d1b5a 100644 --- a/components/radio/CHANGELOG.md +++ b/components/radio/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 10.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 10.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 10.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 10.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 10.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 10.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 10.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 10.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 10.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 10.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 10.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 10.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 10.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 9.2.4 ### Patch Changes diff --git a/components/radio/index.css b/components/radio/index.css index 79bb71d94c6..4ad83e08ae9 100644 --- a/components/radio/index.css +++ b/components/radio/index.css @@ -11,7 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; /* * Radio: @@ -19,113 +19,6 @@ * ::after is to style the focus ring */ -.spectrum-Radio { - /* 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); - --spectrum-radio-neutral-content-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-radio-neutral-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - - /* focus ring all themes */ - --spectrum-radio-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-radio-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-radio-focus-indicator-color: var(--spectrum-focus-indicator-color); - - /* disabled all themes */ - --spectrum-radio-disabled-content-color: var(--spectrum-disabled-content-color); - --spectrum-radio-disabled-border-color: var(--spectrum-disabled-content-color); - - /* emphasized state colors selection indicator all themes */ - --spectrum-radio-emphasized-accent-color: var(--spectrum-accent-color-900); - --spectrum-radio-emphasized-accent-color-hover: var(--spectrum-accent-color-1000); - --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); - --spectrum-radio-button-background-color: var(--spectrum-gray-75); - - /* checked selection indicator */ - --spectrum-radio-button-checked-border-color-default: var(--spectrum-neutral-background-color-selected-default); - --spectrum-radio-button-checked-border-color-hover: var(--spectrum-neutral-background-color-selected-hover); - --spectrum-radio-button-checked-border-color-down: var(--spectrum-neutral-background-color-selected-down); - --spectrum-radio-button-checked-border-color-focus: var(--spectrum-neutral-background-color-selected-focus); - - /* spacing all themes */ - --spectrum-radio-text-to-control: var(--spectrum-text-to-control-100); - --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); - - /* text styles all themes */ - --spectrum-radio-font-size: var(--spectrum-font-size-100); - --spectrum-radio-line-height: var(--spectrum-line-height-100); - - /* 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); - } - - /* default radio size for no t-shirt size */ - --spectrum-radio-height: var(--spectrum-component-height-100); - --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); - - /* default radio spacing for no t-shirt size */ - --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); -} - -.spectrum-Radio--sizeS { - --spectrum-radio-height: var(--spectrum-component-height-75); - --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-small); - - --spectrum-radio-text-to-control: var(--spectrum-text-to-control-75); - --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-75); - --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); - --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-small); - - --spectrum-radio-font-size: var(--spectrum-font-size-75); -} - -.spectrum-Radio--sizeM { - --spectrum-radio-height: var(--spectrum-component-height-100); - --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); - - --spectrum-radio-text-to-control: var(--spectrum-text-to-control-100); - --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-100); - --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); - --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); - - --spectrum-radio-font-size: var(--spectrum-font-size-100); -} - -.spectrum-Radio--sizeL { - --spectrum-radio-height: var(--spectrum-component-height-200); - --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-large); - - --spectrum-radio-text-to-control: var(--spectrum-text-to-control-200); - --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-200); - --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-200); - --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-large); - - --spectrum-radio-font-size: var(--spectrum-font-size-200); -} - -.spectrum-Radio--sizeXL { - --spectrum-radio-height: var(--spectrum-component-height-300); - --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-extra-large); - - --spectrum-radio-text-to-control: var(--spectrum-text-to-control-300); - --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-300); - --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-300); - --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-extra-large); - - --spectrum-radio-font-size: var(--spectrum-font-size-300); -} - /* windows high contrast mode */ @media (forced-colors: active) { .spectrum-Radio { @@ -253,9 +146,9 @@ } .spectrum-Radio-label, - /* ensure disabled readonly has normal text color */ - & .spectrum-Radio-input:disabled ~ .spectrum-Radio-label, - & .spectrum-Radio-input:checked:disabled ~ .spectrum-Radio-label { + /* ensure disabled readonly has normal text color */ + & .spectrum-Radio-input:disabled ~ .spectrum-Radio-label, + & .spectrum-Radio-input:checked:disabled ~ .spectrum-Radio-label { margin-inline-start: auto; color: var(--highcontrast-radio-neutral-content-color, var(--mod-radio-neutral-content-color, var(--spectrum-radio-neutral-content-color))); } @@ -376,6 +269,7 @@ .spectrum-Radio-button { position: relative; + box-sizing: border-box; inline-size: var(--mod-radio-button-control-size, var(--spectrum-radio-button-control-size)); block-size: var(--mod-radio-button-control-size, var(--spectrum-radio-button-control-size)); diff --git a/components/radio/metadata/metadata.json b/components/radio/metadata/metadata.json index 31fd8171138..2f1cf303e13 100644 --- a/components/radio/metadata/metadata.json +++ b/components/radio/metadata/metadata.json @@ -151,11 +151,10 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", + "--spectrum-gray-50", "--spectrum-gray-600", "--spectrum-gray-700", - "--spectrum-gray-75", "--spectrum-gray-800", - "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-neutral-background-color-selected-default", "--spectrum-neutral-background-color-selected-down", @@ -170,16 +169,7 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-spectrum-radio-button-border-color-default", - "--system-spectrum-radio-button-border-color-down", - "--system-spectrum-radio-button-border-color-focus", - "--system-spectrum-radio-button-border-color-hover", - "--system-spectrum-radio-emphasized-button-checked-border-color-default", - "--system-spectrum-radio-emphasized-button-checked-border-color-down", - "--system-spectrum-radio-emphasized-button-checked-border-color-focus", - "--system-spectrum-radio-emphasized-button-checked-border-color-hover" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-radio-button-background-color", diff --git a/components/radio/metadata/radio.yml b/components/radio/metadata/radio.yml deleted file mode 100644 index 3de30ce5942..00000000000 --- a/components/radio/metadata/radio.yml +++ /dev/null @@ -1,242 +0,0 @@ -name: Radio -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/radio-button/ -description: | - - Radio buttons allow users to select a single option from a list of mutually exclusive options. All possible options are exposed up front for users to compare. - - Radio buttons should not be used on their own, they should always be used within a [FieldGroup](fieldgroup.html). - - Invalid radio buttons are signified by including [HelpText](helptext.html) in a [FieldGroup](fieldgroup.html). Sample usage for an invalid radio state is included in the [FieldGroup](fieldgroup.html#invalid) documentation. - -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Radio Button now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-RadioButton--size*` class. Default styling is medium. - - ### Read-only - Radio Button now includes a read-only state in addition to the disabled state. - - Read-only radio buttons are disabled, but not all disabled radio buttons are read-only. - - Read-only radio buttons do not have a focus ring, but the button should be focusable.] - - ### Invalid/Error State - - Invalid radio buttons are signified by including [Help text](helptext.html) in a [Field group](fieldgroup.html). The `.is-invalid` class has been removed. See Field group for an example with an invalid radio group. - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: radio - name: Sizing - markup: | -
    - -
    -

    S

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    M (default)

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    L

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    XL

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    -
    - - - id: radio - name: Standard - markup: | -
    -
    -

    Default

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    Disabled

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    Read-only

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    -
    - - - id: radio-emphasized - name: Emphasized - markup: | -
    -
    -

    Default

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    Disabled

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    - -
    -

    Read-only

    - -
    -
    - - - -
    -
    -
    - - - -
    -
    - -
    -
    - - - id: radio-wrapping - name: Wrapping behavior - markup: | -
    - - - -
    diff --git a/components/radio/package.json b/components/radio/package.json index a67761c2c6c..d2a0fd4c6ff 100644 --- a/components/radio/package.json +++ b/components/radio/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/radio", - "version": "9.2.4", + "version": "10.0.0-s2-foundations.13", "description": "The Spectrum CSS radio component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/radio/stories/template.js b/components/radio/stories/template.js index 459f2cb9f6a..261ed72d4eb 100644 --- a/components/radio/stories/template.js +++ b/components/radio/stories/template.js @@ -5,6 +5,9 @@ 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", @@ -88,4 +91,4 @@ export const BasicGroupTemplate = (args, context) => Container({ name: "radio-example-" + (args?.name ?? "default"), }, context)} `, -}); \ No newline at end of file +}); diff --git a/components/radio/themes/express.css b/components/radio/themes/express.css index 65e3ec36e9b..2f7a5d93e59 100644 --- a/components/radio/themes/express.css +++ b/components/radio/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Radio { /* selection indicator */ --spectrum-radio-button-border-color-default: var(--spectrum-gray-800); diff --git a/components/radio/themes/spectrum-two.css b/components/radio/themes/spectrum-two.css new file mode 100644 index 00000000000..be53f5a6ca0 --- /dev/null +++ b/components/radio/themes/spectrum-two.css @@ -0,0 +1,134 @@ +/*! + * 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 + * + * 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); + + /* 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); + --spectrum-radio-neutral-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-radio-neutral-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + + /* focus ring all themes */ + --spectrum-radio-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-radio-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-radio-focus-indicator-color: var(--spectrum-focus-indicator-color); + + /* disabled all themes */ + --spectrum-radio-disabled-content-color: var(--spectrum-disabled-content-color); + --spectrum-radio-disabled-border-color: var(--spectrum-disabled-content-color); + + /* emphasized state colors selection indicator all themes */ + --spectrum-radio-emphasized-accent-color: var(--spectrum-accent-color-900); + --spectrum-radio-emphasized-accent-color-hover: var(--spectrum-accent-color-1000); + --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); + --spectrum-radio-button-background-color: var(--spectrum-gray-50); + + /* checked selection indicator */ + --spectrum-radio-button-checked-border-color-default: var(--spectrum-neutral-background-color-selected-default); + --spectrum-radio-button-checked-border-color-hover: var(--spectrum-neutral-background-color-selected-hover); + --spectrum-radio-button-checked-border-color-down: var(--spectrum-neutral-background-color-selected-down); + --spectrum-radio-button-checked-border-color-focus: var(--spectrum-neutral-background-color-selected-focus); + + /* spacing all themes */ + --spectrum-radio-text-to-control: var(--spectrum-text-to-control-100); + --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + + /* text styles all themes */ + --spectrum-radio-font-size: var(--spectrum-font-size-100); + --spectrum-radio-line-height: var(--spectrum-line-height-100); + + /* 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); + } + + /* default radio size for no t-shirt size */ + --spectrum-radio-height: var(--spectrum-component-height-100); + --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); + + /* default radio spacing for no t-shirt size */ + --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); + } + + .spectrum-Radio--sizeS { + --spectrum-radio-height: var(--spectrum-component-height-75); + --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-small); + + --spectrum-radio-text-to-control: var(--spectrum-text-to-control-75); + --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-75); + --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-small); + + --spectrum-radio-font-size: var(--spectrum-font-size-75); + } + + .spectrum-Radio--sizeM { + --spectrum-radio-height: var(--spectrum-component-height-100); + --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); + + --spectrum-radio-text-to-control: var(--spectrum-text-to-control-100); + --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-100); + --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); + + --spectrum-radio-font-size: var(--spectrum-font-size-100); + } + + .spectrum-Radio--sizeL { + --spectrum-radio-height: var(--spectrum-component-height-200); + --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-large); + + --spectrum-radio-text-to-control: var(--spectrum-text-to-control-200); + --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-200); + --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-large); + + --spectrum-radio-font-size: var(--spectrum-font-size-200); + } + + .spectrum-Radio--sizeXL { + --spectrum-radio-height: var(--spectrum-component-height-300); + --spectrum-radio-button-control-size: var(--spectrum-radio-button-control-size-extra-large); + + --spectrum-radio-text-to-control: var(--spectrum-text-to-control-300); + --spectrum-radio-label-top-to-text: var(--spectrum-component-top-to-text-300); + --spectrum-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --spectrum-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-extra-large); + + --spectrum-radio-font-size: var(--spectrum-font-size-300); + } + + .spectrum-Radio--emphasized { + --spectrum-radio-button-checked-border-color-default: var(--spectrum-accent-color-900); + --spectrum-radio-button-checked-border-color-hover: var(--spectrum-accent-color-1000); + --spectrum-radio-button-checked-border-color-down: var(--spectrum-accent-color-1100); + --spectrum-radio-button-checked-border-color-focus: var(--spectrum-accent-color-1000); + } +} diff --git a/components/radio/themes/spectrum.css b/components/radio/themes/spectrum.css index 467a880aa56..5a930981122 100644 --- a/components/radio/themes/spectrum.css +++ b/components/radio/themes/spectrum.css @@ -11,19 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--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--emphasized { - --spectrum-radio-button-checked-border-color-default: var(--spectrum-accent-color-900); - --spectrum-radio-button-checked-border-color-hover: var(--spectrum-accent-color-1000); - --spectrum-radio-button-checked-border-color-down: var(--spectrum-accent-color-1100); - --spectrum-radio-button-checked-border-color-focus: var(--spectrum-accent-color-1000); - } -} +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/rating/CHANGELOG.md b/components/rating/CHANGELOG.md index c75a9d6b23f..83a99cac533 100644 --- a/components/rating/CHANGELOG.md +++ b/components/rating/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/rating/index.css b/components/rating/index.css index 9d523f0ecdd..b7fba3b4153 100644 --- a/components/rating/index.css +++ b/components/rating/index.css @@ -11,37 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-Rating { - /* Icon */ - --spectrum-rating-icon-height: var(--spectrum-workflow-icon-size-100); - --spectrum-rating-icon-width: var(--spectrum-workflow-icon-size-100); - - /* Focus ring */ - --spectrum-rating-border-radius: var(--spectrum-corner-radius-100); - --spectrum-rating-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-rating-focus-indicator-color: var(--spectrum-focus-indicator-color); - --spectrum-rating-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - - /* Spacing (top/bottom edge to icon) */ - --spectrum-rating-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-rating-indicator-border-radius: var(--spectrum-corner-radius-75); - - /* Indicator height */ - --spectrum-rating-indicator-height: var(--spectrum-border-width-200); - - /* Colors */ - /* selected + emphasized */ - --spectrum-rating-emphasized-icon-color-default: var(--spectrum-accent-content-color-default); - --spectrum-rating-emphasized-icon-color-hover: var(--spectrum-accent-content-color-hover); - --spectrum-rating-emphasized-icon-color-down: var(--spectrum-accent-content-color-down); - --spectrum-rating-emphasized-icon-color-key-focus: var(--spectrum-accent-content-color-key-focus); - - /* Disabled */ - --spectrum-rating-icon-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-rating-icon-count: var(--spectrum-rating-icon-count); -} +@import "./themes/spectrum-two.css"; .spectrum-Rating { &.is-focused { @@ -183,8 +153,8 @@ } &:hover { - /* All stars following the hovered star */ & ~ .spectrum-Rating-icon { + /* All stars following the hovered star */ color: var(--highcontrast-rating-icon-color-default, var(--mod-rating-icon-color-default, var(--spectrum-rating-icon-color-default))); } } diff --git a/components/rating/metadata/metadata.json b/components/rating/metadata/metadata.json index 17101d97e29..527410c5a43 100644 --- a/components/rating/metadata/metadata.json +++ b/components/rating/metadata/metadata.json @@ -96,22 +96,13 @@ "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", - "--spectrum-neutral-content-color-default", - "--spectrum-neutral-content-color-down", - "--spectrum-neutral-content-color-hover", - "--spectrum-neutral-content-color-key-focus", "--spectrum-neutral-subdued-content-color-default", "--spectrum-neutral-subdued-content-color-down", "--spectrum-neutral-subdued-content-color-hover", "--spectrum-neutral-subdued-content-color-key-focus", "--spectrum-workflow-icon-size-100" ], - "system-theme": [ - "--system-spectrum-rating-icon-color-default", - "--system-spectrum-rating-icon-color-down", - "--system-spectrum-rating-icon-color-hover", - "--system-spectrum-rating-icon-color-key-focus" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-rating-emphasized-icon-color-default", diff --git a/components/rating/metadata/rating.yml b/components/rating/metadata/rating.yml deleted file mode 100644 index 576a4c2e438..00000000000 --- a/components/rating/metadata/rating.yml +++ /dev/null @@ -1,366 +0,0 @@ -name: Rating -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/rating/ -sections: - - name: A note on emphasized and quiet - description: | - Spectrum has chosen the variant previously known as `quiet` to be the default and has added an `emphasized` variant with the same styles as the previous default. -examples: - - id: rating - name: Standard - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating - name: Selected - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating - name: Read-only - description: A non-interactive rating. - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating-emphasized - name: Emphasized - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating-emphasized - name: Emphasized (selected) - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating-emphasized - name: Emphasized (read-only) - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - id: rating - name: Disabled - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    diff --git a/components/rating/package.json b/components/rating/package.json index b33da076741..4d23a894f39 100644 --- a/components/rating/package.json +++ b/components/rating/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/rating", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS rating component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/rating/stories/template.js b/components/rating/stories/template.js index c1c4c88315a..39111424552 100644 --- a/components/rating/stories/template.js +++ b/components/rating/stories/template.js @@ -6,6 +6,9 @@ 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 index 20e16cab063..1d9656d62b4 100644 --- a/components/rating/themes/express.css +++ b/components/rating/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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); diff --git a/components/rating/themes/spectrum-two.css b/components/rating/themes/spectrum-two.css new file mode 100644 index 00000000000..80ff717f3ab --- /dev/null +++ b/components/rating/themes/spectrum-two.css @@ -0,0 +1,49 @@ +/*! + * 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 + * + * 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); + + /* Icon */ + --spectrum-rating-icon-height: var(--spectrum-workflow-icon-size-100); + --spectrum-rating-icon-width: var(--spectrum-workflow-icon-size-100); + + /* Focus ring */ + --spectrum-rating-border-radius: var(--spectrum-corner-radius-100); + --spectrum-rating-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-rating-focus-indicator-color: var(--spectrum-focus-indicator-color); + --spectrum-rating-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + + /* Spacing (top/bottom edge to icon) */ + --spectrum-rating-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-rating-indicator-border-radius: var(--spectrum-corner-radius-75); + + /* Indicator height */ + --spectrum-rating-indicator-height: var(--spectrum-border-width-200); + + /* Colors */ + /* selected + emphasized */ + --spectrum-rating-emphasized-icon-color-default: var(--spectrum-accent-content-color-default); + --spectrum-rating-emphasized-icon-color-hover: var(--spectrum-accent-content-color-hover); + --spectrum-rating-emphasized-icon-color-down: var(--spectrum-accent-content-color-down); + --spectrum-rating-emphasized-icon-color-key-focus: var(--spectrum-accent-content-color-key-focus); + + /* Disabled */ + --spectrum-rating-icon-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-rating-icon-count: var(--spectrum-rating-icon-count); + } +} diff --git a/components/rating/themes/spectrum.css b/components/rating/themes/spectrum.css index 87a6e2ee611..5a930981122 100644 --- a/components/rating/themes/spectrum.css +++ b/components/rating/themes/spectrum.css @@ -11,11 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--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); - } -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/search/CHANGELOG.md b/components/search/CHANGELOG.md index 0d5fc076fa8..01b5d423a61 100644 --- a/components/search/CHANGELOG.md +++ b/components/search/CHANGELOG.md @@ -1,5 +1,220 @@ # Change Log +## 8.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.14 + - @spectrum-css/textfield@8.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.14 + +### Patch Changes + +- [#3023](https://github.com/adobe/spectrum-css/pull/3023) [`213efa8`](https://github.com/adobe/spectrum-css/commit/213efa8618cdccf75a274ee9c2dd0404864c1779) Thanks [@jawinn](https://github.com/jawinn)! - Relocates --mod custom properties from the themes CSS to the index.css. + +## 8.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`d06b762`](https://github.com/adobe/spectrum-css/commit/d06b762232592342dcea35c8ff4d309edb00d588) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-236] Search: internal property references including calc moved out of theme files; express theme updated to match format of spectrum-two theme selectors; spectrum-two theme adds new --spectrum-search-min-inline-multiplier abstraction for internal calc, removes passthroughs, adds in a sizeM theme instead of relying on defaults + +### Patch Changes + +- Updated dependencies [[`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.15 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.12 + - @spectrum-css/textfield@8.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.11 + - @spectrum-css/textfield@8.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.10 + - @spectrum-css/textfield@8.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.9 + - @spectrum-css/textfield@8.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.8 + - @spectrum-css/textfield@8.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.7 + - @spectrum-css/textfield@8.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/clearbutton@7.0.0-s2-foundations.6 + - @spectrum-css/textfield@8.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.5 + - @spectrum-css/textfield@8.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.4 + - @spectrum-css/textfield@8.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.3 + - @spectrum-css/textfield@8.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.2 + - @spectrum-css/textfield@8.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.1 + - @spectrum-css/textfield@8.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.0 + - @spectrum-css/textfield@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 7.1.4 ### Patch Changes diff --git a/components/search/index.css b/components/search/index.css index 68c5dc4ac16..66f44ebafed 100644 --- a/components/search/index.css +++ b/components/search/index.css @@ -11,46 +11,31 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; +@media (forced-colors: active) { + .spectrum-Search .spectrum-Search-textfield, + .spectrum-Search .spectrum-Search-textfield .spectrum-Search-input { + --highcontrast-search-color-default: CanvasText; + --highcontrast-search-color-hover: CanvasText; + --highcontrast-search-color-focus: CanvasText; + --highcontrast-search-color-disabled: GrayText; + } + + .spectrum-Search .spectrum-Search-clearButton { + .spectrum-ClearButton-fill { + /* Avoid button background color overlapping on border. */ + forced-color-adjust: none; + background-color: transparent; + } + } +} + +/* Standard / Default */ .spectrum-Search { - /* Size / Spacing */ - --spectrum-search-inline-size: var(--spectrum-field-width); - --spectrum-search-block-size: var(--spectrum-component-height-100); + /* Using a component-level token for this internal variable */ --spectrum-search-button-inline-size: var(--spectrum-search-block-size); - --spectrum-search-min-inline-size: calc(var(--spectrum-search-field-minimum-width-multiplier) * var(--spectrum-search-block-size)); - --spectrum-search-icon-size: var(--spectrum-workflow-icon-size-100); - - --spectrum-search-text-to-icon: var(--spectrum-text-to-visual-100); - --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); - - /* Focus Indicator */ - --spectrum-search-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-search-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-search-focus-indicator-color: var(--spectrum-focus-indicator-color); - - /* Font / Color */ - --spectrum-search-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-search-font-weight: var(--spectrum-regular-font-weight); - --spectrum-search-font-style: var(--spectrum-default-font-style); - --spectrum-search-line-height: var(--spectrum-line-height-100); - - --spectrum-search-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-search-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-search-color-focus: var(--spectrum-neutral-content-color-focus); - --spectrum-search-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); - --spectrum-search-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - /* Background and Border */ - --spectrum-search-border-width: var(--spectrum-border-width-100); - --spectrum-search-background-color: var(--spectrum-gray-50); - - /* Disabled */ - --spectrum-search-color-disabled: var(--spectrum-disabled-content-color); - --spectrum-search-background-color-disabled: var(--spectrum-disabled-background-color); - --spectrum-search-border-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-search-min-inline-size: calc(var(--spectrum-search-min-inline-multiplier) * var(--spectrum-search-block-size)); /* Settings for nested Textfield component. */ --mod-textfield-font-family: var(--mod-search-font-family, var(--spectrum-search-font-family)); @@ -79,59 +64,7 @@ --mod-textfield-background-color: var(--mod-search-background-color, var(--spectrum-search-background-color)); --mod-textfield-background-color-disabled: var(--mod-search-background-color-disabled, var(--spectrum-search-background-color-disabled)); -} - -.spectrum-Search--sizeS { - --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--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--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--quiet { - --spectrum-search-quiet-button-offset: calc((var(--mod-search-block-size, var(--spectrum-search-block-size)) / 2) - (var(--mod-workflow-icon-size-100, var(--spectrum-workflow-icon-size-100)) / 2)); - --spectrum-search-background-color: transparent; - --spectrum-search-background-color-disabled: transparent; - --spectrum-search-border-color-disabled: var(--spectrum-disabled-border-color); - - /* Added specificity, otherwise they are overridden by system specific themes. */ - &.spectrum-Search { - --spectrum-search-border-radius: 0; - --spectrum-search-edge-to-visual: var(--spectrum-field-edge-to-visual-quiet); - } -} - -@media (forced-colors: active) { - .spectrum-Search .spectrum-Search-textfield, - .spectrum-Search .spectrum-Search-textfield .spectrum-Search-input { - --highcontrast-search-color-default: CanvasText; - --highcontrast-search-color-hover: CanvasText; - --highcontrast-search-color-focus: CanvasText; - --highcontrast-search-color-disabled: GrayText; - } - .spectrum-Search .spectrum-Search-clearButton { - .spectrum-ClearButton-fill { - /* Avoid button background color overlapping on border. */ - forced-color-adjust: none; - background-color: transparent; - } - } -} - -/* Standard / Default */ -.spectrum-Search { display: inline-block; position: relative; inline-size: var(--mod-search-inline-size, var(--spectrum-search-inline-size)); @@ -162,12 +95,13 @@ } .spectrum-Search-icon { + --spectrum-search-color: var(--highcontrast-search-color-default, var(--mod-search-color-default, var(--spectrum-search-color-default))); + display: block; position: absolute; inset-block: 0; margin-block: auto; - --spectrum-search-color: var(--highcontrast-search-color-default, var(--mod-search-color-default, var(--spectrum-search-color-default))); color: var(--spectrum-search-color); .spectrum-Search-textfield:hover & { @@ -197,18 +131,18 @@ /* Without this, it gets overridden by .spectrum-Textfield */ appearance: none; - /* Remove the inner padding and cancel buttons for input[type="search"] in Chrome and Safari on macOS. */ - &::-webkit-search-cancel-button, - &::-webkit-search-decoration { - appearance: none; - } - block-size: var(--mod-search-block-size, var(--spectrum-search-block-size)); padding-block-start: calc(var(--mod-search-top-to-text, var(--spectrum-search-top-to-text)) - var(--mod-search-border-width, var(--spectrum-search-border-width))); padding-block-end: calc(var(--mod-search-bottom-to-text, var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width, var(--spectrum-search-border-width))); font-style: var(--mod-search-font-style, var(--spectrum-search-font-style)); line-height: var(--mod-search-line-height, var(--spectrum-search-line-height)); + + /* Remove the inner padding and cancel buttons for input[type="search"] in Chrome and Safari on macOS. */ + &::-webkit-search-cancel-button, + &::-webkit-search-decoration { + appearance: none; + } } /* Standard / Default Only */ @@ -225,6 +159,8 @@ /* Quiet Variant */ .spectrum-Search--quiet { + --spectrum-search-quiet-button-offset: calc((var(--mod-search-block-size, var(--spectrum-search-block-size)) / 2) - (var(--mod-search-icon-size, var(--spectrum-search-icon-size)) / 2)); + .spectrum-Search-clearButton { transform: translateX(var(--mod-search-quiet-button-offset, var(--spectrum-search-quiet-button-offset))); } diff --git a/components/search/metadata/metadata.json b/components/search/metadata/metadata.json index 99c9b8d2b80..7569a051165 100644 --- a/components/search/metadata/metadata.json +++ b/components/search/metadata/metadata.json @@ -8,12 +8,7 @@ ".spectrum-Search .spectrum-Search-textfield .spectrum-Search-input", ".spectrum-Search--quiet", ".spectrum-Search--quiet .spectrum-Search-clearButton", - ".spectrum-Search--quiet.spectrum-Search", ".spectrum-Search--quiet.spectrum-Search .spectrum-Search-input", - ".spectrum-Search--sizeL", - ".spectrum-Search--sizeM", - ".spectrum-Search--sizeS", - ".spectrum-Search--sizeXL", ".spectrum-Search-clearButton", ".spectrum-Search-clearButton .spectrum-ClearButton-fill", ".spectrum-Search-icon", @@ -28,6 +23,10 @@ ".spectrum-Search-textfield.is-keyboardFocused .spectrum-Search-icon", ".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", ".spectrum-Search:not(.spectrum-Search--quiet) .spectrum-Search-input" ], @@ -65,8 +64,7 @@ "--mod-search-quiet-button-offset", "--mod-search-text-to-icon", "--mod-search-to-help-text", - "--mod-search-top-to-text", - "--mod-workflow-icon-size-100" + "--mod-search-top-to-text" ], "component": [ "--spectrum-search-background-color", @@ -100,6 +98,7 @@ "--spectrum-search-icon-size", "--spectrum-search-inline-size", "--spectrum-search-line-height", + "--spectrum-search-min-inline-multiplier", "--spectrum-search-min-inline-size", "--spectrum-search-quiet-button-offset", "--spectrum-search-text-to-icon", @@ -117,10 +116,6 @@ "--spectrum-component-height-200", "--spectrum-component-height-300", "--spectrum-component-height-75", - "--spectrum-component-pill-edge-to-visual-100", - "--spectrum-component-pill-edge-to-visual-200", - "--spectrum-component-pill-edge-to-visual-300", - "--spectrum-component-pill-edge-to-visual-75", "--spectrum-component-top-to-text-100", "--spectrum-corner-radius-100", "--spectrum-default-font-style", @@ -132,8 +127,7 @@ "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", - "--spectrum-gray-400", - "--spectrum-gray-50", + "--spectrum-gray-25", "--spectrum-gray-500", "--spectrum-gray-600", "--spectrum-gray-800", @@ -156,23 +150,7 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-search-border-color-default", - "--system-spectrum-search-border-color-focus", - "--system-spectrum-search-border-color-focus-hover", - "--system-spectrum-search-border-color-hover", - "--system-spectrum-search-border-color-key-focus", - "--system-spectrum-search-border-radius", - "--system-spectrum-search-edge-to-visual", - "--system-spectrum-search-sizel-border-radius", - "--system-spectrum-search-sizel-edge-to-visual", - "--system-spectrum-search-sizem-border-radius", - "--system-spectrum-search-sizem-edge-to-visual", - "--system-spectrum-search-sizes-border-radius", - "--system-spectrum-search-sizes-edge-to-visual", - "--system-spectrum-search-sizexl-border-radius", - "--system-spectrum-search-sizexl-edge-to-visual" - ], + "system-theme": [], "passthroughs": [ "--mod-textfield-background-color", "--mod-textfield-background-color-disabled", diff --git a/components/search/metadata/mods.md b/components/search/metadata/mods.md index e2df72307ce..3afc1b436f9 100644 --- a/components/search/metadata/mods.md +++ b/components/search/metadata/mods.md @@ -34,4 +34,3 @@ | `--mod-search-text-to-icon` | | `--mod-search-to-help-text` | | `--mod-search-top-to-text` | -| `--mod-workflow-icon-size-100` | diff --git a/components/search/metadata/search.yml b/components/search/metadata/search.yml deleted file mode 100644 index db7ce1ebc4c..00000000000 --- a/components/search/metadata/search.yml +++ /dev/null @@ -1,256 +0,0 @@ -name: Search -SpectrumSiteSlug: https://spectrum.adobe.com/page/search-field/ -description: 'This component contains a single input field with both a magnifying glass icon and a clear ("reset") button displayed within it. When making use of this component, the clear button should only be displayed when the input has a value.' -sections: - - name: Migration Guide - description: | - ### New Textfield markup - Search now uses the new Textfield markup. See the [Textfield migration guide](textfield.html#migrationguide) for more information. - - ### Quiet Search requires `.spectrum-Search--quiet` - You now must add `.spectrum-Search--quiet` for Quiet Search. - - ### `.spectrum-Search-icon` is required again - You need to add the `.spectrum-Search-icon` class for Express support. This was previously not required, but has been added back to support the Express design. - - ### New ClearButton markup - See the [ClearButton migration guide](clearbutton.html#migrationguide) for more information. - - ### `.spectrum-Search-clearButton` must be added to `.spectrum-ClearButton` - The `.spectrum-Search-clearButton` class is now required on the `.spectrum-ClearButton`. - - ### `.spectrum-Search-textfield` must be added to `.spectrum-Textfield` - The `.spectrum-Search-textfield` class is now required on the `.spectrum-Textfield`. - -examples: - - id: search - name: Standard - markup: | -
    -
    -

    Default

    - - -
    -
    -

    Disabled

    - - -
    -
    - - - id: search-quiet - name: Quiet - markup: | -
    -
    -

    Default

    - - -
    -
    -

    Disabled

    - - -
    -
    - - - id: search-with-help-text - name: With Help Text - markup: | -
    -
    -

    Standard

    - - -
    -
    -

    Quiet

    - - -
    -
    - - - id: search-standard-sizes - name: Standard Sizes - markup: | -
    -
    -

    Small

    - - -
    -
    -

    Medium

    - - -
    -
    -

    Large

    - - -
    -
    -

    Extra Large

    - - -
    -
    diff --git a/components/search/package.json b/components/search/package.json index 33a87257ab0..cd82cf656fa 100644 --- a/components/search/package.json +++ b/components/search/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/search", - "version": "7.1.4", + "version": "8.0.0-s2-foundations.15", "description": "The Spectrum CSS search component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/search/stories/template.js b/components/search/stories/template.js index bdf59a8779f..b0c3a02e817 100644 --- a/components/search/stories/template.js +++ b/components/search/stories/template.js @@ -4,6 +4,9 @@ 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-Search", diff --git a/components/search/themes/express.css b/components/search/themes/express.css index 7dfe45ef663..1fc4aeafe63 100644 --- a/components/search/themes/express.css +++ b/components/search/themes/express.css @@ -11,37 +11,38 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Search { - --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-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--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--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--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--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--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--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); + &.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 new file mode 100644 index 00000000000..1421370ff6a --- /dev/null +++ b/components/search/themes/spectrum-two.css @@ -0,0 +1,98 @@ +/*! + * 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 + * + * 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); + + /* Size / Spacing */ + --spectrum-search-inline-size: var(--spectrum-field-width); + --spectrum-search-min-inline-multiplier: var(--spectrum-search-field-minimum-width-multiplier); + + --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); + + /* Focus Indicator */ + --spectrum-search-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-search-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-search-focus-indicator-color: var(--spectrum-focus-indicator-color); + + /* Font / Color */ + --spectrum-search-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-search-font-weight: var(--spectrum-regular-font-weight); + --spectrum-search-font-style: var(--spectrum-default-font-style); + --spectrum-search-line-height: var(--spectrum-line-height-100); + + --spectrum-search-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-search-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-search-color-focus: var(--spectrum-neutral-content-color-focus); + --spectrum-search-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); + --spectrum-search-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + /* Background and Border */ + --spectrum-search-border-width: var(--spectrum-border-width-100); + --spectrum-search-background-color: var(--spectrum-gray-25); + + /* Disabled */ + --spectrum-search-color-disabled: var(--spectrum-disabled-content-color); + --spectrum-search-background-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-search-border-color-disabled: var(--spectrum-disabled-background-color); + + &.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-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--sizeM { + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); + --spectrum-search-block-size: var(--spectrum-component-height-100); + --spectrum-search-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-search-text-to-icon: var(--spectrum-text-to-visual-100); + } + + &.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-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--sizeXL { + --spectrum-search-border-radius: var(--spectrum-corner-radius-100); + --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-300); + --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--quiet { + --spectrum-search-background-color: transparent; + --spectrum-search-background-color-disabled: transparent; + --spectrum-search-border-color-disabled: var(--spectrum-disabled-border-color); + + --spectrum-search-border-radius: 0; + --spectrum-search-edge-to-visual: var(--spectrum-field-edge-to-visual-quiet); + } +} diff --git a/components/search/themes/spectrum.css b/components/search/themes/spectrum.css index e4246f817a2..6789d38149d 100644 --- a/components/search/themes/spectrum.css +++ b/components/search/themes/spectrum.css @@ -11,35 +11,13 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Search { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - - --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--sizeS { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-75); - } - .spectrum-Search--sizeM { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - } +/* @combine .spectrum.spectrum--legacy */ - .spectrum-Search--sizeL { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-200); - } +@import "./spectrum-two.css"; - .spectrum-Search--sizeXL { - --spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-300); +@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 a904df8838b..4bfe2c1a906 100644 --- a/components/sidenav/CHANGELOG.md +++ b/components/sidenav/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/sidenav/index.css b/components/sidenav/index.css index 8950a5408b4..03fa0b7deb9 100644 --- a/components/sidenav/index.css +++ b/components/sidenav/index.css @@ -11,97 +11,38 @@ * governing permissions and limitations under the License. */ -.spectrum-SideNav { - /* focus indicator */ - --spectrum-sidenav-focus-ring-size: var(--spectrum-focus-indicator-thickness); - --spectrum-sidenav-focus-ring-gap: var(--spectrum-focus-indicator-gap); - --spectrum-sidenav-focus-ring-color: var(--spectrum-focus-indicator-color); - - /* layout */ - --spectrum-sidenav-min-height: var(--spectrum-component-height-100); - --spectrum-sidenav-width: 100%; - --spectrum-sidenav-min-width: var(--spectrum-side-navigation-minimum-width); - --spectrum-sidenav-max-width: var(--spectrum-side-navigation-maximum-width); - --spectrum-sidenav-border-radius: var(--spectrum-corner-radius-100); - --spectrum-sidenav-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-sidenav-icon-spacing: var(--spectrum-text-to-visual-100); - --spectrum-sidenav-inline-padding: var(--spectrum-component-edge-to-text-100); - --spectrum-sidenav-gap: var(--spectrum-side-navigation-item-to-item); - --spectrum-sidenav-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-sidenav-top-to-label: var(--spectrum-component-top-to-text-100); - --spectrum-sidenav-bottom-to-label: var(--spectrum-side-navigation-bottom-to-text); - - --spectrum-sidenav-start-to-content-second-level: var(--spectrum-side-navigation-second-level-edge-to-text); - --spectrum-sidenav-start-to-content-third-level: var(--spectrum-side-navigation-third-level-edge-to-text); - - --spectrum-sidenav-start-to-content-with-icon-second-level: var(--spectrum-side-navigation-with-icon-second-level-edge-to-text); - --spectrum-sidenav-start-to-content-with-icon-third-level: var(--spectrum-side-navigation-with-icon-third-level-edge-to-text); - - --spectrum-sidenav-heading-top-margin: var(--spectrum-side-navigation-item-to-header); - --spectrum-sidenav-heading-bottom-margin: var(--spectrum-side-navigation-header-to-item); - - /* color - background */ - --spectrum-sidenav-background-disabled: transparent; - --spectrum-sidenav-background-default: transparent; - --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); - - /* color font */ - --spectrum-sidenav-header-color: var(--spectrum-gray-600); - - --spectrum-sidenav-content-disabled-color: var(--spectrum-disabled-content-color); - - --spectrum-sidenav-content-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-sidenav-content-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-sidenav-content-color-down: var(--spectrum-neutral-content-color-down); - --spectrum-sidenav-content-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - - --spectrum-sidenav-content-color-default-selected: var(--spectrum-neutral-content-color-default); - --spectrum-sidenav-content-color-hover-selected: var(--spectrum-neutral-content-color-hover); - --spectrum-sidenav-content-color-down-selected: var(--spectrum-neutral-content-color-down); - --spectrum-sidenav-content-color-key-focus-selected: var(--spectrum-neutral-content-color-key-focus); - - /* typography */ - --spectrum-sidenav-text-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-sidenav-text-font-weight: var(--spectrum-regular-font-weight); - --spectrum-sidenav-text-font-style: var(--spectrum-default-font-style); - --spectrum-sidenav-text-font-size: var(--spectrum-font-size-100); - --spectrum-sidenav-text-line-height: var(--spectrum-line-height-100); - - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-sidenav-text-line-height: var(--spectrum-cjk-line-height-100); + @import "./themes/spectrum-two.css"; + + @media (forced-colors: active) { + /* forced-color-adjust: preserve-parent-color addresses svg bug on icon hover */ + .spectrum-SideNav { + .spectrum-Icon { + forced-color-adjust: preserve-parent-color; /* stylelint-disable-line declaration-property-value-no-unknown */ + } } - --spectrum-sidenav-top-level-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-sidenav-top-level-font-weight: var(--spectrum-bold-font-weight); - --spectrum-sidenav-top-level-font-style: var(--spectrum-default-font-style); - --spectrum-sidenav-top-level-font-size: var(--spectrum-font-size-100); - --spectrum-sidenav-top-level-line-height: var(--spectrum-line-height-100); + .spectrum-SideNav-item { + --highcontrast-sidenav-content-disabled-color: GrayText; - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-sidenav-top-level-line-height: var(--spectrum-cjk-line-height-100); - } + --highcontrast-sidenav-focus-ring-color: Highlight; + + --highcontrast-sidenav-content-color-default-selected: SelectedItemText; + --highcontrast-sidenav-item-background-default-selected: SelectedItem; - --spectrum-sidenav-header-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-sidenav-header-font-weight: var(--spectrum-medium-font-weight); - --spectrum-sidenav-header-font-style: var(--spectrum-default-font-style); - --spectrum-sidenav-header-font-size: var(--spectrum-font-size-75); - --spectrum-sidenav-header-line-height: var(--spectrum-line-height-100); + --highcontrast-sidenav-background-key-focus-selected: Highlight; + --highcontrast-sidenav-background-hover-selected: Highlight; + --highcontrast-sidenav-item-background-down-selected: Highlight; - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-sidenav-header-line-height: var(--spectrum-cjk-line-height-100); + --highcontrast-sidenav-item-background-down: Highlight; + --highcontrast-sidenav-background-hover: Highlight; + --highcontrast-sidenav-content-color-hover: HighlightText; + --highcontrast-sidenav-background-key-focus: Highlight; + + --highcontrast-sidenav-top-level-font-color: ButtonText; + --highcontrast-sidenav-content-color-default: ButtonText; + --highcontrast-sidenav-content-color-down: HighlightText; + + forced-color-adjust: none; } } @@ -128,27 +69,27 @@ pointer-events: none; } } -} - -.spectrum-SideNav-item.is-selected { - .spectrum-SideNav-itemLink { - background-color: var(--highcontrast-sidenav-item-background-default-selected, var(--mod-sidenav-item-background-default-selected, var(--spectrum-sidenav-item-background-default-selected))); - color: var(--highcontrast-sidenav-content-color-default-selected, var(--mod-sidenav-content-color-default-selected, var(--spectrum-sidenav-content-color-default-selected))); - - &:hover { - background-color: var(--highcontrast-sidenav-background-hover-selected, var(--mod-sidenav-background-hover-selected, var(--spectrum-sidenav-background-hover-selected))); - color: var(--mod-sidenav-content-color-hover-selected, var(--spectrum-sidenav-content-color-hover-selected)); - } - - &:active { - background-color: var(--highcontrast-sidenav-item-background-down-selected, var(--mod-sidenav-item-background-down-selected, var(--spectrum-sidenav-item-background-down-selected))); - color: var(--mod-sidenav-content-color-down-selected, var(--spectrum-sidenav-content-color-down-selected)); - } - &.is-keyboardFocused, - &:focus-visible { - background-color: var(--highcontrast-sidenav-background-key-focus-selected, var(--mod-sidenav-background-key-focus-selected, var(--spectrum-sidenav-background-key-focus-selected))); - color: var(--mod-sidenav-content-color-key-focus-selected, var(--spectrum-sidenav-content-color-key-focus-selected)); + &.is-selected { + .spectrum-SideNav-itemLink { + background-color: var(--highcontrast-sidenav-item-background-default-selected, var(--mod-sidenav-item-background-default-selected, var(--spectrum-sidenav-item-background-default-selected))); + color: var(--highcontrast-sidenav-content-color-default-selected, var(--mod-sidenav-content-color-default-selected, var(--spectrum-sidenav-content-color-default-selected))); + + &:hover { + background-color: var(--highcontrast-sidenav-background-hover-selected, var(--mod-sidenav-background-hover-selected, var(--spectrum-sidenav-background-hover-selected))); + color: var(--mod-sidenav-content-color-hover-selected, var(--spectrum-sidenav-content-color-hover-selected)); + } + + &:active { + background-color: var(--highcontrast-sidenav-item-background-down-selected, var(--mod-sidenav-item-background-down-selected, var(--spectrum-sidenav-item-background-down-selected))); + color: var(--mod-sidenav-content-color-down-selected, var(--spectrum-sidenav-content-color-down-selected)); + } + + &.is-keyboardFocused, + &:focus-visible { + background-color: var(--highcontrast-sidenav-background-key-focus-selected, var(--mod-sidenav-background-key-focus-selected, var(--spectrum-sidenav-background-key-focus-selected))); + color: var(--mod-sidenav-content-color-key-focus-selected, var(--spectrum-sidenav-content-color-key-focus-selected)); + } } } } @@ -259,35 +200,3 @@ } } } - -@media (forced-colors: active) { - /* forced-color-adjust: preserve-parent-color addresses svg bug on icon hover */ - .spectrum-SideNav { - .spectrum-Icon { - forced-color-adjust: preserve-parent-color; /* stylelint-disable-line declaration-property-value-no-unknown */ - } - } - - .spectrum-SideNav-item { - forced-color-adjust: none; - --highcontrast-sidenav-content-disabled-color: GrayText; - - --highcontrast-sidenav-focus-ring-color: Highlight; - - --highcontrast-sidenav-content-color-default-selected: SelectedItemText; - --highcontrast-sidenav-item-background-default-selected: SelectedItem; - - --highcontrast-sidenav-background-key-focus-selected: Highlight; - --highcontrast-sidenav-background-hover-selected: Highlight; - --highcontrast-sidenav-item-background-down-selected: Highlight; - - --highcontrast-sidenav-item-background-down: Highlight; - --highcontrast-sidenav-background-hover: Highlight; - --highcontrast-sidenav-content-color-hover: HighlightText; - --highcontrast-sidenav-background-key-focus: Highlight; - - --highcontrast-sidenav-top-level-font-color: ButtonText; - --highcontrast-sidenav-content-color-default: ButtonText; - --highcontrast-sidenav-content-color-down: HighlightText; - } -} diff --git a/components/sidenav/metadata/metadata.json b/components/sidenav/metadata/metadata.json index 08e0dcc839d..9d939e9b9e7 100644 --- a/components/sidenav/metadata/metadata.json +++ b/components/sidenav/metadata/metadata.json @@ -166,8 +166,8 @@ "--spectrum-focus-indicator-thickness", "--spectrum-font-size-100", "--spectrum-font-size-75", + "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", "--spectrum-gray-600", "--spectrum-line-height-100", "--spectrum-medium-font-weight", diff --git a/components/sidenav/metadata/sidenav.yml b/components/sidenav/metadata/sidenav.yml deleted file mode 100644 index 60f24ef0c93..00000000000 --- a/components/sidenav/metadata/sidenav.yml +++ /dev/null @@ -1,220 +0,0 @@ -name: Side navigation -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/side-navigation/ -description: | - Side navigation lets users navigate the entire content of a product or a section. Make sure to use the appropriate variant for the context and user needs. Don’t mix behavior, styles, or variations together in a single navigation menu. -sections: - - name: Migration Guide - description: | - Core token migration work and design updates added a span tag wrapping the link text. - -examples: - - id: sidenav - name: Standard - description: When navigation is simple use the standard or single level navigation. - markup: | - - - id: sidenav - name: Multilevel - description: Use a multi-level side navigation when there are multiple layers of hierarchical navigation. - markup: | - - - - id: sidenav - name: Heading - description: When navigation is simple but categorical, use the single level side navigation with headings. - markup: | - - - id: sidenav - name: Icon - description: Icons can be displayed in first-level items of any type of side navigation (single level or multi-level). - markup: | - diff --git a/components/sidenav/package.json b/components/sidenav/package.json index 4a096409599..f1d0c5480fb 100644 --- a/components/sidenav/package.json +++ b/components/sidenav/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/sidenav", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS sidenav component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/sidenav/stories/template.js b/components/sidenav/stories/template.js index feea111d89b..d65e3aceac7 100644 --- a/components/sidenav/stories/template.js +++ b/components/sidenav/stories/template.js @@ -7,6 +7,9 @@ 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", @@ -15,67 +18,66 @@ export const Template = ({ hasIcon, iconName, items = [], -} = {}, context = {}) => html` - -`; +} = {}, context = {}) => { + return html` + + `; +}; /** * Renders a single navigation item, and an optional third tier of items. diff --git a/components/sidenav/themes/express.css b/components/sidenav/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/sidenav/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..4e4594ab117 --- /dev/null +++ b/components/sidenav/themes/spectrum-two.css @@ -0,0 +1,98 @@ +/*! + * 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 + * + * 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 { + /* focus indicator */ + --spectrum-sidenav-focus-ring-size: var(--spectrum-focus-indicator-thickness); + --spectrum-sidenav-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --spectrum-sidenav-focus-ring-color: var(--spectrum-focus-indicator-color); + + /* layout */ + --spectrum-sidenav-min-height: var(--spectrum-component-height-100); + --spectrum-sidenav-width: 100%; + --spectrum-sidenav-min-width: var(--spectrum-side-navigation-minimum-width); + --spectrum-sidenav-max-width: var(--spectrum-side-navigation-maximum-width); + --spectrum-sidenav-border-radius: var(--spectrum-corner-radius-100); + --spectrum-sidenav-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-sidenav-icon-spacing: var(--spectrum-text-to-visual-100); + --spectrum-sidenav-inline-padding: var(--spectrum-component-edge-to-text-100); + --spectrum-sidenav-gap: var(--spectrum-side-navigation-item-to-item); + --spectrum-sidenav-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-sidenav-top-to-label: var(--spectrum-component-top-to-text-100); + --spectrum-sidenav-bottom-to-label: var(--spectrum-side-navigation-bottom-to-text); + + --spectrum-sidenav-start-to-content-second-level: var(--spectrum-side-navigation-second-level-edge-to-text); + --spectrum-sidenav-start-to-content-third-level: var(--spectrum-side-navigation-third-level-edge-to-text); + + --spectrum-sidenav-start-to-content-with-icon-second-level: var(--spectrum-side-navigation-with-icon-second-level-edge-to-text); + --spectrum-sidenav-start-to-content-with-icon-third-level: var(--spectrum-side-navigation-with-icon-third-level-edge-to-text); + + --spectrum-sidenav-heading-top-margin: var(--spectrum-side-navigation-item-to-header); + --spectrum-sidenav-heading-bottom-margin: var(--spectrum-side-navigation-header-to-item); + + /* 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); + + --spectrum-sidenav-content-disabled-color: var(--spectrum-disabled-content-color); + + --spectrum-sidenav-content-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-sidenav-content-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-sidenav-content-color-down: var(--spectrum-neutral-content-color-down); + --spectrum-sidenav-content-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + + --spectrum-sidenav-content-color-default-selected: var(--spectrum-neutral-content-color-default); + --spectrum-sidenav-content-color-hover-selected: var(--spectrum-neutral-content-color-hover); + --spectrum-sidenav-content-color-down-selected: var(--spectrum-neutral-content-color-down); + --spectrum-sidenav-content-color-key-focus-selected: var(--spectrum-neutral-content-color-key-focus); + + /* typography */ + --spectrum-sidenav-text-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-sidenav-text-font-weight: var(--spectrum-regular-font-weight); + --spectrum-sidenav-text-font-style: var(--spectrum-default-font-style); + --spectrum-sidenav-text-font-size: var(--spectrum-font-size-100); + --spectrum-sidenav-text-line-height: var(--spectrum-line-height-100); + + --spectrum-sidenav-top-level-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-sidenav-top-level-font-weight: var(--spectrum-bold-font-weight); + --spectrum-sidenav-top-level-font-style: var(--spectrum-default-font-style); + --spectrum-sidenav-top-level-font-size: var(--spectrum-font-size-100); + --spectrum-sidenav-top-level-line-height: var(--spectrum-line-height-100); + + --spectrum-sidenav-header-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-sidenav-header-font-weight: var(--spectrum-medium-font-weight); + --spectrum-sidenav-header-font-style: var(--spectrum-default-font-style); + --spectrum-sidenav-header-font-size: var(--spectrum-font-size-75); + --spectrum-sidenav-header-line-height: var(--spectrum-line-height-100); + + &:lang(ja), + &:lang(zh), + &:lang(ko) { + --spectrum-sidenav-text-line-height: var(--spectrum-cjk-line-height-100); + --spectrum-sidenav-top-level-line-height: var(--spectrum-cjk-line-height-100); + --spectrum-sidenav-header-line-height: var(--spectrum-cjk-line-height-100); + } + } +} diff --git a/components/sidenav/themes/spectrum.css b/components/sidenav/themes/spectrum.css new file mode 100644 index 00000000000..f6fdc4259ab --- /dev/null +++ b/components/sidenav/themes/spectrum.css @@ -0,0 +1,30 @@ +/*! + * 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 + * + * 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/site/CHANGELOG.md b/components/site/CHANGELOG.md deleted file mode 100644 index d7bb8c5b5ec..00000000000 --- a/components/site/CHANGELOG.md +++ /dev/null @@ -1,739 +0,0 @@ -# Change Log - -## 5.1.3 - -### Patch Changes - -- [#3107](https://github.com/adobe/spectrum-css/pull/3107) [`83d5a17`](https://github.com/adobe/spectrum-css/commit/83d5a171bd850df693707611203ecce21f22e7d2) Thanks [@castastrophe](https://github.com/castastrophe)! - Incorporate glob export for the dist directory in all component packages as well as glob markdown exports (to include both CHANGELOG and READMEs). - - Sort keys in the package.json assets. - -## 5.1.2 - -### Patch Changes - -- [#3045](https://github.com/adobe/spectrum-css/pull/3045) [`5d6e03f`](https://github.com/adobe/spectrum-css/commit/5d6e03f30891f9171f1a600b06d534ee85719277) Thanks [@castastrophe](https://github.com/castastrophe)! - Improve changeset suggestions by using exports instead of files in component packages - -## 5.1.1 - -### Patch Changes - -- [#2677](https://github.com/adobe/spectrum-css/pull/2677) [`d83200c`](https://github.com/adobe/spectrum-css/commit/d83200ca70a959aa70329e71de0c4383de157855) Thanks [@castastrophe](https://github.com/castastrophe)! - Leveral local workspace versioning to prevent misalignment - -## 5.1.0 - -### Minor Changes - -- [#2616](https://github.com/adobe/spectrum-css/pull/2616) [`7f45ea9`](https://github.com/adobe/spectrum-css/commit/7f45ea95d3d31addf29b0720de8623b0f3f0431d) Thanks [@castastrophe](https://github.com/castastrophe)! - -#### Build optmizations to support minification - -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/tokens@>=14 - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - - - -## 5.0.0 - -🗓 -2024-04-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.2.4...@spectrum-css/site@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 - -- Imports added to index.css and themes/express.css - - - -## 4.2.4 - -🗓 -2024-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.2.3...@spectrum-css/site@4.2.4) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.2.3 - -🗓 -2024-02-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.2.2...@spectrum-css/site@4.2.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.2.2 - -🗓 -2024-02-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.2.1...@spectrum-css/site@4.2.2) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.2.1 - -🗓 -2024-02-06 - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.2.0 - -🗓 -2024-02-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.1.0...@spectrum-css/site@4.2.0) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.1.0 - -🗓 -2024-01-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.0.4...@spectrum-css/site@4.1.0) - -### ✨ Features - -- **asset,cyclebutton,quickaction,site:**deprecate skin.css assets ([#2438](https://github.com/adobe/spectrum-css/issues/2438))([d6de839](https://github.com/adobe/spectrum-css/commit/d6de839)) - - - -## 4.0.4 - -🗓 -2024-01-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.0.3...@spectrum-css/site@4.0.4) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.0.3 - -🗓 -2023-12-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.0.2...@spectrum-css/site@4.0.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 4.0.2 - -🗓 -2023-11-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.0.0...@spectrum-css/site@4.0.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) - - - -## 4.0.1 - -🗓 -2023-11-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@4.0.0...@spectrum-css/site@4.0.1) - -### 🔙 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) - - - -## 4.0.0 - -🗓 -2023-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.22...@spectrum-css/site@4.0.0) - -\*refactor(site)!: replace focus-ring with focus-visible([c3896b2](https://github.com/adobe/spectrum-css/commit/c3896b2)) - - ### - 🛑 BREAKING CHANGES - - * - replace focus-ring with native focus-visible pseudo class - - - -## 3.0.22 - -🗓 -2023-08-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.21...@spectrum-css/site@3.0.22) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.21 - -🗓 -2023-06-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.20...@spectrum-css/site@3.0.21) - -### 🐛 Bug fixes - -\*restore files to pre-formatted state([491dbcb](https://github.com/adobe/spectrum-css/commit/491dbcb)) - - - -## 3.0.20 - -🗓 -2023-06-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.19...@spectrum-css/site@3.0.20) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.19 - -🗓 -2023-06-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.18...@spectrum-css/site@3.0.19) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.18 - -🗓 2023-05-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.17...@spectrum-css/site@3.0.18) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.17 - -🗓 2023-05-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.16...@spectrum-css/site@3.0.17) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.16 - -🗓 2023-05-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.15...@spectrum-css/site@3.0.16) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.15 - -🗓 2023-04-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.14...@spectrum-css/site@3.0.15) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.14 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.12...@spectrum-css/site@3.0.14) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.13 - -🗓 2023-04-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.12...@spectrum-css/site@3.0.13) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.12 - -🗓 2023-04-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.10...@spectrum-css/site@3.0.12) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.11 - -🗓 2023-04-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.10...@spectrum-css/site@3.0.11) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.10 - -🗓 2023-04-03 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.9...@spectrum-css/site@3.0.10) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.9 - -🗓 2023-03-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.8...@spectrum-css/site@3.0.9) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.8 - -🗓 2023-02-21 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.7...@spectrum-css/site@3.0.8) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.7 - -🗓 2023-02-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.6...@spectrum-css/site@3.0.7) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.6 - -🗓 2023-02-01 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.5...@spectrum-css/site@3.0.6) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.5 - -🗓 2023-01-27 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.4...@spectrum-css/site@3.0.5) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.4 - -🗓 2023-01-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.3...@spectrum-css/site@3.0.4) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.3 - -🗓 2023-01-18 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.1...@spectrum-css/site@3.0.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.2 - -🗓 2023-01-13 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.1...@spectrum-css/site@3.0.2) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.1 - -🗓 2022-11-11 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@3.0.0...@spectrum-css/site@3.0.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 3.0.0 - -🗓 2022-09-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.13...@spectrum-css/site@3.0.0) - -- feat(switch)!: migrating switch to core-tokens (CSS-42, CSS-100) (#1496) ([aab46c3](https://github.com/adobe/spectrum-css/commit/aab46c3)), closes [#1496](https://github.com/adobe/spectrum-css/issues/1496) - -### 🛑 BREAKING CHANGES - -- migrates Switch to core tokens - -Also, adds t-shirt sizes - - - -## 2.1.13 - -🗓 2022-06-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.12...@spectrum-css/site@2.1.13) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.12 - -🗓 2022-06-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.11...@spectrum-css/site@2.1.12) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.11 - -🗓 2022-04-28 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.10...@spectrum-css/site@2.1.11) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.10 - -🗓 2022-04-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.9...@spectrum-css/site@2.1.10) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.9 - -🗓 2022-03-22 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.8...@spectrum-css/site@2.1.9) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.8 - -🗓 2022-03-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.7...@spectrum-css/site@2.1.8) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.7 - -🗓 2022-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.6...@spectrum-css/site@2.1.7) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.6 - -🗓 2022-03-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.5...@spectrum-css/site@2.1.6) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.5 - -🗓 2022-02-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.4...@spectrum-css/site@2.1.5) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.4 - -🗓 2022-02-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.3...@spectrum-css/site@2.1.4) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.3 - -🗓 2022-01-26 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.2...@spectrum-css/site@2.1.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.2 - -🗓 2022-01-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.0...@spectrum-css/site@2.1.2) - -### 🐛 Bug fixes - -- update peer dependencies ([97810cf](https://github.com/adobe/spectrum-css/commit/97810cf)) - - - -## 2.1.1 - -🗓 2022-01-05 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.1-beta.0...@spectrum-css/site@2.1.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.1-beta.0 - -🗓 2021-12-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.1.0...@spectrum-css/site@2.1.1-beta.0) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.1.0 - -🗓 2021-12-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.9...@spectrum-css/site@2.1.0) - -### ✨ Features - -- add classes to space examples out ([9182d54](https://github.com/adobe/spectrum-css/commit/9182d54)) - - - -## 2.0.9 - -🗓 2021-12-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.8...@spectrum-css/site@2.0.9) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.8 - -🗓 2021-11-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.7...@spectrum-css/site@2.0.8) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.7 - -🗓 2021-11-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.6...@spectrum-css/site@2.0.7) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.6 - -🗓 2021-11-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.5...@spectrum-css/site@2.0.6) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.5 - -🗓 2021-11-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.3...@spectrum-css/site@2.0.5) - -### 🐛 Bug fixes - -- updating version number on vars ([f535b49](https://github.com/adobe/spectrum-css/commit/f535b49)) - - - -## 2.0.4 - -🗓 2021-10-25 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.3...@spectrum-css/site@2.0.4) - -### 🐛 Bug fixes - -- updating version number on vars ([f535b49](https://github.com/adobe/spectrum-css/commit/f535b49)) - - - -## 2.0.3 - -🗓 2021-09-29 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.3...@spectrum-css/site@2.0.3) - -### 🐛 Bug fixes - -- updating version number on vars ([f535b49](https://github.com/adobe/spectrum-css/commit/f535b49)) - - - -## 2.0.3-alpha.3 - -🗓 2021-08-16 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.2...@spectrum-css/site@2.0.3-alpha.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.3-alpha.2 - -🗓 2021-06-17 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.1...@spectrum-css/site@2.0.3-alpha.2) - -### 🐛 Bug fixes - -- adjusted example margin-bottom for example item ([b1dbd99](https://github.com/adobe/spectrum-css/commit/b1dbd99)) -- use renamed aliases ([91f6c04](https://github.com/adobe/spectrum-css/commit/91f6c04)) - - - -## 2.0.3-alpha.1 - -🗓 2021-05-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.3-alpha.0...@spectrum-css/site@2.0.3-alpha.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.3-alpha.0 - -🗓 2021-04-27 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.2...@spectrum-css/site@2.0.3-alpha.0) - -### 🐛 Bug fixes - -- taggroup to use more dna tokens ([243aad6](https://github.com/adobe/spectrum-css/commit/243aad6)) - - - -## 2.0.2 - -🗓 2021-04-15 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.1...@spectrum-css/site@2.0.2) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.1 - -🗓 2021-03-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0...@spectrum-css/site@2.0.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.0 - -🗓 2021-02-02 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.6...@spectrum-css/site@2.0.0) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.0-beta.6 - -🗓 2020-12-04 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.5...@spectrum-css/site@2.0.0-beta.6) - -### 🐛 Bug fixes - -- update main, resolved conflicts ([d7880a2](https://github.com/adobe/spectrum-css/commit/d7880a2)) - - - -## 2.0.0-beta.5 - -🗓 2020-10-20 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.4...@spectrum-css/site@2.0.0-beta.5) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.0-beta.4 - -🗓 2020-09-23 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.3...@spectrum-css/site@2.0.0-beta.4) - -### ✨ Features - -- RSP V3 Dialog ([#710](https://github.com/adobe/spectrum-css/issues/710)) ([33d6638](https://github.com/adobe/spectrum-css/commit/33d6638)), closes [rsp-v3#517](https://github.com/rsp-v3/issues/517) - -### 🐛 Bug fixes - -- Checkbox and Radio margins, docs, and typography ([#897](https://github.com/adobe/spectrum-css/issues/897)) ([a089ce0](https://github.com/adobe/spectrum-css/commit/a089ce0)), closes [#243](https://github.com/adobe/spectrum-css/issues/243) [#124](https://github.com/adobe/spectrum-css/issues/124) [#707](https://github.com/adobe/spectrum-css/issues/707) [#243](https://github.com/adobe/spectrum-css/issues/243) [#251](https://github.com/adobe/spectrum-css/issues/251) - -### 🛑 BREAKING CHANGES - -- Checkbox and Radio no longer have margin on their own, must use FieldGroup - -- feat: add .spectrum-Example to wrap sub-examples -- The spectrum-FieldGroup--horizontal is now required for horizontal field groups - -- feat: remove hit area from Radio/Checkbox - - - -## 2.0.0-beta.3 - -🗓 2020-06-19 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.2...@spectrum-css/site@2.0.0-beta.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.0-beta.2 - -🗓 2020-05-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.1...@spectrum-css/site@2.0.0-beta.2) - -### ✨ Features - -- Color Handle/Slider/Area/Wheel ([#673](https://github.com/adobe/spectrum-css/issues/673)) ([bcd2bf1](https://github.com/adobe/spectrum-css/commit/bcd2bf1)) - - - -## 2.0.0-beta.1 - -🗓 2020-03-12 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@2.0.0-beta.0...@spectrum-css/site@2.0.0-beta.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 2.0.0-beta.0 - -🗓 2020-03-09 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.1.1...@spectrum-css/site@2.0.0-beta.0) - -### ✨ Features - -- make Site layout respect RTL ([77b18df](https://github.com/adobe/spectrum-css/commit/77b18df)) - - - -## 1.1.1 - -🗓 2020-03-06 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.1.0...@spectrum-css/site@1.1.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 1.1.0 - -🗓 2020-02-10 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.0.3...@spectrum-css/site@1.1.0) - -### ✨ Features - -- adding t-shirt sized typography, fixes [#210](https://github.com/adobe/spectrum-css/issues/210), closes [#416](https://github.com/adobe/spectrum-css/issues/416) ([#408](https://github.com/adobe/spectrum-css/issues/408)) ([3921bcb](https://github.com/adobe/spectrum-css/commit/3921bcb)), closes [#523](https://github.com/adobe/spectrum-css/issues/523) - - - -## 1.0.3 - -🗓 2019-12-14 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.0.2...@spectrum-css/site@1.0.3) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 1.0.2 - -🗓 2019-11-08 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.0.1...@spectrum-css/site@1.0.2) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 1.0.1 - -🗓 2019-11-07 • 📝 [Commits](https://github.com/adobe/spectrum-css/compare/@spectrum-css/site@1.0.0...@spectrum-css/site@1.0.1) - -**Note:** Version bump only for package @spectrum-css/site - - - -## 1.0.0 - -🗓 2019-10-08 - -### ✨ Features - -- move to individually versioned packages with Lerna ([#265](https://github.com/adobe/spectrum-css/issues/265)) ([cb7fd4b](https://github.com/adobe/spectrum-css/commit/cb7fd4b)), closes [#231](https://github.com/adobe/spectrum-css/issues/231) [#214](https://github.com/adobe/spectrum-css/issues/214) [#229](https://github.com/adobe/spectrum-css/issues/229) [#240](https://github.com/adobe/spectrum-css/issues/240) [#239](https://github.com/adobe/spectrum-css/issues/239) [#161](https://github.com/adobe/spectrum-css/issues/161) [#242](https://github.com/adobe/spectrum-css/issues/242) [#246](https://github.com/adobe/spectrum-css/issues/246) [#219](https://github.com/adobe/spectrum-css/issues/219) [#235](https://github.com/adobe/spectrum-css/issues/235) [#189](https://github.com/adobe/spectrum-css/issues/189) [#248](https://github.com/adobe/spectrum-css/issues/248) [#232](https://github.com/adobe/spectrum-css/issues/232) [#248](https://github.com/adobe/spectrum-css/issues/248) [#218](https://github.com/adobe/spectrum-css/issues/218) [#237](https://github.com/adobe/spectrum-css/issues/237) [#255](https://github.com/adobe/spectrum-css/issues/255) [#256](https://github.com/adobe/spectrum-css/issues/256) [#258](https://github.com/adobe/spectrum-css/issues/258) [#257](https://github.com/adobe/spectrum-css/issues/257) [#259](https://github.com/adobe/spectrum-css/issues/259) diff --git a/components/site/README.md b/components/site/README.md deleted file mode 100644 index e929e534289..00000000000 --- a/components/site/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# @spectrum-css/site - -> The Spectrum CSS Site 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/site/component.css b/components/site/component.css deleted file mode 100644 index 3da1edf9cbf..00000000000 --- a/components/site/component.css +++ /dev/null @@ -1,375 +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 - * - * 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. - */ - -/* CSS Component */ -.spectrum-CSSComponent { - box-sizing: border-box; - inline-size: min(1080px, 100%); - margin: var(--spectrum-spacing-600) auto; - padding: 0 56px; -} - -.spectrum-CSSComponent-heading { - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-between; - - margin-block-end: var(--spectrum-spacing-600); -} - -.spectrum-CSSComponent-link { - display: flex; - align-items: center; - - color: inherit; - text-decoration: none; - - outline: none; - - &:focus-visible, - &:hover { - text-decoration: underline; - } -} - -.spectrum-CSSComponent-statusContainer { - display: flex; - flex-flow: row nowrap; - flex-grow: 1; - gap: 80px; - align-self: center; - - > * { - flex-basis: min(370px, 50%); - } -} - -.spectrum-CSSComponent-detailsTable { - --mod-table-cursor-row-default: default; - --mod-table-row-background-color-hover: transparent; - --mod-table-divider-color: transparent; - --mod-table-border-color: transparent; - --mod-table-row-line-height: 1.6; - - border-spacing: 0; - margin-block-start: var(--spectrum-spacing-600); - margin-block-end: 36px; - - & th { - block-size: var(--spectrum-spacing-300); - padding-inline-end: var(--spectrum-spacing-400); - font-weight: var(--spectrum-regular-font-weight); - text-align: start; - } -} - -.spectrum-CSSComponent-sectionHeading { - margin-block-start: var(--spectrum-spacing-700); - margin-block-end: var(--spectrum-spacing-500); -} - -.spectrum-CSSExample-status, -.spectrum-CSSComponent-status { - min-block-size: 0 !important; - padding: 0 !important; -} - -.spectrum-CSSComponent-status::before { - margin-inline-start: 0 !important; -} - -.spectrum-CSSExample-status { - margin-inline-start: var(--spectrum-spacing-200); -} - -.spectrum-CSSComponent-version { - flex-grow: 1; - text-align: end; -} - -.spectrum-CSSComponent-description { - margin-block-start: var(--spectrum-spacing-400); - margin-block-end: var(--spectrum-spacing-700); -} - -/* cards */ -.spectrum-CSSComponent-resources { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-block-end: var(--spectrum-spacing-500); - - & .spectrum-Card { - margin-block-end: var(--spectrum-spacing-300); - margin-inline-end: var(--spectrum-spacing-300); - } -} - -.spectrum-CSSComponent-resource--adobe, -.spectrum-CSSComponent-resources a[href*="spectrum.adobe.com"] .spectrum-Card-preview { - color: rgb(250, 15, 0); - background-color: var(--spectrum-gray-100); -} - -.spectrum-CSSComponent-resource--github, -.spectrum-CSSComponent-resources a[href*="github.com"] .spectrum-Card-preview { - color: var(--spectrum-black); - background-color: var(--spectrum-transparent-black-200); -} - -.spectrum-CSSComponent-resource--npm, -.spectrum-CSSComponent-resources a[href*="npmjs.com"] .spectrum-Card-preview { - background-color: rgba(203, 56, 55, 10%); -} - -.spectrum-CSSComponent-cardImage { - text-decoration: none; -} - -.spectrum-CSSComponent-switcher { - display: flex; - flex-direction: row; - flex-wrap: wrap; - gap: var(--spectrum-spacing-500); - justify-content: flex-end; -} - -.spectrum-CSS-switcherContainer { - margin-inline-start: var(--spectrum-spacing-300); - white-space: nowrap; -} - -/* CSS Example */ -.spectrum-CSSExample { - margin-block-end: 64px; -} - -.spectrum-CSSExample-container { - position: relative; - display: flex; - flex-direction: column; - border-radius: var(--spectrum-corner-radius-100); -} - -.spectrum-CSSExample-heading { - display: flex; - flex-direction: row; - align-items: center; - margin-block-end: var(--spectrum-spacing-100) !important; -} - -.spectrum-CSSExample-example, -.spectrum-CSSExample-markup { - box-sizing: border-box; -} - -:root { - --spectrum-docs-static-white-background-color: var(--spectrum-seafoam-900); - --spectrum-docs-static-black-background-color: var(--spectrum-seafoam-100); -} - -.spectrum-CSSExample-example { - flex: 1 0 auto; - min-block-size: 0; - padding: var(--spectrum-spacing-500) var(--spectrum-spacing-600); - border-radius: var(--spectrum-corner-radius-100) var(--spectrum-corner-radius-100) 0 0; - - &:has(> .spectrum-CSSExample-example-staticWhite) { - background-color: var(--spectrum-docs-static-white-background-color); - border-color: var(--spectrum-docs-static-white-background-color); - } - - &:has(> .spectrum-CSSExample-example-staticBlack) { - background-color: var(--spectrum-docs-static-black-background-color); - border-color: var(--spectrum-docs-static-black-background-color); - } -} - -.spectrum-CSSExample-markup { - position: relative; - - overflow: hidden; - - max-inline-size: 100%; - max-block-size: 192px; - padding: 10px 18px; - - border-radius: 0 0 var(--spectrum-corner-radius-100) var(--spectrum-corner-radius-100); - - &.is-open { - max-block-size: 100%; - padding-block-end: var(--spectrum-spacing-700); - - & .spectrum-CSSExample-markupToggle::before { - display: none; - } - } -} - -.spectrum-CSSExample-markupToggle + pre { - padding-block-end: var(--spectrum-spacing-100); -} - -.spectrum-CSSExample-example--spacious { - position: relative; - block-size: 150px; -} - -.spectrum-CSSExample-example--overlay { - position: relative; - min-block-size: var(--spectrum-spacing-800); -} - -.spectrum-CSSExample-dialog { - position: relative !important; - z-index: 1 !important; - inset-block-start: 0; - inset-inline-start: 0; - transform: none !important; - - inline-size: auto !important; - block-size: auto !important; - margin-inline-start: auto; - margin-inline-end: auto; - - transition: none; -} - -/* Mimics the .spectrum-Modal-wrapper so the modals & dialogs are above the underlay */ -.spectrum-CSSExample-modal { - z-index: 2 !important; -} - -.spectrum-Examples, -.spectrum-Examples-itemGroup { - display: flex; - flex-direction: row; - flex-wrap: wrap; - gap: var(--spectrum-spacing-100); - justify-content: space-between; -} - -.spectrum-Examples--vertical { - flex-direction: column; -} - -.spectrum-Examples-item .spectrum-Examples-itemHeading { - margin-block-end: var(--spectrum-spacing-100); -} - -.spectrum-Button.spectrum-CSSExample-overlayShowButton { - position: absolute; - inset-block-start: 50%; - inset-inline-start: 50%; - transform: translate(-50%, -50%); -} - -.spectrum-CSSExample-markup pre code { - white-space: pre-wrap; -} - -.spectrum-CSSExample-markupToggle { - position: absolute; - z-index: 0; - inset-block-end: 0; - inset-inline-start: 0; - inset-inline-end: 0; - - box-sizing: border-box; - padding: var(--spectrum-spacing-400); - - font-size: var(--spectrum-font-size-50); - text-align: start; -} - -.spectrum-CenteredImage { - display: block; - inline-size: max(720px, 100%); - margin: auto; -} - -.spectrum-CodeBlock { - margin: var(--spectrum-spacing-200) 0; - padding: var(--spectrum-spacing-100) var(--spectrum-spacing-200); - - border-style: solid; - border-width: var(--spectrum-border-width-100); - border-radius: var(--spectrum-spacing-50); -} - -/* CSS Example */ -.spectrum-CSSExample-example { - background-color: var(--spectrum-background-layer-1-color, var(--spectrum-gray-100)); -} - -.spectrum-CSSExample-markup { - background-color: var(--spectrum-gray-75); - border-block-start: 1px solid var(--spectrum-gray-100); -} - -.spectrum-CSSExample-markupToggle { - z-index: 1; - background-color: var(--spectrum-gray-75); -} - -.spectrum-CSSExample-markup.is-open .spectrum-CSSExample-markupToggle { - background-color: transparent; -} - -.spectrum-CSSExample-example--overlay { - color: var(--spectrum-transparent-black-400); - background-color: var(--spectrum-transparent-black-400); -} - -.spectrum-CSSExample-oldAPI { - color: var(--spectrum-negative-color-800); -} - -.spectrum-CodeBlock { - background-color: var(--spectrum-gray-75); - border-color: var(--spectrum-gray-400); -} - -@media screen and (width <= 960px) { - .spectrum-CSSComponent { - margin-block: var(--spectrum-spacing-100); - margin-inline: auto; - padding-inline: 0 var(--spectrum-spacing-600); - } - - .spectrum-CSSComponent-description { - margin-block-end: var(--spectrum-spacing-200); - } - - .spectrum-CSSExample { - margin-block-end: var(--spectrum-spacing-200); - } - - .spectrum-CSSExample-example { - padding: var(--spectrum-spacing-200); - } - - .spectrum-CSSComponent-header { - margin-block-end: var(--spectrum-spacing-200); - } - - .spectrum-CSSComponent-statusContainer, - .spectrum-CSSComponent-version { - display: none; - } - - .spectrum-CSSComponent-title { - font-size: var(--spectrum-font-size-500); - } -} diff --git a/components/site/index.css b/components/site/index.css deleted file mode 100644 index de10099eb5e..00000000000 --- a/components/site/index.css +++ /dev/null @@ -1,48 +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 - * - * 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 "./site.css"; -@import "./component.css"; - -/* Scrollable */ -.u-scrollable, -.is-scrollable { - overflow-x: hidden; - overflow-y: auto; - - -webkit-overflow-scrolling: touch; - - &::-webkit-scrollbar { - inline-size: 10px; - block-size: 10px; - } - - &::-webkit-scrollbar-thumb { - inline-size: 8px; - block-size: 8px; - - background-color: var(--spectrum-gray-75); - background-clip: padding-box; - border-block: 2px solid rgba(0, 0, 0, 0%); - border-radius: 8px; - } - - &::-webkit-scrollbar-track, - &::-webkit-scrollbar-track-piece { - background-color: var(--spectrum-gray-75); - } - - &:hover::-webkit-scrollbar-thumb { - background-color: var(--spectrum-gray-400); - } -} diff --git a/components/site/metadata/metadata.json b/components/site/metadata/metadata.json deleted file mode 100644 index f0e550a65d4..00000000000 --- a/components/site/metadata/metadata.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "sourceFile": "index.css", - "selectors": [ - ".is-scrollable", - ".is-scrollable::-webkit-scrollbar", - ".is-scrollable::-webkit-scrollbar-thumb", - ".is-scrollable::-webkit-scrollbar-track", - ".is-scrollable::-webkit-scrollbar-track-piece", - ".is-scrollable:hover::-webkit-scrollbar-thumb", - ".spectrum--large .spectrum-Site-logo", - ".spectrum-Button.spectrum-CSSExample-overlayShowButton", - ".spectrum-CSS-switcherContainer", - ".spectrum-CSSComponent", - ".spectrum-CSSComponent-cardImage", - ".spectrum-CSSComponent-description", - ".spectrum-CSSComponent-detailsTable", - ".spectrum-CSSComponent-detailsTable th", - ".spectrum-CSSComponent-header", - ".spectrum-CSSComponent-heading", - ".spectrum-CSSComponent-link", - ".spectrum-CSSComponent-link:focus-visible", - ".spectrum-CSSComponent-link:hover", - ".spectrum-CSSComponent-resource--adobe", - ".spectrum-CSSComponent-resource--github", - ".spectrum-CSSComponent-resource--npm", - ".spectrum-CSSComponent-resources", - ".spectrum-CSSComponent-resources .spectrum-Card", - ".spectrum-CSSComponent-resources a[href*=\"github.com\"] .spectrum-Card-preview", - ".spectrum-CSSComponent-resources a[href*=\"npmjs.com\"] .spectrum-Card-preview", - ".spectrum-CSSComponent-resources a[href*=\"spectrum.adobe.com\"] .spectrum-Card-preview", - ".spectrum-CSSComponent-sectionHeading", - ".spectrum-CSSComponent-status", - ".spectrum-CSSComponent-status:before", - ".spectrum-CSSComponent-statusContainer", - ".spectrum-CSSComponent-statusContainer > *", - ".spectrum-CSSComponent-switcher", - ".spectrum-CSSComponent-title", - ".spectrum-CSSComponent-version", - ".spectrum-CSSExample", - ".spectrum-CSSExample-container", - ".spectrum-CSSExample-dialog", - ".spectrum-CSSExample-example", - ".spectrum-CSSExample-example--overlay", - ".spectrum-CSSExample-example--spacious", - ".spectrum-CSSExample-example:has(> .spectrum-CSSExample-example-staticBlack)", - ".spectrum-CSSExample-example:has(> .spectrum-CSSExample-example-staticWhite)", - ".spectrum-CSSExample-heading", - ".spectrum-CSSExample-markup", - ".spectrum-CSSExample-markup pre code", - ".spectrum-CSSExample-markup.is-open", - ".spectrum-CSSExample-markup.is-open .spectrum-CSSExample-markupToggle", - ".spectrum-CSSExample-markup.is-open .spectrum-CSSExample-markupToggle:before", - ".spectrum-CSSExample-markupToggle", - ".spectrum-CSSExample-markupToggle + pre", - ".spectrum-CSSExample-modal", - ".spectrum-CSSExample-oldAPI", - ".spectrum-CSSExample-status", - ".spectrum-CenteredImage", - ".spectrum-CodeBlock", - ".spectrum-Examples", - ".spectrum-Examples--vertical", - ".spectrum-Examples-item .spectrum-Examples-itemHeading", - ".spectrum-Examples-itemGroup", - ".spectrum-HomeCard", - ".spectrum-HomeCard-content", - ".spectrum-HomeCard-image", - ".spectrum-HomeCard-image .spectrum-Icon", - ".spectrum-HomeCards", - ".spectrum-Site", - ".spectrum-Site-bottomNav", - ".spectrum-Site-content", - ".spectrum-Site-footerContainer", - ".spectrum-Site-header", - ".spectrum-Site-header .spectrum-Site-sideBarHeader", - ".spectrum-Site-hero", - ".spectrum-Site-heroHeading", - ".spectrum-Site-heroHeading .spectrum-Heading", - ".spectrum-Site-heroHeading h1.spectrum-Heading1--display", - ".spectrum-Site-heroImage", - ".spectrum-Site-logo", - ".spectrum-Site-mainContainer", - ".spectrum-Site-mainContent", - ".spectrum-Site-nav", - ".spectrum-Site-noSearchResults", - ".spectrum-Site-overlay", - ".spectrum-Site-overlay.is-open", - ".spectrum-Site-page", - ".spectrum-Site-search", - ".spectrum-Site-searchResults", - ".spectrum-Site-sideBar", - ".spectrum-Site-sideBar.is-open", - ".spectrum-Site-sideBarHeader", - ".spectrum-Site-sideBarHeader:focus", - ".spectrum-Site-sideBarHeader:focus h2", - ".u-scrollable", - ".u-scrollable::-webkit-scrollbar", - ".u-scrollable::-webkit-scrollbar-thumb", - ".u-scrollable::-webkit-scrollbar-track", - ".u-scrollable::-webkit-scrollbar-track-piece", - ".u-scrollable:hover::-webkit-scrollbar-thumb", - ":root" - ], - "modifiers": [], - "component": [], - "global": [ - "--spectrum-animation-duration-200", - "--spectrum-background-layer-1-color", - "--spectrum-black", - "--spectrum-body-color", - "--spectrum-border-width-100", - "--spectrum-component-height-300", - "--spectrum-component-to-menu-extra-large", - "--spectrum-corner-radius-100", - "--spectrum-divider-thickness-small", - "--spectrum-docs-static-black-background-color", - "--spectrum-docs-static-white-background-color", - "--spectrum-font-size-50", - "--spectrum-font-size-500", - "--spectrum-font-size-800", - "--spectrum-gray-100", - "--spectrum-gray-300", - "--spectrum-gray-400", - "--spectrum-gray-50", - "--spectrum-gray-75", - "--spectrum-icon-size", - "--spectrum-negative-color-800", - "--spectrum-regular-font-weight", - "--spectrum-seafoam-100", - "--spectrum-seafoam-900", - "--spectrum-spacing-100", - "--spectrum-spacing-1000", - "--spectrum-spacing-200", - "--spectrum-spacing-300", - "--spectrum-spacing-400", - "--spectrum-spacing-50", - "--spectrum-spacing-500", - "--spectrum-spacing-600", - "--spectrum-spacing-700", - "--spectrum-spacing-800", - "--spectrum-spacing-900", - "--spectrum-transparent-black-200", - "--spectrum-transparent-black-300", - "--spectrum-transparent-black-400" - ], - "system-theme": [], - "passthroughs": [ - "--mod-icon-color", - "--mod-table-border-color", - "--mod-table-cursor-row-default", - "--mod-table-divider-color", - "--mod-table-row-background-color-hover", - "--mod-table-row-line-height" - ], - "high-contrast": [] -} diff --git a/components/site/metadata/mods.md b/components/site/metadata/mods.md deleted file mode 100644 index a98209f6e87..00000000000 --- a/components/site/metadata/mods.md +++ /dev/null @@ -1,2 +0,0 @@ -| Modifiable custom properties | -| ---------------------------- | diff --git a/components/site/package.json b/components/site/package.json deleted file mode 100644 index 50c1c815ed0..00000000000 --- a/components/site/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@spectrum-css/site", - "version": "5.1.3", - "description": "The Spectrum CSS Site component", - "license": "Apache-2.0", - "author": "Adobe", - "homepage": "https://opensource.adobe.com/spectrum-css/", - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "components/site" - }, - "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": "./metadata/metadata.json", - "./metadata/*": "./metadata/*", - "./package.json": "./package.json", - "./stories/*": "./stories/*" - }, - "main": "dist/index.css", - "files": [ - "dist/*", - "*.md", - "package.json", - "stories/*", - "metadata/*" - ], - "peerDependencies": { - "@spectrum-css/tokens": ">=14" - }, - "devDependencies": { - "@spectrum-css/tokens": "workspace:^" - }, - "keywords": [ - "spectrum", - "css", - "design system", - "adobe" - ], - "publishConfig": { - "access": "public" - } -} diff --git a/components/site/project.json b/components/site/project.json deleted file mode 100644 index de6cc3d7cba..00000000000 --- a/components/site/project.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "site", - "tags": ["component", "legacy"], - "targets": { - "build": {}, - "clean": {}, - "compare": {}, - "format": {}, - "lint": {}, - "report": {}, - "test": { - "defaultConfiguration": "scope" - }, - "validate": {} - } -} diff --git a/components/site/site.css b/components/site/site.css deleted file mode 100644 index d5b24002df5..00000000000 --- a/components/site/site.css +++ /dev/null @@ -1,277 +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 - * - * 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-Site { - display: flex; - flex-direction: column; - - block-size: 100%; - - color: var(--spectrum-body-color); - - background-color: var(--spectrum-gray-50); -} - -.spectrum-Site-content { - display: flex; - flex-direction: row; - inline-size: 100vw; - block-size: 100vh; -} - -.spectrum-Site-header { - display: none; - - box-sizing: border-box; - block-size: var(--spectrum-component-height-300); - padding: var(--spectrum-component-to-menu-extra-large); - - border-block-end-color: var(--spectrum-gray-300); - border-block-end-style: solid; - border-block-end-width: var(--spectrum-divider-thickness-small); - - & .spectrum-Site-sideBarHeader { - padding-block: 0; - } -} - -.spectrum-Site-header, -.spectrum-Site-sideBar, -.spectrum-Site-mainContent { - color: var(--spectrum-body-color); - background-color: var(--spectrum-gray-75); -} - -.spectrum-Site-sideBar { - display: flex; - flex-direction: column; - flex-grow: 0; - - max-inline-size: 100%; - - transition: none; -} - -.spectrum-Site-sideBarHeader { - display: flex; - flex-direction: row; - flex-grow: 0; - flex-shrink: 0; - align-items: center; - - padding: var(--spectrum-spacing-400); - - text-decoration: none; - - &:focus { - outline: none; - - & h2 { - text-decoration: underline; - } - } -} - -.spectrum-Site-search { - padding: var(--spectrum-spacing-300); - padding-block-start: 0; -} - -.spectrum-Site-searchResults { - position: absolute; - z-index: 101; - inset-block-start: -100%; - inset-inline-start: -100%; - - overflow-y: auto; - - max-block-size: calc(90vh - 120px); -} - -.spectrum-Site-noSearchResults { - padding: var(--spectrum-spacing-400); -} - -.spectrum-Site-logo { - /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- passthrough icon sizing */ - --spectrum-icon-size: 32px; - --mod-icon-color: #fa0f00; - margin-inline-end: var(--spectrum-spacing-200); - - .spectrum--large & { - /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- passthrough icon sizing */ - --spectrum-icon-size: 40px; - } -} - -.spectrum-Site-nav { - flex-grow: 1; - padding: 0 var(--spectrum-spacing-400) var(--spectrum-spacing-600); -} - -.spectrum-Site-bottomNav { - margin-block-start: var(--spectrum-spacing-900); -} - -.spectrum-Site-page { - box-sizing: border-box; - padding: var(--spectrum-spacing-600) 52px var(--spectrum-spacing-400); -} - -.spectrum-Site-page, -.spectrum-Site-hero { - inline-size: min(1080px, 100%); - margin: auto; -} - -.spectrum-Site-heroHeading { - margin-block-end: var(--spectrum-spacing-300); - - & .spectrum-Heading { - margin-block-start: 0 !important; - } -} - -.spectrum-Site-heroImage { - display: block; - - max-inline-size: 100%; - margin-block-start: var(--spectrum-spacing-700); - margin-block-end: var(--spectrum-spacing-700); - margin-inline-start: auto; - margin-inline-end: auto; - - border-radius: 4px; -} - -.spectrum-Site-mainContent { - overflow-y: auto; - flex-grow: 1; - border-block: none; -} - -.spectrum-Site-footerContainer { - inline-size: min(1080px, 100%); - margin: var(--spectrum-spacing-400) auto; - padding: 0 var(--spectrum-spacing-600); -} - -/* Kill the overlay without animating when the page is resized */ -.spectrum-Site-overlay { - pointer-events: none; - - position: fixed; - - /* Float above things by default */ - z-index: 99; - inset-block-start: 0; - inset-block-end: 0; - inset-inline-start: 0; - inset-inline-end: 0; - - overflow: hidden; - display: none; - - opacity: 0; - background-color: var(--spectrum-transparent-black-300); -} - -.spectrum-HomeCards { - display: grid; - grid-gap: 1rem; - grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); - margin: var(--spectrum-spacing-700) 0; -} - -.spectrum-HomeCard { - display: flex; - align-items: flex-start; - margin-block-end: var(--spectrum-spacing-300); - padding: 0 var(--spectrum-spacing-200); -} - -.spectrum-HomeCard-image { - flex: 0 0 auto; - inline-size: var(--spectrum-spacing-1000); - margin-inline-end: 20px; - - & .spectrum-Icon { - /* stylelint-disable-next-line spectrum-tools/no-unused-custom-properties -- passthrough icon sizing */ - --spectrum-icon-size: 200px; - } -} - -.spectrum-HomeCard-content { - flex: 1 1 auto; -} - -@media screen and (width <= 960px) { - .spectrum-Site-content { - /* fix: header scrolls off */ - max-block-size: calc(100% - var(--spectrum-spacing-700)); - } - - .spectrum-Site-overlay { - opacity: 0; - - /* Exit animations */ - transition: opacity var(--spectrum-animation-duration-200) ease-out 0ms; - - &.is-open { - pointer-events: auto; - display: block; - opacity: 1; - - /* Entry animations */ - transition: opacity var(--spectrum-animation-duration-200) ease-in 0ms; - } - } - - .spectrum-Site-sideBar { - position: fixed; - z-index: 100; - inset-block-start: 0; - inset-block-end: 0; - inset-inline-end: 100%; - transform: translateX(0); - - block-size: 100vh; - - transition: transform var(--spectrum-animation-duration-200) ease-in-out; - - &.is-open { - transform: translateX(100%); - } - } - - .spectrum-Site-header { - display: block; - } - - .spectrum-Site-page { - padding-inline-start: var(--spectrum-spacing-300); - padding-inline-end: var(--spectrum-spacing-300); - } - - .spectrum-Site-hero { - max-inline-size: 100%; - } - - .spectrum-Site-heroHeading h1.spectrum-Heading1--display { - font-size: var(--spectrum-font-size-800); - } - - .spectrum-Site-mainContainer { - padding-inline: var(--spectrum-spacing-400); - } -} diff --git a/components/slider/CHANGELOG.md b/components/slider/CHANGELOG.md index debac98526c..037132e1386 100644 --- a/components/slider/CHANGELOG.md +++ b/components/slider/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/stepper@7.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/stepper@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.3.0 ### Minor Changes diff --git a/components/slider/index.css b/components/slider/index.css index 67f78404856..fbdb520d736 100644 --- a/components/slider/index.css +++ b/components/slider/index.css @@ -11,101 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-Slider { - /* 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); - --spectrum-slider-control-height: var(--spectrum-component-height-100); - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); - --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-medium); - --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-medium); - --spectrum-slider-value-side-padding-inline: var(--spectrum-spacing-200); - - /* TODO: placeholder value for sideLabel variant value width */ - --spectrum-slider-value-inline-size: 18px; - - &:dir(rtl), - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } -} - -.spectrum-Slider--sizeS { - --spectrum-slider-font-size: var(--spectrum-font-size-75); - --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-small); - --spectrum-slider-control-height: var(--spectrum-component-height-75); - --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); - --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-small); - --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--sizeL { - --spectrum-slider-font-size: var(--spectrum-font-size-100); - --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-large); - --spectrum-slider-control-height: var(--spectrum-component-height-200); - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); - --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-large); - --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); - - /* TODO: placeholder value for sideLabel variant value width */ - --spectrum-slider-value-inline-size: 18px; -} - -.spectrum-Slider--sizeXL { - --spectrum-slider-font-size: var(--spectrum-font-size-200); - --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-extra-large); - --spectrum-slider-control-height: var(--spectrum-component-height-300); - --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); - --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-extra-large); - --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); - - /* TODO: placeholder value for sideLabel variant value width */ - --spectrum-slider-value-inline-size: 22px; -} - -.spectrum-Slider { - --spectrum-slider-cjk-line-height: var(--spectrum-cjk-line-height-100); - - --spectrum-slider-min-size: var(--spectrum-spacing-900); - - --spectrum-slider-track-corner-radius: var(--spectrum-corner-radius-75); - --spectrum-slider-label-margin-start: var(--spectrum-spacing-300); - --spectrum-slider-handle-border-width: var(--spectrum-border-width-200); - --spectrum-slider-handle-margin-left: calc(var(--spectrum-slider-handle-size) / -2); - --spectrum-slider-controls-margin: calc(var(--spectrum-slider-handle-size) / 2); - --spectrum-slider-track-margin-offset: calc(var(--spectrum-slider-controls-margin) * -1); - --spectrum-slider-track-middle-handleoffset: calc(var(--spectrum-slider-handle-gap) + calc(var(--spectrum-slider-handle-size) / 2)); - --spectrum-slider-input-top-size: calc(var(--spectrum-slider-handle-size) / -2 / 4); - --spectrum-slider-track-fill-thickness: var(--spectrum-slider-track-thickness); - --spectrum-slider-tick-mark-width: var(--spectrum-border-width-200); - --spectrum-slider-tick-mark-border-radius: 2px; - --spectrum-slider-tick-handle-background-color: var(--spectrum-gray-100); - - /* colors */ - --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); - --spectrum-slider-label-text-color: var(--spectrum-neutral-content-color-default); - --spectrum-slider-tick-label-color: var(--spectrum-neutral-content-color-default); - --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); - - /* values */ - --spectrum-slider-input-left: calc(var(--spectrum-slider-handle-margin-left) / 4); - --spectrum-slider-track-handleoffset: var(--spectrum-slider-handle-gap); - - --spectrum-slider-range-track-reset: 0; -} + @import "./themes/spectrum-two.css"; .spectrum-Slider { position: relative; @@ -116,6 +22,10 @@ min-inline-size: var(--mod-slider-min-size, var(--spectrum-slider-min-size)); user-select: none; + + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); + } } .spectrum-Slider--sideLabel { @@ -296,7 +206,7 @@ block-size: 100%; /* Flip the ramp automatically for RTL */ - transform: var(--spectrum-logical-rotation); + transform: var(--spectrum-logical-rotation,); } } @@ -307,6 +217,7 @@ display: inline-block; box-sizing: border-box; + inline-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); block-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); @@ -322,6 +233,7 @@ outline: none; + &:active, &.is-dragged { border-width: var(--mod-slider-handle-border-width-down, var(--spectrum-slider-handle-border-width-down)); @@ -337,21 +249,21 @@ /* Focus indicator. */ &::before { content: ""; - display: block; position: absolute; - inset-inline-start: 50%; inset-block-start: 50%; + inset-inline-start: 50%; - transition: - box-shadow var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, - inline-size var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, - block-size var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out; + transform: translate(-50%, -50%); + display: block; inline-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); block-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); border-radius: 100%; - transform: translate(-50%, -50%); + transition: + box-shadow var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, + inline-size var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, + block-size var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out; .spectrum-Slider:dir(rtl) & { transform: translate(50%, -50%); @@ -372,23 +284,23 @@ * It is still sized and positioned where it would naturally be present so that touch users can find it with haptics. */ .spectrum-Slider-input { - /* Remove the margin for input in Firefox and Safari. */ - margin: 0; - - inline-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); - block-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); - padding: 0; + pointer-events: none; + cursor: default; position: absolute; inset-block-start: var(--mod-slider-input-top-size, var(--spectrum-slider-input-top-size)); inset-inline-start: var(--mod-slider-input-left, var(--spectrum-slider-input-left)); overflow: hidden; - /* @todo Look into replacing with opacity 0. The tiny opacity value appears to be a workaround for a ChromeVox legacy bug (circa 2018). */ - opacity: 0.000001; /* stylelint-disable-line number-max-precision */ - cursor: default; + + inline-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); + block-size: var(--mod-slider-handle-size, var(--spectrum-slider-handle-size)); + + /* Remove the margin for input in Firefox and Safari. */ + margin: 0; + padding: 0; appearance: none; + opacity: 0.000001; /* stylelint-disable-line number-max-precision */ border: 0; - pointer-events: none; &:focus { outline: none; @@ -396,16 +308,16 @@ } .spectrum-Slider-labelContainer { + position: relative; display: flex; align-items: center; - position: relative; inline-size: auto; + margin-block-start: var(--mod-slider-label-top-to-text, var(--spectrum-slider-label-top-to-text)); + font-size: var(--mod-slider-font-size, var(--spectrum-slider-font-size)); line-height: var(--mod-line-height-100, var(--spectrum-line-height-100)); - margin-block-start: var(--mod-slider-label-top-to-text, var(--spectrum-slider-label-top-to-text)); - /* international support */ &:lang(ja), &:lang(zh), @@ -415,15 +327,15 @@ } .spectrum-Slider-label { - padding-inline-start: 0; flex-grow: 1; + padding-inline-start: 0; font-size: var(--mod-slider-font-size, var(--spectrum-slider-font-size)); } .spectrum-Slider-value { + cursor: default; flex-grow: 0; padding-inline-end: 0; - cursor: default; font-feature-settings: "tnum"; text-align: end; } @@ -449,9 +361,9 @@ /* TODO: missing core-tokens for tick variant */ .spectrum-Slider-ticks { + z-index: 0; display: flex; justify-content: space-between; - z-index: 0; margin-inline: var(--mod-slider-track-margin-offset, var(--spectrum-slider-track-margin-offset)); /* TODO: missing core-token for handle fill-color */ @@ -464,17 +376,17 @@ .spectrum-Slider-tick { position: relative; - inline-size: var(--mod-slider-tick-mark-width, var(--spectrum-slider-tick-mark-width)); /* tick marks are centered half based on slider control height and tick height */ inset-block-start: calc(var(--mod-slider-track-thickness, var(--spectrum-slider-control-height)) / 2 - var(--mod-slider-tick-mark-height, var(--spectrum-slider-tick-mark-height)) / 2); + inline-size: var(--mod-slider-tick-mark-width, var(--spectrum-slider-tick-mark-width)); &::after { - display: block; + content: ""; position: absolute; inset-block-start: 0; inset-inline-start: calc(50% - calc(var(--mod-slider-tick-mark-width, var(--spectrum-slider-tick-mark-width)) / 2)); - content: ""; + display: block; inline-size: var(--mod-slider-tick-mark-width, var(--spectrum-slider-tick-mark-width)); block-size: var(--mod-slider-tick-mark-height, var(--spectrum-slider-tick-mark-height)); border-radius: var(--mod-slider-tick-mark-border-radius, var(--spectrum-slider-tick-mark-border-radius)); @@ -492,8 +404,8 @@ &:first-of-type, &:last-of-type { .spectrum-Slider-tickLabel { - display: block; position: absolute; + display: block; margin-inline: 0; } } @@ -520,17 +432,16 @@ /* backwards compatibility: these are not required, but they make the handle go to the edegs and align right */ .spectrum-Slider-handleContainer, .spectrum-Slider-trackContainer { - inline-size: calc(100% + var(--spectrum-slider-handle-size)); position: absolute; inset-block-start: 0; + inline-size: calc(100% + var(--spectrum-slider-handle-size)); margin-inline-start: calc(var(--spectrum-slider-handle-size) / 2 * -1); } .spectrum-Slider-trackContainer { - block-size: var(--mod-slider-control-height, var(--spectrum-slider-control-height)); - /* stop edges from peeking out */ overflow: hidden; + block-size: var(--mod-slider-control-height, var(--spectrum-slider-control-height)); } /* Applies to the filled-offset variant to keep track the same color for highcontrast mode */ @@ -572,8 +483,8 @@ } .spectrum-Slider-handle { - border-color: var(--highcontrast-slider-handle-border-color, var(--mod-slider-handle-border-color, var(--spectrum-slider-handle-border-color))); background: var(--highcontrast-slider-handle-background-color, var(--mod-slider-handle-background-color, var(--spectrum-slider-handle-background-color))); + border-color: var(--highcontrast-slider-handle-border-color, var(--mod-slider-handle-border-color, var(--spectrum-slider-handle-border-color))); &:hover { border-color: var(--highcontrast-slider-handle-border-color-hover, var(--mod-slider-handle-border-color-hover, var(--spectrum-slider-handle-border-color-hover))); @@ -596,8 +507,8 @@ .spectrum-Slider--ramp { .spectrum-Slider-handle { - box-shadow: 0 0 0 var(--spectrum-slider-handle-gap) var(--highcontrast-slider-ramp-handle-border-color-active, var(--mod-sectrum-slider-ramp-handle-border-color-active, var(--spectrum-slider-ramp-handle-border-color-active))); background: var(--mod-slider-ramp-handle-background-color, var(--highcontrast-slider-ramp-handle-background-color, var(--spectrum-slider-ramp-handle-background-color))); + box-shadow: 0 0 0 var(--spectrum-slider-handle-gap) var(--highcontrast-slider-ramp-handle-border-color-active, var(--mod-sectrum-slider-ramp-handle-border-color-active, var(--spectrum-slider-ramp-handle-border-color-active))); } } @@ -613,8 +524,8 @@ .spectrum-Slider-handle { &.is-dragged { - border-color: var(--highcontrast-slider-handle-border-color-down, var(--mod-slider-handle-border-color-down, var(--spectrum-slider-handle-border-color-down))); background: var(--highcontrast-slider-handle-background-color, var(--mod-slider-handle-background-color, var(--spectrum-slider-handle-background-color))); + border-color: var(--highcontrast-slider-handle-border-color-down, var(--mod-slider-handle-border-color-down, var(--spectrum-slider-handle-border-color-down))); } } @@ -642,15 +553,15 @@ } .spectrum-Slider-handle { - border-color: var(--highcontrast-slider-handle-border-color-disabled, var(--mod-slider-handle-border-color-disabled, var(--spectrum-slider-handle-border-color-disabled))); - background: var(--highcontrast-slider-handle-disabled-background-color, var(--mod-slider-handle-disabled-background-color, var(--spectrum-slider-handle-disabled-background-color))); - cursor: default; pointer-events: none; + cursor: default; + background: var(--highcontrast-slider-handle-disabled-background-color, var(--mod-slider-handle-disabled-background-color, var(--spectrum-slider-handle-disabled-background-color))); + border-color: var(--highcontrast-slider-handle-border-color-disabled, var(--mod-slider-handle-border-color-disabled, var(--spectrum-slider-handle-border-color-disabled))); &:hover, &:active { - border-color: var(--highcontrast-disabled-border-color, var(--mod-disabled-border-color, var(--spectrum-disabled-border-color))); background: var(--highcontrast-slider-handle-background-color-disabled, var(--mod-slider-handle-background-color-disabled, var(--spectrum-slider-handle-background-color-disabled))); + border-color: var(--highcontrast-disabled-border-color, var(--mod-disabled-border-color, var(--spectrum-disabled-border-color))); } } @@ -748,8 +659,8 @@ /* Slider handle turns transparent in high contrast mode for ramp */ &.is-disabled { .spectrum-Slider-ramp + .spectrum-Slider-handle { - fill: ButtonFace; background-color: ButtonFace; + fill: ButtonFace; } } } diff --git a/components/slider/metadata/metadata.json b/components/slider/metadata/metadata.json index 9e607276bd9..4f616d11f39 100644 --- a/components/slider/metadata/metadata.json +++ b/components/slider/metadata/metadata.json @@ -19,9 +19,6 @@ ".spectrum-Slider--sideLabel .spectrum-Slider-labelContainer + .spectrum-Slider-controls", ".spectrum-Slider--sideLabel .spectrum-Slider-labelContainer .spectrum-Slider-label", ".spectrum-Slider--sideLabel .spectrum-Slider-value", - ".spectrum-Slider--sizeL", - ".spectrum-Slider--sizeS", - ".spectrum-Slider--sizeXL", ".spectrum-Slider--tick", ".spectrum-Slider--tick .spectrum-Slider-controls", ".spectrum-Slider--tick .spectrum-Slider-handle", @@ -82,6 +79,10 @@ ".spectrum-Slider.is-disabled.spectrum-Slider--filled .spectrum-Slider-track:first-child:before", ".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)", ".spectrum-Slider:dir(rtl) .spectrum-Slider-handle:before", ".spectrum-Slider:not(.is-disabled, .spectrum-Slider--filled, .spectrum-Slider--range) .spectrum-Slider-controls.is-focused", @@ -241,13 +242,10 @@ "--spectrum-font-size-75", "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", "--spectrum-gray-400", - "--spectrum-gray-50", - "--spectrum-gray-600", "--spectrum-gray-700", + "--spectrum-gray-75", "--spectrum-gray-800", - "--spectrum-gray-900", "--spectrum-line-height-100", "--spectrum-logical-rotation", "--spectrum-neutral-content-color-default", @@ -257,23 +255,7 @@ "--spectrum-spacing-900", "--spectrum-text-to-visual-75" ], - "system-theme": [ - "--system-spectrum-slider-handle-background-color", - "--system-spectrum-slider-handle-background-color-disabled", - "--system-spectrum-slider-handle-border-color", - "--system-spectrum-slider-handle-border-color-down", - "--system-spectrum-slider-handle-border-color-hover", - "--system-spectrum-slider-handle-border-color-key-focus", - "--system-spectrum-slider-handle-disabled-background-color", - "--system-spectrum-slider-handle-focus-ring-color-key-focus", - "--system-spectrum-slider-ramp-handle-background-color", - "--system-spectrum-slider-ramp-track-color", - "--system-spectrum-slider-ramp-track-color-disabled", - "--system-spectrum-slider-tick-mark-color", - "--system-spectrum-slider-ticks-handle-background-color", - "--system-spectrum-slider-track-color", - "--system-spectrum-slider-track-fill-color" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-disabled-border-color", diff --git a/components/slider/metadata/slider.yml b/components/slider/metadata/slider.yml deleted file mode 100644 index f16fb512e45..00000000000 --- a/components/slider/metadata/slider.yml +++ /dev/null @@ -1,487 +0,0 @@ -name: Slider -SpectrumSiteSlug: https://spectrum.adobe.com/page/slider/ -sections: - - name: Migration Guide - description: | - ### Dial is now a separate component - Dial has been moved to the [Dial](dial.html) component. - - ### Color slider is now a separate component - Color slider has been moved to the [Color Slider](colorslider.html) component. - Replace class names starting with `.spectrum-Slider` with `.spectrum-ColorSlider`. - - ### Use class `is-dragged` instead of `u-isGrabbing` - On `spectrum-Slider-handle` when dragging, use `is-dragged` instead of `u-isGrabbing`. - - ### Three Handles is included in the `range` variant - When using a slider with three handles, classify it as a `range` variant to apply correct styling - - ### Indicating focus - Focus must be bubbled up to the parent so descendants siblings can be styled. - - Thus, implementations should add the following class to the `.spectrum-Slider` parent class in the following situations: - - * `.is-disabled` - when the slider is disabled - - Implementations should also bubble the following class to the `.spectrum-Slider-controls` parent class in the following situations: - - * `.is-focused` - when the handle input is focused with the mouse or keyboard -examples: - - id: slider - name: Standard - markup: | -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - - id: slider-sizes - name: Sizes - markup: | -
    -
    -

    S

    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    M

    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    L

    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    XL

    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - - id: slider-label - name: With Label - markup: | -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    - - id: slider-side-label - name: With Side Label - markup: | -
    -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    14
    -
    -
    - - - id: slider-fill - name: Filled - description: With fill. - markup: | -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    - - id: slider-fill - name: Filled-Offset - description: With fill and offset. - markup: | -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - id: slider-range - name: Range - description: A range slider with two handles. - markup: | -
    - - -
    - -
    - - -
    - - id: slider-tick - name: Tick - description: Spectrum tick slider - markup: | -
    -
    - -
    14
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - - id: slider-tick - name: Tick with Labels - description: Spectrum tick slider with labels - markup: | -
    -
    - -
    14
    -
    -
    -
    -
    -
    0
    -
    -
    -
    20
    -
    -
    -
    40
    -
    -
    -
    60
    -
    -
    -
    80
    -
    -
    -
    100
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    14
    -
    -
    -
    -
    -
    0
    -
    -
    -
    20
    -
    -
    -
    40
    -
    -
    -
    60
    -
    -
    -
    80
    -
    -
    -
    100
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - - id: slider-ramp - name: Ramp - markup: | -
    -
    - -
    14
    -
    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    - -
    14
    -
    -
    -
    - -
    -
    - -
    -
    -
    diff --git a/components/slider/package.json b/components/slider/package.json index 8e776c550cf..97526279008 100644 --- a/components/slider/package.json +++ b/components/slider/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/slider", - "version": "5.3.0", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS slider component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/slider/stories/template.js b/components/slider/stories/template.js index bc625452855..becef6ade92 100644 --- a/components/slider/stories/template.js +++ b/components/slider/stories/template.js @@ -7,6 +7,9 @@ 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 index 834cc673f79..feab1f117aa 100644 --- a/components/slider/themes/express.css +++ b/components/slider/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Slider { --spectrum-slider-track-color: var(--spectrum-gray-200); --spectrum-slider-track-fill-color: var(--spectrum-gray-600); diff --git a/components/slider/themes/spectrum-two.css b/components/slider/themes/spectrum-two.css new file mode 100644 index 00000000000..fa59d138b99 --- /dev/null +++ b/components/slider/themes/spectrum-two.css @@ -0,0 +1,122 @@ +/*! + * 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 + * + * 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); + + /* TODO: placeholder value for sideLabel variant value width */ + --spectrum-slider-value-inline-size: 18px; + + --spectrum-slider-cjk-line-height: var(--spectrum-cjk-line-height-100); + + --spectrum-slider-min-size: var(--spectrum-spacing-900); + + --spectrum-slider-track-corner-radius: var(--spectrum-corner-radius-75); + --spectrum-slider-label-margin-start: var(--spectrum-spacing-300); + --spectrum-slider-handle-border-width: var(--spectrum-border-width-200); + --spectrum-slider-handle-margin-left: calc(var(--spectrum-slider-handle-size) / -2); + --spectrum-slider-controls-margin: calc(var(--spectrum-slider-handle-size) / 2); + --spectrum-slider-track-margin-offset: calc(var(--spectrum-slider-controls-margin) * -1); + --spectrum-slider-track-middle-handleoffset: calc(var(--spectrum-slider-handle-gap) + calc(var(--spectrum-slider-handle-size) / 2)); + --spectrum-slider-input-top-size: calc(var(--spectrum-slider-handle-size) / -2 / 4); + --spectrum-slider-track-fill-thickness: var(--spectrum-slider-track-thickness); + --spectrum-slider-tick-mark-width: var(--spectrum-border-width-200); + --spectrum-slider-tick-mark-border-radius: 2px; + --spectrum-slider-tick-handle-background-color: var(--spectrum-gray-75); + + /* colors */ + --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); + --spectrum-slider-label-text-color: var(--spectrum-neutral-content-color-default); + --spectrum-slider-tick-label-color: var(--spectrum-neutral-content-color-default); + --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-75); + + /* values */ + --spectrum-slider-input-left: calc(var(--spectrum-slider-handle-margin-left) / 4); + --spectrum-slider-track-handleoffset: var(--spectrum-slider-handle-gap); + + --spectrum-slider-range-track-reset: 0; + + &.spectrum-Slider--sizeS { + --spectrum-slider-font-size: var(--spectrum-font-size-75); + --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-small); + --spectrum-slider-control-height: var(--spectrum-component-height-75); + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); + --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-small); + --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--sizeM { + --spectrum-slider-font-size: var(--spectrum-font-size-75); + --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-medium); + --spectrum-slider-control-height: var(--spectrum-component-height-100); + --spectrum-slider-handle-border-radius: var(--spectrum-corner-radius-200); + --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-medium); + --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-medium); + --spectrum-slider-value-side-padding-inline: var(--spectrum-spacing-200); + } + + &.spectrum-Slider--sizeL { + --spectrum-slider-font-size: var(--spectrum-font-size-100); + --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-large); + --spectrum-slider-control-height: var(--spectrum-component-height-200); + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); + --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-large); + --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); + + /* TODO: placeholder value for sideLabel variant value width */ + --spectrum-slider-value-inline-size: 18px; + } + + &.spectrum-Slider--sizeXL { + --spectrum-slider-font-size: var(--spectrum-font-size-200); + --spectrum-slider-handle-size: var(--spectrum-slider-handle-size-extra-large); + --spectrum-slider-control-height: var(--spectrum-component-height-300); + --spectrum-slider-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); + --spectrum-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-extra-large); + --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); + + /* TODO: placeholder value for sideLabel variant value width */ + --spectrum-slider-value-inline-size: 22px; + } + } +} diff --git a/components/slider/themes/spectrum.css b/components/slider/themes/spectrum.css index 1beab05efd8..092899c2ac8 100644 --- a/components/slider/themes/spectrum.css +++ b/components/slider/themes/spectrum.css @@ -11,25 +11,18 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .spectrum-Slider { --spectrum-slider-track-color: var(--spectrum-gray-300); - --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-200); - - --spectrum-slider-handle-background-color: transparent; - --spectrum-slider-handle-background-color-disabled: transparent; --spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-100); --spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-100); - --spectrum-slider-handle-border-color: var(--spectrum-gray-700); --spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-100); - --spectrum-slider-tick-mark-color: var(--spectrum-gray-300); - - --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); } } diff --git a/components/splitview/CHANGELOG.md b/components/splitview/CHANGELOG.md index 2cc36ffefab..2684bee86bb 100644 --- a/components/splitview/CHANGELOG.md +++ b/components/splitview/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.2.3 ### Patch Changes diff --git a/components/splitview/index.css b/components/splitview/index.css index 748e9faf336..713d9b98a75 100644 --- a/components/splitview/index.css +++ b/components/splitview/index.css @@ -11,27 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-SplitView { - --spectrum-splitview-vertical-width: 100%; - --spectrum-splitview-vertical-gripper-width: 50%; - --spectrum-splitview-vertical-gripper-outer-width: 100%; - --spectrum-splitview-vertical-gripper-reset: 0; - - --spectrum-splitview-background-color: var(--spectrum-gray-100); - --spectrum-splitview-content-color: var(--spectrum-body-color); - - --spectrum-splitview-handle-background-color: var(--spectrum-gray-300); - --spectrum-splitview-handle-background-color-hover: var(--spectrum-gray-400); - --spectrum-splitview-handle-background-color-down: var(--spectrum-gray-800); - --spectrum-splitview-handle-background-color-focus: var(--spectrum-focus-indicator-color); - --spectrum-splitview-handle-width: var(--spectrum-border-width-200); - - --spectrum-splitview-gripper-border-radius: var(--spectrum-corner-radius-75); - --spectrum-splitview-gripper-width: var(--spectrum-border-width-400); - --spectrum-splitview-gripper-height: 16px; /* No good token to use for this */ - --spectrum-splitview-gripper-border-width-horizontal: 3px; /* No good token to use for this */ - --spectrum-splitview-gripper-border-width-vertical: var(--spectrum-border-width-400); -} + @import "./themes/spectrum-two.css"; .spectrum-SplitView { display: flex; diff --git a/components/splitview/metadata/metadata.json b/components/splitview/metadata/metadata.json index b8f8fa5031a..d18e2fb5894 100644 --- a/components/splitview/metadata/metadata.json +++ b/components/splitview/metadata/metadata.json @@ -77,9 +77,9 @@ "--spectrum-border-width-400", "--spectrum-corner-radius-75", "--spectrum-focus-indicator-color", - "--spectrum-gray-100", - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-gray-400", + "--spectrum-gray-75", "--spectrum-gray-800" ], "system-theme": [], diff --git a/components/splitview/metadata/splitview.yml b/components/splitview/metadata/splitview.yml deleted file mode 100644 index cec1ec13231..00000000000 --- a/components/splitview/metadata/splitview.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: Split view -examples: - - id: splitview - name: Horizontal - markup: | -
    -
    Left
    -
    -
    Right
    -
    - - id: splitview-horizontal - name: Horizontally resizable - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    - - id: splitview-left - name: Horizontal collapsed left - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    - - id: splitview-right - name: Horizontal collapsed right - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    - - id: splitview-vertical - name: Vertically resizable - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    - - id: splitview-vertical-top - name: Vertical collapsed top - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    - - id: splitview-vertical-bottom - name: Vertical collapsed bottom - markup: | -
    -
    Left
    -
    -
    -
    -
    Right
    -
    diff --git a/components/splitview/package.json b/components/splitview/package.json index dd82f28afcb..37a49e72a26 100644 --- a/components/splitview/package.json +++ b/components/splitview/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/splitview", - "version": "5.2.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS splitview component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/splitview/stories/template.js b/components/splitview/stories/template.js index aacdd00a3e7..4fb08b911dd 100644 --- a/components/splitview/stories/template.js +++ b/components/splitview/stories/template.js @@ -3,6 +3,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/splitview/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..622a83ee286 --- /dev/null +++ b/components/splitview/themes/spectrum-two.css @@ -0,0 +1,36 @@ +/*! + * 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 + * + * 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-vertical-width: 100%; + --spectrum-splitview-vertical-gripper-width: 50%; + --spectrum-splitview-vertical-gripper-outer-width: 100%; + --spectrum-splitview-vertical-gripper-reset: 0; + + --spectrum-splitview-background-color: var(--spectrum-gray-75); + --spectrum-splitview-content-color: var(--spectrum-body-color); + + --spectrum-splitview-handle-background-color: var(--spectrum-gray-200); + --spectrum-splitview-handle-background-color-hover: var(--spectrum-gray-400); + --spectrum-splitview-handle-background-color-down: var(--spectrum-gray-800); + --spectrum-splitview-handle-background-color-focus: var(--spectrum-focus-indicator-color); + --spectrum-splitview-handle-width: var(--spectrum-border-width-200); + + --spectrum-splitview-gripper-border-radius: var(--spectrum-corner-radius-75); + --spectrum-splitview-gripper-width: var(--spectrum-border-width-400); + --spectrum-splitview-gripper-height: 16px; /* No good token to use for this */ + --spectrum-splitview-gripper-border-width-horizontal: 3px; /* No good token to use for this */ + --spectrum-splitview-gripper-border-width-vertical: var(--spectrum-border-width-400); + } +} diff --git a/components/splitview/themes/spectrum.css b/components/splitview/themes/spectrum.css new file mode 100644 index 00000000000..78ccfc778e4 --- /dev/null +++ b/components/splitview/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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); + } +} diff --git a/components/statuslight/CHANGELOG.md b/components/statuslight/CHANGELOG.md index 38c4a9467a9..5998c3d2ffb 100644 --- a/components/statuslight/CHANGELOG.md +++ b/components/statuslight/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 8.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 7.2.2 ### Patch Changes diff --git a/components/statuslight/index.css b/components/statuslight/index.css index fa5beaaa236..0a943cd643a 100644 --- a/components/statuslight/index.css +++ b/components/statuslight/index.css @@ -11,98 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-StatusLight { - /* Static tokens */ - --spectrum-statuslight-corner-radius: 50%; - --spectrum-statuslight-font-weight: 400; - --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); - - --spectrum-statuslight-font-size: var(--spectrum-font-size-100); - - /* Space */ - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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-neutral-subdued-content-color-default); - --spectrum-statuslight-semantic-neutral-color: var(--spectrum-neutral-visual-color); - --spectrum-statuslight-semantic-accent-color: var(--spectrum-accent-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--sizeS { - --spectrum-statuslight-height: var(--spectrum-component-height-75); - --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-small); - - --spectrum-statuslight-font-size: var(--spectrum-font-size-75); - - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); -} - -.spectrum-StatusLight--sizeM { - --spectrum-statuslight-height: var(--spectrum-component-height-100); - --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-medium); - - --spectrum-statuslight-font-size: var(--spectrum-font-size-100); - - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); -} - -.spectrum-StatusLight--sizeL { - --spectrum-statuslight-height: var(--spectrum-component-height-200); - --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-large); - - --spectrum-statuslight-font-size: var(--spectrum-font-size-200); - - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); -} - -.spectrum-StatusLight--sizeXL { - --spectrum-statuslight-height: var(--spectrum-component-height-300); - --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-extra-large); - - --spectrum-statuslight-font-size: var(--spectrum-font-size-300); - - --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); -} +@import "./themes/spectrum-two.css"; .spectrum-StatusLight { display: flex; @@ -131,6 +40,8 @@ /* 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; @@ -139,7 +50,6 @@ 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)); } @@ -239,10 +149,11 @@ @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/metadata/statuslight.yml b/components/statuslight/metadata/statuslight.yml deleted file mode 100644 index 09359419d1c..00000000000 --- a/components/statuslight/metadata/statuslight.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: Status light -SpectrumSiteSlug: https://spectrum.adobe.com/page/status-light/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Status Light now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-StatusLight--size*` class. -examples: - - id: statuslight-sizing - name: Sizing - status: Verified - markup: | -
    -
    -

    S

    - -
    Small
    -
    -
    -

    M (default)

    - -
    Medium
    -
    - -
    -

    L

    - -
    Large
    -
    - -
    -

    XL

    - -
    Extra Large
    -
    -
    - - id: statuslight-wrapping - name: Wrapping - status: Verified - markup: | -
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Convallis tellus id interdum velit laoreet id donec ultrices tincidunt. Sollicitudin nibh sit amet commodo nulla facilisi. Auctor urna nunc id cursus. Sem viverra aliquet eget sit amet tellus cras adipiscing.
    - - - id: statuslight-colors - name: Colors - status: Verified - markup: | -
    Gray Status
    -
    Red Status
    -
    Orange Status
    -
    Yellow Status
    -
    Chartreuse Status
    -
    Celery Status
    -
    Green Status
    -
    Seafoam Status
    -
    Cyan Status
    -
    Blue Status
    -
    Indigo Status
    -
    Purple Status
    -
    Fuchsia Status
    -
    Magenta Status
    - - id: statuslight-neutral - name: Neutral - status: Verified - markup: | -
    Paused
    - - id: statuslight-accent - name: Accent - status: Verified - markup: | -
    Accent
    - - id: statuslight-info - name: Info - status: Verified - markup: | -
    Active
    - - id: statuslight-positive - name: Positive - status: Verified - markup: | -
    Approved
    - - id: statuslight-notice - name: Notice - status: Verified - markup: | -
    Needs Approval
    - - id: statuslight-negative - name: Negative - status: Verified - markup: | -
    Rejected
    diff --git a/components/statuslight/package.json b/components/statuslight/package.json index f3aedd4f360..bf7da2c6c1d 100644 --- a/components/statuslight/package.json +++ b/components/statuslight/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/statuslight", - "version": "7.2.2", + "version": "8.0.0-s2-foundations.13", "description": "The Spectrum CSS statuslight component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/statuslight/stories/template.js b/components/statuslight/stories/template.js index f4ae4286f4e..81b45819948 100644 --- a/components/statuslight/stories/template.js +++ b/components/statuslight/stories/template.js @@ -3,6 +3,9 @@ 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-StatusLight", @@ -10,16 +13,18 @@ export const Template = ({ variant = "info", label, customStyles = {}, -} = {}) => html` -
    - ${label} -
    -`; +} = {}) => { + return html` +
    + ${label} +
    + `; +}; diff --git a/components/statuslight/themes/express.css b/components/statuslight/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/statuslight/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/statuslight/themes/spectrum-two.css b/components/statuslight/themes/spectrum-two.css new file mode 100644 index 00000000000..3340e7664fb --- /dev/null +++ b/components/statuslight/themes/spectrum-two.css @@ -0,0 +1,107 @@ +/*! + * 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 + * + * 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-StatusLight { + /* Static tokens */ + --spectrum-statuslight-corner-radius: 50%; + --spectrum-statuslight-font-weight: 400; + --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); + + --spectrum-statuslight-font-size: var(--spectrum-font-size-100); + + /* Space */ + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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-neutral-subdued-content-color-default); + --spectrum-statuslight-semantic-neutral-color: var(--spectrum-neutral-visual-color); + --spectrum-statuslight-semantic-accent-color: var(--spectrum-accent-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--sizeS { + --spectrum-statuslight-height: var(--spectrum-component-height-75); + --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-small); + + --spectrum-statuslight-font-size: var(--spectrum-font-size-75); + + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); + } + + .spectrum-StatusLight--sizeM { + --spectrum-statuslight-height: var(--spectrum-component-height-100); + --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-medium); + + --spectrum-statuslight-font-size: var(--spectrum-font-size-100); + + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); + } + + .spectrum-StatusLight--sizeL { + --spectrum-statuslight-height: var(--spectrum-component-height-200); + --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-large); + + --spectrum-statuslight-font-size: var(--spectrum-font-size-200); + + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); + } + + .spectrum-StatusLight--sizeXL { + --spectrum-statuslight-height: var(--spectrum-component-height-300); + --spectrum-statuslight-dot-size: var(--spectrum-status-light-dot-size-extra-large); + + --spectrum-statuslight-font-size: var(--spectrum-font-size-300); + + --spectrum-statuslight-spacing-dot-to-label: var(--spectrum-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); + } +} diff --git a/components/statuslight/themes/spectrum.css b/components/statuslight/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/statuslight/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/steplist/CHANGELOG.md b/components/steplist/CHANGELOG.md index 047222c10c4..2ced2c96d04 100644 --- a/components/steplist/CHANGELOG.md +++ b/components/steplist/CHANGELOG.md @@ -1,5 +1,189 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/tooltip@7.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tooltip@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/steplist/index.css b/components/steplist/index.css index ef1aa286287..31fedf494d1 100644 --- a/components/steplist/index.css +++ b/components/steplist/index.css @@ -11,48 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Steplist { - /* The width of a step */ - --spectrum-steplist-step-width: 80px; - - /* The diameter of the marker */ - --spectrum-steplist-marker-diameter: 8px; - - /* The width of the hit area */ - --spectrum-steplist-marker-hitArea: 20px; - - /* The height of the line */ - --spectrum-steplist-segment-height: 2px; - - /* This gives enough space for one line of text */ - --spectrum-steplist-topPadding: 22px; - --spectrum-steplist-small-topPadding: 11px; - - /* This gives enough space for the longest possible label */ - --spectrum-steplist-sidePadding: 60px; - - /* Offset from the BOTTOM of the steplist */ - --spectrum-steplist-label-labelOffset: 10px; - - /* Font size of the label */ - --spectrum-steplist-label-text-size: 12px; - - --spectrum-steplist-current-label-text-color: var(--spectrum-gray-800); - - --spectrum-steplist-current-marker-color: var(--spectrum-gray-800); - - --spectrum-steplist-complete-label-text-color: var(--spectrum-gray-700); - - --spectrum-steplist-incomplete-label-color: var(--spectrum-gray-600); - - --spectrum-steplist-complete-marker-background-color: var(--spectrum-gray-600); - - --spectrum-steplist-incomplete-marker-border-color: var(--spectrum-gray-300); - - --spectrum-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-300); - - --spectrum-steplist-complete-segment-border-block-end-color: var(--spectrum-gray-600); -} +@import "./themes/spectrum-two.css"; .spectrum-Steplist { /* Contain child elements with positive z-index */ @@ -60,6 +19,7 @@ position: relative; display: block; + /* @todo: ignored because the display mode is set to block */ vertical-align: top; margin: 0; padding-block-start: var(--mod-steplist-topPadding, var(--spectrum-steplist-topPadding)); @@ -70,6 +30,7 @@ white-space: nowrap; font-size: 0; /* To remove html whitespace between inline elements */ line-height: 16px; /* in case the container changes it */ + } .spectrum-Steplist--interactive { @@ -189,6 +150,7 @@ inset-inline-start: 50%; inset-block-end: var(--mod-steplist-label-labelOffset, var(--spectrum-steplist-label-labelOffset)); + display: block; inline-size: calc(var(--mod-steplist-step-width, var(--spectrum-steplist-step-width)) * 1.5); diff --git a/components/steplist/metadata/metadata.json b/components/steplist/metadata/metadata.json index 3f2c92091bf..4d6a4a8b4ec 100644 --- a/components/steplist/metadata/metadata.json +++ b/components/steplist/metadata/metadata.json @@ -86,7 +86,7 @@ "--spectrum-steplist-topPadding" ], "global": [ - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-gray-600", "--spectrum-gray-700", "--spectrum-gray-800" diff --git a/components/steplist/metadata/steplist.yml b/components/steplist/metadata/steplist.yml deleted file mode 100644 index 30c45638424..00000000000 --- a/components/steplist/metadata/steplist.yml +++ /dev/null @@ -1,274 +0,0 @@ -name: Steplist -examples: - - id: steplist-current - name: Standard (static) - description: A basic steplist. - markup: | -
    -
    - - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - id: steplist-current - name: Standard (interactive) - description: A basic interactive steplist. - markup: | -
    -
    - - - - - - - -
    -
    - - - - - - -
    -
    - - - - - - -
    -
    - - - - - - -
    -
    - - id: steplist-current - name: With label (static) - description: A static steplist with labels. - markup: | -
    -
    - Step 1 - - - - -
    -
    - Step 2 - - - - -
    -
    - Step 3 - - - - -
    -
    - Step 4 - - - - -
    -
    - - id: steplist-current - name: With label (interactive) - description: An interactive steplist with labels. - markup: | - - - id: steplist-current - name: With tooltip (static) - description: A static steplist with tooltips. - markup: | -

    Static variant

    - -
    -
    -
    -
    - Step 1 - -
    -
    -
    -
    - - - -
    -
    -
    -
    - Step 2 - -
    -
    -
    -
    - - - -
    -
    -
    -
    - Step 3 - -
    -
    -
    -
    - - - -
    -
    - - - Step 4 - - - - - - - - -
    -
    - - id: steplist-current - name: With tooltip (interactive) - description: An interactive steplist with tooltips. - markup: | - diff --git a/components/steplist/package.json b/components/steplist/package.json index 1fa30cc3a1c..c1c2fe4ef35 100644 --- a/components/steplist/package.json +++ b/components/steplist/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/steplist", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS steplist component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/steplist/stories/template.js b/components/steplist/stories/template.js index 737306a24b9..e6f41e0aae3 100644 --- a/components/steplist/stories/template.js +++ b/components/steplist/stories/template.js @@ -1,4 +1,4 @@ -import { getRandomId, Container } from "@spectrum-css/preview/decorators"; +import { Container, getRandomId } from "@spectrum-css/preview/decorators"; import { Template as Tooltip } from "@spectrum-css/tooltip/stories/template.js"; import { html, nothing } from "lit"; import { classMap } from "lit/directives/class-map.js"; @@ -6,6 +6,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/steplist/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..6b93b324a2f --- /dev/null +++ b/components/steplist/themes/spectrum-two.css @@ -0,0 +1,50 @@ +/*! + * 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 + * + * 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 { + /* The width of a step */ + --spectrum-steplist-step-width: 80px; + + /* The diameter of the marker */ + --spectrum-steplist-marker-diameter: 8px; + + /* The width of the hit area */ + --spectrum-steplist-marker-hitArea: 20px; + + /* The height of the line */ + --spectrum-steplist-segment-height: 2px; + + /* This gives enough space for one line of text */ + --spectrum-steplist-topPadding: 22px; + --spectrum-steplist-small-topPadding: 11px; + + /* This gives enough space for the longest possible label */ + --spectrum-steplist-sidePadding: 60px; + + /* Offset from the BOTTOM of the steplist */ + --spectrum-steplist-label-labelOffset: 10px; + + /* Font size of the label */ + --spectrum-steplist-label-text-size: 12px; + + --spectrum-steplist-current-label-text-color: var(--spectrum-gray-800); + --spectrum-steplist-current-marker-color: var(--spectrum-gray-800); + --spectrum-steplist-complete-label-text-color: var(--spectrum-gray-700); + --spectrum-steplist-incomplete-label-color: var(--spectrum-gray-600); + --spectrum-steplist-complete-marker-background-color: var(--spectrum-gray-600); + --spectrum-steplist-incomplete-marker-border-color: var(--spectrum-gray-200); + --spectrum-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-200); + --spectrum-steplist-complete-segment-border-block-end-color: var(--spectrum-gray-600); + } +} diff --git a/tokens/dist/css/components/spectrum/closebutton.css b/components/steplist/themes/spectrum.css similarity index 67% rename from tokens/dist/css/components/spectrum/closebutton.css rename to components/steplist/themes/spectrum.css index feef7894ee4..645ce4ed213 100644 --- a/tokens/dist/css/components/spectrum/closebutton.css +++ b/components/steplist/themes/spectrum.css @@ -11,9 +11,14 @@ * governing permissions and limitations under the License. */ -.spectrum { - --system-spectrum-closebutton-background-color-default: transparent; - --system-spectrum-closebutton-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-closebutton-background-color-down: var(--spectrum-gray-300); - --system-spectrum-closebutton-background-color-focus: var(--spectrum-gray-200); + +/* @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 88e04eb097c..6af7c59d6ec 100644 --- a/components/stepper/CHANGELOG.md +++ b/components/stepper/CHANGELOG.md @@ -1,5 +1,248 @@ # Change Log +## 7.0.0-s2-foundations.16 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5f693f2`](https://github.com/adobe/spectrum-css/commit/5f693f2b000ffe77f1293980bc6006fbc5fa76c0) Thanks [@pfulton](https://github.com/pfulton)! - Stepper bug fixes for S1 and Express variants. + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5f693f2`](https://github.com/adobe/spectrum-css/commit/5f693f2b000ffe77f1293980bc6006fbc5fa76c0) Thanks [@pfulton](https://github.com/pfulton)! - Realign structure with original style format + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5f693f2`](https://github.com/adobe/spectrum-css/commit/5f693f2b000ffe77f1293980bc6006fbc5fa76c0) Thanks [@pfulton](https://github.com/pfulton)! - Add separate variable for stepper button border width + +## 7.0.0-s2-foundations.15 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9ae725f`](https://github.com/adobe/spectrum-css/commit/9ae725f10ebbb78b62070c4c477cb41cfc1b1ed6) Thanks [@pfulton](https://github.com/pfulton)! - Combobox moved the quiet min-inline-size property to index.css from theme to pick up the t-shirt sizing for the calc. + + Typography increases specificity for the t-shirt sizing. + + Stepper fixes for the disabled + hovered states as well as regressions fixed for the quiet variant. + +- Updated dependencies [[`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0)]: + - @spectrum-css/actionbutton@7.0.0-s2-foundations.19 + +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.14 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.18 + - @spectrum-css/textfield@8.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Minor Changes + +- [#3041](https://github.com/adobe/spectrum-css/pull/3041) [`7be40c3`](https://github.com/adobe/spectrum-css/commit/7be40c334748f3e1064c614af793117f06146475) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - --mod properties were moved out of `stepper/themes/spectrum-two.css` into `stepper/index.css` so --mods can be applied at the component level. + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.12 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.13 + - @spectrum-css/textfield@8.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.11 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.12 + - @spectrum-css/textfield@8.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.10 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.10 + - @spectrum-css/textfield@8.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.9 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.9 + - @spectrum-css/textfield@8.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.8 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.8 + - @spectrum-css/textfield@8.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.7 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.7 + - @spectrum-css/textfield@8.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.6 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.6 + - @spectrum-css/textfield@8.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.5 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.5 + - @spectrum-css/textfield@8.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.4 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.4 + - @spectrum-css/textfield@8.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.3 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.3 + - @spectrum-css/textfield@8.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.2 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.2 + - @spectrum-css/textfield@8.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.1 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.1 + - @spectrum-css/textfield@8.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/infieldbutton@6.0.0-s2-foundations.0 + - @spectrum-css/actionbutton@7.0.0-s2-foundations.0 + - @spectrum-css/textfield@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.2.0 ### Minor Changes diff --git a/components/stepper/index.css b/components/stepper/index.css index e7aa03340fc..f4b37364142 100644 --- a/components/stepper/index.css +++ b/components/stepper/index.css @@ -11,93 +11,17 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; .spectrum-Stepper { - /* Set defaults to medium size */ - --spectrum-stepper-height: var(--spectrum-component-height-100); - --spectrum-stepper-border-radius: var(--spectrum-corner-radius-100); - - --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-medium); - --spectrum-stepper-button-padding: var(--spectrum-in-field-button-edge-to-fill); - - --spectrum-stepper-width: calc(var(--mod-stepper-height, var(--spectrum-stepper-height)) * var(--mod-stepper-min-width-multiplier, var(--spectrum-text-field-minimum-width-multiplier)) + var(--mod-stepper-button-width, var(--spectrum-stepper-button-width)) + (var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)) * 2)); - - /*** Focus Indicator ***/ - --spectrum-stepper-focus-indicator-width: var(--spectrum-focus-indicator-thickness); - --spectrum-stepper-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - --spectrum-stepper-focus-indicator-color: var(--spectrum-focus-indicator-color); - - /*** :AFTER - this is for the :after element labeled below as hit area, but used as focus indicator in ActionButton ***/ - --spectrum-stepper-button-offset: calc(var(--spectrum-stepper-button-width) / 2); - - --spectrum-stepper-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-stepper-width: calc(var(--mod-stepper-height, var(--spectrum-stepper-height)) * var(--mod-stepper-min-width-multiplier, var(--spectrum-stepper-min-width-multiplier)) + var(--mod-stepper-button-width, var(--spectrum-stepper-button-width)) + (var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)) * 2)); /*** MODS for sub components ***/ --mod-infield-button-border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-buttons-border-color, var(--spectrum-stepper-buttons-border-color))); --mod-infield-button-border-width: var(--mod-stepper-button-border-width, var(--spectrum-stepper-button-border-width)); + --mod-infield-button-border-radius-reset: var(--spectrum-stepper-button-border-radius-reset); --mod-textfield-border-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); - &.spectrum-Stepper--sizeS { - --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-small); - --spectrum-stepper-height: var(--spectrum-component-height-75); - } - - &.spectrum-Stepper--sizeL { - --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-large); - --spectrum-stepper-height: var(--spectrum-component-height-200); - } - - &.spectrum-Stepper--sizeXL { - --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-extra-large); - --spectrum-stepper-height: var(--spectrum-component-height-300); - } - - /*** Quiet ***/ - &.spectrum-Stepper--quiet { - --mod-infield-button-width-stacked: var(--mod-stepper-button-width-quiet, var(--spectrum-stepper-button-width)); - --mod-textfield-focus-indicator-color: transparent; - } - - &.is-disabled { - --mod-infield-button-border-color-quiet-disabled: var(--spectrum-disabled-border-color); - } - - /*** Invalid ***/ - &.is-invalid { - --mod-stepper-border-color: var(--mod-stepper-border-color-invalid, var(--spectrum-negative-border-color-default)); - --mod-stepper-border-color-hover: var(--mod-stepper-border-color-hover-invalid, var(--spectrum-negative-border-color-hover)); - --mod-stepper-border-color-focus: var(--mod-stepper-border-color-focus-invalid, var(--spectrum-negative-border-color-focus)); - --mod-stepper-border-color-focus-hover: var(--mod-stepper-border-color-focus-hover-invalid, var(--spectrum-negative-border-color-focus-hover)); - --mod-stepper-border-color-keyboard-focus: var(--mod-stepper-border-color-keyboard-focus-invalid, var(--spectrum-negative-border-color-key-focus)); - --mod-infield-button-border-color: var(--mod-stepper-border-color-invalid, var(--spectrum-stepper-border-color-invalid)); - --mod-textfield-icon-spacing-inline-start-invalid: 0; - - &:hover { - --mod-infield-button-border-color: var(--mod-stepper-border-color-hover-invalid, var(--spectrum-negative-border-color-hover)); - } - - &.is-focused, - &:focus { - --mod-infield-button-border-color: var(--mod-stepper-border-color-focus-invalid, var(--spectrum-stepper-border-color-focus-invalid)); - - &:hover { - --mod-infield-button-border-color: var(--mod-stepper-border-color-focus-hover-invalid, var(--spectrum-stepper-border-color-focus-hover-invalid)); - } - } - - &.is-keyboardFocused, - &:focus-visible { - --mod-infield-button-border-color: var(--mod-stepper-border-color-keyboard-focus-invalid, var(--spectrum-stepper-border-color-keyboard-focus-invalid)); - } - } -} - -.x { - border-radius: var(--spectrum-stepper-button-border-radius-reset); -} - -.spectrum-Stepper { position: relative; display: inline-flex; flex-flow: row nowrap; @@ -107,28 +31,29 @@ border-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); - .spectrum-Stepper-input { - border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); - border-start-end-radius: 0; - border-end-end-radius: 0; - border-inline-end-width: 0; + &::before { + content: ""; } - /*** Hover ***/ - &:hover:not(.is-invalid) { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-buttons-border-color-hover, var(--spectrum-stepper-buttons-border-color-hover))); + &::after { + content: ""; + position: absolute; + inset-block-end: calc(-1 * (var(--mod-stepper-focus-indicator-gap, var(--spectrum-stepper-focus-indicator-gap)) + var(--mod-stepper-focus-indicator-width, var(--spectrum-stepper-focus-indicator-width)))); + inset-inline-start: 0; + inline-size: 100%; + block-size: var(--mod-stepper-focus-indicator-width, var(--spectrum-stepper-focus-indicator-width)); } + /*** Hover ***/ &:hover:not(.is-disabled) { - .spectrum-Stepper-input, - .spectrum-Stepper-buttons { - border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-border-color-hover, var(--spectrum-stepper-border-color-hover))); - } + --mod-stepper-border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-border-color-hover, var(--spectrum-stepper-border-color-hover))); + --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-buttons-border-color-hover, var(--spectrum-stepper-buttons-border-color-hover))); } /*** Focused ***/ &.is-focused, &:focus { + --mod-stepper-border-color: var(--highcontrast-stepper-border-color-focus, var(--mod-stepper-border-color-focus, var(--spectrum-stepper-border-color-focus))); --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus, var(--mod-stepper-buttons-border-color-focus, var(--spectrum-stepper-buttons-border-color-focus))); &:not(.is-disabled) { @@ -143,7 +68,7 @@ } &:hover { - /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties */ + --mod-stepper-border-color: var(--highcontrast-stepper-border-color-focus-hover, var(--mod-stepper-buttons-border-color-focus-hover, var(--spectrum-stepper-buttons-border-color-focus-hover))); --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus-hover, var(--mod-stepper-buttons-border-color-focus-hover, var(--spectrum-stepper-buttons-border-color-focus-hover))); .spectrum-Stepper-input, @@ -156,6 +81,7 @@ /*** Keyboard Focused ***/ &.is-keyboardFocused, &:focus-visible { + --mod-stepper-border-color: var(--highcontrast-stepper-border-color-keyboard-focus, var(--mod-stepper-buttons-border-color-keyboard-focus, var(--spectrum-stepper-buttons-border-color-keyboard-focus))); --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-keyboard-focus, var(--mod-stepper-buttons-border-color-keyboard-focus, var(--spectrum-stepper-buttons-border-color-keyboard-focus))); &:not(.is-disabled) { @@ -174,74 +100,154 @@ } } } -} -/*** Quiet ***/ -.spectrum-Stepper.spectrum-Stepper--quiet { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); + /*** Invalid ***/ + &.is-invalid:not(.is-disabled) { + --mod-stepper-border-color: var(--mod-stepper-border-color-invalid, var(--spectrum-stepper-border-color-invalid)); + --mod-stepper-border-color-hover: var(--mod-stepper-border-color-hover-invalid, var(--spectrum-stepper-border-color-hover-invalid)); + --mod-stepper-border-color-focus: var(--mod-stepper-border-color-focus-invalid, var(--spectrum-stepper-border-color-focus-invalid)); + --mod-stepper-border-color-focus-hover: var(--mod-stepper-border-color-focus-hover-invalid, var(--spectrum-stepper-border-color-focus-hover-invalid)); + --mod-stepper-border-color-keyboard-focus: var(--mod-stepper-border-color-keyboard-focus-invalid, var(--spectrum-stepper-border-color-keyboard-focus-invalid)); + + --mod-infield-button-border-color: var(--mod-stepper-border-color-invalid, var(--spectrum-stepper-border-color-invalid)); + --mod-textfield-icon-spacing-inline-start-invalid: 0; - /* quiet corners are not rounded */ - border-start-start-radius: 0; - border-start-end-radius: 0; - border-end-start-radius: 0; - border-end-end-radius: 0; + &:hover { + --mod-infield-button-border-color: var(--mod-stepper-border-color-hover-invalid, var(--spectrum-stepper-border-color-hover-invalid)); + } - &.hide-stepper .spectrum-Stepper-input { - border-inline-end-width: 0; - border-end-end-radius: 0; + &.is-focused, + &:focus { + --mod-infield-button-border-color: var(--mod-stepper-border-color-focus-invalid, var(--spectrum-stepper-border-color-focus-invalid)); + + &:hover { + --mod-infield-button-border-color: var(--mod-stepper-border-color-focus-hover-invalid, var(--spectrum-stepper-border-color-focus-hover-invalid)); + } + } + + &.is-keyboardFocused, + &:focus-visible { + --mod-infield-button-border-color: var(--mod-stepper-border-color-keyboard-focus-invalid, var(--spectrum-stepper-border-color-keyboard-focus-invalid)); + } } - &::after { - content: ""; - position: absolute; - inset-block-end: calc(-1 * (var(--mod-stepper-focus-indicator-gap, var(--spectrum-stepper-focus-indicator-gap)) + var(--mod-stepper-focus-indicator-width, var(--spectrum-stepper-focus-indicator-width)))); - inset-inline-start: 0; - inline-size: 100%; - block-size: var(--mod-stepper-focus-indicator-width, var(--spectrum-stepper-focus-indicator-width)); + &.is-disabled { + --mod-stepper-border-color: var(--spectrum-stepper-button-border-color-disabled); + --mod-stepper-border-color-hover: var(--spectrum-stepper-button-border-color-disabled); + --mod-stepper-border-color-focus: var(--spectrum-stepper-button-border-color-disabled); + --mod-stepper-border-color-focus-hover: var(--spectrum-stepper-button-border-color-disabled); + --mod-stepper-border-color-keyboard-focus: var(--spectrum-stepper-button-border-color-disabled); + --mod-stepper-buttons-background-color: var(--spectrum-stepper-buttons-background-color-disabled); + + --mod-infield-button-border-width: var(--spectrum-stepper-button-border-width-disabled); + --mod-infield-button-border-color: var(--spectrum-stepper-button-border-color-disabled); + --mod-textfield-border-color-disabled: var(--spectrum-stepper-button-border-color-disabled); } - .spectrum-Stepper-buttons { - border: none; + .spectrum-Stepper-input { + border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); + border-start-end-radius: 0; + border-end-end-radius: 0; + border-inline-end-width: 0; } - .spectrum-Stepper-button { - --mod-infield-button-border-block-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); - --mod-infield-button-stacked-bottom-border-block-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); - --mod-infield-button-stacked-bottom-border-radius-end-end: 0; - --mod-infield-button-stacked-bottom-border-radius-end-start: 0; - --mod-infield-button-fill-justify-content: flex-end; - padding: 0; + /* hide-stepper */ + &.hide-stepper .spectrum-Stepper-input { + border-start-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); + border-end-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); + border-inline-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); } - .spectrum-Stepper-input, + /* container for stepUp and stepDown buttons */ .spectrum-Stepper-buttons { - background-color: transparent; + display: flex; + flex-direction: column; + justify-content: center; + box-sizing: border-box; + + block-size: var(--mod-stepper-height, var(--spectrum-stepper-height)); + inline-size: var(--mod-stepper-button-width, var(--spectrum-stepper-button-width)); + + border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); + border-style: var(--mod-stepper-buttons-border-style, var(--spectrum-stepper-buttons-border-style)); + border-width: var(--highcontrast-stepper-buttons-border-width, var(--mod-stepper-buttons-border-width, var(--spectrum-stepper-buttons-border-width))); + border-inline-start-width: 0; + + /* Have to add border radius here to avoid overlapping textfield border */ + border-start-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); + border-end-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); + + background-color: var(--highcontrast-stepper-buttons-background-color, var(--mod-stepper-buttons-background-color, var(--spectrum-stepper-buttons-background-color))); + transition: border-color var(--mod-stepper-animation-duration, var(--spectrum-stepper-animation-duration)) ease-in-out; } - /* quiet hover */ - &:not(.is-disabled):hover { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-border-color-hover, var(--spectrum-stepper-border-color-hover))); + /*** Quiet ***/ + &.spectrum-Stepper--quiet { + /* quiet corners are not rounded */ + border-start-start-radius: 0; + border-start-end-radius: 0; + border-end-start-radius: 0; + border-end-end-radius: 0; + + .spectrum-Stepper-input { + --mod-textfield-focus-indicator-color: transparent; + } + /* stylelint-disable-next-line selector-class-pattern -- @todo fix this in a future release */ + &.hide-stepper .spectrum-Stepper-input { + border-inline-end-width: 0; + border-end-end-radius: 0; + } + + .spectrum-Stepper-buttons { + --mod-infield-button-border-color: transparent; + + border-width: 0; + border-block-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); + border-block-end-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); + border-block-end-style: solid; + border-end-end-radius: 0; + } + + .spectrum-Stepper-button { + --mod-infield-button-width-stacked: var(--mod-stepper-button-width-quiet, var(--spectrum-stepper-button-width)); + --mod-infield-button-border-color: var(--mod-stepper-border-color-quiet, var(--spectrum-stepper-button-border-color-quiet)); + --mod-infield-button-stacked-bottom-border-block-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); + --mod-infield-button-stacked-bottom-border-radius-end-end: 0; + --mod-infield-button-stacked-bottom-border-radius-end-start: 0; + --mod-infield-button-fill-justify-content: flex-end; + + padding: 0; + } + + .spectrum-Stepper-input, .spectrum-Stepper-buttons { background-color: transparent; } - } - /* quiet focus */ - &.is-focused, - &:focus { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus, var(--mod-stepper-border-color-focus, var(--spectrum-stepper-border-color-focus))); + /* quiet hover */ + &:not(.is-disabled):hover { + --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-hover, var(--mod-stepper-border-color-hover, var(--spectrum-stepper-border-color-hover))); - &:hover { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus-hover, var(--mod-stepper-border-color-focus-hover, var(--spectrum-stepper-border-color-focus-hover))); + .spectrum-Stepper-buttons { + background-color: transparent; + } } - } - /* quiet keyboard focused */ - &.is-keyboardFocused { - --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-keyboard-focus, var(--mod-stepper-border-color-keyboard-focus, var(--spectrum-stepper-border-color-keyboard-focus))); + /* quiet focus */ + &.is-focused, + &:focus { + --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus, var(--mod-stepper-border-color-focus, var(--spectrum-stepper-border-color-focus))); + + &:hover { + --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-focus-hover, var(--mod-stepper-border-color-focus-hover, var(--spectrum-stepper-border-color-focus-hover))); + } + } + + /* quiet keyboard focused */ + &.is-keyboardFocused:not(.is-disabled) { + --mod-infield-button-border-color: var(--highcontrast-stepper-border-color-keyboard-focus, var(--mod-stepper-border-color-keyboard-focus, var(--spectrum-stepper-border-color-keyboard-focus))); - &:not(.is-disabled) { outline: none; /* quiet focus indicator only on bottom border */ @@ -256,40 +262,6 @@ } } -.spectrum-Stepper::before { - content: ""; -} - -/* container for stepUp and stepDown buttons */ -.spectrum-Stepper-buttons { - display: flex; - flex-direction: column; - justify-content: center; - box-sizing: border-box; - - block-size: var(--mod-stepper-height, var(--spectrum-stepper-height)); - inline-size: var(--mod-stepper-button-width, var(--spectrum-stepper-button-width)); - - border-color: var(--highcontrast-stepper-border-color, var(--mod-stepper-border-color, var(--spectrum-stepper-border-color))); - border-style: var(--mod-stepper-buttons-border-style, var(--spectrum-stepper-buttons-border-style)); - border-width: var(--highcontrast-stepper-buttons-border-width, var(--mod-stepper-buttons-border-width, var(--spectrum-stepper-buttons-border-width))); - border-inline-start-width: 0; - - /* Have to add border radius here to avoid overlapping textfield border */ - border-start-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); - border-end-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); - - background-color: var(--highcontrast-stepper-buttons-background-color, var(--mod-stepper-buttons-background-color, var(--spectrum-stepper-buttons-background-color))); - transition: border-color var(--mod-stepper-animation-duration, var(--spectrum-stepper-animation-duration)) ease-in-out; -} - -/* hide-stepper */ -.spectrum-Stepper.hide-stepper .spectrum-Stepper-input { - border-start-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); - border-end-end-radius: var(--mod-stepper-border-radius, var(--spectrum-stepper-border-radius)); - border-inline-end-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width)); -} - @media (forced-colors: active) { .spectrum-Stepper { --highcontrast-stepper-border-color: CanvasText; diff --git a/components/stepper/metadata/metadata.json b/components/stepper/metadata/metadata.json index 23c1ff624f2..bedf0f20be1 100644 --- a/components/stepper/metadata/metadata.json +++ b/components/stepper/metadata/metadata.json @@ -2,8 +2,8 @@ "sourceFile": "index.css", "selectors": [ ".spectrum-Stepper", + ".spectrum-Stepper .spectrum-Stepper-buttons", ".spectrum-Stepper .spectrum-Stepper-input", - ".spectrum-Stepper-buttons", ".spectrum-Stepper.hide-stepper .spectrum-Stepper-input", ".spectrum-Stepper.is-disabled", ".spectrum-Stepper.is-focused", @@ -13,13 +13,14 @@ ".spectrum-Stepper.is-focused:not(.is-disabled) .spectrum-Stepper-buttons", ".spectrum-Stepper.is-focused:not(.is-disabled) .spectrum-Stepper-input", ".spectrum-Stepper.is-invalid", - ".spectrum-Stepper.is-invalid.is-focused", - ".spectrum-Stepper.is-invalid.is-focused:hover", - ".spectrum-Stepper.is-invalid.is-keyboardFocused", - ".spectrum-Stepper.is-invalid:focus", - ".spectrum-Stepper.is-invalid:focus-visible", - ".spectrum-Stepper.is-invalid:focus:hover", - ".spectrum-Stepper.is-invalid:hover", + ".spectrum-Stepper.is-invalid.is-focused:not(.is-disabled)", + ".spectrum-Stepper.is-invalid.is-focused:not(.is-disabled):hover", + ".spectrum-Stepper.is-invalid.is-keyboardFocused:not(.is-disabled)", + ".spectrum-Stepper.is-invalid:not(.is-disabled)", + ".spectrum-Stepper.is-invalid:not(.is-disabled):focus", + ".spectrum-Stepper.is-invalid:not(.is-disabled):focus-visible", + ".spectrum-Stepper.is-invalid:not(.is-disabled):focus:hover", + ".spectrum-Stepper.is-invalid:not(.is-disabled):hover", ".spectrum-Stepper.is-keyboardFocused", ".spectrum-Stepper.is-keyboardFocused:not(.is-disabled)", ".spectrum-Stepper.is-keyboardFocused:not(.is-disabled) .spectrum-Stepper-buttons", @@ -31,18 +32,18 @@ ".spectrum-Stepper.spectrum-Stepper--quiet.hide-stepper .spectrum-Stepper-input", ".spectrum-Stepper.spectrum-Stepper--quiet.is-focused", ".spectrum-Stepper.spectrum-Stepper--quiet.is-focused:hover", - ".spectrum-Stepper.spectrum-Stepper--quiet.is-keyboardFocused", ".spectrum-Stepper.spectrum-Stepper--quiet.is-keyboardFocused:not(.is-disabled)", ".spectrum-Stepper.spectrum-Stepper--quiet.is-keyboardFocused:not(.is-disabled):after", ".spectrum-Stepper.spectrum-Stepper--quiet.is-keyboardFocused:not(.is-disabled):hover", - ".spectrum-Stepper.spectrum-Stepper--quiet:after", ".spectrum-Stepper.spectrum-Stepper--quiet:focus", ".spectrum-Stepper.spectrum-Stepper--quiet:focus:hover", ".spectrum-Stepper.spectrum-Stepper--quiet:not(.is-disabled):hover", ".spectrum-Stepper.spectrum-Stepper--quiet:not(.is-disabled):hover .spectrum-Stepper-buttons", ".spectrum-Stepper.spectrum-Stepper--sizeL", + ".spectrum-Stepper.spectrum-Stepper--sizeM", ".spectrum-Stepper.spectrum-Stepper--sizeS", ".spectrum-Stepper.spectrum-Stepper--sizeXL", + ".spectrum-Stepper:after", ".spectrum-Stepper:before", ".spectrum-Stepper:focus", ".spectrum-Stepper:focus-visible", @@ -54,10 +55,7 @@ ".spectrum-Stepper:focus:hover .spectrum-Stepper-input", ".spectrum-Stepper:focus:not(.is-disabled) .spectrum-Stepper-buttons", ".spectrum-Stepper:focus:not(.is-disabled) .spectrum-Stepper-input", - ".spectrum-Stepper:hover:not(.is-disabled) .spectrum-Stepper-buttons", - ".spectrum-Stepper:hover:not(.is-disabled) .spectrum-Stepper-input", - ".spectrum-Stepper:hover:not(.is-invalid)", - ".x" + ".spectrum-Stepper:hover:not(.is-disabled)" ], "modifiers": [ "--mod-stepper-animation-duration", @@ -71,6 +69,7 @@ "--mod-stepper-border-color-invalid", "--mod-stepper-border-color-keyboard-focus", "--mod-stepper-border-color-keyboard-focus-invalid", + "--mod-stepper-border-color-quiet", "--mod-stepper-border-radius", "--mod-stepper-border-width", "--mod-stepper-button-border-width", @@ -99,6 +98,7 @@ "--spectrum-stepper-border-color-focus-hover-invalid", "--spectrum-stepper-border-color-focus-invalid", "--spectrum-stepper-border-color-hover", + "--spectrum-stepper-border-color-hover-invalid", "--spectrum-stepper-border-color-invalid", "--spectrum-stepper-border-color-keyboard-focus", "--spectrum-stepper-border-color-keyboard-focus-invalid", @@ -106,12 +106,15 @@ "--spectrum-stepper-border-width", "--spectrum-stepper-button-background-color-focus", "--spectrum-stepper-button-background-color-keyboard-focus", + "--spectrum-stepper-button-border-color-disabled", + "--spectrum-stepper-button-border-color-quiet", "--spectrum-stepper-button-border-radius-reset", "--spectrum-stepper-button-border-width", - "--spectrum-stepper-button-offset", + "--spectrum-stepper-button-border-width-disabled", "--spectrum-stepper-button-padding", "--spectrum-stepper-button-width", "--spectrum-stepper-buttons-background-color", + "--spectrum-stepper-buttons-background-color-disabled", "--spectrum-stepper-buttons-border-color", "--spectrum-stepper-buttons-border-color-focus", "--spectrum-stepper-buttons-border-color-focus-hover", @@ -123,32 +126,29 @@ "--spectrum-stepper-focus-indicator-gap", "--spectrum-stepper-focus-indicator-width", "--spectrum-stepper-height", + "--spectrum-stepper-min-width-multiplier", "--spectrum-stepper-width" ], "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", "--spectrum-component-height-75", "--spectrum-corner-radius-100", - "--spectrum-disabled-background-color", - "--spectrum-disabled-border-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", - "--spectrum-gray-200", + "--spectrum-gray-100", + "--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-in-field-button-edge-to-fill", - "--spectrum-in-field-button-fill-stacked-inner-border-rounding", "--spectrum-in-field-button-width-stacked-extra-large", "--spectrum-in-field-button-width-stacked-large", "--spectrum-in-field-button-width-stacked-medium", @@ -160,41 +160,17 @@ "--spectrum-negative-border-color-key-focus", "--spectrum-text-field-minimum-width-multiplier" ], - "system-theme": [ - "--system-spectrum-stepper-border-color", - "--system-spectrum-stepper-border-color-focus", - "--system-spectrum-stepper-border-color-focus-hover", - "--system-spectrum-stepper-border-color-focus-hover-invalid", - "--system-spectrum-stepper-border-color-focus-invalid", - "--system-spectrum-stepper-border-color-hover", - "--system-spectrum-stepper-border-color-invalid", - "--system-spectrum-stepper-border-color-keyboard-focus", - "--system-spectrum-stepper-border-color-keyboard-focus-invalid", - "--system-spectrum-stepper-border-width", - "--system-spectrum-stepper-button-background-color-focus", - "--system-spectrum-stepper-button-background-color-keyboard-focus", - "--system-spectrum-stepper-button-border-radius-reset", - "--system-spectrum-stepper-button-border-width", - "--system-spectrum-stepper-buttons-background-color", - "--system-spectrum-stepper-buttons-border-color", - "--system-spectrum-stepper-buttons-border-color-focus", - "--system-spectrum-stepper-buttons-border-color-hover", - "--system-spectrum-stepper-buttons-border-color-keyboard-focus", - "--system-spectrum-stepper-buttons-border-style", - "--system-spectrum-stepper-buttons-border-width", - "--system-spectrum-stepper-disabled-buttons-background-color", - "--system-spectrum-stepper-disabled-buttons-border-width" - ], + "system-theme": [], "passthroughs": [ - "--mod-infield-button-border-block-end-width", "--mod-infield-button-border-color", - "--mod-infield-button-border-color-quiet-disabled", + "--mod-infield-button-border-radius-reset", "--mod-infield-button-border-width", "--mod-infield-button-fill-justify-content", "--mod-infield-button-stacked-bottom-border-block-end-width", "--mod-infield-button-stacked-bottom-border-radius-end-end", "--mod-infield-button-stacked-bottom-border-radius-end-start", "--mod-infield-button-width-stacked", + "--mod-textfield-border-color-disabled", "--mod-textfield-border-width", "--mod-textfield-focus-indicator-color", "--mod-textfield-icon-spacing-inline-start-invalid" diff --git a/components/stepper/metadata/mods.md b/components/stepper/metadata/mods.md index bdec6a209ac..6549b7711f3 100644 --- a/components/stepper/metadata/mods.md +++ b/components/stepper/metadata/mods.md @@ -11,6 +11,7 @@ | `--mod-stepper-border-color-invalid` | | `--mod-stepper-border-color-keyboard-focus` | | `--mod-stepper-border-color-keyboard-focus-invalid` | +| `--mod-stepper-border-color-quiet` | | `--mod-stepper-border-radius` | | `--mod-stepper-border-width` | | `--mod-stepper-button-border-width` | diff --git a/components/stepper/metadata/stepper.yml b/components/stepper/metadata/stepper.yml deleted file mode 100644 index 5e92079ede1..00000000000 --- a/components/stepper/metadata/stepper.yml +++ /dev/null @@ -1,439 +0,0 @@ -name: Stepper -status: Contribution -sections: - - name: Migration Guide - description: | - ### New Textfield markup - Stepper now uses the new Textfield markup. See the [Textfield migration guide](textfield.html#migrationguide) for more information. - - ### Use InFieldButton instead of FieldButton - Stepper now uses InFieldButtons instead of FieldButtons for the up/down buttons. - - ### Icon classes removed - `.spectrum-Stepper-stepUpIcon` and `.spectrum-Stepper-stepDownIcon` are no longer needed and have been removed. - - ### Indicating validity, focus, and disable - Validity and focus must be bubbled up to the parent so descendants siblings can be styled. - - Thus, implementations must add the following classes in the following situations: - - * `.spectrum-Stepper.is-focused` - when the input or button is focused with the mouse - * `.spectrum-Stepper.is-keyboardFocused` - when the input or button is focused with the keyboard - * `.spectrum-Stepper.is-valid` - when the input has an explicit valid state - * `.spectrum-Stepper.is-invalid` - when the input has an explicit invalid state - * `.spectrum-Stepper.is-disabled` - when the component is disabled. Note that the Textfield must have `.is-disabled`, and the `` and `` must have the `[disabled]` property. - -examples: - - id: stepper - name: Standard - markup: | -
    -
    -

    S

    -
    -
    - -
    - - - - -
    -
    -
    -

    M

    -
    -
    - -
    -
    - - -
    -
    -
    -
    -

    L

    -
    -
    - -
    - - - - -
    -
    -
    -

    XL

    -
    -
    - -
    - - - - -
    -
    -
    - - id: stepper-focused - name: Focused - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-keyboard-focused - name: Keyboard Focused - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-invalid - name: Invalid - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-invalid-focused - name: Invalid (focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-invalid-keyboard-focused - name: Invalid (keyboard focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-disabled - name: Disabled - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet - name: Quiet - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-focused - name: Quiet (focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-keyboard-focused - name: Quiet (keyboard focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-invalid - name: Quiet (invalid) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-invalid-focused - name: Quiet (invalid, focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-invalid-keyboard-focused - name: Quiet (invalid, keyboard focused) - markup: | -
    -
    - -
    - - - - -
    - - id: stepper-quiet-disabled - name: Quiet (disabled) - markup: | -
    -
    - -
    - - - - -
    diff --git a/components/stepper/package.json b/components/stepper/package.json index 8240a7d73d0..5c489f7dde3 100644 --- a/components/stepper/package.json +++ b/components/stepper/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/stepper", - "version": "6.2.0", + "version": "7.0.0-s2-foundations.16", "description": "The Spectrum CSS stepper component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/stepper/stories/stepper.test.js b/components/stepper/stories/stepper.test.js index 60246d2133f..a3e51331d4f 100644 --- a/components/stepper/stories/stepper.test.js +++ b/components/stepper/stories/stepper.test.js @@ -50,7 +50,7 @@ export const StepperGroup = Variants({ { testHeading: "Disabled + focused", isDisabled: true, - isFocused: true, + isHovered: true, }, { testHeading: "Disabled + keyboard-focused", diff --git a/components/stepper/stories/template.js b/components/stepper/stories/template.js index 294af0fd847..5aea30e8271 100644 --- a/components/stepper/stories/template.js +++ b/components/stepper/stories/template.js @@ -8,6 +8,9 @@ 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 index 6cc552c49f9..28eb421663f 100644 --- a/components/stepper/themes/express.css +++ b/components/stepper/themes/express.css @@ -11,11 +11,19 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; @container (--system: express) { .spectrum-Stepper { --spectrum-stepper-border-width: var(--spectrum-border-width-200); + --spectrum-stepper-border-color: 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-buttons-border-style: solid; --spectrum-stepper-buttons-border-width: var(--spectrum-border-width-200); @@ -27,24 +35,18 @@ --spectrum-stepper-button-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); --spectrum-stepper-button-border-width: 0; + --spectrum-stepper-button-background-color-focus: var(--spectrum-gray-400); + --spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-300); - --spectrum-stepper-border-color: 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); - + /** Invalid **/ --spectrum-stepper-border-color-invalid: transparent; + --spectrum-stepper-border-color-hover-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; - --spectrum-stepper-button-background-color-focus: var(--spectrum-gray-400); - --spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-300); - - &.is-disabled { - --spectrum-stepper-buttons-background-color: var(--spectrum-disabled-background-color); - --spectrum-stepper-buttons-border-width: 0; - } + /** Disabled **/ + --spectrum-stepper-button-border-width-disabled: 0; + --spectrum-stepper-buttons-background-color-disabled: var(--spectrum-disabled-background-color); } } diff --git a/components/stepper/themes/spectrum-two.css b/components/stepper/themes/spectrum-two.css new file mode 100644 index 00000000000..ebcbb6e620d --- /dev/null +++ b/components/stepper/themes/spectrum-two.css @@ -0,0 +1,81 @@ +/*! + * 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 + * + * 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 (--system: spectrum) { + .spectrum-Stepper { + --spectrum-stepper-border-width: var(--spectrum-border-width-100); + --spectrum-stepper-border-color: 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-radius: var(--spectrum-corner-radius-100); + --spectrum-stepper-min-width-multiplier: var(--spectrum-text-field-minimum-width-multiplier); + --spectrum-stepper-animation-duration: var(--spectrum-animation-duration-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-padding: var(--spectrum-in-field-button-edge-to-fill); + --spectrum-stepper-button-border-radius-reset: 0px; + --spectrum-stepper-button-border-width: var(--spectrum-border-width-100); + --spectrum-stepper-button-background-color-focus: var(--spectrum-gray-300); + --spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-100); + + /** Invalid **/ + --spectrum-stepper-border-color-invalid: var(--spectrum-negative-border-color-default); + --spectrum-stepper-border-color-hover-invalid: var(--spectrum-negative-border-color-hover); + --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); + + /*** Focus Indicator ***/ + --spectrum-stepper-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --spectrum-stepper-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --spectrum-stepper-focus-indicator-color: var(--spectrum-focus-indicator-color); + + /** Quiet **/ + --spectrum-stepper-button-border-color-quiet: transparent; + + /** Disabled **/ + --spectrum-stepper-button-border-color-disabled: var(--spectrum-gray-100); + --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(--spectrum-in-field-button-width-stacked-small); + --spectrum-stepper-height: var(--spectrum-component-height-75); + } + + &, + &.spectrum-Stepper--sizeM { + --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-medium); + --spectrum-stepper-height: var(--spectrum-component-height-100); + } + + &.spectrum-Stepper--sizeL { + --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-large); + --spectrum-stepper-height: var(--spectrum-component-height-200); + } + + &.spectrum-Stepper--sizeXL { + --spectrum-stepper-button-width: var(--spectrum-in-field-button-width-stacked-extra-large); + --spectrum-stepper-height: var(--spectrum-component-height-300); + } + } +} diff --git a/components/stepper/themes/spectrum.css b/components/stepper/themes/spectrum.css index 17bb6158b38..ac1142c6677 100644 --- a/components/stepper/themes/spectrum.css +++ b/components/stepper/themes/spectrum.css @@ -11,33 +11,16 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Stepper { - --spectrum-stepper-border-width: var(--spectrum-border-width-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-50); - --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-radius-reset: 0px; - --spectrum-stepper-button-border-width: var(--spectrum-border-width-100); +/* @combine .spectrum.spectrum--legacy */ - --spectrum-stepper-border-color: 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); +@import "./spectrum-two.css"; - --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); - - --spectrum-stepper-button-background-color-focus: var(--spectrum-gray-300); +@container (--system: legacy) { + .spectrum-Stepper { --spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-200); + --spectrum-stepper-button-border-color-disabled: var(--spectrum-gray-200); + --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 4aba31687db..536b26a5a52 100644 --- a/components/swatch/CHANGELOG.md +++ b/components/swatch/CHANGELOG.md @@ -1,5 +1,186 @@ # Change Log +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Minor Changes + +- [#2954](https://github.com/adobe/spectrum-css/pull/2954) [`2d89227`](https://github.com/adobe/spectrum-css/commit/2d892277adbc1d8d5598bdf85130d3499fd31e13) Thanks [@marissahuysentruyt](https://github.com/marissahuysentruyt)! - Reimplements support for the `spectrum-Swatch--lightBorder` class for swatches specifically in a swatch group. + +### Patch Changes + +- Updated dependencies [[`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.15 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.0 + ## 6.2.2 ### Patch Changes diff --git a/components/swatch/index.css b/components/swatch/index.css index 5b893cdd137..6f857f34c51 100644 --- a/components/swatch/index.css +++ b/components/swatch/index.css @@ -11,69 +11,7 @@ * governing permissions and limitations under the License. */ -/* Swatch tokens */ -.spectrum-Swatch { - /* Placeholder tokens */ - --spectrum-swatch-focus-indicator-border-radius: 8px; - --spectrum-swatch-icon-border-color: rgba(0, 0, 0, 51%); - - /* Size */ - --spectrum-swatch-size: var(--spectrum-swatch-size-small); - --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-disabled-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-small); - --spectrum-swatch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-swatch-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - - /* Color */ - --spectrum-swatch-border-color: rgba(0, 0, 0, 51%); - --spectrum-swatch-border-color-selected: var(--spectrum-gray-900); - --spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-50); - --spectrum-swatch-disabled-icon-border-color: var(--spectrum-swatch-disabled-icon-border-color); - --spectrum-swatch-disabled-icon-color: var(--spectrum-white); - --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); - - /* Light theme placeholder tokens */ - .spectrum--light & { - --spectrum-swatch-border-color: rgba(0, 0, 0, 51%); - --spectrum-swatch-border-color-light: rgba(0, 0, 0, 20%); - } - - /* Dark and Darkest theme placeholder tokens */ - .spectrum--dark &, - .spectrum--darkest & { - --spectrum-swatch-border-color: rgba(255, 255, 255, 51%); - --spectrum-swatch-border-color-light: rgba(255, 255, 255, 20%); - } -} - -.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--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--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); -} +@import "./themes/spectrum-two.css"; /* Windows high contrast mode */ @media (forced-colors: active) { @@ -97,7 +35,6 @@ } /* Swatch styles */ -/* stylelint-disable max-nesting-depth */ .spectrum-Swatch { inline-size: var(--mod-swatch-size, var(--spectrum-swatch-size)); block-size: var(--mod-swatch-size, var(--spectrum-swatch-size)); @@ -160,7 +97,7 @@ &.is-mixedValue { .spectrum-Swatch-fill { - /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- undefined variable allows custom stylesheet or JS to pass the value to this element */ background: var(--spectrum-picked-color, transparent); } @@ -173,7 +110,7 @@ /* Swatch fill: Not fill with Slash */ &.is-nothing { .spectrum-Swatch-fill { - /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- undefined variable allows custom stylesheet or JS to pass the value to this element */ background-color: var(--spectrum-picked-color, transparent); background-image: none; @@ -187,12 +124,8 @@ } } - &.spectrum-Swatch--rectangle { - .spectrum-Swatch-fill { - &::after { - transform: rotate(-25deg); - } - } + &.spectrum-Swatch--rectangle .spectrum-Swatch-fill::after { + transform: rotate(-25deg); } } @@ -240,7 +173,6 @@ } } } -/* stylelint-enable max-nesting-depth */ .spectrum-Swatch-fill { display: flex; @@ -264,7 +196,7 @@ inset: 0; z-index: 0; - /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- undefined variable allows custom stylesheet or JS to pass the value to this element */ background-color: var(--spectrum-picked-color, transparent); /* Swatch border */ @@ -279,7 +211,7 @@ &::before { box-shadow: none; - /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- undefined variable allows custom stylesheet or JS to pass the value to this element */ background-color: var(--spectrum-picked-color, transparent); } } @@ -297,7 +229,7 @@ display: none; pointer-events: none; - /* Undefined variable allows custom stylesheet or JS to pass the value to this element */ + /* stylelint-disable-next-line spectrum-tools/no-unknown-custom-properties -- undefined variable allows custom stylesheet or JS to pass the value to this element */ color: var(--spectrum-picked-color, transparent); } diff --git a/components/swatch/metadata/metadata.json b/components/swatch/metadata/metadata.json index 308ec62b65b..32c3f2f8015 100644 --- a/components/swatch/metadata/metadata.json +++ b/components/swatch/metadata/metadata.json @@ -1,9 +1,6 @@ { "sourceFile": "index.css", "selectors": [ - ".spectrum--dark .spectrum-Swatch", - ".spectrum--darkest .spectrum-Swatch", - ".spectrum--light .spectrum-Swatch", ".spectrum-Swatch", ".spectrum-Swatch .spectrum-Swatch-disabledIcon", ".spectrum-Swatch .spectrum-Swatch-fill", @@ -24,10 +21,6 @@ ".spectrum-Swatch--roundingNone.is-selected .spectrum-Swatch-fill:before", ".spectrum-Swatch--roundingNone:after", ".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", ".spectrum-Swatch-disabledIcon path:last-child", @@ -47,6 +40,10 @@ ".spectrum-Swatch.is-selected .spectrum-Swatch-fill", ".spectrum-Swatch.is-selected .spectrum-Swatch-fill:before", ".spectrum-Swatch.is-selected:before", + ".spectrum-Swatch.spectrum-Swatch--sizeL", + ".spectrum-Swatch.spectrum-Swatch--sizeM", + ".spectrum-Swatch.spectrum-Swatch--sizeS", + ".spectrum-Swatch.spectrum-Swatch--sizeXS", ".spectrum-Swatch:after", ".spectrum-Swatch:before", ".spectrum-Swatch:focus-visible:after", @@ -76,12 +73,13 @@ "component": [ "--spectrum-swatch-border-color", "--spectrum-swatch-border-color-light", + "--spectrum-swatch-border-color-light-opacity", + "--spectrum-swatch-border-color-opacity", "--spectrum-swatch-border-color-selected", "--spectrum-swatch-border-radius", "--spectrum-swatch-border-thickness", "--spectrum-swatch-border-thickness-selected", "--spectrum-swatch-dash-icon-color", - "--spectrum-swatch-disabled-icon-border-color", "--spectrum-swatch-disabled-icon-color", "--spectrum-swatch-disabled-icon-size", "--spectrum-swatch-focus-indicator-border-radius", @@ -104,18 +102,19 @@ ], "global": [ "--spectrum-animation-duration-100", + "--spectrum-black-rgb", "--spectrum-border-width-100", "--spectrum-border-width-200", "--spectrum-corner-radius-100", + "--spectrum-corner-radius-200", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", "--spectrum-focus-indicator-thickness", - "--spectrum-gray-50", + "--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", diff --git a/components/swatch/metadata/swatch.yml b/components/swatch/metadata/swatch.yml deleted file mode 100644 index 85c28dfeb29..00000000000 --- a/components/swatch/metadata/swatch.yml +++ /dev/null @@ -1,301 +0,0 @@ -name: Swatch -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/swatch/ -description: | - - Set `--spectrum-picked-color` to customize the swatch fill background color. -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: swatch-sizing - name: Sizing - markup: | -
    -
    -

    XS

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    S

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    M (default)

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    L

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    - - id: swatch-roundingnone - name: Rounding - None - markup: | -
    -
    -
    -
    - - id: swatch-roundingfull - name: Rounding - Full - markup: | -
    -
    -
    -
    - - id: swatch-lightborder - name: Light border - markup: | -
    -
    -
    -
    - - id: swatch-noborder - name: No border - markup: | -
    -
    -
    -
    - - id: swatch-rectangle - name: Shape - Rectangle - markup: | -
    -
    -
    -
    - - id: swatch-image - name: Image - markup: | -
    -
    - -
    -
    - - id: swatch-gradient - name: Gradient - markup: | -
    -
    -
    -
    -
    - - id: swatch-selection - name: Selected - markup: | -
    -
    -
    - - id: swatch-mixedvalue - name: Mixed Value - markup: | -
    -
    - -
    -
    - - id: swatch-nothing - name: Nothing - markup: | -
    -
    -

    XS

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    S

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    M (default)

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    L

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    - - id: swatch-selection - name: Disabled - description: | - [Hide unavailable swatches when possible](https://spectrum.corp.adobe.com/page/swatch/#Hide-unavailable-swatches-when-possible) - markup: | - -
    -
    -

    XS

    - -
    -
    -
    - - - - -
    -
    -
    -
    - - - - -
    -
    -
    -
    -
    -

    S

    - -
    -
    -
    - - - - -
    -
    -
    -
    - - - - -
    -
    -
    -
    -
    -

    M (default)

    - -
    -
    -
    - - - - -
    -
    -
    -
    - - - - -
    -
    -
    -
    - -
    -

    L

    - -
    -
    -
    - - - - -
    -
    -
    -
    - - - - -
    -
    -
    -
    - -
    diff --git a/components/swatch/package.json b/components/swatch/package.json index da4045b9f34..b73d99f72b7 100644 --- a/components/swatch/package.json +++ b/components/swatch/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/swatch", - "version": "6.2.2", + "version": "7.0.0-s2-foundations.14", "description": "The Spectrum CSS Color swatch component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/swatch/stories/template.js b/components/swatch/stories/template.js index c58cf016d49..d18a44928ed 100644 --- a/components/swatch/stories/template.js +++ b/components/swatch/stories/template.js @@ -9,6 +9,9 @@ import { capitalize, lowerCase } from "lodash-es"; 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-Swatch", diff --git a/components/swatch/themes/express.css b/components/swatch/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/swatch/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..f49cac0bd1a --- /dev/null +++ b/components/swatch/themes/spectrum-two.css @@ -0,0 +1,64 @@ +/*! + * 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 + * + * 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 { + /* Size */ + --spectrum-swatch-border-radius: var(--spectrum-corner-radius-100); + --spectrum-swatch-focus-indicator-border-radius: var(--spectrum-corner-radius-200); + --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-opacity: 0.51; + --spectrum-swatch-border-color-light-opacity: 0.2; + + /* Color */ + --spectrum-swatch-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-swatch-border-color-opacity)); + --spectrum-swatch-icon-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-swatch-border-color-opacity)); + --spectrum-swatch-border-color-light: rgba(var(--spectrum-black-rgb), var(--spectrum-swatch-border-color-light-opacity)); + --spectrum-swatch-border-color-selected: var(--spectrum-gray-900); + --spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-25); + --spectrum-swatch-disabled-icon-color: var(--spectrum-gray-25); + --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); + + &.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--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--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); + } + } +} diff --git a/components/swatch/themes/spectrum.css b/components/swatch/themes/spectrum.css new file mode 100644 index 00000000000..9a377d01f0a --- /dev/null +++ b/components/swatch/themes/spectrum.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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-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 05aed3454f1..830c5d5c21e 100644 --- a/components/swatchgroup/CHANGELOG.md +++ b/components/swatchgroup/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.14 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/swatch@7.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/swatch@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 3.1.3 ### Patch Changes diff --git a/components/swatchgroup/index.css b/components/swatchgroup/index.css index b918210cec8..97250f65a20 100644 --- a/components/swatchgroup/index.css +++ b/components/swatchgroup/index.css @@ -11,21 +11,15 @@ * governing permissions and limitations under the License. */ -.spectrum-SwatchGroup { - --spectrum-swatchgroup-spacing-compact: var(--spectrum-spacing-50); - --spectrum-swatchgroup-spacing-regular: var(--spectrum-spacing-75); - --spectrum-swatchgroup-spacing-spacious: var(--spectrum-spacing-100); -} +@import "./themes/spectrum-two.css"; .spectrum-SwatchGroup { display: inline-flex; flex-flow: row wrap; align-items: flex-start; justify-content: flex-start; -} -/* Regular (Default) */ -.spectrum-SwatchGroup { + /* Regular (Default) */ gap: var(--mod-swatchgroup-spacing-regular, var(--spectrum-swatchgroup-spacing-regular)); } diff --git a/components/swatchgroup/metadata/swatchgroup.yml b/components/swatchgroup/metadata/swatchgroup.yml deleted file mode 100644 index 2c9905783d6..00000000000 --- a/components/swatchgroup/metadata/swatchgroup.yml +++ /dev/null @@ -1,296 +0,0 @@ -name: Swatch group -status: Verified -SpectrumSiteSlug: https://spectrum.adobe.com/page/swatchgroup/ -description: | - - Grouped swatches must use the `.spectrum-Swatch--roundingNone` class to help minimize the Hermann grid illusion - - Swatches with a color that have a contrast ratio of less than 3:1 should have `.spectrum-Swatch--lightBorder` class, otherwise, it should have the `.spectrum-Swatch--noBorder` class -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -examples: - - id: swatchgroup-compact - name: Density - Compact - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - id: swatchgroup-regular - name: Density - Regular - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - id: swatchgroup-spacious - name: Density - Spacious - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - id: swatchgroup-sizing - name: Sizing - description: Use any size swatches as necessary. - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - id: swatchgroup-rounding - name: Rounding - Regular - description: Only use rounded swatches if there is a single row. - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - id: swatchgroup-rounding - name: Rounding - Full - description: Only use rounded swatches if there is a single row. - markup: | -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/components/swatchgroup/package.json b/components/swatchgroup/package.json index b93615ba7d0..21651d695ef 100644 --- a/components/swatchgroup/package.json +++ b/components/swatchgroup/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/swatchgroup", - "version": "3.1.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS Color swatch group component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/swatchgroup/stories/template.js b/components/swatchgroup/stories/template.js index 3cab50701c3..203160ec147 100644 --- a/components/swatchgroup/stories/template.js +++ b/components/swatchgroup/stories/template.js @@ -6,6 +6,9 @@ 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-SwatchGroup", diff --git a/components/swatchgroup/themes/express.css b/components/swatchgroup/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/swatchgroup/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/swatchgroup/themes/spectrum-two.css b/components/swatchgroup/themes/spectrum-two.css new file mode 100644 index 00000000000..9bc11c31ac9 --- /dev/null +++ b/components/swatchgroup/themes/spectrum-two.css @@ -0,0 +1,20 @@ +/*! + * 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 + * + * 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-SwatchGroup { + --spectrum-swatchgroup-spacing-compact: var(--spectrum-spacing-50); + --spectrum-swatchgroup-spacing-regular: var(--spectrum-spacing-75); + --spectrum-swatchgroup-spacing-spacious: var(--spectrum-spacing-100); + } +} diff --git a/components/swatchgroup/themes/spectrum.css b/components/swatchgroup/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/swatchgroup/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/switch/CHANGELOG.md b/components/switch/CHANGELOG.md index 6a27cf0415f..8f353e95bc6 100644 --- a/components/switch/CHANGELOG.md +++ b/components/switch/CHANGELOG.md @@ -1,5 +1,167 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`a477157`](https://github.com/adobe/spectrum-css/commit/a477157a27c6fe5bba3f42397438d21c0cff4ddb) Thanks [@pfulton](https://github.com/pfulton)! - fix(switch): migrate mods + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/switch/index.css b/components/switch/index.css index 9bc6027e728..925858eef24 100644 --- a/components/switch/index.css +++ b/components/switch/index.css @@ -11,98 +11,11 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@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); - --spectrum-switch-label-color-down: var(--spectrum-neutral-content-color-down); - --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: var(--spectrum-gray-300); - --spectrum-switch-background-color-disabled: var(--spectrum-gray-300); - --spectrum-switch-background-color-selected-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-focus-indicator-thickness: var(--mod-focus-indicator-thickness, var(--spectrum-focus-indicator-thickness)); - --spectrum-switch-focus-indicator-color: var(--spectrum-focus-indicator-color); - - --spectrum-switch-handle-background-color: var(--spectrum-gray-75); - --spectrum-switch-handle-border-color-disabled: var(--spectrum-disabled-content-color); -} - -.spectrum-Switch--disabled { - --spectrum-switch-label-color-default: 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--sizeS { - --spectrum-switch-min-height: var(--spectrum-component-height-75); - --spectrum-switch-control-width: var(--spectrum-switch-control-width-small); - --spectrum-switch-control-height: var(--spectrum-switch-control-height-small); - --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-font-size: var(--spectrum-font-size-75); -} -.spectrum-Switch--sizeM { - --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-font-size: var(--spectrum-font-size-100); -} - -.spectrum-Switch--sizeL { - --spectrum-switch-min-height: var(--spectrum-component-height-200); - --spectrum-switch-control-width: var(--spectrum-switch-control-width-large); - --spectrum-switch-control-height: var(--spectrum-switch-control-height-large); - --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-font-size: var(--spectrum-font-size-200); -} - -.spectrum-Switch--sizeXL { - --spectrum-switch-min-height: var(--spectrum-component-height-300); - --spectrum-switch-control-width: var(--spectrum-switch-control-width-extra-large); - --spectrum-switch-control-height: var(--spectrum-switch-control-height-extra-large); - --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-font-size: var(--spectrum-font-size-300); -} - -.spectrum-Switch { display: inline-flex; align-items: flex-start; position: relative; @@ -192,6 +105,7 @@ border-radius: calc(var(--mod-switch-control-height, var(--spectrum-switch-control-height)) / 2); + &::before { display: block; position: absolute; @@ -220,15 +134,15 @@ /* :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: ""; - display: block; position: absolute; + inset-block-start: 0; + inset-block-end: 0; inset-inline-start: 0; inset-inline-end: 0; - inset-block-end: 0; - inset-block-start: 0; + display: block; margin: 0; + 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); transition: opacity var(--mod-animation-duration-100, var(--spectrum-animation-duration-100)) ease-out, @@ -333,7 +247,8 @@ .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))); + /* @deprecated --mod-focus-indicator-thickness -- migrate modifiers to use --mod-switch-focus-indicator-thickness instead */ + box-shadow: 0 0 0 var(--mod-switch-focus-indicator-thickness, var(--mod-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 { @@ -403,8 +318,6 @@ /* high contrast mode */ @media (forced-colors: active) { .spectrum-Switch { - forced-color-adjust: none; - --highcontrast-switch-label-color-default: ButtonText; --highcontrast-switch-label-color-hover: ButtonText; --highcontrast-switch-label-color-down: ButtonText; @@ -432,6 +345,7 @@ --highcontrast-switch-background-color-selected-disabled: Highlight; --highcontrast-switch-focus-indicator-color: ButtonText; + forced-color-adjust: none; .spectrum-Switch-input { &:not(:checked) + .spectrum-Switch-switch { @@ -448,12 +362,12 @@ &:disabled, &[disabled] { &:checked + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; background-color: GrayText; + box-shadow: inset 0 0 0 1px GrayText; &::before { - border-color: GrayText; background-color: ButtonFace; + border-color: GrayText; } } } @@ -464,22 +378,22 @@ &:disabled, &[disabled] { &:not(:checked) + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; background-color: ButtonFace; + box-shadow: inset 0 0 0 1px GrayText; &::before { - border-color: GrayText; background-color: ButtonFace; + border-color: GrayText; } } &:checked + .spectrum-Switch-switch { - box-shadow: inset 0 0 0 1px GrayText; background-color: GrayText; + box-shadow: inset 0 0 0 1px GrayText; &::before { - border-color: GrayText; background-color: ButtonFace; + border-color: GrayText; } } diff --git a/components/switch/metadata/metadata.json b/components/switch/metadata/metadata.json index d97f21effae..3b6b859fd9d 100644 --- a/components/switch/metadata/metadata.json +++ b/components/switch/metadata/metadata.json @@ -182,10 +182,10 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-300", + "--spectrum-gray-200", + "--spectrum-gray-50", "--spectrum-gray-600", "--spectrum-gray-700", - "--spectrum-gray-75", "--spectrum-gray-800", "--spectrum-gray-900", "--spectrum-line-height-100", @@ -202,16 +202,7 @@ "--spectrum-text-to-control-300", "--spectrum-text-to-control-75" ], - "system-theme": [ - "--system-spectrum-switch-handle-border-color-default", - "--system-spectrum-switch-handle-border-color-down", - "--system-spectrum-switch-handle-border-color-focus", - "--system-spectrum-switch-handle-border-color-hover", - "--system-spectrum-switch-handle-border-color-selected-default", - "--system-spectrum-switch-handle-border-color-selected-down", - "--system-spectrum-switch-handle-border-color-selected-focus", - "--system-spectrum-switch-handle-border-color-selected-hover" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-switch-background-color", diff --git a/components/switch/metadata/switch.yml b/components/switch/metadata/switch.yml deleted file mode 100644 index 0cebd67302d..00000000000 --- a/components/switch/metadata/switch.yml +++ /dev/null @@ -1,129 +0,0 @@ -name: Switch -SpectrumSiteSlug: https://spectrum.adobe.com/page/switch/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Component renamed - Toggle is now known as Switch. Replace all `.spectrum-ToggleSwitch*` classnames with `.spectrum-Switch*`. - ### T-shirt sizing - Switch now supports t-shirt sizing and requires that you specify the size by adding a .spectrum-Switch--size* class. The default size is "medium". - ### Quiet and emphasized - Spectrum has chosen the variant previously known as `quiet` to be the default and has added an `emphasized` variant with the same styles as the previous default. - If you were using the `quiet` variant, the `.spectrum-Switch--quiet` class is no longer required and can be removed. - If you need a switch to look like it did before this change, add `.spectrum-Switch--emphasized`. - - ### A/B toggle variant removed - It's been deprecated and removed. A similar use case could be served by using Radio buttons. - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: switch - name: Standard - status: Verified - description: The on/off variant of the Switch. - markup: | -
    - - - -
    -
    - - - -
    - -
    - -
    - - - -
    -
    - - - -
    - - id: switch - name: Sizes - status: Verified - description: The t-shirt sizes of the Switch. - markup: | - -
    - - - -
    - -
    - -
    - - - -
    - -
    - -
    - - - -
    - -
    - -
    - - - -
    - - id: switch - name: Emphasis - status: Verified - description: The emphasized variant of the Switch. - markup: | -
    - - - -
    -
    - - - -
    - -
    - -
    - - - -
    -
    - - - -
    - - id: switch - name: Disabled - status: Verified - description: The disabled variant of the Switch. - markup: | -
    - - - -
    -
    - - - -
    diff --git a/components/switch/package.json b/components/switch/package.json index 4be587e5ff8..1e0a3b87c29 100644 --- a/components/switch/package.json +++ b/components/switch/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/switch", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS switch component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/switch/stories/template.js b/components/switch/stories/template.js index c3dc779290c..6f4a729d66c 100644 --- a/components/switch/stories/template.js +++ b/components/switch/stories/template.js @@ -6,6 +6,9 @@ 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 index 6f4e39a2b7a..75e9439ab46 100644 --- a/components/switch/themes/express.css +++ b/components/switch/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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); diff --git a/components/switch/themes/spectrum-two.css b/components/switch/themes/spectrum-two.css new file mode 100644 index 00000000000..6215d0ea9ac --- /dev/null +++ b/components/switch/themes/spectrum-two.css @@ -0,0 +1,113 @@ +/*! + * 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 + * + * 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-label-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-switch-label-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-switch-label-color-down: var(--spectrum-neutral-content-color-down); + --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: var(--spectrum-gray-200); + --spectrum-switch-background-color-disabled: var(--spectrum-gray-200); + --spectrum-switch-background-color-selected-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-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-switch-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-switch-handle-background-color: var(--spectrum-gray-50); + --spectrum-switch-handle-border-color-disabled: var(--spectrum-disabled-content-color); + } + + .spectrum-Switch--disabled { + --spectrum-switch-label-color-default: 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--sizeS { + --spectrum-switch-min-height: var(--spectrum-component-height-75); + --spectrum-switch-control-width: var(--spectrum-switch-control-width-small); + --spectrum-switch-control-height: var(--spectrum-switch-control-height-small); + --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-font-size: var(--spectrum-font-size-75); + } + + .spectrum-Switch--sizeM { + --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-font-size: var(--spectrum-font-size-100); + } + + .spectrum-Switch--sizeL { + --spectrum-switch-min-height: var(--spectrum-component-height-200); + --spectrum-switch-control-width: var(--spectrum-switch-control-width-large); + --spectrum-switch-control-height: var(--spectrum-switch-control-height-large); + --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-font-size: var(--spectrum-font-size-200); + } + + .spectrum-Switch--sizeXL { + --spectrum-switch-min-height: var(--spectrum-component-height-300); + --spectrum-switch-control-width: var(--spectrum-switch-control-width-extra-large); + --spectrum-switch-control-height: var(--spectrum-switch-control-height-extra-large); + --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-font-size: var(--spectrum-font-size-300); + } +} diff --git a/components/switch/themes/spectrum.css b/components/switch/themes/spectrum.css index 755d004ae61..21b4971b275 100644 --- a/components/switch/themes/spectrum.css +++ b/components/switch/themes/spectrum.css @@ -11,16 +11,16 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .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-background-color: var(--spectrum-gray-300); + --spectrum-switch-background-color-disabled: var(--spectrum-gray-300); - --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-handle-background-color: var(--spectrum-gray-75); } } diff --git a/components/table/CHANGELOG.md b/components/table/CHANGELOG.md index 2652683651b..0ec8155fa52 100644 --- a/components/table/CHANGELOG.md +++ b/components/table/CHANGELOG.md @@ -1,5 +1,229 @@ # Change Log +## 7.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.13 + - @spectrum-css/checkbox@10.0.0-s2-foundations.16 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`1037169`](https://github.com/adobe/spectrum-css/commit/103716919fa4e0d43c68e67e1fd3355651c02016) Thanks [@pfulton](https://github.com/pfulton)! - Move --highcontrast references out of themes; remove remaining --mods from the themes + +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#3040](https://github.com/adobe/spectrum-css/pull/3040) [`cf2e737`](https://github.com/adobe/spectrum-css/commit/cf2e73743b2c3d43d4c51fceeabfb99fda1ac4b5) Thanks [@aramos-adobe](https://github.com/aramos-adobe)! - Migrating --mod to index.css from infield button, logic button and table components + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.12 + - @spectrum-css/checkbox@10.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.11 + - @spectrum-css/checkbox@10.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.10 + - @spectrum-css/checkbox@10.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.9 + - @spectrum-css/checkbox@10.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.8 + - @spectrum-css/checkbox@10.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.7 + - @spectrum-css/checkbox@10.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/thumbnail@7.0.0-s2-foundations.6 + - @spectrum-css/checkbox@10.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.5 + - @spectrum-css/checkbox@10.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.4 + - @spectrum-css/checkbox@10.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.3 + - @spectrum-css/checkbox@10.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.2 + - @spectrum-css/checkbox@10.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.1 + - @spectrum-css/checkbox@10.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/checkbox@10.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + - @spectrum-css/thumbnail@7.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/table/index.css b/components/table/index.css index 0ceaf0bd923..93603083651 100644 --- a/components/table/index.css +++ b/components/table/index.css @@ -11,333 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Table { - /* Size and Spacing */ - --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-medium); - --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-medium); - - --spectrum-table-min-header-height: var(--spectrum-component-height-100); - --spectrum-table-min-row-height: var(--spectrum-table-row-height-medium-regular); - --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-regular); - --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-regular); - - --spectrum-table-cell-inline-space: var(--spectrum-table-edge-to-content); - - --spectrum-table-border-radius: var(--spectrum-corner-radius-100); - --spectrum-table-border-width: var(--spectrum-table-border-divider-width); - --spectrum-table-outer-border-inline-width: var(--spectrum-table-border-divider-width); - - --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-100); - - --spectrum-table-default-vertical-align: top; - --spectrum-table-header-vertical-align: middle; - - /* Typography */ - --spectrum-table-header-font-weight: var(--spectrum-bold-font-weight); - - --spectrum-table-row-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-table-row-font-weight: var(--spectrum-regular-font-weight); - --spectrum-table-row-font-style: var(--spectrum-default-font-style); - --spectrum-table-row-font-size: var(--spectrum-font-size-100); - --spectrum-table-row-line-height: var(--spectrum-line-height-100); - - /* General Colors */ - --spectrum-table-border-color: var(--spectrum-gray-300); - --spectrum-table-divider-color: var(--spectrum-gray-300); - - --spectrum-table-header-background-color: var(--spectrum-transparent-white-100); - --spectrum-table-header-text-color: var(--spectrum-body-color); - - --spectrum-table-row-background-color: var(--spectrum-gray-50); - --spectrum-table-row-text-color: var(--spectrum-neutral-content-color-default); - - /* ----- * - @todo Refactor or remove these properties once the RGB stripped value is available. */ - --spectrum-table-selected-row-background-color: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity)); - --spectrum-table-selected-row-background-color-non-emphasized: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized)); - --spectrum-table-row-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-hover-opacity)); - - --spectrum-table-row-active-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-down-opacity)); - --spectrum-table-selected-row-background-color-focus: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity-hover)); - --spectrum-table-selected-row-background-color-non-emphasized-focus: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized-hover)); - - /* ----- */ - - --spectrum-table-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-table-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-table-icon-color-active: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-focus); - --spectrum-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-focus-hover); - --spectrum-table-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - - /* Row Selection */ - --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-medium); - --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-regular); - - --spectrum-table-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-table-focus-indicator-color: var(--spectrum-focus-indicator-color); - - --spectrum-table-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color-rgb), var(--spectrum-drop-zone-background-color-opacity)); - --spectrum-table-drop-zone-outline-color: var(--spectrum-accent-visual-color); - - --spectrum-table-transition-duration: var(--spectrum-animation-duration-100); - - /* Summary Row and Section Header Row */ - --spectrum-table-summary-row-font-weight: var(--spectrum-bold-font-weight); - --spectrum-table-summary-row-background-color: var(--spectrum-gray-200); - - --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-medium); - --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-100); - --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-100); - - --spectrum-table-section-header-font-weight: var(--spectrum-bold-font-weight); - --spectrum-table-section-header-background-color: var(--spectrum-gray-200); - - /* Collapsible and Thumbnails */ - --spectrum-table-collapsible-tier-indent: var(--spectrum-spacing-300); - --spectrum-table-collapsible-disclosure-inline-spacing: 0px; - --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-100); - --spectrum-table-collapsible-icon-animation-duration: var(--spectrum-animation-duration-100); - - --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); - --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-regular); - --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-300); - - /* Local custom properties used to assign row color to child cells, to help get around Firefox bug 921341 - and for modifying emphasized/non-emphasized background colors from the root element. */ - --spectrum-table-cell-background-color: var(--highcontrast-table-row-background-color, var(--mod-table-row-background-color, var(--spectrum-table-row-background-color))); - --spectrum-table-selected-cell-background-color: var(--highcontrast-table-selected-row-background-color, var(--mod-table-selected-row-background-color-non-emphasized, var(--spectrum-table-selected-row-background-color-non-emphasized))); - --spectrum-table-selected-cell-background-color-focus: var(--highcontrast-table-selected-row-background-color-focus, var(--mod-table-selected-row-background-color-non-emphasized-focus, var(--spectrum-table-selected-row-background-color-non-emphasized-focus))); - - /* Passthrough for nested component(s) */ - --mod-thumbnail-size: var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size)); - - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } -} - -/********* T-SHIRT SIZES (Regular Density) *********/ -.spectrum-Table--sizeS { - /* Size and Spacing */ - --spectrum-table-min-header-height: var(--spectrum-component-height-100); - --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-small); - --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-small); - - --spectrum-table-min-row-height: var(--spectrum-table-row-height-small-regular); - --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-small-regular); - --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-regular); - - --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-100); - - /* Typography */ - --spectrum-table-row-font-size: var(--spectrum-font-size-75); - - /* Row Selection */ - --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-small); - --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-regular); - - /* Summary Row and Section Header Row */ - --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-small); - --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-75); - --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-75); - - /* Collapsible and Thumbnails */ - --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-75); - - --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-regular); - --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); - --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-200); -} - -.spectrum-Table--sizeL { - /* Size and Spacing */ - --spectrum-table-min-header-height: var(--spectrum-component-height-200); - --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-large); - --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-large); - - --spectrum-table-min-row-height: var(--spectrum-table-row-height-large-regular); - --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-large-regular); - --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-regular); - - --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-200); - - /* Typography */ - --spectrum-table-row-font-size: var(--spectrum-font-size-200); - - /* Row Selection */ - --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-large); - --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-regular); - - /* Summary Row and Section Header Row */ - --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-large); - --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-200); - --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-200); - - /* Collapsible and Thumbnails */ - --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-200); - - --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-regular); - --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-200); - --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-500); -} - -.spectrum-Table--sizeXL { - /* Size and Spacing */ - --spectrum-table-min-header-height: var(--spectrum-component-height-300); - --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-extra-large); - --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-extra-large); - - --spectrum-table-min-row-height: var(--spectrum-table-row-height-extra-large-regular); - --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-regular); - --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-regular); - - --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-300); - - /* Typography */ - --spectrum-table-row-font-size: var(--spectrum-font-size-300); - - /* Row Selection */ - --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-extra-large); - --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-regular); - - /* Summary Row and Section Header Row */ - --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-extra-large); - --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-300); - --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-300); - - /* Collapsible and Thumbnails */ - --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-300); - - --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-regular); - --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-300); - --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-700); -} - -/********* VARIANTS *********/ -.spectrum-Table--compact { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-medium-compact)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-medium-compact)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-medium-compact)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-medium-compact)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-medium-compact)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-200)); - - &.spectrum-Table--sizeS { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-small-compact)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-small-compact)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-small-compact)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-small-compact)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-small-compact)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-50)); - } - - &.spectrum-Table--sizeL { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-large-compact)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-large-compact)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-large-compact)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-large-compact)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-large-compact)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-300)); - } - - &.spectrum-Table--sizeXL { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-extra-large-compact)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-extra-large-compact)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-extra-large-compact)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-extra-large-compact)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-extra-large-compact)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-500)); - } -} - -.spectrum-Table--spacious { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-medium-spacious)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-medium-spacious)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-medium-spacious)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-medium-spacious)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-medium-spacious)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-500)); - - &.spectrum-Table--sizeS { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-small-spacious)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-small-spacious)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-small-spacious)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-small-spacious)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-small-spacious)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-300)); - } - - &.spectrum-Table--sizeL { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-large-spacious)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-large-spacious)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-large-spacious)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-large-spacious)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-large-spacious)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-700)); - } - - &.spectrum-Table--sizeXL { - /* Size and Spacing */ - --mod-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-extra-large-spacious)); - --mod-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-extra-large-spacious)); - --mod-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-extra-large-spacious)); - - /* Row Selection */ - --mod-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-extra-large-spacious)); - - /* Collapsible and Thumbnails */ - --mod-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious)); - --mod-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-800)); - } -} - -.spectrum-Table--emphasized { - --spectrum-table-selected-cell-background-color: var(--highcontrast-table-selected-row-background-color, var(--mod-table-selected-row-background-color, var(--spectrum-table-selected-row-background-color))); - --spectrum-table-selected-cell-background-color-focus: var(--highcontrast-table-selected-row-background-color-focus, var(--mod-table-selected-row-background-color-focus, var(--spectrum-table-selected-row-background-color-focus))); -} - -.spectrum-Table--quiet { - --mod-table-border-radius: var(--mod-table-border-radius--quiet, 0px); - --mod-table-outer-border-inline-width: var(--mod-table-outer-border-inline-width--quiet, 0px); - --mod-table-header-background-color: var(--mod-table-header-background-color--quiet, var(--spectrum-transparent-white-100)); - --mod-table-row-background-color: var(--mod-table-row-background-color--quiet, var(--spectrum-transparent-white-100)); -} +@import "./themes/spectrum-two.css"; /********* HIGH CONTRAST *********/ @media (forced-colors: active) { @@ -399,6 +73,19 @@ } } +.spectrum-Table { + /* @passthrough for nested component(s) */ + --mod-thumbnail-size: var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size)); + + --spectrum-table-cell-background-color: var(--highcontrast-table-row-background-color, var(--mod-table-row-background-color, var(--spectrum-table-row-background-color))); + --spectrum-table-selected-cell-background-color: var(--highcontrast-table-selected-row-background-color, var(--mod-table-selected-row-background-color-non-emphasized, var(--spectrum-table-selected-row-background-color-non-emphasized))); + --spectrum-table-selected-cell-background-color-focus: var(--highcontrast-table-selected-row-background-color-focus, var(--mod-table-selected-row-background-color-non-emphasized-focus, var(--spectrum-table-selected-row-background-color-non-emphasized-focus))); + + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); + } +} + /********* REGULAR / DEFAULT *********/ .spectrum-Table:not(.spectrum-Table-scroller), .spectrum-Table-main { @@ -508,12 +195,12 @@ border-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius)); &.is-drop-target { + /* Make sure negative offset outline is not covered by borders. */ + --spectrum-table-border-color: transparent; + outline-width: var(--mod-table-focus-indicator-thickness, var(--spectrum-table-focus-indicator-thickness)); outline-style: solid; outline-color: var(--highcontrast-table-focus-indicator-color, var(--mod-table-drop-zone-outline-color, var(--spectrum-table-drop-zone-outline-color))); - - /* Make sure negative offset outline is not covered by borders. */ - --mod-table-border-color: transparent; } } @@ -640,14 +327,14 @@ &.is-selected { --highcontrast-table-row-text-color: var(--highcontrast-table-selected-row-text-color); --highcontrast-table-icon-color: var(--highcontrast-table-selected-row-text-color); - --spectrum-table-cell-background-color: var(--spectrum-table-selected-cell-background-color); + --spectrum-table-cell-background-color: var(--highcontrast-table-selected-row-background-color, var(--spectrum-table-selected-cell-background-color)); &:hover, &:focus-visible, &.is-focused { --highcontrast-table-row-text-color: var(--highcontrast-table-selected-row-text-color-focus); --highcontrast-table-icon-color: var(--highcontrast-table-selected-row-text-color-focus); - --spectrum-table-cell-background-color: var(--spectrum-table-selected-cell-background-color-focus); + --spectrum-table-cell-background-color: var(--highcontrast-table-selected-row-background-color-focus, var(--spectrum-table-selected-cell-background-color-focus)); } } @@ -659,14 +346,14 @@ } &.is-drop-target { + /* Make sure negative offset outline is not covered by borders. */ + --spectrum-table-border-color: var(--highcontrast-table-focus-indicator-color, transparent); + outline-width: var(--mod-table-focus-indicator-thickness, var(--spectrum-table-focus-indicator-thickness)); outline-style: solid; outline-color: var(--highcontrast-table-focus-indicator-color, var(--mod-table-drop-zone-outline-color, var(--spectrum-table-drop-zone-outline-color))); outline-offset: calc(-1 * var(--mod-table-focus-indicator-thickness, var(--spectrum-table-focus-indicator-thickness))); - /* Make sure negative offset outline is not covered by borders. */ - --mod-table-border-color: var(--highcontrast-table-focus-indicator-color, transparent); - .spectrum-Table-cell { border-block-start-color: var(--highcontrast-table-focus-indicator-color, var(--mod-table-drop-zone-outline-color, var(--spectrum-table-drop-zone-outline-color))); } @@ -721,7 +408,7 @@ inline-size: var(--spectrum-checkbox-control-size-small); /* The calc subtraction is because the --spectrum-table-checkbox-to-text spacing value - includes the inline start padding in the adjacent cell. */ + includes the inline start padding in the adjacent cell. */ padding-inline-end: calc(var(--mod-table-checkbox-to-text, var(--spectrum-table-checkbox-to-text)) - var(--mod-table-edge-to-content, var(--spectrum-table-edge-to-content))); /* Block spacing must be moved to calculated margin on the checkbox element. */ @@ -729,6 +416,7 @@ .spectrum-Table-checkbox { --mod-checkbox-spacing: 0px; + min-block-size: initial; } @@ -771,7 +459,7 @@ /********* SCROLLABLE *********/ /* Wrapper that allows a scrollable body and sticky column header. */ .spectrum-Table-scroller { - --spectrum-table-header-background-color: var(--mod-table-header-background-color-scrollable, var(--spectrum-background-layer-1-color, var(--spectrum-gray-100))); + --spectrum-table-header-background-color: var(--mod-table-header-background-color-scrollable, var(--spectrum-background-layer-1-color, var(--spectrum-gray-75))); box-sizing: border-box; display: inline-block; @@ -782,15 +470,15 @@ border-block: var(--mod-table-border-width, var(--spectrum-table-border-width)) solid var(--highcontrast-table-border-color, var(--mod-table-border-color, var(--spectrum-table-border-color))); border-inline: var(--mod-table-outer-border-inline-width, var(--spectrum-table-outer-border-inline-width)) solid var(--highcontrast-table-border-color, var(--mod-table-border-color, var(--spectrum-table-border-color))); - &.spectrum-Table--quiet { - --mod-table-header-background-color--quiet: var(--mod-table-header-background-color-scrollable, var(--spectrum-background-layer-1-color, var(--spectrum-gray-100))); - border-block-start: none; - } - /* Make sure shift-tab reverse keyboard navigation keeps the whole cell in focus. --mod-table-current-header-height should be dynamically updated with JS to match the table header height. */ scroll-padding-top: var(--mod-table-current-header-height, calc((var(--mod-table-header-line-height, var(--spectrum-table-row-line-height)) * var(--mod-table-header-font-size, var(--spectrum-table-row-font-size))) + var(--mod-table-header-top-to-text, var(--spectrum-table-header-top-to-text)) + var(--mod-table-header-bottom-to-text, var(--spectrum-table-header-bottom-to-text)) + var(--mod-table-border-width, var(--spectrum-table-border-width)))); + &.spectrum-Table--quiet { + --spectrum-table-header-background-color--quiet: var(--mod-table-header-background-color-scrollable, var(--spectrum-background-layer-1-color, var(--spectrum-gray-75))); + border-block-start: none; + } + .spectrum-Table-head { position: sticky; inset-block-start: 0; @@ -987,3 +675,128 @@ padding-block: var(--table-thumbnail-inner-content-block-spacing); } } + +/********* VARIANTS *********/ +.spectrum-Table--compact { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-medium-compact)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-medium-compact)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-medium-compact)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-medium-compact)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-medium-compact)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-200)); + + &.spectrum-Table--sizeS { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-small-compact)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-small-compact)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-small-compact)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-small-compact)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-small-compact)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-50)); + } + + &.spectrum-Table--sizeL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-large-compact)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-large-compact)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-large-compact)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-large-compact)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-large-compact)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-300)); + } + + &.spectrum-Table--sizeXL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--compact, var(--spectrum-table-row-height-extra-large-compact)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--compact, var(--spectrum-table-row-top-to-text-extra-large-compact)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--compact, var(--spectrum-table-row-bottom-to-text-extra-large-compact)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--compact, var(--spectrum-table-row-checkbox-to-top-extra-large-compact)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-compact, var(--spectrum-table-thumbnail-to-top-minimum-extra-large-compact)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-compact, var(--spectrum-thumbnail-size-500)); + } +} + +.spectrum-Table--spacious { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-medium-spacious)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-medium-spacious)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-medium-spacious)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-medium-spacious)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-medium-spacious)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-500)); + + &.spectrum-Table--sizeS { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-small-spacious)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-small-spacious)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-small-spacious)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-small-spacious)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-small-spacious)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-300)); + } + + &.spectrum-Table--sizeL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-large-spacious)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-large-spacious)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-large-spacious)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-large-spacious)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-large-spacious)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-700)); + } + + &.spectrum-Table--sizeXL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--mod-table-min-row-height--spacious, var(--spectrum-table-row-height-extra-large-spacious)); + --spectrum-table-row-top-to-text: var(--mod-table-row-top-to-text--spacious, var(--spectrum-table-row-top-to-text-extra-large-spacious)); + --spectrum-table-row-bottom-to-text: var(--mod-table-row-bottom-to-text--spacious, var(--spectrum-table-row-bottom-to-text-extra-large-spacious)); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--mod-table-row-checkbox-block-spacing--spacious, var(--spectrum-table-row-checkbox-to-top-extra-large-spacious)); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--mod-table-thumbnail-block-spacing-spacious, var(--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious)); + --spectrum-table-thumbnail-size: var(--mod-table-thumbnail-size-spacious, var(--spectrum-thumbnail-size-800)); + } +} + +.spectrum-Table--emphasized { + --spectrum-table-selected-cell-background-color: var(--highcontrast-table-selected-row-background-color, var(--mod-table-selected-row-background-color, var(--spectrum-table-selected-row-background-color))); + --spectrum-table-selected-cell-background-color-focus: var(--highcontrast-table-selected-row-background-color-focus, var(--mod-table-selected-row-background-color-focus, var(--spectrum-table-selected-row-background-color-focus))); +} + +.spectrum-Table--quiet { + --spectrum-table-border-radius: var(--mod-table-border-radius--quiet, 0px); + --spectrum-table-outer-border-inline-width: var(--mod-table-outer-border-inline-width--quiet, 0px); + --spectrum-table-header-background-color: var(--mod-table-header-background-color--quiet, var(--spectrum-transparent-white-100)); + --spectrum-table-row-background-color: var(--mod-table-row-background-color--quiet, var(--spectrum-transparent-white-100)); +} diff --git a/components/table/metadata/metadata.json b/components/table/metadata/metadata.json index cac1a19e229..1a7b84fc30d 100644 --- a/components/table/metadata/metadata.json +++ b/components/table/metadata/metadata.json @@ -249,6 +249,7 @@ "--spectrum-table-focus-indicator-color", "--spectrum-table-focus-indicator-thickness", "--spectrum-table-header-background-color", + "--spectrum-table-header-background-color--quiet", "--spectrum-table-header-bottom-to-text", "--spectrum-table-header-checkbox-block-spacing", "--spectrum-table-header-font-weight", @@ -403,9 +404,9 @@ "--spectrum-font-size-75", "--spectrum-gray-100", "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-50", + "--spectrum-gray-25", "--spectrum-gray-700-rgb", + "--spectrum-gray-75", "--spectrum-gray-900-rgb", "--spectrum-line-height-100", "--spectrum-logical-rotation", @@ -428,7 +429,8 @@ "--spectrum-thumbnail-size-500", "--spectrum-thumbnail-size-700", "--spectrum-thumbnail-size-800", - "--spectrum-transparent-white-100" + "--spectrum-transparent-white-100", + "--spectrum-transparent-white-25" ], "system-theme": [], "passthroughs": ["--mod-checkbox-spacing", "--mod-thumbnail-size"], diff --git a/components/table/metadata/table.yml b/components/table/metadata/table.yml deleted file mode 100644 index df332cdf499..00000000000 --- a/components/table/metadata/table.yml +++ /dev/null @@ -1,1347 +0,0 @@ -name: Table -description: The Table component is for displaying tabular info, with the option for sorting or row selection. -SpectrumSiteSlug: https://spectrum.adobe.com/page/table/ -sections: - - name: Custom properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration guide - description: | - ### Sorted icon moved to left side of text - The sorted icon was previously on the right side of the text, but has been moved to the left in the markup. If used on the right side of the text, the spacing between icon and text will be incorrect. - - ### Remove whitespace between column title text and sort icon(s) - In the column header, when the sort icon or header menu icon is displayed, remove any white space in the HTML markup between the icon and the column title. This ensures that no extra space is created. Also, the column title text is now wrapped in a `` element when the column is sortable. -examples: - - id: table-medium - name: Default (medium) - description: "Tables come in four different sizes: small, medium, large, and extra-large. The medium size is the default and recommended option." - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-small - name: T-Shirt sizes - description: "Tables come in four different sizes: small, medium, large, and extra-large. The medium size is the default and recommended option." - markup: | -
    -

    Small

    - - - - - - - - - - - - - - - - - - - - - -
    - - Column title - - - Column title - Column title
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item AlphaRow Item AlphaRow Item Alpha
    -
    -
    -

    Medium

    - - - - - - - - - - - - - - - - - - - - - -
    - - Column title - - - Column title - Column title
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item AlphaRow Item AlphaRow Item Alpha
    -
    -
    -

    Large

    - - - - - - - - - - - - - - - - - - - - - -
    - - Column title - - - Column title - Column title
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item AlphaRow Item AlphaRow Item Alpha
    -
    - -
    -

    Extra Large

    - - - - - - - - - - - - - - - - - - - - - -
    - - Column title - - - Column title - Column title
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item AlphaRow Item AlphaRow Item Alpha
    -
    - - id: table-compact - name: Compact - description: The compact variant decreases the spacing used within the table. - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-spacious - name: Spacious - description: The spacious variant increases the spacing used within the table. - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-multi-select - name: Multi-select - description: The standard multi-select table includes a column of checkboxes used for selecting rows. - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - Column title - - Column title - Column title
    - - - Row Item Alpha - Row Item AlphaRow Item Alpha
    - - - Row Item Bravo - Row Item BravoRow Item Bravo
    - - - Row Item Charlie - Row Item CharlieRow Item Charlie
    - - - Row Item Delta - Row Item DeltaRow Item Delta
    - - - Row Item Echo - Row Item EchoRow Item Echo
    - - id: table-multi-select-non-emphasized - name: Non-emphasized multi-select - description: Excluding the `spectrum-Table--emphasized` class will change the style of selected rows. - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - Column title - - Column title - Column title
    - - - Row Item Alpha - Row Item AlphaRow Item Alpha
    - - - Row Item Bravo - Row Item BravoRow Item Bravo
    - - - Row Item Charlie - Row Item CharlieRow Item Charlie
    - - - Row Item Delta - Row Item DeltaRow Item Delta
    - - - Row Item Echo - Row Item EchoRow Item Echo
    - - id: table-quiet - name: Quiet - description: The quiet table has a transparent background and no borders on the left and right. - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-quiet-multi-select - name: Multi-select (quiet) - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - Column title - - Column title - Column title
    - - - Row Item Alpha - Row Item AlphaRow Item Alpha
    - - - Row Item Bravo - Row Item BravoRow Item Bravo
    - - - Row Item Charlie - Row Item CharlieRow Item Charlie
    - - - Row Item Delta - Row Item DeltaRow Item Delta
    - - - Row Item Echo - Row Item EchoRow Item Echo
    - - id: table-column-dividers - name: Column dividers - description: The standard table can display column dividers by including the `spectrum-Table-cell--divider` class with `spectrum-Table-cell`. Use sparingly to group related content (see guidelines for more info). - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item EchoRow Item EchoRow Item Echo
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item AlphaRow Item AlphaRow Item Alpha
    - - id: table-summary-row - name: Summary row - description: "Tables can have a summary row to show totals, at either the top or the bottom of the table." - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item Alpha182875
    Row Item Bravo233679
    Row Item Delta71308
    Summary487862
    - - id: table-section-header-row - name: Section header row - description: "Tables can style one or more rows as section headers." - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Section header
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Another section header for the table
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-section-header-row-quiet - name: Section header row (quiet) - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Section header
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Another section header for the table
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-scrollable - name: Scrollable with fixed column headers - description: | - A table can be wrapped in a fixed height div with the `spectrum-Table-scroller` class. This allows scrolling of the table body and makes the column headers sticky (i.e. fixed to the top on scroll). - - When using the scrollable wrapper, the column headers must have a solid background color set. This can be customized to match the parent background with the custom property `--mod-table-header-background-color-scrollable`. - - To make sure that reverse keyboard link navigation (shift-tab) keeps the whole cell in focus, `--mod-table-current-header-height` should be dynamically updated with JS to match the height of `.spectrum-Table-head`. - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    Row Item FoxtrotRow Item FoxtrotRow Item Foxtrot
    -
    - - id: table-divs - name: Divs - description: A table can alternatively be composed entirely of `
    ` tags, instead of a ``. This example also uses the scrollable wrapper. - markup: | -
    -
    -
    -
    -
    - Column title -
    -
    - Column title -
    -
    Column title
    -
    -
    -
    -
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    -
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    -
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    -
    -
    Row Item Delta
    -
    Row Item Delta
    -
    Row Item Delta
    -
    -
    -
    Row Item Echo
    -
    Row Item Echo
    -
    Row Item Echo
    -
    -
    -
    Row Item Foxtrot
    -
    Row Item Foxtrot
    -
    Row Item Foxtrot
    -
    -
    -
    -
    - - id: table-collapsible - name: Collapsible rows - description: "In a table with collapsible rows, all child items must have columns that match the parent items. See the Guidelines for more info on how and when to use collapsible rows." - markup: | -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    -
    - -
    Row Item Alpha -
    -
    Row Item AlphaRow Item Alpha
    -
    - -
    Row Item Bravo -
    -
    Row Item BravoRow Item Bravo
    -
    - -
    Row Item Delta
    -
    -
    Row Item DeltaRow Item Delta
    -
    -
    Row Item Echo
    -
    -
    Row Item EchoRow Item Echo
    -
    -
    Row Item Foxtrot
    -
    -
    Row Item FoxtrotRow Item Foxtrot
    - - id: table-thumbnails - name: Thumbnails - description: "Thumbnails can be used in the table content, with some additional markup and classes for alignment. This variant can also be combined with collapsible rows." - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Animals - - - Number -
    -
    -
    -
    - Placeholder image -
    -
    -
    Birds
    -
    -
    2
    -
    -
    -
    - Placeholder image -
    -
    -
    Ducks
    -
    -
    23
    -
    -
    -
    - Placeholder image -
    -
    -
    Goats
    -
    -
    7
    -
    -
    -
    - Placeholder image -
    -
    -
    Rabbits
    -
    -
    18
    - - id: table-body-dropzone-table - name: Body dropzone - markup: | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Column title - - Column title - Column title
    Row Item AlphaRow Item AlphaRow Item Alpha
    Row Item BravoRow Item BravoRow Item Bravo
    Row Item CharlieRow Item CharlieRow Item Charlie
    Row Item DeltaRow Item DeltaRow Item Delta
    Row Item EchoRow Item EchoRow Item Echo
    - - id: table-row-dropzone - name: Row dropzone - description: Rows that accept dropped content. - markup: | -
    -
    -
    -
    -
    - Column title -
    -
    - Column title -
    -
    Column title
    -
    -
    -
    -
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    -
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    -
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    -
    -
    Row Item Delta
    -
    Row Item Delta
    -
    Row Item Delta
    -
    -
    -
    Row Item Echo
    -
    Row Item Echo
    -
    Row Item Echo
    -
    -
    -
    -
    - - id: table-row-dropzone-quiet - name: Row dropzone (quiet) - markup: | -
    -
    -
    -
    -
    - Column title -
    -
    - Column title -
    -
    Column title
    -
    -
    -
    -
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    Row Item Alpha
    -
    -
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    Row Item Bravo
    -
    -
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    Row Item Charlie
    -
    -
    -
    Row Item Delta
    -
    Row Item Delta
    -
    Row Item Delta
    -
    -
    -
    Row Item Echo
    -
    Row Item Echo
    -
    Row Item Echo
    -
    -
    -
    -
    diff --git a/components/table/package.json b/components/table/package.json index 4514609fafb..334d0ff8251 100644 --- a/components/table/package.json +++ b/components/table/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/table", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.15", "description": "The Spectrum CSS table component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/table/stories/template.js b/components/table/stories/template.js index 2de59d0c12c..2a48da8b00f 100644 --- a/components/table/stories/template.js +++ b/components/table/stories/template.js @@ -9,6 +9,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/table/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..b51b36d8682 --- /dev/null +++ b/components/table/themes/spectrum-two.css @@ -0,0 +1,335 @@ +/*! + * 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 + * + * 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 { + /* Size and Spacing */ + --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-medium); + --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-medium); + + --spectrum-table-min-header-height: var(--spectrum-component-height-100); + --spectrum-table-min-row-height: var(--spectrum-table-row-height-medium-regular); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-regular); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-regular); + + --spectrum-table-cell-inline-space: var(--spectrum-table-edge-to-content); + + --spectrum-table-border-radius: var(--spectrum-corner-radius-100); + --spectrum-table-border-width: var(--spectrum-table-border-divider-width); + --spectrum-table-outer-border-inline-width: var(--spectrum-table-border-divider-width); + + --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-100); + + --spectrum-table-default-vertical-align: top; + --spectrum-table-header-vertical-align: middle; + + /* Typography */ + --spectrum-table-header-font-weight: var(--spectrum-bold-font-weight); + + --spectrum-table-row-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-table-row-font-weight: var(--spectrum-regular-font-weight); + --spectrum-table-row-font-style: var(--spectrum-default-font-style); + --spectrum-table-row-font-size: var(--spectrum-font-size-100); + --spectrum-table-row-line-height: var(--spectrum-line-height-100); + + /* General Colors */ + --spectrum-table-border-color: var(--spectrum-gray-200); + --spectrum-table-divider-color: var(--spectrum-gray-200); + + --spectrum-table-header-background-color: var(--spectrum-transparent-white-25); + --spectrum-table-header-text-color: var(--spectrum-body-color); + + --spectrum-table-row-background-color: var(--spectrum-gray-25); + --spectrum-table-row-text-color: var(--spectrum-neutral-content-color-default); + + /* ----- * + @todo Refactor or remove these properties once the RGB stripped value is available. */ + --spectrum-table-selected-row-background-color: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity)); + --spectrum-table-selected-row-background-color-non-emphasized: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized)); + --spectrum-table-row-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-hover-opacity)); + + --spectrum-table-row-active-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-down-opacity)); + --spectrum-table-selected-row-background-color-focus: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity-hover)); + --spectrum-table-selected-row-background-color-non-emphasized-focus: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized-hover)); + + /* ----- */ + + --spectrum-table-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-table-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-table-icon-color-active: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-focus); + --spectrum-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-focus-hover); + --spectrum-table-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + + /* Row Selection */ + --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-medium); + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-regular); + + --spectrum-table-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-table-focus-indicator-color: var(--spectrum-focus-indicator-color); + + --spectrum-table-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color-rgb), var(--spectrum-drop-zone-background-color-opacity)); + --spectrum-table-drop-zone-outline-color: var(--spectrum-accent-visual-color); + + --spectrum-table-transition-duration: var(--spectrum-animation-duration-100); + + /* Summary Row and Section Header Row */ + --spectrum-table-summary-row-font-weight: var(--spectrum-bold-font-weight); + --spectrum-table-summary-row-background-color: var(--spectrum-gray-100); + + --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-medium); + --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-100); + --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-100); + + --spectrum-table-section-header-font-weight: var(--spectrum-bold-font-weight); + --spectrum-table-section-header-background-color: var(--spectrum-gray-100); + + /* Collapsible and Thumbnails */ + --spectrum-table-collapsible-tier-indent: var(--spectrum-spacing-300); + --spectrum-table-collapsible-disclosure-inline-spacing: 0px; + --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-100); + --spectrum-table-collapsible-icon-animation-duration: var(--spectrum-animation-duration-100); + + --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-regular); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-300); + + /* Local custom properties used to assign row color to child cells, to help get around Firefox bug 921341 + and for modifying emphasized/non-emphasized background colors from the root element. */ + --spectrum-table-cell-background-color: var(--spectrum-table-row-background-color); + --spectrum-table-selected-cell-background-color: var(--spectrum-table-selected-row-background-color-non-emphasized); + --spectrum-table-selected-cell-background-color-focus: var(--spectrum-table-selected-row-background-color-non-emphasized-focus); + } + + /********* T-SHIRT SIZES (Regular Density) *********/ + .spectrum-Table--sizeS { + /* Size and Spacing */ + --spectrum-table-min-header-height: var(--spectrum-component-height-100); + --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-small); + --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-small); + + --spectrum-table-min-row-height: var(--spectrum-table-row-height-small-regular); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-small-regular); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-regular); + + --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-100); + + /* Typography */ + --spectrum-table-row-font-size: var(--spectrum-font-size-75); + + /* Row Selection */ + --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-small); + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-regular); + + /* Summary Row and Section Header Row */ + --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-small); + --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-75); + --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-75); + + /* Collapsible and Thumbnails */ + --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-75); + + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-regular); + --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-200); + } + + .spectrum-Table--sizeL { + /* Size and Spacing */ + --spectrum-table-min-header-height: var(--spectrum-component-height-200); + --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-large); + --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-large); + + --spectrum-table-min-row-height: var(--spectrum-table-row-height-large-regular); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-large-regular); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-regular); + + --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-200); + + /* Typography */ + --spectrum-table-row-font-size: var(--spectrum-font-size-200); + + /* Row Selection */ + --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-large); + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-regular); + + /* Summary Row and Section Header Row */ + --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-large); + --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-200); + --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-200); + + /* Collapsible and Thumbnails */ + --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-200); + + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-regular); + --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-200); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-500); + } + + .spectrum-Table--sizeXL { + /* Size and Spacing */ + --spectrum-table-min-header-height: var(--spectrum-component-height-300); + --spectrum-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-extra-large); + --spectrum-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-extra-large); + + --spectrum-table-min-row-height: var(--spectrum-table-row-height-extra-large-regular); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-regular); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-regular); + + --spectrum-table-icon-to-text: var(--spectrum-text-to-visual-300); + + /* Typography */ + --spectrum-table-row-font-size: var(--spectrum-font-size-300); + + /* Row Selection */ + --spectrum-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-extra-large); + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-regular); + + /* Summary Row and Section Header Row */ + --spectrum-table-section-header-min-height: var(--spectrum-table-section-header-row-height-extra-large); + --spectrum-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-300); + --spectrum-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-300); + + /* Collapsible and Thumbnails */ + --spectrum-table-disclosure-icon-size: var(--spectrum-component-height-300); + + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-regular); + --spectrum-table-thumbnail-to-text: var(--spectrum-text-to-visual-300); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-700); + } + + /********* VARIANTS *********/ + .spectrum-Table--compact { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-medium-compact); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-compact); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-compact); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-compact); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-compact); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-200); + + &.spectrum-Table--sizeS { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-small-compact); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-small-compact); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-compact); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-compact); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-compact); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-50); + } + + &.spectrum-Table--sizeL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-large-compact); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-large-compact); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-compact); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-compact); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-compact); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-300); + } + + &.spectrum-Table--sizeXL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-extra-large-compact); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-compact); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-compact); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-compact); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-compact); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-500); + } + } + + .spectrum-Table--spacious { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-medium-spacious); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-spacious); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-spacious); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-spacious); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-spacious); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-500); + + &.spectrum-Table--sizeS { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-small-spacious); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-small-spacious); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-spacious); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-spacious); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-spacious); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-300); + } + + &.spectrum-Table--sizeL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-large-spacious); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-large-spacious); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-spacious); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-spacious); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-spacious); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-700); + } + + &.spectrum-Table--sizeXL { + /* Size and Spacing */ + --spectrum-table-min-row-height: var(--spectrum-table-row-height-extra-large-spacious); + --spectrum-table-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-spacious); + --spectrum-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-spacious); + + /* Row Selection */ + --spectrum-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-spacious); + + /* Collapsible and Thumbnails */ + --spectrum-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious); + --spectrum-table-thumbnail-size: var(--spectrum-thumbnail-size-800); + } + } + + .spectrum-Table--emphasized { + --spectrum-table-selected-cell-background-color: var(--spectrum-table-selected-row-background-color); + --spectrum-table-selected-cell-background-color-focus: var(--spectrum-table-selected-row-background-color-focus); + } + + .spectrum-Table--quiet { + --spectrum-table-border-radius: 0px; + --spectrum-table-outer-border-inline-width: 0px; + --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 new file mode 100644 index 00000000000..0557fdaf25f --- /dev/null +++ b/components/table/themes/spectrum.css @@ -0,0 +1,34 @@ +/*! + * 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 + * + * 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-header-background-color: var(--spectrum-transparent-white-100); + --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--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 2164b91d882..b08baf5617a 100644 --- a/components/tabs/CHANGELOG.md +++ b/components/tabs/CHANGELOG.md @@ -1,5 +1,214 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/picker@9.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/menu@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Minor Changes + +- [#3036](https://github.com/adobe/spectrum-css/pull/3036) [`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - [CSS-890]: adjusts --mods to be applied inside of index.css + +### Patch Changes + +- Updated dependencies [[`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.18 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/picker@9.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/menu@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/picker@9.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/menu@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/picker@9.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/menu@8.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/picker@9.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/menu@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/picker@9.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/menu@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/picker@9.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/menu@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/picker@9.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + - @spectrum-css/menu@8.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/picker@9.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/menu@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/picker@9.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/menu@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/picker@9.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/menu@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/picker@9.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/menu@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/picker@9.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/menu@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/picker@9.0.0-s2-foundations.0 + - @spectrum-css/menu@8.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/tabs/index.css b/components/tabs/index.css index eed76f3efd8..d2dc14d48b1 100644 --- a/components/tabs/index.css +++ b/components/tabs/index.css @@ -11,147 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-Tabs { - /* 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); - --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-medium); - --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-medium); - --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-medium); - --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-medium); - - --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-75); - --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-100); - --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-medium); - - --spectrum-tabs-color: var(--spectrum-neutral-subdued-content-color-default); - --spectrum-tabs-color-selected: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-tabs-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --spectrum-tabs-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --spectrum-tabs-color-disabled: var(--spectrum-gray-500); - - --spectrum-tabs-font-family: var(--spectrum-sans-font-family-stack); - --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); - - /* Focus Indicator */ - --spectrum-tabs-focus-indicator-width: var(--spectrum-focus-indicator-thickness); - --spectrum-tabs-focus-indicator-border-radius: var(--spectrum-corner-radius-100); - --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-medium); - --spectrum-tabs-focus-indicator-color: var(--spectrum-focus-indicator-color); - --spectrum-tabs-selection-indicator-color: var(--spectrum-neutral-subdued-content-color-down); - - --spectrum-tabs-list-background-direction: top; - --spectrum-tabs-divider-background-color: var(--spectrum-gray-300); - --spectrum-tabs-divider-size: var(--spectrum-border-width-200); - --spectrum-tabs-divider-border-radius: 1px; - - --spectrum-tabs-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-tabs-animation-ease: var(--spectrum-animation-ease-in-out); - - &.spectrum-Tabs--sizeS { - --spectrum-tabs-item-height: var(--spectrum-tab-item-height-small); - --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-small); - --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-small); - --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-small); - --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-small); - --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-small); - - --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-50); - --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-75); - --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-small); - - --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-small); - --spectrum-tabs-font-size: var(--spectrum-font-size-75); - } - - &.spectrum-Tabs--sizeL { - --spectrum-tabs-item-height: var(--spectrum-tab-item-height-large); - --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-large); - --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-large); - --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-large); - --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-large); - --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-large); - - --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-200); - --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-large); - - --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-large); - --spectrum-tabs-font-size: var(--spectrum-font-size-200); - } - - &.spectrum-Tabs--sizeXL { - --spectrum-tabs-item-height: var(--spectrum-tab-item-height-extra-large); - --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-extra-large); - --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-extra-large); - --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-extra-large); - --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-extra-large); - --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-extra-large); - - --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-200); - --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-300); - --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-extra-large); - - --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-extra-large); - --spectrum-tabs-font-size: var(--spectrum-font-size-300); - } - - &.spectrum-Tabs--emphasized { - --mod-tabs-color-selected: var(--mod-tabs-color-selected-emphasized, var(--spectrum-accent-content-color-default)); - --mod-tabs-color-hover: var(--mod-tabs-color-hover-emphasized, var(--spectrum-accent-content-color-hover)); - --mod-tabs-color-key-focus: var(--mod-tabs-color-key-focus-emphasized, var(--spectrum-accent-content-color-key-focus)); - - --mod-tabs-selection-indicator-color: var(--mod-tabs-selection-indicator-color-emphasized, var(--spectrum-accent-content-color-default)); - } -} - -.spectrum-Tabs--vertical { - --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, right); -} - -.spectrum-Tabs--vertical-right { - --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical-right, left); -} - -.spectrum-Tabs--vertical:dir(rtl) { - --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, left); -} - -.spectrum-Tabs--vertical-right:dir(rtl) { - --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, right); -} - -.spectrum-Tabs.spectrum-Tabs--compact { - --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-medium)); - --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-medium)); - --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-medium)); - --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-medium)); - - &.spectrum-Tabs--sizeS { - --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-small)); - --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small)); - --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small)); - --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-small)); - } - - &.spectrum-Tabs--sizeL { - --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-large)); - --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large)); - --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large)); - --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-large)); - } - - &.spectrum-Tabs--sizeXL { - --mod-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-extra-large)); - --mod-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large)); - --mod-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large)); - --mod-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-extra-large)); - } -} +@import "./themes/spectrum-two.css"; .spectrum-Tabs { display: flex; @@ -167,6 +27,14 @@ vertical-align: top; background: linear-gradient(to var(--mod-tabs-list-background-direction, var(--spectrum-tabs-list-background-direction)), var(--highcontrast-tabs-divider-background-color, var(--mod-tabs-divider-background-color, var(--spectrum-tabs-divider-background-color))) 0 var(--mod-tabs-divider-size, var(--spectrum-tabs-divider-size)), transparent var(--mod-tabs-divider-size, var(--spectrum-tabs-divider-size))); + + &.spectrum-Tabs--emphasized { + --mod-tabs-color-selected: var(--mod-tabs-color-selected-emphasized, var(--spectrum-tabs-color-selected)); + --mod-tabs-color-hover: var(--mod-tabs-color-hover-emphasized, var(--spectrum-tabs-color-hover)); + --mod-tabs-color-key-focus: var(--mod-tabs-color-key-focus-emphasized, var(--spectrum-tabs-color-key-focus)); + + --mod-tabs-selection-indicator-color: var(--mod-tabs-selection-indicator-color-emphasized, var(--spectrum-tabs-selection-indicator-color)); + } } .spectrum-Tabs-item { @@ -316,6 +184,10 @@ } } +.spectrum-Tabs--vertical { + --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, right); +} + .spectrum-Tabs--vertical, .spectrum-Tabs--vertical-right { display: inline-flex; @@ -353,11 +225,49 @@ } .spectrum-Tabs--vertical-right { + --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical-right, left); + .spectrum-Tabs-selectionIndicator { inset-inline: auto 0; } } +.spectrum-Tabs--vertical:dir(rtl) { + --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, left); +} + +.spectrum-Tabs--vertical-right:dir(rtl) { + --mod-tabs-list-background-direction: var(--mod-tabs-list-background-direction-vertical, right); +} + +.spectrum-Tabs.spectrum-Tabs--compact { + --spectrum-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-medium)); + --spectrum-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-medium)); + --spectrum-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-medium)); + --spectrum-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-medium)); + + &.spectrum-Tabs--sizeS { + --spectrum-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-small)); + --spectrum-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small)); + --spectrum-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-small)); + --spectrum-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-small)); + } + + &.spectrum-Tabs--sizeL { + --spectrum-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-large)); + --spectrum-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large)); + --spectrum-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-large)); + --spectrum-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-large)); + } + + &.spectrum-Tabs--sizeXL { + --spectrum-tabs-item-height: var(--mod-tabs-item-height-compact, var(--spectrum-tab-item-compact-height-extra-large)); + --spectrum-tabs-top-to-text: var(--mod-tabs-top-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large)); + --spectrum-tabs-bottom-to-text: var(--mod-tabs-bottom-to-text-compact, var(--spectrum-tab-item-top-to-text-compact-extra-large)); + --spectrum-tabs-top-to-icon: var(--mod-tabs-top-to-icon-compact, var(--spectrum-tab-item-top-to-workflow-icon-compact-extra-large)); + } +} + @media (forced-colors: active) { .spectrum-Tabs { --highcontrast-tabs-divider-background-color: var(--spectrum-gray-500); diff --git a/components/tabs/metadata/metadata.json b/components/tabs/metadata/metadata.json index fd417bceeb0..35d1d830638 100644 --- a/components/tabs/metadata/metadata.json +++ b/components/tabs/metadata/metadata.json @@ -136,7 +136,6 @@ "--spectrum-accent-content-color-key-focus", "--spectrum-animation-duration-100", "--spectrum-animation-ease-in-out", - "--spectrum-bold-font-weight", "--spectrum-border-width-200", "--spectrum-corner-radius-100", "--spectrum-default-font-style", @@ -147,7 +146,7 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-300", + "--spectrum-gray-200", "--spectrum-gray-500", "--spectrum-line-height-100", "--spectrum-neutral-subdued-content-color-default", @@ -208,7 +207,7 @@ "--spectrum-workflow-icon-size-50", "--spectrum-workflow-icon-size-75" ], - "system-theme": ["--system-spectrum-tabs-font-weight"], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-tabs-color", diff --git a/components/tabs/metadata/tabs.yml b/components/tabs/metadata/tabs.yml deleted file mode 100644 index a76e85dbef3..00000000000 --- a/components/tabs/metadata/tabs.yml +++ /dev/null @@ -1,738 +0,0 @@ -name: Tabs -SpectrumSiteSlug: https://spectrum.adobe.com/page/tabs/ -sections: - - name: Migration Guide - description: | - ### T-shirt sizing - Tabs now support t-shirt sizing and require that you specify the size by adding a `.spectrum-Tabs--size*` class. - - ### Change workflow icon size to medium - If you use a workflow icon with tab items, please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - - ### Compact Tabs - Compact tabs should not be used without `.spectrum-Tabs--quiet`. -examples: - - id: tabs-sizing - name: Sizing - markup: | -

    S

    -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    -

    M (default)

    -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    -

    L

    -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    -

    XL

    -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs - name: Basic tabs - status: Verified - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-icon - name: Tabs with icons - status: Verified - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-disabled - name: Disabled - status: Verified - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-quiet - name: Quiet - status: Verified - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-quiet-emphasized - name: Quiet and emphasized - status: Verified - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-quiet-icon - name: Quiet tabs with icons - status: Verified - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-emphasized - name: Emphasized tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-emphasized-icon - name: Emphasized tabs with icons - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-compact - name: Compact (quiet) - description: "Compact tabs should never be used without the quiet variation." - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-compact-emphasized-quiet - name: Compact emphasized (quiet) - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-quiet-compact-icons-text - name: Compact tabs with icons and text (quiet) - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-quiet-compact-emphasized-icons-text - name: Compact, emphasized tabs with icons and text (quiet) - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-quiet-compact-only-icons - name: Compact tabs with icons only (quiet) - markup: | -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    - - id: tabs-quiet-compact-emphasized-icon - name: Compact, emphasized tabs with icons only (quiet) - markup: | -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    -
    - - id: tabs-vertical - name: Vertical tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-vertical-right - name: Vertical Right tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-vertical-emphasized - name: Vertical, emphasized tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-vertical-icon - name: Vertical tabs with icon and text - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-vertical-icon-emphasized - name: Vertical, emphasized tabs with icon and text - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-compact-vertical - name: Compact vertical tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-compact-vertical-emphasized - name: Compact, emphasized vertical tabs - markup: | -
    -
    - Tab 1 -
    -
    - Tab 2 -
    -
    - Tab 3 -
    -
    - Tab 4 -
    -
    -
    - - id: tabs-compact-vertical-icon - name: Compact vertical tabs with icon and text - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-compact-vertical-icon-emphasized - name: Compact, emphasized vertical tabs with icon and text - markup: | -
    -
    - - Tab 1 -
    -
    - - Tab 2 -
    -
    - - Tab 3 -
    -
    - - Tab 4 -
    -
    -
    - - id: tabs-with-overflow - name: Basic tabs with overflow - status: Verified - markup: | -

    Closed

    -
    - -
    -
    - -

    Open

    -
    - -
    -
    -
    -
      -
    • - Tab 1 - -
    • -
    • - Tab 2 -
    • -
    • - Tab 3 -
    • -
    • - Tab 4 -
    • -
    -
    - -
    - - id: tabs-compact-overflow - name: Compact tabs with overflow - status: Verified - markup: | -

    Closed

    -
    - -
    -
    - -

    Open

    -
    - -
    -
    -
    -
    -
      -
    • - Tab 1 - -
    • -
    • - Tab 2 -
    • -
    • - Tab 3 -
    • -
    • - Tab 4 -
    • -
    -
    - -
    - - id: tabs-with-anchors - name: Tabs with anchors - status: Verified - markup: | - diff --git a/components/tabs/package.json b/components/tabs/package.json index f83cb2aa251..8d8dc6bd35f 100644 --- a/components/tabs/package.json +++ b/components/tabs/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/tabs", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS tabs component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/tabs/stories/template.js b/components/tabs/stories/template.js index 985a91d6724..63f44a1c292 100644 --- a/components/tabs/stories/template.js +++ b/components/tabs/stories/template.js @@ -10,6 +10,9 @@ 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 index e958787153b..bd41e5a1b98 100644 --- a/components/tabs/themes/express.css +++ b/components/tabs/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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 new file mode 100644 index 00000000000..a2aef52d72d --- /dev/null +++ b/components/tabs/themes/spectrum-two.css @@ -0,0 +1,112 @@ +/*! + * 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 + * + * 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-default-font-weight); + + /* 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); + --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-medium); + --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-medium); + --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-medium); + --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-medium); + + --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-75); + --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-100); + --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-medium); + + --spectrum-tabs-color: var(--spectrum-neutral-subdued-content-color-default); + --spectrum-tabs-color-selected: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-tabs-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --spectrum-tabs-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --spectrum-tabs-color-disabled: var(--spectrum-gray-500); + + --spectrum-tabs-font-family: var(--spectrum-sans-font-family-stack); + --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); + + /* Focus Indicator */ + --spectrum-tabs-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --spectrum-tabs-focus-indicator-border-radius: var(--spectrum-corner-radius-100); + --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-medium); + --spectrum-tabs-focus-indicator-color: var(--spectrum-focus-indicator-color); + --spectrum-tabs-selection-indicator-color: var(--spectrum-neutral-subdued-content-color-down); + + --spectrum-tabs-list-background-direction: top; + --spectrum-tabs-divider-background-color: var(--spectrum-gray-200); + --spectrum-tabs-divider-size: var(--spectrum-border-width-200); + --spectrum-tabs-divider-border-radius: 1px; + + --spectrum-tabs-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-tabs-animation-ease: var(--spectrum-animation-ease-in-out); + + &.spectrum-Tabs--sizeS { + --spectrum-tabs-item-height: var(--spectrum-tab-item-height-small); + --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-small); + --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-small); + --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-small); + --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-small); + --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-small); + + --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-50); + --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-75); + --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-small); + + --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-small); + --spectrum-tabs-font-size: var(--spectrum-font-size-75); + } + + &.spectrum-Tabs--sizeL { + --spectrum-tabs-item-height: var(--spectrum-tab-item-height-large); + --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-large); + --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-large); + --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-large); + --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-large); + --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-large); + + --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-200); + --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-large); + + --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-large); + --spectrum-tabs-font-size: var(--spectrum-font-size-200); + } + + &.spectrum-Tabs--sizeXL { + --spectrum-tabs-item-height: var(--spectrum-tab-item-height-extra-large); + --spectrum-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-extra-large); + --spectrum-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-extra-large); + --spectrum-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-extra-large); + --spectrum-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-extra-large); + --spectrum-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-extra-large); + + --spectrum-tabs-icon-size: var(--spectrum-workflow-icon-size-200); + --spectrum-tabs-icon-to-text: var(--spectrum-text-to-visual-300); + --spectrum-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-extra-large); + + --spectrum-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-extra-large); + --spectrum-tabs-font-size: var(--spectrum-font-size-300); + } + + &.spectrum-Tabs--emphasized { + --spectrum-tabs-color-selected: var(--spectrum-accent-content-color-default); + --spectrum-tabs-color-hover: var(--spectrum-accent-content-color-hover); + --spectrum-tabs-color-key-focus: var(--spectrum-accent-content-color-key-focus); + + --spectrum-tabs-selection-indicator-color: var(--spectrum-accent-content-color-default); + } + } +} diff --git a/components/tabs/themes/spectrum.css b/components/tabs/themes/spectrum.css index 4e49c9ae85d..4caae0c5e2d 100644 --- a/components/tabs/themes/spectrum.css +++ b/components/tabs/themes/spectrum.css @@ -11,8 +11,13 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .spectrum-Tabs { - --spectrum-tabs-font-weight: var(--spectrum-default-font-weight); + --spectrum-tabs-divider-background-color: var(--spectrum-gray-300); } } diff --git a/components/tag/CHANGELOG.md b/components/tag/CHANGELOG.md index a243b395dd4..20441ff45f9 100644 --- a/components/tag/CHANGELOG.md +++ b/components/tag/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 10.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.14 + - @spectrum-css/avatar@8.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 10.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.12 + - @spectrum-css/avatar@8.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 10.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.11 + - @spectrum-css/avatar@8.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 10.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.10 + - @spectrum-css/avatar@8.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 10.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.9 + - @spectrum-css/avatar@8.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 10.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.8 + - @spectrum-css/avatar@8.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 10.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.7 + - @spectrum-css/avatar@8.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 10.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/clearbutton@7.0.0-s2-foundations.6 + - @spectrum-css/avatar@8.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 10.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.5 + - @spectrum-css/avatar@8.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 10.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.4 + - @spectrum-css/avatar@8.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 10.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.3 + - @spectrum-css/avatar@8.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 10.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.2 + - @spectrum-css/avatar@8.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 10.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.1 + - @spectrum-css/avatar@8.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 10.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/clearbutton@7.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/avatar@8.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 9.1.3 ### Patch Changes diff --git a/components/tag/index.css b/components/tag/index.css index 2c692141007..b78674585ec 100644 --- a/components/tag/index.css +++ b/components/tag/index.css @@ -11,175 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-Tag { - /* TODO - replace placeholder disabled avatar opacity with correct token once avatar is migrated */ - --spectrum-avatar-opacity-disabled: 0.3; - - --spectrum-tag-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-tag-border-width: var(--spectrum-border-width-100); - - /* focus ring */ - --spectrum-tag-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); - --spectrum-tag-focus-ring-gap: var(--spectrum-focus-indicator-gap); - --spectrum-tag-focus-ring-color: var(--spectrum-focus-indicator-color); - - /* label */ - --spectrum-tag-label-line-height: var(--spectrum-line-height-100); - --spectrum-tag-label-font-weight: var(--spectrum-regular-font-weight); - - /* selected */ - --spectrum-tag-content-color-selected: var(--spectrum-gray-50); - --spectrum-tag-background-color-selected: var(--spectrum-neutral-background-color-selected-default); - --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); - - /* invalid variant */ - --spectrum-tag-border-color-invalid: var(--spectrum-negative-color-900); - --spectrum-tag-border-color-invalid-hover: var(--spectrum-negative-color-1000); - --spectrum-tag-border-color-invalid-active: var(--spectrum-negative-color-1100); - --spectrum-tag-border-color-invalid-focus: var(--spectrum-negative-color-1000); - - /* invalid variant content */ - --spectrum-tag-content-color-invalid: var(--spectrum-negative-content-color-default); - --spectrum-tag-content-color-invalid-hover: var(--spectrum-negative-content-color-hover); - --spectrum-tag-content-color-invalid-active: var(--spectrum-negative-content-color-down); - --spectrum-tag-content-color-invalid-focus: var(--spectrum-negative-content-color-key-focus); - - /* invalid selected variant */ - --spectrum-tag-border-color-invalid-selected: var(--spectrum-negative-background-color-default); - --spectrum-tag-border-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); - --spectrum-tag-border-color-invalid-selected-focus: var(--spectrum-negative-background-color-down); - --spectrum-tag-border-color-invalid-selected-active: var(--spectrum-negative-background-color-key-focus); - --spectrum-tag-background-color-invalid-selected: var(--spectrum-negative-background-color-default); - --spectrum-tag-background-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); - --spectrum-tag-background-color-invalid-selected-active: var(--spectrum-negative-background-color-down); - --spectrum-tag-background-color-invalid-selected-focus: var(--spectrum-negative-background-color-key-focus); - - /* invalid selected variant content */ - --spectrum-tag-content-color-invalid-selected: var(--spectrum-white); - - /* emphasized variant */ - --spectrum-tag-border-color-emphasized: var(--spectrum-accent-background-color-default); - --spectrum-tag-border-color-emphasized-hover: var(--spectrum-accent-background-color-hover); - --spectrum-tag-border-color-emphasized-active: var(--spectrum-accent-background-color-down); - --spectrum-tag-border-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); - --spectrum-tag-background-color-emphasized: var(--spectrum-accent-background-color-default); - --spectrum-tag-background-color-emphasized-hover: var(--spectrum-accent-background-color-hover); - --spectrum-tag-background-color-emphasized-active: var(--spectrum-accent-background-color-down); - --spectrum-tag-background-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); - - /* emphasized variant content */ - --spectrum-tag-content-color-emphasized: var(--spectrum-white); - - /* disabled variant content */ - --spectrum-tag-content-color-disabled: var(--spectrum-disabled-content-color); - - /* ↧↧↧ Fallback defaults in case of no t-shirt size - set to Medium styles ↧↧↧ */ - /* icon spacing fallback if no t-shirt size */ - --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); - --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-100); - --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); - - /* avatar spacing fallback if no t-shirt size */ - --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); - --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); - --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); - - /* label spacing fallback if no t-shirt size */ - --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); - - /* clear button inline spacing fallback if no t-shirt size */ - --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); - - /* tag defaults if no t-shirt size */ - --spectrum-tag-height: var(--spectrum-component-height-100); - - /* text defaults if no t-shirt size */ - --spectrum-tag-font-size: var(--spectrum-font-size-100); - - /* clear button spacing if no t-shirt size */ - --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); -} - -/* t-shirt sizes */ -.spectrum-Tag--sizeS { - --spectrum-tag-height: var(--spectrum-component-height-75); - --spectrum-tag-font-size: var(--spectrum-font-size-75); - --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-75); - - --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-75); - --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-small); - - --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-75); - --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-75); - --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-75); - - --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-small); - --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-small); - --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-75); - - --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-75); - - /* tokens based on theme and t-shirt size */ - --spectrum-tag-corner-radius: var(--spectrum-tag-size-small-corner-radius); - --spectrum-tag-spacing-inline-start: var(--spectrum-tag-size-small-spacing-inline-start); - --spectrum-tag-label-spacing-inline-end: var(--spectrum-tag-size-small-label-spacing-inline-end); - --spectrum-tag-clear-button-spacing-inline-end: var(--spectrum-tag-size-small-clear-button-spacing-inline-end); -} - -.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); - - --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); - --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); - - --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); - --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); - - --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); /* 6px 9px */ - --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); - --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); - - --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); - - /* tokens based on theme and t-shirt size */ - --spectrum-tag-corner-radius: var(--spectrum-tag-size-medium-corner-radius); - --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--sizeL { - --spectrum-tag-height: var(--spectrum-component-height-200); - --spectrum-tag-font-size: var(--spectrum-font-size-200); - --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-200); - - --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-200); - --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-large); - - --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-200); - --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-200); - --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-200); - - --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-large); - --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-large); - --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-200); - - --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-200); - - /* tokens based on theme and t-shirt size */ - --spectrum-tag-corner-radius: var(--spectrum-tag-size-large-corner-radius); - --spectrum-tag-spacing-inline-start: var(--spectrum-tag-size-large-spacing-inline-start); - --spectrum-tag-label-spacing-inline-end: var(--spectrum-tag-size-large-label-spacing-inline-end); - --spectrum-tag-clear-button-spacing-inline-end: var(--spectrum-tag-size-large-clear-button-spacing-inline-end); -} +@import "./themes/spectrum-two.css"; .spectrum-Tag { border-color: var(--highcontrast-tag-border-color, var(--mod-tag-border-color, var(--spectrum-tag-border-color))); @@ -200,6 +32,7 @@ box-sizing: border-box; vertical-align: bottom; max-inline-size: 100%; + outline: none; user-select: none; @@ -226,6 +59,11 @@ /* clear button */ .spectrum-Tag-clearButton { + /* 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; + box-sizing: border-box; padding-block-start: calc(var(--mod-tag-clear-button-spacing-block, var(--spectrum-tag-clear-button-spacing-block)) - var(--mod-tag-border-width, var(--spectrum-tag-border-width))); @@ -240,14 +78,8 @@ /* ensure clear button is correct color */ color: currentColor; - /* 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; - .spectrum-ClearButton-fill { background-color: var(--mod-clearbutton-fill-background-color, var(--spectrum-clearbutton-fill-background-color)); - inline-size: var(--mod-clearbutton-fill-size, var(--spectrum-clearbutton-fill-size)); block-size: var(--mod-clearbutton-fill-size, var(--spectrum-clearbutton-fill-size)); } @@ -415,8 +247,6 @@ /* windows high contrast mode */ @media (forced-colors: active) { .spectrum-Tag { - forced-color-adjust: none; - --highcontrast-tag-border-color: ButtonText; --highcontrast-tag-border-color-hover: ButtonText; --highcontrast-tag-border-color-active: ButtonText; @@ -433,6 +263,8 @@ --highcontrast-tag-content-color-focus: ButtonText; --highcontrast-tag-focus-ring-color: Highlight; + + forced-color-adjust: none; &.is-selected { --highcontrast-tag-border-color-selected: Highlight; diff --git a/components/tag/metadata/metadata.json b/components/tag/metadata/metadata.json index 79e64cf042e..267941b416b 100644 --- a/components/tag/metadata/metadata.json +++ b/components/tag/metadata/metadata.json @@ -37,7 +37,8 @@ ".spectrum-Tag:active", ".spectrum-Tag:focus-visible", ".spectrum-Tag:focus-visible:after", - ".spectrum-Tag:hover" + ".spectrum-Tag:hover", + ":scope" ], "modifiers": [ "--mod-tag-animation-duration", @@ -226,12 +227,6 @@ "--spectrum-component-height-100", "--spectrum-component-height-200", "--spectrum-component-height-75", - "--spectrum-component-pill-edge-to-text-100", - "--spectrum-component-pill-edge-to-text-200", - "--spectrum-component-pill-edge-to-text-75", - "--spectrum-component-pill-edge-to-visual-100", - "--spectrum-component-pill-edge-to-visual-200", - "--spectrum-component-pill-edge-to-visual-75", "--spectrum-component-top-to-text-100", "--spectrum-component-top-to-text-200", "--spectrum-component-top-to-text-75", @@ -240,7 +235,6 @@ "--spectrum-component-top-to-workflow-icon-75", "--spectrum-corner-radius-100", "--spectrum-disabled-background-color", - "--spectrum-disabled-border-color", "--spectrum-disabled-content-color", "--spectrum-focus-indicator-color", "--spectrum-focus-indicator-gap", @@ -248,13 +242,10 @@ "--spectrum-font-size-100", "--spectrum-font-size-200", "--spectrum-font-size-75", - "--spectrum-gray-200", - "--spectrum-gray-300", - "--spectrum-gray-400", + "--spectrum-gray-100", + "--spectrum-gray-25", "--spectrum-gray-50", - "--spectrum-gray-500", "--spectrum-gray-700", - "--spectrum-gray-75", "--spectrum-gray-800", "--spectrum-gray-900", "--spectrum-line-height-100", @@ -269,18 +260,10 @@ "--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", - "--spectrum-neutral-background-color-key-focus", "--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-content-color-default", - "--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", @@ -298,38 +281,7 @@ "--spectrum-workflow-icon-size-200", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-tag-background-color", - "--system-spectrum-tag-background-color-active", - "--system-spectrum-tag-background-color-disabled", - "--system-spectrum-tag-background-color-focus", - "--system-spectrum-tag-background-color-hover", - "--system-spectrum-tag-border-color", - "--system-spectrum-tag-border-color-active", - "--system-spectrum-tag-border-color-disabled", - "--system-spectrum-tag-border-color-focus", - "--system-spectrum-tag-border-color-hover", - "--system-spectrum-tag-border-color-selected", - "--system-spectrum-tag-border-color-selected-active", - "--system-spectrum-tag-border-color-selected-focus", - "--system-spectrum-tag-border-color-selected-hover", - "--system-spectrum-tag-content-color", - "--system-spectrum-tag-content-color-active", - "--system-spectrum-tag-content-color-focus", - "--system-spectrum-tag-content-color-hover", - "--system-spectrum-tag-size-large-clear-button-spacing-inline-end", - "--system-spectrum-tag-size-large-corner-radius", - "--system-spectrum-tag-size-large-label-spacing-inline-end", - "--system-spectrum-tag-size-large-spacing-inline-start", - "--system-spectrum-tag-size-medium-clear-button-spacing-inline-end", - "--system-spectrum-tag-size-medium-corner-radius", - "--system-spectrum-tag-size-medium-label-spacing-inline-end", - "--system-spectrum-tag-size-medium-spacing-inline-start", - "--system-spectrum-tag-size-small-clear-button-spacing-inline-end", - "--system-spectrum-tag-size-small-corner-radius", - "--system-spectrum-tag-size-small-label-spacing-inline-end", - "--system-spectrum-tag-size-small-spacing-inline-start" - ], + "system-theme": [], "passthroughs": [ "--mod-avatar-opacity-disabled", "--mod-clear-button-width", diff --git a/components/tag/metadata/tag.yml b/components/tag/metadata/tag.yml deleted file mode 100644 index 36becfb308a..00000000000 --- a/components/tag/metadata/tag.yml +++ /dev/null @@ -1,449 +0,0 @@ -name: Tag -status: Verified -description: Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request. -SpectrumSiteSlug: https://spectrum.adobe.com/page/tag/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Pluralized classes changed to singular - - `spectrum-Tags-itemLabel` is now `spectrum-Tag-itemLabel` - - `spectrum-Tags-itemIcon` is now `spectrum-Tag-itemIcon` - - ### New emphasized variant has been added - ### A div wrapper is required for avatar - ``` -
    - Avatar -
    - ``` - ### Icon size changed to small - If you use an icon (`spectrum-Tag-itemIcon`) along with a tag, please replace `.spectrum-Icon--sizeXS` with `.spectrum-Icon--sizeS`. - - ### Invalid - Docs updated to show invalid tags always including the alert icon. Invalid tags should have an icon to idenfity itself as invalid and not rely soley on the red background and border color. - -examples: - - id: tag - name: Standard - markup: | -
    -
    -

    Default

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    -

    Selected

    - -
    - Tag label -
    - -
    - - Tag label -
    -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    -

    Invalid

    - -
    - - Tag label -
    - -
    - - Tag label - -
    -
    - -
    -

    Disabled

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    -

    Selected + Invalid

    -
    - - Tag label -
    - -
    - - Tag label - -
    -
    - -
    -

    Emphasized

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    - - - id: tag - name: Sizing - markup: | -
    -
    -

    S (default)

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    - Tag label - -
    - -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    -

    M

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    - Tag label - -
    - -
    -
    - Avatar -
    - Tag label - -
    -
    - -
    -

    L

    - -
    - Tag label -
    - -
    - - Tag label -
    - -
    - Tag label - -
    - -
    -
    - Avatar -
    - Tag label - -
    - -
    -
    - - id: tag - name: Removable - markup: | -
    -
    -

    Default

    - -
    - Tag label - -
    - -
    - - Tag label - -
    - -
    -
    -

    Selected

    - -
    - Tag label - -
    - -
    - - Tag label - -
    - -
    -
    -

    Invalid

    -
    - - Tag label - -
    - -
    -
    -

    Disabled

    - -
    - Tag label - -
    - -
    - - Tag label - -
    -
    -
    -

    Selected + Invalid

    - -
    - - Tag label - -
    - -
    -
    diff --git a/components/tag/package.json b/components/tag/package.json index 713a3fccecf..67f260041a5 100644 --- a/components/tag/package.json +++ b/components/tag/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/tag", - "version": "9.1.3", + "version": "10.0.0-s2-foundations.13", "description": "The Spectrum CSS tags component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/tag/stories/template.js b/components/tag/stories/template.js index e6f49a3c0b5..a42f03c6a26 100644 --- a/components/tag/stories/template.js +++ b/components/tag/stories/template.js @@ -9,6 +9,9 @@ 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 index c3f2f0061c6..7c3316af843 100644 --- a/components/tag/themes/express.css +++ b/components/tag/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Tag { /* border */ --spectrum-tag-background-color: transparent; diff --git a/components/tag/themes/spectrum-two.css b/components/tag/themes/spectrum-two.css new file mode 100644 index 00000000000..b120d30cf03 --- /dev/null +++ b/components/tag/themes/spectrum-two.css @@ -0,0 +1,227 @@ +/*! + * 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 + * + * 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 { + /* border */ + --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); + + /* corner 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); + + /* background */ + --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); + + /* 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); + + /* selected variant */ + --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); + + /* TODO - replace placeholder disabled avatar opacity with correct token once avatar is migrated */ + --spectrum-avatar-opacity-disabled: 0.3; + + --spectrum-tag-animation-duration: var(--spectrum-animation-duration-100); + --spectrum-tag-border-width: var(--spectrum-border-width-100); + + /* focus ring */ + --spectrum-tag-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); + --spectrum-tag-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --spectrum-tag-focus-ring-color: var(--spectrum-focus-indicator-color); + + /* label */ + --spectrum-tag-label-line-height: var(--spectrum-line-height-100); + --spectrum-tag-label-font-weight: var(--spectrum-regular-font-weight); + + /* selected */ + --spectrum-tag-content-color-selected: var(--spectrum-gray-25); + --spectrum-tag-background-color-selected: var(--spectrum-neutral-background-color-selected-default); + --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); + + /* invalid variant */ + --spectrum-tag-border-color-invalid: var(--spectrum-negative-color-900); + --spectrum-tag-border-color-invalid-hover: var(--spectrum-negative-color-1000); + --spectrum-tag-border-color-invalid-active: var(--spectrum-negative-color-1100); + --spectrum-tag-border-color-invalid-focus: var(--spectrum-negative-color-1000); + + /* invalid variant content */ + --spectrum-tag-content-color-invalid: var(--spectrum-negative-content-color-default); + --spectrum-tag-content-color-invalid-hover: var(--spectrum-negative-content-color-hover); + --spectrum-tag-content-color-invalid-active: var(--spectrum-negative-content-color-down); + --spectrum-tag-content-color-invalid-focus: var(--spectrum-negative-content-color-key-focus); + + /* invalid selected variant */ + --spectrum-tag-border-color-invalid-selected: var(--spectrum-negative-background-color-default); + --spectrum-tag-border-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); + --spectrum-tag-border-color-invalid-selected-focus: var(--spectrum-negative-background-color-down); + --spectrum-tag-border-color-invalid-selected-active: var(--spectrum-negative-background-color-key-focus); + --spectrum-tag-background-color-invalid-selected: var(--spectrum-negative-background-color-default); + --spectrum-tag-background-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); + --spectrum-tag-background-color-invalid-selected-active: var(--spectrum-negative-background-color-down); + --spectrum-tag-background-color-invalid-selected-focus: var(--spectrum-negative-background-color-key-focus); + + /* invalid selected variant content */ + --spectrum-tag-content-color-invalid-selected: var(--spectrum-white); + + /* emphasized variant */ + --spectrum-tag-border-color-emphasized: var(--spectrum-accent-background-color-default); + --spectrum-tag-border-color-emphasized-hover: var(--spectrum-accent-background-color-hover); + --spectrum-tag-border-color-emphasized-active: var(--spectrum-accent-background-color-down); + --spectrum-tag-border-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); + --spectrum-tag-background-color-emphasized: var(--spectrum-accent-background-color-default); + --spectrum-tag-background-color-emphasized-hover: var(--spectrum-accent-background-color-hover); + --spectrum-tag-background-color-emphasized-active: var(--spectrum-accent-background-color-down); + --spectrum-tag-background-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); + + /* emphasized variant content */ + --spectrum-tag-content-color-emphasized: var(--spectrum-white); + + /* disabled variant content */ + --spectrum-tag-content-color-disabled: var(--spectrum-disabled-content-color); + + /* ↧↧↧ Fallback defaults in case of no t-shirt size - set to Medium styles ↧↧↧ */ + /* icon spacing fallback if no t-shirt size */ + --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); + --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-100); + --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); + + /* avatar spacing fallback if no t-shirt size */ + --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); + --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); + --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); + + /* label spacing fallback if no t-shirt size */ + --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); + + /* clear button inline spacing fallback if no t-shirt size */ + --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); + + /* tag defaults if no t-shirt size */ + --spectrum-tag-height: var(--spectrum-component-height-100); + + /* text defaults if no t-shirt size */ + --spectrum-tag-font-size: var(--spectrum-font-size-100); + + /* clear button spacing if no t-shirt size */ + --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); + } + + /* t-shirt sizes */ + .spectrum-Tag--sizeS { + --spectrum-tag-height: var(--spectrum-component-height-75); + --spectrum-tag-font-size: var(--spectrum-font-size-75); + --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-75); + + --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-75); + --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-small); + + --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-75); + --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-75); + --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-75); + + --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-small); + --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-small); + --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-75); + + --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-75); + + /* tokens based on theme and t-shirt size */ + --spectrum-tag-corner-radius: var(--spectrum-tag-size-small-corner-radius); + --spectrum-tag-spacing-inline-start: var(--spectrum-tag-size-small-spacing-inline-start); + --spectrum-tag-label-spacing-inline-end: var(--spectrum-tag-size-small-label-spacing-inline-end); + --spectrum-tag-clear-button-spacing-inline-end: var(--spectrum-tag-size-small-clear-button-spacing-inline-end); + } + + &, + .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); + + --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); + --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); + + --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); + --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); + + --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); /* 6px 9px */ + --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); + --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); + + --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); + + /* tokens based on theme and t-shirt size */ + --spectrum-tag-corner-radius: var(--spectrum-tag-size-medium-corner-radius); + --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--sizeL { + --spectrum-tag-height: var(--spectrum-component-height-200); + --spectrum-tag-font-size: var(--spectrum-font-size-200); + --spectrum-tag-icon-size: var(--spectrum-workflow-icon-size-200); + + --spectrum-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-200); + --spectrum-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-large); + + --spectrum-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-200); + --spectrum-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-200); + --spectrum-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-200); + + --spectrum-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-large); + --spectrum-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-large); + --spectrum-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-200); + + --spectrum-tag-label-spacing-block: var(--spectrum-component-top-to-text-200); + + /* tokens based on theme and t-shirt size */ + --spectrum-tag-corner-radius: var(--spectrum-tag-size-large-corner-radius); + --spectrum-tag-spacing-inline-start: var(--spectrum-tag-size-large-spacing-inline-start); + --spectrum-tag-label-spacing-inline-end: var(--spectrum-tag-size-large-label-spacing-inline-end); + --spectrum-tag-clear-button-spacing-inline-end: var(--spectrum-tag-size-large-clear-button-spacing-inline-end); + } +} diff --git a/components/tag/themes/spectrum.css b/components/tag/themes/spectrum.css index 27c05be7bdd..8d2d11b2bc0 100644 --- a/components/tag/themes/spectrum.css +++ b/components/tag/themes/spectrum.css @@ -11,50 +11,18 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Tag { - /* border */ - --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); - /* corner 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); +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; - /* background */ +@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); - /* 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); - - /* selected variant */ - --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); + --spectrum-tag-content-color-selected: var(--spectrum-gray-50); } } diff --git a/components/taggroup/CHANGELOG.md b/components/taggroup/CHANGELOG.md index 31a37ff120a..a4a1fcc7215 100644 --- a/components/taggroup/CHANGELOG.md +++ b/components/taggroup/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 6.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tag@10.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tag@10.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tag@10.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tag@10.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tag@10.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tag@10.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tag@10.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/tag@10.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tag@10.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tag@10.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tag@10.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tag@10.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tag@10.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tag@10.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.1.3 ### Patch Changes diff --git a/components/taggroup/index.css b/components/taggroup/index.css index 4b022b0e1c0..6a59b342434 100644 --- a/components/taggroup/index.css +++ b/components/taggroup/index.css @@ -11,10 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-TagGroup { - --spectrum-tag-group-item-margin-block: var(--spectrum-spacing-75); - --spectrum-tag-group-item-margin-inline: var(--spectrum-spacing-75); -} +@import "./themes/spectrum-two.css"; .spectrum-TagGroup { display: inline-flex; diff --git a/components/taggroup/metadata/taggroup.yml b/components/taggroup/metadata/taggroup.yml deleted file mode 100644 index 8f8786951b7..00000000000 --- a/components/taggroup/metadata/taggroup.yml +++ /dev/null @@ -1,177 +0,0 @@ -name: Tag group -status: Verified -description: A group of tags. Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request. When horizontal space is limited in a tag group, the individual tags wrap to form another line. -SpectrumSiteSlug: https://spectrum.adobe.com/page/tag/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Updated tag classes - The examples now use the latest markup from the tag component. This includes additional classes: - - `spectrum-Tag-itemLabel` - - `spectrum-Tag-itemIcon` - - `spectrum-Tag-clearButton` - - ### A div wrapper is required for avatar - ``` -
    - Avatar -
    - ``` - ### Icon size changed to small - If you use an icon (`spectrum-Tag-itemIcon`) along with a tag, please replace `.spectrum-Icon--sizeXS` with `.spectrum-Icon--sizeS`. -examples: - - id: taggroup - name: Standard - markup: | -
    -
    - Tag 1 -
    -
    - Tag 2 -
    -
    - -

    - -
    -
    -
    - Avatar -
    - Shantanu -
    -
    -
    - Avatar -
    - Shantanu -
    -
    - -

    - -
    -
    - - Shantanu -
    -
    - - Shantanu -
    -
    - - Shantanu -
    -
    - - id: tag-removable - name: Removable - description: An editable taglist. - markup: | -
    -
    - Tag 1 - -
    -
    - Tag 2 - -
    -
    - -

    - -
    -
    -
    - Avatar -
    - Shantanu - -
    -
    -
    - Avatar -
    - Shantanu - -
    -
    - -

    - -
    -
    - - Shantanu - -
    -
    - - Shantanu - -
    -
    - - Shantanu - -
    -
    diff --git a/components/taggroup/package.json b/components/taggroup/package.json index a97c54f7871..b77aacde788 100644 --- a/components/taggroup/package.json +++ b/components/taggroup/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/taggroup", - "version": "5.1.3", + "version": "6.0.0-s2-foundations.13", "description": "The Spectrum CSS tag group component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/taggroup/stories/template.js b/components/taggroup/stories/template.js index 20035de5cda..da04d572a71 100644 --- a/components/taggroup/stories/template.js +++ b/components/taggroup/stories/template.js @@ -5,6 +5,9 @@ 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-TagGroup", @@ -15,22 +18,24 @@ export const Template = ({ customStyles = {}, size = "m", ...args -} = {}, context = {}) => html` -
    ({ ...a, [c]: true }), {}), - })} - style=${styleMap(customStyles)} - role="list" - aria-label=${ifDefined(ariaLabel)} - > - ${items.map((i) => Tag({ - ...i, - ...args, - size, - hasClearButton: isRemovable, - customClasses: [`${rootClass}-item`], - }, context))} -
    -`; +} = {}, context = {}) => { + return html` +
    ({ ...a, [c]: true }), {}), + })} + style=${styleMap(customStyles)} + role="list" + aria-label=${ifDefined(ariaLabel)} + > + ${items.map((i) => Tag({ + ...i, + ...args, + size, + hasClearButton: isRemovable, + customClasses: [`${rootClass}-item`], + }, context))} +
    + `; +}; diff --git a/components/taggroup/themes/express.css b/components/taggroup/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/taggroup/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/taggroup/themes/spectrum-two.css b/components/taggroup/themes/spectrum-two.css new file mode 100644 index 00000000000..f843bd94864 --- /dev/null +++ b/components/taggroup/themes/spectrum-two.css @@ -0,0 +1,19 @@ +/*! + * 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 + * + * 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-TagGroup { + --spectrum-tag-group-item-margin-block: var(--spectrum-spacing-75); + --spectrum-tag-group-item-margin-inline: var(--spectrum-spacing-75); + } +} diff --git a/components/taggroup/themes/spectrum.css b/components/taggroup/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/taggroup/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/textfield/CHANGELOG.md b/components/textfield/CHANGELOG.md index 8cab0175717..b8500f0b8a9 100644 --- a/components/textfield/CHANGELOG.md +++ b/components/textfield/CHANGELOG.md @@ -1,5 +1,183 @@ # Change Log +## 8.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 8.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9294678`](https://github.com/adobe/spectrum-css/commit/929467879ebedb5601f54509d95f3dcd97681607) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-306]: Reintroduces previous changes in textfield that had been reverted, including adjusted line height, cleanup of legacy vendor prefixes and normalization (#2771), a fix for focus pseudo pointer events (#2761) + +## 8.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 8.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 8.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 8.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`da47fa2`](https://github.com/adobe/spectrum-css/commit/da47fa2cb18373e74a6718775f2db90bb25868d4) Thanks [@pfulton](https://github.com/pfulton)! - Fix line-height discrepency + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 8.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 8.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 8.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/helptext@6.0.0-s2-foundations.6 + +## 8.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 8.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 8.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 8.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 8.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/helptext@6.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 8.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/helptext@6.0.0-s2-foundations.0 + ## 7.2.3 ### Patch Changes diff --git a/components/textfield/index.css b/components/textfield/index.css index e3bb87dded1..0b9119c7723 100644 --- a/components/textfield/index.css +++ b/components/textfield/index.css @@ -11,206 +11,13 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; +@import "./themes/spectrum-two.css"; +/********* TEXT FIELD and TEXT AREA Outer Wrapper *********/ .spectrum-Textfield { - /* set input line-height to the height of the textfield - prevents the cutting off of diacritics in some languages */ - /* disallow mod for max compatibility */ + /* line height */ --spectrum-textfield-input-line-height: var(--spectrum-textfield-height); - --spectrum-texfield-animation-duration: var(--spectrum-animation-duration-100); - - --spectrum-textfield-width: 240px; /* override per api */ - --spectrum-textfield-min-width: var(--spectrum-text-field-minimum-width-multiplier); - --spectrum-textfield-corner-radius: var(--spectrum-corner-radius-100); - - /* default height */ - --spectrum-textfield-height: var(--spectrum-component-height-100); - - /* default spacing */ - --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-100); - --spectrum-textfield-spacing-inline-quiet: var(--spectrum-field-edge-to-text-quiet); - --spectrum-textfield-spacing-block-start: var(--spectrum-component-top-to-text-100); - --spectrum-textfield-spacing-block-end: var(--spectrum-component-bottom-to-text-100); - --spectrum-textfield-spacing-block-quiet: var(--spectrum-field-edge-to-border-quiet); - - /* default label spacing */ - --spectrum-textfield-label-spacing-block: var(--spectrum-field-label-to-component); - --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-medium); - --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-100); - - /* default help text spacing */ - --spectrum-textfield-helptext-spacing-block: var(--spectrum-help-text-to-component); - - /* default icon size */ - --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-100); - --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-100); - - /* default icon spacing - invalid */ - --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-medium); - --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-medium); - --spectrum-textfield-icon-spacing-inline-end-quiet-invalid: var(--spectrum-field-edge-to-alert-icon-quiet); - --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium); - - /* default icon spacing - valid */ - --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-medium); - --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-medium); - --spectrum-textfield-icon-spacing-inline-end-quiet-valid: var(--spectrum-field-edge-to-validation-icon-quiet); - --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-medium); - - /* font styles */ - --spectrum-textfield-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-textfield-font-weight: var(--spectrum-regular-font-weight); - --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-100); - - /* character count */ - --spectrum-textfield-character-count-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-textfield-character-count-font-weight: var(--spectrum-regular-font-weight); - --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-75); - --spectrum-textfield-character-count-spacing-inline: var(--spectrum-spacing-200); - --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); - --spectrum-textfield-character-count-spacing-inline-side: var(--spectrum-side-label-character-count-to-field); - --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-medium); - - /* focus indicator */ - --spectrum-textfield-focus-indicator-width: var(--spectrum-focus-indicator-thickness); - --spectrum-textfield-focus-indicator-gap: var(--spectrum-focus-indicator-gap); - - /*** Colors ***/ - --spectrum-textfield-background-color: var(--spectrum-gray-50); - - /* Text Colors */ - --spectrum-textfield-text-color-default: var(--spectrum-neutral-content-color-default); - --spectrum-textfield-text-color-hover: var(--spectrum-neutral-content-color-hover); - --spectrum-textfield-text-color-focus: var(--spectrum-neutral-content-color-focus); - --spectrum-textfield-text-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); - --spectrum-textfield-text-color-keyboard-focus: var(--spectrum-neutral-content-color-key-focus); - - /* Read Only Text Color */ - --spectrum-textfield-text-color-readonly: var(--spectrum-neutral-content-color-default); - - /* Disabled Colors */ - --spectrum-textfield-background-color-disabled: var(--spectrum-disabled-background-color); - --spectrum-textfield-border-color-disabled: var(--spectrum-disabled-border-color); - --spectrum-textfield-text-color-disabled: var(--spectrum-disabled-content-color); - - /* Invalid Colors */ - --spectrum-textfield-border-color-invalid-default: var(--spectrum-negative-border-color-default); - --spectrum-textfield-border-color-invalid-hover: var(--spectrum-negative-border-color-hover); - --spectrum-textfield-border-color-invalid-focus: var(--spectrum-negative-border-color-focus); - --spectrum-textfield-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); - --spectrum-textfield-border-color-invalid-keyboard-focus: var(--spectrum-negative-border-color-key-focus); - --spectrum-textfield-icon-color-invalid: var(--spectrum-negative-visual-color); - - --spectrum-textfield-text-color-invalid: var(--spectrum-neutral-content-color-default); - - /* Valid Colors */ - --spectrum-textfield-text-color-valid: var(--spectrum-neutral-content-color-default); - --spectrum-textfield-icon-color-valid: var(--spectrum-positive-visual-color); - - /* Focus Indicator Color */ - --spectrum-textfield-focus-indicator-color: var(--spectrum-focus-indicator-color); - - /* Text Area / Multiline */ - --spectrum-text-area-min-inline-size: var(--spectrum-text-area-minimum-width); - --spectrum-text-area-min-block-size: var(--spectrum-text-area-minimum-height); - --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-100); -} - -/********* Text field t-shirt sizes *********/ -.spectrum-Textfield--sizeS { - --spectrum-textfield-height: var(--spectrum-component-height-75); - --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-small); - --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-100); - --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-75); - --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-75); - --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-75); - --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-75); - --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-small); - --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-small); - --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-small); - --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-small); - --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-small); - --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-small); - --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-75); - --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); - --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-small); - --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-small); - - /* Text Area / Multiline size small */ - --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-75); -} -.spectrum-Textfield--sizeM { - --spectrum-textfield-height: var(--spectrum-component-height-100); - --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-medium); - --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); - --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-100); - --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-100); - --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-100); - --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-100); - --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-medium); - --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-medium); - --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium); - --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-medium); - --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-medium); - --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-medium); - --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-75); - --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); - --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-medium); - --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-medium); - - /* Text Area / Multiline size medium */ - --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-100); -} - -.spectrum-Textfield--sizeL { - --spectrum-textfield-height: var(--spectrum-component-height-200); - --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-large); - --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); - --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-200); - --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-200); - --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-200); - --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-200); - --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-large); - --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-large); - --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-large); - --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-large); - --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-large); - --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-large); - --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-100); - --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-100); - --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-large); - --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-large); - - /* Text Area / Multiline size large */ - --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-200); -} - -.spectrum-Textfield--sizeXL { - --spectrum-textfield-height: var(--spectrum-component-height-300); - --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-extra-large); - --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); - --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-300); - --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-200); - --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-300); - --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-300); - --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-extra-large); - --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-extra-large); - --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-extra-large); - --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-extra-large); - --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-extra-large); - --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-extra-large); - --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-200); - --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-200); - --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-extra-large); - --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-extra-large); - - /* Text Area / Multiline size extra large */ - --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-300); -} - -/********* TEXT FIELD and TEXT AREA Outer Wrapper *********/ -.spectrum-Textfield { position: relative; text-overflow: ellipsis; @@ -355,8 +162,8 @@ font-size: var(--mod-textfield-character-count-font-size, var(--spectrum-textfield-character-count-font-size)); font-family: var(--mod-textfield-character-count-font-family, var(--spectrum-textfield-character-count-font-family)); font-weight: var(--mod-textfield-character-count-font-weight, var(--spectrum-textfield-character-count-font-weight)); - grid-row: 1; grid-column: 2 / span 1; + grid-row: 1; padding-inline-end: calc(var(--mod-textfield-corner-radius, var(--spectrum-textfield-corner-radius)) / 2); .spectrum-Textfield--quiet & { @@ -368,10 +175,12 @@ .spectrum-Textfield-input { /* no mod defined to allow for maximum compatibility */ line-height: var(--spectrum-textfield-input-line-height); + box-sizing: border-box; inline-size: 100%; min-inline-size: var(--mod-textfield-min-width, var(--spectrum-textfield-min-width)); block-size: var(--mod-textfield-height, var(--spectrum-textfield-height)); + padding-block-start: calc(var(--mod-textfield-spacing-block-start, var(--spectrum-textfield-spacing-block-start)) - var(--mod-textfield-border-width, var(--spectrum-textfield-border-width))); padding-block-end: calc(var(--mod-textfield-spacing-block-end, var(--spectrum-textfield-spacing-block-end)) - var(--mod-textfield-border-width, var(--spectrum-textfield-border-width))); @@ -380,7 +189,9 @@ vertical-align: top; /* used to align them correctly in forms. */ outline: none; background-color: var(--mod-textfield-background-color, var(--spectrum-textfield-background-color)); - border: var(--mod-textfield-border-width, var(--spectrum-textfield-border-width)) solid var(--highcontrast-textfield-border-color, var(--mod-textfield-border-color, var(--spectrum-textfield-border-color))); + border-color: var(--highcontrast-textfield-border-color, var(--mod-textfield-border-color, var(--spectrum-textfield-border-color))); + border-style: solid; + border-width: var(--mod-textfield-border-width, var(--spectrum-textfield-border-width)); border-radius: var(--mod-textfield-corner-radius, var(--spectrum-textfield-corner-radius)); transition: border-color var(--mod-texfield-animation-duration, var(--spectrum-texfield-animation-duration)) ease-in-out; @@ -397,8 +208,11 @@ /*** ↓ Browser Mitigations for Input ↓ ***/ /* Firefox and Safari - Remove the margin for input. */ margin: 0; + + /* stylelint-disable-next-line order/properties-order -- keep this in position to prevent issues with custom -moz- prefix */ appearance: none; + &[type="number"] { /* stylelint-disable-next-line property-no-vendor-prefix -- Removes the native spin buttons in Firefox. */ -moz-appearance: textfield; @@ -473,14 +287,14 @@ border-color: var(--highcontrast-textfield-border-color-keyboard-focus, var(--mod-textfield-border-color-keyboard-focus, var(--spectrum-textfield-border-color-keyboard-focus))); color: var(--highcontrast-textfield-text-color-keyboard-focus, var(--mod-textfield-text-color-keyboard-focus, var(--spectrum-textfield-text-color-keyboard-focus))); - &::placeholder { - color: var(--highcontrast-textfield-text-color-keyboard-focus, var(--mod-textfield-text-color-keyboard-focus, var(--spectrum-textfield-text-color-keyboard-focus))); - } - /* focus indicator is focused state */ outline: var(--mod-textfield-focus-indicator-width, var(--spectrum-textfield-focus-indicator-width)) solid; outline-color: var(--highcontrast-textfield-focus-indicator-color, var(--mod-textfield-focus-indicator-color, var(--spectrum-textfield-focus-indicator-color))); outline-offset: var(--mod-textfield-focus-indicator-gap, var(--spectrum-textfield-focus-indicator-gap)); + + &::placeholder { + color: var(--highcontrast-textfield-text-color-keyboard-focus, var(--mod-textfield-text-color-keyboard-focus, var(--spectrum-textfield-text-color-keyboard-focus))); + } } /*** Input Valid ✅ ***/ diff --git a/components/textfield/metadata/metadata.json b/components/textfield/metadata/metadata.json index 375c277382e..e81784244d8 100644 --- a/components/textfield/metadata/metadata.json +++ b/components/textfield/metadata/metadata.json @@ -47,10 +47,6 @@ ".spectrum-Textfield--sideLabel .spectrum-Textfield-input", ".spectrum-Textfield--sideLabel .spectrum-Textfield-validationIcon", ".spectrum-Textfield--sideLabel:after", - ".spectrum-Textfield--sizeL", - ".spectrum-Textfield--sizeM", - ".spectrum-Textfield--sizeS", - ".spectrum-Textfield--sizeXL", ".spectrum-Textfield-characterCount", ".spectrum-Textfield-input", ".spectrum-Textfield-input:-moz-ui-invalid", @@ -88,6 +84,10 @@ ".spectrum-Textfield.spectrum-Textfield--quiet.is-valid .spectrum-Textfield-input", ".spectrum-Textfield.spectrum-Textfield--quiet:after", ".spectrum-Textfield.spectrum-Textfield--sideLabel .spectrum-Textfield-validationIcon", + ".spectrum-Textfield.spectrum-Textfield--sizeL", + ".spectrum-Textfield.spectrum-Textfield--sizeM", + ".spectrum-Textfield.spectrum-Textfield--sizeS", + ".spectrum-Textfield.spectrum-Textfield--sizeXL", ".spectrum-Textfield:hover .spectrum-Textfield-input", ".spectrum-Textfield:hover .spectrum-Textfield-input::placeholder" ], @@ -228,7 +228,6 @@ "global": [ "--spectrum-animation-duration-100", "--spectrum-border-width-100", - "--spectrum-border-width-200", "--spectrum-character-count-to-field-quiet-extra-large", "--spectrum-character-count-to-field-quiet-large", "--spectrum-character-count-to-field-quiet-medium", @@ -292,8 +291,7 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-400", - "--spectrum-gray-50", + "--spectrum-gray-25", "--spectrum-gray-500", "--spectrum-gray-600", "--spectrum-gray-800", @@ -331,14 +329,7 @@ "--spectrum-workflow-icon-size-300", "--spectrum-workflow-icon-size-75" ], - "system-theme": [ - "--system-spectrum-textfield-border-color", - "--system-spectrum-textfield-border-color-focus", - "--system-spectrum-textfield-border-color-focus-hover", - "--system-spectrum-textfield-border-color-hover", - "--system-spectrum-textfield-border-color-keyboard-focus", - "--system-spectrum-textfield-border-width" - ], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-textfield-border-color", diff --git a/components/textfield/metadata/textarea.yml b/components/textfield/metadata/textarea.yml deleted file mode 100644 index 76a927e543e..00000000000 --- a/components/textfield/metadata/textarea.yml +++ /dev/null @@ -1,281 +0,0 @@ -name: Text area -status: Verified -description: A multi-line text field using the ` -
    -
    50/50 characters remaining
    -
    -
    - -
    - - 50 - -
    -
    50/50 characters remaining
    -
    -
    - -
    - - 50 - -
    -
    50/50 characters remaining
    -
    -
    - -
    - - 50 - -
    -
    50/50 characters remaining
    -
    -
    - - - id: textfield-helptext - name: Textfield with Help Text - markup: | -
    - - -
    -
    Tags must be comma separated.
    -
    -
    - - - id: textfield-character-count - name: With Character Count - markup: | -
    - - 50 - -
    - - - id: textfield-sidelabel - name: Textfield with Side Label - markup: | -
    - - 50 - -
    -
    50/50 characters remaining
    -
    -
    - - - id: textfield - name: Disabled - markup: | -
    - - -
    - - - id: textfield - name: Valid - markup: | -
    - - - -
    - - - id: textfield - name: Valid (disabled) - markup: | -
    - - - -
    - - - id: textfield - name: Invalid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield - name: Invalid (disabled) - markup: | -
    - - - -
    - - - id: textfield - name: Focused - markup: | -
    - - -
    - - - id: textfield - name: Keyboard Focused - markup: | -
    - - -
    - - - id: textfield - name: Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield - name: Keyboard Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet - markup: | -
    - - -
    - - - id: textfield-quiet - name: Quiet Disabled - markup: | -
    - - -
    - - - id: textfield-quiet - name: Quiet Valid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet Valid (disabled) - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet Invalid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet Invalid (disabled) - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet Focused - markup: | -
    - - -
    - - - id: textfield-quiet - name: Quiet Keyboard Focused - markup: | -
    - - -
    - - - id: textfield-quiet - name: Quiet Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet Keyboard Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    diff --git a/components/textfield/metadata/textfield.yml b/components/textfield/metadata/textfield.yml deleted file mode 100644 index 74c4fe721f2..00000000000 --- a/components/textfield/metadata/textfield.yml +++ /dev/null @@ -1,425 +0,0 @@ -name: Text field -status: Verified -description: A single-line text field using the `` element. -SpectrumSiteSlug: https://spectrum.adobe.com/page/text-field/ -sections: - - name: Migration Guide - description: | - - ### T-shirt sizes - As of token migration, textfield now has t-shirt sizes. Medium is the default size if no size variant is applied. Icon sizes must match each t-shirt size. Validation icons are as follows. - - ### Label - As of token migration, textfield must always have a label. Label placement is top or on the side (start). - - ### Character Count - As of token migration, textfield now has an optional character count. The character count moves to the side (end) when the label position is on the side (start). This count needs to be read by a screen reader but we cannot just use a live region as that will result in an overly verbose experience Adjust the markup of the character count for optimal accessibility for each API. - - ### Help Text - As of token migration, Help text is optional and has only one position below the textfield input. Help text aligns with the input in both standard and side label layouts. - - ### Composition - As of 3.0.0, Textfield is now composed the same way a DecoratedTextfield was previously. - - That is, the outer element `div.spectrum-Textfield` contains a `input.spectrum-Textfield-input`. - - As of spectrum tokens migration, Textfield uses grid to align the label, character count, helptext, and focus indicator in both the default and sidelabel layouts. - - Any application using Textarea Grows (Textarea input which automatically resizes vertically to accommodate content that is entered) will need to place the sizer element within the same grid area as the input and focus indicator. - - ### Icons - Icons are now added as SVGs, with `svg.spectrum-Textfield-validationIcon` used for the UI icons that can indicate valid or invalid input. - - The `` element should appear before the `
    - - 50 - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - 50 - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - 50 - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - 50 - -
    -
    Create a password with at least 8 characters.
    -
    -
    - - - id: textfield-helptext - name: Textfield with Help Text - markup: | -
    - - -
    -
    Create a password with at least 8 characters.
    -
    -
    - - - id: textfield-character-count - name: With Character Count - markup: | -
    - - 50 - -
    - - - id: textfield-sidelabel - name: Textfield with Side Label - markup: | -
    - - 50 - -
    -
    Create a password with at least 8 characters.
    -
    -
    - - - id: textfield-focused - name: Focused - markup: | -
    - - -
    - - - id: textfield-keyboard-focused - name: Keyboard Focused - markup: | -
    - - -
    - - - id: textfield-disabled - name: Disabled - markup: | -
    - - -
    - - - id: textfield-readonly - name: Read-only - markup: | -
    - - -
    - - - id: textfield-valid - name: Valid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - -
    - - - -
    - -
    - - - -
    - -
    - - - -
    - - - id: textfield-valid-disabled - name: Valid (disabled) - markup: | -
    - - - -
    - - - id: textfield-invalid - name: Invalid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - - -
    -
    Create a password with at least 8 characters.
    -
    -
    - -
    - - - -
    -
    Create a password with at least 8 characters.
    -
    -
    - - - id: textfield-invalid-disabled - name: Invalid (disabled) - markup: | -
    - - - -
    - - - id: textfield-focused-invalid - name: Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-keyboard-focused-invalid - name: Keyboard Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet - name: Quiet - markup: | -
    - - -
    - - - id: textfield-quiet-disabled - name: Quiet Disabled - markup: | -
    - - -
    - - - id: textfield-quiet-valid - name: Quiet Valid - markup: | -
    - - - -
    - - - id: textfield-quiet-valid-disabled - name: Quiet Valid (disabled) - markup: | -
    - - - -
    - - - id: textfield-quiet-invalid - name: Quiet Invalid - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet-invalid-disabled - name: Quiet Invalid (disabled) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet-focused - name: Quiet Focused - markup: | -
    - - -
    - - - id: textfield-quiet-keyboard-focused - name: Quiet Keyboard Focused - markup: | -
    - - -
    - - - id: textfield-quiet-focused-invalid - name: Quiet Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    - - - id: textfield-quiet-keyboard-focused-invalid - name: Quiet Keyboard Focused (invalid) - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_N.svg` icon in the Express workflow icon set.* - markup: | -
    - - - -
    diff --git a/components/textfield/package.json b/components/textfield/package.json index 10f37f9ad0e..4a1c014de33 100644 --- a/components/textfield/package.json +++ b/components/textfield/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/textfield", - "version": "7.2.3", + "version": "8.0.0-s2-foundations.14", "description": "The Spectrum CSS textfield component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/textfield/stories/template.js b/components/textfield/stories/template.js index 8d34b6ffc8f..868619a84fc 100644 --- a/components/textfield/stories/template.js +++ b/components/textfield/stories/template.js @@ -9,6 +9,9 @@ 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 diff --git a/components/textfield/themes/express.css b/components/textfield/themes/express.css index 5bb5ddc44da..554fa195494 100644 --- a/components/textfield/themes/express.css +++ b/components/textfield/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@container style(--system: express) { .spectrum-Textfield { --spectrum-textfield-border-color: var(--spectrum-gray-400); --spectrum-textfield-border-color-hover: var(--spectrum-gray-500); diff --git a/components/textfield/themes/spectrum-two.css b/components/textfield/themes/spectrum-two.css new file mode 100644 index 00000000000..47b67ed990b --- /dev/null +++ b/components/textfield/themes/spectrum-two.css @@ -0,0 +1,193 @@ +/*! + * 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 + * + * 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-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); + + --spectrum-texfield-animation-duration: var(--spectrum-animation-duration-100); + + --spectrum-textfield-width: 240px; /* override per api */ + --spectrum-textfield-min-width: var(--spectrum-text-field-minimum-width-multiplier); + --spectrum-textfield-corner-radius: var(--spectrum-corner-radius-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); + --spectrum-textfield-spacing-block-end: var(--spectrum-component-bottom-to-text-100); + --spectrum-textfield-spacing-block-quiet: var(--spectrum-field-edge-to-border-quiet); + + /* default label spacing */ + --spectrum-textfield-label-spacing-block: var(--spectrum-field-label-to-component); + + /* default help text spacing */ + --spectrum-textfield-helptext-spacing-block: var(--spectrum-help-text-to-component); + + /* quiet spacing */ + --spectrum-textfield-icon-spacing-inline-end-quiet-invalid: var(--spectrum-field-edge-to-alert-icon-quiet); + --spectrum-textfield-icon-spacing-inline-end-quiet-valid: var(--spectrum-field-edge-to-validation-icon-quiet); + + /* font styles */ + --spectrum-textfield-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-textfield-font-weight: var(--spectrum-regular-font-weight); + + /* character count */ + --spectrum-textfield-character-count-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-textfield-character-count-font-weight: var(--spectrum-regular-font-weight); + --spectrum-textfield-character-count-spacing-inline: var(--spectrum-spacing-200); + --spectrum-textfield-character-count-spacing-inline-side: var(--spectrum-side-label-character-count-to-field); + + /* focus indicator */ + --spectrum-textfield-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --spectrum-textfield-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + + /*** Colors ***/ + --spectrum-textfield-background-color: var(--spectrum-gray-25); + + /* Text Colors */ + --spectrum-textfield-text-color-default: var(--spectrum-neutral-content-color-default); + --spectrum-textfield-text-color-hover: var(--spectrum-neutral-content-color-hover); + --spectrum-textfield-text-color-focus: var(--spectrum-neutral-content-color-focus); + --spectrum-textfield-text-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); + --spectrum-textfield-text-color-keyboard-focus: var(--spectrum-neutral-content-color-key-focus); + + /* Read Only Text Color */ + --spectrum-textfield-text-color-readonly: var(--spectrum-neutral-content-color-default); + + /* Disabled Colors */ + --spectrum-textfield-background-color-disabled: var(--spectrum-disabled-background-color); + --spectrum-textfield-border-color-disabled: var(--spectrum-disabled-border-color); + --spectrum-textfield-text-color-disabled: var(--spectrum-disabled-content-color); + + /* Invalid Colors */ + --spectrum-textfield-border-color-invalid-default: var(--spectrum-negative-border-color-default); + --spectrum-textfield-border-color-invalid-hover: var(--spectrum-negative-border-color-hover); + --spectrum-textfield-border-color-invalid-focus: var(--spectrum-negative-border-color-focus); + --spectrum-textfield-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); + --spectrum-textfield-border-color-invalid-keyboard-focus: var(--spectrum-negative-border-color-key-focus); + --spectrum-textfield-icon-color-invalid: var(--spectrum-negative-visual-color); + + --spectrum-textfield-text-color-invalid: var(--spectrum-neutral-content-color-default); + + /* Valid Colors */ + --spectrum-textfield-text-color-valid: var(--spectrum-neutral-content-color-default); + --spectrum-textfield-icon-color-valid: var(--spectrum-positive-visual-color); + + /* Focus Indicator Color */ + --spectrum-textfield-focus-indicator-color: var(--spectrum-focus-indicator-color); + + /* Text Area / Multiline */ + --spectrum-text-area-min-inline-size: var(--spectrum-text-area-minimum-width); + --spectrum-text-area-min-block-size: var(--spectrum-text-area-minimum-height); + + /********* Text field t-shirt sizes *********/ + &.spectrum-Textfield--sizeS { + --spectrum-textfield-height: var(--spectrum-component-height-75); + --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-small); + --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-100); + --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-75); + --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-75); + --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-75); + --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-75); + --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-small); + --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-small); + --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-small); + --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-small); + --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-small); + --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-small); + --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-75); + --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); + --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-small); + --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-small); + + /* Text Area / Multiline size small */ + --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-75); + } + + &, + &.spectrum-Textfield--sizeM { + --spectrum-textfield-height: var(--spectrum-component-height-100); + --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-medium); + --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-100); + --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-100); + --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-100); + --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-100); + --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-medium); + --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-medium); + --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium); + --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-medium); + --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-medium); + --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-medium); + --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-75); + --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); + --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-medium); + --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-medium); + + /* Text Area / Multiline size medium */ + --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-100); + } + + &.spectrum-Textfield--sizeL { + --spectrum-textfield-height: var(--spectrum-component-height-200); + --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-large); + --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-200); + --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-200); + --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-200); + --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-200); + --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-large); + --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-large); + --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-large); + --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-large); + --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-large); + --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-large); + --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-100); + --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-100); + --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-large); + --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-large); + + /* Text Area / Multiline size large */ + --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-200); + } + + &.spectrum-Textfield--sizeXL { + --spectrum-textfield-height: var(--spectrum-component-height-300); + --spectrum-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-extra-large); + --spectrum-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --spectrum-textfield-placeholder-font-size: var(--spectrum-font-size-300); + --spectrum-textfield-spacing-inline: var(--spectrum-component-edge-to-text-200); + --spectrum-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-300); + --spectrum-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-300); + --spectrum-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-extra-large); + --spectrum-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-extra-large); + --spectrum-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-extra-large); + --spectrum-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-extra-large); + --spectrum-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-extra-large); + --spectrum-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-extra-large); + --spectrum-textfield-character-count-font-size: var(--spectrum-font-size-200); + --spectrum-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-200); + --spectrum-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-extra-large); + --spectrum-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-extra-large); + + /* Text Area / Multiline size extra large */ + --spectrum-text-area-min-block-size-quiet: var(--spectrum-component-height-300); + } + } +} diff --git a/components/textfield/themes/spectrum.css b/components/textfield/themes/spectrum.css index a4854e02352..49bd851d92b 100644 --- a/components/textfield/themes/spectrum.css +++ b/components/textfield/themes/spectrum.css @@ -11,14 +11,13 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Textfield { - --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); +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { + .spectrum-Textfield { + --spectrum-textfield-background-color: var(--spectrum-gray-50); } } diff --git a/components/thumbnail/CHANGELOG.md b/components/thumbnail/CHANGELOG.md index 208e05187b2..38cad68595d 100644 --- a/components/thumbnail/CHANGELOG.md +++ b/components/thumbnail/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.10 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/opacitycheckerboard@3.0.0-s2-foundations.0 + ## 6.1.4 ### Patch Changes diff --git a/components/thumbnail/index.css b/components/thumbnail/index.css index a8b5a108918..0ffda6d5120 100644 --- a/components/thumbnail/index.css +++ b/components/thumbnail/index.css @@ -11,76 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Thumbnail { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-500); - - --spectrum-thumbnail-border-radius: var(--spectrum-corner-radius-75); - --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: rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-color-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); -} - -.spectrum-Thumbnail--size50 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-50); -} - -.spectrum-Thumbnail--size75 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-75); -} - -.spectrum-Thumbnail--size100 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-100); -} - -.spectrum-Thumbnail--size200 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-200); -} - -.spectrum-Thumbnail--size300 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-300); -} - -.spectrum-Thumbnail--size400 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-400); -} - -.spectrum-Thumbnail--size500 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-500); -} - -.spectrum-Thumbnail--size600 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-600); -} - -.spectrum-Thumbnail--size700 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-700); -} - -.spectrum-Thumbnail--size800 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-800); -} - -.spectrum-Thumbnail--size900 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-900); -} - -.spectrum-Thumbnail--size1000 { - --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-1000); -} +@import "./themes/spectrum-two.css"; .spectrum-Thumbnail { position: relative; @@ -93,6 +24,11 @@ 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; + &::before { content: ""; z-index: 2; @@ -106,7 +42,7 @@ &.is-disabled { opacity: var(--mod-thumbnail-color-opacity-disabled, var(--spectrum-thumbnail-color-opacity-disabled)); } - /* stylelint-disable selector-pseudo-class-no-unknown */ + &.is-focused { overflow: visible; @@ -128,12 +64,6 @@ border-radius: var(--mod-thumbnail-border-radius, var(--spectrum-thumbnail-border-radius)); } } - /* stylelint-enable selector-pseudo-class-no-unknown */ - - /* Friends should align to the top of the tabs */ - vertical-align: top; - overflow: hidden; - z-index: 0; } .spectrum-Thumbnail-layer { @@ -150,7 +80,6 @@ content: none; } - /* stylelint-disable declaration-block-no-redundant-longhand-properties */ &.is-selected { outline-style: solid; outline-color: var(--highcontrast-thumbnail-border-color-selected, var(--mod-thumbnail-border-color-selected, var(--spectrum-thumbnail-border-color-selected))); @@ -170,7 +99,6 @@ 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))); } -/* stylelint-enable declaration-block-no-redundant-longhand-properties */ .spectrum-Thumbnail-image-wrapper { display: flex; @@ -182,8 +110,8 @@ .spectrum-Thumbnail-image { position: relative; - max-block-size: 100%; max-inline-size: 100%; + max-block-size: 100%; z-index: 1; } @@ -213,12 +141,13 @@ /* Windows High Contrast Mode */ @media (forced-colors: active) { .spectrum-Thumbnail { - /* Allow checkerboard pattern to be visible. */ - forced-color-adjust: none; --highcontrast-thumbnail-border-color-selected: Highlight; --highcontrast-thumbnail-focus-indicator-color: Highlight; --highcontrast-thumbnail-border-color: CanvasText; --highcontrast-thumbnail-layer-border-color-inner: Canvas; --highcontrast-thumbnail-layer-border-color-outer: CanvasText; + + /* Allow checkerboard pattern to be visible. */ + forced-color-adjust: none; } } diff --git a/components/thumbnail/metadata/thumbnail.yml b/components/thumbnail/metadata/thumbnail.yml deleted file mode 100644 index 999ae628740..00000000000 --- a/components/thumbnail/metadata/thumbnail.yml +++ /dev/null @@ -1,209 +0,0 @@ -name: Thumbnail -status: Contribution -sections: - - name: Migration Guide - description: | - ### Thumbnail sizing - Thumbnail sizes are specified by appending a number to the size class: `.spectrum-Thumbnail--size*`. Sizes scale expotentially and are based on the Spectrum type scale. These range from size-50 to size-1000. - - ### Image Cover - Thumbnail now offers a way to control the content inside a child `img` tag by adding a modifier `spectrum-Thumbnail--cover` class in addition to the `spectrum-Thumbnail` class. - - ### Layer - Adds variant for when thumbnails are used in layer management (such as the Compact or Detail Layers panels). When used this way the thumbnail is given a thick blue border when selected. - - ### Remove focus-ring class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. -examples: - - id: thumbnail-image - name: Thumbnail - markup: | -
    -
    - women resting head in hands -
    -
    - - id: thumbnail-focus - name: Thumbnail (focused) - markup: | -
    -
    - Woman crouching -
    -
    - - id: thumbnail-disabled - name: Thumbnail (disabled) - description: Thumbnail should only be displayed as disabled if the entire componet is also disabled. - markup: | -
    -
    - Woman crouching -
    -
    - - id: thumbnail-landscape-image - name: Thumbnail (landscape image) - description: Landscape images will fill horizontally and have space above and below. - markup: | -
    -
    - Landscape with mountains and lake -
    -
    - - id: thumbnail-portrait-image - name: Thumbnail (portrait image) - description: Portrait images will fill vertically and have space on either side. - markup: | -
    -
    - Eiffel Tower at night -
    -
    - - id: thumbnail-layer - name: Thumbnail (layer) - description: When used in layer management (such as the Compact or Detail Layers panels) - markup: | -
    -
    - women resting head in hands
    -
    - - id: thumbnail-selected - name: Thumbnail (layer, selected) - description: The thumbnail is given a thick blue border to indicate its selection when used in layer management. - markup: | -
    -
    - Woman crouching -
    -
    - - id: thumbnail-landscape-image-cover - name: Thumbnail Cover (landscape image) - description: Images will maintain their aspect ratio while filling the entire content box. - markup: | -
    -
    - Landscape with mountains and lake -
    -
    - - id: thumbnail-image-over-background - name: Thumbnail (image against background) - description: Thumbnail supports transparent images with a background (color or image) behind it. - markup: | -
    -
    -
    - Woman crouching -
    -
    - - - id: thumbnail-sizes - name: Thumbnail sizes - markup: | -
    -
    -

    50

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    75

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    100

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    200

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    300

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    400

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    500

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    600

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    700

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    800

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    900

    -
    -
    - Woman crouching -
    -
    -
    - -
    -

    1000

    -
    -
    - Woman crouching -
    -
    -
    -
    diff --git a/components/thumbnail/package.json b/components/thumbnail/package.json index 33a7a477c4b..498bfc6f163 100644 --- a/components/thumbnail/package.json +++ b/components/thumbnail/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/thumbnail", - "version": "6.1.4", + "version": "7.0.0-s2-foundations.13", "description": "The Spectrum CSS thumbnail component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/thumbnail/stories/template.js b/components/thumbnail/stories/template.js index 2b40d8e1015..aa476ea722b 100644 --- a/components/thumbnail/stories/template.js +++ b/components/thumbnail/stories/template.js @@ -7,6 +7,9 @@ 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/themes/express.css b/components/thumbnail/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/thumbnail/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..5194159fe7c --- /dev/null +++ b/components/thumbnail/themes/spectrum-two.css @@ -0,0 +1,85 @@ +/*! + * 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 + * + * 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-size: var(--spectrum-thumbnail-size-500); + + --spectrum-thumbnail-border-radius: var(--spectrum-corner-radius-75); + --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: rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-color-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); + } + + .spectrum-Thumbnail--size50 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-50); + } + + .spectrum-Thumbnail--size75 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-75); + } + + .spectrum-Thumbnail--size100 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-100); + } + + .spectrum-Thumbnail--size200 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-200); + } + + .spectrum-Thumbnail--size300 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-300); + } + + .spectrum-Thumbnail--size400 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-400); + } + + .spectrum-Thumbnail--size500 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-500); + } + + .spectrum-Thumbnail--size600 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-600); + } + + .spectrum-Thumbnail--size700 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-700); + } + + .spectrum-Thumbnail--size800 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-800); + } + + .spectrum-Thumbnail--size900 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-900); + } + + .spectrum-Thumbnail--size1000 { + --spectrum-thumbnail-size: var(--spectrum-thumbnail-size-1000); + } +} diff --git a/components/thumbnail/themes/spectrum.css b/components/thumbnail/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/thumbnail/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/toast/CHANGELOG.md b/components/toast/CHANGELOG.md index d335680d525..c735a8f52cb 100644 --- a/components/toast/CHANGELOG.md +++ b/components/toast/CHANGELOG.md @@ -1,5 +1,203 @@ # Change Log +## 11.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.14 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 11.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 11.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 11.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 11.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 11.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 11.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/closebutton@6.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 11.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 11.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 11.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 11.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/closebutton@6.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 10.2.1 ### Patch Changes diff --git a/components/toast/index.css b/components/toast/index.css index 5c1a6c0f40c..16080f639e0 100644 --- a/components/toast/index.css +++ b/components/toast/index.css @@ -11,54 +11,7 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; - -.spectrum-Toast { - /* Hardcoded variables */ - --spectrum-toast-font-weight: var(--spectrum-regular-font-weight); - - /* Size */ - - --spectrum-toast-font-size: var(--spectrum-font-size-100); - --spectrum-toast-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-toast-block-size: var(--spectrum-toast-height); - --spectrum-toast-max-inline-size: var(--spectrum-toast-maximum-width); - --spectrum-toast-border-width: var(--spectrum-border-width-100); - - --spectrum-toast-line-height: var(--spectrum-line-height-100); - --spectrum-toast-line-height-cjk: var(--spectrum-cjk-line-height-100); - - /* Space */ - - --spectrum-toast-spacing-icon-to-text: var(--spectrum-text-to-visual-100); - - --spectrum-toast-spacing-start-edge-to-text-and-icon: var(--spectrum-spacing-300); - --spectrum-toast-spacing-text-and-action-button-to-divider: var(--spectrum-spacing-300); - - --spectrum-toast-spacing-top-edge-to-divider: var(--spectrum-spacing-100); - --spectrum-toast-spacing-bottom-edge-to-divider: var(--spectrum-spacing-100); - - --spectrum-toast-spacing-top-edge-to-icon: var(--spectrum-toast-top-to-workflow-icon); - - --spectrum-toast-spacing-text-to-action-button-horizontal: var(--spectrum-spacing-300); - --spectrum-toast-spacing-close-button: var(--spectrum-spacing-100); - - --spectrum-toast-spacing-block-start: var(--spectrum-spacing-100); - --spectrum-toast-spacing-block-end: var(--spectrum-spacing-100); - - --spectrum-toast-spacing-top-edge-to-text: var(--spectrum-toast-top-to-text); - --spectrum-toast-spacing-bottom-edge-to-text: var(--spectrum-toast-bottom-to-text); - - /* Color */ - - --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-text-and-icon-color: var(--spectrum-white); - - --spectrum-toast-divider-color: var(--spectrum-transparent-white-300); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-Toast { @@ -146,6 +99,7 @@ color: var(--highcontrast-toast-text-and-icon-color, var(--mod-toast-text-and-icon-color, var(--spectrum-toast-text-and-icon-color))); + &:lang(ja), &:lang(zh), &:lang(ko) { diff --git a/components/toast/metadata/metadata.json b/components/toast/metadata/metadata.json index b186fd9d8ef..c7026196ec6 100644 --- a/components/toast/metadata/metadata.json +++ b/components/toast/metadata/metadata.json @@ -90,17 +90,16 @@ "--spectrum-informative-background-color-default", "--spectrum-line-height-100", "--spectrum-negative-background-color-default", - "--spectrum-neutral-background-color-default", "--spectrum-neutral-subdued-background-color-default", "--spectrum-positive-background-color-default", "--spectrum-regular-font-weight", "--spectrum-spacing-100", "--spectrum-spacing-300", "--spectrum-text-to-visual-100", - "--spectrum-transparent-white-300", + "--spectrum-transparent-white-400", "--spectrum-white" ], - "system-theme": ["--system-spectrum-toast-background-color-default"], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-toast-background-color-default", diff --git a/components/toast/metadata/toast.yml b/components/toast/metadata/toast.yml deleted file mode 100644 index 6165311d23a..00000000000 --- a/components/toast/metadata/toast.yml +++ /dev/null @@ -1,187 +0,0 @@ -name: Toast -SpectrumSiteSlug: https://spectrum.adobe.com/page/toast/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Clear button replaced by Close button - Replace `spectrum-ClearButton spectrum-ClearButton--overBackground spectrum-ClearButton--sizeM` with `spectrum-CloseButton spectrum-CloseButton--sizeM spectrum-CloseButton--staticWhite` and remove the `
    ` element. - ### Over background replaced by Static White with Outline - Replace all `.spectrum-Button--overBackground .spectrum-Button--quiet` with `.spectrum-Button--staticWhite .spectrum-Button--outline`. -examples: - - id: toast - name: Default - status: Verified - markup: | -
    -
    -
    Button.xd has been archived
    - -
    -
    - -
    -
    - - id: toast-info - name: Info - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Info_18_S.svg` icon in the Express workflow icon set.* - markup: | -
    - -
    -
    The toast is done
    -
    -
    - -
    -
    - - id: toast-negative - name: Negative - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_18_S.svg` icon in the Express workflow icon set.* - markup: | -
    - -
    -
    The toast is on fire
    - -
    -
    - -
    -
    - - id: toast-positive - name: Positive - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_CheckmarkCircle_18_S.svg` icon in the Express workflow icon set.* - markup: | -
    - -
    -
    The toast is golden brown
    - -
    -
    - -
    -
    - - id: toast - name: Wrapping - status: Verified - markup: | - -
    - -
    -
    - A new version of Lightroom Classic is now available -
    - -
    -
    - -
    -
    - -

    - -
    - -
    -
    - A new version of Lightroom Classic is now available. Use the Update button below to start using the new version. -
    - -
    -
    - -
    -
    - -

    - -
    - -
    -
    - A new version of Lightroom Classic is now available -
    -
    -
    - -
    -
    - -

    - -
    - -
    -
    An update is available
    -
    -
    - -
    -
    diff --git a/components/toast/package.json b/components/toast/package.json index 2a909898b6d..1f1a493da5a 100644 --- a/components/toast/package.json +++ b/components/toast/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/toast", - "version": "10.2.1", + "version": "11.0.0-s2-foundations.13", "description": "The Spectrum CSS toast component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/toast/stories/template.js b/components/toast/stories/template.js index d0723c2264c..9e1591f839c 100644 --- a/components/toast/stories/template.js +++ b/components/toast/stories/template.js @@ -9,6 +9,9 @@ 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 index ab3c76a48eb..75c304800ba 100644 --- a/components/toast/themes/express.css +++ b/components/toast/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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 new file mode 100644 index 00000000000..3c1a07eaf5a --- /dev/null +++ b/components/toast/themes/spectrum-two.css @@ -0,0 +1,60 @@ +/*! + * 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 + * + * 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); + + /* Hardcoded variables */ + --spectrum-toast-font-weight: var(--spectrum-regular-font-weight); + + /* Size */ + --spectrum-toast-font-size: var(--spectrum-font-size-100); + --spectrum-toast-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-toast-block-size: var(--spectrum-toast-height); + --spectrum-toast-max-inline-size: var(--spectrum-toast-maximum-width); + --spectrum-toast-border-width: var(--spectrum-border-width-100); + + --spectrum-toast-line-height: var(--spectrum-line-height-100); + --spectrum-toast-line-height-cjk: var(--spectrum-cjk-line-height-100); + + /* Space */ + --spectrum-toast-spacing-icon-to-text: var(--spectrum-text-to-visual-100); + + --spectrum-toast-spacing-start-edge-to-text-and-icon: var(--spectrum-spacing-300); + --spectrum-toast-spacing-text-and-action-button-to-divider: var(--spectrum-spacing-300); + + --spectrum-toast-spacing-top-edge-to-divider: var(--spectrum-spacing-100); + --spectrum-toast-spacing-bottom-edge-to-divider: var(--spectrum-spacing-100); + + --spectrum-toast-spacing-top-edge-to-icon: var(--spectrum-toast-top-to-workflow-icon); + + --spectrum-toast-spacing-text-to-action-button-horizontal: var(--spectrum-spacing-300); + --spectrum-toast-spacing-close-button: var(--spectrum-spacing-100); + + --spectrum-toast-spacing-block-start: var(--spectrum-spacing-100); + --spectrum-toast-spacing-block-end: var(--spectrum-spacing-100); + + --spectrum-toast-spacing-top-edge-to-text: var(--spectrum-toast-top-to-text); + --spectrum-toast-spacing-bottom-edge-to-text: var(--spectrum-toast-bottom-to-text); + + /* Color */ + --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-text-and-icon-color: var(--spectrum-white); + + --spectrum-toast-divider-color: var(--spectrum-transparent-white-400); + } +} diff --git a/components/toast/themes/spectrum.css b/components/toast/themes/spectrum.css index e741ff3c6cc..84572229247 100644 --- a/components/toast/themes/spectrum.css +++ b/components/toast/themes/spectrum.css @@ -11,8 +11,13 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; + +@container style(--system: legacy) { .spectrum-Toast { - --spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - } + --spectrum-toast-divider-color: var(--spectrum-transparent-white-300); + } } diff --git a/components/tooltip/CHANGELOG.md b/components/tooltip/CHANGELOG.md index 7bd1f107d34..9ed5fded63f 100644 --- a/components/tooltip/CHANGELOG.md +++ b/components/tooltip/CHANGELOG.md @@ -1,5 +1,175 @@ # Change Log +## 7.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 6.1.4 ### Patch Changes diff --git a/components/tooltip/index.css b/components/tooltip/index.css index 52cc8832746..f6d1d8eda13 100644 --- a/components/tooltip/index.css +++ b/components/tooltip/index.css @@ -11,65 +11,8 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; @import "@spectrum-css/commons/overlay.css"; - -.spectrum-Tooltip { - --spectrum-tooltip-animation-duration: var(--spectrum-animation-duration-100); - - /* 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-font-size: var(--spectrum-font-size-75); - --spectrum-tooltip-line-height: var(--spectrum-line-height-100); - --spectrum-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100); - --spectrum-tooltip-font-weight: var(--spectrum-regular-font-weight); - - /* horizontal spacing */ - --spectrum-tooltip-spacing-inline: var(--spectrum-component-edge-to-text-75); - - /* vertical spacing */ - --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); - - /* 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%; - - /* 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); - - /* neutral background changes per theme */ - --spectrum-tooltip-background-color-default: var(--spectrum-tooltip-backgound-color-default-neutral); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-Tooltip { @@ -77,11 +20,12 @@ } .spectrum-Tooltip-tip { - forced-color-adjust: none; --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; } } @@ -157,6 +101,7 @@ inset-block-start: 100%; /* stylelint-disable-next-line csstools/use-logical -- intentional use of non-logical property */ left: 50%; + transform: translateX(-50%); background-color: var(--highcontrast-tooltip-background-color-default, var(--mod-tooltip-background-color-default, var(--spectrum-tooltip-background-color-default))); @@ -349,6 +294,7 @@ block-size: var(--mod-tooltip-icon-height, var(--spectrum-tooltip-icon-height)); align-self: flex-start; flex-shrink: 0; + } /****** Label ******/ @@ -357,6 +303,7 @@ line-height: var(--mod-tooltip-line-height, var(--spectrum-tooltip-line-height)); margin-block-start: var(--mod-tooltip-spacing-block-start, var(--spectrum-tooltip-spacing-block-start)); margin-block-end: var(--mod-tooltip-spacing-block-end, var(--spectrum-tooltip-spacing-block-end)); + } /****** Tooltip Placement and Animation Direction ******/ diff --git a/components/tooltip/metadata/metadata.json b/components/tooltip/metadata/metadata.json index 8f711735341..3aea2e551ee 100644 --- a/components/tooltip/metadata/metadata.json +++ b/components/tooltip/metadata/metadata.json @@ -384,7 +384,6 @@ "--spectrum-informative-background-color-default", "--spectrum-line-height-100", "--spectrum-negative-background-color-default", - "--spectrum-neutral-background-color-default", "--spectrum-neutral-subdued-background-color-default", "--spectrum-positive-background-color-default", "--spectrum-regular-font-weight", @@ -392,7 +391,7 @@ "--spectrum-white", "--spectrum-workflow-icon-size-50" ], - "system-theme": ["--system-spectrum-tooltip-backgound-color-default-neutral"], + "system-theme": [], "passthroughs": [], "high-contrast": [ "--highcontrast-tooltip-background-color-default", diff --git a/components/tooltip/metadata/tooltip.yml b/components/tooltip/metadata/tooltip.yml deleted file mode 100644 index ec589f02056..00000000000 --- a/components/tooltip/metadata/tooltip.yml +++ /dev/null @@ -1,531 +0,0 @@ -name: Tooltip -SpectrumSiteSlug: https://spectrum.adobe.com/page/tooltip/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### Version 6.1.1 - This patch includes tooltip placement adjustments for RTL bugs and increased coverage with Chromatic VRTs. Some clarification on placements: - - - If you use a Start or End placement, the tooltip *will* change to the other side of the source when the text direction (LTR/RTL) is changed - - If you use a Left or Right placement, the tooltip *will not* change sides when text direction is changed - - As a result of the placement specifications, some placements intentionally use non-logical properties in the CSS (particularly for tooltips that show on hover). - - ### Tooltip now has 22 directions - - 10 of the new directions are logical and should be tested both left-to-right and right-to-left -examples: - - id: tooltip - name: Neutral - status: Verified - markup: | - - Label - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - id: tooltip-info - name: Informative - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Info_14_S.svg` icon in the Express workflow icon set.* - markup: | - - Label - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - - Info - - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - id: tooltip-positive - name: Positive - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_CheckmarkCircle_14_S.svg` icon in the Express workflow icon set.* - markup: | - - Label - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - - Success - - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - id: tooltip-negative - name: Negative - status: Verified - description: | - *Spectrum for Adobe Express uses a different icon. Use the `SX_Alert_14_S.svg` icon in the Express workflow icon set.* - markup: | - - Label - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - - Warning - - - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit - - - - id: tooltip - name: Directions - status: Verified - description: "Tooltips can be top, top left, top right, top start, top end, bottom, bottom left, bottom right, bottom start, bottom end, left, left top, left bottom, start, start top, start bottom, right, right top, right bottom, end, end top, end bottom. The default placement value is at the top." - markup: | -
    -
    -

    Top

    - - - Top - - -

    - - - Top Left - - -

    - - - Top Right - - -

    - - - Top Start - - -

    - - - Top End - - -

    -
    - -
    -

    Left

    - - Left - - -

    - - - Left Top - - -

    - - - Left Bottom - - -

    -
    - -
    -

    Right

    - - Right - - -

    - - - Right Top - - -

    - - - Right Bottom - - -

    -
    - -
    -

    Bottom

    - - Bottom - - -

    - - - Bottom Left - - -

    - - - Bottom Right - - -

    - - - Bottom Start - - -

    - - - Bottom End - - -

    -
    - -
    -

    Start

    - - Start - - -

    - - - Start Top - - -

    - - - Start Bottom - - -

    -
    - -
    -

    End

    - - End - - -

    - - - End Top - - -

    - - - End Bottom - - -

    -
    -
    - - - id: tooltip-success - name: Success - status: Deprecated - details: Use `positive` instead. - markup: | - - Label - - - - id: tooltip-error - name: Error - status: Deprecated - details: Use `negative` instead. - markup: | - - Label - - - - id: tooltip-help - name: Help - status: Deprecated - details: Use `info` - description: | - An informative tooltip with a help icon. - - *Spectrum for Adobe Express uses a different icon. Use the `SX_Help_14_S.svg` icon in the Express workflow icon set.* - markup: | - - - Help - - - - id: tooltip-showOnHover - name: Show on hover - status: Contribution - description: A tooltip that shows on hover using CSS only. Note that this approach does not support text wrapping. Also, note that these Tooltips will likely not work on touch-enabled devices without additional client-side scripting. - markup: | -
    -
    -

    Top

    - - - Top - - Top - - - - -

    - - - Top Left - - Top Left - - - -

    - - - Top Right - - Top Right - - - -

    - - - Top Start - - Top Start - - - -

    - - - Top End - - Top End - - - -

    -
    - -
    -

    Left

    - - Left - - Left - - - -

    - - - Left Top - - Left Top - - - -

    - - - Left Bottom - - Left Bottom - - - -

    -
    - -
    -

    Right

    - - Right - - Right - - - -

    - - - Right Top - - Right Top - - - -

    - - - Right Bottom - - Right Bottom - - - -

    -
    - -
    -

    Bottom

    - - Bottom - - Bottom - - - -

    - - - Bottom Left - - Bottom Left - - - -

    - - - Bottom Right - - Bottom Right - - - -

    - - - Bottom Start - - Bottom Start - - - -

    - - - Bottom End - - Bottom End - - - -

    -
    - -
    -

    Start

    - - Start - - Start - - - -

    - - - Start Top - - Start Top - - - -

    - - - Start Bottom - - Start Bottom - - - -

    -
    - -
    -

    End

    - - End - - End - - - -

    - - - End Top - - End Top - - - -

    - - - End Bottom - - End Bottom - - - -

    -
    -
    diff --git a/components/tooltip/package.json b/components/tooltip/package.json index 731c1b606b0..6fc92859c6d 100644 --- a/components/tooltip/package.json +++ b/components/tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/tooltip", - "version": "6.1.4", + "version": "7.0.0-s2-foundations.13", "description": "The Spectrum CSS tooltip component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/tooltip/stories/template.js b/components/tooltip/stories/template.js index 33d25f90fdb..cce02bc677e 100644 --- a/components/tooltip/stories/template.js +++ b/components/tooltip/stories/template.js @@ -5,6 +5,9 @@ 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-Tooltip", diff --git a/components/tooltip/themes/express.css b/components/tooltip/themes/express.css index c49466f84fe..7c0db1ed055 100644 --- a/components/tooltip/themes/express.css +++ b/components/tooltip/themes/express.css @@ -11,9 +11,12 @@ * governing permissions and limitations under the License. */ + +/* @combine .spectrum.spectrum--express */ + @import "./spectrum.css"; -@container (--system: express) { +@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 new file mode 100644 index 00000000000..f9fdfd469ed --- /dev/null +++ b/components/tooltip/themes/spectrum-two.css @@ -0,0 +1,73 @@ +/*! + * 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 + * + * 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); + + --spectrum-tooltip-animation-duration: var(--spectrum-animation-duration-100); + + /* 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-font-size: var(--spectrum-font-size-75); + --spectrum-tooltip-line-height: var(--spectrum-line-height-100); + --spectrum-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100); + --spectrum-tooltip-font-weight: var(--spectrum-regular-font-weight); + + /* horizontal spacing */ + --spectrum-tooltip-spacing-inline: var(--spectrum-component-edge-to-text-75); + + /* vertical spacing */ + --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); + + /* 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%; + + /* 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); + + /* neutral background changes per theme */ + --spectrum-tooltip-background-color-default: var(--spectrum-tooltip-backgound-color-default-neutral); + } +} diff --git a/components/tooltip/themes/spectrum.css b/components/tooltip/themes/spectrum.css index e0a55504823..5a930981122 100644 --- a/components/tooltip/themes/spectrum.css +++ b/components/tooltip/themes/spectrum.css @@ -11,8 +11,7 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) { - .spectrum-Tooltip { - --spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-subdued-background-color-default); - } -} + +/* @combine .spectrum.spectrum--legacy */ + +@import "./spectrum-two.css"; diff --git a/components/tray/CHANGELOG.md b/components/tray/CHANGELOG.md index bdf8266fa30..43369b29d24 100644 --- a/components/tray/CHANGELOG.md +++ b/components/tray/CHANGELOG.md @@ -1,5 +1,231 @@ # Change Log +## 4.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/divider@4.0.0-s2-foundations.13 + - @spectrum-css/button@14.0.0-s2-foundations.15 + - @spectrum-css/dialog@11.0.0-s2-foundations.13 + - @spectrum-css/modal@6.0.0-s2-foundations.14 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 4.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/divider@4.0.0-s2-foundations.12 + - @spectrum-css/button@14.0.0-s2-foundations.12 + - @spectrum-css/dialog@11.0.0-s2-foundations.12 + - @spectrum-css/modal@6.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 4.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/divider@4.0.0-s2-foundations.11 + - @spectrum-css/button@14.0.0-s2-foundations.11 + - @spectrum-css/dialog@11.0.0-s2-foundations.11 + - @spectrum-css/modal@6.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 4.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/divider@4.0.0-s2-foundations.10 + - @spectrum-css/button@14.0.0-s2-foundations.10 + - @spectrum-css/dialog@11.0.0-s2-foundations.10 + - @spectrum-css/modal@6.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 4.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/divider@4.0.0-s2-foundations.9 + - @spectrum-css/button@14.0.0-s2-foundations.9 + - @spectrum-css/dialog@11.0.0-s2-foundations.9 + - @spectrum-css/modal@6.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 4.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/divider@4.0.0-s2-foundations.8 + - @spectrum-css/button@14.0.0-s2-foundations.8 + - @spectrum-css/dialog@11.0.0-s2-foundations.8 + - @spectrum-css/modal@6.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 4.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/divider@4.0.0-s2-foundations.7 + - @spectrum-css/button@14.0.0-s2-foundations.7 + - @spectrum-css/dialog@11.0.0-s2-foundations.7 + - @spectrum-css/modal@6.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 4.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/divider@4.0.0-s2-foundations.6 + - @spectrum-css/button@14.0.0-s2-foundations.6 + - @spectrum-css/dialog@11.0.0-s2-foundations.6 + - @spectrum-css/modal@6.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 4.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/divider@4.0.0-s2-foundations.5 + - @spectrum-css/button@14.0.0-s2-foundations.5 + - @spectrum-css/dialog@11.0.0-s2-foundations.5 + - @spectrum-css/modal@6.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 4.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/divider@4.0.0-s2-foundations.4 + - @spectrum-css/button@14.0.0-s2-foundations.4 + - @spectrum-css/dialog@11.0.0-s2-foundations.4 + - @spectrum-css/modal@6.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 4.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/divider@4.0.0-s2-foundations.3 + - @spectrum-css/button@14.0.0-s2-foundations.3 + - @spectrum-css/dialog@11.0.0-s2-foundations.3 + - @spectrum-css/modal@6.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 4.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/divider@4.0.0-s2-foundations.2 + - @spectrum-css/button@14.0.0-s2-foundations.2 + - @spectrum-css/dialog@11.0.0-s2-foundations.2 + - @spectrum-css/modal@6.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 4.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/divider@4.0.0-s2-foundations.1 + - @spectrum-css/button@14.0.0-s2-foundations.1 + - @spectrum-css/dialog@11.0.0-s2-foundations.1 + - @spectrum-css/modal@6.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 4.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/divider@4.0.0-s2-foundations.0 + - @spectrum-css/button@14.0.0-s2-foundations.0 + - @spectrum-css/modal@6.0.0-s2-foundations.0 + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/dialog@11.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + ## 3.1.3 ### Patch Changes diff --git a/components/tray/index.css b/components/tray/index.css index 57b17c7f11b..46fe1dc9818 100644 --- a/components/tray/index.css +++ b/components/tray/index.css @@ -11,23 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-Tray { - /* Placeholder tokens */ - --spectrum-tray-exit-animation-delay: 0ms; - --spectrum-tray-entry-animation-delay: 160ms; - - /* Maximum width for landscape */ - --spectrum-tray-max-inline-size: 375px; - - /* https://spectrum.adobe.com/page/tray/#Maximum-height */ - --spectrum-tray-spacing-edge-to-tray-safe-zone: 64px; - - --spectrum-tray-entry-animation-duration: var(--spectrum-animation-duration-500); - --spectrum-tray-exit-animation-duration: var(--spectrum-animation-duration-100); - - --spectrum-tray-corner-radius: var(--spectrum-corner-radius-100); - --spectrum-tray-background-color: var(--spectrum-background-layer-2-color); -} +@import "./themes/spectrum-two.css"; .spectrum-Tray-wrapper { inset-inline-start: 0; @@ -41,9 +25,10 @@ } .spectrum-Tray { + --mod-modal-max-width: 100%; + /* Default to full width when the viewport is in portrait orientation */ inline-size: 100%; - --mod-modal-max-width: 100%; max-inline-size: 100%; max-block-size: calc(100vh - var(--mod-tray-spacing-edge-to-tray-safe-zone, var(--spectrum-tray-spacing-edge-to-tray-safe-zone))); @@ -59,18 +44,13 @@ transform: translateY(100%); /* Exit animations */ - transition: - opacity var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) cubic-bezier(0.5, 0, 1, 1) var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)), - visibility var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) linear calc(var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)) + var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration))), - transform var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) cubic-bezier(0.5, 0, 1, 1) var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)); + transition: opacity var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) cubic-bezier(0.5, 0, 1, 1) var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)), visibility var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) linear calc(var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)) + var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration))), transform var(--mod-tray-exit-animation-duration, var(--spectrum-tray-exit-animation-duration)) cubic-bezier(0.5, 0, 1, 1) var(--mod-tray-exit-animation-delay, var(--spectrum-tray-exit-animation-delay)); background-color: var(--highcontrast-tray-background-color, var(--mod-tray-background-color, var(--spectrum-tray-background-color))); &.is-open { /* Entry animations */ - transition: - transform var(--mod-tray-entry-animation-duration, var(--spectrum-tray-entry-animation-duration)) cubic-bezier(0, 0, 0.4, 1) var(--mod-tray-entry-animation-delay, var(--spectrum-tray-entry-animation-delay)), - opacity var(--spectrum-tray-entry-animation-duration, var(--mod-tray-entry-animation-duration)) cubic-bezier(0, 0, 0.4, 1) var(--mod-tray-entry-animation-delay, var(--spectrum-tray-entry-animation-delay)); + transition: transform var(--mod-tray-entry-animation-duration, var(--spectrum-tray-entry-animation-duration)) cubic-bezier(0, 0, 0.4, 1) var(--mod-tray-entry-animation-delay, var(--spectrum-tray-entry-animation-delay)), opacity var(--spectrum-tray-entry-animation-duration, var(--mod-tray-entry-animation-duration)) cubic-bezier(0, 0, 0.4, 1) var(--mod-tray-entry-animation-delay, var(--spectrum-tray-entry-animation-delay)); transform: translateY(0); } } diff --git a/components/tray/metadata/tray.yml b/components/tray/metadata/tray.yml deleted file mode 100644 index e0f5f5c138c..00000000000 --- a/components/tray/metadata/tray.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Tray -description: | - The Tray component is typically used to portray information on mobile devices or smaller screens. - -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. -SpectrumSiteSlug: https://spectrum.adobe.com/page/tray/ -examples: - - id: tray - name: Standard - description: The following example displays differently depending on the orientation of the viewport, using the `orientation` CSS media feature. In portrait orientation, a Tray is displayed at the bottom of the screen and takes up the full width of the view. In landscape orientation, it keeps its portrait width, is centered horizontally, and has rounded upper corners. - markup: | -
    -
    - -
    -
    diff --git a/components/tray/package.json b/components/tray/package.json index f5003305fe5..3d95cb73242 100644 --- a/components/tray/package.json +++ b/components/tray/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/tray", - "version": "3.1.3", + "version": "4.0.0-s2-foundations.13", "description": "The Spectrum CSS tray component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/tray/stories/template.js b/components/tray/stories/template.js index 2c3bec83c38..2f1d0421c4c 100644 --- a/components/tray/stories/template.js +++ b/components/tray/stories/template.js @@ -5,6 +5,9 @@ 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-Tray", diff --git a/components/tray/stories/tray.stories.js b/components/tray/stories/tray.stories.js index cbbf9dce2a8..1f7b5a29ff1 100644 --- a/components/tray/stories/tray.stories.js +++ b/components/tray/stories/tray.stories.js @@ -65,5 +65,6 @@ WithForcedColors.parameters = { chromatic: { forcedColors: "active", modes: disableDefaultModes, + viewport: "mobile2", }, }; diff --git a/components/tray/themes/express.css b/components/tray/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/tray/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/tray/themes/spectrum-two.css b/components/tray/themes/spectrum-two.css new file mode 100644 index 00000000000..de56e809b83 --- /dev/null +++ b/components/tray/themes/spectrum-two.css @@ -0,0 +1,32 @@ +/*! + * 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 + * + * 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-Tray { + /* Placeholder tokens */ + --spectrum-tray-exit-animation-delay: 0ms; + --spectrum-tray-entry-animation-delay: 160ms; + + /* Maximum width for landscape */ + --spectrum-tray-max-inline-size: 375px; + + /* https://spectrum.adobe.com/page/tray/#Maximum-height */ + --spectrum-tray-spacing-edge-to-tray-safe-zone: 64px; + + --spectrum-tray-entry-animation-duration: var(--spectrum-animation-duration-500); + --spectrum-tray-exit-animation-duration: var(--spectrum-animation-duration-100); + + --spectrum-tray-corner-radius: var(--spectrum-corner-radius-100); + --spectrum-tray-background-color: var(--spectrum-background-layer-2-color); + } +} diff --git a/components/tray/themes/spectrum.css b/components/tray/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/tray/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/treeview/CHANGELOG.md b/components/treeview/CHANGELOG.md index 1ef8af0d438..80b18db807d 100644 --- a/components/treeview/CHANGELOG.md +++ b/components/treeview/CHANGELOG.md @@ -1,5 +1,200 @@ # Change Log +## 11.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.13 + - @spectrum-css/icon@8.0.0-s2-foundations.15 + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 11.0.0-s2-foundations.13 + +### Minor Changes + +- [#3036](https://github.com/adobe/spectrum-css/pull/3036) [`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - [CSS-890]: adjusts --mods to be applied inside of index.css + +### Patch Changes + +- Updated dependencies [[`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.18 + +## 11.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.12 + - @spectrum-css/icon@8.0.0-s2-foundations.13 + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 11.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.11 + - @spectrum-css/icon@8.0.0-s2-foundations.12 + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 11.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.10 + - @spectrum-css/icon@8.0.0-s2-foundations.11 + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 11.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.9 + - @spectrum-css/icon@8.0.0-s2-foundations.9 + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 11.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.8 + - @spectrum-css/icon@8.0.0-s2-foundations.8 + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 11.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.7 + - @spectrum-css/icon@8.0.0-s2-foundations.7 + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 11.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + - @spectrum-css/thumbnail@7.0.0-s2-foundations.6 + - @spectrum-css/icon@8.0.0-s2-foundations.6 + +## 11.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.5 + - @spectrum-css/icon@8.0.0-s2-foundations.5 + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 11.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.4 + - @spectrum-css/icon@8.0.0-s2-foundations.4 + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 11.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.3 + - @spectrum-css/icon@8.0.0-s2-foundations.3 + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 11.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.2 + - @spectrum-css/icon@8.0.0-s2-foundations.2 + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 11.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/thumbnail@7.0.0-s2-foundations.1 + - @spectrum-css/icon@8.0.0-s2-foundations.1 + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 11.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + - @spectrum-css/icon@8.0.0-s2-foundations.0 + - @spectrum-css/thumbnail@7.0.0-s2-foundations.0 + ## 10.3.0 ### Minor Changes diff --git a/components/treeview/index.css b/components/treeview/index.css index 5a19ea53f18..ccd520dd046 100644 --- a/components/treeview/index.css +++ b/components/treeview/index.css @@ -11,116 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum-TreeView { - --spectrum-treeview-line-height: var(--spectrum-line-height-200); - --spectrum-treeview-margin-block: 1em; - --spectrum-treeview-font-size: var(--spectrum-font-size-100); - - --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-100); - --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-medium); - - --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-100); - --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-100); - - --spectrum-treeview-section-spacing: var(--spectrum-treeview-item-indentation-medium); - --spectrum-treeview-heading-font-weight: var(--spectrum-bold-font-weight); - --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-100); - --spectrum-treeview-heading-color: var(--spectrum-heading-color); - - --spectrum-treeview-item-border-size: var(--spectrum-border-width-200); - --spectrum-treeview-item-border-size-selected: 1px; - --spectrum-treeview-item-border-radius: 0px; - - --spectrum-treeview-item-border-color-selected: var(--spectrum-blue-800); - --spectrum-treeview-item-border-color-focus: var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-200); - --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-200); - - --spectrum-treeview-item-border-color-quiet-selected: transparent; - - --spectrum-treeview-item-icon-gap: var(--spectrum-text-to-visual-75); - --spectrum-treeview-item-icon-color: var(--spectrum-gray-700); - --spectrum-treeview-item-icon-color-hover: var(--spectrum-gray-900); - --spectrum-treeview-item-icon-color-focus: var(--spectrum-gray-900); - --spectrum-treeview-item-icon-color-selected: var(--spectrum-gray-900); - --spectrum-treeview-item-icon-color-disabled: var(--spectrum-disabled-content-color); - - --spectrum-treeview-item-text-color: var(--spectrum-neutral-content-color-default); - --spectrum-treeview-item-text-color-selected: var(--spectrum-gray-900); - --spectrum-treeview-item-text-color-disabled: var(--spectrum-gray-500); - --spectrum-treeview-item-text-color-focus: var(--spectrum-gray-900); - --spectrum-treeview-item-text-color-hover: var(--spectrum-gray-900); - - --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-100)); - --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-medium); - - --spectrum-treeview-item-min-block-size-thumbnail-offset: var(--spectrum-treeview-item-min-block-size-thumbnail-offset-medium, 0px); - - --spectrum-treeview-indicator-animation-duration: var(--spectrum-animation-duration-100); - - &:dir(rtl) { - --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); - } -} - -.spectrum-TreeView--sizeS { - --spectrum-treeview-font-size: var(--spectrum-font-size-75); - - --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-75); - --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-small); - --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-75); - - --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-75); - --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-75)); - --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-75); - --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-small); - - --spectrum-treeview-item-min-block-size-thumbnail-offset: 6px; -} - -.spectrum-TreeView--sizeL { - --spectrum-treeview-font-size: var(--spectrum-font-size-200); - - --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-large); - --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-200); - --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-200); - - --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-200); - --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-200)); - --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-200); - --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-large); - - --spectrum-treeview-item-min-block-size-thumbnail-offset: 0px; -} - -.spectrum-TreeView--sizeXL { - --spectrum-treeview-font-size: var(--spectrum-font-size-300); - - --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-extra-large); - --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-300); - --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-300); - - --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-300); - --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-300)); - --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-300); - --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large); - - --spectrum-treeview-item-min-block-size-thumbnail-offset: 0px; -} - -.spectrum-TreeView--quiet { - --mod-treeview-item-background-color-selected: var(--highcontrast-treeview-item-background-color-selected, var(--mod-treeview-item-background-color-quiet-selected, var(--spectrum-treeview-item-background-color-quiet-selected))); - --mod-treeview-item-border-color-selected: var(--highcontrast-treeview-item-border-color-selected, var(--mod-treeview-item-border-color-selected-quiet, transparent)); -} - -.spectrum-TreeView--thumbnail { - --mod-treeview-item-min-block-size: var(--mod-treeview-item-min-block-size-thumbnail, calc(var(--spectrum-treeview-item-min-block-size) + var(--spectrum-treeview-item-min-block-size-thumbnail-offset))); -} - -.spectrum-TreeView--detached { - --mod-treeview-item-border-radius: var(--mod-treeview-item-border-radius-detached, var(--spectrum-corner-radius-100)); -} +@import "./themes/spectrum-two.css"; @media (forced-colors: active) { .spectrum-TreeView { @@ -174,6 +65,10 @@ margin-block: var(--mod-treeview-margin-block, var(--spectrum-treeview-margin-block)); font-size: var(--mod-treeview-font-size, var(--spectrum-treeview-font-size)); + &:dir(rtl) { + --spectrum-logical-rotation: matrix(-1, 0, 0, 1, 0, 0); + } + /* Close (hide) nested treeviews by default. */ .spectrum-TreeView { position: static; @@ -406,9 +301,20 @@ } /* ***** VARIANTS ***** */ +.spectrum-TreeView--quiet { + --spectrum-treeview-item-background-color-selected: var(--highcontrast-treeview-item-background-color-selected, var(--mod-treeview-item-background-color-quiet-selected, var(--spectrum-treeview-item-background-color-quiet-selected))); + --mod-treeview-item-border-color-selected: var(--highcontrast-treeview-item-border-color-selected, var(--mod-treeview-item-border-color-selected-quiet, var(--spectrum-treeview-item-border-color-quiet-selected))); +} + .spectrum-TreeView--thumbnail { + --mod-treeview-item-min-block-size: var(--mod-treeview-item-min-block-size-thumbnail, calc(var(--spectrum-treeview-item-min-block-size) + var(--spectrum-treeview-item-min-block-size-thumbnail-offset))); + .spectrum-TreeView-itemThumbnail { flex-shrink: 0; margin-inline-end: var(--mod-treeview-item-icon-gap, var(--spectrum-treeview-item-icon-gap)); } } + +.spectrum-TreeView--detached { + --spectrum-treeview-item-border-radius: var(--mod-treeview-item-border-radius-detached, var(--spectrum-corner-radius-100)); +} diff --git a/components/treeview/metadata/metadata.json b/components/treeview/metadata/metadata.json index 9902324dd1c..55f8ae45132 100644 --- a/components/treeview/metadata/metadata.json +++ b/components/treeview/metadata/metadata.json @@ -158,7 +158,7 @@ "--spectrum-font-size-200", "--spectrum-font-size-300", "--spectrum-font-size-75", - "--spectrum-gray-200", + "--spectrum-gray-100", "--spectrum-gray-500", "--spectrum-gray-700", "--spectrum-gray-900", diff --git a/components/treeview/metadata/treeview.yml b/components/treeview/metadata/treeview.yml deleted file mode 100644 index b55aba22534..00000000000 --- a/components/treeview/metadata/treeview.yml +++ /dev/null @@ -1,846 +0,0 @@ -name: Tree view -description: | - The typical usage of a Tree view involves nesting a `.spectrum-Treeview` element within the `.spectrum-TreeView-item` parent element. - The visibility of child treeviews is controlled by adding `.is-open` to the `.spectrum-TreeView-item` of the parent element. -SpectrumSiteSlug: https://spectrum.adobe.com/page/tree-view/ -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Migration Guide - description: | - ### T-shirt sizing - Tree view now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-TreeView--size*` class. - - ### Additional classes - - The following classes must be added: - - * `.spectrum-TreeView-label` is now required to wrap labels to enable truncation behavior - * `.spectrum-Treeview-icon` is now required on all non-indicator icons - - ### Renamed classes - - * `.spectrum-TreeView-standalone` renamed to `.spectrum-TreeView-detached` - * `.spectrum-TreeView-indicator` renamed to `.spectrum-TreeView-itemIndicator` - * `.spectrum-TreeView-icon` renamed to `.spectrum-TreeView-itemIcon` - - ### Moved classes - - * `.is-drop-target` and `.is-selected` must be placed on the `.spectrum-TreeView-item` element - - ### Workflow icon size - - * Please replace `.spectrum-Icon--sizeS` with `.spectrum-Icon--sizeM`. - - ### Removed `focus-ring` class - We've migrated away from the focus-ring class in favor of the native `:focus-visible` pseudo-class due to changes in browser support. - - ### Revised sections markup - The markup for sections has changed so that the heading is now a child of an `li` instead of the `ul`, to ensure valid markup. An additional - class `spectrum-TreeView-section` has been added for the first level `li` elements that contain the section heading and its child Tree view. - -examples: - - id: treeview-standard - name: Standard - description: | - Standard treeviews span the entire width of their parent container and are used within panels. - markup: | - - - - id: treeview-selected - name: Selected - description: | - A Tree view with a selected item. - markup: | - - - - id: treeview-quiet - name: Quiet - description: | - A Tree view with quiet selection. - markup: | - - - - id: treeview-detached - name: Detached - description: | - Detached Tree views are meant to be used outside of a panel. Items in detached Tree views have rounded corners. - markup: | - - - - id: treeview-detached-quiet - name: Detached (quiet) - description: | - A detached, quiet Tree view. - markup: | - - - - id: treeview-folders-files - name: Folders & Files - description: A nested Tree view with folders and files. - markup: | - - - - id: treeview-thumbnail - name: Thumbnail - description: Use Thumbnails when a user needs to have a preview of the content contained in a Tree view item. For its primary use within layer panels, the first example uses the layer variant of Thumbnail. The second example uses the default Thumbnail. - markup: | - - - - - - id: treeview-thumbnail-quiet - name: Thumbnail (quiet) - description: A quiet Tree view with Thumbnails using the layer variant. - When using the quiet variant, less visual emphasis is given to the selected Tree view item. - markup: | - - - - id: treeview-disabled - name: Disabled - markup: | -
      -
    • - Layer 1 -
    • - -
    • - - - Group 1 - - -
    • - -
    • - Layer 4 -
    • -
    • - Layer 5 -
    • - -
    • - - - Group 2 - - - - - id: treeview-sections - name: Sections - markup: | - - - - id: treeview-drop-target - name: Drop target - description: | - A Tree view with an item that's a drop target. - markup: | - - - - id: treeview-sizing - name: Sizing - description: | - Tree view supports t-shirt sizing (`s`, `m`, `l`, `xl`) - markup: | -
      -

      S

      - -
      -
      -

      M

      - -
      -
      -

      L

      - -
      -
      -

      XL

      - -
      - - - id: treeview-icons - name: Icons - description: A Tree view with icons. - markup: | - - - - id: treeview-flat - name: Flat - description: | - A Tree view drawn without nesting, suitable for infinite scrolling. With this version of the treeview, you must manage the visibility of "child items" manually based on the open state of the "parent item." The level of visual indentation is handled by a numbered `indent` variant class. - markup: | - diff --git a/components/treeview/package.json b/components/treeview/package.json index 81527f284be..d3a8b393d62 100644 --- a/components/treeview/package.json +++ b/components/treeview/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/treeview", - "version": "10.3.0", + "version": "11.0.0-s2-foundations.14", "description": "The Spectrum CSS Tree view component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/treeview/stories/template.js b/components/treeview/stories/template.js index 9f5c0a787a0..f6db7f9756c 100644 --- a/components/treeview/stories/template.js +++ b/components/treeview/stories/template.js @@ -9,6 +9,9 @@ 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 new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/treeview/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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 new file mode 100644 index 00000000000..f0db175e9fb --- /dev/null +++ b/components/treeview/themes/spectrum-two.css @@ -0,0 +1,112 @@ +/*! + * 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 + * + * 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-line-height: var(--spectrum-line-height-200); + --spectrum-treeview-margin-block: 1em; + --spectrum-treeview-font-size: var(--spectrum-font-size-100); + + --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-100); + --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-medium); + + --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-100); + --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-100); + + --spectrum-treeview-section-spacing: var(--spectrum-treeview-item-indentation-medium); + --spectrum-treeview-heading-font-weight: var(--spectrum-bold-font-weight); + --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-100); + --spectrum-treeview-heading-color: var(--spectrum-heading-color); + + --spectrum-treeview-item-border-size: var(--spectrum-border-width-200); + --spectrum-treeview-item-border-size-selected: 1px; + --spectrum-treeview-item-border-radius: 0px; + + --spectrum-treeview-item-border-color-selected: var(--spectrum-blue-800); + --spectrum-treeview-item-border-color-focus: var(--spectrum-blue-700); + + --spectrum-treeview-item-background-color-hover: var(--spectrum-gray-100); + --spectrum-treeview-item-background-color-focus: var(--spectrum-gray-100); + + --spectrum-treeview-item-border-color-quiet-selected: transparent; + + --spectrum-treeview-item-icon-gap: var(--spectrum-text-to-visual-75); + --spectrum-treeview-item-icon-color: var(--spectrum-gray-700); + --spectrum-treeview-item-icon-color-hover: var(--spectrum-gray-900); + --spectrum-treeview-item-icon-color-focus: var(--spectrum-gray-900); + --spectrum-treeview-item-icon-color-selected: var(--spectrum-gray-900); + --spectrum-treeview-item-icon-color-disabled: var(--spectrum-disabled-content-color); + + --spectrum-treeview-item-text-color: var(--spectrum-neutral-content-color-default); + --spectrum-treeview-item-text-color-selected: var(--spectrum-gray-900); + --spectrum-treeview-item-text-color-disabled: var(--spectrum-gray-500); + --spectrum-treeview-item-text-color-focus: var(--spectrum-gray-900); + --spectrum-treeview-item-text-color-hover: var(--spectrum-gray-900); + + --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-100)); + --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-medium); + + --spectrum-treeview-item-min-block-size-thumbnail-offset: var(--spectrum-treeview-item-min-block-size-thumbnail-offset-medium, 0px); + + --spectrum-treeview-indicator-animation-duration: var(--spectrum-animation-duration-100); + } + + .spectrum-TreeView--sizeS { + --spectrum-treeview-font-size: var(--spectrum-font-size-75); + + --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-75); + --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-small); + --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-75); + + --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-75); + --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-75)); + --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-75); + --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-small); + + --spectrum-treeview-item-min-block-size-thumbnail-offset: 6px; + } + + .spectrum-TreeView--sizeL { + --spectrum-treeview-font-size: var(--spectrum-font-size-200); + + --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-large); + --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-200); + --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-200); + + --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-200); + --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-200)); + --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-200); + --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-large); + + --spectrum-treeview-item-min-block-size-thumbnail-offset: 0px; + } + + .spectrum-TreeView--sizeXL { + --spectrum-treeview-font-size: var(--spectrum-font-size-300); + + --spectrum-treeview-item-indentation: var(--spectrum-treeview-item-indentation-extra-large); + --spectrum-treeview-item-min-block-size: var(--spectrum-component-height-300); + --spectrum-treeview-heading-bottom-to-text: var(--spectrum-component-edge-to-text-300); + + --spectrum-treeview-item-padding-inline-start: var(--spectrum-component-height-300); + --spectrum-treeview-indicator-margin-inline-start: calc(-1 * var(--spectrum-component-height-300)); + --spectrum-treeview-item-padding-inline-end: var(--spectrum-component-edge-to-text-300); + --spectrum-treeview-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large); + + --spectrum-treeview-item-min-block-size-thumbnail-offset: 0px; + } + + .spectrum-TreeView--detached { + --spectrum-treeview-item-border-radius: var(--spectrum-corner-radius-100); + } +} diff --git a/components/treeview/themes/spectrum.css b/components/treeview/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/treeview/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/typography/CHANGELOG.md b/components/typography/CHANGELOG.md index f7982c96e69..c4f107575dc 100644 --- a/components/typography/CHANGELOG.md +++ b/components/typography/CHANGELOG.md @@ -1,5 +1,201 @@ # Change Log +## 7.0.0-s2-foundations.15 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4e80ae6`](https://github.com/adobe/spectrum-css/commit/4e80ae67ddda329a5ed556b57426623c6f0f13f0) Thanks [@pfulton](https://github.com/pfulton)! - ActionButton: + + - Correct --spectrum-actionbutton-background-color-selected-disabled to be --spectrum-actionbutton-(background|border)-color-disabled-selected + + Combobox: + + - Move --spectrum-combobox-min-inline-size and --spectrum-combobox-button-width to the index.css + + FieldGroup: + + - Swap gap back to margin-inline-end on FieldGroup + + Typography: + + - Remap body size to xs if xxs provided + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9ae725f`](https://github.com/adobe/spectrum-css/commit/9ae725f10ebbb78b62070c4c477cb41cfc1b1ed6) Thanks [@pfulton](https://github.com/pfulton)! - Combobox moved the quiet min-inline-size property to index.css from theme to pick up the t-shirt sizing for the calc. + + Typography increases specificity for the t-shirt sizing. + + Stepper fixes for the disabled + hovered states as well as regressions fixed for the quiet variant. + +## 7.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 7.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 7.0.0-s2-foundations.12 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 7.0.0-s2-foundations.11 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 7.0.0-s2-foundations.10 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`494da11`](https://github.com/adobe/spectrum-css/commit/494da118554c2ecc425564e42d25424325efc331) Thanks [@pfulton](https://github.com/pfulton)! - ## Feature [@spectrum-css/icon] + + Update source files to load the mappings from component-level to global tokens for size and transform values. This will allow for more consistent and predictable behavior when using the `size` and `transform` props on icons when switching between contexts for S1, S2, and Express. + + ## Patch [@spectrum-css/typography] + + Remove the sourcemap footer from compiled assets. + +## 7.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 7.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 7.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 7.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 7.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 7.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 7.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 7.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 7.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 7.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 6.1.3 ### Patch Changes diff --git a/components/typography/index.css b/components/typography/index.css index b065cb20b0c..cb5d06473f2 100644 --- a/components/typography/index.css +++ b/components/typography/index.css @@ -11,15 +11,10 @@ * governing permissions and limitations under the License. */ -/* Typography - Default */ -.spectrum { - --spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - --spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - - --spectrum-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-font-style: var(--spectrum-default-font-style); - --spectrum-font-size: var(--spectrum-font-size-100); +@import "./themes/spectrum-two.css"; +/* Typography - Default */ +.spectrum-Typography { font-family: var(--spectrum-font-family); font-style: var(--spectrum-font-style); font-size: var(--spectrum-font-size); @@ -31,22 +26,21 @@ &:lang(he) { font-family: var(--spectrum-font-family-he); } -} - -/* Typography - Heading */ - -/* Heading tokens */ -.spectrum-Heading { - --spectrum-heading-sans-serif-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-heading-serif-font-family: var(--spectrum-serif-font-family-stack); - --spectrum-heading-cjk-font-family: var(--spectrum-cjk-font-family-stack); - --spectrum-heading-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + /* Add margin when inside a Typography component */ + .spectrum-Heading { + --spectrum-heading-margin-start: calc(var(--mod-heading-font-size, var(--spectrum-heading-font-size)) * var(--spectrum-heading-margin-top-multiplier)); + --spectrum-heading-margin-end: calc(var(--mod-heading-font-size, var(--spectrum-heading-font-size)) * var(--spectrum-heading-margin-bottom-multiplier)); + } - --spectrum-heading-font-color: var(--spectrum-heading-color); + .spectrum-Body { + --spectrum-body-margin-end: calc(var(--mod-body-font-size, var(--spectrum-body-font-size)) * var(--spectrum-body-margin-multiplier)); + } - --spectrum-heading-margin-start: calc(var(--mod-heading-font-size, var(--spectrum-heading-font-size)) * var(--spectrum-heading-margin-top-multiplier)); - --spectrum-heading-margin-end: calc(var(--mod-heading-font-size, var(--spectrum-heading-font-size)) * var(--spectrum-heading-margin-bottom-multiplier)); + .spectrum-Detail { + --spectrum-detail-margin-start: calc(var(--mod-detail-font-size, var(--spectrum-detail-font-size)) * var(--spectrum-detail-margin-top-multiplier)); + --spectrum-detail-margin-end: calc(var(--mod-detail-font-size, var(--spectrum-detail-font-size)) * var(--spectrum-detail-margin-bottom-multiplier)); + } } /* Windows high contrast mode */ @@ -54,50 +48,21 @@ .spectrum-Heading { --highcontrast-heading-font-color: Text; } -} -/* Heading t-shirt sizes */ -.spectrum-Heading--sizeXXS { - --spectrum-heading-font-size: var(--spectrum-heading-size-xxs); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxs); -} - -.spectrum-Heading--sizeXS { - --spectrum-heading-font-size: var(--spectrum-heading-size-xs); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xs); -} - -.spectrum-Heading--sizeS { - --spectrum-heading-font-size: var(--spectrum-heading-size-s); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-s); -} - -.spectrum-Heading--sizeM { - --spectrum-heading-font-size: var(--spectrum-heading-size-m); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-m); -} - -.spectrum-Heading--sizeL { - --spectrum-heading-font-size: var(--spectrum-heading-size-l); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-l); -} - -.spectrum-Heading--sizeXL { - --spectrum-heading-font-size: var(--spectrum-heading-size-xl); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xl); -} + .spectrum-Body { + --highcontrast-body-font-color: Text; + } -.spectrum-Heading--sizeXXL { - --spectrum-heading-font-size: var(--spectrum-heading-size-xxl); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxl); -} + .spectrum-Detail { + --highcontrast-detail-font-color: Text; + } -.spectrum-Heading--sizeXXXL { - --spectrum-heading-font-size: var(--spectrum-heading-size-xxxl); - --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxxl); + .spectrum-Code { + --highcontrast-code-font-color: Text; + } } -/* Heading styles */ +/* Heading */ .spectrum-Heading { font-family: var(--mod-heading-sans-serif-font-family, var(--spectrum-heading-sans-serif-font-family)); font-style: var(--mod-heading-sans-serif-font-style, var(--spectrum-heading-sans-serif-font-style)); @@ -105,8 +70,8 @@ font-size: var(--mod-heading-font-size, var(--spectrum-heading-font-size)); color: var(--highcontrast-heading-font-color, var(--mod-heading-font-color, var(--spectrum-heading-font-color))); line-height: var(--mod-heading-line-height, var(--spectrum-heading-line-height)); - margin-block-start: 0; - margin-block-end: 0; + margin-block-start: var(--mod-heading-margin-start, var(--spectrum-heading-margin-start, 0)); + margin-block-end: var(--mod-heading-margin-end, var(--spectrum-heading-margin-end, 0)); strong, .spectrum-Heading-strong { @@ -337,74 +302,15 @@ } } -/* Add margin when inside a Typography component */ -.spectrum-Typography .spectrum-Heading { - margin-block-start: var(--mod-heading-margin-start, var(--spectrum-heading-margin-start)); - margin-block-end: var(--mod-heading-margin-end, var(--spectrum-heading-margin-end)); -} - /* Body */ - -/* Body tokens */ -.spectrum-Body { - --spectrum-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-body-serif-font-family: var(--spectrum-serif-font-family-stack); - --spectrum-body-cjk-font-family: var(--spectrum-cjk-font-family-stack); - - --spectrum-body-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); - - --spectrum-body-margin: calc(var(--mod-body-font-size, var(--spectrum-body-font-size)) * var(--spectrum-body-margin-multiplier)); - - --spectrum-body-font-color: var(--spectrum-body-color); -} - -/* Windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Body { - --highcontrast-body-font-color: Text; - } -} - -/* Body t-shirt sizes */ -.spectrum-Body--sizeXS { - --spectrum-body-font-size: var(--spectrum-body-size-xs); -} - -.spectrum-Body--sizeS { - --spectrum-body-font-size: var(--spectrum-body-size-s); -} - -.spectrum-Body--sizeM { - --spectrum-body-font-size: var(--spectrum-body-size-m); -} - -.spectrum-Body--sizeL { - --spectrum-body-font-size: var(--spectrum-body-size-l); -} - -.spectrum-Body--sizeXL { - --spectrum-body-font-size: var(--spectrum-body-size-xl); -} - -.spectrum-Body--sizeXXL { - --spectrum-body-font-size: var(--spectrum-body-size-xxl); -} - -.spectrum-Body--sizeXXXL { - --spectrum-body-font-size: var(--spectrum-body-size-xxxl); -} - -/* Body styles */ - -/* Body - Default */ .spectrum-Body { font-family: var(--mod-body-sans-serif-font-family, var(--spectrum-body-sans-serif-font-family)); font-style: var(--mod-body-sans-serif-font-style, var(--spectrum-body-sans-serif-font-style)); font-weight: var(--mod-body-sans-serif-font-weight, var(--spectrum-body-sans-serif-font-weight)); font-size: var(--mod-body-font-size, var(--spectrum-body-font-size)); color: var(--highcontrast-body-font-color, var(--mod-body-font-color, var(--spectrum-body-font-color))); - margin-block-start: 0; - margin-block-end: 0; + margin-block-start: var(--mod-body-margin-start, var(--mod-body-margin, var(--spectrum-body-margin-start, 0))); + margin-block-end: var(--mod-body-margin-end, var(--mod-body-margin, var(--spectrum-body-margin-end, 0))); line-height: var(--mod-body-line-height, var(--spectrum-body-line-height)); @@ -459,6 +365,7 @@ } } +/* Body - Serif */ .spectrum-Body--serif { font-family: var(--mod-body-serif-font-family, var(--spectrum-body-serif-font-family)); font-weight: var(--mod-body-serif-font-weight, var(--spectrum-body-serif-font-weight)); @@ -484,57 +391,14 @@ } } -/* Add margin when inside a Typography component */ -.spectrum-Typography .spectrum-Body { - margin-block-end: var(--mod-body-margin, var(--spectrum-body-margin)); -} - /* Detail */ - -/* Detail tokens */ -.spectrum-Detail { - --spectrum-detail-sans-serif-font-family: var(--spectrum-sans-font-family-stack); - --spectrum-detail-serif-font-family: var(--spectrum-serif-font-family-stack); - --spectrum-detail-cjk-font-family: var(--spectrum-cjk-font-family-stack); - - --spectrum-detail-margin-start: calc(var(--mod-detail-font-size, var(--spectrum-detail-font-size)) * var(--spectrum-detail-margin-top-multiplier)); - --spectrum-detail-margin-end: calc(var(--mod-detail-font-size, var(--spectrum-detail-font-size)) * var(--spectrum-detail-margin-bottom-multiplier)); - - --spectrum-detail-font-color: var(--spectrum-detail-color); -} - -/* Windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Detail { - --highcontrast-detail-font-color: Text; - } -} - -/* Detail t-shirt sizes */ -.spectrum-Detail--sizeS { - --spectrum-detail-font-size: var(--spectrum-detail-size-s); -} - -.spectrum-Detail--sizeM { - --spectrum-detail-font-size: var(--spectrum-detail-size-m); -} - -.spectrum-Detail--sizeL { - --spectrum-detail-font-size: var(--spectrum-detail-size-l); -} - -.spectrum-Detail--sizeXL { - --spectrum-detail-font-size: var(--spectrum-detail-size-xl); -} - -/* Detail styles */ .spectrum-Detail { font-family: var(--mod-detail-sans-serif-font-family, var(--spectrum-detail-sans-serif-font-family)); font-style: var(--mod-detail-sans-serif-font-style, var(--spectrum-detail-sans-serif-font-style)); font-weight: var(--mod-detail-sans-serif-font-weight, var(--spectrum-detail-sans-serif-font-weight)); font-size: var(--mod-detail-font-size, var(--spectrum-detail-font-size)); - margin-block-start: 0; - margin-block-end: 0; + margin-block-start: var(--mod-detail-margin-start, var(--spectrum-detail-margin-start, 0)); + margin-block-end: var(--mod-detail-margin-end, var(--spectrum-detail-margin-end, 0)); color: var(--highcontrast-detail-font-color, var(--mod-detail-font-color, var(--spectrum-detail-font-color))); @@ -591,6 +455,7 @@ } } +/* Detail - Serif */ .spectrum-Detail--serif { font-family: var(--mod-detail-serif-font-family, var(--spectrum-detail-serif-font-family)); font-style: var(--mod-detail-serif-font-style, var(--spectrum-detail-serif-font-style)); @@ -616,7 +481,7 @@ } } -/* Detail - Light */ +/* Detail - Light */ .spectrum-Detail--light { font-style: var(--mod-detail-sans-serif-light-font-style, var(--spectrum-detail-sans-serif-light-font-style)); font-weight: var(--spectrum-detail-sans-serif-light-font-weight, var(--spectrum-detail-sans-serif-light-font-weight)); @@ -665,6 +530,7 @@ } } +/* Detail - Serif - Light */ .spectrum-Detail--serif.spectrum-Detail--light { font-style: var(--mod-detail-serif-light-font-style, var(--spectrum-detail-serif-light-font-style)); font-weight: var(--mod-detail-serif-light-font-weight, var(--spectrum-detail-serif-light-font-weight)); @@ -689,57 +555,14 @@ } } -/* Add margin when inside a Typography component */ -.spectrum-Typography .spectrum-Detail { - margin-block-start: var(--mod-detail-margin-start, var(--spectrum-detail-margin-start)); - margin-block-end: var(--mod-detail-margin-end, var(--spectrum-detail-margin-end)); -} - /* Code */ - -/* Code tokens */ -.spectrum-Code { - --spectrum-code-font-family: var(--spectrum-code-font-family-stack); - --spectrum-code-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); - --spectrum-code-font-color: var(--spectrum-code-color); -} - -/* Windows high contrast mode */ -@media (forced-colors: active) { - .spectrum-Code { - --highcontrast-code-font-color: Text; - } -} - -/* Code t-shirt sizes */ -.spectrum-Code--sizeXS { - --spectrum-code-font-size: var(--spectrum-code-size-xs); -} - -.spectrum-Code--sizeS { - --spectrum-code-font-size: var(--spectrum-code-size-s); -} - -.spectrum-Code--sizeM { - --spectrum-code-font-size: var(--spectrum-code-size-m); -} - -.spectrum-Code--sizeL { - --spectrum-code-font-size: var(--spectrum-code-size-l); -} - -.spectrum-Code--sizeXL { - --spectrum-code-font-size: var(--spectrum-code-size-xl); -} - -/* Code styles */ .spectrum-Code { font-family: var(--mod-code-font-family, var(--spectrum-code-font-family)); font-style: var(--mod-code-font-style, var(--spectrum-code-font-style)); font-weight: var(--mod-code-font-weight, var(--spectrum-code-font-weight)); font-size: var(--mod-code-font-size, var(--spectrum-code-font-size)); - margin-block-start: 0; - margin-block-end: 0; + margin-block-start: var(--mod-code-margin-start, var(--spectrum-code-margin-end, 0)); + margin-block-end: var(--mod-code-margin-end, var(--spectrum-code-margin-end, 0)); line-height: var(--mod-code-line-height, var(--spectrum-code-line-height)); diff --git a/components/typography/metadata/metadata.json b/components/typography/metadata/metadata.json index 9235bb411b1..b259ba4613d 100644 --- a/components/typography/metadata/metadata.json +++ b/components/typography/metadata/metadata.json @@ -17,13 +17,13 @@ ".spectrum-Body--serif em strong", ".spectrum-Body--serif strong", ".spectrum-Body--serif strong em", - ".spectrum-Body--sizeL", - ".spectrum-Body--sizeM", - ".spectrum-Body--sizeS", - ".spectrum-Body--sizeXL", - ".spectrum-Body--sizeXS", - ".spectrum-Body--sizeXXL", - ".spectrum-Body--sizeXXXL", + ".spectrum-Body.spectrum-Body--sizeL", + ".spectrum-Body.spectrum-Body--sizeM", + ".spectrum-Body.spectrum-Body--sizeS", + ".spectrum-Body.spectrum-Body--sizeXL", + ".spectrum-Body.spectrum-Body--sizeXS", + ".spectrum-Body.spectrum-Body--sizeXXL", + ".spectrum-Body.spectrum-Body--sizeXXXL", ".spectrum-Body:lang(ja)", ".spectrum-Body:lang(ja) .spectrum-Body-emphasized", ".spectrum-Body:lang(ja) .spectrum-Body-strong", @@ -56,11 +56,11 @@ ".spectrum-Code em strong", ".spectrum-Code strong", ".spectrum-Code strong em", - ".spectrum-Code--sizeL", - ".spectrum-Code--sizeM", - ".spectrum-Code--sizeS", - ".spectrum-Code--sizeXL", - ".spectrum-Code--sizeXS", + ".spectrum-Code.spectrum-Code--sizeL", + ".spectrum-Code.spectrum-Code--sizeM", + ".spectrum-Code.spectrum-Code--sizeS", + ".spectrum-Code.spectrum-Code--sizeXL", + ".spectrum-Code.spectrum-Code--sizeXS", ".spectrum-Code:lang(ja)", ".spectrum-Code:lang(ja) .spectrum-Code-emphasized", ".spectrum-Code:lang(ja) .spectrum-Code-strong", @@ -135,10 +135,10 @@ ".spectrum-Detail--serif.spectrum-Detail--light em strong", ".spectrum-Detail--serif.spectrum-Detail--light strong", ".spectrum-Detail--serif.spectrum-Detail--light strong em", - ".spectrum-Detail--sizeL", - ".spectrum-Detail--sizeM", - ".spectrum-Detail--sizeS", - ".spectrum-Detail--sizeXL", + ".spectrum-Detail.spectrum-Detail--sizeL", + ".spectrum-Detail.spectrum-Detail--sizeM", + ".spectrum-Detail.spectrum-Detail--sizeS", + ".spectrum-Detail.spectrum-Detail--sizeXL", ".spectrum-Detail:lang(ja)", ".spectrum-Detail:lang(ja) .spectrum-Detail-emphasized", ".spectrum-Detail:lang(ja) .spectrum-Detail-strong", @@ -259,14 +259,14 @@ ".spectrum-Heading--serif.spectrum-Heading--light em strong", ".spectrum-Heading--serif.spectrum-Heading--light strong", ".spectrum-Heading--serif.spectrum-Heading--light strong em", - ".spectrum-Heading--sizeL", - ".spectrum-Heading--sizeM", - ".spectrum-Heading--sizeS", - ".spectrum-Heading--sizeXL", - ".spectrum-Heading--sizeXS", - ".spectrum-Heading--sizeXXL", - ".spectrum-Heading--sizeXXS", - ".spectrum-Heading--sizeXXXL", + ".spectrum-Heading.spectrum-Heading--sizeL", + ".spectrum-Heading.spectrum-Heading--sizeM", + ".spectrum-Heading.spectrum-Heading--sizeS", + ".spectrum-Heading.spectrum-Heading--sizeXL", + ".spectrum-Heading.spectrum-Heading--sizeXS", + ".spectrum-Heading.spectrum-Heading--sizeXXL", + ".spectrum-Heading.spectrum-Heading--sizeXXS", + ".spectrum-Heading.spectrum-Heading--sizeXXXL", ".spectrum-Heading:lang(ja)", ".spectrum-Heading:lang(ja) .spectrum-Heading-emphasized", ".spectrum-Heading:lang(ja) .spectrum-Heading-strong", @@ -291,11 +291,12 @@ ".spectrum-Heading:lang(zh) em strong", ".spectrum-Heading:lang(zh) strong", ".spectrum-Heading:lang(zh) strong em", + ".spectrum-Typography", ".spectrum-Typography .spectrum-Body", ".spectrum-Typography .spectrum-Detail", ".spectrum-Typography .spectrum-Heading", - ".spectrum:lang(ar)", - ".spectrum:lang(he)" + ".spectrum-Typography:lang(ar)", + ".spectrum-Typography:lang(he)" ], "modifiers": [ "--mod-body-cjk-emphasized-font-style", @@ -313,6 +314,8 @@ "--mod-body-font-size", "--mod-body-line-height", "--mod-body-margin", + "--mod-body-margin-end", + "--mod-body-margin-start", "--mod-body-sans-serif-emphasized-font-style", "--mod-body-sans-serif-emphasized-font-weight", "--mod-body-sans-serif-font-family", @@ -350,6 +353,8 @@ "--mod-code-font-style", "--mod-code-font-weight", "--mod-code-line-height", + "--mod-code-margin-end", + "--mod-code-margin-start", "--mod-code-strong-emphasized-font-style", "--mod-code-strong-emphasized-font-weight", "--mod-code-strong-font-style", @@ -512,8 +517,9 @@ "--spectrum-body-font-color", "--spectrum-body-font-size", "--spectrum-body-line-height", - "--spectrum-body-margin", + "--spectrum-body-margin-end", "--spectrum-body-margin-multiplier", + "--spectrum-body-margin-start", "--spectrum-body-sans-serif-emphasized-font-style", "--spectrum-body-sans-serif-emphasized-font-weight", "--spectrum-body-sans-serif-font-family", @@ -562,6 +568,7 @@ "--spectrum-code-font-style", "--spectrum-code-font-weight", "--spectrum-code-line-height", + "--spectrum-code-margin-end", "--spectrum-code-size-l", "--spectrum-code-size-m", "--spectrum-code-size-s", diff --git a/components/typography/metadata/mods.md b/components/typography/metadata/mods.md index 25bd5b5f0e4..ba71cd43274 100644 --- a/components/typography/metadata/mods.md +++ b/components/typography/metadata/mods.md @@ -15,6 +15,8 @@ | `--mod-body-font-size` | | `--mod-body-line-height` | | `--mod-body-margin` | +| `--mod-body-margin-end` | +| `--mod-body-margin-start` | | `--mod-body-sans-serif-emphasized-font-style` | | `--mod-body-sans-serif-emphasized-font-weight` | | `--mod-body-sans-serif-font-family` | @@ -52,6 +54,8 @@ | `--mod-code-font-style` | | `--mod-code-font-weight` | | `--mod-code-line-height` | +| `--mod-code-margin-end` | +| `--mod-code-margin-start` | | `--mod-code-strong-emphasized-font-style` | | `--mod-code-strong-emphasized-font-weight` | | `--mod-code-strong-font-style` | diff --git a/components/typography/metadata/typography-body.yml b/components/typography/metadata/typography-body.yml deleted file mode 100644 index d95a3979a93..00000000000 --- a/components/typography/metadata/typography-body.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Typography body -id: body-m -description: Body is a typography component primarily used within Spectrum components and for blocks of text. -SpectrumSiteSlug: https://spectrum.adobe.com/page/body/ -examples: - - id: body-m - name: Body - status: Verified - description: Default body text sizes. - markup: | -
      -

      BodyXXXL Text BodyXXXL Emphasis BodyXXXL Strong.

      -

      BodyXXL Text BodyXXL Emphasis BodyXXL Strong.

      -

      BodyXL Text BodyXL Emphasis BodyXL Strong.

      -

      BodyL text BodyL Emphasis BodyL Strong.

      -

      BodyM Text BodyM Emphasis BodyM Strong.

      -

      BodyS Text BodyS Emphasis BodyS Strong.

      -

      BodyXS Text BodyXS Emphasis BodyXS Strong.

      -
      -
      -
      -

      BodyXXXL Text Serif BodyXXXL Emphasis Serif BodyXXXL Strong Serif.

      -

      BodyXXL Text Serif BodyXXL Emphasis Serif BodyXXL Strong Serif.

      -

      BodyXL Text Serif BodyXL Emphasis Serif BodyXL Strong Serif.

      -

      BodyL text Serif BodyL Emphasis Serif BodyL Strong Serif.

      -

      BodyM Text Serif BodyM Emphasis Serif BodyM Strong Serif.

      -

      BodyS Text Serif BodyS Emphasis Serif BodyS Strong Serif.

      -

      BodyXS Text Serif BodyXS Emphasis Serif BodyXS Strong Serif.

      -
      - - - id: heading-m - name: Standard - status: Verified - description: Typography elements paired to display clear content hierarchies. - markup: | -
      -
      -
      -

      Heading Size XXXL with body size XXXL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading Size XXL with body size XXL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XL with body size XL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size L with body size L:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size M with body size M:

      -

      Lorem Ipsum Dolor

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size S with body size S:

      -

      Lorem Ipsum Dolor

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XS with body size XS:

      -
      Lorem Ipsum Dolor
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XXS with body size XS

      -
      Lorem Ipsum Dolor
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      diff --git a/components/typography/metadata/typography-code.yml b/components/typography/metadata/typography-code.yml deleted file mode 100644 index 67335b0807d..00000000000 --- a/components/typography/metadata/typography-code.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Typography code -id: code-m -description: Code is a typography component used for text that represents code. -SpectrumSiteSlug: https://spectrum.adobe.com/page/code/ -examples: - - id: code-m - name: Typography - Code - status: Verified - description: Typographic styles for computer code. - markup: | - CodeXL Text Strong Emphasis - -
      - - CodeL Text Strong Emphasis - -
      - - CodeM Text Strong Emphasis - -
      - - CodeS Text Strong Emphasis - -
      - - CodeXS Text Strong Emphasis - -
      -
      - -
      CodeM text
      -      wrapped in
      -      pre tags for
      -      multiline
      -      goodness
      -      
      diff --git a/components/typography/metadata/typography-detail.yml b/components/typography/metadata/typography-detail.yml deleted file mode 100644 index 1b0c10e9984..00000000000 --- a/components/typography/metadata/typography-detail.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Typography detail -status: Verified -description: Detail is a typography component used for disclosing extra information or smaller items in hierarchical relationships of text. -SpectrumSiteSlug: https://spectrum.adobe.com/page/detail/ -examples: - - id: detail-m - status: Verified - name: Detail - markup: | -
      -

      DetailXL DetailXL Emphasis DetailXL Light DetailXL Strong.

      -

      DetailL DetailL Emphasis DetailL Light DetailL Strong.

      -

      DetailM DetailM Emphasis DetailM Light DetailM Strong.

      -

      DetailS DetailS Emphasis DetailS Light DetailS Strong.

      -
      -

      DetailXL DetailXL Emphasis DetailXL Light DetailXL Strong.

      -

      DetailL DetailL Emphasis DetailL Light DetailL Strong.

      -

      DetailM DetailM Emphasis DetailM Light DetailM Strong.

      -

      DetailS DetailS Emphasis DetailS Light DetailS Strong.

      -
      diff --git a/components/typography/metadata/typography-heading.yml b/components/typography/metadata/typography-heading.yml deleted file mode 100644 index f9018cbc79a..00000000000 --- a/components/typography/metadata/typography-heading.yml +++ /dev/null @@ -1,149 +0,0 @@ -name: Typography heading -id: heading-m -description: Heading is a typography component used to create various levels of hierarchies between text. -SpectrumSiteSlug: https://spectrum.adobe.com/page/heading/ -examples: - - id: heading-m - name: Heading - status: Verified - description: Headings for typography. - markup: | -
      -

      HeadingXXXL Emphasis Strong.

      -

      HeadingXXL Emphasis Strong.

      -

      HeadingXL Emphasis Strong.

      -

      HeadingL Emphasis Strong.

      -

      HeadingM Emphasis Strong.

      -

      HeadingS Emphasis Strong.

      -
      HeadingXS Emphasis Strong.
      -
      HeadingXXS Emphasis Strong.
      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      HeadingL Serif Emphasis Strong.

      -

      HeadingM Serif Emphasis Strong.

      -

      HeadingS Serif Emphasis Strong.

      -
      HeadingXS Serif Emphasis Strong.
      -
      HeadingXXS Serif Emphasis Strong.
      -
      - - - id: heading-heavy-m - name: Heading (Heavy) - status: Verified - description: Heavy headings for typography. - markup: | -
      -

      HeadingXXXL Emphasis Strong.

      -

      HeadingXXL Emphasis Strong.

      -

      HeadingXL Emphasis Strong.

      -

      HeadingL Emphasis strong.

      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      HeadingL Serif Emphasis strong.

      -
      - - - id: heading-light-m - name: Heading (Light) - status: Verified - description: Light headings for typography. - markup: | -
      -

      HeadingXXXL Emphasis Strong.

      -

      HeadingXXL Emphasis Strong.

      -

      HeadingXL Emphasis Strong.

      -

      HeadingL Emphasis Strong.

      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      HeadingL Serif Emphasis Strong.

      -
      - - - id: heading-m - name: Typography - status: Verified - description: Typography elements paired to display clear content hierarchies. - markup: | -
      -
      -
      -

      Heading Size XXXL with body size XXXL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading Size XXL with body size XXL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XL with body size XL:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size L with body size L:

      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size M with body size M:

      -

      Lorem Ipsum Dolor

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size S with body size S:

      -

      Lorem Ipsum Dolor

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XS with body size XS:

      -
      Lorem Ipsum Dolor
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      -
      -
      -
      -

      Heading size XXS with body size XS

      -
      Lorem Ipsum Dolor
      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -

      Ut et lectus finibus, aliquet mauris eu, tincidunt mi. Donec scelerisque orci sit amet venenatis luctus. Morbi eget lacus est. Duis iaculis magna quis aliquam lacinia. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

      -
      -
      -
      diff --git a/components/typography/metadata/typography-international.yml b/components/typography/metadata/typography-international.yml deleted file mode 100644 index a2e47307b87..00000000000 --- a/components/typography/metadata/typography-international.yml +++ /dev/null @@ -1,270 +0,0 @@ -name: Typography (internationalized) -description: Internationalized typography examples. Note that, for these examples to work correctly, your Typekit needs to include the appropriate Han fonts. -SpectrumSiteSlug: https://spectrum.adobe.com/page/typography/ -status: Verified -id: heading-han-m -examples: - - id: heading-m - name: Heading - status: Verified - description: Headings for typography. - markup: | -
      -

      HeadingXXXL HeadingXXXL Emphasis Strong.

      -

      HeadingXXL HeadingXXL Emphasis Strong.

      -

      HeadingXL HeadingXL Emphasis Strong.

      -

      HeadingL HeadingL Emphasis Strong.

      -

      HeadingM HeadingM Emphasis Strong.

      -

      HeadingS HeadingS Emphasis Strong.

      -
      HeadingXS HeadingXS Emphasis Strong.
      -
      HeadingXXS HeadingXXS Emphasis Strong.
      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      spectrum-Heading--serif

      -

      HeadingM Serif Emphasis Strong.

      -

      HeadingS Serif Emphasis Strong.

      -
      HeadingXS Serif Emphasis Strong.
      -
      HeadingXXS Serif Emphasis Strong.
      -
      - -
      -

      見出しXXXL 見出しXXXL 重点 見出しXXXL 強い強調.

      -

      見出しXXL 見出しXXL 重点 見出しXXL 強い強調.

      -

      見出しXL 見出しXL 重点 見出しXL 強い強調.

      -

      見出しL 見出しL 重点 見出しL 強い強調.

      -

      見出しM 見出しM 重点 見出しM 強い強調.

      -

      見出しS 見出しS 重点 見出しS 強い強調.

      -
      見出しXS 見出しXS 重点 見出しXS 強い強調.
      -
      見出しXXS 見出しXXS 重点 見出しXXS 強い強調.
      -
      - -
      -

      XXXLالقسم XXXLالقسم تشديد XXXLالقسم تأكيد قو.

      -

      XXLالقسم XXLالقسم تشديد XXLالقسم تأكيد قو.

      -

      XLالقسم XLالقسم تشديد XLالقسم تأكيد قو.

      -

      Lالقسم Lالقسم تشديد Lالقسم تأكيد قو.

      -

      Mالقسم Mالقسم تشديد Mالقسم تأكيد قو.

      -

      Sالقسم Sالقسم تشديد Sالقسم تأكيد قو.

      -
      XSالقسم XSالقسم تشديد XSالقسم تأكيد قو.
      -
      XSSالقسم XSSالقسم تشديد XXSالقسم تأكيد قو.
      -
      - -
      -

      XXXLדגש כותרת XXXLמאמר XXXLחזק.

      -

      XXLדגש כותרת XXLמאמר XXLחזק.

      -

      XLדגש כותרת XLמאמר XLחזק.

      -

      Lדגש כותרת Lמאמר Lחזק.

      -

      Mדגש כותרת Mמאמר Mחזק.

      -

      Sדגש כותרת Sמאמר Sחזק.

      -
      XSדגש כותרת XSמאמר XSחזק.
      -
      XXSדגש כותרת XXSמאמר XXSחזק.
      -
      - - - id: heading-heavy-m - name: Heading (Heavy) - status: Verified - description: Strong headings for typography. - markup: | -
      -

      HeadingXXXL Emphasis Strong.

      -

      HeadingXXL Emphasis Strong.

      -

      HeadingXL Emphasis Strong.

      -

      spectrum-Heading--heavy

      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      spectrum-Heading--heavy spectrum-Heading--serif

      -
      - -
      -

      見出しXXXL 見出し XXXL >見出しXXXL 強い強調.

      -

      見出しXXL 見出し XXL 重点 見出しXXL 強い強調.

      -

      見出しXL 見出しXL 重点 見出しXL強い強調.

      -

      spectrum-Heading--heavy

      -
      - -
      -

      القسمXXXL القسم XXXL تشديد القسم 2XXXL تأكيد قو.

      -

      القسمXXL القسم 1XXL تشديد Emphasis القسم XXL تأكيد قو.

      -

      القسمXLالقسم 1XL تشديد القسم XL تأكيد قو.

      -

      spectrum-Heading--heavy

      -
      - -
      -

      XXXLדגש כותרת XXXLמאמר XXXLחזק.

      -

      XXLדגש כותרת XXLמאמר XXLחזק.

      -

      XLדגש כותרת XLמאמר XLחזק.

      -

      spectrum-Heading--heavy

      -
      - - - id: heading-light-m - name: Heading (Light) - status: Verified - description: Light headings for typography. - markup: | -
      -

      HeadingXXXL Emphasis Strong.

      -

      HeadingXXL Emphasis Strong.

      -

      HeadingXL Emphasis Strong.

      -

      spectrum-Heading--light

      -
      -

      HeadingXXXL Serif Emphasis Strong.

      -

      HeadingXXL Serif Emphasis Strong.

      -

      HeadingXL Serif Emphasis Strong.

      -

      spectrum-Heading--light spectrum-Heading--serif

      -
      - -
      -

      見出しXXXL 見出しXXXL 重点 見出しXXXL 強い強調.

      -

      見出しXXL 見出しXXL 重点 見出しXXL 強い強調.

      -

      見出しXL 見出しXL 重点 見出しXL 強い強調.

      -

      spectrum-Heading--light

      -
      - -
      -

      XXXLالقسم القسم XXXL تشديد XXXLالقسم تأكيد قو.

      -

      XXLالقسم القسم XXL تشديد XXLالقسم تأكيد قو.

      -

      XLالقسم القسم XL تشديد XLالقسم تأكيد قو.

      -

      spectrum-Heading--light

      -
      - -
      -

      XXXLדגש כותרת XXXLמאמר XXXLחזק.

      -

      XXLדגש כותרת XXLמאמר XXLחזק.

      -

      XLדגש כותרת XLמאמר XLחזק.

      -

      Lדגש כותרת Lמאמר Lחזק.

      -
      - - - id: body-m - name: Body - status: Verified - description: Default body text sizes. - markup: | -
      -

      BodyXXXL Text BodyXXXL Emphasis BodyXXXL Strong.

      -

      BodyXXL Text BodyXXL Emphasis BodyXXL Strong.

      -

      BodyXL Text BodyXL Emphasis BodyXL Strong.

      -

      BodyL text BodyL Emphasis BodyL Strong.

      -

      BodyM Text BodyM Emphasis BodyM Strong.

      -

      BodyS Text BodyS Emphasis BodyS Strong.

      -

      BodyXS Text BodyXS Emphasis BodyXS Strong.

      -
      -

      BodyXXXL Text Serif BodyXXXL Emphasis BodyXXXL Strong.

      -

      BodyXXL Text Serif BodyXXL Emphasis BodyXXL Strong.

      -

      BodyXL Text Serif BodyXL Emphasis BodyXL Strong.

      -

      BodyL text Serif BodyL Emphasis BodyL Strong.

      -

      BodyM Text Serif BodyM Emphasis BodyM Strong.

      -

      BodyS Text Serif BodyS Emphasis BodyS Strong.

      -

      BodyXS Text Serif BodyXS Emphasis BodyXS Strong.

      -
      - -
      -

      見出しXXXL 見出しXXXL 重点 見出しXXXL 強い強調.

      -

      見出しXXL 見出しXXL 重点 見出しXXL 強い強調.

      -

      見出しXL 見出しXL 重点 見出しXL 強い強調.

      -

      見出しL 見出しL 重点 見出しL 強い強調.

      -

      見出しM 見出しM 重点 見出しM 強い強調.

      -

      見出しS 見出しS 重点 見出しS 強い強調.

      -

      見出しXS 見出しXS 重点 見出しXS 強い強調.

      -
      - -
      -

      القسم XXXL القسم XXXL تشديد القسم XXXL تأكيد قو.

      -

      القسم XXL القسم XXL تشديد القسم XXL تأكيد قو.

      -

      القسم XL القسم XL تشديد القسم XL تأكيد قو.

      -

      القسم L القسم L تشديد القسم L تأكيد قو.

      -

      القسم M القسم M تشديد القسم M تأكيد قو.

      -

      القسم S القسم S تشديد القسم S تأكيد قو.

      -

      القسم XS القسم XS تشديد القسم XS تأكيد قو.

      -
      - -
      -

      XXXLטקסט גוף הדגשות XXXLגוף חזק XXXLגוף חזק.

      -

      XXLטקסט גוף הדגשות XXLגוף חזק XXLגוף חזק.

      -

      XLטקסט גוף הדגשות XLגוף חזק XLגוף חזק.

      -

      Lטקסט גוף הדגשות Lגוף חזק Lגוף חזק.

      -

      Mטקסט גוף הדגשות Mגוף חזק Mגוף חזק.

      -

      Sטקסט גוף הדגשות Sגוף חזק Sגוף חזק.

      -

      XSטקסט גוף הדגשות XSגוף חזק XSגוף חזק.

      -
      - - - id: detail-m - status: Verified - name: Detail - description: Subheadings for typography. - markup: | -
      -

      DetailXL DetailXL Emphasis DetailXL Strong.

      -

      DetailL DetailL Emphasis DetailL Strong.

      -

      DetailL DetailM Emphasis DetailM Strong.

      -

      DetailL DetailS Emphasis DetailS Strong.

      -
      -

      DetailXL DetailXL Emphasis DetailXL Strong.

      -

      DetailL DetailL Emphasis DetailL Strong.

      -

      DetailL DetailM Emphasis DetailM Strong.

      -

      DetailL DetailS Emphasis DetailS Strong.

      -
      - -
      -

      見出しXL 見出しXL 見出しXL.

      -

      見出しL 見出しL 見出しL.

      -

      見出しM 見出しM 見出しM.

      -

      見出しS 見出しS 見出しS.

      -
      - -
      -

      القسم XL القسم XL تشديد القسم XL تأكيد قو.

      -

      L L تشديد L تأكيد قو.

      -

      القسم M القسم M تشديد القسم M تأكيد قو.

      -

      القسم S القسم S تشديد القسم S تأكيد قو.

      -
      - -
      -

      XLטקסט גוף הדגשות XLגוף חזק XLגוף חזק.

      -

      Lטקסט גוף הדגשות Lגוף חזק Lגוף חזק.

      -

      Mالقسم טקסט גוף הדגשות Mגוף חזק Mגוף חזק.

      -

      Sالقسم טקסט גוף הדגשות Sגוף חזק Sגוף חזק.

      -
      - - - id: heading-han-m - name: Han - status: Verified - description: Typographic pairings for Adobe Clean Han. - markup: | -
      -

      見出しXXXL

      -

      見出しとよく対になる本文。

      -

      見出しXXL

      -

      見出しとよく対になる本文。

      -

      見出しXL

      -

      見出しとよく対になる本文。

      -

      見出しL

      -

      見出しとよく対になる本文。

      -

      見出しM

      -

      見出しとよく対になる本文。

      -

      見出しS

      -

      見出しとよく対になる本文。

      -
      見出しXS
      -

      見出しとよく対になる本文。

      -
      見出しXXS
      -

      見出しとよく対になる本文。

      -
      - - - id: code-m - name: Typography - Code - status: Verified - description: Typographic styles for computer code. - markup: | -
      - 暗号 XL Code Strong - 暗号 L Code Strong - 暗号 M Code Strong - 暗号 S Code Strong - 暗号 XS Code Strong -
      暗号 M Code Wrapped in:
      -        pre tags for
      -        goodness
      -
      diff --git a/components/typography/metadata/typography.yml b/components/typography/metadata/typography.yml deleted file mode 100644 index 5b52468117b..00000000000 --- a/components/typography/metadata/typography.yml +++ /dev/null @@ -1,173 +0,0 @@ -name: Typography -status: Verified -description: | - Spectrum Typography is broken out into several separate components. - - In addition, the previous deprecated Typogaphy implementations ([legacy](typography-legacy.html), [depreacted](typography-deprecated.html)) are still shipped, but their usage is discouraged. -SpectrumSiteSlug: https://spectrum.adobe.com/page/typography/ -examplesHeading: Components -examples: - - id: heading-m - name: Heading - status: Verified - description: | - Heading is used to create various levels of typographic hierarchies. - - [View the Heading typography component](typography-heading.html) - markup: | -

      Hello world.

      - - id: body-m - name: Body - status: Verified - description: | - Body is primarily used for Spectrum components and for blocks of text. - - [View the Body typography component](typography-body.html) - markup: | -

      Spectrum is based on real-world situations.

      - - id: detail-m - status: Verified - name: Detail - description: | - Detail is used for disclosing extra information or smaller items in hierarchical relationships of text. - - [View the Detail typography component](typography-detail.html) - markup: | -

      Our recommendations

      - - id: code-m - name: Code - status: Verified - description: | - Code is used for text that represents code. - - [View the Code typography component](typography-code.html) - markup: | - alert("Hello world"); -sections: - - name: Custom Properties API - description: | - This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found here. - - name: Applying margins - description: | - By default, Typography components do not include outer margins. If you would like to add margins, simply add the `.spectrum-Typography` class to your container, and every typography component inside of your container will have the correct margins. - markup: | -
      -

      Aliquet Mauris Eu

      -

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.

      -
      - - - name: Migrating from deprecated Typography - description: | - See the table below to reference what will need to change when migrating to the new Typography API. Cells with a dash indicate the typography style did not exist in the previous API. - - Note that all instances of typography now require the component class in addition to the modifier class. For example, to get a large Heading, you will need the `.spectrum-Heading--sizeL` modifier class as well as the `.spectrum-Heading` component class. - - ### Heading - - | Deprecated Classname | New Classname | - | --------------------------------------------------------- | ---------------------------------------------------------------------- | - | `~.spectrum-Heading1--display~` | `.spectrum-Heading.spectrum-Heading--sizeXXXL` | - | `~.spectrum-Heading1--display.spectrum-Heading1--quiet~` | `.spectrum-Heading.spectrum-Heading--sizeXXXL.spectrum-Heading--light` | - | `~.spectrum-Heading1--display.spectrum-Heading1--strong~` | `.spectrum-Heading.spectrum-Heading--sizeXXXL.spectrum-Heading--heavy` | - | `~.spectrum-Heading2--display~` | `.spectrum-Heading.spectrum-Heading--sizeXXL` | - | `~.spectrum-Heading2--display.spectrum-Heading2--quiet~` | `.spectrum-Heading.spectrum-Heading--sizeXXL.spectrum-Heading--light` | - | `~.spectrum-Heading2--display.spectrum-Heading2--strong~` | `.spectrum-Heading.spectrum-Heading--sizeXXL.spectrum-Heading--heavy` | - | `~.spectrum-Heading1~` | `.spectrum-Heading.spectrum-Heading--sizeXL` | - | `~.spectrum-Heading1--quiet~` | `.spectrum-Heading.spectrum-Heading--sizeXL.spectrum-Heading--light` | - | `~.spectrum-Heading1--strong~` | `.spectrum-Heading.spectrum-Heading--sizeXL.spectrum-Heading--heavy` | - | `~.spectrum-Heading2~` | `.spectrum-Heading.spectrum-Heading--sizeL` | - | `~.spectrum-Heading1--quiet~` | `.spectrum-Heading.spectrum-Heading--sizeL.spectrum-Heading--light` | - | `~.spectrum-Heading2--strong~` | `.spectrum-Heading.spectrum-Heading--sizeL.spectrum-Heading--heavy` | - | `~.spectrum-Heading3~` | `.spectrum-Heading.spectrum-Heading--sizeM` | - | `~.spectrum-Heading4~` | `.spectrum-Heading.spectrum-Heading--sizeS` | - | `~.spectrum-Heading5~` | `.spectrum-Heading.spectrum-Heading--sizeXS` | - | `~.spectrum-Heading6~` | `.spectrum-Heading.spectrum-Heading--sizeXXS` | - - - ### Body - - | Deprecated Classname | New Classname | - | ---------------------- | ---------------------------------------- | - | - | `.spectrum-Body.spectrum-Body--sizeXXXL` | - | - | `.spectrum-Body.spectrum-Body--sizeXXL` | - | `~.spectrum-Body1~` | `.spectrum-Body.spectrum-Body--sizeXL` | - | `~.spectrum-Body2~` | `.spectrum-Body.spectrum-Body--sizeL` | - | `~.spectrum-Body3~` | `.spectrum-Body.spectrum-Body--sizeM` | - | `~.spectrum-Body4~` | `.spectrum-Body.spectrum-Body--sizeS` | - | `~.spectrum-Body5~` | `.spectrum-Body.spectrum-Body--sizeXS` | - - - - ### Detail - - | Deprecated Classname | New Classname | - | ------------------------ | ------------------------------------------------- | - | - | `.spectrum-Detail--sizeXL` | - | - | `.spectrum-Detail--sizeXL.spectrum-Detail--light` | - | - | `.spectrum-Detail--sizeL` | - | - | `.spectrum-Detail--sizeL.spectrum-Detail--light` | - | - | `.spectrum-Detail--sizeM` | - | - | `.spectrum-Detail--sizeM.spectrum-Detail--light` | - | `~.spectrum-Subheading~` | `.spectrum-Detail--sizeS` | - | `~.spectrum-Detail~` | `.spectrum-Detail--sizeS.spectrum-Detail--light` | - - - ### Code - - | Deprecated Classname | New Classname | - | -------------------- | ----------------------- | - | `~.spectrum-Code-1~` | `.spectrum-Code--sizeXL`| - | `~.spectrum-Code-2~` | `.spectrum-Code--sizeL` | - | `~.spectrum-Code-3~` | `.spectrum-Code--sizeM` | - | `~.spectrum-Code-4~` | `.spectrum-Code--sizeS` | - | `~.spectrum-Code-5~` | `.spectrum-Code--sizeXS`| - - - name: Updating sizing syntax - description: | - To be more consistent with other t-shirt sizing syntax, the Typography components now use the word `size` in the class name syntax. - - ### Heading - - | Deprecated Classname | New Classname | - |--------------------------------------------|------------------------------------------------| - | `.spectrum-Heading.spectrum-Heading--XXXL` | `.spectrum-Heading.spectrum-Heading--sizeXXXL` | - | `.spectrum-Heading.spectrum-Heading--XXL` | `.spectrum-Heading.spectrum-Heading--sizeXXL` | - | `.spectrum-Heading.spectrum-Heading--XL` | `.spectrum-Heading.spectrum-Heading--sizeXL` | - | `.spectrum-Heading.spectrum-Heading--L` | `.spectrum-Heading.spectrum-Heading--sizeL` | - | `.spectrum-Heading.spectrum-Heading--M` | `.spectrum-Heading.spectrum-Heading--sizeM` | - | `.spectrum-Heading.spectrum-Heading--S` | `.spectrum-Heading.spectrum-Heading--sizeS` | - | `.spectrum-Heading.spectrum-Heading--XS` | `.spectrum-Heading.spectrum-Heading--sizeXS` | - | `.spectrum-Heading.spectrum-Heading--XXS` | `.spectrum-Heading.spectrum-Heading--sizeXXS` | - - ### Body - - | Deprecated Classname | New Classname | - |--------------------------------------|------------------------------------------| - | `.spectrum-Body.spectrum-Body--XXXL` | `.spectrum-Body.spectrum-Body--sizeXXXL` | - | `.spectrum-Body.spectrum-Body--XXL` | `.spectrum-Body.spectrum-Body--sizeXXL` | - | `.spectrum-Body.spectrum-Body--XL` | `.spectrum-Body.spectrum-Body--sizeXL` | - | `.spectrum-Body.spectrum-Body--L` | `.spectrum-Body.spectrum-Body--sizeL` | - | `.spectrum-Body.spectrum-Body--M` | `.spectrum-Body.spectrum-Body--sizeM` | - | `.spectrum-Body.spectrum-Body--S` | `.spectrum-Body.spectrum-Body--sizeS` | - | `.spectrum-Body.spectrum-Body--XS` | `.spectrum-Body.spectrum-Body--sizeXS` | - | `.spectrum-Body.spectrum-Body--XXS` | `.spectrum-Body.spectrum-Body--sizeXXS` | - - ### Detail - - | Deprecated Classname | New Classname | - |----------------------------------------|--------------------------------------------| - | `.spectrum-Detail.spectrum-Detail--XL` | `.spectrum-Detail.spectrum-Detail--sizeXL` | - | `.spectrum-Detail.spectrum-Detail--L` | `.spectrum-Detail.spectrum-Detail--sizeL` | - | `.spectrum-Detail.spectrum-Detail--M` | `.spectrum-Detail.spectrum-Detail--sizeM` | - | `.spectrum-Detail.spectrum-Detail--S` | `.spectrum-Detail.spectrum-Detail--sizeS` | - - - ### Code - - | Deprecated Classname | New Classname | - |--------------------------------------|------------------------------------------| - | `.spectrum-Detail.spectrum-Code--XL` | `.spectrum-Detail.spectrum-Code--sizeXL` | - | `.spectrum-Detail.spectrum-Code--L` | `.spectrum-Detail.spectrum-Code--sizeL` | - | `.spectrum-Detail.spectrum-Code--M` | `.spectrum-Detail.spectrum-Code--sizeM` | - | `.spectrum-Detail.spectrum-Code--S` | `.spectrum-Detail.spectrum-Code--sizeS` | - | `.spectrum-Detail.spectrum-Code--XS` | `.spectrum-Detail.spectrum-Code--sizeXS` | diff --git a/components/typography/package.json b/components/typography/package.json index b11038bd947..b7f3a39b40a 100644 --- a/components/typography/package.json +++ b/components/typography/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/typography", - "version": "6.1.3", + "version": "7.0.0-s2-foundations.15", "description": "The Spectrum CSS typography component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/typography/stories/template.js b/components/typography/stories/template.js index 8f38262c8a6..849cf2c9931 100644 --- a/components/typography/stories/template.js +++ b/components/typography/stories/template.js @@ -7,6 +7,9 @@ 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 = (args = {}, context = {}) => { let { @@ -38,11 +41,23 @@ export const Template = (args = {}, context = {}) => { return Template({ ...args, ...c }, context); } - // body doesn't come in xxs, but if paired with an xxs heading, use xs (the closest size to xxs) - if (semantics === "body" && size === "xxs") { + // Neither code nor body support xxs, but if paired with an xxs heading, use xs (the closest size to xxs) + if (["body", "code"].includes(semantics) && size === "xxs") { size = "xs"; } + if (["detail"].includes(semantics) && size === "xs") { + size = "s"; + } + + if (["detail", "code"].includes(semantics) && size === "xxl") { + size = "xl"; + } + + if (["detail", "code"].includes(semantics) && size === "xxxl") { + size = "xl"; + } + if (typeof semantics === "undefined") { return html`
      { >${c}
      `; } + // body doesn't come in xxs, but if paired with an xxs heading, use xs (the closest size to xxs) + if (semantics === "body" && size === "xxs") { + size = "xs"; + } + rootClass = `spectrum-${capitalize(semantics)}`; const classes = { diff --git a/components/typography/themes/express.css b/components/typography/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/typography/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/typography/themes/spectrum-two.css b/components/typography/themes/spectrum-two.css new file mode 100644 index 00000000000..f95ff87d69d --- /dev/null +++ b/components/typography/themes/spectrum-two.css @@ -0,0 +1,165 @@ +/*! + * 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 + * + * 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 { + --spectrum-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --spectrum-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + + --spectrum-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-font-style: var(--spectrum-default-font-style); + --spectrum-font-size: var(--spectrum-font-size-100); + } + + .spectrum-Heading { + --spectrum-heading-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-heading-serif-font-family: var(--spectrum-serif-font-family-stack); + --spectrum-heading-cjk-font-family: var(--spectrum-cjk-font-family-stack); + + --spectrum-heading-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + + --spectrum-heading-font-color: var(--spectrum-heading-color); + + &.spectrum-Heading--sizeXXS { + --spectrum-heading-font-size: var(--spectrum-heading-size-xxs); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxs); + } + + &.spectrum-Heading--sizeXS { + --spectrum-heading-font-size: var(--spectrum-heading-size-xs); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xs); + } + + &.spectrum-Heading--sizeS { + --spectrum-heading-font-size: var(--spectrum-heading-size-s); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-s); + } + + &, + &.spectrum-Heading--sizeM { + --spectrum-heading-font-size: var(--spectrum-heading-size-m); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-m); + } + + &.spectrum-Heading--sizeL { + --spectrum-heading-font-size: var(--spectrum-heading-size-l); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-l); + } + + &.spectrum-Heading--sizeXL { + --spectrum-heading-font-size: var(--spectrum-heading-size-xl); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xl); + } + + &.spectrum-Heading--sizeXXL { + --spectrum-heading-font-size: var(--spectrum-heading-size-xxl); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxl); + } + + &.spectrum-Heading--sizeXXXL { + --spectrum-heading-font-size: var(--spectrum-heading-size-xxxl); + --spectrum-heading-cjk-font-size: var(--spectrum-heading-cjk-size-xxxl); + } + } + + .spectrum-Body { + --spectrum-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-body-serif-font-family: var(--spectrum-serif-font-family-stack); + --spectrum-body-cjk-font-family: var(--spectrum-cjk-font-family-stack); + + --spectrum-body-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + + --spectrum-body-font-color: var(--spectrum-body-color); + + &.spectrum-Body--sizeXS { + --spectrum-body-font-size: var(--spectrum-body-size-xs); + } + + &.spectrum-Body--sizeS { + --spectrum-body-font-size: var(--spectrum-body-size-s); + } + + &, + &.spectrum-Body--sizeM { + --spectrum-body-font-size: var(--spectrum-body-size-m); + } + + &.spectrum-Body--sizeL { + --spectrum-body-font-size: var(--spectrum-body-size-l); + } + + &.spectrum-Body--sizeXL { + --spectrum-body-font-size: var(--spectrum-body-size-xl); + } + + &.spectrum-Body--sizeXXL { + --spectrum-body-font-size: var(--spectrum-body-size-xxl); + } + + &.spectrum-Body--sizeXXXL { + --spectrum-body-font-size: var(--spectrum-body-size-xxxl); + } + } + + .spectrum-Detail { + --spectrum-detail-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --spectrum-detail-serif-font-family: var(--spectrum-serif-font-family-stack); + --spectrum-detail-cjk-font-family: var(--spectrum-cjk-font-family-stack); + + --spectrum-detail-font-color: var(--spectrum-detail-color); + + &.spectrum-Detail--sizeS { + --spectrum-detail-font-size: var(--spectrum-detail-size-s); + } + + &, + &.spectrum-Detail--sizeM { + --spectrum-detail-font-size: var(--spectrum-detail-size-m); + } + + &.spectrum-Detail--sizeL { + --spectrum-detail-font-size: var(--spectrum-detail-size-l); + } + + &.spectrum-Detail--sizeXL { + --spectrum-detail-font-size: var(--spectrum-detail-size-xl); + } + } + + .spectrum-Code { + --spectrum-code-font-family: var(--spectrum-code-font-family-stack); + --spectrum-code-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --spectrum-code-font-color: var(--spectrum-code-color); + + &.spectrum-Code--sizeXS { + --spectrum-code-font-size: var(--spectrum-code-size-xs); + } + + &.spectrum-Code--sizeS { + --spectrum-code-font-size: var(--spectrum-code-size-s); + } + + &, + &.spectrum-Code--sizeM { + --spectrum-code-font-size: var(--spectrum-code-size-m); + } + + &.spectrum-Code--sizeL { + --spectrum-code-font-size: var(--spectrum-code-size-l); + } + + &.spectrum-Code--sizeXL { + --spectrum-code-font-size: var(--spectrum-code-size-xl); + } + } +} diff --git a/components/typography/themes/spectrum.css b/components/typography/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/typography/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/underlay/CHANGELOG.md b/components/underlay/CHANGELOG.md index ebe4e56a61d..1adc707d783 100644 --- a/components/underlay/CHANGELOG.md +++ b/components/underlay/CHANGELOG.md @@ -1,5 +1,161 @@ # Change Log +## 5.0.0-s2-foundations.13 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 5.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 5.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 5.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 5.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 5.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 5.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 5.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 5.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 4.1.3 ### Patch Changes diff --git a/components/underlay/index.css b/components/underlay/index.css index ef76d4072ed..b7a071ba65f 100644 --- a/components/underlay/index.css +++ b/components/underlay/index.css @@ -12,19 +12,7 @@ */ @import "@spectrum-css/commons/overlay.css"; - -.spectrum-Underlay { - --spectrum-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); - --spectrum-underlay-background-exit-animation-ease: var(--spectrum-animation-ease-in); - --spectrum-underlay-background-entry-animation-ease: var(--spectrum-animation-ease-out); - --spectrum-underlay-background-exit-animation-duration: var(--spectrum-animation-duration-100); - --spectrum-underlay-background-entry-animation-duration: var(--spectrum-animation-duration-600); - --spectrum-underlay-background-exit-animation-duration: var(--spectrum-animation-duration-300); - --spectrum-underlay-background-exit-animation-delay: var(--spectrum-animation-duration-200); - - /* TODO update to --spectrum-overlay-color token once an RGB stripped value is available */ - --spectrum-underlay-background-color: rgba(var(--spectrum-black-rgb), var(--spectrum-overlay-opacity)); -} +@import "./themes/spectrum-two.css"; .spectrum-Underlay { @extend %spectrum-overlay; diff --git a/components/underlay/package.json b/components/underlay/package.json index 1cd22f80ebf..f82ebc84e54 100644 --- a/components/underlay/package.json +++ b/components/underlay/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/underlay", - "version": "4.1.3", + "version": "5.0.0-s2-foundations.13", "description": "The Spectrum CSS underlay component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/underlay/stories/template.js b/components/underlay/stories/template.js index b19acb1a625..837e51e9b1a 100644 --- a/components/underlay/stories/template.js +++ b/components/underlay/stories/template.js @@ -5,6 +5,9 @@ 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-Underlay", diff --git a/components/underlay/themes/express.css b/components/underlay/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/underlay/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/underlay/themes/spectrum-two.css b/components/underlay/themes/spectrum-two.css new file mode 100644 index 00000000000..25bf2698e8e --- /dev/null +++ b/components/underlay/themes/spectrum-two.css @@ -0,0 +1,26 @@ +/*! + * 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 + * + * 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-Underlay { + --spectrum-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); + --spectrum-underlay-background-exit-animation-ease: var(--spectrum-animation-ease-in); + --spectrum-underlay-background-entry-animation-ease: var(--spectrum-animation-ease-out); + --spectrum-underlay-background-entry-animation-duration: var(--spectrum-animation-duration-600); + --spectrum-underlay-background-exit-animation-duration: var(--spectrum-animation-duration-300); + --spectrum-underlay-background-exit-animation-delay: var(--spectrum-animation-duration-200); + + /* TODO update to --spectrum-overlay-color token once an RGB stripped value is available */ + --spectrum-underlay-background-color: rgba(var(--spectrum-black-rgb), var(--spectrum-overlay-opacity)); + } +} diff --git a/components/underlay/themes/spectrum.css b/components/underlay/themes/spectrum.css new file mode 100644 index 00000000000..5a930981122 --- /dev/null +++ b/components/underlay/themes/spectrum.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/well/CHANGELOG.md b/components/well/CHANGELOG.md index c7a292f720f..0092f263064 100644 --- a/components/well/CHANGELOG.md +++ b/components/well/CHANGELOG.md @@ -1,5 +1,179 @@ # Change Log +## 6.0.0-s2-foundations.14 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +### Patch Changes + +- Updated dependencies [[`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.21 + +## 6.0.0-s2-foundations.13 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`9df688a`](https://github.com/adobe/spectrum-css/commit/9df688a6a83be5f13bc4e0e732fed294af08bf3f) Thanks [@pfulton](https://github.com/pfulton)! - Replaces raw RGB value/direct token references with abstracted custom properties in theme/spectrum-two.css files + + Asset card + + - removes raw rgb value for box-shadow from `index.css` + - creates new `--spectrum-assetcard-selectionindicator-box-shadow-color` + in `themes/spectrum-two.css` with previous rgb value to use instead + + Well + + - removes `--spectrum-gray-800-rgb` for background-color from `index.css` + - creates new `--spectrum-well-background-color` in `themes/spectrum-two.css` + with previous `--spectrum-gray-800-rgb` property to use instead + +## 6.0.0-s2-foundations.12 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +### Patch Changes + +- Updated dependencies [[`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.13 + +## 6.0.0-s2-foundations.11 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +### Patch Changes + +- Updated dependencies [[`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.12 + +## 6.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +### Patch Changes + +- Updated dependencies [[`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.10 + +## 6.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +- Updated dependencies [[`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d), [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09), [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.9 + +## 6.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +### Patch Changes + +- Updated dependencies [[`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.8 + +## 6.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +### Patch Changes + +- Updated dependencies [[`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.7 + +## 6.0.0-s2-foundations.6 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +- Updated dependencies [[`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d), [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.6 + +## 6.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +- Updated dependencies [[`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.5 + +## 6.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +- Updated dependencies [[`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.4 + +## 6.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +### Patch Changes + +- Updated dependencies [[`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.3 + +## 6.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +### Patch Changes + +- Updated dependencies [[`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.2 + +## 6.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +### Patch Changes + +- Updated dependencies [[`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.1 + +## 6.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + +### Patch Changes + +- Updated dependencies [[`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce)]: + - @spectrum-css/tokens@15.0.0-s2-foundations.0 + ## 5.2.4 ### Patch Changes diff --git a/components/well/index.css b/components/well/index.css index f93a1f32f9b..a307feb12eb 100644 --- a/components/well/index.css +++ b/components/well/index.css @@ -11,21 +11,18 @@ * governing permissions and limitations under the License. */ -.spectrum-Well { - --spectrum-well-border-width: var(--spectrum-border-width-100); - --spectrum-well-content-color: var(--spectrum-body-color); -} +@import "./themes/spectrum-two.css"; .spectrum-Well { text-align: start; display: block; - min-inline-size: var(--mod-well-min-width, var(--spectrum-well-min-width)); + min-inline-size: var(--mod-well-min-width, var(--spectrum-well-minimum-width)); padding: var(--mod-well-padding, var(--spectrum-well-padding)); margin-block-start: var(--mod-well-margin-top, var(--spectrum-well-margin-top)); border-width: var(--mod-well-border-width, var(--spectrum-well-border-width)); border-style: solid; border-radius: var(--mod-well-border-radius, var(--spectrum-well-border-radius)); - background-color: var(--mod-well-background-color, rgba(var(--spectrum-gray-800-rgb), 0.02)); + background-color: var(--mod-well-background-color, var(--spectrum-well-background-color)); border-color: var(--mod-well-border-color, var(--spectrum-well-border-color)); color: var(--mod-well-content-color, var(--spectrum-well-content-color)); } diff --git a/components/well/metadata/metadata.json b/components/well/metadata/metadata.json index 3d2c12b361f..021e7b6b965 100644 --- a/components/well/metadata/metadata.json +++ b/components/well/metadata/metadata.json @@ -12,18 +12,23 @@ "--mod-well-padding" ], "component": [ + "--spectrum-well-background-color", "--spectrum-well-border-color", "--spectrum-well-border-radius", "--spectrum-well-border-width", "--spectrum-well-content-color", "--spectrum-well-margin-top", "--spectrum-well-min-width", + "--spectrum-well-minimum-width", "--spectrum-well-padding" ], "global": [ "--spectrum-body-color", "--spectrum-border-width-100", - "--spectrum-gray-800-rgb" + "--spectrum-gray-1000", + "--spectrum-gray-800-rgb", + "--spectrum-spacing-300", + "--spectrum-spacing-75" ], "system-theme": [], "passthroughs": [], diff --git a/components/well/metadata/well.yml b/components/well/metadata/well.yml deleted file mode 100644 index c80b992ae80..00000000000 --- a/components/well/metadata/well.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Well -examples: - - id: well - name: Standard - markup: | -

      Well Label (Optional)

      - -

      - Well done is better than well said. -
      - Benjamin Franklin -

      - Well said Ben! -

      -
      diff --git a/components/well/package.json b/components/well/package.json index d857e417112..3c6523c6b29 100644 --- a/components/well/package.json +++ b/components/well/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/well", - "version": "5.2.4", + "version": "6.0.0-s2-foundations.14", "description": "The Spectrum CSS well component", "license": "Apache-2.0", "author": "Adobe", diff --git a/components/well/stories/template.js b/components/well/stories/template.js index 033c5b014ff..c9645cfdcdb 100644 --- a/components/well/stories/template.js +++ b/components/well/stories/template.js @@ -5,6 +5,9 @@ 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", @@ -13,16 +16,18 @@ export const Template = ({ id = getRandomId("well"), testId, content = [], -}, context) => html` - ({ ...a, [c]: true }), {}), - })} - style=${styleMap(customStyles)} - id=${ifDefined(id)} - data-testid=${ifDefined(testId)} - > - ${renderContent(content, { context })} - -`; +} = {}, context = {}) => { + return html` + ({ ...a, [c]: true }), {}), + })} + style=${styleMap(customStyles)} + id=${ifDefined(id)} + data-testid=${ifDefined(testId)} + > + ${renderContent(content, { context })} + + `; +}; diff --git a/components/well/themes/express.css b/components/well/themes/express.css new file mode 100644 index 00000000000..b1f3d9e5ad7 --- /dev/null +++ b/components/well/themes/express.css @@ -0,0 +1,17 @@ +/*! + * 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 + * + * 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/tokens/dist/css/express/dark-vars.css b/components/well/themes/spectrum-two.css similarity index 52% rename from tokens/dist/css/express/dark-vars.css rename to components/well/themes/spectrum-two.css index 28180e90f11..96c9c0c1fb4 100644 --- a/tokens/dist/css/express/dark-vars.css +++ b/components/well/themes/spectrum-two.css @@ -11,13 +11,17 @@ * governing permissions and limitations under the License. */ -.spectrum--express.spectrum--dark{ - --spectrum-drop-zone-background-color-rgb:var(--spectrum-indigo-900-rgb); - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); +@container style(--system: spectrum) { + .spectrum-Well { + --spectrum-well-border-width: var(--spectrum-border-width-100); + --spectrum-well-border-color: rgba(var(--spectrum-gray-1000), .05); + --spectrum-well-border-radius: var(--spectrum-spacing-75); + --spectrum-well-content-color: var(--spectrum-body-color); + --spectrum-well-background-color: rgba(var(--spectrum-gray-800-rgb), .02); - --spectrum-assetcard-border-color-selected:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-indigo-700); + --spectrum-well-padding: var(--spectrum-spacing-300); + --spectrum-well-margin-top: var(--spectrum-spacing-75); + --spectrum-well-minimum-width: var(--spectrum-well-min-width); + } } diff --git a/components/well/themes/spectrum.css b/components/well/themes/spectrum.css new file mode 100644 index 00000000000..4fc44769bd4 --- /dev/null +++ b/components/well/themes/spectrum.css @@ -0,0 +1,23 @@ +/*! + * 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 + * + * 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), .05); + } +} diff --git a/generator/CHANGELOG.md b/generator/CHANGELOG.md index c9027a9beca..4ee8f942050 100644 --- a/generator/CHANGELOG.md +++ b/generator/CHANGELOG.md @@ -1,5 +1,55 @@ # Change Log +## 5.0.0-s2-foundations.7 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`a4e0278`](https://github.com/adobe/spectrum-css/commit/a4e0278af07d97b668a73fabcbb18b37411ecb86) Thanks [@pfulton](https://github.com/pfulton)! - Update mdx template to include TaggedReleases and ComponentDetails + +## 5.0.0-s2-foundations.6 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +## 5.0.0-s2-foundations.5 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +## 5.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +## 5.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +## 5.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +## 5.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +## 5.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + ## 4.1.0 ### Minor Changes diff --git a/generator/package.json b/generator/package.json index 07c1ee3b2b7..fcd6c9976bf 100644 --- a/generator/package.json +++ b/generator/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/generator", - "version": "4.1.0", + "version": "5.0.0-s2-foundations.7", "description": "A tool to quickly create standardized components", "license": "Apache-2.0", "author": "Adobe", diff --git a/generator/templates/index.css.hbs b/generator/templates/index.css.hbs index 6c3510c104a..cfb6f764d20 100644 --- a/generator/templates/index.css.hbs +++ b/generator/templates/index.css.hbs @@ -11,24 +11,18 @@ * governing permissions and limitations under the License. */ -@import "./themes/express.css"; + @import "./themes/spectrum-two.css"; .spectrum-{{ pascalCase name }} { - /* Variables defined here */ - /* --spectrum-{{ folderName }}-... */ + // color: var(--highcontrast-{{ folderName }}-content-color-default, var(--mod-{{ folderName }}-content-color-default, var(--spectrum-{{ folderName }}-content-color-default))); - &:lang(ja), - &:lang(zh), - &:lang(ko) { - --spectrum-{{ folderName }}-line-height-cjk: var(--spectrum-cjk-line-height-100); - } + &.spectrum-{{ pascalCase name }}--sizeS {} + &, + &.spectrum-{{ pascalCase name }}--sizeM {} + &.spectrum-{{ pascalCase name }}--sizeL {} + &.spectrum-{{ pascalCase name }}--sizeXL {} } -.spectrum-{{ pascalCase name }}--sizeS {} -.spectrum-{{ pascalCase name }}--sizeM {} -.spectrum-{{ pascalCase name }}--sizeL {} -.spectrum-{{ pascalCase name }}--sizeXL {} - @media (forced-colors: active) { .spectrum-{{ pascalCase name }} { --highcontrast-{{ folderName }}-content-color-default: CanvasText; @@ -36,8 +30,3 @@ forced-color-adjust: none; } } - -.spectrum-{{ pascalCase name }} { - /* Properties defined here */ - color: var(--highcontrast-{{ folderName }}-content-color-default, var(--mod-{{ folderName }}-content-color-default, var(--spectrum-{{ folderName }}-content-color-default))); -} diff --git a/generator/templates/project.json.hbs b/generator/templates/project.json.hbs index c51870d07b1..6f68b7e48f7 100644 --- a/generator/templates/project.json.hbs +++ b/generator/templates/project.json.hbs @@ -8,6 +8,7 @@ "compare": {}, "format": {}, "lint": {}, + "report": {}, "test": { "defaultConfiguration": "scope" }, diff --git a/generator/templates/stories/template.js.hbs b/generator/templates/stories/template.js.hbs index 394ccd11658..af1047abb64 100644 --- a/generator/templates/stories/template.js.hbs +++ b/generator/templates/stories/template.js.hbs @@ -7,6 +7,8 @@ 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/generator/templates/stories/{{ folderName }}.stories.js.hbs b/generator/templates/stories/{{ folderName }}.stories.js.hbs index 552f294ce89..7caab343a96 100644 --- a/generator/templates/stories/{{ folderName }}.stories.js.hbs +++ b/generator/templates/stories/{{ folderName }}.stories.js.hbs @@ -38,12 +38,11 @@ export default { actions: { handles: ["click .spectrum-{{ pascalCase name }}"], }, - componentVersion: version, + packageJson: pkgJson, design: { type: "figma", url: "", }, - componentVersion: pkgJson.version, } }; diff --git a/generator/templates/themes/express.css.hbs b/generator/templates/themes/express.css.hbs index 914edf75de3..0312cb359b9 100644 --- a/generator/templates/themes/express.css.hbs +++ b/generator/templates/themes/express.css.hbs @@ -13,4 +13,4 @@ @import "./spectrum.css"; -@container (--system: express) {} +@container style(--system: express) {} diff --git a/tokens/dist/css/components/bridge/assetcard.css b/generator/templates/themes/spectrum-two.css.hbs similarity index 75% rename from tokens/dist/css/components/bridge/assetcard.css rename to generator/templates/themes/spectrum-two.css.hbs index a4319ead968..d8cc6efa999 100644 --- a/tokens/dist/css/components/bridge/assetcard.css +++ b/generator/templates/themes/spectrum-two.css.hbs @@ -11,6 +11,13 @@ * governing permissions and limitations under the License. */ -.spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: var(--system-spectrum-assetcard-overlay-background-color); + +/* @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/generator/templates/themes/spectrum.css.hbs b/generator/templates/themes/spectrum.css.hbs index b0d4a7b1ab8..212e75ce8f7 100644 --- a/generator/templates/themes/spectrum.css.hbs +++ b/generator/templates/themes/spectrum.css.hbs @@ -11,4 +11,6 @@ * governing permissions and limitations under the License. */ -@container (--system: spectrum) {} +@import "./spectrum-two.css"; + +@container style(--system: legacy) {} diff --git a/lint-staged.config.js b/lint-staged.config.js index aed9e4e5671..358bbfa8d86 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -8,24 +8,12 @@ module.exports = { "dist/*.css": [ "prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write" ], - "components/*/metadata/*.{yml,yaml}": (files) => { - return [ - ...(files.map(file => `pajv test --valid -s ./schemas/documentation.schema.json -d "${file}"`) ?? []), - `prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write ${files.join(" ")}` - ]; - }, "components/*/metadata/metadata.json": (files) => { return [ ...(files.map(file => `pajv test --valid -s ./schemas/metadata.schema.json -d "${file}"`) ?? []), `prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write ${files.join(" ")}` ]; }, - ".storybook/deprecated/*/*.yml": (files) => { - return [ - ...(files.map(file => `pajv test --valid -s ./schemas/documentation.schema.json -d "${file}"`) ?? []), - `prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write ${files.join(" ")}` - ]; - }, "*.{md,mdx}": [ "prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write" ] diff --git a/netlify.toml b/netlify.toml index 99b46c2cdcf..25bf5b3f63a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,13 +1,6 @@ [build] publish = "dist/" - command = "yarn prepare:site" - -# Other projects use the default /storybook/ pathing; -# this remaps this to our /preview/ path. -# Why? Using preview decouples us from the tool. -[[redirects]] - from = "/storybook/" - to = "/preview/" + command = "yarn build:site" # If skip_processing = true, all other settings are ignored [build.processing] diff --git a/nx.json b/nx.json index 3d61b3062df..eb5c8f580b9 100644 --- a/nx.json +++ b/nx.json @@ -9,7 +9,6 @@ }, "namedInputs": { "core": ["{projectRoot}/*.css", "{projectRoot}/themes/*.css"], - "docs": ["{projectRoot}/metadata/*.yml"], "eslint": ["{workspaceRoot}/.eslintrc"], "metadata": ["{projectRoot}/metadata/*.json"], "prettier": ["{workspaceRoot}/.prettierrc"], @@ -35,7 +34,8 @@ "cache": true, "dependsOn": [ "^build", - "clean" + "clean", + { "projects": "tokens", "target": "build" } ], "executor": "nx:run-commands", "inputs": [ @@ -43,20 +43,18 @@ "tools", "{workspaceRoot}/tasks/component-builder.js", "!{projectRoot}/stories/*.js", + "{workspaceRoot}/tasks/component-builder.js", { "externalDependencies": ["postcss"] }, { "env": "NODE_ENV" } ], "options": { "commands": [ - "node --no-warnings -e 'require(\"./tasks/component-builder.js\").default()'" + "cross-env NODE_OPTIONS=\"--no-warnings\" node -e 'require(\"./tasks/component-builder.js\").default()'" ] }, "outputs": [ - "{projectRoot}/dist/*.{css,json}", - "{projectRoot}/dist/themes/*.css", - "{projectRoot}/dist/*.map", - "{projectRoot}/dist/themes/*.css.map", - "{projectRoot}/metadata/mods.md" + "{projectRoot}/dist/*.css", + "{projectRoot}/dist/themes/*.css" ] }, "clean": { @@ -121,9 +119,9 @@ ], "options": { "commands": [ - "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/*.css {projectRoot}/**/*.css && stylelint --fix --cache --allow-empty-input {projectRoot}/*.css {projectRoot}/**/*.css", + "stylelint --fix --cache --allow-empty-input {projectRoot}/*.css {projectRoot}/**/*.css", "eslint --fix --cache --no-error-on-unmatched-pattern {projectRoot}/*.json {projectRoot}/stories/*.js", - "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/*.{yml,md,mdx} {projectRoot}/**/*.{yml,md,mdx}" + "prettier --write --cache --log-level error --ignore-unknown --no-error-on-unmatched-pattern {projectRoot}/*.{md,mdx} {projectRoot}/**/*.{md,mdx}" ] } }, @@ -194,15 +192,12 @@ "validate": { "executor": "nx:run-commands", "inputs": [ - "{workspaceRoot}/schemas/documentation.schema.json", "{workspaceRoot}/schemas/metadata.schema.json", - "docs", "metadata", { "externalDependencies": ["pajv"] } ], "options": { "commands": [ - "test -e {projectRoot}/metadata && pajv validate -s ./schemas/documentation.schema.json -d \"{projectRoot}/metadata/*.yml\" || exit 0", "test -e {projectRoot}/metadata && pajv validate -s ./schemas/metadata.schema.json -d \"{projectRoot}/metadata/metadata.json\" || exit 0" ] } diff --git a/package.json b/package.json index 956d5b05842..ec2f29d0417 100644 --- a/package.json +++ b/package.json @@ -13,19 +13,19 @@ "url": "https://github.com/adobe/spectrum-css/issues" }, "scripts": { - "build": "yarn builder tag:component,ui-icons", + "build": "yarn builder tag:component", "build:preview": "nx build storybook", - "build:site": "nx clean docs && nx build docs && nx run storybook:build:docs", + "build:site": "nx build storybook --output-dir ../dist/", "builder": "nx run-many --target build report --projects", "changeset": "changeset", - "ci": "cross-env NODE_ENV=production yarn build --skip-nx-cache", + "ci": "cross-env NODE_ENV=production yarn builder tag:component,ui-icons --skip-nx-cache", "ci:storybook": "cross-env NODE_ENV=development nx run storybook:build:ci --skip-nx-cache", "clean": "yarn cleaner tag:component", "clean:docs": "rimraf dist", "clean:preview": "nx clean storybook", "cleaner": "nx run-many --target clean --projects", "compare": "cross-env NODE_ENV=production node --no-warnings ./tasks/compare-compiled-output.js", - "dev": "cross-env NODE_ENV=development nx run storybook:build:docs && nx start docs", + "dev": "cross-env NODE_ENV=development nx run storybook:build:docs && cross-env NODE_ENV=production nx start docs", "format": "yarn formatter tag:component", "formatter": "nx run-many --target format --projects", "lint": "yarn linter tag:component", @@ -53,7 +53,6 @@ "plugins/*", "tokens", "ui-icons", - "site", "generator", ".storybook", ".github/actions/*" @@ -64,10 +63,10 @@ "@commitlint/cli": "^19.5.0", "@commitlint/config-conventional": "^19.5.0", "@nx/devkit": "^19.8.0", - "@spectrum-css/cyclebutton": "^3.1.3", - "@spectrum-css/quickaction": "^3.1.1", - "@spectrum-css/searchwithin": "^5.1.3", - "@spectrum-css/splitbutton": "^8.1.2", + "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.3.1", + "@spectrum-tools/postcss-add-theming-layer": "workspace:^", + "@spectrum-tools/postcss-property-rollup": "workspace:^", + "@spectrum-tools/postcss-rgb-mapping": "workspace:^", "at-rule-packer": "^0.4.2", "autoprefixer": "^10.4.19", "colors": "^1.4.0", @@ -92,7 +91,6 @@ "open": "^10.1.0", "pajv": "^1.2.0", "postcss": "^8.4.45", - "postcss-combininator": "workspace:^", "postcss-extend": "^1.0.5", "postcss-hover-media-feature": "^1.0.2", "postcss-import": "^16.1.0", @@ -101,10 +99,8 @@ "postcss-preset-env": "^9.5.13", "postcss-pseudo-classes": "^0.4.0", "postcss-reporter": "^7.1.0", - "postcss-rgb-mapping": "workspace:^", "postcss-selector-replace": "^1.0.2", "postcss-sorting": "^8.0.2", - "postcss-splitinator": "workspace:^", "postcss-values-parser": "^6.0.2", "prettier": "^3.2.5", "rimraf": "^6.0.1", diff --git a/plugins/postcss-splitinator/CHANGELOG.md b/plugins/postcss-add-theming-layer/CHANGELOG.md similarity index 86% rename from plugins/postcss-splitinator/CHANGELOG.md rename to plugins/postcss-add-theming-layer/CHANGELOG.md index fa9f3e2d31c..aab665df410 100644 --- a/plugins/postcss-splitinator/CHANGELOG.md +++ b/plugins/postcss-add-theming-layer/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.1.1-s2-foundations.0 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + ## 2.1.0 ### Minor Changes diff --git a/plugins/postcss-add-theming-layer/README.md b/plugins/postcss-add-theming-layer/README.md new file mode 100644 index 00000000000..cf496ca9ab5 --- /dev/null +++ b/plugins/postcss-add-theming-layer/README.md @@ -0,0 +1,115 @@ +# 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 new file mode 100644 index 00000000000..711a906a74d --- /dev/null +++ b/plugins/postcss-add-theming-layer/expected/basic.css @@ -0,0 +1,41 @@ +.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 new file mode 100644 index 00000000000..50692d97093 --- /dev/null +++ b/plugins/postcss-add-theming-layer/fixtures/basic.css @@ -0,0 +1,49 @@ +@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 new file mode 100644 index 00000000000..f0239fd4cee --- /dev/null +++ b/plugins/postcss-add-theming-layer/index.js @@ -0,0 +1,203 @@ +/*! + * 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 + * + * 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 */ +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}`; + } + + // index-theme.css settings: + // skipMapping: false, + // preserveVariables: true + // stripLocalSelectors: false, + // referencesOnly: true, + + // 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.append(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; + + 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); + } + + root.append(rule); + } + } + }, +}); + +module.exports.postcss = true; diff --git a/plugins/postcss-add-theming-layer/package.json b/plugins/postcss-add-theming-layer/package.json new file mode 100644 index 00000000000..16f0b7164ed --- /dev/null +++ b/plugins/postcss-add-theming-layer/package.json @@ -0,0 +1,35 @@ +{ + "name": "@spectrum-tools/postcss-add-theming-layer", + "version": "0.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 " + ], + "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.1.3", + "c8": "^10.1.2", + "postcss": "^8.4.45" + }, + "keywords": [ + "css", + "theming", + "custom properties", + "postcss", + "postcss-plugin" + ] +} diff --git a/plugins/postcss-splitinator/project.json b/plugins/postcss-add-theming-layer/project.json similarity index 76% rename from plugins/postcss-splitinator/project.json rename to plugins/postcss-add-theming-layer/project.json index 9dfb4ded7c9..7797edce0f8 100644 --- a/plugins/postcss-splitinator/project.json +++ b/plugins/postcss-add-theming-layer/project.json @@ -1,7 +1,7 @@ { "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "postcss-splitinator", - "tags": ["tooling", "postcss", "plugin"], + "name": "postcss-add-theming-layer", + "tags": ["tooling", "postcss"], "targets": { "format": { "defaultConfiguration": "plugins" diff --git a/plugins/postcss-splitinator/test.js b/plugins/postcss-add-theming-layer/test.js similarity index 89% rename from plugins/postcss-splitinator/test.js rename to plugins/postcss-add-theming-layer/test.js index 2e2923f7b91..ed431c85f20 100644 --- a/plugins/postcss-splitinator/test.js +++ b/plugins/postcss-add-theming-layer/test.js @@ -20,14 +20,7 @@ function compare( t, fixtureFilePath, expectedFilePath, - options = { - processIdentifier: (identifier) => { - if (identifier === "express") { - return "spectrum--express"; - } - return identifier; - }, - } + options = {} ) { return postcss([plugin(options)]) .process(readFile(`./fixtures/${fixtureFilePath}`), { diff --git a/plugins/postcss-add-theming-layer/utilities.js b/plugins/postcss-add-theming-layer/utilities.js new file mode 100644 index 00000000000..0988f27ce38 --- /dev/null +++ b/plugins/postcss-add-theming-layer/utilities.js @@ -0,0 +1,244 @@ +/*! + * 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 + * + * 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- 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-combininator/README.md b/plugins/postcss-combininator/README.md deleted file mode 100644 index 50c4b6d28c3..00000000000 --- a/plugins/postcss-combininator/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# postcss-combininator - -> Combines multiple blocks of custom properties - -## Installation - -```sh -npm install postcss-combininator -postcss -u postcss-combininator -o dist/index.css src/index.css -``` - -## Usage - -This plugin turns this: - -```css -.spectrum { - --spectrum-actionbutton-background-color: blue; - --spectrum-actionbutton-border-color: transparent; -} - -.spectrum--express { - --spectrum-actionbutton-background-color: purple; -} -``` - -Into this: - -```css -.spectrum--express { - --spectrum-actionbutton-border-color: transparent; - --spectrum-actionbutton-background-color: purple; -} -``` - -The resulting selector comes from the last rule, and all duplicate properties in the subsequent rules override the previous declarations. diff --git a/plugins/postcss-combininator/index.js b/plugins/postcss-combininator/index.js deleted file mode 100644 index 1a392d94637..00000000000 --- a/plugins/postcss-combininator/index.js +++ /dev/null @@ -1,51 +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 - * - * 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 - */ - -/** @type import('postcss').PluginCreator */ -module.exports = () => { - return { - postcssPlugin: "postcss-combininator", - OnceExit(root) { - const rules = []; - const declarations = {}; - - root.walkRules((rule) => { - rules.push(rule); - rule.walkDecls(/^--/, (decl) => { - declarations[decl.prop] = decl; - decl.remove(); - }); - }); - - if (!rules.length) return; - - 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-combininator/package.json b/plugins/postcss-combininator/package.json deleted file mode 100644 index c0b35dd0baf..00000000000 --- a/plugins/postcss-combininator/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "private": true, - "name": "postcss-combininator", - "version": "2.0.1", - "description": "Combines multiple blocks of custom properties", - "license": "Apache-2.0", - "author": "Adobe", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "coverage": "c8 yarn test", - "prepublishOnly": "yarn test", - "test": "ava" - }, - "dependencies": { - "postcss": "^8.4.45" - }, - "peerDependencies": { - "postcss": ">=8" - }, - "devDependencies": { - "ava": "^6.1.3", - "c8": "^9.1.0", - "postcss": "^8.4.45" - }, - "keywords": [ - "css", - "rgb", - "plugin", - "postcss" - ] -} diff --git a/plugins/postcss-combininator/CHANGELOG.md b/plugins/postcss-property-rollup/CHANGELOG.md similarity index 100% rename from plugins/postcss-combininator/CHANGELOG.md rename to plugins/postcss-property-rollup/CHANGELOG.md diff --git a/plugins/postcss-property-rollup/README.md b/plugins/postcss-property-rollup/README.md new file mode 100644 index 00000000000..20fe1c9f821 --- /dev/null +++ b/plugins/postcss-property-rollup/README.md @@ -0,0 +1,67 @@ +# 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`
      +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[]`
      +Default: `[]` + +An array of selectors to ignore when combining rules. diff --git a/plugins/postcss-combininator/expected/basic.css b/plugins/postcss-property-rollup/expected/basic.css similarity index 100% rename from plugins/postcss-combininator/expected/basic.css rename to plugins/postcss-property-rollup/expected/basic.css diff --git a/plugins/postcss-combininator/fixtures/basic.css b/plugins/postcss-property-rollup/fixtures/basic.css similarity index 92% rename from plugins/postcss-combininator/fixtures/basic.css rename to plugins/postcss-property-rollup/fixtures/basic.css index 44e0a115403..d7614ec6ee3 100644 --- a/plugins/postcss-combininator/fixtures/basic.css +++ b/plugins/postcss-property-rollup/fixtures/basic.css @@ -1,3 +1,4 @@ +/* @combine */ .spectrum { --spectrum-actionbutton-background-color: blue; --spectrum-actionbutton-border-color: transparent; diff --git a/plugins/postcss-property-rollup/index.js b/plugins/postcss-property-rollup/index.js new file mode 100644 index 00000000000..2d986684c94 --- /dev/null +++ b/plugins/postcss-property-rollup/index.js @@ -0,0 +1,98 @@ +/*! + * 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 + * + * 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 */ +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 new file mode 100644 index 00000000000..5c38926e1e6 --- /dev/null +++ b/plugins/postcss-property-rollup/package.json @@ -0,0 +1,31 @@ +{ + "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 " + ], + "main": "index.js", + "files": [ + "package.json", + "index.js", + "*.md" + ], + "peerDependencies": { + "postcss": ">=8" + }, + "devDependencies": { + "ava": "^6.1.3", + "c8": "^10.1.2", + "postcss": "^8.4.45" + }, + "keywords": [ + "css", + "theming", + "custom properties", + "postcss", + "postcss-plugin" + ] +} diff --git a/plugins/postcss-combininator/project.json b/plugins/postcss-property-rollup/project.json similarity index 76% rename from plugins/postcss-combininator/project.json rename to plugins/postcss-property-rollup/project.json index f4846981224..681869f7a14 100644 --- a/plugins/postcss-combininator/project.json +++ b/plugins/postcss-property-rollup/project.json @@ -1,7 +1,7 @@ { "$schema": "../../node_modules/nx/schemas/project-schema.json", - "name": "postcss-combininator", - "tags": ["tooling", "postcss", "plugin"], + "name": "postcss-property-rollup", + "tags": ["tooling", "postcss"], "targets": { "format": { "defaultConfiguration": "plugins" diff --git a/plugins/postcss-combininator/test.js b/plugins/postcss-property-rollup/test.js similarity index 100% rename from plugins/postcss-combininator/test.js rename to plugins/postcss-property-rollup/test.js diff --git a/plugins/postcss-rgb-mapping/CHANGELOG.md b/plugins/postcss-rgb-mapping/CHANGELOG.md index 88dd518e315..6ca1f209e5f 100644 --- a/plugins/postcss-rgb-mapping/CHANGELOG.md +++ b/plugins/postcss-rgb-mapping/CHANGELOG.md @@ -1,5 +1,11 @@ # postcss-rgb-mapping +## 3.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to the rgb mapping plugin brought back rgb alias's to tokens output + ## 2.1.0 ### Minor Changes diff --git a/plugins/postcss-rgb-mapping/README.md b/plugins/postcss-rgb-mapping/README.md index 4111ac0efe7..198d3adecb4 100644 --- a/plugins/postcss-rgb-mapping/README.md +++ b/plugins/postcss-rgb-mapping/README.md @@ -5,7 +5,7 @@ ## Installation ```sh -yarn add -D postcss-rgb-mapping +yarn add -D @spectrum-tools/postcss-rgb-mapping postcss -u postcss-rgb-mapping -o dist/index.css src/index.css ``` diff --git a/plugins/postcss-rgb-mapping/index.js b/plugins/postcss-rgb-mapping/index.js index d38378a3059..155a1c68cfe 100644 --- a/plugins/postcss-rgb-mapping/index.js +++ b/plugins/postcss-rgb-mapping/index.js @@ -11,7 +11,7 @@ * governing permissions and limitations under the License. */ -const valueParser = require("postcss-value-parser"); +const valuesParser = require("postcss-values-parser"); /** @typedef {object} Options */ @@ -35,9 +35,10 @@ function rgbMappingFunction ({ const isProcessed = prop.endsWith("rgb") || prop.endsWith("opacity"); /* Parse the value for it's parts */ - const parsedValue = valueParser(value) || []; + const parsedValue = valuesParser.parse(value) || []; + /* Determine if the value has an rgb or rgba value */ - const hasRGBValue = parsedValue.nodes.length ? parsedValue.nodes.some((node) => node.type === "function" && (["rgb", "rgba"].some(func => node.value === func))) : false; + const hasRGBValue = parsedValue.nodes.length ? parsedValue.nodes.some((node) => node.type === "func" && (["rgb", "rgba"].some(func => node.name === func))) : false; /* * If the property is not a custom prop, or @@ -48,10 +49,17 @@ function rgbMappingFunction ({ */ if (!isCustomProp || isProcessed || !hasRGBValue || parsedValue.nodes.length === 0) return; - const rgba = parsedValue.nodes.find((node) => node.type === "function" && (["rgb", "rgba"].some(func => node.value === func))); + const rgba = parsedValue.nodes.find((node) => node.type === "func" && (["rgb", "rgba"].some(func => node.name === func))); const [r,g,b,a] = rgba.nodes.reduce((acc, node) => { - if (node.type === "word" && node.value) acc.push(node.value); + if (node.type === "numeric" && node.value) { + if (node?.unit && node.unit === "%") { + acc.push((node.value / 100).toFixed(2)); + } + else { + acc.push(node.value); + } + } return acc; }, []); diff --git a/plugins/postcss-rgb-mapping/package.json b/plugins/postcss-rgb-mapping/package.json index 153f51b6a03..2543fa9033c 100644 --- a/plugins/postcss-rgb-mapping/package.json +++ b/plugins/postcss-rgb-mapping/package.json @@ -1,30 +1,27 @@ { - "name": "postcss-rgb-mapping", - "version": "2.1.0", + "name": "@spectrum-tools/postcss-rgb-mapping", + "version": "3.0.0-s2-foundations.0", "description": "Remaps rgb(a) values to an rgb postfixed variable", "license": "Apache-2.0", "author": "Adobe", "contributors": [ - "Cassondra Roberts (https://allons-y.llc)" + "Cassondra Roberts " ], "main": "index.js", "files": [ - "index.js" + "package.json", + "index.js", + "*.md" ], - "scripts": { - "coverage": "c8 yarn test", - "prepublishOnly": "yarn test", - "test": "ava" - }, "dependencies": { - "postcss-value-parser": "^4.2.0" + "postcss-values-parser": "^6.0.2" }, "peerDependencies": { "postcss": ">=8" }, "devDependencies": { "ava": "^6.1.3", - "c8": "^9.1.0", + "c8": "^10.1.2", "postcss": "^8.4.45" }, "keywords": [ diff --git a/plugins/postcss-splitinator/README.md b/plugins/postcss-splitinator/README.md deleted file mode 100644 index 99adb64bb4d..00000000000 --- a/plugins/postcss-splitinator/README.md +++ /dev/null @@ -1,109 +0,0 @@ -# postcss-splitinator - -> Splits custom properties organized by classes into named tokens - -## Installation - -Add the dependency to your project: - -```sh -npm install postcss-splitinator -``` - -or - -```sh -yarn add -DW postcss-splitinator -``` - -Use the plugin in your PostCSS configuration: - -```js -module.exports = { - plugins: [ - require("postcss-splitinator")({ - // options - }), - ], -}; -``` - -or as part of your CLI command: - -```sh -postcss -u postcss-splitinator -o dist/index.css src/index.css -``` - -## Options - -### `options.getName = function(selector, prop)` - -Customize the creation of variable names. By default, as SUIT naming convention is assumed and variable names are created accordingly. - -### `options.processIdentifier = function(identifierValue, identifierName)` - -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. - -### `options.noFlatVariables = false` - -Whether to avoid including flat variables in the output. - -### `options.noSelectors = false` - -Whether to avoid including selectors that use the flat variables in the output. - -### `options.referencesOnly = false` - -This option will only output those variables that are referencing the newly created system variabes and not the system variables themselves. This can be used as a bridge between an old and new implementation for the component. - -## Usage - -This plugin turns this: - -```css -@container (--system: spectrum) { - .component { - --background-color: blue; - } - .component.is-selected { - --background-color: darkblue; - } - .component .icon { - --color: gray; - } -} - -@container (--system: express) { - .component { - --background-color: purple; - } - .component.is-selected { - --background-color: darkpurple; - } - .component .icon { - --color: white; - } -} -``` - -Into this: - -```css -.spectrum { - --system-component-background-color: blue; - --system-component-selected-background-color: darkblue; -} - -.spectrum--express { - --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); -} -``` diff --git a/plugins/postcss-splitinator/expected/basic.css b/plugins/postcss-splitinator/expected/basic.css deleted file mode 100644 index e3e1349f65f..00000000000 --- a/plugins/postcss-splitinator/expected/basic.css +++ /dev/null @@ -1,23 +0,0 @@ -.spectrum { - --system-component-background-color: blue; - --system-component-selected-background-color: darkblue; - --system-component-icon-color: gray -} - -.spectrum--express { - --system-component-background-color: purple; - --system-component-selected-background-color: darkpurple; - --system-component-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) -} diff --git a/plugins/postcss-splitinator/fixtures/basic.css b/plugins/postcss-splitinator/fixtures/basic.css deleted file mode 100644 index 3ad6289a5ee..00000000000 --- a/plugins/postcss-splitinator/fixtures/basic.css +++ /dev/null @@ -1,23 +0,0 @@ -@container (--system: spectrum) { - .component { - --background-color: blue; - } - .component.is-selected { - --background-color: darkblue; - } - .component .icon { - --color: gray; - } -} - -@container (--system: express) { - .component { - --background-color: purple; - } - .component.is-selected { - --background-color: darkpurple; - } - .component .icon { - --color: white; - } -} diff --git a/plugins/postcss-splitinator/fixtures/where.css b/plugins/postcss-splitinator/fixtures/where.css deleted file mode 100644 index 2c00ff4098b..00000000000 --- a/plugins/postcss-splitinator/fixtures/where.css +++ /dev/null @@ -1,23 +0,0 @@ -@container (--system: spectrum) { - :where(.component) { - --background-color: blue; - } - :where(.component.is-selected) { - --background-color: darkblue; - } - :where(.component .icon) { - --color: gray; - } -} - -@container (--system: express) { - :where(.component) { - --background-color: purple; - } - :where(.component.is-selected) { - --background-color: darkpurple; - } - :where(.component .icon) { - --color: white; - } -} diff --git a/plugins/postcss-splitinator/index.js b/plugins/postcss-splitinator/index.js deleted file mode 100644 index d51caf0b557..00000000000 --- a/plugins/postcss-splitinator/index.js +++ /dev/null @@ -1,148 +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 - * - * 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 {boolean} [noFlatVariables=false] - * @property {boolean} [noSelectors=false] - * @property {(identifierValue: string, identifierName: string) => string} [processIdentifier] - * @property {(selector: string, prop: string) => string} [getName] -*/ - -/** @type import('postcss').PluginCreator */ -module.exports = ({ - noFlatVariables = false, - noSelectors = false, - referencesOnly = false, - processIdentifier, - getName = (selector, prop) => { - selector = selector.replace(/^:where\((.*?)\)$/, "$1"); - - // This regex is designed to pull spectrum-ActionButton out of a selector - let baseSelectorMatch = selector.match(/^\.([a-z]+-[A-Z][^-. ]+)/); - if (baseSelectorMatch) { - const [, baseSelector] = baseSelectorMatch; - const baseSelectorRegExp = new RegExp(baseSelector, "gi"); - prop = prop.replace(baseSelectorRegExp, ""); - selector = baseSelector + selector.replace(baseSelectorRegExp, ""); - } - - selector = selector.replace(/is-/g, ""); - - let selectorParts = selector.replace(/\s+/g, "").replace(/,/g, "").split("."); - - return ( - "--" + - (`system-${selectorParts.join("-")}-${prop.substr(2)}`) - .replace(/-+/g, "-") - .toLowerCase() - ); - }, -}) => ({ - postcssPlugin: "postcss-splitinator", - OnceExit(root, { Rule, Declaration }) { - const selectorMap = {}; - - root.walkAtRules(/container/, (container) => { - const [, identifierName, identifierValue] = container.params.match( - /\(\s*--(.*?)\s*[:=]\s*(.*?)\s*\)/ - ); - - const rule = new Rule({ - selector: `.${ - typeof processIdentifier === "function" - ? processIdentifier(identifierValue, identifierName) - : identifierValue - }`, - source: container.source, - }); - - if (!noFlatVariables) { - container.parent.insertAfter(container, rule); - } - - container.walkDecls(/^--/, (decl) => { - // Process rules that match multiple selectors separately to avoid weird var names and edge cases - // note: this doesn't support :where() and is likely brittle! - const selectors = decl.parent.selector.split(/\s*,\s*/); - selectors.forEach((selector) => { - const variableName = getName(selector, decl.prop); - const newDecl = decl.clone({ - prop: variableName, - }); - newDecl.raws.before = "\n "; - - if (!noFlatVariables) { - rule.append(newDecl); - } - - const selectorNode = (selectorMap[selector] = - selectorMap[selector] || {}); - - // Check for fallbacks - // todo: use valueparser instead of a regex - const fallbackMatch = decl.value.match( - /var\(\s*(.*?)\s*,\s*var\(\s*(.*?)\s*\)\)/ - ); - if (fallbackMatch) { - const [, override, fallback] = fallbackMatch; - - // The final declaration should have the override present - selectorNode[ - decl.prop - ] = `var(${override}, var(${variableName}))`; - - // The system-level declaration should only have the fallback - newDecl.value = `var(${fallback})`; - } else { - selectorNode[decl.prop] = `var(${variableName})`; - } - }); - }); - - container.remove(); - }); - - if (noSelectors) return; - - if (referencesOnly) { - // Empty out the root so we only have the references to --system- variables - // Keep the copyright notice at the top - // Find the copyright comment - let comment = root.first; - while (comment?.type !== "comment") { - comment = comment.next(); - // Check the comment for the word "Copyright" - if (comment?.text.match(/Copyright/)) break; - } - - root.removeAll(); - if (comment) root.append(comment); - } - - 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); - } - - root.append(rule); - } - }, -}); - -module.exports.postcss = true; diff --git a/plugins/postcss-splitinator/package.json b/plugins/postcss-splitinator/package.json deleted file mode 100644 index 2a9fd5b59df..00000000000 --- a/plugins/postcss-splitinator/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "postcss-splitinator", - "version": "2.1.0", - "description": "Turn container queryies into the var hack", - "license": "Apache-2.0", - "author": "Adobe", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "coverage": "c8 yarn test", - "prepublishOnly": "yarn test", - "test": "ava" - }, - "dependencies": { - "postcss": "^8.4.45" - }, - "peerDependencies": { - "postcss": ">=8.0.0" - }, - "devDependencies": { - "ava": "^6.1.3", - "c8": "^9.1.0", - "postcss": "^8.4.45" - }, - "keywords": [ - "css", - "rgb", - "plugin", - "postcss" - ], - "publishConfig": { - "access": "public" - } -} diff --git a/plugins/stylelint-no-missing-var/CHANGELOG.md b/plugins/stylelint-no-missing-var/CHANGELOG.md index 488fd55b0e5..bd31b1d758b 100644 --- a/plugins/stylelint-no-missing-var/CHANGELOG.md +++ b/plugins/stylelint-no-missing-var/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2-s2-foundations.0 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`683871c`](https://github.com/adobe/spectrum-css/commit/683871c8cec3de3585c3d29fc63bd8bbf71e245a) Thanks [@pfulton](https://github.com/pfulton)! - Dependency updates to align with versions used in the parent repository. + ## 2.0.1 ### Patch Changes diff --git a/plugins/stylelint-no-missing-var/package.json b/plugins/stylelint-no-missing-var/package.json index 6b60cbd31c3..fb034990f24 100644 --- a/plugins/stylelint-no-missing-var/package.json +++ b/plugins/stylelint-no-missing-var/package.json @@ -1,14 +1,22 @@ { "name": "@spectrum-tools/stylelint-no-missing-var", - "version": "2.0.1", + "version": "2.0.2-s2-foundations.0", "description": "Check for custom properties without a var function around them", "license": "Apache-2.0", "author": "Adobe", + "contributors": [ + "Cassondra Roberts " + ], "type": "module", "main": "index.js", "scripts": { "test": "ava" }, + "files": [ + "package.json", + "index.js", + "*.md" + ], "dependencies": { "colors": "^1.4.0" }, diff --git a/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md b/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md index 540536682d2..5e1c7cbb3d2 100644 --- a/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md +++ b/plugins/stylelint-no-unknown-custom-properties/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2-s2-foundations.0 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`683871c`](https://github.com/adobe/spectrum-css/commit/683871c8cec3de3585c3d29fc63bd8bbf71e245a) Thanks [@pfulton](https://github.com/pfulton)! - Dependency updates to align with versions used in the parent repository. + ## 2.0.1 ### Patch Changes diff --git a/plugins/stylelint-no-unknown-custom-properties/package.json b/plugins/stylelint-no-unknown-custom-properties/package.json index 80e112b4b03..1c36133c1ed 100644 --- a/plugins/stylelint-no-unknown-custom-properties/package.json +++ b/plugins/stylelint-no-unknown-custom-properties/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@spectrum-tools/stylelint-no-unknown-custom-properties", - "version": "2.0.1", + "version": "2.0.2-s2-foundations.0", "description": "Report on any unknown custom property definitions", "license": "Apache-2.0", "author": "Adobe", diff --git a/plugins/stylelint-no-unused-custom-properties/CHANGELOG.md b/plugins/stylelint-no-unused-custom-properties/CHANGELOG.md index b0869052950..51b3d96c6a2 100644 --- a/plugins/stylelint-no-unused-custom-properties/CHANGELOG.md +++ b/plugins/stylelint-no-unused-custom-properties/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2-s2-foundations.0 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`683871c`](https://github.com/adobe/spectrum-css/commit/683871c8cec3de3585c3d29fc63bd8bbf71e245a) Thanks [@pfulton](https://github.com/pfulton)! - Dependency updates to align with versions used in the parent repository. + ## 2.0.1 ### Patch Changes diff --git a/plugins/stylelint-no-unused-custom-properties/package.json b/plugins/stylelint-no-unused-custom-properties/package.json index 188a2913f6e..62bada245df 100644 --- a/plugins/stylelint-no-unused-custom-properties/package.json +++ b/plugins/stylelint-no-unused-custom-properties/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-tools/stylelint-no-unused-custom-properties", - "version": "2.0.1", + "version": "2.0.2-s2-foundations.0", "description": "Report on any unused custom property definitions", "license": "Apache-2.0", "author": "Adobe", diff --git a/plugins/stylelint-theme-alignment/CHANGELOG.md b/plugins/stylelint-theme-alignment/CHANGELOG.md index d369f6a6213..98d56fc3a8e 100644 --- a/plugins/stylelint-theme-alignment/CHANGELOG.md +++ b/plugins/stylelint-theme-alignment/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`683871c`](https://github.com/adobe/spectrum-css/commit/683871c8cec3de3585c3d29fc63bd8bbf71e245a) Thanks [@pfulton](https://github.com/pfulton)! - 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. + ## 1.0.0 ### Major Changes diff --git a/plugins/stylelint-theme-alignment/index.js b/plugins/stylelint-theme-alignment/index.js index c66e5d4e423..dfaf1522a48 100644 --- a/plugins/stylelint-theme-alignment/index.js +++ b/plugins/stylelint-theme-alignment/index.js @@ -52,10 +52,10 @@ const ruleFunction = (enabled) => { const isTheme = parts[parts.length - 2] === "themes"; const filename = parts[parts.length - 1]; - if (!isTheme || filename === "spectrum.css") return; + if (!isTheme || filename === "spectrum-two.css") return; // All the parts of the source file but replace the filename with spectrum-two.css - const baseFile = [...parts.slice(0, -1), "spectrum.css"].join(sep); + const baseFile = [...parts.slice(0, -1), "spectrum-two.css"].join(sep); const rootPath = parts.slice(0, -2).join(sep); // If the base file doesn't exist, throw an error diff --git a/plugins/stylelint-theme-alignment/package.json b/plugins/stylelint-theme-alignment/package.json index 5788b632b14..82a6e53770b 100644 --- a/plugins/stylelint-theme-alignment/package.json +++ b/plugins/stylelint-theme-alignment/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-tools/theme-alignment", - "version": "1.0.0", + "version": "2.0.0-s2-foundations.0", "description": "", "license": "Apache-2.0", "author": "Adobe", @@ -20,7 +20,7 @@ "postcss-values-parser": "^6.0.2" }, "peerDependencies": { - "stylelint": ">=16.0.0" + "stylelint": ">=16" }, "devDependencies": { "stylelint": "^16.9.0" diff --git a/postcss.config.js b/postcss.config.js index 96e986f352b..8512d8eee89 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -11,22 +11,19 @@ * governing permissions and limitations under the License. */ -const { join, sep, basename } = require("path"); +const { join } = require("path"); module.exports = ({ file, - to, - splitinatorOptions = { - noSelectors: false, - noFlatVariables: false, - // @todo strip out all but the references to --system- variables - // NOT --system- definitions, only references - referencesOnly: false, - }, + skipMapping = false, + referencesOnly = false, + preserveVariables = true, + stripLocalSelectors = false, resolveImports = true, - shouldCombine = false, + shouldCombine = true, lint = true, verbose = true, + minify = false, additionalPlugins = {}, env = process.env.NODE_ENV ?? "development", ...options @@ -37,25 +34,12 @@ module.exports = ({ options.map = isProduction ? false : { inline: false }; } - const rootPath = __dirname; - const outputFilepath = to ?? file; - const relativePath = outputFilepath?.replace(rootPath, ""); - - const outputFilename = outputFilepath ? basename(outputFilepath, ".css") : undefined; - const pathParts = relativePath?.split(sep) ?? []; - - if (["themes", "spectrum", "express"].some(foldername => pathParts.includes(foldername)) || outputFilename === "index-theme") { - splitinatorOptions.noSelectors = true; - } - - if (outputFilename === "express" || pathParts.includes("express")) shouldCombine = true; - - if (outputFilename === "index-base") { - splitinatorOptions.noFlatVariables = true; - } - - if (pathParts.includes("bridge")) { - splitinatorOptions.referencesOnly = true; + // If this is the legacy tokens file, update the .spectrum class to .spectrum--legacy + if (typeof file === "string" && file.includes("@spectrum-css/tokens-legacy")) { + additionalPlugins["postcss-selector-replace"] = { + before: [".spectrum"], + after: [".spectrum.spectrum--legacy"], + }; } return { @@ -75,14 +59,20 @@ module.exports = ({ preserveBeforeAfter: false, prefix: "is-" } : false, + "@spectrum-tools/postcss-rgb-mapping": { + colorFunctionalNotation: false, + }, /* --------------------------------------------------- */ /* ------------------- VARIABLE PARSING -------------- */ - "postcss-splitinator": { - processIdentifier: (identifier) => - identifier === "express" ? "spectrum--express" : identifier, - ...splitinatorOptions, + "@spectrum-tools/postcss-add-theming-layer": { + selectorPrefix: "spectrum", + skipMapping, + preserveVariables, + referencesOnly, + stripLocalSelectors, + debug: verbose, }, - "postcss-combininator": shouldCombine ? { + "@spectrum-tools/postcss-property-rollup": shouldCombine ? { newSelector: ".spectrum", } : false, ...additionalPlugins, @@ -125,12 +115,10 @@ module.exports = ({ colormin: false, reduceIdents: false, discardUnused: false, - discardComments: { - removeAll: true - }, + discardComments: { removeAll: true }, // @todo yarn add -DW css-declaration-sorter cssDeclarationSorter: false, // @todo { order: "smacss" } - normalizeWhitespace: isProduction, + normalizeWhitespace: minify }, ], }, diff --git a/schemas/documentation.schema.json b/schemas/documentation.schema.json deleted file mode 100644 index 5cc7fdff71d..00000000000 --- a/schemas/documentation.schema.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "JSON schema for Spectrum CSS documentation", - "type": "object", - "version": "1", - "description": "A validation schema for the Spectrum CSS documentation data.", - "properties": { - "id": { - "type": "string", - "description": "The unique identifier to use for this example set." - }, - "name": { - "type": "string", - "description": "The human-readable title for the element." - }, - "description": { - "type": "string", - "description": "A short description of the element's purpose and goals. For migration or additional context, add that information to the sections property." - }, - "status": { - "$ref": "#/definitions/status" - }, - "SpectrumSiteSlug": { - "type": "string", - "format": "uri", - "description": "The URL for the Spectrum design specifications for this element." - }, - "sections": { - "description": "These are the sections of the documentation for the element that describe how to use the component and best practices.", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The id for the section." - }, - "name": { - "type": "string", - "description": "The title for the section." - }, - "description": { - "type": "string", - "description": "The content of the section." - } - }, - "required": ["description"] - } - }, - "examplesHeading": { - "type": "string", - "description": "The human-readable title for the element." - }, - "examples": { - "description": "These are the examples of the element in use.", - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique identifier to use for this example set." - }, - "name": { - "type": "string", - "description": "The specific human-readable title for the example set." - }, - "demoClassName": { - "type": "string", - "description": "The specific human-readable title for the example set." - }, - "description": { - "type": "string", - "description": "The description for the example set." - }, - "status": { - "$ref": "#/definitions/status" - }, - "markup": { - "description": "The HTML markup for the example.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "oneOf": [ - { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique identifier to use for this example set." - }, - "title": { - "type": "string", - "description": "The title for the section." - }, - "description": { - "type": "string", - "description": "The description for the example set." - }, - "group": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "description": "The content of the section.", - "items": [ - { - "type": "string" - } - ] - } - ] - } - } - }, - { - "type": "string" - } - ] - } - } - ] - } - }, - "required": ["id", "markup"], - "oneOf": [{ "required": ["name"] }, { "required": ["title"] }] - }, - { - "type": "string" - } - ] - } - } - }, - "definitions": { - "status": { - "type": "string", - "description": "The design status of the element.", - "enum": ["Verified", "Experimental", "Deprecated", "Contribution", "Beta"] - } - }, - "oneOf": [{ "required": ["name"] }, { "required": ["title"] }], - "additionalProperties": false -} diff --git a/site/CHANGELOG.md b/site/CHANGELOG.md deleted file mode 100644 index d89edd214e1..00000000000 --- a/site/CHANGELOG.md +++ /dev/null @@ -1,19 +0,0 @@ -# @spectrum-tools/documentation - -## 2.0.2 - -### Patch Changes - -- [#2677](https://github.com/adobe/spectrum-css/pull/2677) [`d83200c`](https://github.com/adobe/spectrum-css/commit/d83200ca70a959aa70329e71de0c4383de157855) Thanks [@castastrophe](https://github.com/castastrophe)! - Leveral local workspace versioning to prevent misalignment - -## 2.0.1 - -### Patch Changes - -- [#2772](https://github.com/adobe/spectrum-css/pull/2772) [`344b8f4`](https://github.com/adobe/spectrum-css/commit/344b8f43d8b028c5e9ae87d1b7c10ffa257e7fa4) Thanks [@castastrophe](https://github.com/castastrophe)! - Align versions to the latest local package version instead of fetching it externally - -## 2.0.0 - -### Major Changes - -- [#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 diff --git a/site/README.md b/site/README.md deleted file mode 100644 index 170554703f9..00000000000 --- a/site/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# Spectrum CSS Site - -The site is built using [Pug templates](https://pugjs.org/api/getting-started.html). - -## Structure - -``` -site/ -├── getting-started.pug - instructions on getting started -├── index.pug - main homepage -├── includes -│   ├── dependencies.pug - dependencies common to all pages -│   ├── nav.pug - the navigation (within the sidebar) -│   └── sidebar.pug - the left sidebar -|   └── siteComponent.pug - template to build docs for components -├── resources -│ ├── css -│ │   ├── docs.css - CSS related specifically to markup examples and component documentation -│ │   └── site.css - CSS common to the entire site -│ ├── img -│ └── js -│ ├── SpectrumSwitcher.js - A class that supports switching colorstops -│ ├── enhancement.js - Enhancements that make examples interactive -│ ├── site.js - The actual site navigation code -│ └── typekit.js - Typekit that knows how to choose large/small kits based on the language attribute -``` - -## Architecture - -The site build process generates separate `.html` files for each of the `*.pug` files in the `site/` folder, as well as `.html` pages for each of the component examples within each package (`metadata.yml` and `metadata/*.yml`). The navigation on the left is generated from the list of examples + the hardcoded pages in the menu, and is injected at build time. All of the generated `.html` files are standalone documents with the same navigation and common dependencies, with component example pages adding only the additional dependencies that are required to render its examples. - -When clicking an item in the nav or using the browser history, instead of simply navigating to the new page, the page is requested with `XMLHTTPRequest`, parsed, and the content is extracted and injected. Additionally, the dependencies included on the page (any `link` tag with the `data-dependency="$NAME"`) are diffed with the existing dependencies on the page, and the new dependencies are asynchronously loaded before the page content so as to prevent FOUC (flash of unstyled content). Finally, the corresponding item in the side nav is selected. - -Because the dependencies included in the component example pages are sorted in topological order with [`dependency-solver`](https://www.npmjs.com/package/dependency-solver), it is not possible for dependencies to be loaded out of order, even if navigating between pages in a different order -- only the new dependencies will be added to the end of the list of dependencies, so precedence will be preserved. - -## Viewing the site - -1. Run `yarn dev` at the top level of the project and the site will build and open up in your browser. - -## Editing content - -1. Run `yarn dev` at the top level of the project. -2. Edit the `*.pug` files in this folder as well as `includes/*.pug` and the site will live reload with your changes. - -## Adding a new page - -1. Run `yarn dev` at the top level of the project. -2. Create the Pug template file for the page in this folder by copying an existing page: - -```shell -cp getting-started.pug new-page.pug -``` - -3. Manually add the new page to the navigation in `includes/nav.pug`, including the `is-selected` switch on the list item: - -```pug - li.spectrum-SideNav-item(class=pageURL === 'new-page.html' ? 'is-selected' : '') - a.spectrum-SideNav-itemLink(href='new-page.html') New Page -``` - -4. Your new page will appear in the navigation. You can continue to edit it and it will live reload. -5. If you page uses other Spectrum CSS components, link to them as necessary beneath the `dependencies.pug` include: - -```pug - include includes/dependencies.pug - link(rel='stylesheet', type='text/css', href='../components/table/index.css') -``` - -## Adding a one-off example page - -Follow the instructions for adding a new page, but do not add it to the navigation. You can link to it from another document using markdown: - -```markdown -See the [internationalized typography example page](typography-i18n.html) for Japanese, Han, and Arabic examples. -``` - -## Adding and editing resources - -You can add and edit site resources to the `resources/` folder. These are copied directly into the root of the site and can be included as necessary. Editing existing resources while `yarn dev` is running will inject the new resources. diff --git a/site/get-started.pug b/site/get-started.pug deleted file mode 100644 index 8f06549cc17..00000000000 --- a/site/get-started.pug +++ /dev/null @@ -1,51 +0,0 @@ -doctype html -html(lang='en-US' dir="ltr").spectrum - head - title Getting started - Spectrum CSS - - include includes/dependencies.pug - - body - - .spectrum-Site - - include includes/header.pug - - .spectrum-Site-content - - include includes/sidebar.pug - - .spectrum-Site-mainContent - - .spectrum-Site-mainContainer - .spectrum-Site-page.spectrum-Typography - h1.spectrum-Heading.spectrum-Heading--sizeXXL.spectrum-Heading--serif Get started with Spectrum CSS - - p.spectrum-Body.spectrum-Body--sizeL We have a number of resources that outline how to set up Spectrum CSS for your project, as well as an introductory tutorial that’s a hands-on way to understand how our implementation works. - - header(id="resources") - h2.spectrum-Heading.spectrum-Heading--sizeM - a(href="#resources").spectrum-BigSubtleLink Resources - hr.spectrum-Divider.spectrum-Divider--large - - section - p.spectrum-Body.spectrum-Body--sizeL If you're ready to jump in, here's how to set up Spectrum CSS on our GitHub: - - ul.spectrum-Body.spectrum-Body--sizeL - li - a.spectrum-Link.spectrum-Link--quiet(href="https://github.com/adobe/spectrum-css/blob/main/README.md") Full README - li - a.spectrum-Link.spectrum-Link--quiet(href="https://github.com/adobe/spectrum-css?tab=readme-ov-file#quick-start") Quick start - li - a.spectrum-Link.spectrum-Link--quiet(href="https://github.com/adobe/spectrum-css/blob/main/README.md#importing-ui-icons") Importing icons - - header(id="contribute") - h2.spectrum-Heading.spectrum-Heading--sizeM - a(href="#contribute").spectrum-BigSubtleLink Contribute to Spectrum CSS - hr.spectrum-Divider.spectrum-Divider--large - - p.spectrum-Body.spectrum-Body--sizeL We'd love for you to contribute to the Spectrum CSS project. Review the contribution guidelines on our GitHub to get started. - - include includes/footer.pug - - include includes/pageBottom.pug diff --git a/site/includes/dependencies.pug b/site/includes/dependencies.pug deleted file mode 100644 index 2d9cc788020..00000000000 --- a/site/includes/dependencies.pug +++ /dev/null @@ -1,32 +0,0 @@ -meta(name='viewport', content='width=device-width, initial-scale=1') -meta(name='description', content='The CSS implementation of Adobe\'s Spectrum design system') -meta(charset = 'utf-8') -link(rel='icon', type='image/png', href='favicon.png') - -link(rel='stylesheet', type='text/css', href='css/prism/prism.css', data-prism) - -link(rel='stylesheet', type='text/css', href='components/tokens/index.css') - -each dep in dependencyOrder.filter((dep) => !["tokens", "commons", "quickaction", "cyclebutton", "searchwithin", "splitbutton"].includes(dep)) - link(rel='stylesheet', type='text/css', href='components/' + dep + '/index.css', data-dependency=dep ) - - -each dep in dependencyOrder.filter((dep) => ["quickaction", "cyclebutton", "searchwithin", "splitbutton"].includes(dep)) - link(rel='stylesheet', type='text/css', href='dependencies/@spectrum-css/' + dep + '/index-vars.css', data-dependency=dep ) - link(rel='stylesheet', type='text/css', href='dependencies/@spectrum-css/' + dep + '/vars.css', data-dependency=dep ) - -link(rel='stylesheet', type='text/css', href='css/site.css') -link(rel='stylesheet', type='text/css', href='css/docs.css') - -unless process.env.VRT - link(rel="stylesheet", type="text/css", href="//wwwimages2.adobe.com/etc/beagle/public/globalnav/adobe-globalnav/latest/adobe-globalnav.min.css") - -script(src='js/loadicons/index.js') -script(src='js/lunr/lunr.js') -script(src='js/typekit.js') - -script(src='js/SpectrumSwitcher.js') -script(src='js/Search.js') -script(src='js/site.js') -script(src='js/docs.js') -script(src='js/enhancement.js') diff --git a/site/includes/example.pug b/site/includes/example.pug deleted file mode 100644 index a9d52b71d94..00000000000 --- a/site/includes/example.pug +++ /dev/null @@ -1,7 +0,0 @@ -article.spectrum-CSSExample - h3.spectrum-CSSExample-heading.spectrum-Heading.spectrum-Heading--sizeS(id=example.slug) - a(href=`#${example.slug}`).spectrum-CSSComponent-link - =example.name - div(class=`spectrum-StatusLight spectrum-StatusLight--sizeM spectrum-CSSExample-status spectrum-StatusLight--${util.getStatusLightVariant(example.status)}`)= example.status - - include exampleContent.pug diff --git a/site/includes/exampleContent.pug b/site/includes/exampleContent.pug deleted file mode 100644 index 2a81f68e313..00000000000 --- a/site/includes/exampleContent.pug +++ /dev/null @@ -1,17 +0,0 @@ -if example.description - .spectrum-Typography - section.spectrum-CSSExample-description.spectrum-Body.spectrum-Body--sizeM!= util.markdown.render(example.description) - -if example.details - .spectrum-Typography - .section.spectrum-CSSExample-description.spectrum-Body.spectrum-Body--sizeM!= util.markdown.render(example.details) - -if example.markup - section.spectrum-CSSExample-container - .spectrum-CSSExample-example(class=example.demoClassName ? `${example.demoClassName}` : '')!= example.markup - .spectrum-CSSExample-markup - if example.markup.split('\n').length > 2 - a.js-markup-toggle.spectrum-CSSExample-markupToggle.spectrum-Link(href="#") Show markup - bdo(dir="ltr") - pre.spectrum-Code.spectrum-Code--sizeXS - code.language-markup!= util.Prism.highlight(example.markup, util.Prism.languages.markup, 'markup') diff --git a/site/includes/footer.pug b/site/includes/footer.pug deleted file mode 100644 index 5861c86761e..00000000000 --- a/site/includes/footer.pug +++ /dev/null @@ -1,10 +0,0 @@ -unless process.env.VRT - - .spectrum-Site-footerContainer - - hr.spectrum-Divider.spectrum-Divider--small - - div(id="footer_global") - - script(src="js/adobe-globalnav.js") - script(src="//wwwimages2.adobe.com/etc/beagle/public/globalnav/adobe-globalnav/latest/adobe-globalnav.min.js") diff --git a/site/includes/header.pug b/site/includes/header.pug deleted file mode 100644 index ed890da9643..00000000000 --- a/site/includes/header.pug +++ /dev/null @@ -1,6 +0,0 @@ -div.spectrum-Site-overlay#site-overlay - -.spectrum-Site-header - button.spectrum-ActionButton.spectrum-ActionButton--sizeM.spectrum-ActionButton--quiet(is-selected)#site-menu - svg.spectrum-Icon.spectrum-Icon--sizeM(focusable='false',aria-hidden='true',aria-label='Show Menu') - use(xlink:href='#spectrum-icon-18-ShowMenu') \ No newline at end of file diff --git a/site/includes/nav.pug b/site/includes/nav.pug deleted file mode 100644 index dbd8a424f6a..00000000000 --- a/site/includes/nav.pug +++ /dev/null @@ -1,41 +0,0 @@ -.u-scrollable.spectrum-Site-nav - nav - ul.spectrum-SideNav.spectrum-SideNav--multiLevel - li.spectrum-SideNav-item(class=pageURL === 'getting-started.html' ? 'is-selected' : '') - a.spectrum-SideNav-itemLink(href='get-started.html') - span.spectrum-SideNav-link-text Get started - li.spectrum-SideNav-item - a.spectrum-SideNav-itemLink(href='https://github.com/adobe/spectrum-css', target='_blank', rel='noopener') - span.spectrum-SideNav-link-text GitHub - li.spectrum-SideNav-item - a.spectrum-SideNav-itemLink(href='#') - span.spectrum-SideNav-link-text Components - ul.spectrum-SideNav.spectrum-SideNav--multiLevel - each item in nav - unless item.status == "Deprecated" - li.spectrum-SideNav-item(class=pageURL === item.href ? 'is-selected' : '') - a(class={ - 'spectrum-SideNav-itemLink': true, - }, href=item.href) - span.spectrum-SideNav-link-text - =item.name - li.spectrum-SideNav-item - a.spectrum-SideNav-itemLink(href='#') - span.spectrum-SideNav-link-text Deprecated - ul.spectrum-SideNav.spectrum-SideNav--multiLevel - each item in nav - if item.status == "Deprecated" - li.spectrum-SideNav-item(class=pageURL === item.href ? 'is-selected' : '') - a(class={ - 'spectrum-SideNav-itemLink': true, - }, href=item.href) - span.spectrum-SideNav-link-text - =item.name - nav.spectrum-Site-bottomNav - ul.spectrum-SideNav - li.spectrum-SideNav-item - a.spectrum-SideNav-itemLink(href='https://spectrum.adobe.com', target='_blank', rel='noopener') - span.spectrum-SideNav-link-text Spectrum - li.spectrum-SideNav-item - a.spectrum-SideNav-itemLink(href=process.env.CHROMATIC_URL ? process.env.CHROMATIC_URL : 'preview/index.html', rel='noopener') - span.spectrum-SideNav-link-text Component preview diff --git a/site/includes/pageBottom.pug b/site/includes/pageBottom.pug deleted file mode 100644 index ea43ae45574..00000000000 --- a/site/includes/pageBottom.pug +++ /dev/null @@ -1 +0,0 @@ -div.spectrum-Underlay#spectrum-underlay diff --git a/site/includes/section.pug b/site/includes/section.pug deleted file mode 100644 index e99a18d1e9d..00000000000 --- a/site/includes/section.pug +++ /dev/null @@ -1,8 +0,0 @@ -header.spectrum-CSSComponent-sectionHeading(id=`${util.getSlug(section.name)}`) - h2.spectrum-Heading.spectrum-Heading--sizeM - a(href=`#${util.getSlug(section.name)}`).spectrum-BigSubtleLink=`${section.name}` - hr.spectrum-Divider.spectrum-Divider--large - - - - let example = section; - include exampleContent.pug diff --git a/site/includes/sidebar.pug b/site/includes/sidebar.pug deleted file mode 100644 index a4e0953c089..00000000000 --- a/site/includes/sidebar.pug +++ /dev/null @@ -1,12 +0,0 @@ -unless process.env.VRT - .spectrum-Site-sideBar#site-sidebar - a.spectrum-Site-sideBarHeader(href='index.html') - svg.spectrum-Site-logo.spectrum-Icon.spectrum-Icon--sizeXXL(viewBox="0 0 30 26" focusable="false" aria-hidden="true" aria-label="Adobe logo") - polygon(points="19,0 30,0 30,26") - polygon(points="11.1,0 0,0 0,26") - polygon(points="15,9.6 22.1,26 17.5,26 15.4,20.8 10.2,20.8") - h2.spectrum-Site-title.spectrum-Heading.spectrum-Heading--sizeM Spectrum CSS - - div#site-search - - include nav.pug diff --git a/site/includes/siteComponent.pug b/site/includes/siteComponent.pug deleted file mode 100644 index a5f4e6402db..00000000000 --- a/site/includes/siteComponent.pug +++ /dev/null @@ -1,254 +0,0 @@ -- - - // Get DNA data - util.populateDNAInfo(component); - - // Arrange examples for processing - var examples; - if (!component.examples) { - // Only one top-level example - examples = [component]; - } - else { - // Multiple child examples - examples = component.examples; - } - - if (!Array.isArray(examples)) { - examples = Object.values(examples); - } - - examples.forEach(example => { - if (example.dnaStatus === 'Deprecated' || example.cssStatus === 'Deprecated') { - example.status = 'Deprecated'; - } - else if (example.cssStatus === 'Verified' || example.dnaStatus === 'Canon') { - example.status = 'Verified'; - } - else { - example.status = 'Contribution'; - } - }); - - let dnaStatusTranslation = { - 'Canon': 'Verified', - 'Precursor': 'Contribution' - }; - - let exampleOrder = { - 'Verified': 1, - 'Contribution': 2, - 'Deprecated': 3 - }; - - let status = dnaStatusTranslation[component.dnaStatus] || component.dnaStatus; - -doctype html -html(lang='en-US' dir="ltr") - head - title #{component.name} - Spectrum CSS - - include dependencies.pug - - body.spectrum - - .spectrum-Site - - include header.pug - - .spectrum-Site-content - - include sidebar.pug - - .spectrum-Site-mainContent - - .spectrum-Site-mainContainer - - article.spectrum-CSSComponent - - .spectrum-CSSComponent-switcher - div.spectrum-CSS-switcherContainer - label.spectrum-FieldLabel.spectrum-FieldLabel--sizeM(for='switcher-theme') Theme - - button.spectrum-Picker.spectrum-Picker--sizeM.spectrum-Picker--quiet(aria-haspopup="true",id="switcher-theme") - span.spectrum-Picker-label Light - svg.spectrum-Icon.spectrum-UIIcon-ChevronDown100.spectrum-Picker-menuIcon(focusable="false" aria-hidden="true") - use(xlink:href="#spectrum-css-icon-Chevron100") - .spectrum-Popover.spectrum-Popover--bottom.spectrum-Picker-popover.spectrum-Picker-popover--quiet - ul.spectrum-Menu.spectrum-Menu--sizeM.is-selectable(role='listbox') - li.spectrum-Menu-item.is-selected(role='option' tabindex='0' value="light") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Light - li.spectrum-Menu-item(role='option' tabindex='0' value="dark") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Dark - li.spectrum-Menu-item(role='option' tabindex='0' value="darkest") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Darkest - div.spectrum-CSS-switcherContainer - label.spectrum-FieldLabel.spectrum-FieldLabel--sizeM(for='switcher-scale') Scale - - button.spectrum-Picker.spectrum-Picker--sizeM.spectrum-Picker--quiet(aria-haspopup="true",id="switcher-scale") - span.spectrum-Picker-label Medium - svg.spectrum-Icon.spectrum-UIIcon-ChevronDown100.spectrum-Picker-menuIcon(focusable="false" aria-hidden="true") - use(xlink:href="#spectrum-css-icon-Chevron100") - .spectrum-Popover.spectrum-Popover--bottom.spectrum-Picker-popover.spectrum-Picker-popover--quiet - ul.spectrum-Menu.spectrum-Menu--sizeM.is-selectable(role='listbox') - li.spectrum-Menu-item.is-selected(role='option' aria-selected='true' tabindex='0' value="medium") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Medium - li.spectrum-Menu-item(role='option' tabindex='0' value="large") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Large - div.spectrum-CSS-switcherContainer - label.spectrum-FieldLabel.spectrum-FieldLabel--sizeM(for='switcher-theme') Direction - - button.spectrum-Picker.spectrum-Picker--sizeM.spectrum-Picker--quiet(aria-haspopup="true",id="switcher-direction") - span.spectrum-Picker-label LTR - svg.spectrum-Icon.spectrum-UIIcon-ChevronDown100.spectrum-Picker-menuIcon(focusable="false" aria-hidden="true") - use(xlink:href="#spectrum-css-icon-Chevron100") - .spectrum-Popover.spectrum-Popover--bottom.spectrum-Picker-popover.spectrum-Picker-popover--quiet - ul.spectrum-Menu.spectrum-Menu--sizeM.is-selectable(role='listbox') - li.spectrum-Menu-item.is-selected(role='option' aria-selected='true' tabindex='0' value="ltr") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel LTR - li.spectrum-Menu-item(role='option' tabindex='0' value="rtl") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel RTL - div.spectrum-CSS-switcherContainer - label.spectrum-FieldLabel.spectrum-FieldLabel--sizeM(for='switcher-theme') Vars Version - - button.spectrum-Picker.spectrum-Picker--sizeM.spectrum-Picker--quiet(aria-haspopup="true",id="switcher-vars-version") - span.spectrum-Picker-label Default - svg.spectrum-Icon.spectrum-UIIcon-ChevronDown100.spectrum-Picker-menuIcon(focusable="false" aria-hidden="true") - use(xlink:href="#spectrum-css-icon-Chevron100") - .spectrum-Popover.spectrum-Popover--bottom.spectrum-Picker-popover.spectrum-Picker-popover--quiet - ul.spectrum-Menu.spectrum-Menu--sizeM.is-selectable(role='listbox') - li.spectrum-Menu-item.is-selected(role='option' aria-selected='true' tabindex='0' value="default") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Default - li.spectrum-Menu-item(role='option' tabindex='0' value="express") - svg.spectrum-Icon.spectrum-UIIcon-Checkmark100.spectrum-Menu-checkmark.spectrum-Menu-itemIcon(focusable='false' aria-hidden='true') - use(xlink:href='#spectrum-css-icon-Checkmark100') - span.spectrum-Menu-itemLabel Express - - header(id=component.slug).spectrum-CSSComponent-heading - h1.spectrum-CSSComponent-title.spectrum-Heading.spectrum-Heading--sizeXXXL.spectrum-Heading--serif - a(href=`#${component.slug}`).spectrum-BigSubtleLink #{component.name} - - if component.status == "Deprecated" - .spectrum-InLineAlert.spectrum-InLineAlert--negative(style="max-inline-size: 600px") - h3.spectrum-InLineAlert-header Deprecated component - svg(class="spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon" focusable="false" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg" height="36" viewBox="0 0 36 36" width="36") - path(d="M17.127 2.579.4 32.512A1 1 0 0 0 1.272 34h33.456a1 1 0 0 0 .872-1.488L18.873 2.579a1 1 0 0 0-1.746 0ZM20 29.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5Zm0-6a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5Z") - section.spectrum-InLineAlert-content - p This component has been deprecated. - if component.deprecationNotice - span!= util.markdown.render(component.deprecationNotice) - - table.spectrum-CSSComponent-detailsTable.spectrum-Table.spectrum-Table--sizeM.spectrum-Table--quiet.spectrum-Table--compact - tbody.spectrum-Table-body.spectrum-Body - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Component status - td.spectrum-Table-cell - div(class=`spectrum-StatusLight spectrum-StatusLight--sizeM spectrum-CSSComponent-status spectrum-StatusLight--${util.getStatusLightVariant(component.dnaStatus)}`)= status - if component.status == "Deprecated" - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Last published - td.spectrum-Table-cell - bdo(dir="ltr") #{pkg.name}@#{pkg.version} - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Released - td.spectrum-Table-cell #{releaseDate} - else if releases - each tag in releases - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong #{tag.label} - td.spectrum-Table-cell - bdo(dir="ltr") #{pkg.name}@#{tag.version} - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Released - td.spectrum-Table-cell #{tag.date} - else - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Current version - td.spectrum-Table-cell - bdo(dir="ltr") #{pkg.name}@#{pkg.version} - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Released - td.spectrum-Table-cell Unpublished - if component.details - tr.spectrum-Table-row - th.spectrum-Table-cell.spectrum-Body-strong Details - tr.spectrum-Table-cell!= util.markdown.render(component.details) - - div.spectrum-CSSComponent-resources - if component.SpectrumSiteSlug - a.spectrum-Card.spectrum-Card--sizeS.spectrum-Card--horizontal(href=`${component.SpectrumSiteSlug}` target="_blank") - .spectrum-Card-preview.spectrum-CSSComponent-resource--adobe - svg(class="spectrum-Icon spectrum-Icon--sizeXXL" viewBox="0 0 36 36" focusable="false" aria-hidden="true" aria-label="AdobeLogo") - path(d="M22.175 4H34v28L22.175 4zm-8.336 0H2v28L13.839 4zm4.165 10.317l7.538 17.682h-4.939l-2.258-5.632h-5.517l5.176-12.05z") - .spectrum-Card-body - .spectrum-Card-header - .spectrum-Card-title.spectrum-Heading.spectrum-Heading--sizeXS. - View guidelines - .spectrum-Card-content - .spectrum-Card-subtitle.spectrum-Detail.spectrum-Detail--sizeS. - Spectrum website - a.spectrum-Card.spectrum-Card--sizeS.spectrum-Card--horizontal(href=`https://github.com/adobe/spectrum-css/tree/main/components/${pkg.name.split('/').pop()}` target="_blank") - .spectrum-Card-preview.spectrum-CSSComponent-resource--github - svg(class="spectrum-Icon spectrum-Icon--sizeXXL" focusable="false" aria-hidden="true" aria-label="GitHub" viewBox="0 0 36 36") - path(d="M17.988 2a16.291 16.291 0 0 0-5.147 31.747c.814.149 1.111-.354 1.111-.786 0-.386-.014-1.411-.022-2.77-4.531.984-5.487-2.184-5.487-2.184a4.32 4.32 0 0 0-1.809-2.383c-1.479-1.01.112-.99.112-.99a3.42 3.42 0 0 1 2.495 1.679 3.468 3.468 0 0 0 4.741 1.353 3.482 3.482 0 0 1 1.034-2.177C11.4 25.078 7.6 23.68 7.6 17.438a6.3 6.3 0 0 1 1.677-4.371 5.863 5.863 0 0 1 .16-4.311s1.368-.438 4.479 1.67a15.451 15.451 0 0 1 8.157 0c3.109-2.108 4.475-1.67 4.475-1.67a5.857 5.857 0 0 1 .162 4.311 6.286 6.286 0 0 1 1.674 4.371c0 6.258-3.808 7.635-7.437 8.038a3.888 3.888 0 0 1 1.106 3.017c0 2.177-.02 3.934-.02 4.468 0 .436.293.943 1.12.784A16.292 16.292 0 0 0 17.988 2z") - .spectrum-Card-body - .spectrum-Card-header - .spectrum-Card-title.spectrum-Heading.spectrum-Heading--sizeXS. - View repository - .spectrum-Card-content - .spectrum-Card-subtitle.spectrum-Detail.spectrum-Detail--sizeS. - GitHub - a.spectrum-Card.spectrum-Card--sizeS.spectrum-Card--horizontal(href=`https://www.npmjs.com/package/${pkg.name}` target="_blank") - .spectrum-Card-preview.spectrum-CSSComponent-resource--npm - svg(class="spectrum-Icon spectrum-Icon--sizeXXL" viewBox="0 0 18 7" focusable="false" aria-hidden="true" aria-label="npm") - path(fill="#CB3837" d="M0,0h18v6H9v1H5V6H0V0z M1,5h2V2h1v3h1V1H1V5z M6,1v5h2V5h2V1H6z M8,2h1v2H8V2z M11,1v4h2V2h1v3h1V2h1v3h1V1H11z") - polygon(fill="#FFFFFF" points="1,5 3,5 3,2 4,2 4,5 5,5 5,1 1,1 ") - path(fill="#FFFFFF" d="M6,1v5h2V5h2V1H6z M9,4H8V2h1V4z") - polygon(fill="#FFFFFF" points="11,1 11,5 13,5 13,2 14,2 14,5 15,5 15,2 16,2 16,5 17,5 17,1 ") - .spectrum-Card-body - .spectrum-Card-header - .spectrum-Card-title.spectrum-Heading.spectrum-Heading--sizeXS. - View package - .spectrum-Card-content - .spectrum-Card-subtitle.spectrum-Detail.spectrum-Detail--sizeS. - npm - - if component.description - header.spectrum-CSSComponent-sectionHeading(id="usage") - h2.spectrum-Heading.spectrum-Heading--sizeM - a(href="#usage").spectrum-BigSubtleLink Usage notes - hr.spectrum-Divider.spectrum-Divider--large - section.spectrum-CSSComponent-description - div.spectrum-Body.spectrum-Body--sizeM!= util.markdown.render(component.description) - - if examples.length - header.spectrum-CSSComponent-sectionHeading(id="variants") - h2.spectrum-Heading.spectrum-Heading--sizeM - a(href="#variants").spectrum-BigSubtleLink=`${component.examplesHeading ? component.examplesHeading : 'Variants'}` - hr.spectrum-Divider.spectrum-Divider--large - each example in examples - include example.pug - - if component.sections - each section in component.sections - include section.pug - - include footer.pug - - include pageBottom.pug diff --git a/site/index.pug b/site/index.pug deleted file mode 100644 index b466f73a287..00000000000 --- a/site/index.pug +++ /dev/null @@ -1,59 +0,0 @@ -doctype html -html(lang='en-US' dir="ltr").spectrum - head - title Spectrum CSS - - include includes/dependencies.pug - - body - - .spectrum-Site - - include includes/header.pug - - .spectrum-Site-content - - include includes/sidebar.pug - - .spectrum-Site-mainContent - - .spectrum-Site-mainContainer - .spectrum-Site-page.spectrum-Typography - .spectrum-Site-hero - .spectrum-Site-heroHeading - h1.spectrum-Heading.spectrum-Heading--sizeXXXL.spectrum-Heading--serif Spectrum CSS - p.spectrum-Body.spectrum-Body--sizeXL Spectrum CSS is an open-source implementation of Spectrum, Adobe’s design system. It includes components and resources to make applications more cohesive. - img(alt="Spectrum CSS Hero image" src="img/spectrum-css_illustration_desktop@2x.png?w=976&h=446" srcset="img/spectrum-css_illustration_desktop@2x.png 2x").spectrum-Site-heroImage - - .spectrum-HomeCards - .spectrum-HomeCard - img.spectrum-HomeCard-image(src="img/illustration_documentation.svg" alt="Documentation illustation") - .spectrum-HomeCard-content - h4.spectrum-Heading.spectrum-Heading--sizeS Robust documentation - p.spectrum-Body.spectrum-Body--sizeM Spectrum CSS is designed to be used in partnership with Spectrum’s detailed usage guidelines. - p.spectrum-Body.spectrum-Body--sizeM - a.spectrum-Link.spectrum-Link--quiet(href="https://spectrum.adobe.com/" target="_blank") View Spectrum guidelines - - .spectrum-HomeCard - img.spectrum-HomeCard-image(src="img/illustration_flexible.svg" alt="Flexible illustation") - .spectrum-HomeCard-content - h4.spectrum-Heading.spectrum-Heading--sizeS Flexible - p.spectrum-Body.spectrum-Body--sizeM Our CSS is customizable, powerful, and designed to work with any JavaScript framework. - p.spectrum-Body.spectrum-Body--sizeM - a.spectrum-Link.spectrum-Link--quiet(href="get-started.html") Get started - - .spectrum-HomeCard - img.spectrum-HomeCard-image(src="img/illustration_tested.svg" alt="Tested illustation") - .spectrum-HomeCard-content - h4.spectrum-Heading.spectrum-Heading--sizeS Rigorously tested - p.spectrum-Body.spectrum-Body--sizeM These individually-versioned components have been vetted to be accessible and inclusive of global audiences. - - .spectrum-HomeCard - img.spectrum-HomeCard-image(src="img/illustration_responsive.svg" alt="Responsove illustation") - .spectrum-HomeCard-content - h4.spectrum-Heading.spectrum-Heading--sizeS Multi-platform support - p.spectrum-Body.spectrum-Body--sizeM We support evergreen browsers (minus one version) for scalability and flexibility. - - include includes/footer.pug - - include includes/pageBottom.pug diff --git a/site/package.json b/site/package.json deleted file mode 100644 index 7c18f092305..00000000000 --- a/site/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "private": true, - "name": "@spectrum-tools/documentation", - "version": "2.0.2", - "description": "A Spectrum-focused utility for building the documentation site.", - "license": "Apache-2.0", - "author": "Adobe", - "homepage": "https://opensource.adobe.com/spectrum-css/", - "repository": { - "type": "git", - "url": "https://github.com/adobe/spectrum-css.git", - "directory": "site" - }, - "bugs": { - "url": "https://github.com/adobe/spectrum-css/issues" - }, - "main": "./tasks/index.js", - "devDependencies": { - "@adobe/focus-ring-polyfill": "^0.1.5", - "@adobe/spectrum-css-workflow-icons": "^1.5.4", - "@spectrum-css/tokens": "workspace:^", - "@spectrum-css/ui-icons": "workspace:^", - "browser-sync": "^3.0.2", - "colors": "^1.4.0", - "dependency-solver": "^1.0.6", - "fast-glob": "^3.3.2", - "js-yaml": "^4.1.0", - "loadicons": "^1.0.0", - "lodash": "^4.17.21", - "lunr": "^2.3.9", - "markdown-it": "^14.1.0", - "markdown-it-anchor": "^8.6.7", - "markdown-it-attrs": "^4.1.6", - "markdown-it-prism": "^2.3.0", - "npm-registry-fetch": "^17.0.1", - "prismjs": "^1.29.0", - "pug": "^3.0.2", - "rimraf": "^6.0.1", - "yargs": "^17.7.2" - } -} diff --git a/site/project.json b/site/project.json deleted file mode 100644 index 598ad06ceee..00000000000 --- a/site/project.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "../node_modules/nx/schemas/project-schema.json", - "name": "docs", - "tags": ["tooling"], - "namedInputs": { - "core": ["{projectRoot}/*.pug"], - "tools": [ - "{projectRoot}/includes", - "{projectRoot}/resources", - "{projectRoot}/tasks", - "{projectRoot}/templates", - "{projectRoot}/util.js" - ] - }, - "targets": { - "build": { - "cache": false, - "dependsOn": [ - "^build", - { - "projects": "tag:component", - "target": "build" - }, - "clean" - ], - "inputs": ["core", "tools"], - "options": { - "commands": ["node --no-warnings -e \"require('./tasks').builder()\""], - "cwd": "{projectRoot}" - }, - "outputs": ["{workspaceRoot}/dist"] - }, - "clean": { - "inputs": [ - "{workspaceRoot}/dist", - { "externalDependencies": ["rimraf"] } - ], - "options": { - "commands": [ - "rimraf ./dist", - "test -d ./dist && echo \"Error: dist directory could not be removed\" && exit 1 || exit 0" - ] - } - }, - "start": { - "cache": false, - "dependsOn": ["build"], - "executor": "nx:run-commands", - "inputs": ["core", "tools"], - "options": { - "commands": ["node --no-warnings -e \"require('./tasks').server()\""], - "cwd": "{projectRoot}" - }, - "outputs": ["{workspaceRoot}/dist"] - } - } -} diff --git a/site/resources/css/docs.css b/site/resources/css/docs.css deleted file mode 100644 index 8468151b4b4..00000000000 --- a/site/resources/css/docs.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 - * - * 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. - */ - -pre { - margin: 0; - padding: 0; - - border: none; - - background: transparent; -} - -pre.html { - margin: 0; - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ -} - -code[class*="language-"], -pre[class*="language-"] { - text-shadow: none; - font-size: inherit; -} - -.spectrum-BigSubtleLink { - display: block; - text-decoration: none; - color: inherit; - outline: none; -} - -.spectrum-BigSubtleLink.focus-ring, -.spectrum-BigSubtleLink:hover { - text-decoration: underline; -} - -.dummy-spacing { - block-size: 192px; -} - -/* Limit slider widths */ -.spectrum-Slider { - max-inline-size: 240px; -} diff --git a/site/resources/css/site.css b/site/resources/css/site.css deleted file mode 100644 index e68c339d033..00000000000 --- a/site/resources/css/site.css +++ /dev/null @@ -1,92 +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 - * - * 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. - */ - -body, -html { - block-size: 100%; -} - -body { - margin: 0; - overflow: hidden; -} - -[hidden] { - display: none !important; -} - -/* Supports the 4 deprecated components without loading all of the vars packages */ -.spectrum { - --spectrum-global-dimension-size-25: 2px; - --spectrum-global-dimension-size-40: 3px; - --spectrum-global-dimension-size-50: 4px; - --spectrum-global-dimension-size-75: 6px; - --spectrum-global-dimension-size-85: 7px; - --spectrum-global-dimension-size-100: 8px; - --spectrum-global-dimension-size-125: 10px; - --spectrum-global-dimension-size-150: 12px; - --spectrum-global-dimension-size-175: 14px; - --spectrum-global-dimension-size-200: 16px; - --spectrum-global-dimension-size-500: 40px; - - --spectrum-alias-border-radius-regular: var(--spectrum-global-dimension-size-50); -} - -.spectrum.spectrum--large { - --spectrum-global-dimension-size-40: 4px; - --spectrum-global-dimension-size-50: 5px; - --spectrum-global-dimension-size-75: 8px; - --spectrum-global-dimension-size-85: 9px; - --spectrum-global-dimension-size-100: 10px; - --spectrum-global-dimension-size-125: 13px; - --spectrum-global-dimension-size-150: 15px; - --spectrum-global-dimension-size-175: 18px; - --spectrum-global-dimension-size-200: 20px; - --spectrum-global-dimension-size-500: 50px; -} - -.spectrum.spectrum--express { - --spectrum-alias-border-radius-regular: var(--spectrum-global-dimension-size-75); -} - -.spectrum .spectrum-QuickActions { - --spectrum-alias-background-color-quickactions-overlay: rgba(0, 0, 0, 20%); - --spectrum-alias-background-color-quickactions: rgba(248, 248, 248, 90%); -} - -.spectrum.spectrum--dark .spectrum-QuickActions { - --spectrum-alias-background-color-quickactions: rgba(50, 50, 50, 90%); -} - -.spectrum.spectrum--darkest .spectrum-QuickActions { - --spectrum-alias-background-color-quickactions: rgba(29, 29, 29, 90%); -} - -.spectrum .spectrum-SearchWithin { - --spectrum-alias-input-border-size: var(--spectrum-global-dimension-static-size-10, 1px); -} - -.spectrum.spectrum--express .spectrum-SearchWithin { - --spectrum-alias-input-border-size: var(--spectrum-global-dimension-static-size-25, 2px); -} - -.spectrum .spectrum-SplitButton { - --spectrum-button-m-primary-outline-texticon-padding-left: var(--spectrum-button-m-primary-outline-texticon-padding-right); - --spectrum-alias-border-radius-small: var(--spectrum-global-dimension-size-25); - --spectrum-alias-border-size-thick: var(--spectrum-global-dimension-static-size-25, 2px); -} - -.spectrum.spectrum--express .spectrum-SplitButton { - --spectrum-button-m-primary-outline-texticon-padding-left: var(--spectrum-global-dimension-size-175); - --spectrum-alias-border-radius-small: var(--spectrum-global-dimension-size-40); -} diff --git a/site/resources/img/art_bk.jpg b/site/resources/img/art_bk.jpg deleted file mode 100644 index 651e0578d10..00000000000 Binary files a/site/resources/img/art_bk.jpg and /dev/null differ diff --git a/site/resources/img/button-screen-shot.png b/site/resources/img/button-screen-shot.png deleted file mode 100644 index ced26bd7ac5..00000000000 Binary files a/site/resources/img/button-screen-shot.png and /dev/null differ diff --git a/site/resources/img/example-ava.jpg b/site/resources/img/example-ava.jpg deleted file mode 100644 index 1cc8ac72c1c..00000000000 Binary files a/site/resources/img/example-ava.jpg and /dev/null differ diff --git a/site/resources/img/example-ava@2x.jpg b/site/resources/img/example-ava@2x.jpg deleted file mode 100644 index 6eb727b7a19..00000000000 Binary files a/site/resources/img/example-ava@2x.jpg and /dev/null differ diff --git a/site/resources/img/example-card-landscape.jpeg b/site/resources/img/example-card-landscape.jpeg deleted file mode 100644 index dafdeb320e5..00000000000 Binary files a/site/resources/img/example-card-landscape.jpeg and /dev/null differ diff --git a/site/resources/img/example-card-portrait.jpg b/site/resources/img/example-card-portrait.jpg deleted file mode 100644 index b580aca3c90..00000000000 Binary files a/site/resources/img/example-card-portrait.jpg and /dev/null differ diff --git a/site/resources/img/example-card-square.png b/site/resources/img/example-card-square.png deleted file mode 100644 index a58950a6611..00000000000 Binary files a/site/resources/img/example-card-square.png and /dev/null differ diff --git a/site/resources/img/flowers.png b/site/resources/img/flowers.png deleted file mode 100644 index 19930e43394..00000000000 Binary files a/site/resources/img/flowers.png and /dev/null differ diff --git a/site/resources/img/illustration_documentation.svg b/site/resources/img/illustration_documentation.svg deleted file mode 100644 index 000504d506d..00000000000 --- a/site/resources/img/illustration_documentation.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/site/resources/img/illustration_flexible.svg b/site/resources/img/illustration_flexible.svg deleted file mode 100644 index b4e1b22ad53..00000000000 --- a/site/resources/img/illustration_flexible.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/site/resources/img/illustration_responsive.svg b/site/resources/img/illustration_responsive.svg deleted file mode 100644 index 15be2baece2..00000000000 --- a/site/resources/img/illustration_responsive.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/site/resources/img/illustration_tested.svg b/site/resources/img/illustration_tested.svg deleted file mode 100644 index 8f7946ac45d..00000000000 --- a/site/resources/img/illustration_tested.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/site/resources/img/spectrum-css_illustration_desktop.png b/site/resources/img/spectrum-css_illustration_desktop.png deleted file mode 100644 index b585d3d3e0d..00000000000 Binary files a/site/resources/img/spectrum-css_illustration_desktop.png and /dev/null differ diff --git a/site/resources/img/spectrum-css_illustration_desktop@2x.png b/site/resources/img/spectrum-css_illustration_desktop@2x.png deleted file mode 100644 index 0b1359aca4e..00000000000 Binary files a/site/resources/img/spectrum-css_illustration_desktop@2x.png and /dev/null differ diff --git a/site/resources/img/spectrum_illustration_2x.png b/site/resources/img/spectrum_illustration_2x.png deleted file mode 100644 index 42a23966263..00000000000 Binary files a/site/resources/img/spectrum_illustration_2x.png and /dev/null differ diff --git a/site/resources/img/spectrum_logo_light.svg b/site/resources/img/spectrum_logo_light.svg deleted file mode 100644 index 86e37fde4c1..00000000000 --- a/site/resources/img/spectrum_logo_light.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/site/resources/img/tablet-bk b/site/resources/img/tablet-bk deleted file mode 100644 index 29a7558e453..00000000000 Binary files a/site/resources/img/tablet-bk and /dev/null differ diff --git a/site/resources/img/thumbnail.png b/site/resources/img/thumbnail.png deleted file mode 100644 index 191a7a689c6..00000000000 Binary files a/site/resources/img/thumbnail.png and /dev/null differ diff --git a/site/resources/js/Search.js b/site/resources/js/Search.js deleted file mode 100644 index db30e01e4b4..00000000000 --- a/site/resources/js/Search.js +++ /dev/null @@ -1,349 +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 - * - * 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. - */ - -/* global lunr */ - -function Search(el) { - this.index = null; - this.hasResults = false; - this.el = el; - - this.el.innerHTML = ` - -`; - - this.form = this.el.querySelector(".js-form"); - this.popover = this.el.querySelector(".js-popover"); - this.input = this.el.querySelector(".js-input"); - this.searchResults = this.el.querySelector(".js-searchResults"); - this.searchError = this.el.querySelector(".js-searchError"); - this.clearButton = this.el.querySelector(".js-clearButton"); - document.body.appendChild(this.popover); - - this.clearButton.addEventListener("click", this.hideResults.bind(this)); - this.el.addEventListener("submit", this.handleSubmit.bind(this)); - this.el.addEventListener("reset", this.handleReset.bind(this)); - this.input.addEventListener("keydown", this.handleKeyDown.bind(this)); - this.input.addEventListener("keypress", this.handleKeyPress.bind(this)); - - this.popover.addEventListener( - "keydown", - this.handlePopoverNavigation.bind(this) - ); - this.popover.addEventListener("click", this.hideResults.bind(this)); - - this.popover.addEventListener( - "focusin", - this.handleListInteraction.bind(this) - ); - this.popover.addEventListener( - "mouseenter", - this.handleListInteraction.bind(this) - ); - this.popover.addEventListener( - "keydown", - this.handleListInteraction.bind(this) - ); - - this.el.addEventListener( - "focusout", - function (e) { - if ( - !this.el.contains(e.relatedTarget) && - !this.popover.contains(e.relatedTarget) - ) { - // Don't do this right away or Safari gets all pissy - setTimeout(this.hideResults.bind(this), 100); - } - }.bind(this) - ); - - this.input.addEventListener( - "focus", - function () { - const event = new Event("SearchFocused"); - window.dispatchEvent(event); - }.bind(this) - ); - - document.addEventListener( - "keydown", - function (e) { - if (e.key === "/" && document.activeElement === document.body) { - this.input.classList.add("focus-ring"); - this.input.setSelectionRange(0, this.input.value.length); - setTimeout(this.input.focus.bind(this.input), 100); - e.preventDefault(); - } - }.bind(this) - ); - - this.loadIndex(); - this.loadStore(); -} - -Search.Categories = ["components"]; - -Search.CategoryNames = { - components: "Components", -}; - -function loadJSON(url, callback) { - function handleLoad() { - var object = null; - try { - object = JSON.parse(req.responseText); - } - catch (err) { - console.error(`Failed to load JSON from ${url}: ${err}`); - callback(err); - } - - callback(null, object); - } - - var req = new XMLHttpRequest(); - req.addEventListener("load", handleLoad.bind(this)); - req.open("GET", url); - req.send(); -} - -Search.prototype.loadStore = function () { - loadJSON( - "./store.json", - function (err, object) { - this.store = object; - }.bind(this) - ); -}; - -Search.prototype.loadIndex = function () { - loadJSON( - "./index.json", - function (err, object) { - this.index = lunr.Index.load(object); - }.bind(this) - ); -}; - -Search.prototype.handleSubmit = function (event) { - event.preventDefault(); -}; - -Search.prototype.handleReset = function () { - this.hasResults = false; - this.hideResults(); - this.input.value = ""; - this.showHideClear(); -}; - -Search.prototype.showHideClear = function () { - this.clearButton.hidden = this.input.value.length === 0; -}; - -Search.prototype.hideResults = function () { - this.form.setAttribute("aria-expanded", "false"); - this.popover.classList.remove("is-open"); -}; - -Search.prototype.showResults = function () { - this.form.setAttribute("aria-expanded", "true"); - var inputRect = this.input.getBoundingClientRect(); - this.popover.style.top = `${inputRect.bottom + 10}px`; - - var isRTL = - window - .getComputedStyle(document.documentElement, null) - .getPropertyValue("direction") === "rtl"; - - if (isRTL) { - this.popover.style.right = `${window.innerWidth - inputRect.right}px`; - this.popover.style.left = "auto"; - } - else { - this.popover.style.right = "auto"; - this.popover.style.left = `${inputRect.left}px`; - } - - this.popover.classList.add("is-open"); - - let firstItem = this.popover.querySelector(".spectrum-Menu-item"); - if (firstItem) { - // Provide some visual indication that we will navigate here on enter - firstItem.classList.add("is-highlighted"); - } -}; - -Search.prototype.handleListInteraction = function (e) { - let firstItem = this.popover.querySelector(".spectrum-Menu-item"); - if (firstItem) { - firstItem.classList.remove("is-highlighted"); - } -}; - -Search.prototype.handlePopoverNavigation = function (e) { - let currentItem = document.activeElement; - if (currentItem.classList.contains("spectrum-Menu-item")) { - let items = Array.prototype.slice.call( - this.popover.querySelectorAll(".spectrum-Menu-item") - ); - let currentItemIndex = items.indexOf(currentItem); - let newItemIndex = -1; - if (e.key === "ArrowDown") { - newItemIndex = - currentItemIndex + 1 < items.length ? currentItemIndex + 1 : 0; - } - else if (e.key === "ArrowUp") { - newItemIndex = - currentItemIndex - 1 >= 0 ? currentItemIndex - 1 : items.length - 1; - } - else if (e.key === "Home") { - newItemIndex = 0; - } - else if (e.key === "End") { - newItemIndex = items.length - 1; - } - else if (e.key === "Escape") { - this.input.focus(); - } - else if (e.key === "Enter") { - currentItem.click(); - } - if (newItemIndex !== -1) { - items[newItemIndex].focus(); - - // Don't scroll the list - e.preventDefault(); - } - } -}; - -Search.prototype.handleKeyDown = function (e) { - if (e.key === "ArrowDown") { - let firstItem = this.popover.querySelector(".spectrum-Menu-item"); - if (firstItem) { - this.showResults(); - firstItem.focus(); - } - } - else if (e.key === "Escape") { - this.handleReset(); - } -}; - -Search.prototype.handleKeyPress = function (e) { - if (e.key === "Enter") { - let firstItem = this.popover.querySelector(".spectrum-Menu-item"); - if (firstItem) { - firstItem.click(); - this.input.blur(); - this.hideResults(); - } - } - else if (e.key !== "Escape") { - this.showHideClear(); - if (this.input.value.length === 0) { - this.handleReset(); - } - else { - this.doSearch(); - } - } -}; - -Search.prototype.doSearch = function () { - this.search(this.input.value); -}; - -Search.prototype.search = function (val) { - this.searchVal = val; - - let r = []; - if (val.length > 1) { - let searchParam = val - .trim() - .split(" ") - .map((term) => `${term}* ${term}`) - .join(" "); - try { - r = this.index.search(searchParam); - } - catch (err) { - this.popover.innerHTML = ` -
      -

      Search error

      -

      ${err}

      -
      -`; - this.showResults(); - return; - } - } - - let results = { - length: r.length, - components: r.map(function (result) { - return this.store[result.ref]; - }, this), - }; - - this.hasResults = !!r.length; - - if (results.length) { - this.searchError.hidden = true; - this.searchResults.hidden = false; - - let markup = Search.Categories.map((category) => results[category].length ? ` -
    • - - -
    • ` : "").join("\n"); - this.searchResults.innerHTML = markup; - } - else { - this.searchError.hidden = false; - this.searchResults.hidden = true; - } - - this.showResults(); -}; diff --git a/site/resources/js/SpectrumSwitcher.js b/site/resources/js/SpectrumSwitcher.js deleted file mode 100644 index 3502e8d5ca8..00000000000 --- a/site/resources/js/SpectrumSwitcher.js +++ /dev/null @@ -1,225 +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 - * - * 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. - */ - -// eslint-disable-next-line no-unused-vars -class SpectrumSwitcher { - constructor({ varsVersion, theme, scale, direction, callback }) { - this._callback = callback.bind(this); - - this._theme; - this._scale; - this._direction; - this._varsVersion; - - window.addEventListener("keydown", this.keyDownHandler); - window.addEventListener("resize", () => { - if (window.matchMedia("(max-width: 768px)").matches) { - this.scaleMQLHandler(); - } - }); - - window.addEventListener("DOMContentLoaded", () => { - this.theme = theme; - this.scale = scale; - this.direction = direction; - this.varsVersion = varsVersion; - }); - - // Watch the picker event for changes and reflect in the class object - window.addEventListener("picker:change", (event) => { - const value = event.detail.value; - if (event.target.id === "switcher-scale") { - this.scale = value; - } - else if (event.target.id === "switcher-theme") { - this.theme = value; - } - else if (event.target.id === "switcher-direction") { - this.direction = value; - } - else if (event.target.id === "switcher-vars-version") { - this.varsVersion = value; - } - }); - } - - get rootElements() { - return [...document.querySelectorAll(".spectrum")]; - } - - keyDownHandler (event) { - if (!event.ctrlKey) return; - - let property; - let value; - if ((value = { - 1: "light", - 2: "dark", - 3: "darkest", - }[event.key])) { - property = "theme"; - } - else if ((value = { - m: "medium", - l: "large", - }[event.key])) { - property = "scale"; - } - else if ((value = { - r: "rtl", - n: "ltr", - }[event.key])) { - property = "direction"; - } - else if ((value = { - d: "default", - e: "express", - }[event.key])) { - property = "varsVersion"; - } - - this[property] = value; - - if (this._callback) this._callback({ property, value }); - } - - scaleMQLHandler() { - this.scale = window.matchMedia("(max-width: 768px)").matches ? "large" : "medium"; - } - - set theme(input) { - if (this._theme === input) return; - - ["light", "dark", "darkest"].forEach((otherTheme) => { - this.rootElements.forEach(el => el.classList.remove(`spectrum--${otherTheme}`)); - }); - - this.rootElements.forEach(el => el.classList.add(`spectrum--${input}`)); - - if (window.localStorage) { - localStorage.setItem("swc-docs:theme:color", input); - } - - const prismLink = document.querySelector("[data-prism]"); - let prismDarkLink = document.querySelector("[data-prism-dark]"); - - if (input.startsWith("dark") && prismLink) { - if (!prismDarkLink) { - prismDarkLink = document.createElement("link"); - prismDarkLink.setAttribute("rel", "stylesheet"); - prismDarkLink.setAttribute("data-prism-dark", ""); - prismDarkLink.setAttribute("type", "text/css"); - prismDarkLink.setAttribute("href", "css/prism/prism-dark.css"); - } - - prismLink.parentElement.insertBefore( - prismDarkLink, - prismLink.nextElementSibling - ); - } - else if (prismDarkLink) { - prismDarkLink.parentElement.removeChild(prismDarkLink); - } - - if (this._callback) { - this._callback({ - property: "theme", - value: input, - }); - } - - this._theme = input; - } - - get theme () { - return this._theme; - } - - set varsVersion(input) { - if (this._varsVersion === input) return; - - if (input === "express") { - this.rootElements.forEach(el => el.classList.add("spectrum--express")); - } - else { - this.rootElements.forEach(el => el.classList.remove("spectrum--express")); - } - - if (window.localStorage) { - localStorage.setItem("swc-docs:theme:theme", input); - } - - if (this._callback) { - this._callback({ - property: "vars", - value: input, - }); - } - - this._varsVersion = input; - } - - get varsVersion() { - return this._varsVersion; - } - - set scale (input) { - if (this._scale === input) return; - - ["medium", "large"].forEach((otherScale) => { - this.rootElements.forEach(el => el.classList.remove(`spectrum--${otherScale}`)); - }); - - this.rootElements.forEach(el => el.classList.add(`spectrum--${input}`)); - - if (window.localStorage) { - localStorage.setItem("swc-docs:theme:scale", input); - } - - if (this._callback) { - this._callback({ - property: "scale", - value: input, - }); - } - - this._scale = input; - } - - get scale() { - return this._scale; - } - - set direction(input) { - if (this._direction === input) return; - - document.documentElement.setAttribute("dir", input); - - if (window.localStorage) { - localStorage.setItem("swc-docs:theme:dir", input); - } - - if (this._callback) { - this._callback({ - property: "direction", - value: input, - }); - } - - this._direction = input; - } - - get direction() { - return this._direction; - } -} diff --git a/site/resources/js/adobe-globalnav.js b/site/resources/js/adobe-globalnav.js deleted file mode 100644 index af3993e6c80..00000000000 --- a/site/resources/js/adobe-globalnav.js +++ /dev/null @@ -1,46 +0,0 @@ -window.adobeGlobalnavConfig = { - locale: "en", - footer: { - target: document.getElementById("footer_global"), - excludeNavigation: true - }, - callbacks: { - globalnav_ready: function() { - document.querySelector(".Footernav-region").style.visibility = "hidden"; - - document.querySelector("#AdobeFooterNav").classList.add("has-spectrum-css-customTheme"); - - var css = document.createElement("style"); - css.type = "text/css"; - - var styles = ` - #AdobeFooterNav.Footernav-wrapper.has-spectrum-css-customTheme { - background-color: var(--spectrum-gray-50); - } - - #AdobeFooterNav.Footernav-wrapper.has-spectrum-css-customTheme .Footernav-disclaimer { - color: var(--spectrum-neutral-content-color-default); - } - - #AdobeFooterNav.Footernav-wrapper.has-spectrum-css-customTheme .Footernav-disclaimer-link:hover { - color: var(--spectrum-neutral-content-color-hover); - } - - #AdobeFooterNav.Footernav-wrapper.has-spectrum-css-customTheme .Footernav-disclaimer.is-adChoices .Footernav-disclaimer-link { - fill: var(--spectrum-neutral-content-color-default); - } - - #AdobeFooterNav.Footernav-wrapper.has-spectrum-css-customTheme .Footernav-disclaimer.is-adChoices .Footernav-disclaimer-link:hover { - fill: var(--spectrum-neutral-content-color-hover); - } - `; - - if (css.styleSheet) - css.styleSheet.cssText = styles; - else - css.appendChild(document.createTextNode(styles)); - - document.getElementsByTagName("head")[0].appendChild(css); - } - } -}; diff --git a/site/resources/js/docs.js b/site/resources/js/docs.js deleted file mode 100644 index 0e0d8d58358..00000000000 --- a/site/resources/js/docs.js +++ /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 - * - * 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. - */ -/* eslint-disable no-unused-vars */ -/* global loadIcons */ - -"use strict"; - -loadIcons("img/spectrum-css-icons.svg"); -loadIcons("img/spectrum-icons.svg"); - -// Show and hide code samples -document.addEventListener("click", (event) => { - if (!event.target.classList.contains("js-markup-toggle")) return; - - event.preventDefault(); - - const exampleMarkup = event.target.closest(".spectrum-CSSExample-markup"); - const isOpen = exampleMarkup.classList.contains("is-open"); - - event.target.innerHTML = isOpen ? "Show markup" : "Hide markup"; - exampleMarkup.classList.toggle("is-open"); -}); diff --git a/site/resources/js/enhancement.js b/site/resources/js/enhancement.js deleted file mode 100644 index c35f59f5362..00000000000 --- a/site/resources/js/enhancement.js +++ /dev/null @@ -1,966 +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 - * - * 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. - */ - -/* Global holder tracking open pickers to ensure only 1 is ever open at a time */ -let openPicker; - -function furthest(el, selector) { - let lastMatch; - while (el) { - if (el.matches && el.matches(selector)) lastMatch = el; - el = el.parentNode; - } - - return lastMatch; -} - -// Add or remove focused or keyboard focused classes on element. -function setFocusClasses(element, target, focused) { - const focusClass = target.classList.contains("is-keyboardFocused") - ? "is-keyboardFocused" - : "is-focused"; - - if (focused) { - element.classList.add(focusClass); - } - else { - element.classList.remove("is-keyboardFocused"); - element.classList.remove("is-focused"); - } -} - -function togglePicker(picker, force = undefined) { - if (!picker) return; - - const isOpen = force !== undefined ? force : !picker.classList.contains("is-open"); - - if (isOpen) { - picker.setAttribute("aria-expanded", "true"); - - if (openPicker && openPicker !== picker) { - togglePicker(openPicker, false); - } - openPicker = picker; - } - else { - picker.removeAttribute("aria-expanded"); - } - - picker.classList.toggle("is-open", isOpen); - picker.classList.toggle("is-selected", isOpen); - - const popover = picker.nextElementSibling?.matches(".spectrum-Popover") ? picker.nextElementSibling : undefined; - if (!popover) return; - - // We have to get the coordinates relative to the parent - const parent = popover.closest(".spectrum-CSSExample-container") ?? document.querySelector("body"); - const parentRect = parent.getBoundingClientRect(); - - const transforms = []; - popover.style.zIndex = 1; - - const rect = picker.getBoundingClientRect(); - const triggerBottom = rect.bottom - parentRect.top; - - popover.style.left = rect.left - parentRect.left + "px"; - popover.style.top = triggerBottom + "px"; - popover.style.transform = transforms.join(" "); - - popover.classList.toggle("is-open", isOpen); - popover.querySelector(".spectrum-Menu-item").focus(); -} - -function setPickerValue(picker, value, label = undefined) { - if (!picker) return; - - picker.setAttribute("value", value); - - const menu = picker.nextElementSibling.querySelector(".spectrum-Menu"); - if (!menu) return; - - const menuItem = menu.querySelector( - ".spectrum-Menu-item[value=\"" + value + "\"]" - ); - - if (menuItem) { - const selectedMenuItem = menu.querySelector( - ".spectrum-Menu-item.is-selected" - ); - - if (selectedMenuItem) { - selectedMenuItem.classList.remove("is-selected"); - selectedMenuItem.removeAttribute("aria-selected"); - } - - menuItem.classList.add("is-selected"); - menuItem.setAttribute("aria-selected", "true"); - - if (!label) { - const menuLabel = menuItem.querySelector(".spectrum-Menu-itemLabel"); - if (menuLabel) { - label = menuLabel.innerHTML; - } - } - } - - if (picker && label) { - const pickerLabel = picker.querySelector(".spectrum-Picker-label"); - if (pickerLabel) { - pickerLabel.innerHTML = label; - } - } - - picker.dispatchEvent(new CustomEvent("picker:change", { - bubbles: true, - detail: { label, value }, - })); -} - -window.addEventListener("DOMContentLoaded", () => { - [...document.querySelectorAll(".spectrum-DropZone")].forEach((dropzone) => { - dropzone.addEventListener("dragover", (event) => { - // prevent default to allow drop - event.preventDefault(); - }, false); - - dropzone.addEventListener("dragenter", () => { - dropzone.classList.add("is-dragged"); - }); - - dropzone.addEventListener("dragleave", () => { - dropzone.classList.remove("is-dragged"); - }); - - dropzone.addEventListener("drop", (event) => { - event.preventDefault(); - }); - }); - - [...document.querySelectorAll(".spectrum-Swatch")].forEach((swatch) => { - swatch.addEventListener("click", (event) => { - const el = event.target; - if (el.classList.contains("is-disabled")) return; - - el.classList.toggle("is-selected"); - }); - }); - - [...document.querySelectorAll(".spectrum-AssetCard")].forEach((assetcard) => { - assetcard.addEventListener("click", () => { - const checkbox = assetcard.querySelector(".spectrum-Checkbox-input"); - if (checkbox) { - checkbox.checked = !assetcard.classList.contains("is-selected"); - } - - assetcard.classList.toggle("is-selected"); - }); - }); - - /* TODO: is there a keypress behavior for rating? */ - [...document.querySelectorAll(".spectrum-Rating")].forEach((rating) => { - rating.addEventListener("focusin", (event) => { - const el = event.target; - el.classList.add("is-focused"); - }); - - rating.addEventListener("focusout", (event) => { - const el = event.target; - el.classList.remove("is-focused"); - }); - - const input = rating.querySelector(".spectrum-Rating-input"); - input.addEventListener("change", (event) => { - const el = event.target; - if (el.hasAttribute("readonly")) { - event.preventDefault(); - el.value = event.defaultValue; - } - else { - const value = parseInt(el.value, 10); - input.value = value; - - [...rating.querySelectorAll(".spectrum-Rating-icon")].forEach((el, index) => { - el.classList[index <= value - 1 ? "add" : "remove"]("is-selected"); - el.classList[index === value - 1 ? "add" : "remove"]("is-currentValue"); - }); - } - }); - - [...rating.querySelectorAll(".spectrum-Rating-icon")].forEach((icon, idx, allIcons) => { - icon.addEventListener("click", () => { - const value = allIcons[idx] + 1; - input.value = value; - - allIcons.forEach((el, index) => { - el.classList[index <= value - 1 ? "add" : "remove"]("is-selected"); - el.classList[index === value - 1 ? "add" : "remove"]("is-currentValue"); - }); - }); - }); - }); - - [...document.querySelectorAll(".spectrum-Textfield, .spectrum-Combobox, .spectrum-Stepper")].forEach((input) => { - // -- Bubble up focus classes to component's parent element. - input.addEventListener("focusin", (event) => { - setFocusClasses(input, event.target, true); - }); - input.addEventListener("focusout", (event) => { - setFocusClasses(input, event.target, false); - }); - }); - - [...document.querySelectorAll(".spectrum-Menu")].forEach((menu) => { - menu.addEventListener("click", (event) => { - const popover = menu.closest(".spectrum-Popover"); - const picker = popover?.previousElementSibling?.matches(".spectrum-Picker") ? popover.previousElementSibling : undefined; - - const menuItem = event.target.closest(".spectrum-Menu-item"); - if (!menuItem) return; - - const menuLabel = menuItem.querySelector(".spectrum-Menu-itemLabel"); - if (!menuLabel) return; - - const pickerLabel = picker.querySelector(".spectrum-Picker-label"); - if (!pickerLabel) return; - - pickerLabel.innerHTML = menuLabel.innerHTML; - - event.stopPropagation(); - - const value = menuItem.getAttribute("value"); - const label = menuLabel.innerHTML; - - if (picker) { - togglePicker(picker, false); - setPickerValue(picker, value, label); - } - }); - }); - - [...document.querySelectorAll(".spectrum-Picker")].forEach((picker) => { - picker.addEventListener("click", (event) => { - const el = event.target; - const isOpen = !el.classList.contains("is-open"); - togglePicker(picker, isOpen); - }); - }); - - [...document.querySelectorAll(".spectrum-Accordion")].forEach((accordion) => { - [...accordion.querySelectorAll(".spectrum-Accordion-item")].forEach(accordionItem => { - const button = accordionItem.querySelector(".spectrum-Accordion-itemHeading"); - button.addEventListener("click", (event) => { - const isDisabled = accordionItem.classList.contains("is-disabled"); - if (isDisabled) return; - - accordionItem.classList.toggle("is-open"); - event.preventDefault(); - }); - }); - }); - - [...document.querySelectorAll(".spectrum-CycleButton")].forEach((cycleButton) => { - cycleButton.addEventListener("click", () => { - const icons = [...cycleButton.querySelectorAll(".spectrum-Icon")]; - const currentIcon = cycleButton.querySelector(".spectrum-Icon.is-selected"); - const currentIconIndex = icons.indexOf(currentIcon); - - if (!currentIcon) return; - currentIcon.classList.remove("is-selected"); - - const newIndex = currentIconIndex + 1 < icons.length ? currentIconIndex + 1 : 0; - icons[newIndex].classList.add("is-selected"); - }); - }); - - [...document.querySelectorAll(".spectrum-TreeView")].forEach((treeview) => { - [...treeview.querySelectorAll(".spectrum-TreeView-item")].forEach(treeviewItem => { - treeviewItem.addEventListener("click", (event) => { - const isDisabled = treeviewItem.classList.contains("is-disabled"); - if (isDisabled) return; - - let el; - - if ( - (el = event.target.closest(".spectrum-TreeView-itemIndicator")) !== null - ) { - treeviewItem.classList.toggle("is-open"); - event.preventDefault(); - } - else if ( - (el = event.target.closest(".spectrum-TreeView-itemLink")) !== null - ) { - if (!(event.shiftKey || event.metaKey)) { - // Remove other selected items - const outerTreeview = furthest(el, ".spectrum-TreeView"); - if (outerTreeview) { - [...outerTreeview.querySelectorAll(".spectrum-TreeView-item.is-selected")].forEach(item => { - if (item != treeviewItem) { - item.classList.remove("is-selected"); - - var thumbnail = item.querySelector( - ".spectrum-TreeView-itemThumbnail" - ); - if (thumbnail) { - thumbnail.classList.remove("is-selected"); - } - } - }); - } - } - - const thumbnail = treeviewItem.querySelector(".spectrum-TreeView-itemThumbnail"); - if (thumbnail) { - const selected = treeviewItem.classList.toggle("is-selected"); - thumbnail.classList.toggle("is-selected", !selected); - } - - event.preventDefault(); - } - }); - }); - }); - - [...document.querySelectorAll(".spectrum-Slider")].forEach(slider => { - const handles = [...slider.querySelectorAll(".spectrum-Slider-handle")]; - - const isColor = slider.classList.contains("spectrum-Slider--color"); - const value = slider.querySelector(".spectrum-Slider-value"); - const fill = slider.querySelector(".spectrum-Slider-fill"); - - let init; - - if (handles.length > 1) { - let handle; - - const onMouseUp = function () { - window.removeEventListener("mouseup", onMouseUp); - window.removeEventListener("mousemove", onMouseMove); - document.body.classList.remove("u-isGrabbing"); - handle = undefined; - }; - - const onMouseMove = function (e) { - if (!handle) return; - - const [leftTrack, middleTrack, rightTrack] = [...slider.querySelectorAll(".spectrum-Slider-track")]; - - const leftHandle = handles[0]; - const rightHandle = handles[1]; - - const sliderOffsetWidth = slider.offsetWidth; - const sliderOffsetLeft = slider.offsetLeft + slider.offsetParent.offsetLeft; - - const x = Math.max(Math.min(e.x - sliderOffsetLeft, sliderOffsetWidth), 0); - let percent = Math.round((x / sliderOffsetWidth) * 100); - - const isRTL = slider.dir === "rtl"; - - if (isRTL) { - percent = 100 - percent; - } - - if (handle === leftHandle) { - if (percent < parseFloat(rightHandle.style[isRTL ? "right" : "left"])) { - if (isRTL) { - handle.style.right = `${percent}%`; - handle.style.left = "auto"; - } - else { - handle.style.right = "auto"; - handle.style.left = `${percent}%`; - } - - leftTrack.style.width = `${percent}%`; - } - } - else { - if (percent > parseFloat(leftHandle.style[isRTL ? "right" : "left"])) { - if (isRTL) { - handle.style.right = `${percent}%`; - handle.style.left = "auto"; - } - else { - handle.style.right = "auto"; - handle.style.left = `${percent}%`; - } - - rightTrack.style.width = `${100 - percent}%`; - } - } - - if (isRTL) { - middleTrack.style.right = leftHandle.style.right; - middleTrack.style.left = 100 - parseFloat(rightHandle.style.right) + "%"; - } - else { - middleTrack.style.left = leftHandle.style.left; - middleTrack.style.right = 100 - parseFloat(rightHandle.style.left) + "%"; - } - }; - - const onMouseDown = function (e) { - if (e.target.classList.contains("spectrum-Slider-handle")) { - handle = e.target; - window.addEventListener("mouseup", onMouseUp); - window.addEventListener("mousemove", onMouseMove); - document.body.classList.add("u-isGrabbing"); - } - }; - - init = function () { - const [leftTrack, middleTrack, rightTrack] = [...slider.querySelectorAll(".spectrum-Slider-track")]; - - const leftHandle = handles[0]; - const rightHandle = handles[1]; - - const isRTL = slider.dir === "rtl"; - - // Set initial track position - let startPercent, endPercent; - if (isRTL) { - leftHandle.style.right = leftHandle.style.left; - leftHandle.style.left = leftHandle.style.right; - rightHandle.style.right = rightHandle.style.left; - rightHandle.style.left = rightHandle.style.right; - - startPercent = parseFloat(leftHandle.style.right); - endPercent = parseFloat(rightHandle.style.right); - - middleTrack.style.right = startPercent + "%"; - middleTrack.style.left = 100 - endPercent + "%"; - } - else { - startPercent = parseFloat(leftHandle.style.left); - endPercent = parseFloat(rightHandle.style.left); - - middleTrack.style.left = startPercent + "%"; - middleTrack.style.right = 100 - endPercent + "%"; - } - - leftTrack.style.width = startPercent + "%"; - rightTrack.style.width = 100 - endPercent + "%"; - - if (!slider.classList.contains("is-disabled")) { - slider.addEventListener("mousedown", onMouseDown); - } - }; - } - else { - const handle = handles[0]; - - const buffers = [...slider.querySelectorAll(".spectrum-Slider-buffer")]; - - let leftBuffer, rightBuffer, bufferedAmount; - if (buffers.length) { - const isRTL = slider.dir === "rtl"; - - leftBuffer = buffers[0]; - rightBuffer = buffers[1]; - - bufferedAmount = - parseInt(handle.style[isRTL ? "right" : "left"], 10) + - parseInt(rightBuffer.style.width, 10); - } - - const onMouseUp = function () { - window.removeEventListener("mouseup", onMouseUp); - window.removeEventListener("mousemove", onMouseMove); - handle.classList.remove("is-dragged"); - }; - - const onMouseMove = function (e) { - const [leftTrack, rightTrack] = [...slider.querySelectorAll(".spectrum-Slider-track")]; - - const sliderOffsetWidth = slider.offsetWidth; - const sliderOffsetLeft = slider.offsetLeft + slider.offsetParent.offsetLeft; - - const x = Math.max(Math.min(e.x - sliderOffsetLeft, sliderOffsetWidth), 0); - let percent = Math.round((x / sliderOffsetWidth) * 100); - - const isRTL = slider.dir === "rtl"; - - if (isRTL) { - percent = 100 - percent; - } - - if (value) { - value.innerText = percent; - } - - if (leftTrack && rightTrack && !isColor) { - leftTrack.style.width = `${percent}%`; - rightTrack.style.width = `${100 - percent}%`; - } - - if (isRTL) { - handle.style.right = `${percent}%`; - handle.style.left = "auto"; - } - else { - handle.style.right = "auto"; - handle.style.left = `${percent}%`; - } - - if (buffers.length) { - if (percent >= bufferedAmount) { - // Hide the right buffer - rightBuffer.style.width = 0; - rightBuffer.style.left = "auto"; - rightBuffer.style.right = "auto"; - - // This disgusting calculation takes into account the pretty gap - const bufferStyle = window.getComputedStyle(leftBuffer); - - // The left buffer is offset by the gap and some margin, so we have to add that back to make it actually hit the desired value - let handleGap, bufferOffset, bufferMaxWidth; - if (isRTL) { - handleGap = parseInt(bufferStyle.paddingLeft, 10); - bufferOffset = parseInt(bufferStyle.marginRight, 10) * -1; - bufferMaxWidth = (handle.parentElement.offsetWidth - handle.offsetLeft) + handle.offsetWidth / 2; - } - else { - handleGap = parseInt(bufferStyle.paddingRight, 10); - bufferOffset = parseInt(bufferStyle.marginLeft, 10) * -1; - bufferMaxWidth = handle.offsetLeft + handle.offsetWidth / 2; - } - - const actualMiddle = - handle.parentElement.offsetWidth / 2 + bufferOffset + handleGap; - - // Keep the left buffer to account for the nasty gaps - leftBuffer.style.width = Math.min(bufferMaxWidth, actualMiddle) + "px"; - } - else { - leftBuffer.style.width = `${percent}%`; - rightBuffer.style.width = "auto"; - - if (isRTL) { - rightBuffer.style.right = `${percent}%`; - rightBuffer.style.left = `${100 - bufferedAmount}%`; - } - else { - rightBuffer.style.right = `${100 - bufferedAmount}%`; - rightBuffer.style.left = `${percent}%`; - } - } - } - - if (fill) { - if (isRTL) { - fill.style.right = `${(percent < 50 ? percent : 50)}%`; - } - else { - fill.style.left = `${(percent < 50 ? percent : 50)}%`; - } - - fill.style.width = `${(percent < 50 ? 50 - percent : percent - 50)}%`; - fill.classList.toggle("spectrum-Slider-fill--right", percent > 50); - } - }; - - const onMouseDown = function (e) { - window.addEventListener("mouseup", onMouseUp); - window.addEventListener("mousemove", onMouseMove); - handle.classList.add("is-dragged"); - // to move by merely clicking on the track - onMouseMove(e); - }; - - init = function () { - const isRTL = slider.dir === "rtl"; - const [leftTrack, rightTrack] = [...slider.querySelectorAll(".spectrum-Slider-track")]; - - if (isRTL) { - handle.style.right = handle.style.left; - handle.style.left = handle.style.right; - if (fill) { - fill.style.right = fill.style.left; - fill.style.left = fill.style.right; - } - - if (buffers.length) { - var oldRightRight = rightBuffer.style.right; - rightBuffer.style.right = rightBuffer.style.left; - rightBuffer.style.left = oldRightRight; - var oldLeftRight = leftBuffer.style.right; - leftBuffer.style.right = leftBuffer.style.left; - leftBuffer.style.left = oldLeftRight; - } - - if (tracks.length) { - // Flip colors - if (tracks[0].style.background) { - tracks[0].style.background = tracks[0].style.background.replace( - "right", - "left" - ); - } - } - } - - // Set initial track position - let percent; - if (isRTL) { - percent = parseInt(handle.style.right, 10); - } - else { - percent = parseInt(handle.style.left, 10); - } - - if (leftTrack && rightTrack && !isColor) { - leftTrack.style.width = `${percent}%`; - rightTrack.style.width = `${100 - percent}%`; - } - - if (!slider.classList.contains("is-disabled")) { - slider.addEventListener("mousedown", onMouseDown); - } - }; - } - - const observer = new MutationObserver(function (mutations) { - mutations.forEach(function (mutation) { - if (mutation.type === "attributes" && mutation.attributeName === "dir") { - init(); - } - }); - }); - - observer.observe(document.documentElement, { - attributes: true, //configure it to listen to attribute changes - }); - - init(); - }); - - [...document.querySelectorAll(".spectrum-Dial")].forEach(dial => { - const dialOffsetWidth = dial.offsetWidth; - const dialOffsetLeft = dial.offsetLeft + dial.offsetParent.offsetLeft; - const handle = dial.querySelector(".spectrum-Dial-handle"); - const min = -45; - const max = 225; - - function onMouseDown() { - window.addEventListener("mouseup", onMouseUp); - window.addEventListener("mousemove", onMouseMove); - document.body.classList.add("u-isGrabbing"); - } - - function onMouseUp() { - window.removeEventListener("mouseup", onMouseUp); - window.removeEventListener("mousemove", onMouseMove); - document.body.classList.remove("u-isGrabbing"); - } - - function onMouseMove(e) { - const x = Math.max(Math.min(e.x - dialOffsetLeft, dialOffsetWidth), 0); - const percent = (x / dialOffsetWidth) * 100; - - const deg = percent * 0.01 * (max - min) + min; - handle.style.transform = `rotate(${deg}deg)`; - } - - if (!dial.classList.contains("is-disabled")) { - dial.addEventListener("mousedown", onMouseDown); - } - }); - - // Kicks off the loader animation - let value = 0; - setInterval(() => { - const loaders = [...document.querySelectorAll( - ".spectrum-CircleLoader:not(spectrum-CircleLoader--indeterminate)" - )]; - if (!loaders.length) return; - - loaders.forEach(loader => { - const v = value++; - - let submask1 = loader.querySelector(".spectrum-CircleLoader-fillSubMask1"); - let submask2 = loader.querySelector(".spectrum-CircleLoader-fillSubMask2"); - let angle; - - if (v > 0 && v <= 50) { - angle = -180 + (v / 50) * 180; - submask1.style.transform = "rotate(" + angle + "deg)"; - submask2.style.transform = "rotate(-180deg)"; - } - else if (v > 50) { - angle = -180 + ((v - 50) / 50) * 180; - submask1.style.transform = "rotate(0deg)"; - submask2.style.transform = "rotate(" + angle + "deg)"; - } - }); - - if (value >= 100) value = 0; - }, 500); -}); - -window.addEventListener("click", (event) => { - const menu = event.target.closest(".spectrum-Menu"); - const picker = event.target.closest(".spectrum-Picker"); - - if (!picker && !menu && openPicker) togglePicker(openPicker, false); -}); - -document.addEventListener("keypress", (event) => { - const swatch = event.target.closest(".spectrum-Swatch"); - if (swatch && (event.key === "Enter" || event.key === " ")) { - if (!swatch.classList.contains("is-disabled")) { - swatch.classList.toggle("is-selected", !swatch.classList.contains("is-selected")); - } - - event.preventDefault(); - } - - const assetcard = event.target.closest(".spectrum-AssetCard"); - if (assetcard && (event.key === "Enter" || event.key === " ")) { - const checkbox = assetcard.querySelector(".spectrum-Checkbox-input"); - if (checkbox) { - checkbox.checked = !assetcard.classList.contains("is-selected"); - } - - assetcard.classList.toggle("is-selected"); - - event.preventDefault(); - } - - const menuItem = event.target.closest(".spectrum-Menu-item"); - if (menuItem) { - const menu = menuItem.closest(".spectrum-Menu"); - if (menuItem.classList.contains("spectrum-Menu-item")) { - const items = [...menu.querySelectorAll(".spectrum-Menu-item:not(.is-disabled)")]; - const menuItemIndex = items.indexOf(menuItem); - let newItemIndex = -1; - if (event.key === "ArrowDown") { - newItemIndex = - menuItemIndex + 1 < items.length ? menuItemIndex + 1 : 0; - } - else if (event.key === "ArrowUp") { - newItemIndex = - menuItemIndex - 1 >= 0 ? menuItemIndex - 1 : items.length - 1; - } - else if (event.key === "Home") { - newItemIndex = 0; - } - else if (event.key === "End") { - newItemIndex = items.length - 1; - } - else if (event.key === "Escape") { - const picker = event.target.closest(".spectrum-Picker"); - togglePicker(picker, false); - picker.focus(); - } - else if (event.key === "Enter") { - const value = menuItem.getAttribute("value"); - const menuLabel = menuItem.querySelector(".spectrum-Menu-itemLabel"); - const label = menuLabel.innerHTML; - - if (picker) { - togglePicker(picker, false); - setPickerValue(picker, value, label); - } - - const picker = popover?.previousElementSibling?.matches(".spectrum-Picker") ? popover.previousElementSibling : undefined; - const popover = menu.closest(".spectrum-Popover"); - - togglePicker(picker, false); - picker.focus(); - - event.preventDefault(); - } - if (newItemIndex !== -1) { - items[newItemIndex].focus(); - - // Don't scroll the list - event.preventDefault(); - } - } - } - else if (event.key === "ArrowDown") { - const targetPicker = event.target.closest(".spectrum-Picker"); - if (targetPicker) togglePicker(targetPicker, true); - } -}); - -// eslint-disable-next-line no-unused-vars -- Used in dialog docs -function openDialog(dialog, withOverlay) { - if (withOverlay !== false) { - document.getElementById("spectrum-underlay").classList.add("is-open"); - } - - dialog.classList.add("is-open"); - - // Support wrapped dialogs - const innerDialog = dialog.querySelector(".spectrum-Modal"); - if (!innerDialog) return; - - innerDialog.classList.add("is-open"); -} - -// eslint-disable-next-line no-unused-vars -- Used in dialog docs -function closeDialog(dialog) { - document.getElementById("spectrum-underlay").classList.remove("is-open"); - dialog.classList.remove("is-open"); - - // Support wrapped dialogs - const innerDialog = dialog.querySelector(".spectrum-Modal"); - if (innerDialog) { - innerDialog.classList.remove("is-open"); - } - - setTimeout(() => { - dialog.classList.remove("spectrum-CSSExample-dialog"); - }, 130); -} - -// eslint-disable-next-line no-unused-vars -- Used in popover docs -function toggleSpectrumPopover(popover) { - popover.classList.contains("is-open") - ? popover.classList.remove("is-open") - : popover.classList.add("is-open"); -} - -// Focus Indicator Classes -const NAVIGATION_KEYS = [ - "Tab", - "ArrowUp", - "ArrowRight", - "ArrowDown", - "ArrowLeft", - "Home", - "End", - "PageUp", - "PageDown", - "Enter", - " ", - "Escape", - - /* IE9 and Firefox < 37 */ - "Up", - "Right", - "Down", - "Left", - "Esc" -]; - -const FOCUS_COMPONENTS = [ - "assetlist", - "button", - "calendar", - "card", - "closebutton", - "colorarea", - "colorhandle", - "colorslider", - "colorwheel", - "combobox", - "menu", - "picker", - "pickerbutton", - "rating", - "sidenav", - "slider", - "steplist", - "stepper", - "table", - "tag", - "tooltip" -]; - -const KEYBOARD_FOCUS_COMPONENTS = [ - "closebutton", - "combobox", - "datepicker", - "pickerbutton", - "sidenav", - "stepper", - "table", -]; - -// If pathname matches a component in the focus or keyboard focus arrays, -// we know that component should get/is setup to handle the focus class -function getsFocusClasses(componentArray) { - return componentArray.some((componentPath) => { - const currentPath = window.location.pathname; - return currentPath.includes(componentPath); - }); -} - -let keyboardFocus = false; - -// Display InputGroup focus style -function toggleInputGroupFocus(event) { - const classList = event.target.classList; - - let closestSelector; - // target within InputGroup - if (!classList) return; - if ( - classList.contains("spectrum-InputGroup-input") || - classList.contains("spectrum-ActionButton spectrum-ActionButton--sizeM") - ) { - closestSelector = ".spectrum-InputGroup"; - } - // target within a Slider - else if (classList.contains("spectrum-Slider-input")) { - closestSelector = ".spectrum-Slider-handle"; - } - else return; - - const closestElement = event.target.closest(closestSelector); - if (!closestElement) return; - - closestElement.classList.toggle("is-focused", event.type === "focus"); -} - -document.addEventListener("focus", toggleInputGroupFocus, true); -document.addEventListener("blur", toggleInputGroupFocus, true); - -window.addEventListener("keydown", (event) => { - if (event.ctrlKey || event.altKey || event.metaKey || NAVIGATION_KEYS.indexOf(event.key) === -1) { - return; - } - keyboardFocus = true; - - if (getsFocusClasses(KEYBOARD_FOCUS_COMPONENTS) - && document.activeElement - && document.activeElement !== document.body) { - document.activeElement.classList.add("is-keyboardFocused"); - } -}, true); - -window.addEventListener("focusin", (event) => { - const classList = event.target.classList; - if (classList && keyboardFocus && getsFocusClasses(KEYBOARD_FOCUS_COMPONENTS)) { - classList.add("is-keyboardFocused"); - } -}, true); - -window.addEventListener("focusout", (event) => { - const classList = event.target.classList; - if (!classList) return; - - classList.remove("is-keyboardFocused"); - classList.remove("is-focused"); -}, true); - -window.addEventListener("mousedown", () => { - keyboardFocus = false; - - if (getsFocusClasses(FOCUS_COMPONENTS) - && document.activeElement - && document.activeElement !== document.body) { - document.activeElement.classList.add("is-focused"); - } -}, true); diff --git a/site/resources/js/site.js b/site/resources/js/site.js deleted file mode 100644 index b4ea6441fef..00000000000 --- a/site/resources/js/site.js +++ /dev/null @@ -1,121 +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 - * - * 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. - */ - -/* global Search, SpectrumSwitcher */ -const COLOR_FALLBACK = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; -const SCALE_FALLBACK = matchMedia("(max-width: 700px) and (hover: none) and (pointer: coarse), (max-height: 700px) and (hover: none) and (pointer: coarse)").matches ? "large" : "medium"; - -// Switcher -if (typeof SpectrumSwitcher !== "undefined" && !window.switcher) { - window.switcher = new SpectrumSwitcher({ - theme: window.localStorage ? localStorage.getItem("swc-docs:theme:color") ?? COLOR_FALLBACK : COLOR_FALLBACK, - varsVersion: window.localStorage ? localStorage.getItem("swc-docs:theme:theme") ?? "default" : "default", - scale: window.localStorage ? localStorage.getItem("swc-docs:theme:scale") ?? SCALE_FALLBACK : SCALE_FALLBACK, - direction: window.localStorage ? localStorage.getItem("swc-docs:theme:dir") ?? "ltr" : "ltr", - callback: function (event) { - const key = event.property === "vars" ? "vars-version" : event.property; - const picker = document.querySelector(`#switcher-${key}`); - if (!picker) return; - - picker.setAttribute("value", event.value); - - const menu = picker.nextElementSibling.querySelector(".spectrum-Menu"); - if (!menu) return; - - const menuItem = menu.querySelector( - ".spectrum-Menu-item[value=\"" + event.value + "\"]" - ); - - let label; - if (menuItem) { - const selectedMenuItem = menu.querySelector( - ".spectrum-Menu-item.is-selected" - ); - - if (selectedMenuItem) { - selectedMenuItem.classList.remove("is-selected"); - selectedMenuItem.removeAttribute("aria-selected"); - } - - menuItem.classList.add("is-selected"); - menuItem.setAttribute("aria-selected", "true"); - - const menuLabel = menuItem.querySelector(".spectrum-Menu-itemLabel"); - if (menuLabel) { - label = menuLabel.innerHTML; - } - } - - if (picker && label) { - const pickerLabel = picker.querySelector(".spectrum-Picker-label"); - if (pickerLabel) pickerLabel.innerHTML = label; - } - }, - }); -} - -// Sidebar -function hideSideBar() { - const overlay = document.querySelector("#site-overlay"); - overlay.removeEventListener("click", hideSideBar); - overlay.classList.remove("is-open"); - - const sideBar = document.querySelector("#site-sidebar"); - if (sideBar) sideBar.classList.remove("is-open"); - if (window.siteSearch) window.siteSearch.hideResults(); -} - -function showSideBar() { - const overlay = document.querySelector("#site-overlay"); - const sideBar = document.querySelector("#site-sidebar"); - - overlay.addEventListener("click", hideSideBar); - sideBar.classList.add("is-open"); - overlay.classList.add("is-open"); -} - -window.addEventListener("SearchFocused", () => { - showSideBar(); - - // Immediately hide results, otherwise they show up in the wrong position since we're in the middle of animation - if (window.siteSearch) window.siteSearch.hideResults(); -}); - -window.addEventListener("resize", () => { - if (!window.matchMedia("(max-width: 960px)").matches) { - hideSideBar(); - } -}); - -window.addEventListener("DOMContentLoaded", () => { - const siteSearch = document.querySelector("#site-search"); - - // Search isn't supported on IE 11 and sideBar will not be exist in test mode - if (typeof Search !== "undefined" && siteSearch && !window.siteSearch) { - window.siteSearch = new Search(siteSearch); - } - - if (!window.matchMedia("(max-width: 960px)").matches) hideSideBar(); - else showSideBar(); - - const siteMenu = document.querySelector("#site-menu"); - if (siteMenu) { - siteMenu.addEventListener("click", function () { - const sideBar = document.querySelector("#site-sidebar"); - if (!sideBar) return; - - if (sideBar.classList.contains("is-open")) hideSideBar(); - else showSideBar(); - }); - } -}); diff --git a/site/resources/js/typekit.js b/site/resources/js/typekit.js deleted file mode 100644 index 236d669ad89..00000000000 --- a/site/resources/js/typekit.js +++ /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 - * - * 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. - */ -/* global Typekit */ -/* jshint -W033,-W116 */ -window.addEventListener("DOMContentLoaded", function () { - "use strict"; - - var config = { - /* Do not use this in production; see https://wiki.corp.adobe.com/display/devrel/Using+Typekit+at+Adobe to get set up. */ - - // On pageload, determine to current pages language setting. - // If it is US-language or unset use the 1st Adobe font web project id (smaller size), - // otherwise use the 2nd kit with all the language settings (larger size) - kitId: - document.querySelector("[lang]:not([lang=\"en-US\"])") === null - ? "mge7bvf" - : "rok6rmo", - scriptTimeout: 3000, - active: function () { - var loader = document.getElementById("loader"); - if (loader) { - setTimeout(function () { - // Hide the loader - loader.style.display = "none"; - }, 125); - } - }, - }; - - if (!window.Typekit) { - // we load the typescript only once - var h = document.getElementsByTagName("html")[0]; - h.className += " wf-loading"; - var t = setTimeout(function () { - h.className = h.className.replace(/(\s|^)wf-loading(\s|$)/g, " "); - h.className += " wf-inactive"; - }, config.scriptTimeout); - var tk = document.createElement("script"), - d = false; - - // Always load over https - tk.src = "https://use.typekit.net/" + config.kitId + ".js"; - tk.type = "text/javascript"; - tk.async = "true"; - tk.onload = tk.onreadystatechange = function () { - var a = this.readyState; - if (d || (a && a !== "complete" && a !== "loaded")) { - return; - } - d = true; - clearTimeout(t); - try { - Typekit.load(config); - } - catch (b) { /* empty */ } - }; - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(tk, s); - } -}); diff --git a/site/tasks/builder.js b/site/tasks/builder.js deleted file mode 100644 index 4c054803465..00000000000 --- a/site/tasks/builder.js +++ /dev/null @@ -1,780 +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 - * - * 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 { - dirs, - relativePrint, - getFolderDependencyOrder, - getPackageFromPath, -} = require("./utilities"); - -const fs = require("fs"); -const fsp = fs.promises; -const path = require("path"); - -const _ = require("lodash"); -const fg = require("fast-glob"); -const pug = require("pug"); -const yaml = require("js-yaml"); -const lunr = require("lunr"); -const npmFetch = require("npm-registry-fetch"); - -// Import the component-builder-simple to process the site styles -const { processCSS } = require("../../tasks/component-builder.js"); - -require("colors"); - -const loadicons = require.resolve("loadicons"); -const lunrPath = require.resolve("lunr"); -const prism = require.resolve("prismjs"); -const tokens = require.resolve("@spectrum-css/tokens"); -const workflowIcons = require.resolve("@adobe/spectrum-css-workflow-icons"); -const uiIcons = require.resolve("@spectrum-css/ui-icons"); - -const deprecatedComponents = ["quickaction", "cyclebutton", "searchwithin", "splitbutton"]; - -const timeInMs = (seconds, nanoseconds) => (seconds * 1000000000 + nanoseconds) / 1000000; - -/** - * @typedef {Object} SiteUtilities - * @property {import('markdown-it')} markdown - * @property {import('prismjs').Prism} Prism - * @property {(status: string) => "negative"|"notice"|"positive"|"neutral"} getStatusLightVariant - * @property {(name: string, subName?: string) => string} getSlug - * @property {(component: object) => void} populateDNAInfo - */ - -/** - * @typedef Navigation - * @property {string} name - * @property {string} component - * @property {boolean} hide - * @property {string} href - * @property {string} description - */ - -/** - * @typedef {Object} TemplateData - * @property {SiteUtilities} util - * @property {Navigation[]} nav - * @property {Object} component - * @property {string} pageURL - * @property {string[]} dependencyOrder - * @property {string} releaseDate - * @property {Object} pkg - */ - -/** - * Copy static assets to the publish directory - * @param {(string|RegExp)[]} globs - * @param {object} options - * @param {string} [options.cwd] - * @param {string} outputDir - * @returns {Promise} - */ -async function copy_Assets(globs = [], { - cwd, - outputDir, - ...fastGlobOptions -} = {}) { - const files = await fg(globs, { - onlyFiles: true, - allowEmpty: true, - ...fastGlobOptions, - cwd, - }); - - if (!files.length) return Promise.resolve([]); - - return Promise.all( - files.map(async (file) => { - const output = outputDir ? path.join(dirs.publish, outputDir, file) : path.join(dirs.publish, file); - - if (!fs.existsSync(path.dirname(output))) { - await fsp.mkdir(path.dirname(output), { recursive: true }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} problem making ${relativePrint(path.dirname(output)).yellow}`)); - return Promise.reject(err); - }); - } - - const input = path.join(cwd, file); - - return fsp.copyFile(input, output).then(() => { - return `${"✓".green} ${relativePrint(input).gray} -> ${relativePrint(output).yellow}`; - }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} ${relativePrint(input).gray} -> ${relativePrint(output).yellow}`)); - return Promise.reject(err); - }); - }) - ); -} - -/** - * Copy all site resources - * @returns {Promise} - */ -async function copy_Resources() { - const start = process.hrtime(); - return Promise.all([ - copy_Assets(["**"], { cwd: path.join(dirs.site, "resources") }), - copy_Assets(["index.css"], { - cwd: path.dirname(tokens), - outputDir: "components/tokens/" - }), - copy_Assets(["index.css", "css/**"], { - cwd: path.dirname(tokens), - outputDir: "tokens/" - }), - copy_Assets(["index.js"], { - cwd: path.dirname(loadicons), - outputDir: "js/loadicons/" - }), - copy_Assets(["lunr*.js"], { - cwd: path.dirname(lunrPath), - outputDir: "js/lunr/" - }), - copy_Assets(["prism.css", "prism-dark.css"], { - cwd: path.join(path.dirname(prism), "themes"), - outputDir: "css/prism/" - }), - copy_Assets(["spectrum-icons.svg"], { - cwd: path.dirname(workflowIcons), - outputDir: "img" - }), - copy_Assets(["*.svg"], { - cwd: path.dirname(uiIcons), - outputDir: "img", - }), - copy_Assets(["*.{png,jpg,jpeg,svg,ico}"], { - cwd: path.join(dirs.root, "assets"), - outputDir: "img" - }), - ]).then((results = []) => { - const end = process.hrtime(start); - return [ - "\n\n[copy] 📷 Site resources", - ...results.flat(), - "---------------------", - `processing took ${timeInMs(...end)}ms`, - "", - ]; - }).catch((err) => Promise.reject(err)); -} - -/** - * Fetch the global data for all rendered pages - * @returns {Promise} - */ -async function fetchData_forGlobal({ - nav =[], - docs =[], - store = {}, - ...otherData -} = {}) { - /* We're only going to process this data if we haven't already fetched it */ - const hasNav = nav.length > 0; - const hasDocs = docs.length > 0; - const hasStore = Object.keys(store).length > 0; - - if (!hasNav || !hasDocs || !hasStore) { - const files = await fg("*/metadata/*.yml", { - cwd: dirs.components, - allowEmpty: true, - absolute: true, - }); - - const deprecatedFiles = await fg("deprecated/*/*.yml", { - cwd: dirs.storybook, - allowEmpty: true, - absolute: true - }); - - await Promise.all([...files, ...deprecatedFiles].map(async (file) => { - const { component, pageURL } = await fetchData_forPackage(file); - - if (Object.keys(component).length <= 0) { - return Promise.reject(new Error(`${"✗".red} Could not fetch component data for ${relativePrint(file).yellow}`)); - } - - if (!hasNav) { - nav.push({ - name: component.name, - component: component.id, - hide: component.hide ?? false, - status: component.status, - href: pageURL, - description: component.description, - }); - } - - if (!hasDocs) { - docs.push({ - href: pageURL, - name: component.name, - description: component.description, - }); - } - - if (!hasStore) { - store[pageURL] = { - href: pageURL, - name: component.name, - component: component.id, - description: component.description, - }; - } - })); - } - - return { - util: require("../util"), - nav: nav.sort((a, b) => a.name <= b.name ? -1 : 1), - docs, - store, - ...otherData, - }; -} - -/** - * Fetch & interpret the data in yml for the template - * @param {string} file - * @returns {Promise} - */ -async function fetchData_forPackage(file, data = {}) { - if (!file) return data; - - // Drop package org - const componentName = getPackageFromPath(file); - if (!componentName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${file}`)); - } - - const pkgPath = require.resolve(`@spectrum-css/${componentName}/package.json`); - const dirName = path.dirname(pkgPath); - if (!dirName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${dirName}`)); - } - - const basename = path.basename(file, ".yml"); - - const component = await fsp.readFile(file, "utf-8") - .then(yaml.load) - .catch(err => Promise.reject(err)); - - // Use the example file name - if (!component.id) { - component.id = basename ?? componentName; - } - - if (!component.name) { - component.name = componentName ?? component.id; - } - - const pkg = await fsp.readFile(pkgPath) - .then(JSON.parse) - .catch(err => Promise.reject(err)); - - let npmData; - try { - npmData = await npmFetch.json(pkg.name); - } - catch (err) { - console.log(err); - } - - let releaseDate = "Unreleased"; - if (npmData?.time?.[pkg.version]) { - releaseDate = new Date(npmData.time[pkg.version]) - .toLocaleDateString("en-US", { - year: "numeric", - month: "long", - day: "numeric", - }); - } - else { - console.log(`${"✗".red} Could not determine date of release for ${pkg.name.cyan}@${pkg.version}`); - } - - const releases = [ - { label: "Current version", version: pkg.version, date: releaseDate } - ]; - - if (npmData?.["dist-tags"]) { - for (const [tag, version] of Object.entries(npmData["dist-tags"])) { - if (tag === "beta") continue; - // Spectrum 2 TBD - if (tag === "next") continue; - // Skip adding it to the table if it's the same version as current - if (tag === "latest" && version === pkg.version) continue; - - let label = _.capitalize(tag); - - const date = new Date(npmData.time[version]) - .toLocaleDateString("en-US", { - year: "numeric", - month: "long", - day: "numeric", - }); - - releases.push({ tag, label, version, date }); - } - } - - const dependencyOrder = await getFolderDependencyOrder(dirName); - - return { - ...data, - component, - pageURL: `${basename}.html`, - dependencyOrder: [...new Set([ - ...(dependencyOrder ?? []).map((dep) => dep.split("/").pop()), - componentName, - "icon", - "statuslight", - "link", - "page", - "site", - "typography", - "tooltip", - "sidenav", - "actionbutton", - "button", - "textfield", - "clearbutton", - "search", - "menu", - "fieldlabel", - "picker", - "popover", - "underlay", - "card", - "divider", - "illustratedmessage", - "accordion", - "table", - "inlinealert", - ])], - releases, - releaseDate, - pkg, - }; -} - -/** - * Pass yml data through template to output html - * @param {string} componentName - * @param {string} dirName - * @param {string} file - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function buildPages_compileTemplate(componentName, dirName, file, globalData) { - const data = await fetchData_forPackage(file, globalData); - - // Without a URL, there's nowhere to write this file - if (!data.pageURL) { - return Promise.reject(`${"✗".red} Could not determine a page url for ${relativePrint(file).yellow}.`); - } - - const outputPath = path.join(dirs.publish, data.pageURL); - - const template = path.join(dirs.site, "includes/siteComponent.pug"); - if (!fs.existsSync(template)) { - return Promise.reject(new Error(`${"✗".red} could not find ${relativePrint(template).yellow}`)); - } - - const compiled = pug.renderFile( - path.join(dirs.site, "includes/siteComponent.pug"), - data, - ); - - if (!compiled) { - return Promise.reject(new Error(`${"✗".red} There was a problem compiling the template for ${relativePrint(outputPath).yellow}`)); - } - - if (!fs.existsSync(path.dirname(outputPath))) { - await fsp.mkdir(path.dirname(outputPath), { recursive: true }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} problem making ${relativePrint(path.dirname(outputPath)).yellow}`)); - return Promise.reject(err); - }); - } - - return fsp.writeFile(outputPath, compiled).then(() => { - return `${"✓".green} ${relativePrint(file, { cwd: dirName }).gray} -> ${relativePrint(outputPath).yellow}`; - }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} ${relativePrint(outputPath).gray}`)); - return Promise.reject(err); - }); -} - -/** - * Build yml data into html files for the site - * @param {string} dep - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function buildPages_forPackage(componentName, globalData = {}) { - if (!componentName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${dirName}`)); - } - - const pkgPath = require.resolve(`@spectrum-css/${componentName}/package.json`); - const dirName = path.dirname(pkgPath); - if (!dirName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${dirName}`)); - } - - let dataDir = path.join(dirName, "metadata"); - if (deprecatedComponents.includes(componentName)) { - dataDir = path.join(dirs.storybook, "deprecated", componentName); - } - - const files = await fg("*.yml", { - cwd: dataDir, - allowEmpty: true, - absolute: true, - }); - - return Promise.all(files.map(async (file) => { - return buildPages_compileTemplate(componentName, dirName, file, globalData); - })).then((results = []) => results.flat()); -} - -/** - * Build assets for a single component - * @param {string} componentName - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function build_forPackage(componentName, globalData = {}) { - const start = process.hrtime(); - - const pkgPath = require.resolve(`@spectrum-css/${componentName}/package.json`); - const dirName = path.dirname(pkgPath); - if (!dirName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${dirName}`)); - } - - let storiesDir = path.join(dirName, "stories"); - let outputDir = path.join("components", componentName); - if (deprecatedComponents.includes(componentName)) { - outputDir = path.join("dependencies/@spectrum-css", componentName); - storiesDir = path.join(dirs.storybook, "deprecated", componentName); - } - - /** @todo how do we load dependencies not hosted in the repo? */ - return Promise.all([ - buildPages_forPackage(componentName, globalData), - copy_Assets(["*.css", "themes/*.css", "*.json"], { - cwd: path.join(dirName, "dist"), - outputDir, - allowEmpty: true, - }), - copy_Assets(["*.js"], { - cwd: storiesDir, - ignore: ["*.stories.js"], - outputDir, - }), - copy_Assets(["package.json"], { - cwd: dirName, - outputDir, - }) - ]).then((results = []) => { - const end = process.hrtime(start); - return [ - `[${`@spectrum-css/${componentName}`.cyan}]`, - "---------------------", - ...results.flat(), - "---------------------", - `processing took ${timeInMs(...end)}ms`, - "", - ]; - }); -} - -/** - * Build component pages - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function build_forPackages(globalData = {}) { - const start = process.hrtime(); - const packages = (await fsp.readdir(dirs.components, { withFileTypes: true })) - .filter((dirent) => { - /* looking for directories that have a package.json */ - if (!dirent.isDirectory() && !dirent.isSymbolicLink()) return false; - if (!fs.existsSync(path.join(dirent.path, dirent.name, "package.json"))) return false; - return true; - }) - .map((dirent) => dirent.name); - - // Build pages for all provided dependencies - return Promise.all(packages.map(pkg => build_forPackage(pkg, globalData))) - .then((results = []) => { - const end = process.hrtime(start); - return [ - "[build] 📦 Components", - ...results.flat(), - `total processing took ${timeInMs(...end)}ms`, - "---------------------", - "", - ]; - }) - .catch((err) => Promise.reject(err)); -} - -/** - * Build deprecated component pages - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function build_forDeprecatedPackages(globalData = {}) { - const start = process.hrtime(); - // Build pages for all provided dependencies - return Promise.all(deprecatedComponents.map(pkg => build_forPackage(pkg, globalData))) - .then((results = []) => { - const end = process.hrtime(start); - return [ - "[build] 📦 Deprecated components", - ...results.flat(), - `total processing took ${timeInMs(...end)}ms`, - "---------------------", - "", - ]; - }) - .catch((err) => Promise.reject(err)); -} - -/** - * Build docs pages - * @param {string} file - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function buildPage_forSite(file, globalData = {}) { - const pageURL = `${path.basename(file, ".pug")}.html`; - const outputPath = path.join(dirs.publish, pageURL); - const compiled = pug.renderFile( - path.join(dirs.site, file), - { - ...globalData, - pageURL, - dependencyOrder: [ - "icon", - "statuslight", - "link", - "page", - "site", - "typography", - "tooltip", - "sidenav", - "actionbutton", - "button", - "textfield", - "clearbutton", - "search", - "menu", - "fieldlabel", - "picker", - "popover", - "underlay", - "card", - "divider", - "illustratedmessage", - "accordion", - "table", - ], - pkg: require(path.join(dirs.site, "package.json")), - } - ); - - if (!compiled) { - return Promise.reject(new Error(`${"✗".red} problem compiling the template for ${relativePrint(outputPath).yellow}`)); - } - - if (!fs.existsSync(path.dirname(outputPath))) { - await fsp.mkdir(path.dirname(outputPath), { recursive: true }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} problem making ${relativePrint(path.dirname(outputPath)).yellow}`)); - return Promise.reject(err); - }); - } - - return fsp.writeFile(outputPath, compiled).then(() => { - return `${"✓".green} ${relativePrint(file).gray} -> ${relativePrint(outputPath).yellow}`; - }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} ${relativePrint(outputPath).gray}`)); - return Promise.reject(err); - }); -} - -/** - * Build docs pages - * @param {TemplateData} [globalData={}] - * @returns {Promise} - */ -async function build_forSite(globalData = {}) { - const start = process.hrtime(); - - const files = await fg(["*.pug"], { cwd: dirs.site }); - - return Promise.all(files.map(async (file) => - buildPage_forSite(file, globalData) - )).then((results = []) => { - const end = process.hrtime(start); - return [ - "[build] ✍️ Pages", - ...results.flat(), - "---------------------", - `processing took ${timeInMs(...end)}ms`, - "", - ]; - }).catch((err) => Promise.reject(err)); -} - -/** - * Build docs styles - * @returns {Promise} - */ -async function build_forSiteStyles() { - const start = process.hrtime(); - - const cwd = path.join(dirs.site, "resources/css"); - const files = await fg("*.css", { - cwd, - allowEmpty: true, - }); - - return Promise.all(files.map(async (file) => { - const outputPath = path.join(dirs.publish, "css", file); - const content = await fsp.readFile(path.join(cwd, file)); - return processCSS(content, path.join(cwd, file), outputPath, { cwd: dirs.root }); - })).then((results = []) => { - const end = process.hrtime(start); - return [ - "[build] 🎨 Styles", - ...results.flat(), - "---------------------", - `processing took ${timeInMs(...end)}ms`, - "", - ]; - }).catch((err) => Promise.reject(err)); -} - -/** - * Build index.json - * @param {object[]} docs - * @returns {Promise} - */ -async function build_forIndex(docs) { - const index = lunr(function () { - this.ref("href"); - this.field("name", { boost: 10 }); - this.field("description"); - - docs.forEach(function (doc) { - this.add(doc); - }, this); - }); - - const indexPath = path.join(dirs.publish, "index.json"); - - if (!fs.existsSync(dirs.publish)) { - await fsp.mkdir(dirs.publish, { recursive: true }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} problem making ${relativePrint(path.dirname(dirs.publish)).yellow}`)); - return Promise.reject(err); - }); - } - - return fsp.writeFile(indexPath, JSON.stringify(index, null, 2)).then(() => { - return `${"✓".green} ${relativePrint(indexPath).yellow} written`; - }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} ${relativePrint(indexPath).gray}`)); - return Promise.reject(err); - }); -} - -/** - * Build store.json - * @param {object} store - * @returns {Promise} - */ -async function build_forStore(store) { - const storePath = path.join(dirs.publish, "store.json"); - - if (!fs.existsSync(dirs.publish)) { - await fsp.mkdir(dirs.publish, { recursive: true }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} problem making ${relativePrint(path.dirname(dirs.publish)).yellow}`)); - return Promise.reject(err); - }); - } - - return fsp.writeFile(storePath, JSON.stringify(store, null, 2)).then(() => { - return `${"✓".green} ${relativePrint(storePath).yellow} written`; - }).catch((err) => { - if (!err) return Promise.reject(new Error(`${"✗".red} ${relativePrint(storePath).gray}`)); - return Promise.reject(err); - }); -} - -/** - * Watch styles - * @param {string} file - * @returns {Promise} - */ -async function watch_Styles(file) { - const componentName = getPackageFromPath(file); - if (!componentName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${file}`)); - } - - const processorPath = path.join(dirs.root, "tasks/component-builder.js"); - - if (!fs.existsSync(processorPath)) { - return Promise.reject(new Error(`${"✗".red} No processing function found for ${relativePrint(processorPath)}`)); - } - - await require(processorPath); - - const globalData = await fetchData_forGlobal(); - - return build_forPackage(componentName, globalData); -} - -async function main() { - const globalData = await fetchData_forGlobal(); - return Promise.all([ - build_forSite(globalData), - build_forPackages(globalData), - build_forDeprecatedPackages(globalData), - build_forSiteStyles(), - copy_Resources(), - build_forStore(globalData.store), - build_forIndex(globalData.docs), - ]).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); -} - -module.exports = { - default: main, - build_forPackage, - buildPages_forPackage, - build_forSite, - copy_Resources, - copy_Assets, - watch_Styles, - fetchData_forGlobal, -}; diff --git a/site/tasks/server.js b/site/tasks/server.js deleted file mode 100644 index 4f9fe920b05..00000000000 --- a/site/tasks/server.js +++ /dev/null @@ -1,190 +0,0 @@ -#!/usr/bin/env node - -/*! - * 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 - * - * 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 path = require("path"); - -const browserSync = require("browser-sync"); - -require("colors"); - -const uiIcons = require.resolve("@spectrum-css/ui-icons"); - -const { dirs, getPackageFromPath } = require("./utilities"); - -const { - fetchData_forGlobal, - build_forSite, - build_forPackage, - copy_Assets, - copy_Resources, - watch_Styles, -} = require("./builder"); - -async function main() { - // Create the browser-sync instance - const bs = browserSync.create(); - - // Then spin up the server - return bs.init({ - server: dirs.publish, - startPath: "index.html", - notify: true, - open: true, - port: process.env.PORT ?? 3000, - watchOptions: { - ignoreInitial: true, - }, - files: [ - { - match: ["*/stories/*.js", "*/package.json"], - options: { - cwd: dirs.components, - }, - fn: async (event, file) => { - if (!["add", "change"].includes(event)) return; - - const componentName = getPackageFromPath(path.join(dirs.components, file)); - if (!componentName) { - return Promise.reject(new Error(`${"✗".red} No package found for ${file}`)); - } - - const packagePath = path.join(dirs.components, componentName); - const assetPath = path.relative(packagePath, file); - - return copy_Assets([assetPath], { - cwd: path.join(packagePath, "stories"), - ignore: ["*.stories.js"], - outputDir: path.join("components", componentName), - }).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - { - match: ["*/index.css", "*/themes/*.css"], - options: { - cwd: dirs.components, - ignore: ["*/dist/*"], - }, - fn: async (event, file) => { - if (!["add", "change"].includes(event)) return; - return watch_Styles(path.join(dirs.components, file)).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - { - match: ["*/metadata/*.yml"], - options: { - cwd: dirs.components, - }, - fn: async (event, file) => { - if (!["add", "change"].includes(event)) return; - - const componentName = getPackageFromPath(path.join(dirs.components, file)); - if (!componentName) return; - - const globalData = await fetchData_forGlobal(); - return build_forPackage(componentName, globalData).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - { - match: ["deprecated/*/*.yml"], - options: { - cwd: dirs.storybook, - }, - fn: async (event, file) => { - if (!["add", "change"].includes(event)) return; - - const componentName = getPackageFromPath(path.join(dirs.storybook, file)); - if (!componentName) return; - - const globalData = await fetchData_forGlobal(); - return build_forPackage(componentName, globalData).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - { - match: ["*.pug", "includes/*.pug", "templates/*.pug"], - options: { - cwd: dirs.site, - }, - fn: async (event) => { - if (!["add", "change"].includes(event)) return; - - const globalData = await fetchData_forGlobal(); - return build_forSite(globalData); - }, - }, - { - match: ["resources/**"], - options: { - cwd: dirs.site, - }, - fn: async (event) => { - if (!["add", "change"].includes(event)) return; - - return copy_Resources().then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - { - match: ["**"], - options: { - cwd: path.dirname(uiIcons), - }, - fn: async (event, file) => { - if (!["add", "change"].includes(event)) return; - - return copy_Assets([file], { - cwd: path.dirname(uiIcons), - outputDir: "img", - }).then((results = []) => { - results.flat().forEach(r => console.log(r)); - }).catch((err) => { - if (err) console.log(err.message ?? err); - return Promise.reject(err); - }); - }, - }, - ] - }, (err, bs) => { - if (err) { - console.error(err.message ?? err); - bs.exit(); - } - }); -} - -module.exports = main; diff --git a/site/tasks/utilities.js b/site/tasks/utilities.js deleted file mode 100644 index 1b59204c8c8..00000000000 --- a/site/tasks/utilities.js +++ /dev/null @@ -1,132 +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 - * - * 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 fsp = fs.promises; -const path = require("path"); - -const depSolver = require("dependency-solver"); - -require("colors"); - -/** - * A source of truth for commonly used directories - * @type {object} dirs - * @property {string} dirs.root - * @property {string} dirs.components - * @property {string} dirs.site - * @property {string} dirs.publish - */ -const dirs = { - root: path.join(__dirname, "../.."), - components: path.join(__dirname, "../../components"), - site: path.join(__dirname, "../../site"), - publish: path.join(__dirname, "../../dist"), - storybook: path.join(__dirname, "../../.storybook"), -}; - -/** @type {(string) => string} */ -const relativePrint = (filename, { cwd = dirs.root } = {}) => path.relative(cwd, filename); - -/** - * Given a list of package paths, solve the dependency order - * @param {string[]} packages - package directories - * @return {Promise} The solved dependency order - */ -async function solveDependencies(packages = []) { - const packageDependencies = {}; - - await Promise.all( - packages.map(async (pkg) => { - const { - name, - peerDependencies = {}, - dependencies = {}, - devDependencies = {}, - } = await fsp.readFile(path.join(pkg, "package.json")).then(JSON.parse); - - packageDependencies[name] = [...new Set([ - ...Object.keys(peerDependencies), - ...Object.keys(dependencies), - ...Object.keys(devDependencies), - ])]; - }) - ); - - return depSolver.solve(packageDependencies); -} - -/** - * Get the list of all packages in given directory - * @param {string} packagesDir - directory of packages - * @return {Promise} An array of package names in dependency order - */ -async function getFolderDependencyOrder(packagesDir) { - const packages = []; - - if (fs.existsSync(path.join(packagesDir, "package.json"))) { - packages.push(packagesDir); - } - - // If no packages identified, see if this is a folder containing packages - if (!packages.length) { - (await fsp.readdir(packagesDir, { withFileTypes: true })) - .forEach((dirent) => { - /* looking for directories that have a package.json */ - if (!dirent.isDirectory() || !dirent.isSymbolicLink()) return; - if (fs.existsSync(path.join(dirent.path, dirent.name, "package.json"))) { - packages.push(path.join(dirent.path, dirent.name)); - } - }); - } - - return await solveDependencies(packages); -} - -/** - * Determines the package name from a file path - * @param {string} filePath - * @returns {string} - */ -function getPackageFromPath(filePath = process.cwd()) { - const parts = filePath.split(path.sep); - - // Capture component name from a local or node_modules syntax - if (parts.includes("components") || parts.includes("@spectrum-css")) { - const index = parts.indexOf("components") ?? parts.indexOf("@spectrum-css"); - return parts[index + 1]; - } - - // Capture component name from a local or node_modules syntax - if (parts.includes(".storybook")) { - const index = parts.indexOf(".storybook"); - return parts[index + 2]; - } - - // Check local root-level packages such as ui-icons & tokens - if (parts.includes("ui-icons")) return "ui-icons"; - if (parts.includes("tokens")) return "tokens"; - - // This is a fallback best-guess scenario: - // Split the path from root dir and capture the first folder as the package name - const guessParts = path.relative(dirs.root, filePath).split(path.sep); - return guessParts[0]; -} - -module.exports = { - dirs, - relativePrint, - solveDependencies, - getFolderDependencyOrder, - getPackageFromPath, -}; diff --git a/site/util.js b/site/util.js deleted file mode 100644 index fa3aad6e187..00000000000 --- a/site/util.js +++ /dev/null @@ -1,170 +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 - * - * 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. - */ - -/** @type import('markdown-it') */ -const md = require("markdown-it")({ - html: true, - linkify: false, - typographer: true, - breaks: true, -}); - -function defaultRenderer(tokens, idx, options, env, self) { - return self.renderToken(tokens, idx, options, env, self); -} - -let ruleClassnames = { - link_open: "spectrum-Link", - table_open: "spectrum-Table spectrum-Table--sizeM", - thead_open: "spectrum-Table-head", - tr_open: "spectrum-Table-row", - tbody_open: "spectrum-Table-body", - th_open: "spectrum-Table-headCell", - td_open: "spectrum-Table-cell", - code_inline: "spectrum-Code spectrum-Code--sizeS", - code_block: "spectrum-Code spectrum-Code--sizeS", -}; - -for (let [rule, className] of Object.entries(ruleClassnames)) { - md.renderer.rules[rule] = (function (className) { - const oldRule = md.renderer.rules[rule] ?? defaultRenderer; - return function (tokens, idx, options, env, self) { - tokens[idx].attrPush(["class", className]); - return oldRule(tokens, idx, options, env, self); - }; - })(className); -} - -const code_inline = md.renderer.rules.code_inline ?? defaultRenderer; -md.renderer.rules.code_inline = function (tokens, idx, options, env, self) { - const token = tokens[idx]; - // ~ indicates markup that should be red - if (token.content.substr(0, 1) === "~" && token.content.substr(-1) === "~") { - let aIndex = tokens[idx].attrIndex("class"); - - let className = "spectrum-CSSExample-oldAPI"; - if (aIndex < 0) { - // add class - tokens[idx].attrPush(["class", className]); - } else { - // append class - tokens[idx].attrs[aIndex][1] = - `${tokens[idx].attrs[aIndex][1]} ${className}`; - } - - token.content = token.content.slice(1, -1); - } - return code_inline(tokens, idx, options, env, self); -}; - -const headingMap = { - h1: "spectrum-Heading spectrum-Heading--sizeL", - h2: "spectrum-Heading spectrum-Heading--sizeM", - h3: "spectrum-Heading spectrum-Heading--sizeS", - h4: "spectrum-Heading spectrum-Heading--sizeXS", - h5: "spectrum-Heading spectrum-Heading--sizeXXS", -}; - -md.renderer.rules.heading_open = function (tokens, idx, options, env, self) { - let headingClass = headingMap[tokens[idx].tag]; - if (headingClass) { - tokens[idx].attrPush(["class", headingClass]); - } - return defaultRenderer(tokens, idx, options, env, self); -}; - -/* --------- EXPORTS --------- */ - -/** @type import('markdown-it') */ -exports.markdown = md; - -/** @type import('prismjs').Prism */ -exports.Prism = require("prismjs"); - -exports.prettyPrintJSON = (json) => JSON.stringify(json, null, 2); - -/** @type (status: string) => "negative"|"notice"|"positive"|"neutral" */ -exports.getStatusLightVariant = (status) => - ({ - Deprecated: "negative", - "Beta Contribution": "notice", - Contribution: "notice", - Unverified: "notice", - Canon: "positive", - Verified: "positive", - })[status] ?? "neutral"; - -exports.getSlug = function (name, subName = undefined) { - if (!name) return; - if (subName) name += `-${subName}`; - return name.toLowerCase().replace(/[^a-z\\-]/g, ""); -}; - -exports.populateDNAInfo = function (component) { - const getDNAStatus = function (dnaStatus) { - if (!dnaStatus) dnaStatus = "Contribution"; - - return ( - { - Released: "Canon", - Beta: "Contribution", - Precursor: "Contribution", - }[dnaStatus] ?? dnaStatus - ); - }; - - if (!component.id) component.id = component.name?.toLowerCase(); - if (!component.status) component.status = "Contribution"; - if (!component.slug) component.slug = this.getSlug(component.name); - - component.cssStatus = { - Contribution: "Unverified", - Unverified: "Unverified", - Verified: "Verified", - Deprecated: "Deprecated", - }[component.status]; - - const dnaComponentStatus = component.dnaStatus; - component.dnaStatus = - component.cssStatus === "Deprecated" - ? "Deprecated" - : getDNAStatus(dnaComponentStatus); - - if (!component?.examples) return; - - return Promise.all( - component.examples.map((example) => { - const pageData = {}; - if (typeof example === "string") { - pageData.id = component.name; - pageData.markup = example; - } else { - pageData.id = example.id ?? component.name; - } - - // All examples are verified if the outer component is verified - if (component.status === "Verified") { - pageData.status = "Verified"; - } - - // The example is canon if the component is Canon and Verified - if (component.dnaStatus === "Canon" && component.status === "Verified") { - pageData.dnaStatus = "Canon"; - } - - component.examples[pageData.id] = pageData; - - this.populateDNAInfo(pageData); - }), - ); -}; diff --git a/stylelint.config.js b/stylelint.config.js index b37003afa3b..8079fc73847 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -175,6 +175,8 @@ module.exports = { rules: { "custom-property-pattern": null, "color-function-notation": null, + "spectrum-tools/no-unused-custom-properties": null, + "spectrum-tools/no-unknown-custom-properties": null, }, }, { @@ -187,7 +189,7 @@ module.exports = { }, { /* Validate that the legacy themes don't introduce any new selectors or custom properties */ - files: ["components/*/themes/express.css", "!components/*/themes/spectrum.css"], + files: ["components/*/themes/*.css", "!components/*/themes/spectrum-two.css"], rules: { "spectrum-tools/theme-alignment": true, }, diff --git a/tasks/component-builder.js b/tasks/component-builder.js index d3fca06ecca..473fdf3f371 100644 --- a/tasks/component-builder.js +++ b/tasks/component-builder.js @@ -26,12 +26,11 @@ require("colors"); const { dirs, relativePrint, - bytesToSize, + writeAndReport, getPackageFromPath, cleanFolder, validateComponentName, fetchContent, - copy, } = require("./utilities.js"); /** @@ -107,36 +106,12 @@ async function processCSS( } const promises = [ - fsp - .writeFile(output, formatted) - .then(() => { - const stats = fs.statSync(output); - return `${"✓".green} ${relativePrint(output, { cwd }).padEnd(20, " ").yellow} ${bytesToSize(stats.size).gray}`; - }) - .catch((err) => { - if (!err) return; - console.log( - `${"✗".red} ${relativePrint(output, { cwd }).yellow} not written`, - ); - return Promise.reject(err); - }), + writeAndReport(formatted, output, { cwd }), ]; if (result.map) { promises.push( - fsp - .writeFile(`${output}.map`, result.map.toString().trimStart()) - .then(() => { - const stats = fs.statSync(output); - return `${"✓".green} ${relativePrint(`${output}.map`, { cwd }).padEnd(20, " ").yellow} ${bytesToSize(stats.size).gray}`; - }) - .catch((err) => { - if (!err) return; - console.log( - `${"✗".red} ${relativePrint(`${output}.map`, { cwd }).yellow} not written`, - ); - return Promise.reject(err); - }), + writeAndReport(result.map.toString().trimStart(), `${output}.map`, { cwd }), ); } @@ -177,10 +152,6 @@ async function build({ cwd = process.cwd(), clean = false, componentName } = {}) referencesOnly: false, preserveVariables: true, stripLocalSelectors: false, - }).then(async (reports) => { - // Copy index.css to index-vars.css for backwards compat, log as deprecated - return copy(indexOutputPath, path.join(cwd, "dist/index-vars.css"), { cwd }) - .then(r => [r, ...reports]); }), processCSS( content, @@ -189,9 +160,10 @@ async function build({ cwd = process.cwd(), clean = false, componentName } = {}) { cwd, clean, - splitinatorOptions: { - noFlatVariables: true, - }, + skipMapping: true, + referencesOnly: false, + preserveVariables: false, + stripLocalSelectors: false, }, ), ]); @@ -235,8 +207,6 @@ async function buildThemes({ cwd = process.cwd(), clean = false } = {}) { // Only output the new selectors with the system mappings stripLocalSelectors: true, theme, - map: false, - env: "production", }, ); }); @@ -250,9 +220,10 @@ async function buildThemes({ cwd = process.cwd(), clean = false } = {}) { { cwd, clean, - splitinatorOptions: { - noSelectors: true, - }, + skipMapping: false, + stripLocalSelectors: false, + referencesOnly: true, + shouldCombine: false, map: false, }, ), diff --git a/tasks/utilities.js b/tasks/utilities.js index fb768a2fea0..448cb59f252 100644 --- a/tasks/utilities.js +++ b/tasks/utilities.js @@ -85,9 +85,14 @@ function getAllComponentNames() { // Get a list of all the component names in the components directory that have a package.json file // and a list of all the deprecated components in the storybook directory // then combine and deduplicate the lists to get a full list of all components + let deprecated = []; + if (fs.existsSync(path.join(dirs.storybook, "deprecated"))) { + deprecated = fs.readdirSync(path.join(dirs.storybook, "deprecated")); + } + return [...new Set([ ...fs.readdirSync(dirs.components).filter((file) => fs.existsSync(path.join(dirs.components, file, "package.json"))), - ...fs.readdirSync(path.join(dirs.storybook, "deprecated")), + ...deprecated, ])]; } @@ -184,7 +189,11 @@ async function cleanFolder({ cwd = process.cwd() } = {}) { */ async function fetchContent( globs = [], - { cwd, shouldCombine = false, ...fastGlobOptions } = {}, + { + cwd, + shouldCombine = false, + ...fastGlobOptions + } = {}, ) { const files = await fg(globs, { onlyFiles: true, @@ -204,8 +213,12 @@ async function fetchContent( // Combine the content into 1 file; @todo do this in future using CSS imports if (shouldCombine) { let content = ""; - fileData.forEach((dataset) => { - if (dataset.content) content += "\n\n" + dataset.content; + fileData.forEach((dataset, idx) => { + if (dataset.content) { + if (idx > 0) content += "\n\n"; + content += `/* Sourced from ${relativePrint(dataset.input, { cwd })} */\n`; + content += dataset.content; + } }); return Promise.resolve([ @@ -245,14 +258,35 @@ async function copy(from, to, { cwd, isDeprecated = true } = {}) { }); } + // Check if the input is a file or a directory + const stats = fs.statSync(from); + if (stats.isDirectory()) { + console.log(`Copying directory ${from} to ${to}`); + return fsp + .cp(from, to, { recursive: true, force: true }) + .then(async () => { + // Determine the number of files and the size of the copied files + const stats = await fg(path.join(cwd, "components") + "/**/*", { onlyFiles: true, stats: true }); + return `${"✓".green} ${relativePrint(from, { cwd }).yellow} -> ${relativePrint(to, { cwd }).padEnd(20, " ").yellow} ${`copied ${stats.length >= 0 ? stats.length : "0"} files (${bytesToSize(stats.reduce((acc, details) => acc + details.stats.size, 0))})`.gray}`; + }) + .catch((err) => { + if (!err) return; + console.log( + `${"✗".red} ${relativePrint(from, { cwd }).yellow} could not be copied to ${relativePrint(to, { cwd }).yellow}`, + ); + return Promise.reject(err); + }); + } + const content = await fsp.readFile(from, { encoding: "utf-8" }); if (!content) return; + /** @todo add support for injecting a deprecation notice as a comment after the copyright */ return fsp .writeFile(to, content, { encoding: "utf-8" }) .then( () => - `${"✓".green} ${relativePrint(to, { cwd }).padEnd(20, " ").yellow} ${isDeprecated ? "-- deprecated --".gray : ""}`, + `${"✓".green} ${relativePrint(from, { cwd }).yellow} -> ${relativePrint(to, { cwd }).padEnd(20, " ").yellow} ${(isDeprecated ? "-- deprecated --" : `copied ${stats.size ? `(${bytesToSize(stats.size)})` : ""}`).gray}`, ) .catch((err) => { if (!err) return; diff --git a/tokens/CHANGELOG.md b/tokens/CHANGELOG.md index ede0b71802c..249583e03be 100644 --- a/tokens/CHANGELOG.md +++ b/tokens/CHANGELOG.md @@ -1,5 +1,155 @@ # Change Log +## 15.0.0-s2-foundations.21 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +## 15.0.0-s2-foundations.20 + +### Patch Changes + +- [#3049](https://github.com/adobe/spectrum-css/pull/3049) [`db528ce`](https://github.com/adobe/spectrum-css/commit/db528ce0a6f7d817e6124604014faf9f4accfc1e) Thanks [@TarunAdobe](https://github.com/TarunAdobe)! - updated content color for button primary variant and fixes swc-342 + +## 15.0.0-s2-foundations.19 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6582314`](https://github.com/adobe/spectrum-css/commit/65823145e139caa56f5e73e8a36e73aff37672de) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to the rgb mapping plugin brought back rgb alias's to tokens output + +## 15.0.0-s2-foundations.18 + +### Patch Changes + +- [#3036](https://github.com/adobe/spectrum-css/pull/3036) [`96686a5`](https://github.com/adobe/spectrum-css/commit/96686a56e2532bc747985b40686783ddd9b98221) Thanks [@rise-erpelding](https://github.com/rise-erpelding)! - define undefined rgb tokens + +## 15.0.0-s2-foundations.17 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`1a36744`](https://github.com/adobe/spectrum-css/commit/1a367440d81e87e241c19a6c3e691faa7c0669aa) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-248]: Selected, static black actionbutton content color should be white, not black (updates tokens) + +## 15.0.0-s2-foundations.16 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`fa60db9`](https://github.com/adobe/spectrum-css/commit/fa60db9159edb6b111e4e6c30b05c828224b81e4) Thanks [@pfulton](https://github.com/pfulton)! - Adds `--spectrum-gray-800-rgb` custom token for use in well component. The custom token values reflect the stripped RGB values for light and dark modes of `--spectrum-gray-800` values for S2. + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`1d1cbfc`](https://github.com/adobe/spectrum-css/commit/1d1cbfcc80f8a78784edf9778c0f366be6b0efe6) Thanks [@pfulton](https://github.com/pfulton)! - Adds `--spectrum-blue-800-rgb` for light and `--spectrum-blue-900-rgb` for dark with s2 values to custom tokens to define stripped rgb token used in dropzone dragged background. + +## 15.0.0-s2-foundations.15 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`58a89ea`](https://github.com/adobe/spectrum-css/commit/58a89ea464c387111511271a5f5afce044f11042) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-237] accordion item border height set to 0 for non-first-child elements + +## 15.0.0-s2-foundations.14 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-238] t-shirt-based calc moved out of theme into base css + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`975b4fb`](https://github.com/adobe/spectrum-css/commit/975b4fb631d7203e772c2e879fbec610f933286f) Thanks [@pfulton](https://github.com/pfulton)! - [SWC-235] meter properties moved out of theme and into index.css + +## 15.0.0-s2-foundations.13 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +## 15.0.0-s2-foundations.12 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +## 15.0.0-s2-foundations.11 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4265d20`](https://github.com/adobe/spectrum-css/commit/4265d208b6eb2db923e558fca100b4532b964e45) Thanks [@pfulton](https://github.com/pfulton)! - Fix unsupported variables created in components/actionbutton/themes/spectrum.css + +## 15.0.0-s2-foundations.10 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +## 15.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +## 15.0.0-s2-foundations.8 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`2633985`](https://github.com/adobe/spectrum-css/commit/2633985775ef5a8fad929e275e55e99b75b10959) Thanks [@pfulton](https://github.com/pfulton)! - Update system property tooling (splitinator) to leverage the selector parser + +## 15.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`24a51cc`](https://github.com/adobe/spectrum-css/commit/24a51cc3b682a06a5133c4f5bf72c11a2337ee22) Thanks [@pfulton](https://github.com/pfulton)! - Revert themes asset naming to simplify code review; bug fixes in custom property loading from theme assets + +## 15.0.0-s2-foundations.6 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`130e137`](https://github.com/adobe/spectrum-css/commit/130e1372b223641efe0a3a23c83ff1d01a70bf1d) Thanks [@pfulton](https://github.com/pfulton)! - This update pre-resolves the bundler assets to make them easier to serve as a single entry point. + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`4d88749`](https://github.com/adobe/spectrum-css/commit/4d887492f98f1f505535680bfb0baa06d24460a0) Thanks [@pfulton](https://github.com/pfulton)! - Inject missing tokens into theme files and adjust logic in the splitinator tool to replace nested variable references to the new system mappings + +## 15.0.0-s2-foundations.5 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`de1d39f`](https://github.com/adobe/spectrum-css/commit/de1d39fdedc297032735acf97d0f87b6f2e45f50) Thanks [@pfulton](https://github.com/pfulton)! - Fix to how the system mapped custom property names are generated; adding support for pseudo functions, combinators, and complex selectors + +## 15.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +## 15.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +## 15.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +## 15.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +## 15.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + ## 14.4.0 ### Minor Changes diff --git a/tokens/README.md b/tokens/README.md index 1fea9503458..9bb1c73be0b 100644 --- a/tokens/README.md +++ b/tokens/README.md @@ -4,24 +4,112 @@ This package uses StyleDictionary to build Spectrum core tokens for CSS. -## Output +## Glossary -The output is concatenated into a single `dist/index.css` for use in Spectrum CSS. This entire file should be imported, and the relevant classes should be toggled to swap out core tokens. +- **Core tokens**: The base set of design data that define the system. These are the key-value pairs that are used to build the design system and are sourced from the design team via @adobe/spectrum-tokens. You can find the relevant versioning information in the `package.json` file. +- **Custom properties**: These are CSS variables generated from the core tokens using the StyleDictionary build process. These are used in the CSS base styles to apply the design system to the components in a way that can respond to changes in color, scale, or context. +- **Context**: This terms refers to the design language an application wants to use. Contexts previously supported were Spectrum and Express. The current system supports only Spectrum but has committed to offering backward compatibility through at least December 2024. +- **Color**: This term refers to the color mode. The current system supports light and dark only. The lightest and darkest color modes were deprecated in the final version for **14.x**. +- **Scale**: This term refers to the scale of the design system. The current system supports medium and large scales. The large scale is used for mobile applications and the medium scale is used for desktop applications. +- **System variables**: These are randomly generated variable names (prefixed with `--system`) that are used to map the component-level class styles to the core tokens from the desired context. These are generated by the `postcss-add-theming-layer` plugin as part of the build and should not be relied upon for naming consistency across releases. **Do not attempt to overwrite or extend these variables in your application.** -On the `` element, start with `.spectrum`, add in `.spectrum--light`, then `.spectrum--medium`. To switch to Express, add `.spectrum--express`. +## Backwards compatibility for Spectrum 1 and Express + +Though the token data in this package focus on only the current context (Spectrum 2), our team is committed to offering backwards compatibility for Spectrum 1 and Express through at least December of 2024. + +To this end, we have included the component-level mappings for: + +- Spectrum 1: `dist/css/components/spectrum` +- Express: `dist/css/components/express` +- Spectrum 2: `dist/css/components/spectrum-two` + +Consumers should load only the mappings for the components they are using in their application. This will ensure that the component-level mappings are aligned with the base CSS for each component. Spectrum 1 and Express component mappings should be loaded with the `global-vars.css` and appropriate color and scale assets from the last version of the tokens package: **v14.x**. Loading the Spectrum 1 or Express component-level mappings with the Spectrum 2 global variables will result in incorrect values being applied to the components and will break the desired design for the component. + +## Usage + +The output is concatenated into a single `dist/index.css` for use in a vanilla HTML application. This entire file should be imported, and the relevant classes should be toggled to swap out core tokens. + +On the `` element, start with `.spectrum`, add in `.spectrum--light`, then `.spectrum--medium`. To switch to another context, add `.spectrum--legacy` or `.spectrum--express`. + +For additional guidance on which assets to load, see the architecture section below. + +## Architecture + +All compiled assets are shipped from the `dist` folder. Most of the assets are available in the `dist/css` folder. The `dist/css/components` folder contains the component-level mappings for Spectrum 1, Express, and Spectrum 2. These assets should be loaded with the appropriate global variables and color and scale assets from the last version of the tokens package: **v14.x**. + +### Global core tokens + +- `global-vars.css`: Shared global, unchanging tokens. +- `light-vars.css`: Tokens specific to the light color. +- `dark-vars.css`: Tokens specific to the dark color. +- `medium-vars.css`: Tokens specific to the medium (desktop) scale. +- `large-vars.css`: Tokens specific to the large (mobile) scale. +- `index.css`: The above files rolled up into 1 css file for convenience; best for use in a vanilla HTML application. + +### Components + +Assets in this folder must be loaded together in order for the randomly generated system variables to line up. + +#### `bridge` + +- `index.css`: everything in the folder rolled up into 1 file. +- `.css`: mappings from local component classes (i.e. `.spectrum-ActionBar.spectrum-ActionBar--quiet`) to system variables. + +These assets must be loaded with one of the matching `.css` files for the desired context, i.e., `dist/css/components/express/.css` or `dist/css/components/spectrum/.css` + +#### `spectrum-two` + +- `index.css`: Everything in the folder rolled up into 1 file +- `.css`: + - All properties in these assets are attached to a specific root-level class: `.spectrum`. + - System variables are mapped to global token variables or custom values (i.e. `transparent` or `10px`, values not present in the token system). + +These assets must be loaded with the global token definitions found in this package at the following paths: - `dist/css/global-vars.css` - `dist/css/*-vars.css`: load only those assets relevant to the application context + +#### `express` + +Same contents as the `spectrum-two` folder but instead of `.spectrum`, properties are attached to `.spectrum--express`. + +**Note**: Do not load these assets with the `dist/css/global-vars.css` or `dist/css/*-vars.css` files. Instead, load global token definitions from the last version of the tokens package: **v14.x**: i.e., + +- **@spectrum-css/tokens@v14.x**: `dist/css/global-vars.css` +- **@spectrum-css/tokens@v14.x**: `dist/css/*-vars.css` + +When loading express styles, the following assets must be loaded last or be altered to use higher specificity: + +- **@spectrum-css/tokens@v14.x**: `dist/css/express/global-vars.css` +- **@spectrum-css/tokens@v14.x**: `dist/css/express/*-vars.css` + +#### `spectrum` + +Same contents as the `spectrum-two` folder but instead of `.spectrum`, properties are attached to `.spectrum--legacy`. + +**Note**: Do not load these assets with the `dist/css/global-vars.css` or `dist/css/*-vars.css` files. Instead, load global token definitions from the last version of the tokens package: **v14.x**: i.e., + +- **@spectrum-css/tokens@v14.x**: `dist/css/global-vars.css` +- **@spectrum-css/tokens@v14.x**: `dist/css/*-vars.css` + +When loading legacy spectrum styles, the following assets must be loaded last or be altered to use higher specificity: + +- **@spectrum-css/tokens@v14.x**: `dist/css/spectrum/global-vars.css` +- **@spectrum-css/tokens@v14.x**: `dist/css/spectrum/*-vars.css` ## Overrides and additions -Overrides and additions to core tokens can be added to `custom.css`. +Overrides and additions to core tokens can be added to `custom/*-vars.css`. + +Ensure that you add new values to the appropriate color, or scale file: + +- `global-vars.css` - Shared global, unchanging tokens +- `light-vars.css` - Tokens specific to the light color +- `dark-vars.css` - Tokens specific to the dark color +- `medium-vars.css` - Tokens specific to the medium (desktop) scale +- `large-vars.css` - Tokens specific to the large (mobile) scale + +Values added here will be copied over and concatenated with the custom properties being generated from the core tokens by StyleDictionary. + +## Breaking changes from v14 to v15 -Ensure that you correctly scope any added tokens: +There are no additional contextual folders (i.e., `dist/css/spectrum/`) because this package supports no other theming systems outside of the component token mappings. All global tokens are found in the `dist/css` folder. -- `.spectrum` - Global, unchanging tokens or tokens specific to the Spectrum flavor -- `.spectrum--express` - Tokens specific to the Express flavor -- `.spectrum--lightest` - Tokens specific to the light color stop (soon to be deprecated) -- `.spectrum--light` - Tokens specific to the light color stop -- `.spectrum--dark` - Tokens specific to the dark color stop -- `.spectrum--darkest` - Tokens specific to the darkest color stop -- `.spectrum--medium` - Tokens specific to the medium (desktop) scale -- `.spectrum--large` - Tokens specific to the large (mobile) scale -- `.spectrum--express.spectrum--*` - Tokens specific to the Express flavor for any of the above color stops and scales +For more notes on how the token data has changed, see the [@adobe/spectrum-tokens](https://github.com/adobe/spectrum-tokens/releases) release documentation. diff --git a/tokens/custom-express/custom-dark-vars.css b/tokens/custom-express/custom-dark-vars.css deleted file mode 100644 index 6bd7f14351c..00000000000 --- a/tokens/custom-express/custom-dark-vars.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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--express.spectrum--dark { - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var(--spectrum-indigo-900-rgb); /* var(--spectrum-accent-color-900);*/ - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - - --spectrum-assetcard-border-color-selected: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-indigo-700); -} diff --git a/tokens/custom-express/custom-darkest-vars.css b/tokens/custom-express/custom-darkest-vars.css deleted file mode 100644 index 46714990472..00000000000 --- a/tokens/custom-express/custom-darkest-vars.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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--express.spectrum--darkest { - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var(--spectrum-indigo-900-rgb); /* var(--spectrum-accent-color-900);*/ - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - - --spectrum-assetcard-border-color-selected: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-indigo-700); -} diff --git a/tokens/custom-express/custom-large-vars.css b/tokens/custom-express/custom-large-vars.css deleted file mode 100644 index 70aafbf7133..00000000000 --- a/tokens/custom-express/custom-large-vars.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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--express.spectrum--large { - --spectrum-colorwheel-path: "M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0"; - --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - - --spectrum-dialog-confirm-border-radius: 8px; - - --spectrum-dial-border-radius: 15px; - - --spectrum-assetcard-focus-ring-border-radius: 12px; -} diff --git a/tokens/custom-express/custom-light-vars.css b/tokens/custom-express/custom-light-vars.css deleted file mode 100644 index 6fac2241946..00000000000 --- a/tokens/custom-express/custom-light-vars.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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--express.spectrum--light, -.spectrum--express.spectrum--lightest { - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var(--spectrum-indigo-800-rgb); /* var(--spectrum-accent-color-800);*/ - --spectrum-well-border-color: rgba(var(--spectrum-black-rgb), 0.05); - - - --spectrum-assetcard-border-color-selected: var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-indigo-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-indigo-900); -} diff --git a/tokens/custom-spectrum/custom-dark-vars.css b/tokens/custom-spectrum/custom-dark-vars.css deleted file mode 100644 index 5ce66a79d70..00000000000 --- a/tokens/custom-spectrum/custom-dark-vars.css +++ /dev/null @@ -1,69 +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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--dark { - --spectrum-menu-item-background-color-default: rgba(255, 255, 255, 0); /* --spectrum-gray-900 */ - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-white-200); - - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var( --spectrum-blue-900-rgb); /* var(--spectrum-accent-color-900);*/ - - /* Drop Indicator color rgb */ - --spectrum-dropindicator-color: var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.07); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); -} diff --git a/tokens/custom-spectrum/custom-darkest-vars.css b/tokens/custom-spectrum/custom-darkest-vars.css deleted file mode 100644 index a075af0e6ad..00000000000 --- a/tokens/custom-spectrum/custom-darkest-vars.css +++ /dev/null @@ -1,69 +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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--darkest { - --spectrum-menu-item-background-color-default: rgba(255, 255, 255, 0); /* --spectrum-gray-900 */ - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-white-200); - - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var( --spectrum-blue-900-rgb); /* var(--spectrum-accent-color-900);*/ - - /* Drop Indicator color rgb */ - --spectrum-dropindicator-color: var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-down: rgba(var(--spectrum-white-rgb), 0.15); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.08); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); -} diff --git a/tokens/custom-spectrum/custom-large-vars.css b/tokens/custom-spectrum/custom-large-vars.css deleted file mode 100644 index 2a194858753..00000000000 --- a/tokens/custom-spectrum/custom-large-vars.css +++ /dev/null @@ -1,123 +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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--large { - --spectrum-slider-tick-mark-height: 13px; - --spectrum-slider-ramp-track-height: 20px; - - --spectrum-colorwheel-path: "M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; - --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - --spectrum-colorwheel-colorarea-container-size: 182px; - - --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-secondary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 34px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 42px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 47px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 54px; - - --spectrum-menu-item-checkmark-height-small: 12px; - --spectrum-menu-item-checkmark-height-medium: 14px; - --spectrum-menu-item-checkmark-height-large: 16px; - --spectrum-menu-item-checkmark-height-extra-large: 16px; - - --spectrum-menu-item-checkmark-width-small: 12px; - --spectrum-menu-item-checkmark-width-medium: 14px; - --spectrum-menu-item-checkmark-width-large: 16px; - --spectrum-menu-item-checkmark-width-extra-large: 16px; - - --spectrum-rating-icon-spacing: var(--spectrum-spacing-100); - - --spectrum-button-top-to-text-small: 6px; - --spectrum-button-bottom-to-text-small: 5px; - --spectrum-button-top-to-text-medium: 9px; - --spectrum-button-bottom-to-text-medium: 10px; - --spectrum-button-top-to-text-large: 12px; - --spectrum-button-bottom-to-text-large: 13px; - --spectrum-button-top-to-text-extra-large: 16px; - --spectrum-button-bottom-to-text-extra-large: 17px; - - --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-200); - --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-200); - - --spectrum-alert-dialog-padding: var(--spectrum-spacing-400); - --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-600); - - --spectrum-coach-indicator-gap: 8px; - --spectrum-coach-indicator-ring-diameter: 20px; - --spectrum-coach-indicator-quiet-ring-diameter: 10px; - - --spectrum-coachmark-buttongroup-display: none; - --spectrum-coachmark-buttongroup-mobile-display: flex; - --spectrum-coachmark-menu-display: none; - --spectrum-coachmark-menu-mobile-display: inline-flex; - - --spectrum-well-padding: 20px; - --spectrum-well-margin-top: 5px; - --spectrum-well-min-width: 300px; - --spectrum-well-border-radius: 5px; - - /* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */ - --spectrum-workflow-icon-size-xxl: 40px; - --spectrum-workflow-icon-size-xxs: 15px; - - --spectrum-treeview-item-indentation-medium: 20px; - --spectrum-treeview-item-indentation-small: 15px; - --spectrum-treeview-item-indentation-large: 25px; - --spectrum-treeview-item-indentation-extra-large: 30px; - --spectrum-treeview-indicator-inset-block-start: 6px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 2px; - - --spectrum-dialog-confirm-entry-animation-distance: 25px; - --spectrum-dialog-confirm-hero-height: 160px; - --spectrum-dialog-confirm-border-radius: 5px; - --spectrum-dialog-confirm-title-text-size: 19px; - --spectrum-dialog-confirm-description-text-size: 15px; - --spectrum-dialog-confirm-padding-grid: 24px; - - --spectrum-datepicker-initial-width: 160px; - --spectrum-datepicker-generic-padding: 15px; - --spectrum-datepicker-dash-line-height: 30px; - --spectrum-datepicker-width-quiet-first: 90px; - --spectrum-datepicker-width-quiet-second: 20px; - --spectrum-datepicker-datetime-width-first: 45px; - --spectrum-datepicker-invalid-icon-to-button: 10px; - --spectrum-datepicker-invalid-icon-to-button-quiet: 9px; - --spectrum-datepicker-input-datetime-width: 30px; - - --spectrum-pagination-textfield-width: 60px; - --spectrum-pagination-item-inline-spacing: 6px; - - --spectrum-dial-border-radius: 20px; - --spectrum-dial-handle-position: 10px; - --spectrum-dial-handle-block-margin: 20px; - --spectrum-dial-handle-inline-margin: 20px; - --spectrum-dial-controls-margin: 10px; - --spectrum-dial-label-gap-y: 6px; - --spectrum-dial-label-container-top-to-text: 5px; - - --spectrum-assetcard-focus-ring-border-radius: 9px; - --spectrum-assetcard-selectionindicator-margin: 15px; - --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xxs); - --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xxs); - --spectrum-assetcard-content-font-size: var(--spectrum-body-size-xs); - - --spectrum-tooltip-animation-distance: 5px; - - --spectrum-ui-icon-medium-display: none; - --spectrum-ui-icon-large-display: block; -} diff --git a/tokens/custom-spectrum/custom-light-vars.css b/tokens/custom-spectrum/custom-light-vars.css deleted file mode 100644 index c525a38385e..00000000000 --- a/tokens/custom-spectrum/custom-light-vars.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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--light, -.spectrum--lightest { - --spectrum-menu-item-background-color-default: rgba(0, 0, 0, 0); /* --spectrum-gray-900 */ - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-black-200); - - /* Drop Zone background color rgb */ - --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-800-rgb); /* var(--spectrum-accent-color-800);*/ - - /* Drop Indicator color rgb */ - --spectrum-dropindicator-color: var(--spectrum-blue-800); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-black-200); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-800); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-white); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-800); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: var(--spectrum-black); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-800); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.06); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-900); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-900); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-900); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-1100); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-1100); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-900); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-800); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb),0.2); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb),0.1); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-800); -} diff --git a/tokens/custom-spectrum/custom-medium-vars.css b/tokens/custom-spectrum/custom-medium-vars.css deleted file mode 100644 index 6a4e836d157..00000000000 --- a/tokens/custom-spectrum/custom-medium-vars.css +++ /dev/null @@ -1,122 +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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ - -.spectrum--medium { - --spectrum-slider-tick-mark-height: 10px; - --spectrum-slider-ramp-track-height: 16px; - - --spectrum-colorwheel-path: "M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; - --spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - --spectrum-colorwheel-colorarea-container-size: 144px; - - --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-primary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 28px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 32px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 38px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 45px; - - --spectrum-menu-item-checkmark-height-small: 10px; - --spectrum-menu-item-checkmark-height-medium: 10px; - --spectrum-menu-item-checkmark-height-large: 12px; - --spectrum-menu-item-checkmark-height-extra-large: 14px; - - --spectrum-menu-item-checkmark-width-small: 10px; - --spectrum-menu-item-checkmark-width-medium: 10px; - --spectrum-menu-item-checkmark-width-large: 12px; - --spectrum-menu-item-checkmark-width-extra-large: 14px; - - --spectrum-rating-icon-spacing: var(--spectrum-spacing-75); - - --spectrum-button-top-to-text-small: 5px; - --spectrum-button-bottom-to-text-small: 4px; - --spectrum-button-top-to-text-medium: 7px; - --spectrum-button-bottom-to-text-medium: 8px; - --spectrum-button-top-to-text-large: 10px; - --spectrum-button-bottom-to-text-large: 10px; - --spectrum-button-top-to-text-extra-large: 13px; - --spectrum-button-bottom-to-text-extra-large: 13px; - - --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-100); - --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-100); - - --spectrum-alert-dialog-padding: var(--spectrum-spacing-500); - --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-700); - - --spectrum-coach-indicator-gap: 6px; - --spectrum-coach-indicator-ring-diameter: var(--spectrum-spacing-300); - --spectrum-coach-indicator-quiet-ring-diameter: var(--spectrum-spacing-100); - - --spectrum-coachmark-buttongroup-display: flex; - --spectrum-coachmark-buttongroup-mobile-display: none; - --spectrum-coachmark-menu-display: inline-flex; - --spectrum-coachmark-menu-mobile-display: none; - --spectrum-well-padding: var(--spectrum-spacing-300); - --spectrum-well-margin-top: var(--spectrum-spacing-75); - --spectrum-well-min-width: 240px; - --spectrum-well-border-radius: var(--spectrum-spacing-75); - - /* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */ - --spectrum-workflow-icon-size-xxl: 32px; - --spectrum-workflow-icon-size-xxs: 12px; - - --spectrum-treeview-item-indentation-medium: var(--spectrum-spacing-300); - --spectrum-treeview-item-indentation-small: var(--spectrum-spacing-200); - --spectrum-treeview-item-indentation-large: 20px; - --spectrum-treeview-item-indentation-extra-large: var(--spectrum-spacing-400); - --spectrum-treeview-indicator-inset-block-start: 5px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 0px; - - --spectrum-dialog-confirm-entry-animation-distance: 20px; - --spectrum-dialog-confirm-hero-height: 128px; - --spectrum-dialog-confirm-border-radius: 4px; - --spectrum-dialog-confirm-title-text-size: 18px; - --spectrum-dialog-confirm-description-text-size: 14px; - --spectrum-dialog-confirm-padding-grid: 40px; - - --spectrum-datepicker-initial-width: 128px; - --spectrum-datepicker-generic-padding: var(--spectrum-spacing-200); - --spectrum-datepicker-dash-line-height: 24px; - --spectrum-datepicker-width-quiet-first: 72px; - --spectrum-datepicker-width-quiet-second: 16px; - --spectrum-datepicker-datetime-width-first: 36px; - --spectrum-datepicker-invalid-icon-to-button: 8px; - --spectrum-datepicker-invalid-icon-to-button-quiet: 7px; - --spectrum-datepicker-input-datetime-width: var(--spectrum-spacing-400); - - --spectrum-pagination-textfield-width: var(--spectrum-spacing-700); - --spectrum-pagination-item-inline-spacing: 5px; - - --spectrum-dial-border-radius: 16px; - --spectrum-dial-handle-position: 8px; - --spectrum-dial-handle-block-margin: 16px; - --spectrum-dial-handle-inline-margin: 16px; - --spectrum-dial-controls-margin: 8px; - --spectrum-dial-label-gap-y: 5px; - --spectrum-dial-label-container-top-to-text: 4px; - - --spectrum-assetcard-focus-ring-border-radius: 8px; - --spectrum-assetcard-selectionindicator-margin: 12px; - --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xs); - --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xs); - --spectrum-assetcard-content-font-size: var(--spectrum-body-size-s); - - --spectrum-tooltip-animation-distance: var(--spectrum-spacing-75); - - --spectrum-ui-icon-medium-display: block; - --spectrum-ui-icon-large-display: none; -} diff --git a/tokens/custom-spectrum/custom-vars.css b/tokens/custom-spectrum/custom-vars.css deleted file mode 100644 index 58993aa24d3..00000000000 --- a/tokens/custom-spectrum/custom-vars.css +++ /dev/null @@ -1,55 +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 - * - * 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. - */ - -/* This file contains overrides and additions to core tokens */ -.spectrum { - --system: spectrum; -} - -.spectrum { - --spectrum-animation-linear: cubic-bezier(0, 0, 1, 1); - --spectrum-animation-duration-0: 0ms; - --spectrum-animation-duration-100: 130ms; - --spectrum-animation-duration-200: 160ms; - --spectrum-animation-duration-300: 190ms; - --spectrum-animation-duration-400: 220ms; - --spectrum-animation-duration-500: 250ms; - --spectrum-animation-duration-600: 300ms; - --spectrum-animation-duration-700: 350ms; - --spectrum-animation-duration-800: 400ms; - --spectrum-animation-duration-900: 450ms; - --spectrum-animation-duration-1000: 500ms; - --spectrum-animation-duration-2000: 1000ms; - --spectrum-animation-duration-4000: 2000ms; - --spectrum-animation-duration-6000: 3000ms; - --spectrum-animation-ease-in-out: cubic-bezier(.45, 0, .40, 1); - --spectrum-animation-ease-in: cubic-bezier(.50, 0, 1, 1); - --spectrum-animation-ease-out: cubic-bezier(0, 0, 0.40, 1); - --spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1); - - - --spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif; - --spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack); - - --spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), 'Source Serif Pro', Georgia, serif; - --spectrum-serif-font: var(--spectrum-serif-font-family-stack); - - --spectrum-code-font-family-stack: 'Source Code Pro', Monaco, monospace; - - --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); -} diff --git a/tokens/custom/dark-vars.css b/tokens/custom/dark-vars.css new file mode 100644 index 00000000000..259d7d609a1 --- /dev/null +++ b/tokens/custom/dark-vars.css @@ -0,0 +1,62 @@ +/*! + * 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 + * + * 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. + */ + +/* This file contains overrides and additions to core tokens */ + +.spectrum--dark { + /* Drop Zone background color rgb */ + --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-900-rgb); /* var(--spectrum-accent-color-900);*/ + + /* Drop Indicator color rgb */ + --spectrum-dropindicator-color: var(--spectrum-blue-700); + + --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.07); + --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-white-200); + --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.07); + --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); + + --spectrum-badge-label-icon-color-primary: var(--spectrum-black); + + --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); + + --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); + + --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.07); + --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + + --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); + --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); + --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); + --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); + + --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); + --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); + --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); + --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); + + --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); + --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); + --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); + --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); + --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); + + --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); + + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-500-rgb); +} diff --git a/tokens/custom/global-vars.css b/tokens/custom/global-vars.css new file mode 100644 index 00000000000..016e17e404b --- /dev/null +++ b/tokens/custom/global-vars.css @@ -0,0 +1,52 @@ +/*! + * 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 + * + * 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. + */ + +/* This file contains overrides and additions to core tokens */ +.spectrum { + --system: spectrum; + + --spectrum-animation-linear: cubic-bezier(0, 0, 1, 1); + --spectrum-animation-duration-0: 0ms; + --spectrum-animation-duration-100: 130ms; + --spectrum-animation-duration-200: 160ms; + --spectrum-animation-duration-300: 190ms; + --spectrum-animation-duration-400: 220ms; + --spectrum-animation-duration-500: 250ms; + --spectrum-animation-duration-600: 300ms; + --spectrum-animation-duration-700: 350ms; + --spectrum-animation-duration-800: 400ms; + --spectrum-animation-duration-900: 450ms; + --spectrum-animation-duration-1000: 500ms; + --spectrum-animation-duration-2000: 1000ms; + --spectrum-animation-duration-4000: 2000ms; + --spectrum-animation-duration-6000: 3000ms; + --spectrum-animation-ease-in-out: cubic-bezier(0.45, 0, 0.4, 1); + --spectrum-animation-ease-in: cubic-bezier(0.5, 0, 1, 1); + --spectrum-animation-ease-out: cubic-bezier(0, 0, 0.4, 1); + --spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1); + + --spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack); + + --spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif; + --spectrum-serif-font: var(--spectrum-serif-font-family-stack); + + --spectrum-code-font-family-stack: "Source Code Pro", Monaco, monospace; + + --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); +} diff --git a/tokens/custom/large-vars.css b/tokens/custom/large-vars.css new file mode 100644 index 00000000000..ccb88b7163f --- /dev/null +++ b/tokens/custom/large-vars.css @@ -0,0 +1,120 @@ +/*! + * 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 + * + * 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. + */ + +/* This file contains overrides and additions to core tokens */ + +.spectrum--large { + --spectrum-slider-tick-mark-height: 13px; + --spectrum-slider-ramp-track-height: 20px; + + --spectrum-colorwheel-path: "M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; + --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; + --spectrum-colorwheel-colorarea-container-size: 182px; + + --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-secondary); + + --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 34px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 42px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 47px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 54px; + + --spectrum-menu-item-checkmark-height-small: 12px; + --spectrum-menu-item-checkmark-height-medium: 14px; + --spectrum-menu-item-checkmark-height-large: 16px; + --spectrum-menu-item-checkmark-height-extra-large: 16px; + + --spectrum-menu-item-checkmark-width-small: 12px; + --spectrum-menu-item-checkmark-width-medium: 14px; + --spectrum-menu-item-checkmark-width-large: 16px; + --spectrum-menu-item-checkmark-width-extra-large: 16px; + + --spectrum-rating-icon-spacing: var(--spectrum-spacing-100); + + --spectrum-button-top-to-text-small: 6px; + --spectrum-button-bottom-to-text-small: 5px; + --spectrum-button-top-to-text-medium: 9px; + --spectrum-button-bottom-to-text-medium: 10px; + --spectrum-button-top-to-text-large: 12px; + --spectrum-button-bottom-to-text-large: 13px; + --spectrum-button-top-to-text-extra-large: 16px; + --spectrum-button-bottom-to-text-extra-large: 17px; + + --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-200); + --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-200); + --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-200); + --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-200); + + --spectrum-alert-dialog-padding: var(--spectrum-spacing-400); + --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-600); + + --spectrum-coach-indicator-gap: 8px; + --spectrum-coach-indicator-ring-diameter: 20px; + --spectrum-coach-indicator-quiet-ring-diameter: 10px; + + --spectrum-coachmark-buttongroup-display: none; + --spectrum-coachmark-buttongroup-mobile-display: flex; + --spectrum-coachmark-menu-display: none; + --spectrum-coachmark-menu-mobile-display: inline-flex; + + /* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */ + --spectrum-workflow-icon-size-xxl: 40px; + --spectrum-workflow-icon-size-xxs: 15px; + + --spectrum-treeview-item-indentation-medium: 20px; + --spectrum-treeview-item-indentation-small: 15px; + --spectrum-treeview-item-indentation-large: 25px; + --spectrum-treeview-item-indentation-extra-large: 30px; + --spectrum-treeview-indicator-inset-block-start: 6px; + --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 2px; + + --spectrum-dialog-confirm-entry-animation-distance: 25px; + --spectrum-dialog-confirm-hero-height: 160px; + --spectrum-dialog-confirm-border-radius: 5px; + --spectrum-dialog-confirm-title-text-size: 19px; + --spectrum-dialog-confirm-description-text-size: 15px; + --spectrum-dialog-confirm-padding-grid: 24px; + + --spectrum-datepicker-initial-width: 160px; + --spectrum-datepicker-generic-padding: 15px; + --spectrum-datepicker-dash-line-height: 30px; + --spectrum-datepicker-width-quiet-first: 90px; + --spectrum-datepicker-width-quiet-second: 20px; + --spectrum-datepicker-datetime-width-first: 45px; + --spectrum-datepicker-invalid-icon-to-button: 10px; + --spectrum-datepicker-invalid-icon-to-button-quiet: 9px; + --spectrum-datepicker-input-datetime-width: 30px; + + --spectrum-pagination-textfield-width: 60px; + --spectrum-pagination-item-inline-spacing: 6px; + + --spectrum-dial-border-radius: 20px; + --spectrum-dial-handle-position: 10px; + --spectrum-dial-handle-block-margin: 20px; + --spectrum-dial-handle-inline-margin: 20px; + --spectrum-dial-controls-margin: 10px; + --spectrum-dial-label-gap-y: 6px; + --spectrum-dial-label-container-top-to-text: 5px; + + --spectrum-assetcard-focus-ring-border-radius: 9px; + --spectrum-assetcard-selectionindicator-margin: 15px; + --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xxs); + --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xxs); + --spectrum-assetcard-content-font-size: var(--spectrum-body-size-xs); + + --spectrum-tooltip-animation-distance: 5px; + + --spectrum-ui-icon-medium-display: none; + --spectrum-ui-icon-large-display: block; + + --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-200); +} diff --git a/tokens/custom/light-vars.css b/tokens/custom/light-vars.css new file mode 100644 index 00000000000..d44c5e6d613 --- /dev/null +++ b/tokens/custom/light-vars.css @@ -0,0 +1,61 @@ +/*! + * 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 + * + * 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. + */ + +/* This file contains overrides and additions to core tokens */ +.spectrum--light { + /* Drop Zone background color rgb */ + --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-800-rgb); /* var(--spectrum-accent-color-800);*/ + + /* Drop Indicator color rgb */ + --spectrum-dropindicator-color: var(--spectrum-blue-800); + + --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-black-rgb), 0.06); + --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-black-200); + --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-black-rgb), 0.06); + --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-800); + + --spectrum-badge-label-icon-color-primary: var(--spectrum-white); + + --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-800); + + --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-800); + + --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.06); + --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + + --spectrum-logic-button-and-background-color: var(--spectrum-blue-900); + --spectrum-logic-button-and-border-color: var(--spectrum-blue-900); + --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); + --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); + + --spectrum-logic-button-or-background-color: var(--spectrum-magenta-900); + --spectrum-logic-button-or-border-color: var(--spectrum-magenta-900); + --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-1100); + --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-1100); + + --spectrum-assetcard-border-color-selected: var(--spectrum-blue-900); + --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-900); + --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-1000); + --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-900); + --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-800); + + --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-800); + + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); +} diff --git a/tokens/custom/medium-vars.css b/tokens/custom/medium-vars.css new file mode 100644 index 00000000000..3cb67515cb0 --- /dev/null +++ b/tokens/custom/medium-vars.css @@ -0,0 +1,120 @@ +/*! + * 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 + * + * 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. + */ + +/* This file contains overrides and additions to core tokens */ + +.spectrum--medium { + --spectrum-slider-tick-mark-height: 10px; + --spectrum-slider-ramp-track-height: 16px; + + --spectrum-colorwheel-path: "M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; + --spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; + --spectrum-colorwheel-colorarea-container-size: 144px; + + --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-primary); + + --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 28px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 32px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 38px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 45px; + + --spectrum-menu-item-checkmark-height-small: 10px; + --spectrum-menu-item-checkmark-height-medium: 10px; + --spectrum-menu-item-checkmark-height-large: 12px; + --spectrum-menu-item-checkmark-height-extra-large: 14px; + + --spectrum-menu-item-checkmark-width-small: 10px; + --spectrum-menu-item-checkmark-width-medium: 10px; + --spectrum-menu-item-checkmark-width-large: 12px; + --spectrum-menu-item-checkmark-width-extra-large: 14px; + + --spectrum-rating-icon-spacing: var(--spectrum-spacing-75); + + --spectrum-button-top-to-text-small: 5px; + --spectrum-button-bottom-to-text-small: 4px; + --spectrum-button-top-to-text-medium: 7px; + --spectrum-button-bottom-to-text-medium: 8px; + --spectrum-button-top-to-text-large: 10px; + --spectrum-button-bottom-to-text-large: 10px; + --spectrum-button-top-to-text-extra-large: 13px; + --spectrum-button-bottom-to-text-extra-large: 13px; + + --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-100); + --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-100); + --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-100); + --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-100); + + --spectrum-alert-dialog-padding: var(--spectrum-spacing-500); + --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-700); + + --spectrum-coach-indicator-gap: 6px; + --spectrum-coach-indicator-ring-diameter: var(--spectrum-spacing-300); + --spectrum-coach-indicator-quiet-ring-diameter: var(--spectrum-spacing-100); + + --spectrum-coachmark-buttongroup-display: flex; + --spectrum-coachmark-buttongroup-mobile-display: none; + --spectrum-coachmark-menu-display: inline-flex; + --spectrum-coachmark-menu-mobile-display: none; + + /* XXL and XXS icon sizes are not within the design spec and are planned to be deprecated in Spectrum 2. */ + --spectrum-workflow-icon-size-xxl: 32px; + --spectrum-workflow-icon-size-xxs: 12px; + + --spectrum-treeview-item-indentation-medium: var(--spectrum-spacing-300); + --spectrum-treeview-item-indentation-small: var(--spectrum-spacing-200); + --spectrum-treeview-item-indentation-large: 20px; + --spectrum-treeview-item-indentation-extra-large: var(--spectrum-spacing-400); + --spectrum-treeview-indicator-inset-block-start: 5px; + --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 0px; + + --spectrum-dialog-confirm-entry-animation-distance: 20px; + --spectrum-dialog-confirm-hero-height: 128px; + --spectrum-dialog-confirm-border-radius: 4px; + --spectrum-dialog-confirm-title-text-size: 18px; + --spectrum-dialog-confirm-description-text-size: 14px; + --spectrum-dialog-confirm-padding-grid: 40px; + + --spectrum-datepicker-initial-width: 128px; + --spectrum-datepicker-generic-padding: var(--spectrum-spacing-200); + --spectrum-datepicker-dash-line-height: 24px; + --spectrum-datepicker-width-quiet-first: 72px; + --spectrum-datepicker-width-quiet-second: 16px; + --spectrum-datepicker-datetime-width-first: 36px; + --spectrum-datepicker-invalid-icon-to-button: 8px; + --spectrum-datepicker-invalid-icon-to-button-quiet: 7px; + --spectrum-datepicker-input-datetime-width: var(--spectrum-spacing-400); + + --spectrum-pagination-textfield-width: var(--spectrum-spacing-700); + --spectrum-pagination-item-inline-spacing: 5px; + + --spectrum-dial-border-radius: 16px; + --spectrum-dial-handle-position: 8px; + --spectrum-dial-handle-block-margin: 16px; + --spectrum-dial-handle-inline-margin: 16px; + --spectrum-dial-controls-margin: 8px; + --spectrum-dial-label-gap-y: 5px; + --spectrum-dial-label-container-top-to-text: 4px; + + --spectrum-assetcard-focus-ring-border-radius: 8px; + --spectrum-assetcard-selectionindicator-margin: 12px; + --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xs); + --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xs); + --spectrum-assetcard-content-font-size: var(--spectrum-body-size-s); + + --spectrum-tooltip-animation-distance: var(--spectrum-spacing-75); + + --spectrum-ui-icon-medium-display: block; + --spectrum-ui-icon-large-display: none; + + --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-100); +} diff --git a/tokens/dist/css/components/bridge/actionbutton.css b/tokens/dist/css/components/bridge/actionbutton.css deleted file mode 100644 index f2d9d05193c..00000000000 --- a/tokens/dist/css/components/bridge/actionbutton.css +++ /dev/null @@ -1,120 +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 - * - * 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-ActionButton { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-content-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-quiet-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-quiet-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-quiet-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-quiet-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-quiet-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-quiet-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-quiet-border-color-disabled); -} -.spectrum-ActionButton.is-selected { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-selected-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-selected-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-selected-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-selected-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-selected-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-selected-border-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticBlack.spectrum-ActionButton--quiet { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-focus); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticWhite.spectrum-ActionButton--quiet { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-focus); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticBlack { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticblack-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticblack-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticblack-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticblack-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticblack-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticblack-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticblack-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticblack-border-color-focus); - --spectrum-actionbutton-content-color-default: var(--system-spectrum-actionbutton-staticblack-content-color-default); - --spectrum-actionbutton-content-color-hover: var(--system-spectrum-actionbutton-staticblack-content-color-hover); - --spectrum-actionbutton-content-color-down: var(--system-spectrum-actionbutton-staticblack-content-color-down); - --spectrum-actionbutton-content-color-focus: var(--system-spectrum-actionbutton-staticblack-content-color-focus); - --spectrum-actionbutton-focus-indicator-color: var(--system-spectrum-actionbutton-staticblack-focus-indicator-color); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticblack-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-staticblack-content-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticBlack.is-selected { - --mod-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default); - --mod-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover); - --mod-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down); - --mod-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus)); - --mod-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled); - --mod-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticwhite-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticwhite-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticwhite-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticwhite-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticwhite-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticwhite-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticwhite-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticwhite-border-color-focus); - --spectrum-actionbutton-content-color-default: var(--system-spectrum-actionbutton-staticwhite-content-color-default); - --spectrum-actionbutton-content-color-hover: var(--system-spectrum-actionbutton-staticwhite-content-color-hover); - --spectrum-actionbutton-content-color-down: var(--system-spectrum-actionbutton-staticwhite-content-color-down); - --spectrum-actionbutton-content-color-focus: var(--system-spectrum-actionbutton-staticwhite-content-color-focus); - --spectrum-actionbutton-focus-indicator-color: var(--system-spectrum-actionbutton-staticwhite-focus-indicator-color); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticwhite-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-staticwhite-content-color-disabled); -} -.spectrum-ActionButton.spectrum-ActionButton--staticWhite.is-selected { - --mod-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default); - --mod-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover); - --mod-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down); - --mod-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus)); - --mod-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled); - --mod-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled); -} diff --git a/tokens/dist/css/components/bridge/button.css b/tokens/dist/css/components/bridge/button.css deleted file mode 100644 index 66b284f738a..00000000000 --- a/tokens/dist/css/components/bridge/button.css +++ /dev/null @@ -1,370 +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 - * - * 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-Button { - --spectrum-button-background-color-default: var(--system-spectrum-button-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-content-color-disabled); -} -.spectrum-Button.spectrum-Button--accent { - --spectrum-button-background-color-default: var(--system-spectrum-button-accent-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-accent-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-accent-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-accent-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-accent-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-accent-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-accent-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-accent-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-accent-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-accent-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-accent-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-accent-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-accent-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-accent-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-accent-content-color-disabled); -} -.spectrum-Button.spectrum-Button--accent.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-accent-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-accent-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-accent-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-accent-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-accent-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-accent-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-accent-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-accent-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-accent-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-accent-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-accent-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-accent-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-accent-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-accent-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-accent-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--negative { - --spectrum-button-background-color-default: var(--system-spectrum-button-negative-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-negative-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-negative-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-negative-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-negative-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-negative-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-negative-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-negative-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-negative-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-negative-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-negative-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-negative-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-negative-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-negative-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-negative-content-color-disabled); -} -.spectrum-Button.spectrum-Button--negative.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-negative-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-negative-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-negative-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-negative-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-negative-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-negative-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-negative-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-negative-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-negative-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-negative-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-negative-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-negative-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-negative-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-negative-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-negative-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--primary { - --spectrum-button-background-color-default: var(--system-spectrum-button-primary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-primary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-primary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-primary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-primary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-primary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-primary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-primary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-primary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-primary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-primary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-primary-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-primary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-primary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-primary-content-color-disabled); -} -.spectrum-Button.spectrum-Button--primary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-primary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-primary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-primary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-primary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-primary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-primary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-primary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-primary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-primary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-primary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-primary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-primary-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-primary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-primary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-primary-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-secondary-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-secondary-content-color-disabled); -} -.spectrum-Button.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-secondary-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-secondary-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--quiet { - --spectrum-button-background-color-default: var(--system-spectrum-button-quiet-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-quiet-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-quiet-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-quiet-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-quiet-border-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-quiet-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-quiet-border-color-disabled); -} -.spectrum-Button.is-selected { - --spectrum-button-background-color-default: var(--system-spectrum-button-selected-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-selected-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-selected-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-selected-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-selected-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-selected-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-selected-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-selected-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-selected-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-selected-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-selected-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-selected-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-selected-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-selected-border-color-disabled); -} -.spectrum-Button.is-selected.spectrum-Button--emphasized { - --spectrum-button-background-color-default: var(--system-spectrum-button-selected-emphasized-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-selected-emphasized-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-selected-emphasized-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-selected-emphasized-background-color-focus); -} -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--quiet { - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-quiet-border-color-focus); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-quiet-border-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--quiet { - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-quiet-border-color-focus); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-quiet-border-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite.is-selected { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-selected-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-selected-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-selected-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-selected-background-color-focus); - --spectrum-button-content-color-default: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-default)); - --spectrum-button-content-color-hover: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-hover)); - --spectrum-button-content-color-down: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-down)); - --spectrum-button-content-color-focus: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-focus)); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-selected-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-selected-border-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-secondary-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-secondary-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-secondary-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticBlack { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-outline-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-secondary-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-secondary-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-secondary-content-color-disabled); -} -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-secondary-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-content-color-disabled); -} diff --git a/tokens/dist/css/components/bridge/checkbox.css b/tokens/dist/css/components/bridge/checkbox.css deleted file mode 100644 index 6cf4b556466..00000000000 --- a/tokens/dist/css/components/bridge/checkbox.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 - * - * 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-Checkbox { - --spectrum-checkbox-control-color-default: var(--system-spectrum-checkbox-control-color-default); - --spectrum-checkbox-control-color-hover: var(--system-spectrum-checkbox-control-color-hover); - --spectrum-checkbox-control-color-down: var(--system-spectrum-checkbox-control-color-down); - --spectrum-checkbox-control-color-focus: var(--system-spectrum-checkbox-control-color-focus); -} diff --git a/tokens/dist/css/components/bridge/clearbutton.css b/tokens/dist/css/components/bridge/clearbutton.css deleted file mode 100644 index 328ab865712..00000000000 --- a/tokens/dist/css/components/bridge/clearbutton.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 - * - * 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-ClearButton { - --spectrum-clear-button-background-color: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color); - --spectrum-clear-button-background-color-hover: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-hover); - --spectrum-clear-button-background-color-down: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-down); - --spectrum-clear-button-background-color-key-focus: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus); -} diff --git a/tokens/dist/css/components/bridge/closebutton.css b/tokens/dist/css/components/bridge/closebutton.css deleted file mode 100644 index 48dc92e67ff..00000000000 --- a/tokens/dist/css/components/bridge/closebutton.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 - * - * 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-CloseButton { - --spectrum-closebutton-background-color-default: var(--system-spectrum-closebutton-background-color-default); - --spectrum-closebutton-background-color-hover: var(--system-spectrum-closebutton-background-color-hover); - --spectrum-closebutton-background-color-down: var(--system-spectrum-closebutton-background-color-down); - --spectrum-closebutton-background-color-focus: var(--system-spectrum-closebutton-background-color-focus); -} diff --git a/tokens/dist/css/components/bridge/combobox.css b/tokens/dist/css/components/bridge/combobox.css deleted file mode 100644 index 719a0cbaee6..00000000000 --- a/tokens/dist/css/components/bridge/combobox.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 - * - * 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-Combobox { - --spectrum-combobox-border-color-default: var(--system-spectrum-combobox-border-color-default); - --spectrum-combobox-border-color-hover: var(--system-spectrum-combobox-border-color-hover); - --spectrum-combobox-border-color-focus: var(--system-spectrum-combobox-border-color-focus); - --spectrum-combobox-border-color-focus-hover: var(--system-spectrum-combobox-border-color-focus-hover); - --spectrum-combobox-border-color-key-focus: var(--system-spectrum-combobox-border-color-key-focus); -} diff --git a/tokens/dist/css/components/bridge/datepicker.css b/tokens/dist/css/components/bridge/datepicker.css deleted file mode 100644 index 6cea6bf980b..00000000000 --- a/tokens/dist/css/components/bridge/datepicker.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 - * - * 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-DatePicker { - --spectrum-datepicker-initial-height: var(--system-spectrum-datepicker-initial-height); -} diff --git a/tokens/dist/css/components/bridge/index.css b/tokens/dist/css/components/bridge/index.css index 06fd00e48e2..7fcd90d363c 100644 --- a/tokens/dist/css/components/bridge/index.css +++ b/tokens/dist/css/components/bridge/index.css @@ -11,753 +11,1938 @@ * governing permissions and limitations under the License. */ -.spectrum-ActionButton { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-content-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--quiet { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-quiet-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-quiet-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-quiet-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-quiet-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-quiet-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-quiet-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-quiet-border-color-disabled); -} - -.spectrum-ActionButton.is-selected { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-selected-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-selected-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-selected-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-selected-border-color-focus); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-selected-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-selected-border-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticBlack.spectrum-ActionButton--quiet { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-focus); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-quiet-border-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticWhite.spectrum-ActionButton--quiet { - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-focus); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticBlack { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticblack-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticblack-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticblack-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticblack-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticblack-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticblack-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticblack-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticblack-border-color-focus); - --spectrum-actionbutton-content-color-default: var(--system-spectrum-actionbutton-staticblack-content-color-default); - --spectrum-actionbutton-content-color-hover: var(--system-spectrum-actionbutton-staticblack-content-color-hover); - --spectrum-actionbutton-content-color-down: var(--system-spectrum-actionbutton-staticblack-content-color-down); - --spectrum-actionbutton-content-color-focus: var(--system-spectrum-actionbutton-staticblack-content-color-focus); - --spectrum-actionbutton-focus-indicator-color: var(--system-spectrum-actionbutton-staticblack-focus-indicator-color); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticblack-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-staticblack-content-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticBlack.is-selected { - --mod-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default); - --mod-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover); - --mod-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down); - --mod-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus)); - --mod-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled); - --mod-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticWhite { - --spectrum-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticwhite-background-color-default); - --spectrum-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticwhite-background-color-hover); - --spectrum-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticwhite-background-color-down); - --spectrum-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticwhite-background-color-focus); - --spectrum-actionbutton-border-color-default: var(--system-spectrum-actionbutton-staticwhite-border-color-default); - --spectrum-actionbutton-border-color-hover: var(--system-spectrum-actionbutton-staticwhite-border-color-hover); - --spectrum-actionbutton-border-color-down: var(--system-spectrum-actionbutton-staticwhite-border-color-down); - --spectrum-actionbutton-border-color-focus: var(--system-spectrum-actionbutton-staticwhite-border-color-focus); - --spectrum-actionbutton-content-color-default: var(--system-spectrum-actionbutton-staticwhite-content-color-default); - --spectrum-actionbutton-content-color-hover: var(--system-spectrum-actionbutton-staticwhite-content-color-hover); - --spectrum-actionbutton-content-color-down: var(--system-spectrum-actionbutton-staticwhite-content-color-down); - --spectrum-actionbutton-content-color-focus: var(--system-spectrum-actionbutton-staticwhite-content-color-focus); - --spectrum-actionbutton-focus-indicator-color: var(--system-spectrum-actionbutton-staticwhite-focus-indicator-color); - --spectrum-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticwhite-background-color-disabled); - --spectrum-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-border-color-disabled); - --spectrum-actionbutton-content-color-disabled: var(--system-spectrum-actionbutton-staticwhite-content-color-disabled); -} - -.spectrum-ActionButton.spectrum-ActionButton--staticWhite.is-selected { - --mod-actionbutton-background-color-default: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default); - --mod-actionbutton-background-color-hover: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover); - --mod-actionbutton-background-color-down: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down); - --mod-actionbutton-background-color-focus: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus); - --mod-actionbutton-content-color-default: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default)); - --mod-actionbutton-content-color-hover: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover)); - --mod-actionbutton-content-color-down: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down)); - --mod-actionbutton-content-color-focus: var(--mod-actionbutton-static-content-color, var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus)); - --mod-actionbutton-background-color-disabled: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled); - --mod-actionbutton-border-color-disabled: var(--system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled); -} - -.spectrum-ActionGroup { - --spectrum-actiongroup-gap-size-compact: var(--system-spectrum-actiongroup-gap-size-compact); - --spectrum-actiongroup-horizontal-spacing-compact: var(--system-spectrum-actiongroup-horizontal-spacing-compact); - --spectrum-actiongroup-vertical-spacing-compact: var(--system-spectrum-actiongroup-vertical-spacing-compact); -} - -.spectrum-AlertBanner { - --spectrum-alert-banner-netural-background: var(--system-spectrum-alertbanner-spectrum-alert-banner-netural-background); -} - -.spectrum-AssetCard { - --spectrum-assetcard-overlay-background-color: var(--system-spectrum-assetcard-overlay-background-color); -} - -.spectrum-Button { - --spectrum-button-background-color-default: var(--system-spectrum-button-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--accent { - --spectrum-button-background-color-default: var(--system-spectrum-button-accent-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-accent-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-accent-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-accent-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-accent-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-accent-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-accent-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-accent-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-accent-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-accent-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-accent-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-accent-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-accent-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-accent-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-accent-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--accent.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-accent-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-accent-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-accent-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-accent-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-accent-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-accent-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-accent-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-accent-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-accent-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-accent-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-accent-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-accent-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-accent-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-accent-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-accent-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--negative { - --spectrum-button-background-color-default: var(--system-spectrum-button-negative-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-negative-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-negative-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-negative-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-negative-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-negative-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-negative-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-negative-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-negative-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-negative-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-negative-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-negative-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-negative-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-negative-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-negative-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--negative.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-negative-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-negative-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-negative-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-negative-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-negative-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-negative-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-negative-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-negative-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-negative-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-negative-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-negative-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-negative-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-negative-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-negative-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-negative-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--primary { - --spectrum-button-background-color-default: var(--system-spectrum-button-primary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-primary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-primary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-primary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-primary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-primary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-primary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-primary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-primary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-primary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-primary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-primary-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-primary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-primary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-primary-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--primary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-primary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-primary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-primary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-primary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-primary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-primary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-primary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-primary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-primary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-primary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-primary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-primary-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-primary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-primary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-primary-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-secondary-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-secondary-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-secondary-outline-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-secondary-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--quiet { - --spectrum-button-background-color-default: var(--system-spectrum-button-quiet-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-quiet-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-quiet-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-quiet-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-quiet-border-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-quiet-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-quiet-border-color-disabled); -} - -.spectrum-Button.is-selected { - --spectrum-button-background-color-default: var(--system-spectrum-button-selected-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-selected-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-selected-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-selected-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-selected-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-selected-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-selected-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-selected-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-selected-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-selected-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-selected-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-selected-content-color-focus); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-selected-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-selected-border-color-disabled); -} - -.spectrum-Button.is-selected.spectrum-Button--emphasized { - --spectrum-button-background-color-default: var(--system-spectrum-button-selected-emphasized-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-selected-emphasized-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-selected-emphasized-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-selected-emphasized-background-color-focus); -} - -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--quiet { - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-quiet-border-color-focus); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-quiet-border-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--quiet { - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-quiet-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-quiet-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-quiet-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-quiet-border-color-focus); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-quiet-border-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite.is-selected { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-selected-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-selected-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-selected-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-selected-background-color-focus); - --spectrum-button-content-color-default: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-default)); - --spectrum-button-content-color-hover: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-hover)); - --spectrum-button-content-color-down: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-down)); - --spectrum-button-content-color-focus: var(--mod-button-static-content-color, var(--system-spectrum-button-staticwhite-selected-content-color-focus)); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-selected-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-selected-border-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-secondary-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-secondary-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-secondary-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticWhite.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticwhite-secondary-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticBlack { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-outline-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-secondary-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-secondary-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-secondary-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-secondary-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-secondary-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-secondary-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-secondary-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-secondary-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-secondary-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-secondary-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-secondary-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-secondary-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-secondary-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-secondary-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-secondary-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-secondary-content-color-disabled); -} - -.spectrum-Button.spectrum-Button--staticBlack.spectrum-Button--secondary.spectrum-Button--outline { - --spectrum-button-background-color-default: var(--system-spectrum-button-staticblack-secondary-outline-background-color-default); - --spectrum-button-background-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-background-color-hover); - --spectrum-button-background-color-down: var(--system-spectrum-button-staticblack-secondary-outline-background-color-down); - --spectrum-button-background-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-background-color-focus); - --spectrum-button-border-color-default: var(--system-spectrum-button-staticblack-secondary-outline-border-color-default); - --spectrum-button-border-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-border-color-hover); - --spectrum-button-border-color-down: var(--system-spectrum-button-staticblack-secondary-outline-border-color-down); - --spectrum-button-border-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-border-color-focus); - --spectrum-button-content-color-default: var(--system-spectrum-button-staticblack-secondary-outline-content-color-default); - --spectrum-button-content-color-hover: var(--system-spectrum-button-staticblack-secondary-outline-content-color-hover); - --spectrum-button-content-color-down: var(--system-spectrum-button-staticblack-secondary-outline-content-color-down); - --spectrum-button-content-color-focus: var(--system-spectrum-button-staticblack-secondary-outline-content-color-focus); - --spectrum-button-focus-indicator-color: var(--system-spectrum-button-staticblack-secondary-outline-focus-indicator-color); - --spectrum-button-background-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-background-color-disabled); - --spectrum-button-border-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-border-color-disabled); - --spectrum-button-content-color-disabled: var(--system-spectrum-button-staticblack-secondary-outline-content-color-disabled); -} - -.spectrum-Checkbox { - --spectrum-checkbox-control-color-default: var(--system-spectrum-checkbox-control-color-default); - --spectrum-checkbox-control-color-hover: var(--system-spectrum-checkbox-control-color-hover); - --spectrum-checkbox-control-color-down: var(--system-spectrum-checkbox-control-color-down); - --spectrum-checkbox-control-color-focus: var(--system-spectrum-checkbox-control-color-focus); -} - -.spectrum-ClearButton { - --spectrum-clear-button-background-color: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color); - --spectrum-clear-button-background-color-hover: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-hover); - --spectrum-clear-button-background-color-down: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-down); - --spectrum-clear-button-background-color-key-focus: var(--system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus); -} - -.spectrum-CloseButton { - --spectrum-closebutton-background-color-default: var(--system-spectrum-closebutton-background-color-default); - --spectrum-closebutton-background-color-hover: var(--system-spectrum-closebutton-background-color-hover); - --spectrum-closebutton-background-color-down: var(--system-spectrum-closebutton-background-color-down); - --spectrum-closebutton-background-color-focus: var(--system-spectrum-closebutton-background-color-focus); -} - -.spectrum-Combobox { - --spectrum-combobox-border-color-default: var(--system-spectrum-combobox-border-color-default); - --spectrum-combobox-border-color-hover: var(--system-spectrum-combobox-border-color-hover); - --spectrum-combobox-border-color-focus: var(--system-spectrum-combobox-border-color-focus); - --spectrum-combobox-border-color-focus-hover: var(--system-spectrum-combobox-border-color-focus-hover); - --spectrum-combobox-border-color-key-focus: var(--system-spectrum-combobox-border-color-key-focus); -} - -.spectrum-DatePicker { - --spectrum-datepicker-initial-height: var(--system-spectrum-datepicker-initial-height); -} - -.spectrum-InfieldButton { - --spectrum-infield-button-border-width: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-width); - --spectrum-infield-button-border-color: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-color); - --spectrum-infield-button-border-radius: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-radius); - --spectrum-infield-button-border-radius-reset: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset); - --spectrum-infield-button-stacked-top-border-radius-start-start: var(--system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start); - --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start); - --spectrum-infield-button-background-color: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color); - --spectrum-infield-button-background-color-hover: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover); - --spectrum-infield-button-background-color-down: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-down); - --spectrum-infield-button-background-color-key-focus: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus); -} - -.spectrum-Picker { - --spectrum-picker-background-color-default: var(--system-spectrum-picker-background-color-default); - --spectrum-picker-background-color-default-open: var(--system-spectrum-picker-background-color-default-open); - --spectrum-picker-background-color-active: var(--system-spectrum-picker-background-color-active); - --spectrum-picker-background-color-hover: var(--system-spectrum-picker-background-color-hover); - --spectrum-picker-background-color-hover-open: var(--system-spectrum-picker-background-color-hover-open); - --spectrum-picker-background-color-key-focus: var(--system-spectrum-picker-background-color-key-focus); - --spectrum-picker-border-color-default: var(--system-spectrum-picker-border-color-default); - --spectrum-picker-border-color-default-open: var(--system-spectrum-picker-border-color-default-open); - --spectrum-picker-border-color-hover: var(--system-spectrum-picker-border-color-hover); - --spectrum-picker-border-color-hover-open: var(--system-spectrum-picker-border-color-hover-open); - --spectrum-picker-border-color-active: var(--system-spectrum-picker-border-color-active); - --spectrum-picker-border-color-key-focus: var(--system-spectrum-picker-border-color-key-focus); - --spectrum-picker-border-width: var(--system-spectrum-picker-border-width); -} - -.spectrum-PickerButton { - --spectrum-picker-button-background-color: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color); - --spectrum-picker-button-background-color-hover: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover); - --spectrum-picker-button-background-color-down: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-down); - --spectrum-picker-button-background-color-key-focus: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus); - --spectrum-picker-button-border-color: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-color); - --spectrum-picker-button-border-radius: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius); - --spectrum-picker-button-border-radius-rounded-sided: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided); - --spectrum-picker-button-border-radius-sided: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided); - --spectrum-picker-button-border-width: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-width); -} - -.spectrum-Popover { - --spectrum-popover-border-width: var(--system-spectrum-popover-border-width); -} - -.spectrum-Radio { - --spectrum-radio-button-border-color-default: var(--system-spectrum-radio-button-border-color-default); - --spectrum-radio-button-border-color-hover: var(--system-spectrum-radio-button-border-color-hover); - --spectrum-radio-button-border-color-down: var(--system-spectrum-radio-button-border-color-down); - --spectrum-radio-button-border-color-focus: var(--system-spectrum-radio-button-border-color-focus); -} - -.spectrum-Radio--emphasized { - --spectrum-radio-button-checked-border-color-default: var(--system-spectrum-radio-emphasized-button-checked-border-color-default); - --spectrum-radio-button-checked-border-color-hover: var(--system-spectrum-radio-emphasized-button-checked-border-color-hover); - --spectrum-radio-button-checked-border-color-down: var(--system-spectrum-radio-emphasized-button-checked-border-color-down); - --spectrum-radio-button-checked-border-color-focus: var(--system-spectrum-radio-emphasized-button-checked-border-color-focus); -} - -.spectrum-Rating { - --spectrum-rating-icon-color-default: var(--system-spectrum-rating-icon-color-default); - --spectrum-rating-icon-color-hover: var(--system-spectrum-rating-icon-color-hover); - --spectrum-rating-icon-color-down: var(--system-spectrum-rating-icon-color-down); - --spectrum-rating-icon-color-key-focus: var(--system-spectrum-rating-icon-color-key-focus); -} - -.spectrum-Search { - --spectrum-search-border-radius: var(--system-spectrum-search-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-edge-to-visual); - --spectrum-search-border-color-default: var(--system-spectrum-search-border-color-default); - --spectrum-search-border-color-hover: var(--system-spectrum-search-border-color-hover); - --spectrum-search-border-color-focus: var(--system-spectrum-search-border-color-focus); - --spectrum-search-border-color-focus-hover: var(--system-spectrum-search-border-color-focus-hover); - --spectrum-search-border-color-key-focus: var(--system-spectrum-search-border-color-key-focus); -} - -.spectrum-Search--sizeS { - --spectrum-search-border-radius: var(--system-spectrum-search-sizes-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizes-edge-to-visual); -} - -.spectrum-Search--sizeM { - --spectrum-search-border-radius: var(--system-spectrum-search-sizem-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizem-edge-to-visual); -} - -.spectrum-Search--sizeL { - --spectrum-search-border-radius: var(--system-spectrum-search-sizel-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizel-edge-to-visual); -} - -.spectrum-Search--sizeXL { - --spectrum-search-border-radius: var(--system-spectrum-search-sizexl-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizexl-edge-to-visual); -} - -.spectrum-Slider { - --spectrum-slider-track-color: var(--system-spectrum-slider-track-color); - --spectrum-slider-track-fill-color: var(--system-spectrum-slider-track-fill-color); - --spectrum-slider-ramp-track-color: var(--system-spectrum-slider-ramp-track-color); - --spectrum-slider-ramp-track-color-disabled: var(--system-spectrum-slider-ramp-track-color-disabled); - --spectrum-slider-handle-background-color: var(--system-spectrum-slider-handle-background-color); - --spectrum-slider-handle-background-color-disabled: var(--system-spectrum-slider-handle-background-color-disabled); - --spectrum-slider-ramp-handle-background-color: var(--system-spectrum-slider-ramp-handle-background-color); - --spectrum-slider-ticks-handle-background-color: var(--system-spectrum-slider-ticks-handle-background-color); - --spectrum-slider-handle-border-color: var(--system-spectrum-slider-handle-border-color); - --spectrum-slider-handle-disabled-background-color: var(--system-spectrum-slider-handle-disabled-background-color); - --spectrum-slider-tick-mark-color: var(--system-spectrum-slider-tick-mark-color); - --spectrum-slider-handle-border-color-hover: var(--system-spectrum-slider-handle-border-color-hover); - --spectrum-slider-handle-border-color-down: var(--system-spectrum-slider-handle-border-color-down); - --spectrum-slider-handle-border-color-key-focus: var(--system-spectrum-slider-handle-border-color-key-focus); - --spectrum-slider-handle-focus-ring-color-key-focus: var(--system-spectrum-slider-handle-focus-ring-color-key-focus); -} - -.spectrum-Stepper { - --spectrum-stepper-border-width: var(--system-spectrum-stepper-border-width); - --spectrum-stepper-buttons-border-style: var(--system-spectrum-stepper-buttons-border-style); - --spectrum-stepper-buttons-border-width: var(--system-spectrum-stepper-buttons-border-width); - --spectrum-stepper-buttons-border-color: var(--system-spectrum-stepper-buttons-border-color); - --spectrum-stepper-buttons-background-color: var(--system-spectrum-stepper-buttons-background-color); - --spectrum-stepper-buttons-border-color-hover: var(--system-spectrum-stepper-buttons-border-color-hover); - --spectrum-stepper-buttons-border-color-focus: var(--system-spectrum-stepper-buttons-border-color-focus); - --spectrum-stepper-buttons-border-color-keyboard-focus: var(--system-spectrum-stepper-buttons-border-color-keyboard-focus); - --spectrum-stepper-button-border-radius-reset: var(--system-spectrum-stepper-button-border-radius-reset); - --spectrum-stepper-button-border-width: var(--system-spectrum-stepper-button-border-width); - --spectrum-stepper-border-color: var(--system-spectrum-stepper-border-color); - --spectrum-stepper-border-color-hover: var(--system-spectrum-stepper-border-color-hover); - --spectrum-stepper-border-color-focus: var(--system-spectrum-stepper-border-color-focus); - --spectrum-stepper-border-color-focus-hover: var(--system-spectrum-stepper-border-color-focus-hover); - --spectrum-stepper-border-color-keyboard-focus: var(--system-spectrum-stepper-border-color-keyboard-focus); - --spectrum-stepper-border-color-invalid: var(--system-spectrum-stepper-border-color-invalid); - --spectrum-stepper-border-color-focus-invalid: var(--system-spectrum-stepper-border-color-focus-invalid); - --spectrum-stepper-border-color-focus-hover-invalid: var(--system-spectrum-stepper-border-color-focus-hover-invalid); - --spectrum-stepper-border-color-keyboard-focus-invalid: var(--system-spectrum-stepper-border-color-keyboard-focus-invalid); - --spectrum-stepper-button-background-color-focus: var(--system-spectrum-stepper-button-background-color-focus); - --spectrum-stepper-button-background-color-keyboard-focus: var(--system-spectrum-stepper-button-background-color-keyboard-focus); -} - -.spectrum-Stepper.is-disabled { - --spectrum-stepper-buttons-background-color: var(--system-spectrum-stepper-disabled-buttons-background-color); - --spectrum-stepper-buttons-border-width: var(--system-spectrum-stepper-disabled-buttons-border-width); -} - -.spectrum-Switch { - --spectrum-switch-handle-border-color-default: var(--system-spectrum-switch-handle-border-color-default); - --spectrum-switch-handle-border-color-hover: var(--system-spectrum-switch-handle-border-color-hover); - --spectrum-switch-handle-border-color-down: var(--system-spectrum-switch-handle-border-color-down); - --spectrum-switch-handle-border-color-focus: var(--system-spectrum-switch-handle-border-color-focus); - --spectrum-switch-handle-border-color-selected-default: var(--system-spectrum-switch-handle-border-color-selected-default); - --spectrum-switch-handle-border-color-selected-hover: var(--system-spectrum-switch-handle-border-color-selected-hover); - --spectrum-switch-handle-border-color-selected-down: var(--system-spectrum-switch-handle-border-color-selected-down); - --spectrum-switch-handle-border-color-selected-focus: var(--system-spectrum-switch-handle-border-color-selected-focus); -} - -.spectrum-Tabs { - --spectrum-tabs-font-weight: var(--system-spectrum-tabs-font-weight); -} - -.spectrum-Tag { - --spectrum-tag-border-color: var(--system-spectrum-tag-border-color); - --spectrum-tag-border-color-hover: var(--system-spectrum-tag-border-color-hover); - --spectrum-tag-border-color-active: var(--system-spectrum-tag-border-color-active); - --spectrum-tag-border-color-focus: var(--system-spectrum-tag-border-color-focus); - --spectrum-tag-size-small-corner-radius: var(--system-spectrum-tag-size-small-corner-radius); - --spectrum-tag-size-medium-corner-radius: var(--system-spectrum-tag-size-medium-corner-radius); - --spectrum-tag-size-large-corner-radius: var(--system-spectrum-tag-size-large-corner-radius); - --spectrum-tag-background-color: var(--system-spectrum-tag-background-color); - --spectrum-tag-background-color-hover: var(--system-spectrum-tag-background-color-hover); - --spectrum-tag-background-color-active: var(--system-spectrum-tag-background-color-active); - --spectrum-tag-background-color-focus: var(--system-spectrum-tag-background-color-focus); - --spectrum-tag-content-color: var(--system-spectrum-tag-content-color); - --spectrum-tag-content-color-hover: var(--system-spectrum-tag-content-color-hover); - --spectrum-tag-content-color-active: var(--system-spectrum-tag-content-color-active); - --spectrum-tag-content-color-focus: var(--system-spectrum-tag-content-color-focus); - --spectrum-tag-border-color-selected: var(--system-spectrum-tag-border-color-selected); - --spectrum-tag-border-color-selected-hover: var(--system-spectrum-tag-border-color-selected-hover); - --spectrum-tag-border-color-selected-active: var(--system-spectrum-tag-border-color-selected-active); - --spectrum-tag-border-color-selected-focus: var(--system-spectrum-tag-border-color-selected-focus); - --spectrum-tag-border-color-disabled: var(--system-spectrum-tag-border-color-disabled); - --spectrum-tag-background-color-disabled: var(--system-spectrum-tag-background-color-disabled); - --spectrum-tag-size-small-spacing-inline-start: var(--system-spectrum-tag-size-small-spacing-inline-start); - --spectrum-tag-size-small-label-spacing-inline-end: var(--system-spectrum-tag-size-small-label-spacing-inline-end); - --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-small-clear-button-spacing-inline-end); - --spectrum-tag-size-medium-spacing-inline-start: var(--system-spectrum-tag-size-medium-spacing-inline-start); - --spectrum-tag-size-medium-label-spacing-inline-end: var(--system-spectrum-tag-size-medium-label-spacing-inline-end); - --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-medium-clear-button-spacing-inline-end); - --spectrum-tag-size-large-spacing-inline-start: var(--system-spectrum-tag-size-large-spacing-inline-start); - --spectrum-tag-size-large-label-spacing-inline-end: var(--system-spectrum-tag-size-large-label-spacing-inline-end); - --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-large-clear-button-spacing-inline-end); -} - -.spectrum-Textfield { - --spectrum-textfield-border-color: var(--system-spectrum-textfield-border-color); - --spectrum-textfield-border-color-hover: var(--system-spectrum-textfield-border-color-hover); - --spectrum-textfield-border-color-focus: var(--system-spectrum-textfield-border-color-focus); - --spectrum-textfield-border-color-focus-hover: var(--system-spectrum-textfield-border-color-focus-hover); - --spectrum-textfield-border-color-keyboard-focus: var(--system-spectrum-textfield-border-color-keyboard-focus); - --spectrum-textfield-border-width: var(--system-spectrum-textfield-border-width); -} - -.spectrum-Toast { - --spectrum-toast-background-color-default: var(--system-spectrum-toast-background-color-default); -} - -.spectrum-Tooltip { - --spectrum-tooltip-backgound-color-default-neutral: var(--system-spectrum-tooltip-backgound-color-default-neutral); +.spectrum.spectrum--express { + --spectrum-accordion-item-height: var(--system-accordion-compact-item-height); + --spectrum-accordion-item-width: var(--system-accordion-item-width); + --spectrum-accordion-disclosure-indicator-height: var(--system-accordion-disclosure-indicator-height); + --spectrum-accordion-disclosure-indicator-to-text-space: var(--system-accordion-disclosure-indicator-to-text-space); + --spectrum-accordion-edge-to-disclosure-indicator-space: var(--system-accordion-edge-to-disclosure-indicator-space); + --spectrum-accordion-edge-to-text-space: var(--system-accordion-edge-to-text-space); + --spectrum-accordion-item-header-top-to-text-space: var(--system-accordion-spacious-item-header-top-to-text-space); + --spectrum-accordion-item-header-bottom-to-text-space: var(--system-accordion-spacious-item-header-bottom-to-text-space); + --spectrum-accordion-focus-indicator-gap: var(--system-accordion-focus-indicator-gap); + --spectrum-accordion-focus-indicator-thickness: var(--system-accordion-focus-indicator-thickness); + --spectrum-accordion-corner-radius: var(--system-accordion-corner-radius); + --spectrum-accordion-item-content-area-top-to-content: var(--system-accordion-item-content-area-top-to-content); + --spectrum-accordion-item-content-area-bottom-to-content: var(--system-accordion-item-content-area-bottom-to-content); + --spectrum-accordion-component-edge-to-text: var(--system-accordion-component-edge-to-text); + --spectrum-accordion-item-header-font: var(--system-accordion-item-header-font); + --spectrum-accordion-item-header-font-weight: var(--system-accordion-item-header-font-weight); + --spectrum-accordion-item-header-font-style: var(--system-accordion-item-header-font-style); + --spectrum-accordion-item-header-font-size: var(--system-accordion-item-header-font-size); + --spectrum-accordion-item-header-line-height: var(--system-accordion-spacious-item-header-line-height); + --spectrum-accordion-item-content-font: var(--system-accordion-item-content-font); + --spectrum-accordion-item-content-font-weight: var(--system-accordion-item-content-font-weight); + --spectrum-accordion-item-content-font-style: var(--system-accordion-item-content-font-style); + --spectrum-accordion-item-content-font-size: var(--system-accordion-item-content-font-size); + --spectrum-accordion-item-content-line-height: var(--system-accordion-item-content-line-height); + --spectrum-accordion-background-color-default: var(--system-accordion-background-color-default); + --spectrum-accordion-background-color-hover: var(--system-accordion-background-color-hover); + --spectrum-accordion-background-color-down: var(--system-accordion-background-color-down); + --spectrum-accordion-background-color-key-focus: var(--system-accordion-background-color-key-focus); + --spectrum-accordion-item-header-color-default: var(--system-accordion-item-header-color-default); + --spectrum-accordion-item-header-color-hover: var(--system-accordion-item-header-color-hover); + --spectrum-accordion-item-header-color-down: var(--system-accordion-item-header-color-down); + --spectrum-accordion-item-header-color-key-focus: var(--system-accordion-item-header-color-key-focus); + --spectrum-accordion-item-header-disabled-color: var(--system-accordion-item-header-disabled-color); + --spectrum-accordion-item-content-disabled-color: var(--system-accordion-item-content-disabled-color); + --spectrum-accordion-item-content-color: var(--system-accordion-item-content-color); + --spectrum-accordion-focus-indicator-color: var(--system-accordion-focus-indicator-color); + --spectrum-accordion-divider-color: var(--system-accordion-divider-color); + --spectrum-accordion-item-header-line-height-cjk: var(--system-accordion-item-header-line-height-cjk); + --spectrum-accordion-item-content-line-height-cjk: var(--system-accordion-item-content-line-height-cjk); + --spectrum-accordion-item-height-size-s: var(--system-accordion-compact-item-height-size-s); + --spectrum-accordion-disclosure-indicator-height-size-s: var(--system-accordion-disclosure-indicator-height-size-s); + --spectrum-accordion-component-edge-to-text-size-s: var(--system-accordion-component-edge-to-text-size-s); + --spectrum-accordion-item-header-font-size-size-s: var(--system-accordion-item-header-font-size-size-s); + --spectrum-accordion-item-content-font-size-size-s: var(--system-accordion-item-content-font-size-size-s); + --spectrum-accordion-item-header-top-to-text-space-size-s: var(--system-accordion-spacious-item-header-top-to-text-space-size-s); + --spectrum-accordion-item-header-bottom-to-text-space-size-s: var(--system-accordion-spacious-item-header-bottom-to-text-space-size-s); + --spectrum-accordion-item-height-size-l: var(--system-accordion-compact-item-height-size-l); + --spectrum-accordion-disclosure-indicator-height-size-l: var(--system-accordion-disclosure-indicator-height-size-l); + --spectrum-accordion-component-edge-to-text-size-l: var(--system-accordion-component-edge-to-text-size-l); + --spectrum-accordion-item-header-font-size-size-l: var(--system-accordion-item-header-font-size-size-l); + --spectrum-accordion-item-content-font-size-size-l: var(--system-accordion-item-content-font-size-size-l); + --spectrum-accordion-item-header-top-to-text-space-size-l: var(--system-accordion-spacious-item-header-top-to-text-space-size-l); + --spectrum-accordion-item-header-bottom-to-text-space-size-l: var(--system-accordion-spacious-item-header-bottom-to-text-space-size-l); + --spectrum-accordion-item-height-size-xl: var(--system-accordion-compact-item-height-size-xl); + --spectrum-accordion-disclosure-indicator-height-size-xl: var(--system-accordion-disclosure-indicator-height-size-xl); + --spectrum-accordion-component-edge-to-text-size-xl: var(--system-accordion-component-edge-to-text-size-xl); + --spectrum-accordion-item-header-font-size-size-xl: var(--system-accordion-item-header-font-size-size-xl); + --spectrum-accordion-item-content-font-size-size-xl: var(--system-accordion-item-content-font-size-size-xl); + --spectrum-accordion-item-header-top-to-text-space-size-xl: var(--system-accordion-spacious-item-header-top-to-text-space-size-xl); + --spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(--system-accordion-spacious-item-header-bottom-to-text-space-size-xl); + --spectrum-accordion-item-header-line-height-size-l: var(--system-accordion-spacious-item-header-line-height-size-l); + --spectrum-accordion-item-header-line-height-size-xl: var(--system-accordion-spacious-item-header-line-height-size-xl); + --spectrum-accordion-item-header-line-height-size-s: var(--system-accordion-spacious-item-header-line-height-size-s); + --spectrum-actionbar-height: var(--system-action-bar-height); + --spectrum-actionbar-corner-radius: var(--system-action-bar-corner-radius); + --spectrum-actionbar-item-counter-font-size: var(--system-action-bar-item-counter-font-size); + --spectrum-actionbar-item-counter-line-height: var(--system-action-bar-item-counter-line-height); + --spectrum-actionbar-item-counter-color: var(--system-action-bar-item-counter-color); + --spectrum-actionbar-item-counter-line-height-cjk: var(--system-action-bar-item-counter-line-height-cjk); + --spectrum-actionbar-popover-background-color: var(--system-action-bar-popover-background-color); + --spectrum-actionbar-popover-border-color: var(--system-action-bar-popover-border-color); + --spectrum-actionbar-emphasized-background-color: var(--system-action-bar-emphasized-background-color); + --spectrum-actionbar-emphasized-item-counter-color: var(--system-action-bar-emphasized-item-counter-color); + --spectrum-actionbar-spacing-outer-edge: var(--system-action-bar-spacing-outer-edge); + --spectrum-actionbar-spacing-close-button-top: var(--system-action-bar-spacing-close-button-top); + --spectrum-actionbar-spacing-close-button-start: var(--system-action-bar-spacing-close-button-start); + --spectrum-actionbar-spacing-close-button-end: var(--system-action-bar-spacing-close-button-end); + --spectrum-actionbar-spacing-item-counter-top: var(--system-action-bar-spacing-item-counter-top); + --spectrum-actionbar-spacing-item-counter-end: var(--system-action-bar-spacing-item-counter-end); + --spectrum-actionbar-spacing-action-group-top: var(--system-action-bar-spacing-action-group-top); + --spectrum-actionbar-spacing-action-group-end: var(--system-action-bar-spacing-action-group-end); + --spectrum-actionbar-shadow-horizontal: var(--system-action-bar-shadow-horizontal); + --spectrum-actionbar-shadow-vertical: var(--system-action-bar-shadow-vertical); + --spectrum-actionbar-shadow-blur: var(--system-action-bar-shadow-blur); + --spectrum-actionbar-shadow-color: var(--system-action-bar-shadow-color); + --spectrum-actionbutton-background-color-default: var(--system-action-button-static-white-background-color-default); + --spectrum-actionbutton-background-color-hover: var(--system-action-button-static-white-background-color-hover); + --spectrum-actionbutton-background-color-down: var(--system-action-button-static-white-background-color-down); + --spectrum-actionbutton-background-color-focus: var(--system-action-button-static-white-background-color-focus); + --spectrum-actionbutton-background-color-disabled: var(--system-action-button-static-white-background-color-disabled); + --spectrum-actionbutton-background-color-default-selected: var(--system-action-button-static-white-emphasized-background-color-default-selected); + --spectrum-actionbutton-background-color-hover-selected: var(--system-action-button-static-white-emphasized-background-color-hover-selected); + --spectrum-actionbutton-background-color-down-selected: var(--system-action-button-static-white-emphasized-background-color-down-selected); + --spectrum-actionbutton-background-color-focus-selected: var(--system-action-button-static-white-emphasized-background-color-focus-selected); + --spectrum-actionbutton-background-color-disabled-selected: var(--system-action-button-static-white-background-color-disabled-selected); + --spectrum-actionbutton-border-color-default: var(--system-action-button-static-white-border-color-default); + --spectrum-actionbutton-border-color-hover: var(--system-action-button-static-white-border-color-hover); + --spectrum-actionbutton-border-color-down: var(--system-action-button-static-white-border-color-down); + --spectrum-actionbutton-border-color-focus: var(--system-action-button-static-white-border-color-focus); + --spectrum-actionbutton-border-color-disabled: var(--system-action-button-static-white-border-color-disabled); + --spectrum-actionbutton-animation-duration: var(--system-action-button-animation-duration); + --spectrum-actionbutton-border-radius: var(--system-action-button-border-radius); + --spectrum-actionbutton-border-width: var(--system-action-button-border-width); + --spectrum-actionbutton-min-width: var(--system-action-button-size-xl-min-width); + --spectrum-actionbutton-height: var(--system-action-button-size-xl-height); + --spectrum-actionbutton-icon-size: var(--system-action-button-size-xl-icon-size); + --spectrum-actionbutton-font-size: var(--system-action-button-size-xl-font-size); + --spectrum-actionbutton-text-to-visual: var(--system-action-button-size-xl-text-to-visual); + --spectrum-actionbutton-edge-to-hold-icon: var(--system-action-button-size-xl-edge-to-hold-icon); + --spectrum-actionbutton-content-color-default: var(--system-action-button-static-white-content-color-default); + --spectrum-actionbutton-content-color-hover: var(--system-action-button-static-white-content-color-hover); + --spectrum-actionbutton-content-color-down: var(--system-action-button-static-white-content-color-down); + --spectrum-actionbutton-content-color-focus: var(--system-action-button-static-white-content-color-focus); + --spectrum-actionbutton-content-color-disabled: var(--system-action-button-static-white-content-color-disabled); + --spectrum-actionbutton-content-color-default-selected: var(--system-action-button-static-white-emphasized-content-color-default-selected); + --spectrum-actionbutton-content-color-hover-selected: var(--system-action-button-static-black-emphasized-content-color-hover-selected); + --spectrum-actionbutton-content-color-down-selected: var(--system-action-button-static-black-emphasized-content-color-down-selected); + --spectrum-actionbutton-content-color-focus-selected: var(--system-action-button-static-black-emphasized-content-color-focus-selected); + --spectrum-actionbutton-focus-indicator-gap: var(--system-action-button-focus-indicator-gap); + --spectrum-actionbutton-focus-indicator-thickness: var(--system-action-button-focus-indicator-thickness); + --spectrum-actionbutton-focus-indicator-color: var(--system-action-button-static-white-focus-indicator-color); + --spectrum-actionbutton-border-color-default-selected: var(--system-action-button-border-color-default-selected); + --spectrum-actionbutton-border-color-hover-selected: var(--system-action-button-border-color-hover-selected); + --spectrum-actionbutton-border-color-down-selected: var(--system-action-button-border-color-down-selected); + --spectrum-actionbutton-border-color-focus-selected: var(--system-action-button-border-color-focus-selected); + --spectrum-actionbutton-border-color-disabled-selected: var(--system-action-button-static-white-border-color-disabled-selected); + --spectrum-actionbutton-edge-to-visual-size: var(--system-action-button-size-xl-edge-to-visual-size); + --spectrum-actionbutton-edge-to-visual-only-size: var(--system-action-button-size-xl-edge-to-visual-only-size); + --spectrum-actionbutton-edge-to-text-size: var(--system-action-button-size-xl-edge-to-text-size); + --spectrum-actionbutton-content-color-selected: var(--system-action-button-static-white-content-color-selected); + --spectrum-actiongroup-gap-size-compact: var(--system-action-group-gap-size-compact); + --spectrum-actiongroup-horizontal-spacing-compact: var(--system-action-group-horizontal-spacing-compact); + --spectrum-actiongroup-vertical-spacing-compact: var(--system-action-group-vertical-spacing-compact); + --spectrum-actiongroup-button-spacing-reset: var(--system-action-group-button-spacing-reset); + --spectrum-actiongroup-border-radius-reset: var(--system-action-group-border-radius-reset); + --spectrum-actiongroup-border-radius: var(--system-action-group-border-radius); + --spectrum-actiongroup-horizontal-spacing-regular: var(--system-action-group-size-xl-horizontal-spacing-regular); + --spectrum-actiongroup-vertical-spacing-regular: var(--system-action-group-size-xl-vertical-spacing-regular); + --spectrum-alert-banner-neutral-background: var(--system-alert-banner-neutral-background); + --spectrum-alert-banner-min-height: var(--system-alert-banner-min-height); + --spectrum-alert-banner-max-inline-size: var(--system-alert-banner-max-inline-size); + --spectrum-alert-banner-size: var(--system-alert-banner-size); + --spectrum-alert-banner-font-size: var(--system-alert-banner-font-size); + --spectrum-alert-banner-icon-size: var(--system-alert-banner-icon-size); + --spectrum-alert-banner-icon-to-text: var(--system-alert-banner-icon-to-text); + --spectrum-alert-banner-start-edge: var(--system-alert-banner-start-edge); + --spectrum-alert-banner-text-to-button-horizontal: var(--system-alert-banner-text-to-button-horizontal); + --spectrum-alert-banner-text-to-divider: var(--system-alert-banner-text-to-divider); + --spectrum-alert-banner-top-icon: var(--system-alert-banner-top-icon); + --spectrum-alert-banner-top-text: var(--system-alert-banner-top-text); + --spectrum-alert-banner-bottom-text: var(--system-alert-banner-bottom-text); + --spectrum-alert-banner-informative-background: var(--system-alert-banner-informative-background); + --spectrum-alert-banner-negative-background: var(--system-alert-banner-negative-background); + --spectrum-alert-banner-font-color: var(--system-alert-banner-font-color); + --spectrum-alert-dialog-min-width: var(--system-alert-dialog-min-width); + --spectrum-alert-dialog-max-width: var(--system-alert-dialog-max-width); + --spectrum-alert-dialog-icon-size: var(--system-alert-dialog-icon-size); + --spectrum-alert-dialog-warning-icon-color: var(--system-alert-dialog-warning-icon-color); + --spectrum-alert-dialog-error-icon-color: var(--system-alert-dialog-error-icon-color); + --spectrum-alert-dialog-title-font-family: var(--system-alert-dialog-title-font-family); + --spectrum-alert-dialog-title-font-weight: var(--system-alert-dialog-title-font-weight); + --spectrum-alert-dialog-title-font-style: var(--system-alert-dialog-title-font-style); + --spectrum-alert-dialog-title-font-size: var(--system-alert-dialog-title-font-size); + --spectrum-alert-dialog-title-line-height: var(--system-alert-dialog-title-line-height); + --spectrum-alert-dialog-title-color: var(--system-alert-dialog-title-color); + --spectrum-alert-dialog-body-font-family: var(--system-alert-dialog-body-font-family); + --spectrum-alert-dialog-body-font-weight: var(--system-alert-dialog-body-font-weight); + --spectrum-alert-dialog-body-font-style: var(--system-alert-dialog-body-font-style); + --spectrum-alert-dialog-body-font-size: var(--system-alert-dialog-body-font-size); + --spectrum-alert-dialog-body-line-height: var(--system-alert-dialog-body-line-height); + --spectrum-alert-dialog-body-color: var(--system-alert-dialog-body-color); + --spectrum-alert-dialog-title-to-divider: var(--system-alert-dialog-title-to-divider); + --spectrum-alert-dialog-divider-to-description: var(--system-alert-dialog-divider-to-description); + --spectrum-alert-dialog-title-to-icon: var(--system-alert-dialog-title-to-icon); + --spectrum-asset-transition-duration: var(--system-asset-transition-duration); + --spectrum-asset-folder-background-color: var(--system-asset-folder-background-color); + --spectrum-asset-file-background-color: var(--system-asset-file-background-color); + --spectrum-asset-icon-outline-color: var(--system-asset-icon-outline-color); + --spectrum-assetcard-overlay-background-color-rgb: var(--system-asset-card-overlay-background-color-rgb); + --spectrum-assetcard-overlay-background-color-opacity: var(--system-asset-card-overlay-background-color-opacity); + --spectrum-assetcard-overlay-background-color: var(--system-asset-card-overlay-background-color); + --spectrum-assetcard-asset-size: var(--system-asset-card-asset-size); + --spectrum-assetcard-background-color: var(--system-asset-card-background-color); + --spectrum-assetcard-asset-animation-duration: var(--system-asset-card-asset-animation-duration); + --spectrum-assetcard-asset-container-border-size: var(--system-asset-card-asset-container-border-size); + --spectrum-assetcard-header-margin-block-start: var(--system-asset-card-header-margin-block-start); + --spectrum-assetcard-border-radius: var(--system-asset-card-border-radius); + --spectrum-assetcard-border-color: var(--system-asset-card-border-color); + --spectrum-assetcard-border-color-hover: var(--system-asset-card-border-color-hover); + --spectrum-assetcard-border-color-down: var(--system-asset-card-border-color-down); + --spectrum-assetcard-focus-ring-gap: var(--system-asset-card-focus-ring-gap); + --spectrum-assetcard-focus-indicator-thickness: var(--system-asset-card-focus-indicator-thickness); + --spectrum-assetcard-selectionindicator-background-color-default: var(--system-asset-card-selectionindicator-background-color-default); + --spectrum-assetcard-selectionindicator-box-shadow-color: var(--system-asset-card-selectionindicator-box-shadow-color); + --spectrum-assetcard-selectionindicator-size: var(--system-asset-card-selectionindicator-size); + --spectrum-assetcard-selectionindicator-border-radius: var(--system-asset-card-selectionindicator-border-radius); + --spectrum-assetcard-selectionindicator-offset-y: var(--system-asset-card-selectionindicator-offset-y); + --spectrum-assetcard-selectionindicator-blur: var(--system-asset-card-selectionindicator-blur); + --spectrum-assetcard-selectionindicator-color: var(--system-asset-card-selectionindicator-color); + --spectrum-assetcard-selectionindicator-font-weight: var(--system-asset-card-selectionindicator-font-weight); + --spectrum-assetcard-selectionindicator-font-size: var(--system-asset-card-selectionindicator-font-size); + --spectrum-assetcard-title-text-color: var(--system-asset-card-title-text-color); + --spectrum-assetcard-title-font-family: var(--system-asset-card-lang-ko-title-font-family); + --spectrum-assetcard-title-font-weight: var(--system-asset-card-lang-ko-title-font-weight); + --spectrum-assetcard-title-font-style: var(--system-asset-card-lang-ko-title-font-style); + --spectrum-assetcard-title-line-height: var(--system-asset-card-lang-ko-title-line-height); + --spectrum-assetcard-title-letter-spacing: var(--system-asset-card-lang-ko-title-letter-spacing); + --spectrum-assetcard-header-content-text-color: var(--system-asset-card-header-content-text-color); + --spectrum-assetcard-header-content-font-family: var(--system-asset-card-lang-ko-header-content-font-family); + --spectrum-assetcard-header-content-font-weight: var(--system-asset-card-lang-ko-header-content-font-weight); + --spectrum-assetcard-header-content-font-style: var(--system-asset-card-lang-ko-header-content-font-style); + --spectrum-assetcard-header-content-line-height: var(--system-asset-card-lang-ko-header-content-line-height); + --spectrum-assetcard-header-content-letter-spacing: var(--system-asset-card-lang-ko-header-content-letter-spacing); + --spectrum-assetcard-content-text-color: var(--system-asset-card-content-text-color); + --spectrum-assetcard-content-font-family: var(--system-asset-card-lang-ko-content-font-family); + --spectrum-assetcard-content-font-weight: var(--system-asset-card-lang-ko-content-font-weight); + --spectrum-assetcard-content-font-style: var(--system-asset-card-lang-ko-content-font-style); + --spectrum-assetcard-content-line-height: var(--system-asset-card-lang-ko-content-line-height); + --spectrum-assetcard-content-letter-spacing: var(--system-asset-card-lang-ko-content-letter-spacing); + --spectrum-assetcard-content-margin-block-start: var(--system-asset-card-content-margin-block-start); + --spectrum-assetcard-title-font-size: var(--system-asset-card-lang-ko-title-font-size); + --spectrum-assetlist-width: var(--system-asset-list-width); + --spectrum-assetlist-child-indicator-animation: var(--system-asset-list-child-indicator-animation); + --spectrum-assetlist-item-height: var(--system-asset-list-item-height); + --spectrum-assetlist-item-padding-inline-start: var(--system-asset-list-item-padding-inline-start); + --spectrum-assetlist-item-padding-inline-end: var(--system-asset-list-item-padding-inline-end); + --spectrum-assetlist-item-margin-block-end: var(--system-asset-list-item-margin-block-end); + --spectrum-assetlist-item-border-radius: var(--system-asset-list-item-border-radius); + --spectrum-assetlist-item-animation: var(--system-asset-list-item-animation); + --spectrum-assetlist-item-font-size: var(--system-asset-list-item-font-size); + --spectrum-assetlist-item-font-weight: var(--system-asset-list-item-font-weight); + --spectrum-assetlist-item-background-color-down: var(--system-asset-list-item-background-color-down); + --spectrum-assetlist-item-background-color-hover: var(--system-asset-list-item-background-color-hover); + --spectrum-assetlist-thumbnail-width: var(--system-asset-list-thumbnail-width); + --spectrum-assetlist-thumbnail-height: var(--system-asset-list-thumbnail-height); + --spectrum-assetlist-thumbnail-margin-inline-start: var(--system-asset-list-thumbnail-margin-inline-start); + --spectrum-assetlist-item-label-padding-inline-start: var(--system-asset-list-item-label-padding-inline-start); + --spectrum-assetlist-label-color: var(--system-asset-list-label-color); + --spectrum-avatar-color-opacity: var(--system-avatar-color-opacity); + --spectrum-avatar-inline-size: var(--system-avatar-size-700-inline-size); + --spectrum-avatar-block-size: var(--system-avatar-size-700-block-size); + --spectrum-avatar-focus-indicator-thickness: var(--system-avatar-focus-indicator-thickness); + --spectrum-avatar-focus-indicator-gap: var(--system-avatar-focus-indicator-gap); + --spectrum-avatar-focus-indicator-color: var(--system-avatar-focus-indicator-color); + --spectrum-avatar-color-opacity-disabled: var(--system-avatar-color-opacity-disabled); + --spectrum-badge-corner-radius: var(--system-badge-corner-radius); + --spectrum-badge-line-height: var(--system-badge-line-height); + --spectrum-badge-line-height-cjk: var(--system-badge-line-height-cjk); + --spectrum-badge-label-icon-color: var(--system-badge-magenta-label-icon-color); + --spectrum-badge-background-color-default: var(--system-badge-background-color-default); + --spectrum-badge-background-color-accent: var(--system-badge-background-color-accent); + --spectrum-badge-background-color-informative: var(--system-badge-background-color-informative); + --spectrum-badge-background-color-negative: var(--system-badge-background-color-negative); + --spectrum-badge-background-color-positive: var(--system-badge-background-color-positive); + --spectrum-badge-background-color-notice: var(--system-badge-background-color-notice); + --spectrum-badge-background-color-gray: var(--system-badge-background-color-gray); + --spectrum-badge-background-color-red: var(--system-badge-background-color-red); + --spectrum-badge-background-color-orange: var(--system-badge-background-color-orange); + --spectrum-badge-background-color-yellow: var(--system-badge-background-color-yellow); + --spectrum-badge-background-color-chartreuse: var(--system-badge-background-color-chartreuse); + --spectrum-badge-background-color-celery: var(--system-badge-background-color-celery); + --spectrum-badge-background-color-green: var(--system-badge-background-color-green); + --spectrum-badge-background-color-seafoam: var(--system-badge-background-color-seafoam); + --spectrum-badge-background-color-cyan: var(--system-badge-background-color-cyan); + --spectrum-badge-background-color-blue: var(--system-badge-background-color-blue); + --spectrum-badge-background-color-indigo: var(--system-badge-background-color-indigo); + --spectrum-badge-background-color-purple: var(--system-badge-background-color-purple); + --spectrum-badge-background-color-fuchsia: var(--system-badge-background-color-fuchsia); + --spectrum-badge-background-color-magenta: var(--system-badge-background-color-magenta); + --spectrum-badge-height: var(--system-badge-size-xl-height); + --spectrum-badge-font-size: var(--system-badge-size-xl-font-size); + --spectrum-badge-label-spacing-vertical-top: var(--system-badge-size-xl-label-spacing-vertical-top); + --spectrum-badge-label-spacing-vertical-bottom: var(--system-badge-size-xl-label-spacing-vertical-bottom); + --spectrum-badge-label-spacing-horizontal: var(--system-badge-size-xl-label-spacing-horizontal); + --spectrum-badge-workflow-icon-size: var(--system-badge-size-xl-workflow-icon-size); + --spectrum-badge-icon-text-spacing: var(--system-badge-size-xl-icon-text-spacing); + --spectrum-badge-icon-spacing-horizontal: var(--system-badge-size-xl-icon-spacing-horizontal); + --spectrum-badge-icon-spacing-vertical-top: var(--system-badge-size-xl-icon-spacing-vertical-top); + --spectrum-badge-icon-only-spacing-horizontal: var(--system-badge-size-xl-icon-only-spacing-horizontal); + --spectrum-breadcrumbs-block-size: var(--system-breadcrumbs-block-size); + --spectrum-breadcrumbs-block-size-compact: var(--system-breadcrumbs-block-size-compact); + --spectrum-breadcrumbs-block-size-multiline: var(--system-breadcrumbs-block-size-multiline); + --spectrum-breadcrumbs-line-height: var(--system-breadcrumbs-line-height); + --spectrum-breadcrumbs-font-size: var(--system-breadcrumbs-font-size); + --spectrum-breadcrumbs-font-family: var(--system-breadcrumbs-font-family); + --spectrum-breadcrumbs-font-weight: var(--system-breadcrumbs-font-weight); + --spectrum-breadcrumbs-font-size-current: var(--system-breadcrumbs-font-size-current); + --spectrum-breadcrumbs-font-family-current: var(--system-breadcrumbs-font-family-current); + --spectrum-breadcrumbs-font-weight-current: var(--system-breadcrumbs-font-weight-current); + --spectrum-breadcrumbs-font-size-compact: var(--system-breadcrumbs-font-size-compact); + --spectrum-breadcrumbs-font-family-compact: var(--system-breadcrumbs-font-family-compact); + --spectrum-breadcrumbs-font-weight-compact: var(--system-breadcrumbs-font-weight-compact); + --spectrum-breadcrumbs-font-size-compact-current: var(--system-breadcrumbs-font-size-compact-current); + --spectrum-breadcrumbs-font-family-compact-current: var(--system-breadcrumbs-font-family-compact-current); + --spectrum-breadcrumbs-font-weight-compact-current: var(--system-breadcrumbs-font-weight-compact-current); + --spectrum-breadcrumbs-font-size-multiline: var(--system-breadcrumbs-font-size-multiline); + --spectrum-breadcrumbs-font-family-multiline: var(--system-breadcrumbs-font-family-multiline); + --spectrum-breadcrumbs-font-weight-multiline: var(--system-breadcrumbs-font-weight-multiline); + --spectrum-breadcrumbs-font-size-multiline-current: var(--system-breadcrumbs-font-size-multiline-current); + --spectrum-breadcrumbs-font-family-multiline-current: var(--system-breadcrumbs-font-family-multiline-current); + --spectrum-breadcrumbs-font-weight-multiline-current: var(--system-breadcrumbs-font-weight-multiline-current); + --spectrum-breadcrumbs-text-decoration-thickness: var(--system-breadcrumbs-text-decoration-thickness); + --spectrum-breadcrumbs-text-decoration-gap: var(--system-breadcrumbs-text-decoration-gap); + --spectrum-breadcrumbs-separator-spacing-inline: var(--system-breadcrumbs-separator-spacing-inline); + --spectrum-breadcrumbs-text-spacing-block-start: var(--system-breadcrumbs-text-spacing-block-start); + --spectrum-breadcrumbs-text-spacing-block-end: var(--system-breadcrumbs-text-spacing-block-end); + --spectrum-breadcrumbs-icon-spacing-block: var(--system-breadcrumbs-icon-spacing-block); + --spectrum-breadcrumbs-text-spacing-block-start-compact: var(--system-breadcrumbs-text-spacing-block-start-compact); + --spectrum-breadcrumbs-text-spacing-block-end-compact: var(--system-breadcrumbs-text-spacing-block-end-compact); + --spectrum-breadcrumbs-icon-spacing-block-compact: var(--system-breadcrumbs-icon-spacing-block-compact); + --spectrum-breadcrumbs-text-spacing-block-start-multiline: var(--system-breadcrumbs-text-spacing-block-start-multiline); + --spectrum-breadcrumbs-text-spacing-block-end-multiline: var(--system-breadcrumbs-text-spacing-block-end-multiline); + --spectrum-breadcrumbs-text-spacing-block-between-multiline: var(--system-breadcrumbs-text-spacing-block-between-multiline); + --spectrum-breadcrumbs-icon-spacing-block-start-multiline: var(--system-breadcrumbs-icon-spacing-block-start-multiline); + --spectrum-breadcrumbs-icon-spacing-block-between-multiline: var(--system-breadcrumbs-icon-spacing-block-between-multiline); + --spectrum-breadcrumbs-inline-start: var(--system-breadcrumbs-inline-start); + --spectrum-breadcrumbs-inline-end: var(--system-breadcrumbs-inline-end); + --spectrum-breadcrumbs-action-button-spacing-inline: var(--system-breadcrumbs-action-button-spacing-inline); + --spectrum-breadcrumbs-action-button-spacing-block: var(--system-breadcrumbs-action-button-spacing-block); + --spectrum-breadcrumbs-action-button-spacing-block-compact: var(--system-breadcrumbs-action-button-spacing-block-compact); + --spectrum-breadcrumbs-action-button-spacing-inline-start: var(--system-breadcrumbs-action-button-spacing-inline-start); + --spectrum-breadcrumbs-action-button-spacing-block-multiline: var(--system-breadcrumbs-action-button-spacing-block-multiline); + --spectrum-breadcrumbs-action-button-spacing-block-between-multiline: var(--system-breadcrumbs-action-button-spacing-block-between-multiline); + --spectrum-breadcrumbs-focus-indicator-thickness: var(--system-breadcrumbs-focus-indicator-thickness); + --spectrum-breadcrumbs-focus-indicator-gap: var(--system-breadcrumbs-focus-indicator-gap); + --spectrum-breadcrumbs-item-link-border-radius: var(--system-breadcrumbs-item-link-border-radius); + --spectrum-breadcrumbs-text-color: var(--system-breadcrumbs-text-color); + --spectrum-breadcrumbs-text-color-current: var(--system-breadcrumbs-text-color-current); + --spectrum-breadcrumbs-text-color-disabled: var(--system-breadcrumbs-text-color-disabled); + --spectrum-breadcrumbs-separator-color: var(--system-breadcrumbs-separator-color); + --spectrum-breadcrumbs-action-button-color: var(--system-breadcrumbs-action-button-color); + --spectrum-breadcrumbs-action-button-color-disabled: var(--system-breadcrumbs-action-button-color-disabled); + --spectrum-breadcrumbs-focus-indicator-color: var(--system-breadcrumbs-focus-indicator-color); + --spectrum-button-animation-duration: var(--system-button-animation-duration); + --spectrum-button-border-radius: var(--system-button-size-xl-border-radius); + --spectrum-button-border-width: var(--system-button-border-width); + --spectrum-button-line-height: var(--system-button-line-height); + --spectrum-button-focus-ring-gap: var(--system-button-focus-ring-gap); + --spectrum-button-focus-ring-thickness: var(--system-button-focus-ring-thickness); + --spectrum-button-focus-indicator-color: var(--system-button-static-black-secondary-outline-focus-indicator-color); + --spectrum-button-intended-icon-size: var(--system-button-size-xl-intended-icon-size); + --spectrum-button-background-color-default: var(--system-button-static-black-secondary-outline-background-color-default); + --spectrum-button-background-color-hover: var(--system-button-static-black-secondary-outline-background-color-hover); + --spectrum-button-background-color-down: var(--system-button-static-black-secondary-outline-background-color-down); + --spectrum-button-background-color-focus: var(--system-button-static-black-secondary-outline-background-color-focus); + --spectrum-button-border-color-default: var(--system-button-static-black-secondary-outline-border-color-default); + --spectrum-button-border-color-hover: var(--system-button-static-black-secondary-outline-border-color-hover); + --spectrum-button-border-color-down: var(--system-button-static-black-secondary-outline-border-color-down); + --spectrum-button-border-color-focus: var(--system-button-static-black-secondary-outline-border-color-focus); + --spectrum-button-content-color-default: var(--system-button-static-black-secondary-outline-content-color-default); + --spectrum-button-content-color-hover: var(--system-button-static-black-secondary-outline-content-color-hover); + --spectrum-button-content-color-down: var(--system-button-static-black-secondary-outline-content-color-down); + --spectrum-button-content-color-focus: var(--system-button-static-black-secondary-outline-content-color-focus); + --spectrum-button-background-color-disabled: var(--system-button-static-black-secondary-outline-background-color-disabled); + --spectrum-button-border-color-disabled: var(--system-button-static-black-secondary-outline-border-color-disabled); + --spectrum-button-content-color-disabled: var(--system-button-static-black-secondary-outline-content-color-disabled); + --spectrum-button-static-white-content-color-default: var(--system-button-static-white-selected-static-white-content-color-default); + --spectrum-button-static-white-content-color-hover: var(--system-button-static-white-selected-static-white-content-color-hover); + --spectrum-button-static-white-content-color-down: var(--system-button-static-white-selected-static-white-content-color-down); + --spectrum-button-static-white-content-color-focus: var(--system-button-static-white-selected-static-white-content-color-focus); + --spectrum-button-min-width: var(--system-button-size-xl-min-width); + --spectrum-button-height: var(--system-button-size-xl-height); + --spectrum-button-font-size: var(--system-button-size-xl-font-size); + --spectrum-button-edge-to-visual: var(--system-button-size-xl-edge-to-visual); + --spectrum-button-edge-to-visual-only: var(--system-button-size-xl-edge-to-visual-only); + --spectrum-button-edge-to-text: var(--system-button-size-xl-edge-to-text); + --spectrum-button-padding-label-to-icon: var(--system-button-size-xl-padding-label-to-icon); + --spectrum-button-top-to-text: var(--system-button-size-xl-top-to-text); + --spectrum-button-bottom-to-text: var(--system-button-size-xl-bottom-to-text); + --spectrum-button-top-to-icon: var(--system-button-size-xl-top-to-icon); + --spectrum-buttongroup-spacing-horizontal: var(--system-button-group-size-xl-spacing-horizontal); + --spectrum-buttongroup-spacing-vertical: var(--system-button-group-size-xl-spacing-vertical); + --spectrum-calendar-day-width: var(--system-calendar-day-width); + --spectrum-calendar-day-height: var(--system-calendar-day-height); + --spectrum-calendar-border-radius-reset: var(--system-calendar-border-radius-reset); + --spectrum-calendar-border-width-reset: var(--system-calendar-border-width-reset); + --spectrum-calendar-day-border-size: var(--system-calendar-day-border-size); + --spectrum-calendar-margin-y: var(--system-calendar-margin-y); + --spectrum-calendar-margin-x: var(--system-calendar-margin-x); + --spectrum-calendar-day-padding: var(--system-calendar-day-padding); + --spectrum-calendar-width: var(--system-calendar-width); + --spectrum-calendar-title-text-letter-spacing: var(--system-calendar-title-text-letter-spacing); + --spectrum-calendar-title-height: var(--system-calendar-title-height); + --spectrum-calendar-title-text-size: var(--system-calendar-title-text-size); + --spectrum-calendar-day-title-text-font-weight: var(--system-calendar-day-title-text-font-weight); + --spectrum-calendar-day-title-text-color: var(--system-calendar-day-title-text-color); + --spectrum-calendar-day-title-text-size: var(--system-calendar-day-title-text-size); + --spectrum-calendar-day-text-size-han: var(--system-calendar-day-text-size-han); + --spectrum-calendar-day-text-size: var(--system-calendar-day-text-size); + --spectrum-calendar-day-text-color-selected: var(--system-calendar-day-text-color-selected); + --spectrum-calendar-day-text-color-hover: var(--system-calendar-day-text-color-hover); + --spectrum-calendar-day-text-color-cap-selected: var(--system-calendar-day-text-color-cap-selected); + --spectrum-calendar-day-text-font-weight-selected: var(--system-calendar-day-text-font-weight-selected); + --spectrum-calendar-day-text-font-weight-cap-selected: var(--system-calendar-day-text-font-weight-cap-selected); + --spectrum-calendar-day-today-text-color: var(--system-calendar-day-today-text-color); + --spectrum-calendar-day-today-text-font-weight: var(--system-calendar-day-today-text-font-weight); + --spectrum-calendar-day-today-border-color: var(--system-calendar-day-today-border-color); + --spectrum-calendar-day-today-text-color-disabled: var(--system-calendar-day-today-text-color-disabled); + --spectrum-calendar-day-today-border-color-disabled: var(--system-calendar-day-today-border-color-disabled); + --spectrum-calendar-day-text-color-disabled: var(--system-calendar-day-text-color-disabled); + --spectrum-calendar-day-text-color-key-focus: var(--system-calendar-day-text-color-key-focus); + --spectrum-calendar-button-icon-color: var(--system-calendar-button-icon-color); + --spectrum-card-background-color: var(--system-card-background-color); + --spectrum-card-body-spacing: var(--system-card-body-spacing); + --spectrum-card-title-padding-top: var(--system-card-title-padding-top); + --spectrum-card-title-padding-right: var(--system-card-title-padding-right); + --spectrum-card-content-margin-top: var(--system-card-content-margin-top); + --spectrum-card-content-margin-bottom: var(--system-card-content-margin-bottom); + --spectrum-card-footer-padding-top: var(--system-card-footer-padding-top); + --spectrum-card-subtitle-padding-right: var(--system-card-subtitle-padding-right); + --spectrum-card-border-width: var(--system-card-border-width); + --spectrum-card-corner-radius: var(--system-card-corner-radius); + --spectrum-card-border-color: var(--system-card-border-color); + --spectrum-card-border-color-hover: var(--system-card-border-color-hover); + --spectrum-card-border-color-selected: var(--system-card-border-color-selected); + --spectrum-card-divider-color: var(--system-card-divider-color); + --spectrum-card-title-font-family: var(--system-card-title-font-family); + --spectrum-card-title-font-size: var(--system-card-title-font-size); + --spectrum-card-title-font-weight: var(--system-card-title-font-weight); + --spectrum-card-title-font-style: var(--system-card-title-font-style); + --spectrum-card-title-line-height: var(--system-card-title-line-height); + --spectrum-card-title-font-color: var(--system-card-title-font-color); + --spectrum-card-body-font-family: var(--system-card-body-font-family); + --spectrum-card-body-font-size: var(--system-card-body-font-size); + --spectrum-card-body-font-weight: var(--system-card-body-font-weight); + --spectrum-card-body-font-style: var(--system-card-body-font-style); + --spectrum-card-body-line-height: var(--system-card-body-line-height); + --spectrum-card-body-font-color: var(--system-card-body-font-color); + --spectrum-card-actions-spacing: var(--system-card-actions-spacing); + --spectrum-card-actions-size: var(--system-card-actions-size); + --spectrum-card-actions-border-radius: var(--system-card-actions-border-radius); + --spectrum-card-actions-background-color-rgb: var(--system-card-actions-background-color-rgb); + --spectrum-card-actions-background-color-opacity: var(--system-card-actions-background-color-opacity); + --spectrum-card-actions-drop-shadow-color: var(--system-card-actions-drop-shadow-color); + --spectrum-card-actions-drop-shadow-x: var(--system-card-actions-drop-shadow-x); + --spectrum-card-actions-drop-shadow-y: var(--system-card-actions-drop-shadow-y); + --spectrum-card-actions-drop-shadow-blur: var(--system-card-actions-drop-shadow-blur); + --spectrum-card-focus-indicator-color: var(--system-card-focus-indicator-color); + --spectrum-card-focus-indicator-width: var(--system-card-focus-indicator-width); + --spectrum-card-selected-background-opacity: var(--system-card-selected-background-opacity); + --spectrum-card-preview-border-width-selected: var(--system-card-preview-border-width-selected); + --spectrum-card-preview-background-color: var(--system-card-preview-background-color); + --spectrum-card-preview-background-color-hover: var(--system-card-preview-background-color-hover); + --spectrum-card-horizontal-body-padding: var(--system-card-horizontal-body-padding); + --spectrum-card-horizontal-preview-padding: var(--system-card-horizontal-preview-padding); + --spectrum-card-content-margin-top-quiet: var(--system-card-content-margin-top-quiet); + --spectrum-card-minimum-width-quiet: var(--system-card-minimum-width-quiet); + --spectrum-card-selected-background-color-rgb: var(--system-card-darkest-selected-background-color-rgb); + --spectrum-checkbox-control-color-default: var(--system-checkbox-control-color-default); + --spectrum-checkbox-control-color-hover: var(--system-checkbox-control-color-hover); + --spectrum-checkbox-control-color-down: var(--system-checkbox-control-color-down); + --spectrum-checkbox-control-color-focus: var(--system-checkbox-control-color-focus); + --spectrum-checkbox-content-color-default: var(--system-checkbox-content-color-default); + --spectrum-checkbox-content-color-hover: var(--system-checkbox-content-color-hover); + --spectrum-checkbox-content-color-down: var(--system-checkbox-content-color-down); + --spectrum-checkbox-content-color-focus: var(--system-checkbox-content-color-focus); + --spectrum-checkbox-focus-indicator-color: var(--system-checkbox-focus-indicator-color); + --spectrum-checkbox-content-color-disabled: var(--system-checkbox-content-color-disabled); + --spectrum-checkbox-control-color-disabled: var(--system-checkbox-control-color-disabled); + --spectrum-checkbox-checkmark-color: var(--system-checkbox-checkmark-color); + --spectrum-checkbox-invalid-color-default: var(--system-checkbox-invalid-color-default); + --spectrum-checkbox-invalid-color-hover: var(--system-checkbox-invalid-color-hover); + --spectrum-checkbox-invalid-color-down: var(--system-checkbox-invalid-color-down); + --spectrum-checkbox-invalid-color-focus: var(--system-checkbox-invalid-color-focus); + --spectrum-checkbox-emphasized-color-default: var(--system-checkbox-emphasized-color-default); + --spectrum-checkbox-emphasized-color-hover: var(--system-checkbox-emphasized-color-hover); + --spectrum-checkbox-emphasized-color-down: var(--system-checkbox-emphasized-color-down); + --spectrum-checkbox-emphasized-color-focus: var(--system-checkbox-emphasized-color-focus); + --spectrum-checkbox-control-selected-color-default: var(--system-checkbox-control-selected-color-default); + --spectrum-checkbox-control-selected-color-hover: var(--system-checkbox-control-selected-color-hover); + --spectrum-checkbox-control-selected-color-down: var(--system-checkbox-control-selected-color-down); + --spectrum-checkbox-control-selected-color-focus: var(--system-checkbox-control-selected-color-focus); + --spectrum-checkbox-line-height: var(--system-checkbox-line-height); + --spectrum-checkbox-line-height-cjk: var(--system-checkbox-line-height-cjk); + --spectrum-checkbox-control-corner-radius: var(--system-checkbox-control-corner-radius); + --spectrum-checkbox-focus-indicator-gap: var(--system-checkbox-focus-indicator-gap); + --spectrum-checkbox-focus-indicator-thickness: var(--system-checkbox-focus-indicator-thickness); + --spectrum-checkbox-border-width: var(--system-checkbox-border-width); + --spectrum-checkbox-animation-duration: var(--system-checkbox-animation-duration); + --spectrum-checkbox-font-size: var(--system-checkbox-size-xl-font-size); + --spectrum-checkbox-height: var(--system-checkbox-size-xl-height); + --spectrum-checkbox-control-size: var(--system-checkbox-size-xl-control-size); + --spectrum-checkbox-top-to-text: var(--system-checkbox-size-xl-top-to-text); + --spectrum-checkbox-text-to-control: var(--system-checkbox-size-xl-text-to-control); + --spectrum-clear-button-background-color: var(--system-clear-button-disabled-background-color); + --spectrum-clear-button-background-color-hover: var(--system-clear-button-over-background-background-color-hover); + --spectrum-clear-button-background-color-down: var(--system-clear-button-over-background-background-color-down); + --spectrum-clear-button-background-color-key-focus: var(--system-clear-button-over-background-background-color-key-focus); + --spectrum-clear-button-height: var(--system-clear-button-size-xl-height); + --spectrum-clear-button-width: var(--system-clear-button-size-xl-width); + --spectrum-clear-button-padding: var(--system-clear-button-padding); + --spectrum-clear-button-icon-color: var(--system-clear-button-disabled-icon-color); + --spectrum-clear-button-icon-color-hover: var(--system-clear-button-disabled-icon-color-hover); + --spectrum-clear-button-icon-color-down: var(--system-clear-button-disabled-icon-color-down); + --spectrum-clear-button-icon-color-key-focus: var(--system-clear-button-over-background-icon-color-key-focus); + --spectrum-closebutton-background-color-default: var(--system-close-button-background-color-default); + --spectrum-closebutton-background-color-hover: var(--system-close-button-background-color-hover); + --spectrum-closebutton-background-color-down: var(--system-close-button-background-color-down); + --spectrum-closebutton-background-color-focus: var(--system-close-button-background-color-focus); + --spectrum-closebutton-icon-color-default: var(--system-close-button-static-black-icon-color-default); + --spectrum-closebutton-icon-color-hover: var(--system-close-button-icon-color-hover); + --spectrum-closebutton-icon-color-down: var(--system-close-button-icon-color-down); + --spectrum-closebutton-icon-color-focus: var(--system-close-button-icon-color-focus); + --spectrum-closebutton-icon-color-disabled: var(--system-close-button-static-black-icon-color-disabled); + --spectrum-closebutton-focus-indicator-thickness: var(--system-close-button-focus-indicator-thickness); + --spectrum-closebutton-focus-indicator-gap: var(--system-close-button-focus-indicator-gap); + --spectrum-closebutton-focus-indicator-color: var(--system-close-button-static-black-focus-indicator-color); + --spectrum-closebutton-animation-duration: var(--system-close-button-animation-duration); + --spectrum-closebutton-size: var(--system-close-button-size-xl-size); + --spectrum-closebutton-static-background-color-default: var(--system-close-button-static-black-static-background-color-default); + --spectrum-closebutton-static-background-color-hover: var(--system-close-button-static-black-static-background-color-hover); + --spectrum-closebutton-static-background-color-down: var(--system-close-button-static-black-static-background-color-down); + --spectrum-closebutton-static-background-color-focus: var(--system-close-button-static-black-static-background-color-focus); + --spectrum-coach-indicator-ring-border-size: var(--system-coach-indicator-ring-border-size); + --spectrum-coach-indicator-min-inline-size: var(--system-coach-indicator-min-inline-size); + --spectrum-coach-indicator-min-block-size: var(--system-coach-indicator-min-block-size); + --spectrum-coach-indicator-inline-size: var(--system-coach-indicator-inline-size); + --spectrum-coach-indicator-block-size: var(--system-coach-indicator-block-size); + --spectrum-coach-indicator-ring-inline-size: var(--system-coach-indicator-ring-inline-size); + --spectrum-coach-indicator-ring-block-size: var(--system-coach-indicator-ring-block-size); + --spectrum-coach-indicator-ring-dark-color: var(--system-coach-indicator-ring-dark-color); + --spectrum-coach-indicator-ring-light-color: var(--system-coach-indicator-ring-light-color); + --spectrum-coach-indicator-top: var(--system-coach-indicator-top); + --spectrum-coach-indicator-left: var(--system-coach-indicator-left); + --spectrum-coach-animation-indicator-ring-duration: var(--system-coach-indicator-coach-animation-indicator-ring-duration); + --spectrum-coach-animation-indicator-ring-inner-delay-multiple: var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple); + --spectrum-coach-animation-indicator-ring-center-delay-multiple: var(--system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple); + --spectrum-coach-animation-indicator-ring-outer-delay-multiple: var(--system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple); + --spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple: var(--system-coach-indicator-quiet-animation-ring-inner-delay-multiple); + --spectrum-coach-indicator-animation-name: var(--system-coach-indicator-quiet-animation-name); + --spectrum-coach-indicator-inner-animation-delay-multiple: var(--system-coach-indicator-inner-animation-delay-multiple); + --spectrum-coach-indicator-animation-keyframe-0-scale: var(--system-coach-indicator-animation-keyframe-0-scale); + --spectrum-coach-indicator-animation-keyframe-0-opacity: var(--system-coach-indicator-animation-keyframe-0-opacity); + --spectrum-coach-indicator-animation-keyframe-50-scale: var(--system-coach-indicator-animation-keyframe-50-scale); + --spectrum-coach-indicator-animation-keyframe-50-opacity: var(--system-coach-indicator-animation-keyframe-50-opacity); + --spectrum-coach-indicator-animation-keyframe-100-scale: var(--system-coach-indicator-animation-keyframe-100-scale); + --spectrum-coach-indicator-animation-keyframe-100-opacity: var(--system-coach-indicator-animation-keyframe-100-opacity); + --spectrum-coach-indicator-quiet-animation-keyframe-0-scale: var(--system-coach-indicator-quiet-animation-keyframe-0-scale); + --spectrum-coach-indicator-quiet-ring-diameter-size: var(--system-coach-indicator-quiet-quiet-ring-diameter-size); + --spectrum-coachmark-min-width: var(--system-coach-mark-min-width); + --spectrum-coachmark-width: var(--system-coach-mark-width); + --spectrum-coachmark-max-width: var(--system-coach-mark-max-width); + --spectrum-coachmark-media-height: var(--system-coach-mark-media-height); + --spectrum-coachmark-media-min-height: var(--system-coach-mark-media-min-height); + --spectrum-coachmark-padding: var(--system-coach-mark-padding); + --spectrum-coachmark-heading-to-action-button: var(--system-coach-mark-heading-to-action-button); + --spectrum-coachmark-header-to-body: var(--system-coach-mark-header-to-body); + --spectrum-coachmark-body-to-footer: var(--system-coach-mark-body-to-footer); + --spectrum-coachmark-title-color: var(--system-coach-mark-title-color); + --spectrum-coachmark-title-font-family: var(--system-coach-mark-title-font-family); + --spectrum-coachmark-title-font-style: var(--system-coach-mark-title-font-style); + --spectrum-coachmark-title-text-font-weight: var(--system-coach-mark-title-text-font-weight); + --spectrum-coachmark-title-font-size: var(--system-coach-mark-title-font-size); + --spectrum-coachmark-title-text-line-height: var(--system-coach-mark-title-text-line-height); + --spectrum-coachmark-content-font-color: var(--system-coach-mark-content-font-color); + --spectrum-coachmark-content-font-weight: var(--system-coach-mark-content-font-weight); + --spectrum-coachmark-content-font-family: var(--system-coach-mark-content-font-family); + --spectrum-coachmark-content-font-style: var(--system-coach-mark-content-font-style); + --spectrum-coachmark-content-line-height: var(--system-coach-mark-content-line-height); + --spectrum-coachmark-content-font-size: var(--system-coach-mark-content-font-size); + --spectrum-coachmark-step-color: var(--system-coach-mark-step-color); + --spectrum-coachmark-step-font-weight: var(--system-coach-mark-step-font-weight); + --spectrum-coachmark-step-font-family: var(--system-coach-mark-step-font-family); + --spectrum-coachmark-step-font-style: var(--system-coach-mark-step-font-style); + --spectrum-coachmark-step-line-height: var(--system-coach-mark-step-line-height); + --spectrum-coachmark-step-font-size: var(--system-coach-mark-step-font-size); + --spectrum-coachmark-step-to-bottom: var(--system-coach-mark-step-to-bottom); + --spectrum-coachmark-popover-border-width: var(--system-coach-mark-popover-border-width); + --spectrum-coachmark-popover-corner-radius: var(--system-coach-mark-popover-corner-radius); + --spectrum-coachmark-buttongroup-spacing-horizontal: var(--system-coach-mark-buttongroup-spacing-horizontal); + --spectrum-colorarea-border-radius: var(--system-color-area-border-radius); + --spectrum-colorarea-border-color-rgb: var(--system-color-area-border-color-rgb); + --spectrum-colorarea-border-color-opacity: var(--system-color-area-border-color-opacity); + --spectrum-colorarea-border-color: var(--system-color-area-border-color); + --spectrum-colorarea-disabled-background-color: var(--system-color-area-disabled-background-color); + --spectrum-colorarea-border-width: var(--system-color-area-border-width); + --spectrum-colorarea-height: var(--system-color-area-height); + --spectrum-colorarea-width: var(--system-color-area-width); + --spectrum-colorarea-min-width: var(--system-color-area-min-width); + --spectrum-colorarea-min-height: var(--system-color-area-min-height); + --spectrum-colorhandle-size: var(--system-color-handle-size); + --spectrum-colorhandle-focused-size: var(--system-color-handle-focused-size); + --spectrum-colorhandle-hitarea-size: var(--system-color-handle-hitarea-size); + --spectrum-colorhandle-animation-duration: var(--system-color-handle-animation-duration); + --spectrum-colorhandle-animation-easing: var(--system-color-handle-animation-easing); + --spectrum-colorhandle-outer-border-color: var(--system-color-handle-outer-border-color); + --spectrum-colorhandle-outer-border-width: var(--system-color-handle-outer-border-width); + --spectrum-colorhandle-inner-border-color: var(--system-color-handle-inner-border-color); + --spectrum-colorhandle-inner-border-width: var(--system-color-handle-inner-border-width); + --spectrum-colorhandle-border-width: var(--system-color-handle-border-width); + --spectrum-colorhandle-border-color: var(--system-color-handle-border-color); + --spectrum-colorhandle-border-color-disabled: var(--system-color-handle-border-color-disabled); + --spectrum-colorhandle-fill-color-disabled: var(--system-color-handle-fill-color-disabled); + --spectrum-colorloupe-width: var(--system-color-loupe-width); + --spectrum-colorloupe-height: var(--system-color-loupe-height); + --spectrum-colorloupe-offset: var(--system-color-loupe-offset); + --spectrum-colorloupe-animation-distance: var(--system-color-loupe-animation-distance); + --spectrum-colorloupe-drop-shadow-x: var(--system-color-loupe-drop-shadow-x); + --spectrum-colorloupe-drop-shadow-y: var(--system-color-loupe-drop-shadow-y); + --spectrum-colorloupe-drop-shadow-blur: var(--system-color-loupe-drop-shadow-blur); + --spectrum-colorloupe-drop-shadow-color: var(--system-color-loupe-drop-shadow-color); + --spectrum-colorloupe-outer-border-width: var(--system-color-loupe-outer-border-width); + --spectrum-colorloupe-inner-border-width: var(--system-color-loupe-inner-border-width); + --spectrum-colorloupe-outer-border-color: var(--system-color-loupe-outer-border-color); + --spectrum-colorloupe-inner-border-color: var(--system-color-loupe-inner-border-color); + --spectrum-colorloupe-checkerboard-dark-color: var(--system-color-loupe-checkerboard-dark-color); + --spectrum-colorloupe-checkerboard-light-color: var(--system-color-loupe-checkerboard-light-color); + --spectrum-color-slider-handle-margin-block: var(--system-color-slider-handle-margin-block); + --spectrum-color-slider-border-color-rgba: var(--system-color-slider-border-color-rgba); + --spectrum-color-slider-checkerboard-size: var(--system-color-slider-checkerboard-size); + --spectrum-color-slider-checkerboard-dark-color: var(--system-color-slider-checkerboard-dark-color); + --spectrum-color-slider-checkerboard-light-color: var(--system-color-slider-checkerboard-light-color); + --spectrum-colorwheel-width: var(--system-color-wheel-width); + --spectrum-colorwheel-min-width: var(--system-color-wheel-min-width); + --spectrum-colorwheel-height: var(--system-color-wheel-height); + --spectrum-colorwheel-border-color: var(--system-color-wheel-border-color); + --spectrum-colorwheel-border-width: var(--system-color-wheel-border-width); + --spectrum-colorwheel-fill-color-disabled: var(--system-color-wheel-fill-color-disabled); + --spectrum-colorwheel-track-width: var(--system-color-wheel-track-width); + --spectrum-colorwheel-colorarea-margin: var(--system-color-wheel-colorarea-margin); + --spectrum-colorwheel-colorhandle-position: var(--system-color-wheel-colorhandle-position); + --spectrum-combobox-border-color-default: var(--system-combobox-border-color-default); + --spectrum-combobox-border-color-hover: var(--system-combobox-border-color-hover); + --spectrum-combobox-border-color-focus: var(--system-combobox-border-color-focus); + --spectrum-combobox-border-color-focus-hover: var(--system-combobox-border-color-focus-hover); + --spectrum-combobox-border-color-key-focus: var(--system-combobox-border-color-key-focus); + --spectrum-combobox-inline-size: var(--system-combobox-inline-size); + --spectrum-combobox-minimum-width-multiplier: var(--system-combobox-quiet-minimum-width-multiplier); + --spectrum-combobox-focus-indicator-thickness: var(--system-combobox-focus-indicator-thickness); + --spectrum-combobox-focus-indicator-gap: var(--system-combobox-focus-indicator-gap); + --spectrum-combobox-focus-indicator-color: var(--system-combobox-focus-indicator-color); + --spectrum-combobox-border-radius: var(--system-combobox-border-radius); + --spectrum-combobox-border-width: var(--system-combobox-border-width); + --spectrum-combobox-spacing-label-to-combobox: var(--system-combobox-quiet-size-xl-spacing-label-to); + --spectrum-combobox-font-style: var(--system-combobox-font-style); + --spectrum-combobox-line-height: var(--system-combobox-line-height); + --spectrum-combobox-border-color-invalid-default: var(--system-combobox-border-color-invalid-default); + --spectrum-combobox-border-color-invalid-hover: var(--system-combobox-border-color-invalid-hover); + --spectrum-combobox-border-color-invalid-focus: var(--system-combobox-border-color-invalid-focus); + --spectrum-combobox-border-color-invalid-focus-hover: var(--system-combobox-border-color-invalid-focus-hover); + --spectrum-combobox-border-color-invalid-key-focus: var(--system-combobox-border-color-invalid-key-focus); + --spectrum-combobox-block-size: var(--system-combobox-size-xl-block-size); + --spectrum-combobox-icon-size: var(--system-combobox-size-xl-icon-size); + --spectrum-combobox-font-size: var(--system-combobox-size-xl-font-size); + --spectrum-combobox-spacing-inline-icon-to-button: var(--system-combobox-quiet-spacing-inline-icon-to-button); + --spectrum-combobox-block-spacing-edge-to-progress-circle: var(--system-combobox-size-xl-block-spacing-edge-to-progress-circle); + --spectrum-combobox-block-spacing-edge-to-alert: var(--system-combobox-size-xl-block-spacing-edge-to-alert); + --spectrum-combobox-spacing-edge-to-menu: var(--system-combobox-size-xl-spacing-edge-to-menu); + --spectrum-combobox-spacing-block-start-edge-to-text: var(--system-combobox-size-xl-spacing-block-start-edge-to-text); + --spectrum-combobox-spacing-block-end-edge-to-text: var(--system-combobox-size-xl-spacing-block-end-edge-to-text); + --spectrum-combobox-spacing-inline-start-edge-to-text: var(--system-combobox-quiet-spacing-inline-start-edge-to-text); + --spectrum-combobox-spacing-inline-end-edge-to-text: var(--system-combobox-size-xl-spacing-inline-end-edge-to-text); + --spectrum-contextual-help-padding: var(--system-contextual-help-padding); + --spectrum-contextual-help-link-spacing: var(--system-contextual-help-link-spacing); + --spectrum-contextual-help-heading-size: var(--system-contextual-help-heading-size); + --spectrum-contextual-help-heading-color: var(--system-contextual-help-heading-color); + --spectrum-contextual-help-body-color: var(--system-contextual-help-body-color); + --spectrum-datepicker-initial-height: var(--system-date-picker-initial-height); + --spectrum-datepicker-border-radius: var(--system-date-picker-border-radius); + --spectrum-datepicker-border-radius-quiet: var(--system-date-picker-border-radius-quiet); + --spectrum-datepicker-border-width: var(--system-date-picker-border-width); + --spectrum-datepicker-min-width: var(--system-date-picker-min-width); + --spectrum-datepicker-icon-size: var(--system-date-picker-icon-size); + --spectrum-datepicker-pickerbutton-border-color: var(--system-date-picker-pickerbutton-border-color); + --spectrum-datepicker-pickerbutton-border-color-invalid: var(--system-date-picker-pickerbutton-border-color-invalid); + --spectrum-datepicker-pickerbutton-width: var(--system-date-picker-pickerbutton-width); + --spectrum-datepicker-pickerbutton-width-quiet: var(--system-date-picker-pickerbutton-width-quiet); + --spectrum-datepicker-quiet-button-offset: var(--system-date-picker-quiet-button-offset); + --spectrum-datepicker-icon-to-button: var(--system-date-picker-icon-to-button); + --spectrum-datepicker-icon-to-text: var(--system-date-picker-icon-to-text); + --spectrum-datepicker-focus-ring-gap: var(--system-date-picker-focus-ring-gap); + --spectrum-datepicker-focus-thickness: var(--system-date-picker-focus-thickness); + --spectrum-datepicker-focus-animation: var(--system-date-picker-focus-animation); + --spectrum-datepicker-focus-ring-width: var(--system-date-picker-focus-ring-width); + --spectrum-datepicker-focus-ring-color: var(--system-date-picker-focus-ring-color); + --spectrum-datepicker-focus-line-gap: var(--system-date-picker-focus-line-gap); + --spectrum-datepicker-invalid-quiet-color: var(--system-date-picker-invalid-quiet-color); + --spectrum-datepicker-quiet-border-color-hover: var(--system-date-picker-quiet-border-color-hover); + --spectrum-datepicker-border-color-disabled: var(--system-date-picker-border-color-disabled); + --spectrum-datepicker-dash-font-size: var(--system-date-picker-dash-font-size); + --spectrum-datepicker-dash-color: var(--system-date-picker-dash-color); + --spectrum-datepicker-dash-color-disabled: var(--system-date-picker-dash-color-disabled); + --spectrum-datepicker-range-dash-marin-inline-start: var(--system-date-picker-range-dash-marin-inline-start); + --spectrum-datepicker-range-dash-padding-top: var(--system-date-picker-range-dash-padding-top); + --spectrum-datepicker-input-width-base: var(--system-date-picker-input-width-base); + --spectrum-datepicker-input-width: var(--system-date-picker-input-width); + --spectrum-datepicker-input-width-quiet: var(--system-date-picker-input-width-quiet); + --spectrum-datepicker-range-input-width-first: var(--system-date-picker-range-input-width-first); + --spectrum-datepicker-range-input-width-quiet-first: var(--system-date-picker-range-input-width-quiet-first); + --spectrum-datepicker-datetime-input-width-first: var(--system-date-picker-datetime-input-width-first); + --spectrum-datepicker-datetime-input-width: var(--system-date-picker-datetime-input-width); + --spectrum-datepicker-datetime-quiet-input-width-first: var(--system-date-picker-datetime-quiet-input-width-first); + --spectrum-datepicker-datetime-quiet-input-width: var(--system-date-picker-datetime-quiet-input-width); + --spectrum-datepicker-padding-inline-end: var(--system-date-picker-padding-inline-end); + --spectrum-datepicker-padding-inline-end-quiet: var(--system-date-picker-padding-inline-end-quiet); + --spectrum-datepicker-padding-inline-end-invalid: var(--system-date-picker-padding-inline-end-invalid); + --spectrum-datepicker-padding-inline-end-invalid-quiet: var(--system-date-picker-padding-inline-end-invalid-quiet); + --spectrum-dial-background-color-default: var(--system-dial-background-color-default); + --spectrum-dial-handle-marker-color-disabled: var(--system-dial-handle-marker-color-disabled); + --spectrum-dial-border-color-disabled: var(--system-dial-border-color-disabled); + --spectrum-dial-handle-marker-color: var(--system-dial-handle-marker-color); + --spectrum-dial-border-color: var(--system-dial-border-color); + --spectrum-dial-handle-marker-color-down: var(--system-dial-handle-marker-color-down); + --spectrum-dial-border-color-down: var(--system-dial-border-color-down); + --spectrum-dial-handle-marker-color-hover: var(--system-dial-handle-marker-color-hover); + --spectrum-dial-border-color-hover: var(--system-dial-border-color-hover); + --spectrum-dial-handle-marker-color-key-focus: var(--system-dial-handle-marker-color-key-focus); + --spectrum-dial-border-color-key-focus: var(--system-dial-border-color-key-focus); + --spectrum-dial-handle-marker-color-mouse-focus: var(--system-dial-handle-marker-color-mouse-focus); + --spectrum-dial-border-color-mouse-focus: var(--system-dial-border-color-mouse-focus); + --spectrum-dial-min-max-tick-color: var(--system-dial-min-max-tick-color); + --spectrum-dial-label-text-color: var(--system-dial-label-text-color); + --spectrum-dial-label-text-color-disabled: var(--system-dial-label-text-color-disabled); + --spectrum-dial-handle-border-color-disabled: var(--system-dial-handle-border-color-disabled); + --spectrum-dial-container-width: var(--system-dial-container-width); + --spectrum-dial-handle-marker-width: var(--system-dial-handle-marker-width); + --spectrum-dial-handle-marker-height: var(--system-dial-handle-marker-height); + --spectrum-dial-handle-marker-border-radius: var(--system-dial-handle-marker-border-radius); + --spectrum-dial-handle-size: var(--system-dial-handle-size); + --spectrum-dial-min-height: var(--system-dial-min-height); + --spectrum-dial-controls-min-height: var(--system-dial-controls-min-height); + --spectrum-dial-min-max-tick-angles: var(--system-dial-min-max-tick-angles); + --spectrum-dial-width: var(--system-dial-small-width); + --spectrum-dial-height: var(--system-dial-small-height); + --spectrum-dial-handle-border-size: var(--system-dial-handle-border-size); + --spectrum-dial-label-text-size: var(--system-dial-label-text-size); + --spectrum-dial-label-line-height: var(--system-dial-label-line-height); + --spectrum-dialog-fullscreen-header-text-size: var(--system-dialog-fullscreen-header-text-size); + --spectrum-dialog-min-inline-size: var(--system-dialog-min-inline-size); + --spectrum-dialog-confirm-small-width: var(--system-dialog-confirm-small-width); + --spectrum-dialog-confirm-medium-width: var(--system-dialog-confirm-medium-width); + --spectrum-dialog-confirm-large-width: var(--system-dialog-confirm-large-width); + --spectrum-dialog-confirm-divider-block-spacing-start: var(--system-dialog-confirm-divider-block-spacing-start); + --spectrum-dialog-confirm-divider-block-spacing-end: var(--system-dialog-confirm-divider-block-spacing-end); + --spectrum-dialog-confirm-description-text-color: var(--system-dialog-confirm-description-text-color); + --spectrum-dialog-confirm-title-text-color: var(--system-dialog-confirm-title-text-color); + --spectrum-dialog-confirm-description-text-line-height: var(--system-dialog-confirm-description-text-line-height); + --spectrum-dialog-confirm-title-text-line-height: var(--system-dialog-confirm-title-text-line-height); + --spectrum-dialog-heading-font-weight: var(--system-dialog-heading-font-weight); + --spectrum-dialog-confirm-description-padding: var(--system-dialog-confirm-description-padding); + --spectrum-dialog-confirm-description-margin: var(--system-dialog-confirm-description-margin); + --spectrum-dialog-confirm-footer-padding-top: var(--system-dialog-confirm-footer-padding-top); + --spectrum-dialog-confirm-gap-size: var(--system-dialog-confirm-gap-size); + --spectrum-dialog-confirm-buttongroup-padding-top: var(--system-dialog-confirm-buttongroup-padding-top); + --spectrum-dialog-confirm-close-button-size: var(--system-dialog-confirm-close-button-size); + --spectrum-dialog-confirm-close-button-padding: var(--system-dialog-confirm-close-button-padding); + --spectrum-dialog-confirm-divider-height: var(--system-dialog-confirm-divider-height); + --spectrum-divider-background-color-small: var(--system-divider-background-color-small); + --spectrum-divider-background-color-medium: var(--system-divider-background-color-medium); + --spectrum-divider-background-color-large: var(--system-divider-background-color-large); + --spectrum-divider-background-color-small-static-white: var(--system-divider-background-color-small-static-white); + --spectrum-divider-background-color-medium-static-white: var(--system-divider-background-color-medium-static-white); + --spectrum-divider-background-color-large-static-white: var(--system-divider-background-color-large-static-white); + --spectrum-divider-background-color-small-static-black: var(--system-divider-background-color-small-static-black); + --spectrum-divider-background-color-medium-static-black: var(--system-divider-background-color-medium-static-black); + --spectrum-divider-background-color-large-static-black: var(--system-divider-background-color-large-static-black); + --spectrum-dropindicator-border-color: var(--system-drop-indicator-border-color); + --spectrum-dropindicator-circle-color: var(--system-drop-indicator-circle-color); + --spectrum-dropindicator-border-size: var(--system-drop-indicator-border-size); + --spectrum-dropindicator-circle-size: var(--system-drop-indicator-circle-size); + --spectrum-drop-zone-padding: var(--system-drop-zone-padding); + --spectrum-drop-zone-illustration-to-heading: var(--system-drop-zone-illustration-to-heading); + --spectrum-drop-zone-heading-to-body: var(--system-drop-zone-heading-to-body); + --spectrum-drop-zone-border-width: var(--system-drop-zone-border-width); + --spectrum-drop-zone-corner-radius: var(--system-drop-zone-corner-radius); + --spectrum-drop-zone-border-color: var(--system-drop-zone-border-color); + --spectrum-drop-zone-heading-font-family: var(--system-drop-zone-heading-font-family); + --spectrum-drop-zone-heading-font-weight: var(--system-drop-zone-heading-font-weight); + --spectrum-drop-zone-heading-font-style: var(--system-drop-zone-heading-font-style); + --spectrum-drop-zone-heading-font-size: var(--system-drop-zone-heading-font-size); + --spectrum-drop-zone-heading-line-height: var(--system-drop-zone-heading-line-height); + --spectrum-drop-zone-heading-color: var(--system-drop-zone-heading-color); + --spectrum-drop-zone-body-font-family: var(--system-drop-zone-body-font-family); + --spectrum-drop-zone-body-font-weight: var(--system-drop-zone-body-font-weight); + --spectrum-drop-zone-body-font-style: var(--system-drop-zone-body-font-style); + --spectrum-drop-zone-body-font-size: var(--system-drop-zone-body-font-size); + --spectrum-drop-zone-body-line-height: var(--system-drop-zone-body-line-height); + --spectrum-drop-zone-body-color: var(--system-drop-zone-body-color); + --spectrum-drop-zone-background-color: var(--system-drop-zone-background-color); + --spectrum-drop-zone-border-color-hover: var(--system-drop-zone-border-color-hover); + --spectrum-drop-zone-illustration-color: var(--system-drop-zone-illustration-color); + --spectrum-drop-zone-illustration-color-hover: var(--system-drop-zone-illustration-color-hover); + --spectrum-drop-zone-content-height: var(--system-drop-zone-content-height); + --spectrum-drop-zone-content-max-width: var(--system-drop-zone-content-max-width); + --spectrum-drop-zone-content-edge-to-text: var(--system-drop-zone-content-edge-to-text); + --spectrum-drop-zone-content-top-to-text: var(--system-drop-zone-content-top-to-text); + --spectrum-drop-zone-content-bottom-to-text: var(--system-drop-zone-content-bottom-to-text); + --spectrum-drop-zone-content-font-family: var(--system-drop-zone-content-font-family); + --spectrum-drop-zone-content-font-weight: var(--system-drop-zone-content-font-weight); + --spectrum-drop-zone-content-font-style: var(--system-drop-zone-content-font-style); + --spectrum-drop-zone-content-font-size: var(--system-drop-zone-content-font-size); + --spectrum-drop-zone-content-line-height: var(--system-drop-zone-content-line-height); + --spectrum-drop-zone-content-background-color: var(--system-drop-zone-content-background-color); + --spectrum-drop-zone-content-color: var(--system-drop-zone-content-color); + --spectrum-drop-zone-heading-font-size-cjk: var(--system-drop-zone-heading-font-size-cjk); + --spectrum-fieldgroup-margin: var(--system-field-group-margin); + --spectrum-fieldgroup-readonly-delimiter: var(--system-field-group-readonly-delimiter); + --spectrum-fieldlabel-min-height: var(--system-field-label-size-xl-min-height); + --spectrum-fieldlabel-color: var(--system-field-label-color); + --spectrum-field-label-text-to-asterisk: var(--system-field-label-size-xl-text-to-asterisk); + --spectrum-fieldlabel-font-weight: var(--system-field-label-font-weight); + --spectrum-fieldlabel-line-height: var(--system-field-label-line-height); + --spectrum-fieldlabel-line-height-cjk: var(--system-field-label-line-height-cjk); + --spectrum-fieldlabel-top-to-text: var(--system-field-label-size-xl-top-to-text); + --spectrum-fieldlabel-bottom-to-text: var(--system-field-label-size-xl-bottom-to-text); + --spectrum-fieldlabel-font-size: var(--system-field-label-size-xl-font-size); + --spectrum-fieldlabel-side-margin-block-start: var(--system-field-label-size-xl-side-margin-block-start); + --spectrum-fieldlabel-side-padding-right: var(--system-field-label-size-xl-side-padding-right); + --spectrum-floating-action-button-size: var(--system-floating-action-button-size); + --spectrum-floating-action-button-icon-size: var(--system-floating-action-button-icon-size); + --spectrum-floating-action-button-padding: var(--system-floating-action-button-padding); + --spectrum-floating-action-button-margin: var(--system-floating-action-button-margin); + --spectrum-floating-action-button-drop-shadow-x: var(--system-floating-action-button-drop-shadow-x); + --spectrum-floating-action-button-focus-ring-width: var(--system-floating-action-button-focus-ring-width); + --spectrum-floating-action-button-focus-ring-gap: var(--system-floating-action-button-focus-ring-gap); + --spectrum-floating-action-button-focus-ring-color: var(--system-floating-action-button-focus-ring-color); + --spectrum-floating-action-button-background-color: var(--system-floating-action-button-secondary-background-color); + --spectrum-floating-action-button-background-color-hover: var(--system-floating-action-button-secondary-background-color-hover); + --spectrum-floating-action-button-background-color-down: var(--system-floating-action-button-secondary-background-color-down); + --spectrum-floating-action-button-background-color-key-focus: var(--system-floating-action-button-secondary-background-color-key-focus); + --spectrum-floating-action-button-icon-color: var(--system-floating-action-button-secondary-icon-color); + --spectrum-floating-action-button-icon-color-hover: var(--system-floating-action-button-secondary-icon-color-hover); + --spectrum-floating-action-button-icon-color-down: var(--system-floating-action-button-secondary-icon-color-down); + --spectrum-floating-action-button-icon-color-key-focus: var(--system-floating-action-button-secondary-icon-color-key-focus); + --spectrum-helptext-line-height: var(--system-help-text-line-height); + --spectrum-helptext-content-color-default: var(--system-help-text-disabled-content-color-default); + --spectrum-helptext-icon-color-default: var(--system-help-text-disabled-icon-color-default); + --spectrum-helptext-disabled-content-color: var(--system-help-text-disabled-content-color); + --spectrum-helptext-line-height-cjk: var(--system-help-text-lang-ko-line-height-cjk); + --spectrum-helptext-min-height: var(--system-help-text-size-xl-min-height); + --spectrum-helptext-icon-size: var(--system-help-text-size-xl-icon-size); + --spectrum-helptext-font-size: var(--system-help-text-size-xl-font-size); + --spectrum-helptext-text-to-visual: var(--system-help-text-size-xl-text-to-visual); + --spectrum-helptext-top-to-workflow-icon: var(--system-help-text-size-xl-top-to-workflow-icon); + --spectrum-helptext-top-to-text: var(--system-help-text-size-xl-top-to-text); + --spectrum-helptext-bottom-to-text: var(--system-help-text-size-xl-bottom-to-text); + --spectrum-icon-size-xxs: var(--system-icon-size-xxs); + --spectrum-icon-size-xs: var(--system-icon-size-xs); + --spectrum-icon-size-s: var(--system-icon-size-s); + --spectrum-icon-size-m: var(--system-icon-size-m); + --spectrum-icon-size-l: var(--system-icon-size-l); + --spectrum-icon-size-xl: var(--system-icon-size-xl); + --spectrum-icon-size-xxl: var(--system-icon-size-xxl); + --spectrum-icon-size: var(--system-ui-icon-asterisk-300-icon-size); + --spectrum-illustrated-message-description-max-inline-size: var(--system-illustrated-message-description-max-inline-size); + --spectrum-illustrated-message-heading-max-inline-size: var(--system-illustrated-message-heading-max-inline-size); + --spectrum-illustrated-message-title-to-heading: var(--system-illustrated-message-title-to-heading); + --spectrum-illustrated-message-heading-to-description: var(--system-illustrated-message-heading-to-description); + --spectrum-illustrated-message-illustration-color: var(--system-illustrated-message-illustration-color); + --spectrum-illustrated-message-illustration-accent-color: var(--system-illustrated-message-illustration-accent-color); + --spectrum-illustrated-message-title-font-family: var(--system-illustrated-message-title-font-family); + --spectrum-illustrated-message-title-font-weight: var(--system-illustrated-message-title-font-weight); + --spectrum-illustrated-message-title-font-style: var(--system-illustrated-message-title-font-style); + --spectrum-illustrated-message-title-font-size: var(--system-illustrated-message-lang-ko-title-font-size); + --spectrum-illustrated-message-title-line-height: var(--system-illustrated-message-title-line-height); + --spectrum-illustrated-message-title-color: var(--system-illustrated-message-title-color); + --spectrum-illustrated-message-description-font-family: var(--system-illustrated-message-description-font-family); + --spectrum-illustrated-message-description-font-weight: var(--system-illustrated-message-description-font-weight); + --spectrum-illustrated-message-description-font-style: var(--system-illustrated-message-description-font-style); + --spectrum-illustrated-message-description-font-size: var(--system-illustrated-message-description-font-size); + --spectrum-illustrated-message-description-line-height: var(--system-illustrated-message-description-line-height); + --spectrum-illustrated-message-description-color: var(--system-illustrated-message-description-color); + --spectrum-infield-button-border-width: var(--system-infield-button-quiet-border-width); + --spectrum-infield-button-border-color: var(--system-infield-button-quiet-disabled-border-color); + --spectrum-infield-button-border-radius: var(--system-infield-button-border-radius); + --spectrum-infield-button-border-radius-reset: var(--system-infield-button-border-radius-reset); + --spectrum-infield-button-stacked-top-border-radius-start-start: var(--system-infield-button-stacked-top-border-radius-start-start); + --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--system-infield-button-stacked-bottom-border-radius-end-start); + --spectrum-infield-button-background-color: var(--system-infield-button-quiet-disabled-background-color); + --spectrum-infield-button-background-color-hover: var(--system-infield-button-quiet-background-color-hover); + --spectrum-infield-button-background-color-down: var(--system-infield-button-quiet-background-color-down); + --spectrum-infield-button-background-color-key-focus: var(--system-infield-button-quiet-background-color-key-focus); + --spectrum-infield-button-height: var(--system-infield-button-size-xl-height); + --spectrum-infield-button-width: var(--system-infield-button-bottom-size-xl-width); + --spectrum-infield-button-stacked-border-radius-reset: var(--system-infield-button-stacked-border-radius-reset); + --spectrum-infield-button-edge-to-fill: var(--system-infield-button-edge-to-fill); + --spectrum-infield-button-inner-edge-to-fill: var(--system-infield-button-inner-edge-to-fill); + --spectrum-infield-button-fill-padding: var(--system-infield-button-fill-padding); + --spectrum-infield-button-stacked-fill-padding-inline: var(--system-infield-button-size-xl-stacked-fill-padding-inline); + --spectrum-infield-button-stacked-fill-padding-outer: var(--system-infield-button-size-xl-stacked-fill-padding-outer); + --spectrum-infield-button-stacked-fill-padding-inner: var(--system-infield-button-size-xl-stacked-fill-padding-inner); + --spectrum-infield-button-animation-duration: var(--system-infield-button-animation-duration); + --spectrum-infield-button-icon-color: var(--system-infield-button-disabled-icon-color); + --spectrum-infield-button-icon-color-hover: var(--system-infield-button-disabled-icon-color-hover); + --spectrum-infield-button-icon-color-down: var(--system-infield-button-disabled-icon-color-down); + --spectrum-infield-button-icon-color-key-focus: var(--system-infield-button-disabled-icon-color-key-focus); + --spectrum-infield-button-fill-justify-content: var(--system-infield-button-fill-justify-content); + --spectrum-infield-border-color: var(--system-infield-button-quiet-infield-border-color); + --spectrum-inlinealert-heading-font-family: var(--system-in-line-alert-heading-font-family); + --spectrum-inlinealert-heading-font-weight: var(--system-in-line-alert-heading-font-weight); + --spectrum-inlinealert-heading-font-style: var(--system-in-line-alert-heading-font-style); + --spectrum-inlinealert-heading-font-size: var(--system-in-line-alert-heading-font-size); + --spectrum-inlinealert-heading-line-height: var(--system-in-line-alert-heading-line-height); + --spectrum-inlinealert-content-font-family: var(--system-in-line-alert-content-font-family); + --spectrum-inlinealert-content-font-weight: var(--system-in-line-alert-content-font-weight); + --spectrum-inlinealert-content-font-style: var(--system-in-line-alert-content-font-style); + --spectrum-inlinealert-content-font-size: var(--system-in-line-alert-content-font-size); + --spectrum-inlinealert-content-line-height: var(--system-in-line-alert-content-line-height); + --spectrum-inlinealert-border-width: var(--system-in-line-alert-border-width); + --spectrum-inlinealert-border-radius: var(--system-in-line-alert-border-radius); + --spectrum-inlinealert-icon-size: var(--system-in-line-alert-icon-size); + --spectrum-inlinealert-min-inline-size: var(--system-in-line-alert-min-inline-size); + --spectrum-inlinealert-header-min-block-size: var(--system-in-line-alert-header-min-block-size); + --spectrum-inlinealert-spacing-edge-to-text: var(--system-in-line-alert-spacing-edge-to-text); + --spectrum-inlinealert-spacing-header-to-icon: var(--system-in-line-alert-spacing-header-to-icon); + --spectrum-inlinealert-spacing-header-content-button: var(--system-in-line-alert-spacing-header-content-button); + --spectrum-inlinealert-background-color: var(--system-in-line-alert-background-color); + --spectrum-inlinealert-border-and-icon-color: var(--system-in-line-alert-border-and-icon-color); + --spectrum-inlinealert-header-color: var(--system-in-line-alert-header-color); + --spectrum-inlinealert-content-color: var(--system-in-line-alert-content-color); + --spectrum-inlinealert-border-and-icon-color-info: var(--system-in-line-alert-border-and-icon-color-info); + --spectrum-inlinealert-border-and-icon-color-positive: var(--system-in-line-alert-border-and-icon-color-positive); + --spectrum-inlinealert-border-and-icon-color-notice: var(--system-in-line-alert-border-and-icon-color-notice); + --spectrum-inlinealert-border-and-icon-color-negative: var(--system-in-line-alert-border-and-icon-color-negative); + --spectrum-link-animation-duration: var(--system-link-animation-duration); + --spectrum-link-text-color-primary-default: var(--system-link-text-color-primary-default); + --spectrum-link-text-color-primary-hover: var(--system-link-text-color-primary-hover); + --spectrum-link-text-color-primary-active: var(--system-link-text-color-primary-active); + --spectrum-link-text-color-primary-focus: var(--system-link-text-color-primary-focus); + --spectrum-link-text-color-secondary-default: var(--system-link-text-color-secondary-default); + --spectrum-link-text-color-secondary-hover: var(--system-link-text-color-secondary-hover); + --spectrum-link-text-color-secondary-active: var(--system-link-text-color-secondary-active); + --spectrum-link-text-color-secondary-focus: var(--system-link-text-color-secondary-focus); + --spectrum-link-text-color-white: var(--system-link-text-color-white); + --spectrum-link-text-color-black: var(--system-link-text-color-black); + --spectrum-logic-button-height: var(--system-logic-button-height); + --spectrum-logic-button-padding: var(--system-logic-button-padding); + --spectrum-logic-button-font-size: var(--system-logic-button-font-size); + --spectrum-logic-button-font-weight: var(--system-logic-button-font-weight); + --spectrum-logic-button-border-width: var(--system-logic-button-border-width); + --spectrum-logic-button-border-radius: var(--system-logic-button-border-radius); + --spectrum-logic-button-focus-indicator-width: var(--system-logic-button-focus-indicator-width); + --spectrum-logic-button-focus-indicator-gap: var(--system-logic-button-focus-indicator-gap); + --spectrum-logic-button-focus-indicator-color: var(--system-logic-button-focus-indicator-color); + --spectrum-logic-button-and-text-color: var(--system-logic-button-and-text-color); + --spectrum-logic-button-and-background-color-default: var(--system-logic-button-and-background-color-default); + --spectrum-logic-button-and-background-color-hover: var(--system-logic-button-and-background-color-hover); + --spectrum-logic-button-and-border-color-hover: var(--system-logic-button-and-border-color-hover); + --spectrum-logic-button-or-text-color: var(--system-logic-button-or-text-color); + --spectrum-logic-button-and-background-color-default-disabled: var(--system-logic-button-and-background-color-default-disabled); + --spectrum-logic-button-and-border-color-disabled: var(--system-logic-button-and-border-color-disabled); + --spectrum-logic-button-and-text-color-disabled: var(--system-logic-button-and-text-color-disabled); + --spectrum-logic-button-and-background-color-hover-disabled: var(--system-logic-button-and-background-color-hover-disabled); + --spectrum-logic-button-and-border-color-hover-disabled: var(--system-logic-button-and-border-color-hover-disabled); + --spectrum-logic-button-or-background-color-disabled: var(--system-logic-button-or-background-color-disabled); + --spectrum-logic-button-or-border-color-disabled: var(--system-logic-button-or-border-color-disabled); + --spectrum-logic-button-or-text-color-disabled: var(--system-logic-button-or-text-color-disabled); + --spectrum-logic-button-or-background-color-hover-disabled: var(--system-logic-button-or-background-color-hover-disabled); + --spectrum-logic-button-or-border-color-hover-disabled: var(--system-logic-button-or-border-color-hover-disabled); + --spectrum-menu-item-top-to-action: var(--system-menu-item-top-to-action); + --spectrum-menu-item-top-to-checkbox: var(--system-menu-item-top-to-checkbox); + --spectrum-menu-item-label-line-height: var(--system-menu-item-label-line-height); + --spectrum-menu-item-label-line-height-cjk: var(--system-menu-item-label-line-height-cjk); + --spectrum-menu-item-label-to-description-spacing: var(--system-menu-item-label-to-description-spacing); + --spectrum-menu-item-focus-indicator-width: var(--system-menu-item-focus-indicator-width); + --spectrum-menu-item-focus-indicator-color: var(--system-menu-item-focus-indicator-color); + --spectrum-menu-item-label-to-value-area-min-spacing: var(--system-menu-item-label-to-value-area-min-spacing); + --spectrum-menu-item-label-content-color-default: var(--system-menu-item-label-content-color-default); + --spectrum-menu-item-label-content-color-hover: var(--system-menu-item-label-content-color-hover); + --spectrum-menu-item-label-content-color-down: var(--system-menu-item-label-content-color-down); + --spectrum-menu-item-label-content-color-focus: var(--system-menu-item-label-content-color-focus); + --spectrum-menu-item-label-icon-color-default: var(--system-menu-item-label-icon-color-default); + --spectrum-menu-item-label-icon-color-hover: var(--system-menu-item-label-icon-color-hover); + --spectrum-menu-item-label-icon-color-down: var(--system-menu-item-label-icon-color-down); + --spectrum-menu-item-label-icon-color-focus: var(--system-menu-item-label-icon-color-focus); + --spectrum-menu-item-label-content-color-disabled: var(--system-menu-item-label-content-color-disabled); + --spectrum-menu-item-label-icon-color-disabled: var(--system-menu-item-label-icon-color-disabled); + --spectrum-menu-item-description-line-height: var(--system-menu-item-description-line-height); + --spectrum-menu-item-description-line-height-cjk: var(--system-menu-item-description-line-height-cjk); + --spectrum-menu-item-description-color-default: var(--system-menu-item-description-color-default); + --spectrum-menu-item-description-color-hover: var(--system-menu-item-description-color-hover); + --spectrum-menu-item-description-color-down: var(--system-menu-item-description-color-down); + --spectrum-menu-item-description-color-focus: var(--system-menu-item-description-color-focus); + --spectrum-menu-item-description-color-disabled: var(--system-menu-item-description-color-disabled); + --spectrum-menu-section-header-line-height: var(--system-menu-section-header-line-height); + --spectrum-menu-section-header-line-height-cjk: var(--system-menu-section-header-line-height-cjk); + --spectrum-menu-section-header-font-weight: var(--system-menu-section-header-font-weight); + --spectrum-menu-section-header-color: var(--system-menu-section-header-color); + --spectrum-menu-collapsible-icon-color: var(--system-menu-collapsible-icon-color); + --spectrum-menu-checkmark-icon-color-default: var(--system-menu-checkmark-icon-color-default); + --spectrum-menu-checkmark-icon-color-hover: var(--system-menu-checkmark-icon-color-hover); + --spectrum-menu-checkmark-icon-color-down: var(--system-menu-checkmark-icon-color-down); + --spectrum-menu-checkmark-icon-color-focus: var(--system-menu-checkmark-icon-color-focus); + --spectrum-menu-drillin-icon-color-default: var(--system-menu-drillin-icon-color-default); + --spectrum-menu-drillin-icon-color-hover: var(--system-menu-drillin-icon-color-hover); + --spectrum-menu-drillin-icon-color-down: var(--system-menu-drillin-icon-color-down); + --spectrum-menu-drillin-icon-color-focus: var(--system-menu-drillin-icon-color-focus); + --spectrum-menu-item-value-color-default: var(--system-menu-item-value-color-default); + --spectrum-menu-item-value-color-hover: var(--system-menu-item-value-color-hover); + --spectrum-menu-item-value-color-down: var(--system-menu-item-value-color-down); + --spectrum-menu-item-value-color-focus: var(--system-menu-item-value-color-focus); + --spectrum-menu-checkmark-display-hidden: var(--system-menu-checkmark-display-hidden); + --spectrum-menu-checkmark-display-shown: var(--system-menu-checkmark-display-shown); + --spectrum-menu-checkmark-display: var(--system-menu-checkmark-display); + --spectrum-menu-item-collapsible-has-icon-submenu-item-padding-x-start: var(--system-menu-item-collapsible-has-icon-sub-item-padding-x-start); + --spectrum-menu-item-collapsible-no-icon-submenu-item-padding-x-start: var(--system-menu-item-collapsible-no-icon-sub-item-padding-x-start); + --spectrum-menu-item-background-color-default: var(--system-menu-item-background-color-default); + --spectrum-menu-item-background-color-hover: var(--system-menu-item-background-color-hover); + --spectrum-menu-item-background-color-down: var(--system-menu-item-background-color-down); + --spectrum-menu-item-background-color-key-focus: var(--system-menu-item-background-color-key-focus); + --spectrum-menu-item-min-height: var(--system-menu-size-xl-item-min-height); + --spectrum-menu-item-icon-height: var(--system-menu-size-xl-item-icon-height); + --spectrum-menu-item-icon-width: var(--system-menu-size-xl-item-icon-width); + --spectrum-menu-item-label-font-size: var(--system-menu-size-xl-item-label-font-size); + --spectrum-menu-item-label-text-to-visual: var(--system-menu-size-xl-item-label-text-to-visual); + --spectrum-menu-item-label-inline-edge-to-content: var(--system-menu-size-xl-item-label-inline-edge-to-content); + --spectrum-menu-item-top-edge-to-text: var(--system-menu-size-xl-item-top-edge-to-text); + --spectrum-menu-item-bottom-edge-to-text: var(--system-menu-size-xl-item-bottom-edge-to-text); + --spectrum-menu-item-text-to-control: var(--system-menu-size-xl-item-text-to-control); + --spectrum-menu-item-description-font-size: var(--system-menu-size-xl-item-description-font-size); + --spectrum-menu-section-header-font-size: var(--system-menu-size-xl-section-header-font-size); + --spectrum-menu-section-header-min-width: var(--system-menu-size-xl-section-header-min-width); + --spectrum-menu-item-selectable-edge-to-text-not-selected: var(--system-menu-size-xl-item-selectable-edge-to-text-not-selected); + --spectrum-menu-item-checkmark-height: var(--system-menu-size-xl-item-checkmark-height); + --spectrum-menu-item-checkmark-width: var(--system-menu-size-xl-item-checkmark-width); + --spectrum-menu-item-top-to-checkmark: var(--system-menu-size-xl-item-top-to-checkmark); + --spectrum-menu-back-icon-margin: var(--system-menu-size-xl-back-icon-margin); + --spectrum-millercolumns-inline-size: var(--system-miller-columns-inline-size); + --spectrum-millercolumns-padding: var(--system-miller-columns-padding); + --spectrum-millercolumns-margin-inline-start: var(--system-miller-columns-margin-inline-start); + --spectrum-millercolumns-margin-inline-end: var(--system-miller-columns-margin-inline-end); + --spectrum-modal-confirm-exit-animation-delay: var(--system-modal-confirm-exit-animation-delay); + --spectrum-modal-fullscreen-margin: var(--system-modal-fullscreen-margin); + --spectrum-modal-max-height: var(--system-modal-max-height); + --spectrum-modal-max-width: var(--system-modal-max-width); + --spectrum-modal-background-color: var(--system-modal-background-color); + --spectrum-modal-confirm-border-radius: var(--system-modal-confirm-border-radius); + --spectrum-modal-confirm-exit-animation-duration: var(--system-modal-confirm-exit-animation-duration); + --spectrum-modal-confirm-entry-animation-duration: var(--system-modal-confirm-entry-animation-duration); + --spectrum-modal-confirm-entry-animation-delay: var(--system-modal-confirm-entry-animation-delay); + --spectrum-modal-transition-animation-duration: var(--system-modal-transition-animation-duration); + --spectrum-opacity-checkerboard-dark: var(--system-opacity-checkerboard-dark); + --spectrum-opacity-checkerboard-light: var(--system-opacity-checkerboard-light); + --spectrum-opacity-checkerboard-size: var(--system-opacity-checkerboard-size); + --spectrum-opacity-checkerboard-position: var(--system-opacity-checkerboard-position); + --spectrum-pagination-counter-margin-inline-start: var(--system-pagination-counter-margin-inline-start); + --spectrum-pagination-page-button-inline-spacing: var(--system-pagination-page-button-inline-spacing); + --spectrum-pagination-counter-color: var(--system-pagination-counter-color); + --spectrum-pagination-counter-font-size: var(--system-pagination-counter-font-size); + --spectrum-pagination-counter-line-height: var(--system-pagination-counter-line-height); + --spectrum-picker-background-color-default: var(--system-picker-background-color-default); + --spectrum-picker-background-color-default-open: var(--system-picker-background-color-default-open); + --spectrum-picker-background-color-active: var(--system-picker-background-color-active); + --spectrum-picker-background-color-hover: var(--system-picker-background-color-hover); + --spectrum-picker-background-color-hover-open: var(--system-picker-background-color-hover-open); + --spectrum-picker-background-color-key-focus: var(--system-picker-background-color-key-focus); + --spectrum-picker-border-color-default: var(--system-picker-border-color-default); + --spectrum-picker-border-color-default-open: var(--system-picker-border-color-default-open); + --spectrum-picker-border-color-hover: var(--system-picker-border-color-hover); + --spectrum-picker-border-color-hover-open: var(--system-picker-border-color-hover-open); + --spectrum-picker-border-color-active: var(--system-picker-border-color-active); + --spectrum-picker-border-color-key-focus: var(--system-picker-border-color-key-focus); + --spectrum-picker-border-width: var(--system-picker-border-width); + --spectrum-picker-font-size: var(--system-picker-size-xl-font-size); + --spectrum-picker-font-weight: var(--system-picker-font-weight); + --spectrum-picker-placeholder-font-style: var(--system-picker-placeholder-font-style); + --spectrum-picker-line-height: var(--system-picker-line-height); + --spectrum-picker-block-size: var(--system-picker-size-xl-block-size); + --spectrum-picker-inline-size: var(--system-picker-inline-size); + --spectrum-picker-border-radius: var(--system-picker-border-radius); + --spectrum-picker-spacing-top-to-text: var(--system-picker-size-xl-spacing-top-to-text); + --spectrum-picker-spacing-bottom-to-text: var(--system-picker-size-xl-spacing-bottom-to-text); + --spectrum-picker-spacing-edge-to-text: var(--system-picker-size-xl-spacing-edge-to-text); + --spectrum-picker-spacing-edge-to-text-quiet: var(--system-picker-spacing-edge-to-text-quiet); + --spectrum-picker-spacing-label-to-picker: var(--system-picker-spacing-label-to); + --spectrum-picker-spacing-text-to-icon: var(--system-picker-size-xl-spacing-text-to-icon); + --spectrum-picker-spacing-text-to-icon-inline-end: var(--system-picker-size-xl-spacing-text-to-icon-inline-end); + --spectrum-picker-spacing-icon-to-disclosure-icon: var(--system-picker-size-xl-spacing-icon-to-disclosure-icon); + --spectrum-picker-spacing-label-to-picker-quiet: var(--system-picker-size-xl-spacing-label-to-quiet); + --spectrum-picker-spacing-top-to-alert-icon: var(--system-picker-size-xl-spacing-top-to-alert-icon); + --spectrum-picker-spacing-top-to-progress-circle: var(--system-picker-size-xl-spacing-top-to-progress-circle); + --spectrum-picker-spacing-top-to-disclosure-icon: var(--system-picker-size-xl-spacing-top-to-disclosure-icon); + --spectrum-picker-spacing-edge-to-disclosure-icon: var(--system-picker-size-xl-spacing-edge-to-disclosure-icon); + --spectrum-picker-spacing-edge-to-disclosure-icon-quiet: var(--system-picker-spacing-edge-to-disclosure-icon-quiet); + --spectrum-picker-animation-duration: var(--system-picker-animation-duration); + --spectrum-picker-font-color-default: var(--system-picker-font-color-default); + --spectrum-picker-font-color-default-open: var(--system-picker-font-color-default-open); + --spectrum-picker-font-color-hover: var(--system-picker-font-color-hover); + --spectrum-picker-font-color-hover-open: var(--system-picker-font-color-hover-open); + --spectrum-picker-font-color-active: var(--system-picker-font-color-active); + --spectrum-picker-font-color-key-focus: var(--system-picker-font-color-key-focus); + --spectrum-picker-icon-color-default: var(--system-picker-icon-color-default); + --spectrum-picker-icon-color-default-open: var(--system-picker-icon-color-default-open); + --spectrum-picker-icon-color-hover: var(--system-picker-icon-color-hover); + --spectrum-picker-icon-color-hover-open: var(--system-picker-icon-color-hover-open); + --spectrum-picker-icon-color-active: var(--system-picker-icon-color-active); + --spectrum-picker-icon-color-key-focus: var(--system-picker-icon-color-key-focus); + --spectrum-picker-border-color-error-default: var(--system-picker-border-color-error-default); + --spectrum-picker-border-color-error-default-open: var(--system-picker-border-color-error-default-open); + --spectrum-picker-border-color-error-hover: var(--system-picker-border-color-error-hover); + --spectrum-picker-border-color-error-hover-open: var(--system-picker-border-color-error-hover-open); + --spectrum-picker-border-color-error-active: var(--system-picker-border-color-error-active); + --spectrum-picker-border-color-error-key-focus: var(--system-picker-border-color-error-key-focus); + --spectrum-picker-icon-color-error: var(--system-picker-icon-color-error); + --spectrum-picker-background-color-disabled: var(--system-picker-background-color-disabled); + --spectrum-picker-font-color-disabled: var(--system-picker-font-color-disabled); + --spectrum-picker-icon-color-disabled: var(--system-picker-icon-color-disabled); + --spectrum-picker-focus-indicator-gap: var(--system-picker-focus-indicator-gap); + --spectrum-picker-focus-indicator-thickness: var(--system-picker-focus-indicator-thickness); + --spectrum-picker-focus-indicator-color: var(--system-picker-focus-indicator-color); + --spectrum-picker-spacing-picker-to-popover: var(--system-picker-size-xl-next-to-popover-bottom-open-spacing-to-popover); + --spectrum-picker-button-background-color: var(--system-picker-button-background-color); + --spectrum-picker-button-background-color-hover: var(--system-picker-button-background-color-hover); + --spectrum-picker-button-background-color-down: var(--system-picker-button-background-color-down); + --spectrum-picker-button-background-color-key-focus: var(--system-picker-button-background-color-key-focus); + --spectrum-picker-button-border-color: var(--system-picker-button-border-color); + --spectrum-picker-button-border-radius: var(--system-picker-button-border-radius); + --spectrum-picker-button-border-radius-rounded-sided: var(--system-picker-button-border-radius-rounded-sided); + --spectrum-picker-button-border-radius-sided: var(--system-picker-button-border-radius-sided); + --spectrum-picker-button-border-width: var(--system-picker-button-border-width); + --spectrum-picker-button-height: var(--system-picker-button-size-xl-height); + --spectrum-picker-button-width: var(--system-picker-button-size-xl-width); + --spectrum-picker-button-gap: var(--system-picker-button-gap); + --spectrum-picker-button-padding: var(--system-picker-button-padding); + --spectrum-picker-button-label-padding: var(--system-picker-button-size-xl-label-padding); + --spectrum-picker-button-fill-padding: var(--system-picker-button-size-xl-fill-padding); + --spectrum-picker-button-border-radius-rounded: var(--system-picker-button-border-radius-rounded); + --spectrum-picker-button-icon-color: var(--system-picker-button-icon-color); + --spectrum-picker-button-icon-color-hover: var(--system-picker-button-icon-color-hover); + --spectrum-picker-button-icon-color-down: var(--system-picker-button-icon-color-down); + --spectrum-picker-button-icon-color-key-focus: var(--system-picker-button-icon-color-key-focus); + --spectrum-picker-button-font-color: var(--system-picker-button-font-color); + --spectrum-picker-button-font-color-hover: var(--system-picker-button-font-color-hover); + --spectrum-picker-button-font-color-down: var(--system-picker-button-font-color-down); + --spectrum-picker-button-font-color-key-focus: var(--system-picker-button-font-color-key-focus); + --spectrum-picker-button-font-family: var(--system-picker-button-font-family); + --spectrum-picker-button-font-style: var(--system-picker-button-font-style); + --spectrum-picker-button-font-weight: var(--system-picker-button-font-weight); + --spectrum-picker-button-font-size: var(--system-picker-button-size-xl-font-size); + --spectrum-picker-button-background-animation-duration: var(--system-picker-button-background-animation-duration); + --spectrum-picker-button-background-color-disabled: var(--system-picker-button-background-color-disabled); + --spectrum-picker-button-background-color-hover-disabled: var(--system-picker-button-background-color-hover-disabled); + --spectrum-picker-button-background-color-down-disabled: var(--system-picker-button-background-color-down-disabled); + --spectrum-picker-button-border-color-disabled: var(--system-picker-button-border-color-disabled); + --spectrum-picker-button-font-color-disabled: var(--system-picker-button-font-color-disabled); + --spectrum-picker-button-font-color-hover-disabled: var(--system-picker-button-font-color-hover-disabled); + --spectrum-picker-button-font-color-down-disabled: var(--system-picker-button-font-color-down-disabled); + --spectrum-picker-button-icon-color-disabled: var(--system-picker-button-icon-color-disabled); + --spectrum-picker-button-icon-color-hover-disabled: var(--system-picker-button-icon-color-hover-disabled); + --spectrum-picker-button-icon-color-down-disabled: var(--system-picker-button-icon-color-down-disabled); + --spectrum-popover-border-width: var(--system-popover-border-width); + --spectrum-popover-animation-distance: var(--system-popover-animation-distance); + --spectrum-popover-background-color: var(--system-popover-background-color); + --spectrum-popover-border-color: var(--system-popover-border-color); + --spectrum-popover-content-area-spacing-vertical: var(--system-popover-content-area-spacing-vertical); + --spectrum-popover-shadow-horizontal: var(--system-popover-shadow-horizontal); + --spectrum-popover-shadow-vertical: var(--system-popover-shadow-vertical); + --spectrum-popover-shadow-blur: var(--system-popover-shadow-blur); + --spectrum-popover-shadow-color: var(--system-popover-shadow-color); + --spectrum-popover-corner-radius: var(--system-popover-corner-radius); + --spectrum-popover-pointer-width: var(--system-popover-pointer-width); + --spectrum-popover-pointer-height: var(--system-popover-pointer-height); + --spectrum-popover-pointer-edge-offset: var(--system-popover-pointer-edge-offset); + --spectrum-popover-pointer-edge-spacing: var(--system-popover-pointer-edge-spacing); + --spectrum-progressbar-animation-ease-in-out-indeterminate: var(--system-progress-bar-animation-ease-in-out-indeterminate); + --spectrum-progressbar-animation-duration-indeterminate: var(--system-progress-bar-animation-duration-indeterminate); + --spectrum-progressbar-corner-radius: var(--system-progress-bar-corner-radius); + --spectrum-progressbar-fill-size-indeterminate: var(--system-progress-bar-fill-size-indeterminate); + --spectrum-progressbar-size-2400: var(--system-progress-bar-size-2400); + --spectrum-progressbar-size-2500: var(--system-progress-bar-size-2500); + --spectrum-progressbar-size-2800: var(--system-progress-bar-size-2800); + --spectrum-progressbar-font-size: var(--system-meter-size-l-progressbar-font-size); + --spectrum-progressbar-line-height-cjk: var(--system-progress-bar-line-height-cjk); + --spectrum-progressbar-min-size: var(--system-progress-bar-min-size); + --spectrum-progressbar-max-size: var(--system-progress-bar-max-size); + --spectrum-progressbar-thickness: var(--system-meter-size-l-progressbar-thickness); + --spectrum-progressbar-line-height: var(--system-progress-bar-line-height); + --spectrum-progressbar-spacing-label-to-progressbar: var(--system-progress-bar-spacing-label-to); + --spectrum-progressbar-spacing-top-to-text: var(--system-meter-size-l-progressbar-spacing-top-to-text); + --spectrum-progressbar-spacing-label-to-text: var(--system-progress-bar-spacing-label-to-text); + --spectrum-progressbar-text-color: var(--system-progress-bar-text-color); + --spectrum-progressbar-track-color: var(--system-progress-bar-track-color); + --spectrum-progressbar-fill-color: var(--system-progress-bar-fill-color); + --spectrum-progressbar-fill-color-positive: var(--system-progress-bar-fill-color-positive); + --spectrum-progressbar-fill-color-notice: var(--system-progress-bar-fill-color-notice); + --spectrum-progressbar-fill-color-negative: var(--system-progress-bar-fill-color-negative); + --spectrum-progressbar-label-and-value-white: var(--system-progress-bar-label-and-value-white); + --spectrum-progressbar-track-color-white: var(--system-progress-bar-track-color-white); + --spectrum-progressbar-fill-color-white: var(--system-progress-bar-fill-color-white); + --spectrum-progressbar-size-default: var(--system-meter-size-l-progressbar-size-default); + --spectrum-meter-min-width: var(--system-meter-min-width); + --spectrum-meter-max-width: var(--system-meter-max-width); + --spectrum-meter-inline-size: var(--system-meter-inline-size); + --spectrum-meter-top-to-text: var(--system-meter-top-to-text); + --spectrum-progress-circle-track-border-color: var(--system-progress-circle-track-border-color); + --spectrum-progress-circle-fill-border-color: var(--system-progress-circle-fill-border-color); + --spectrum-progress-circle-track-border-color-over-background: var(--system-progress-circle-track-border-color-over-background); + --spectrum-progress-circle-fill-border-color-over-background: var(--system-progress-circle-fill-border-color-over-background); + --spectrum-progress-circle-size: var(--system-progress-circle-large-size); + --spectrum-progress-circle-thickness: var(--system-progress-circle-large-thickness); + --spectrum-progress-circle-track-border-style: var(--system-progress-circle-track-border-style); + --spectrum-radio-button-border-color-default: var(--system-radio-button-border-color-default); + --spectrum-radio-button-border-color-hover: var(--system-radio-button-border-color-hover); + --spectrum-radio-button-border-color-down: var(--system-radio-button-border-color-down); + --spectrum-radio-button-border-color-focus: var(--system-radio-button-border-color-focus); + --spectrum-radio-neutral-content-color: var(--system-radio-neutral-content-color); + --spectrum-radio-neutral-content-color-hover: var(--system-radio-neutral-content-color-hover); + --spectrum-radio-neutral-content-color-down: var(--system-radio-neutral-content-color-down); + --spectrum-radio-neutral-content-color-focus: var(--system-radio-neutral-content-color-focus); + --spectrum-radio-focus-indicator-thickness: var(--system-radio-focus-indicator-thickness); + --spectrum-radio-focus-indicator-gap: var(--system-radio-focus-indicator-gap); + --spectrum-radio-focus-indicator-color: var(--system-radio-focus-indicator-color); + --spectrum-radio-disabled-content-color: var(--system-radio-disabled-content-color); + --spectrum-radio-disabled-border-color: var(--system-radio-disabled-border-color); + --spectrum-radio-emphasized-accent-color: var(--system-radio-emphasized-accent-color); + --spectrum-radio-emphasized-accent-color-hover: var(--system-radio-emphasized-accent-color-hover); + --spectrum-radio-emphasized-accent-color-down: var(--system-radio-emphasized-accent-color-down); + --spectrum-radio-emphasized-accent-color-focus: var(--system-radio-emphasized-accent-color-focus); + --spectrum-radio-border-width: var(--system-radio-border-width); + --spectrum-radio-button-background-color: var(--system-radio-button-background-color); + --spectrum-radio-button-checked-border-color-default: var(--system-radio-emphasized-button-checked-border-color-default); + --spectrum-radio-button-checked-border-color-hover: var(--system-radio-emphasized-button-checked-border-color-hover); + --spectrum-radio-button-checked-border-color-down: var(--system-radio-emphasized-button-checked-border-color-down); + --spectrum-radio-button-checked-border-color-focus: var(--system-radio-emphasized-button-checked-border-color-focus); + --spectrum-radio-text-to-control: var(--system-radio-size-xl-text-to-control); + --spectrum-radio-label-top-to-text: var(--system-radio-size-xl-label-top-to-text); + --spectrum-radio-label-bottom-to-text: var(--system-radio-size-xl-label-bottom-to-text); + --spectrum-radio-font-size: var(--system-radio-size-xl-font-size); + --spectrum-radio-line-height: var(--system-radio-line-height); + --spectrum-radio-animation-duration: var(--system-radio-animation-duration); + --spectrum-radio-height: var(--system-radio-size-xl-height); + --spectrum-radio-button-control-size: var(--system-radio-size-xl-button-control-size); + --spectrum-radio-button-top-to-control: var(--system-radio-size-xl-button-top-to-control); + --spectrum-radio-line-height-cjk: var(--system-radio-lang-ko-line-height-cjk); + --spectrum-rating-icon-color-default: var(--system-rating-icon-color-default); + --spectrum-rating-icon-color-hover: var(--system-rating-icon-color-hover); + --spectrum-rating-icon-color-down: var(--system-rating-icon-color-down); + --spectrum-rating-icon-color-key-focus: var(--system-rating-icon-color-key-focus); + --spectrum-rating-icon-height: var(--system-rating-icon-height); + --spectrum-rating-icon-width: var(--system-rating-icon-width); + --spectrum-rating-border-radius: var(--system-rating-border-radius); + --spectrum-rating-focus-indicator-thickness: var(--system-rating-focus-indicator-thickness); + --spectrum-rating-focus-indicator-color: var(--system-rating-focus-indicator-color); + --spectrum-rating-focus-indicator-gap: var(--system-rating-focus-indicator-gap); + --spectrum-rating-icon-spacing-vertical-top: var(--system-rating-icon-spacing-vertical-top); + --spectrum-rating-indicator-border-radius: var(--system-rating-indicator-border-radius); + --spectrum-rating-indicator-height: var(--system-rating-indicator-height); + --spectrum-rating-emphasized-icon-color-default: var(--system-rating-emphasized-icon-color-default); + --spectrum-rating-emphasized-icon-color-hover: var(--system-rating-emphasized-icon-color-hover); + --spectrum-rating-emphasized-icon-color-down: var(--system-rating-emphasized-icon-color-down); + --spectrum-rating-emphasized-icon-color-key-focus: var(--system-rating-emphasized-icon-color-key-focus); + --spectrum-rating-icon-color-disabled: var(--system-rating-icon-color-disabled); + --spectrum-rating-icon-count: var(--system-rating-icon-count); + --spectrum-search-border-color-default: var(--system-search-border-color-default); + --spectrum-search-border-color-hover: var(--system-search-border-color-hover); + --spectrum-search-border-color-focus: var(--system-search-border-color-focus); + --spectrum-search-border-color-focus-hover: var(--system-search-border-color-focus-hover); + --spectrum-search-border-color-key-focus: var(--system-search-border-color-key-focus); + --spectrum-search-inline-size: var(--system-search-inline-size); + --spectrum-search-min-inline-multiplier: var(--system-search-min-inline-multiplier); + --spectrum-search-to-help-text: var(--system-search-to-help-text); + --spectrum-search-top-to-text: var(--system-search-top-to-text); + --spectrum-search-bottom-to-text: var(--system-search-bottom-to-text); + --spectrum-search-focus-indicator-thickness: var(--system-search-focus-indicator-thickness); + --spectrum-search-focus-indicator-gap: var(--system-search-focus-indicator-gap); + --spectrum-search-focus-indicator-color: var(--system-search-focus-indicator-color); + --spectrum-search-font-family: var(--system-search-font-family); + --spectrum-search-font-weight: var(--system-search-font-weight); + --spectrum-search-font-style: var(--system-search-font-style); + --spectrum-search-line-height: var(--system-search-line-height); + --spectrum-search-color-default: var(--system-search-color-default); + --spectrum-search-color-hover: var(--system-search-color-hover); + --spectrum-search-color-focus: var(--system-search-color-focus); + --spectrum-search-color-focus-hover: var(--system-search-color-focus-hover); + --spectrum-search-color-key-focus: var(--system-search-color-key-focus); + --spectrum-search-border-width: var(--system-search-border-width); + --spectrum-search-background-color: var(--system-search-quiet-background-color); + --spectrum-search-color-disabled: var(--system-search-color-disabled); + --spectrum-search-background-color-disabled: var(--system-search-quiet-background-color-disabled); + --spectrum-search-border-color-disabled: var(--system-search-quiet-border-color-disabled); + --spectrum-search-border-radius: var(--system-search-quiet-border-radius); + --spectrum-search-edge-to-visual: var(--system-search-quiet-edge-to-visual); + --spectrum-search-block-size: var(--system-search-size-xl-block-size); + --spectrum-search-icon-size: var(--system-search-size-xl-icon-size); + --spectrum-search-text-to-icon: var(--system-search-size-xl-text-to-icon); + --spectrum-sidenav-focus-ring-size: var(--system-side-nav-focus-ring-size); + --spectrum-sidenav-focus-ring-gap: var(--system-side-nav-focus-ring-gap); + --spectrum-sidenav-focus-ring-color: var(--system-side-nav-focus-ring-color); + --spectrum-sidenav-min-height: var(--system-side-nav-min-height); + --spectrum-sidenav-width: var(--system-side-nav-width); + --spectrum-sidenav-min-width: var(--system-side-nav-min-width); + --spectrum-sidenav-max-width: var(--system-side-nav-max-width); + --spectrum-sidenav-border-radius: var(--system-side-nav-border-radius); + --spectrum-sidenav-icon-size: var(--system-side-nav-icon-size); + --spectrum-sidenav-icon-spacing: var(--system-side-nav-icon-spacing); + --spectrum-sidenav-inline-padding: var(--system-side-nav-inline-padding); + --spectrum-sidenav-gap: var(--system-side-nav-gap); + --spectrum-sidenav-top-to-icon: var(--system-side-nav-top-to-icon); + --spectrum-sidenav-top-to-label: var(--system-side-nav-top-to-label); + --spectrum-sidenav-bottom-to-label: var(--system-side-nav-bottom-to-label); + --spectrum-sidenav-start-to-content-second-level: var(--system-side-nav-start-to-content-second-level); + --spectrum-sidenav-start-to-content-third-level: var(--system-side-nav-start-to-content-third-level); + --spectrum-sidenav-start-to-content-with-icon-second-level: var(--system-side-nav-start-to-content-with-icon-second-level); + --spectrum-sidenav-start-to-content-with-icon-third-level: var(--system-side-nav-start-to-content-with-icon-third-level); + --spectrum-sidenav-heading-top-margin: var(--system-side-nav-heading-top-margin); + --spectrum-sidenav-heading-bottom-margin: var(--system-side-nav-heading-bottom-margin); + --spectrum-sidenav-background-disabled: var(--system-side-nav-background-disabled); + --spectrum-sidenav-background-default: var(--system-side-nav-background-default); + --spectrum-sidenav-background-hover: var(--system-side-nav-background-hover); + --spectrum-sidenav-item-background-down: var(--system-side-nav-item-background-down); + --spectrum-sidenav-background-key-focus: var(--system-side-nav-background-key-focus); + --spectrum-sidenav-item-background-default-selected: var(--system-side-nav-item-background-default-selected); + --spectrum-sidenav-background-hover-selected: var(--system-side-nav-background-hover-selected); + --spectrum-sidenav-item-background-down-selected: var(--system-side-nav-item-background-down-selected); + --spectrum-sidenav-background-key-focus-selected: var(--system-side-nav-background-key-focus-selected); + --spectrum-sidenav-header-color: var(--system-side-nav-header-color); + --spectrum-sidenav-content-disabled-color: var(--system-side-nav-content-disabled-color); + --spectrum-sidenav-content-color-default: var(--system-side-nav-content-color-default); + --spectrum-sidenav-content-color-hover: var(--system-side-nav-content-color-hover); + --spectrum-sidenav-content-color-down: var(--system-side-nav-content-color-down); + --spectrum-sidenav-content-color-key-focus: var(--system-side-nav-content-color-key-focus); + --spectrum-sidenav-content-color-default-selected: var(--system-side-nav-content-color-default-selected); + --spectrum-sidenav-content-color-hover-selected: var(--system-side-nav-content-color-hover-selected); + --spectrum-sidenav-content-color-down-selected: var(--system-side-nav-content-color-down-selected); + --spectrum-sidenav-content-color-key-focus-selected: var(--system-side-nav-content-color-key-focus-selected); + --spectrum-sidenav-text-font-family: var(--system-side-nav-text-font-family); + --spectrum-sidenav-text-font-weight: var(--system-side-nav-text-font-weight); + --spectrum-sidenav-text-font-style: var(--system-side-nav-text-font-style); + --spectrum-sidenav-text-font-size: var(--system-side-nav-text-font-size); + --spectrum-sidenav-text-line-height: var(--system-side-nav-lang-ko-text-line-height); + --spectrum-sidenav-top-level-font-family: var(--system-side-nav-top-level-font-family); + --spectrum-sidenav-top-level-font-weight: var(--system-side-nav-top-level-font-weight); + --spectrum-sidenav-top-level-font-style: var(--system-side-nav-top-level-font-style); + --spectrum-sidenav-top-level-font-size: var(--system-side-nav-top-level-font-size); + --spectrum-sidenav-top-level-line-height: var(--system-side-nav-lang-ko-top-level-line-height); + --spectrum-sidenav-header-font-family: var(--system-side-nav-header-font-family); + --spectrum-sidenav-header-font-weight: var(--system-side-nav-header-font-weight); + --spectrum-sidenav-header-font-style: var(--system-side-nav-header-font-style); + --spectrum-sidenav-header-font-size: var(--system-side-nav-header-font-size); + --spectrum-sidenav-header-line-height: var(--system-side-nav-lang-ko-header-line-height); + --spectrum-slider-track-color: var(--system-slider-track-color); + --spectrum-slider-track-fill-color: var(--system-slider-track-fill-color); + --spectrum-slider-ramp-track-color: var(--system-slider-ramp-track-color); + --spectrum-slider-ramp-track-color-disabled: var(--system-slider-ramp-track-color-disabled); + --spectrum-slider-handle-background-color: var(--system-slider-handle-background-color); + --spectrum-slider-handle-background-color-disabled: var(--system-slider-handle-background-color-disabled); + --spectrum-slider-ramp-handle-background-color: var(--system-slider-ramp-handle-background-color); + --spectrum-slider-ticks-handle-background-color: var(--system-slider-ticks-handle-background-color); + --spectrum-slider-handle-border-color: var(--system-slider-handle-border-color); + --spectrum-slider-handle-disabled-background-color: var(--system-slider-handle-disabled-background-color); + --spectrum-slider-tick-mark-color: var(--system-slider-tick-mark-color); + --spectrum-slider-handle-border-color-hover: var(--system-slider-handle-border-color-hover); + --spectrum-slider-handle-border-color-down: var(--system-slider-handle-border-color-down); + --spectrum-slider-handle-border-color-key-focus: var(--system-slider-handle-border-color-key-focus); + --spectrum-slider-handle-focus-ring-color-key-focus: var(--system-slider-handle-focus-ring-color-key-focus); + --spectrum-slider-value-inline-size: var(--system-slider-size-xl-value-inline-size); + --spectrum-slider-cjk-line-height: var(--system-slider-cjk-line-height); + --spectrum-slider-min-size: var(--system-slider-min-size); + --spectrum-slider-track-corner-radius: var(--system-slider-track-corner-radius); + --spectrum-slider-label-margin-start: var(--system-slider-label-margin-start); + --spectrum-slider-handle-border-width: var(--system-slider-handle-border-width); + --spectrum-slider-handle-margin-left: var(--system-slider-handle-margin-left); + --spectrum-slider-controls-margin: var(--system-slider-controls-margin); + --spectrum-slider-track-margin-offset: var(--system-slider-track-margin-offset); + --spectrum-slider-track-middle-handleoffset: var(--system-slider-track-middle-handleoffset); + --spectrum-slider-input-top-size: var(--system-slider-input-top-size); + --spectrum-slider-track-fill-thickness: var(--system-slider-track-fill-thickness); + --spectrum-slider-tick-mark-width: var(--system-slider-tick-mark-width); + --spectrum-slider-tick-mark-border-radius: var(--system-slider-tick-mark-border-radius); + --spectrum-slider-tick-handle-background-color: var(--system-slider-tick-handle-background-color); + --spectrum-slider-track-color-disabled: var(--system-slider-track-color-disabled); + --spectrum-slider-track-fill-color-disabled: var(--system-slider-track-fill-color-disabled); + --spectrum-slider-handle-border-color-disabled: var(--system-slider-handle-border-color-disabled); + --spectrum-slider-label-text-color: var(--system-slider-label-text-color); + --spectrum-slider-tick-label-color: var(--system-slider-tick-label-color); + --spectrum-slider-label-text-color-disabled: var(--system-slider-label-text-color-disabled); + --spectrum-slider-tick-mark-color-disabled: var(--system-slider-tick-mark-color-disabled); + --spectrum-slider-ramp-handle-border-color-active: var(--system-slider-ramp-handle-border-color-active); + --spectrum-slider-input-left: var(--system-slider-input-left); + --spectrum-slider-track-handleoffset: var(--system-slider-track-handleoffset); + --spectrum-slider-range-track-reset: var(--system-slider-range-track-reset); + --spectrum-slider-font-size: var(--system-slider-size-xl-font-size); + --spectrum-slider-handle-size: var(--system-slider-size-xl-handle-size); + --spectrum-slider-control-height: var(--system-slider-size-xl-control-height); + --spectrum-slider-handle-border-radius: var(--system-slider-size-xl-handle-border-radius); + --spectrum-slider-handle-border-width-down: var(--system-slider-size-xl-handle-border-width-down); + --spectrum-slider-label-top-to-text: var(--system-slider-size-xl-label-top-to-text); + --spectrum-slider-control-to-field-label: var(--system-slider-size-xl-control-to-field-label); + --spectrum-slider-value-side-padding-inline: var(--system-slider-size-xl-value-side-padding-inline); + --spectrum-splitview-vertical-width: var(--system-split-view-vertical-width); + --spectrum-splitview-vertical-gripper-width: var(--system-split-view-vertical-gripper-width); + --spectrum-splitview-vertical-gripper-outer-width: var(--system-split-view-vertical-gripper-outer-width); + --spectrum-splitview-vertical-gripper-reset: var(--system-split-view-vertical-gripper-reset); + --spectrum-splitview-background-color: var(--system-split-view-background-color); + --spectrum-splitview-content-color: var(--system-split-view-content-color); + --spectrum-splitview-handle-background-color: var(--system-split-view-handle-background-color); + --spectrum-splitview-handle-background-color-hover: var(--system-split-view-handle-background-color-hover); + --spectrum-splitview-handle-background-color-down: var(--system-split-view-handle-background-color-down); + --spectrum-splitview-handle-background-color-focus: var(--system-split-view-handle-background-color-focus); + --spectrum-splitview-handle-width: var(--system-split-view-handle-width); + --spectrum-splitview-gripper-border-radius: var(--system-split-view-gripper-border-radius); + --spectrum-splitview-gripper-width: var(--system-split-view-gripper-width); + --spectrum-splitview-gripper-height: var(--system-split-view-gripper-height); + --spectrum-splitview-gripper-border-width-horizontal: var(--system-split-view-gripper-border-width-horizontal); + --spectrum-splitview-gripper-border-width-vertical: var(--system-split-view-gripper-border-width-vertical); + --spectrum-statuslight-corner-radius: var(--system-status-light-corner-radius); + --spectrum-statuslight-font-weight: var(--system-status-light-font-weight); + --spectrum-statuslight-border-width: var(--system-status-light-border-width); + --spectrum-statuslight-height: var(--system-status-light-size-xl-height); + --spectrum-statuslight-dot-size: var(--system-status-light-size-xl-dot-size); + --spectrum-statuslight-line-height: var(--system-status-light-line-height); + --spectrum-statuslight-line-height-cjk: var(--system-status-light-line-height-cjk); + --spectrum-statuslight-font-size: var(--system-status-light-size-xl-font-size); + --spectrum-statuslight-spacing-dot-to-label: var(--system-status-light-size-xl-spacing-dot-to-label); + --spectrum-statuslight-spacing-top-to-dot: var(--system-status-light-size-xl-spacing-top-to-dot); + --spectrum-statuslight-spacing-top-to-label: var(--system-status-light-size-xl-spacing-top-to-label); + --spectrum-statuslight-spacing-bottom-to-label: var(--system-status-light-size-xl-spacing-bottom-to-label); + --spectrum-statuslight-content-color-default: var(--system-status-light-content-color-default); + --spectrum-statuslight-subdued-content-color-default: var(--system-status-light-subdued-content-color-default); + --spectrum-statuslight-semantic-neutral-color: var(--system-status-light-semantic-neutral-color); + --spectrum-statuslight-semantic-accent-color: var(--system-status-light-semantic-accent-color); + --spectrum-statuslight-semantic-negative-color: var(--system-status-light-semantic-negative-color); + --spectrum-statuslight-semantic-info-color: var(--system-status-light-semantic-info-color); + --spectrum-statuslight-semantic-notice-color: var(--system-status-light-semantic-notice-color); + --spectrum-statuslight-semantic-positive-color: var(--system-status-light-semantic-positive-color); + --spectrum-statuslight-nonsemantic-gray-color: var(--system-status-light-nonsemantic-gray-color); + --spectrum-statuslight-nonsemantic-red-color: var(--system-status-light-nonsemantic-red-color); + --spectrum-statuslight-nonsemantic-orange-color: var(--system-status-light-nonsemantic-orange-color); + --spectrum-statuslight-nonsemantic-yellow-color: var(--system-status-light-nonsemantic-yellow-color); + --spectrum-statuslight-nonsemantic-chartreuse-color: var(--system-status-light-nonsemantic-chartreuse-color); + --spectrum-statuslight-nonsemantic-celery-color: var(--system-status-light-nonsemantic-celery-color); + --spectrum-statuslight-nonsemantic-green-color: var(--system-status-light-nonsemantic-green-color); + --spectrum-statuslight-nonsemantic-seafoam-color: var(--system-status-light-nonsemantic-seafoam-color); + --spectrum-statuslight-nonsemantic-cyan-color: var(--system-status-light-nonsemantic-cyan-color); + --spectrum-statuslight-nonsemantic-blue-color: var(--system-status-light-nonsemantic-blue-color); + --spectrum-statuslight-nonsemantic-indigo-color: var(--system-status-light-nonsemantic-indigo-color); + --spectrum-statuslight-nonsemantic-purple-color: var(--system-status-light-nonsemantic-purple-color); + --spectrum-statuslight-nonsemantic-fuchsia-color: var(--system-status-light-nonsemantic-fuchsia-color); + --spectrum-statuslight-nonsemantic-magenta-color: var(--system-status-light-nonsemantic-magenta-color); + --spectrum-steplist-step-width: var(--system-steplist-step-width); + --spectrum-steplist-marker-diameter: var(--system-steplist-marker-diameter); + --spectrum-steplist-marker-hitArea: var(--system-steplist-marker-hit-area); + --spectrum-steplist-segment-height: var(--system-steplist-segment-height); + --spectrum-steplist-topPadding: var(--system-steplist-top-padding); + --spectrum-steplist-small-topPadding: var(--system-steplist-small-top-padding); + --spectrum-steplist-sidePadding: var(--system-steplist-side-padding); + --spectrum-steplist-label-labelOffset: var(--system-steplist-label-label-offset); + --spectrum-steplist-label-text-size: var(--system-steplist-label-text-size); + --spectrum-steplist-current-label-text-color: var(--system-steplist-current-label-text-color); + --spectrum-steplist-current-marker-color: var(--system-steplist-current-marker-color); + --spectrum-steplist-complete-label-text-color: var(--system-steplist-complete-label-text-color); + --spectrum-steplist-incomplete-label-color: var(--system-steplist-incomplete-label-color); + --spectrum-steplist-complete-marker-background-color: var(--system-steplist-complete-marker-background-color); + --spectrum-steplist-incomplete-marker-border-color: var(--system-steplist-incomplete-marker-border-color); + --spectrum-steplist-incomplete-segment-border-block-end-color: var(--system-steplist-incomplete-segment-border-block-end-color); + --spectrum-steplist-complete-segment-border-block-end-color: var(--system-steplist-complete-segment-border-block-end-color); + --spectrum-stepper-border-width: var(--system-stepper-border-width); + --spectrum-stepper-border-color: var(--system-stepper-border-color); + --spectrum-stepper-border-color-hover: var(--system-stepper-border-color-hover); + --spectrum-stepper-border-color-focus: var(--system-stepper-border-color-focus); + --spectrum-stepper-border-color-focus-hover: var(--system-stepper-border-color-focus-hover); + --spectrum-stepper-border-color-keyboard-focus: var(--system-stepper-border-color-keyboard-focus); + --spectrum-stepper-border-radius: var(--system-stepper-border-radius); + --spectrum-stepper-min-width-multiplier: var(--system-stepper-min-width-multiplier); + --spectrum-stepper-animation-duration: var(--system-stepper-animation-duration); + --spectrum-stepper-buttons-border-style: var(--system-stepper-buttons-border-style); + --spectrum-stepper-buttons-border-width: var(--system-stepper-buttons-border-width); + --spectrum-stepper-buttons-border-color: var(--system-stepper-buttons-border-color); + --spectrum-stepper-buttons-background-color: var(--system-stepper-buttons-background-color); + --spectrum-stepper-buttons-border-color-hover: var(--system-stepper-buttons-border-color-hover); + --spectrum-stepper-buttons-border-color-focus: var(--system-stepper-buttons-border-color-focus); + --spectrum-stepper-buttons-border-color-keyboard-focus: var(--system-stepper-buttons-border-color-keyboard-focus); + --spectrum-stepper-button-padding: var(--system-stepper-button-padding); + --spectrum-stepper-button-border-radius-reset: var(--system-stepper-button-border-radius-reset); + --spectrum-stepper-button-border-width: var(--system-stepper-button-border-width); + --spectrum-stepper-button-background-color-focus: var(--system-stepper-button-background-color-focus); + --spectrum-stepper-button-background-color-keyboard-focus: var(--system-stepper-button-background-color-keyboard-focus); + --spectrum-stepper-border-color-invalid: var(--system-stepper-border-color-invalid); + --spectrum-stepper-border-color-hover-invalid: var(--system-stepper-border-color-hover-invalid); + --spectrum-stepper-border-color-focus-invalid: var(--system-stepper-border-color-focus-invalid); + --spectrum-stepper-border-color-focus-hover-invalid: var(--system-stepper-border-color-focus-hover-invalid); + --spectrum-stepper-border-color-keyboard-focus-invalid: var(--system-stepper-border-color-keyboard-focus-invalid); + --spectrum-stepper-focus-indicator-width: var(--system-stepper-focus-indicator-width); + --spectrum-stepper-focus-indicator-gap: var(--system-stepper-focus-indicator-gap); + --spectrum-stepper-focus-indicator-color: var(--system-stepper-focus-indicator-color); + --spectrum-stepper-button-border-color-quiet: var(--system-stepper-button-border-color-quiet); + --spectrum-stepper-button-border-color-disabled: var(--system-stepper-button-border-color-disabled); + --spectrum-stepper-button-border-width-disabled: var(--system-stepper-button-border-width-disabled); + --spectrum-stepper-buttons-background-color-disabled: var(--system-stepper-buttons-background-color-disabled); + --spectrum-stepper-button-width: var(--system-stepper-size-xl-button-width); + --spectrum-stepper-height: var(--system-stepper-size-xl-height); + --spectrum-swatch-border-radius: var(--system-swatch-border-radius); + --spectrum-swatch-focus-indicator-border-radius: var(--system-swatch-focus-indicator-border-radius); + --spectrum-swatch-border-thickness: var(--system-swatch-border-thickness); + --spectrum-swatch-border-thickness-selected: var(--system-swatch-border-thickness-selected); + --spectrum-swatch-focus-indicator-thickness: var(--system-swatch-focus-indicator-thickness); + --spectrum-swatch-focus-indicator-gap: var(--system-swatch-focus-indicator-gap); + --spectrum-swatch-border-color-opacity: var(--system-swatch-border-color-opacity); + --spectrum-swatch-border-color-light-opacity: var(--system-swatch-border-color-light-opacity); + --spectrum-swatch-border-color: var(--system-swatch-border-color); + --spectrum-swatch-icon-border-color: var(--system-swatch-icon-border-color); + --spectrum-swatch-border-color-light: var(--system-swatch-border-color-light); + --spectrum-swatch-border-color-selected: var(--system-swatch-border-color-selected); + --spectrum-swatch-inner-border-color-selected: var(--system-swatch-inner-border-color-selected); + --spectrum-swatch-disabled-icon-color: var(--system-swatch-disabled-icon-color); + --spectrum-swatch-dash-icon-color: var(--system-swatch-dash-icon-color); + --spectrum-swatch-slash-icon-color: var(--system-swatch-slash-icon-color); + --spectrum-swatch-focus-indicator-color: var(--system-swatch-focus-indicator-color); + --spectrum-swatch-size: var(--system-swatch-size-l-size); + --spectrum-swatch-disabled-icon-size: var(--system-swatch-size-l-disabled-icon-size); + --spectrum-swatch-slash-thickness: var(--system-swatch-size-l-slash-thickness); + --spectrum-swatchgroup-spacing-compact: var(--system-swatch-group-spacing-compact); + --spectrum-swatchgroup-spacing-regular: var(--system-swatch-group-spacing-regular); + --spectrum-swatchgroup-spacing-spacious: var(--system-swatch-group-spacing-spacious); + --spectrum-switch-handle-border-color-default: var(--system-switch-handle-border-color-default); + --spectrum-switch-handle-border-color-hover: var(--system-switch-handle-border-color-hover); + --spectrum-switch-handle-border-color-down: var(--system-switch-handle-border-color-down); + --spectrum-switch-handle-border-color-focus: var(--system-switch-handle-border-color-focus); + --spectrum-switch-handle-border-color-selected-default: var(--system-switch-emphasized-handle-border-color-selected-default); + --spectrum-switch-handle-border-color-selected-hover: var(--system-switch-emphasized-handle-border-color-selected-hover); + --spectrum-switch-handle-border-color-selected-down: var(--system-switch-emphasized-handle-border-color-selected-down); + --spectrum-switch-handle-border-color-selected-focus: var(--system-switch-emphasized-handle-border-color-selected-focus); + --spectrum-switch-label-color-default: var(--system-switch-disabled-label-color-default); + --spectrum-switch-label-color-hover: var(--system-switch-label-color-hover); + --spectrum-switch-label-color-down: var(--system-switch-label-color-down); + --spectrum-switch-label-color-focus: var(--system-switch-label-color-focus); + --spectrum-switch-label-color-disabled: var(--system-switch-label-color-disabled); + --spectrum-switch-background-color: var(--system-switch-background-color); + --spectrum-switch-background-color-disabled: var(--system-switch-background-color-disabled); + --spectrum-switch-background-color-selected-disabled: var(--system-switch-background-color-selected-disabled); + --spectrum-switch-background-color-selected-default: var(--system-switch-emphasized-background-color-selected-default); + --spectrum-switch-background-color-selected-hover: var(--system-switch-emphasized-background-color-selected-hover); + --spectrum-switch-background-color-selected-down: var(--system-switch-emphasized-background-color-selected-down); + --spectrum-switch-background-color-selected-focus: var(--system-switch-emphasized-background-color-selected-focus); + --spectrum-switch-focus-indicator-thickness: var(--system-switch-focus-indicator-thickness); + --spectrum-switch-focus-indicator-color: var(--system-switch-focus-indicator-color); + --spectrum-switch-handle-background-color: var(--system-switch-handle-background-color); + --spectrum-switch-handle-border-color-disabled: var(--system-switch-handle-border-color-disabled); + --spectrum-switch-min-height: var(--system-switch-size-xl-min-height); + --spectrum-switch-control-width: var(--system-switch-size-xl-control-width); + --spectrum-switch-control-height: var(--system-switch-size-xl-control-height); + --spectrum-switch-control-label-spacing: var(--system-switch-size-xl-control-label-spacing); + --spectrum-switch-spacing-top-to-control: var(--system-switch-size-xl-spacing-top-to-control); + --spectrum-switch-spacing-top-to-label: var(--system-switch-size-xl-spacing-top-to-label); + --spectrum-switch-font-size: var(--system-switch-size-xl-font-size); + --spectrum-table-header-top-to-text: var(--system-table-size-xl-header-top-to-text); + --spectrum-table-header-bottom-to-text: var(--system-table-size-xl-header-bottom-to-text); + --spectrum-table-min-header-height: var(--system-table-size-xl-min-header-height); + --spectrum-table-min-row-height: var(--system-table-spacious-size-xl-min-row-height); + --spectrum-table-row-top-to-text: var(--system-table-spacious-size-xl-row-top-to-text); + --spectrum-table-row-bottom-to-text: var(--system-table-spacious-size-xl-row-bottom-to-text); + --spectrum-table-cell-inline-space: var(--system-table-cell-inline-space); + --spectrum-table-border-radius: var(--system-table-quiet-border-radius); + --spectrum-table-border-width: var(--system-table-border-width); + --spectrum-table-outer-border-inline-width: var(--system-table-quiet-outer-border-inline-width); + --spectrum-table-icon-to-text: var(--system-table-size-xl-icon-to-text); + --spectrum-table-default-vertical-align: var(--system-table-default-vertical-align); + --spectrum-table-header-vertical-align: var(--system-table-header-vertical-align); + --spectrum-table-header-font-weight: var(--system-table-header-font-weight); + --spectrum-table-row-font-family: var(--system-table-row-font-family); + --spectrum-table-row-font-weight: var(--system-table-row-font-weight); + --spectrum-table-row-font-style: var(--system-table-row-font-style); + --spectrum-table-row-font-size: var(--system-table-size-xl-row-font-size); + --spectrum-table-row-line-height: var(--system-table-row-line-height); + --spectrum-table-border-color: var(--system-table-border-color); + --spectrum-table-divider-color: var(--system-table-divider-color); + --spectrum-table-header-background-color: var(--system-table-quiet-header-background-color); + --spectrum-table-header-text-color: var(--system-table-header-text-color); + --spectrum-table-row-background-color: var(--system-table-quiet-row-background-color); + --spectrum-table-row-text-color: var(--system-table-row-text-color); + --spectrum-table-selected-row-background-color: var(--system-table-selected-row-background-color); + --spectrum-table-selected-row-background-color-non-emphasized: var(--system-table-selected-row-background-color-non-emphasized); + --spectrum-table-row-background-color-hover: var(--system-table-row-background-color-hover); + --spectrum-table-row-active-color: var(--system-table-row-active-color); + --spectrum-table-selected-row-background-color-focus: var(--system-table-selected-row-background-color-focus); + --spectrum-table-selected-row-background-color-non-emphasized-focus: var(--system-table-selected-row-background-color-non-emphasized-focus); + --spectrum-table-icon-color-default: var(--system-table-icon-color-default); + --spectrum-table-icon-color-hover: var(--system-table-icon-color-hover); + --spectrum-table-icon-color-active: var(--system-table-icon-color-active); + --spectrum-table-icon-color-focus: var(--system-table-icon-color-focus); + --spectrum-table-icon-color-focus-hover: var(--system-table-icon-color-focus-hover); + --spectrum-table-icon-color-key-focus: var(--system-table-icon-color-key-focus); + --spectrum-table-header-checkbox-block-spacing: var(--system-table-size-xl-header-checkbox-block-spacing); + --spectrum-table-row-checkbox-block-spacing: var(--system-table-spacious-size-xl-row-checkbox-block-spacing); + --spectrum-table-focus-indicator-thickness: var(--system-table-focus-indicator-thickness); + --spectrum-table-focus-indicator-color: var(--system-table-focus-indicator-color); + --spectrum-table-drop-zone-background-color: var(--system-table-drop-zone-background-color); + --spectrum-table-drop-zone-outline-color: var(--system-table-drop-zone-outline-color); + --spectrum-table-transition-duration: var(--system-table-transition-duration); + --spectrum-table-summary-row-font-weight: var(--system-table-summary-row-font-weight); + --spectrum-table-summary-row-background-color: var(--system-table-summary-row-background-color); + --spectrum-table-section-header-min-height: var(--system-table-size-xl-section-header-min-height); + --spectrum-table-section-header-block-start-spacing: var(--system-table-size-xl-section-header-block-start-spacing); + --spectrum-table-section-header-block-end-spacing: var(--system-table-size-xl-section-header-block-end-spacing); + --spectrum-table-section-header-font-weight: var(--system-table-section-header-font-weight); + --spectrum-table-section-header-background-color: var(--system-table-section-header-background-color); + --spectrum-table-collapsible-tier-indent: var(--system-table-collapsible-tier-indent); + --spectrum-table-collapsible-disclosure-inline-spacing: var(--system-table-collapsible-disclosure-inline-spacing); + --spectrum-table-disclosure-icon-size: var(--system-table-size-xl-disclosure-icon-size); + --spectrum-table-collapsible-icon-animation-duration: var(--system-table-collapsible-icon-animation-duration); + --spectrum-table-thumbnail-to-text: var(--system-table-size-xl-thumbnail-to-text); + --spectrum-table-thumbnail-block-spacing: var(--system-table-spacious-size-xl-thumbnail-block-spacing); + --spectrum-table-thumbnail-size: var(--system-table-spacious-size-xl-thumbnail-size); + --spectrum-table-cell-background-color: var(--system-table-cell-background-color); + --spectrum-table-selected-cell-background-color: var(--system-table-emphasized-selected-cell-background-color); + --spectrum-table-selected-cell-background-color-focus: var(--system-table-emphasized-selected-cell-background-color-focus); + --spectrum-tabs-font-weight: var(--system-tabs-font-weight); + --spectrum-tabs-item-height: var(--system-tabs-size-xl-item-height); + --spectrum-tabs-item-horizontal-spacing: var(--system-tabs-size-xl-item-horizontal-spacing); + --spectrum-tabs-item-vertical-spacing: var(--system-tabs-size-xl-item-vertical-spacing); + --spectrum-tabs-start-to-edge: var(--system-tabs-size-xl-start-to-edge); + --spectrum-tabs-top-to-text: var(--system-tabs-size-xl-top-to-text); + --spectrum-tabs-bottom-to-text: var(--system-tabs-size-xl-bottom-to-text); + --spectrum-tabs-icon-size: var(--system-tabs-size-xl-icon-size); + --spectrum-tabs-icon-to-text: var(--system-tabs-size-xl-icon-to-text); + --spectrum-tabs-top-to-icon: var(--system-tabs-size-xl-top-to-icon); + --spectrum-tabs-color: var(--system-tabs-color); + --spectrum-tabs-color-selected: var(--system-tabs-emphasized-color-selected); + --spectrum-tabs-color-hover: var(--system-tabs-emphasized-color-hover); + --spectrum-tabs-color-key-focus: var(--system-tabs-emphasized-color-key-focus); + --spectrum-tabs-color-disabled: var(--system-tabs-color-disabled); + --spectrum-tabs-font-family: var(--system-tabs-font-family); + --spectrum-tabs-font-style: var(--system-tabs-font-style); + --spectrum-tabs-font-size: var(--system-tabs-size-xl-font-size); + --spectrum-tabs-line-height: var(--system-tabs-line-height); + --spectrum-tabs-focus-indicator-width: var(--system-tabs-focus-indicator-width); + --spectrum-tabs-focus-indicator-border-radius: var(--system-tabs-focus-indicator-border-radius); + --spectrum-tabs-focus-indicator-gap: var(--system-tabs-size-xl-focus-indicator-gap); + --spectrum-tabs-focus-indicator-color: var(--system-tabs-focus-indicator-color); + --spectrum-tabs-selection-indicator-color: var(--system-tabs-emphasized-selection-indicator-color); + --spectrum-tabs-list-background-direction: var(--system-tabs-list-background-direction); + --spectrum-tabs-divider-background-color: var(--system-tabs-divider-background-color); + --spectrum-tabs-divider-size: var(--system-tabs-divider-size); + --spectrum-tabs-divider-border-radius: var(--system-tabs-divider-border-radius); + --spectrum-tabs-animation-duration: var(--system-tabs-animation-duration); + --spectrum-tabs-animation-ease: var(--system-tabs-animation-ease); + --spectrum-tag-border-color: var(--system-tag-border-color); + --spectrum-tag-border-color-hover: var(--system-tag-border-color-hover); + --spectrum-tag-border-color-active: var(--system-tag-border-color-active); + --spectrum-tag-border-color-focus: var(--system-tag-border-color-focus); + --spectrum-tag-size-small-corner-radius: var(--system-tag-size-small-corner-radius); + --spectrum-tag-size-medium-corner-radius: var(--system-tag-size-medium-corner-radius); + --spectrum-tag-size-large-corner-radius: var(--system-tag-size-large-corner-radius); + --spectrum-tag-background-color: var(--system-tag-background-color); + --spectrum-tag-background-color-hover: var(--system-tag-background-color-hover); + --spectrum-tag-background-color-active: var(--system-tag-background-color-active); + --spectrum-tag-background-color-focus: var(--system-tag-background-color-focus); + --spectrum-tag-content-color: var(--system-tag-content-color); + --spectrum-tag-content-color-hover: var(--system-tag-content-color-hover); + --spectrum-tag-content-color-active: var(--system-tag-content-color-active); + --spectrum-tag-content-color-focus: var(--system-tag-content-color-focus); + --spectrum-tag-border-color-selected: var(--system-tag-border-color-selected); + --spectrum-tag-border-color-selected-hover: var(--system-tag-border-color-selected-hover); + --spectrum-tag-border-color-selected-active: var(--system-tag-border-color-selected-active); + --spectrum-tag-border-color-selected-focus: var(--system-tag-border-color-selected-focus); + --spectrum-tag-border-color-disabled: var(--system-tag-border-color-disabled); + --spectrum-tag-background-color-disabled: var(--system-tag-background-color-disabled); + --spectrum-tag-size-small-spacing-inline-start: var(--system-tag-size-small-spacing-inline-start); + --spectrum-tag-size-small-label-spacing-inline-end: var(--system-tag-size-small-label-spacing-inline-end); + --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--system-tag-size-small-clear-button-spacing-inline-end); + --spectrum-tag-size-medium-spacing-inline-start: var(--system-tag-size-medium-spacing-inline-start); + --spectrum-tag-size-medium-label-spacing-inline-end: var(--system-tag-size-medium-label-spacing-inline-end); + --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--system-tag-size-medium-clear-button-spacing-inline-end); + --spectrum-tag-size-large-spacing-inline-start: var(--system-tag-size-large-spacing-inline-start); + --spectrum-tag-size-large-label-spacing-inline-end: var(--system-tag-size-large-label-spacing-inline-end); + --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--system-tag-size-large-clear-button-spacing-inline-end); + --spectrum-avatar-opacity-disabled: var(--system-tag-avatar-opacity-disabled); + --spectrum-tag-animation-duration: var(--system-tag-animation-duration); + --spectrum-tag-border-width: var(--system-tag-border-width); + --spectrum-tag-focus-ring-thickness: var(--system-tag-focus-ring-thickness); + --spectrum-tag-focus-ring-gap: var(--system-tag-focus-ring-gap); + --spectrum-tag-focus-ring-color: var(--system-tag-focus-ring-color); + --spectrum-tag-label-line-height: var(--system-tag-label-line-height); + --spectrum-tag-label-font-weight: var(--system-tag-label-font-weight); + --spectrum-tag-content-color-selected: var(--system-tag-content-color-selected); + --spectrum-tag-background-color-selected: var(--system-tag-background-color-selected); + --spectrum-tag-background-color-selected-hover: var(--system-tag-background-color-selected-hover); + --spectrum-tag-background-color-selected-active: var(--system-tag-background-color-selected-active); + --spectrum-tag-background-color-selected-focus: var(--system-tag-background-color-selected-focus); + --spectrum-tag-border-color-invalid: var(--system-tag-border-color-invalid); + --spectrum-tag-border-color-invalid-hover: var(--system-tag-border-color-invalid-hover); + --spectrum-tag-border-color-invalid-active: var(--system-tag-border-color-invalid-active); + --spectrum-tag-border-color-invalid-focus: var(--system-tag-border-color-invalid-focus); + --spectrum-tag-content-color-invalid: var(--system-tag-content-color-invalid); + --spectrum-tag-content-color-invalid-hover: var(--system-tag-content-color-invalid-hover); + --spectrum-tag-content-color-invalid-active: var(--system-tag-content-color-invalid-active); + --spectrum-tag-content-color-invalid-focus: var(--system-tag-content-color-invalid-focus); + --spectrum-tag-border-color-invalid-selected: var(--system-tag-border-color-invalid-selected); + --spectrum-tag-border-color-invalid-selected-hover: var(--system-tag-border-color-invalid-selected-hover); + --spectrum-tag-border-color-invalid-selected-focus: var(--system-tag-border-color-invalid-selected-focus); + --spectrum-tag-border-color-invalid-selected-active: var(--system-tag-border-color-invalid-selected-active); + --spectrum-tag-background-color-invalid-selected: var(--system-tag-background-color-invalid-selected); + --spectrum-tag-background-color-invalid-selected-hover: var(--system-tag-background-color-invalid-selected-hover); + --spectrum-tag-background-color-invalid-selected-active: var(--system-tag-background-color-invalid-selected-active); + --spectrum-tag-background-color-invalid-selected-focus: var(--system-tag-background-color-invalid-selected-focus); + --spectrum-tag-content-color-invalid-selected: var(--system-tag-content-color-invalid-selected); + --spectrum-tag-border-color-emphasized: var(--system-tag-border-color-emphasized); + --spectrum-tag-border-color-emphasized-hover: var(--system-tag-border-color-emphasized-hover); + --spectrum-tag-border-color-emphasized-active: var(--system-tag-border-color-emphasized-active); + --spectrum-tag-border-color-emphasized-focus: var(--system-tag-border-color-emphasized-focus); + --spectrum-tag-background-color-emphasized: var(--system-tag-background-color-emphasized); + --spectrum-tag-background-color-emphasized-hover: var(--system-tag-background-color-emphasized-hover); + --spectrum-tag-background-color-emphasized-active: var(--system-tag-background-color-emphasized-active); + --spectrum-tag-background-color-emphasized-focus: var(--system-tag-background-color-emphasized-focus); + --spectrum-tag-content-color-emphasized: var(--system-tag-content-color-emphasized); + --spectrum-tag-content-color-disabled: var(--system-tag-content-color-disabled); + --spectrum-tag-icon-spacing-inline-end: var(--system-tag-size-l-icon-spacing-inline-end); + --spectrum-tag-icon-size: var(--system-tag-size-l-icon-size); + --spectrum-tag-icon-spacing-block-start: var(--system-tag-size-l-icon-spacing-block-start); + --spectrum-tag-icon-spacing-block-end: var(--system-tag-size-l-icon-spacing-block-end); + --spectrum-tag-avatar-spacing-block-start: var(--system-tag-size-l-avatar-spacing-block-start); + --spectrum-tag-avatar-spacing-block-end: var(--system-tag-size-l-avatar-spacing-block-end); + --spectrum-tag-avatar-spacing-inline-end: var(--system-tag-size-l-avatar-spacing-inline-end); + --spectrum-tag-label-spacing-block: var(--system-tag-size-l-label-spacing-block); + --spectrum-tag-clear-button-spacing-inline-start: var(--system-tag-size-l-clear-button-spacing-inline-start); + --spectrum-tag-height: var(--system-tag-size-l-height); + --spectrum-tag-font-size: var(--system-tag-size-l-font-size); + --spectrum-tag-clear-button-spacing-block: var(--system-tag-size-l-clear-button-spacing-block); + --spectrum-tag-corner-radius: var(--system-tag-size-l-corner-radius); + --spectrum-tag-spacing-inline-start: var(--system-tag-size-l-spacing-inline-start); + --spectrum-tag-label-spacing-inline-end: var(--system-tag-size-l-label-spacing-inline-end); + --spectrum-tag-clear-button-spacing-inline-end: var(--system-tag-size-l-clear-button-spacing-inline-end); + --spectrum-tag-group-item-margin-block: var(--system-tag-group-item-margin-block); + --spectrum-tag-group-item-margin-inline: var(--system-tag-group-item-margin-inline); + --spectrum-textfield-border-color: var(--system-textfield-border-color); + --spectrum-textfield-border-color-hover: var(--system-textfield-border-color-hover); + --spectrum-textfield-border-color-focus: var(--system-textfield-border-color-focus); + --spectrum-textfield-border-color-focus-hover: var(--system-textfield-border-color-focus-hover); + --spectrum-textfield-border-color-keyboard-focus: var(--system-textfield-border-color-keyboard-focus); + --spectrum-textfield-border-width: var(--system-textfield-border-width); + --spectrum-texfield-animation-duration: var(--system-textfield-texfield-animation-duration); + --spectrum-textfield-width: var(--system-textfield-width); + --spectrum-textfield-min-width: var(--system-textfield-min-width); + --spectrum-textfield-corner-radius: var(--system-textfield-corner-radius); + --spectrum-textfield-spacing-inline-quiet: var(--system-textfield-spacing-inline-quiet); + --spectrum-textfield-spacing-block-start: var(--system-textfield-spacing-block-start); + --spectrum-textfield-spacing-block-end: var(--system-textfield-spacing-block-end); + --spectrum-textfield-spacing-block-quiet: var(--system-textfield-spacing-block-quiet); + --spectrum-textfield-label-spacing-block: var(--system-textfield-label-spacing-block); + --spectrum-textfield-helptext-spacing-block: var(--system-textfield-helptext-spacing-block); + --spectrum-textfield-icon-spacing-inline-end-quiet-invalid: var(--system-textfield-icon-spacing-inline-end-quiet-invalid); + --spectrum-textfield-icon-spacing-inline-end-quiet-valid: var(--system-textfield-icon-spacing-inline-end-quiet-valid); + --spectrum-textfield-font-family: var(--system-textfield-font-family); + --spectrum-textfield-font-weight: var(--system-textfield-font-weight); + --spectrum-textfield-character-count-font-family: var(--system-textfield-character-count-font-family); + --spectrum-textfield-character-count-font-weight: var(--system-textfield-character-count-font-weight); + --spectrum-textfield-character-count-spacing-inline: var(--system-textfield-character-count-spacing-inline); + --spectrum-textfield-character-count-spacing-inline-side: var(--system-textfield-character-count-spacing-inline-side); + --spectrum-textfield-focus-indicator-width: var(--system-textfield-focus-indicator-width); + --spectrum-textfield-focus-indicator-gap: var(--system-textfield-focus-indicator-gap); + --spectrum-textfield-background-color: var(--system-textfield-background-color); + --spectrum-textfield-text-color-default: var(--system-textfield-text-color-default); + --spectrum-textfield-text-color-hover: var(--system-textfield-text-color-hover); + --spectrum-textfield-text-color-focus: var(--system-textfield-text-color-focus); + --spectrum-textfield-text-color-focus-hover: var(--system-textfield-text-color-focus-hover); + --spectrum-textfield-text-color-keyboard-focus: var(--system-textfield-text-color-keyboard-focus); + --spectrum-textfield-text-color-readonly: var(--system-textfield-text-color-readonly); + --spectrum-textfield-background-color-disabled: var(--system-textfield-background-color-disabled); + --spectrum-textfield-border-color-disabled: var(--system-textfield-border-color-disabled); + --spectrum-textfield-text-color-disabled: var(--system-textfield-text-color-disabled); + --spectrum-textfield-border-color-invalid-default: var(--system-textfield-border-color-invalid-default); + --spectrum-textfield-border-color-invalid-hover: var(--system-textfield-border-color-invalid-hover); + --spectrum-textfield-border-color-invalid-focus: var(--system-textfield-border-color-invalid-focus); + --spectrum-textfield-border-color-invalid-focus-hover: var(--system-textfield-border-color-invalid-focus-hover); + --spectrum-textfield-border-color-invalid-keyboard-focus: var(--system-textfield-border-color-invalid-keyboard-focus); + --spectrum-textfield-icon-color-invalid: var(--system-textfield-icon-color-invalid); + --spectrum-textfield-text-color-invalid: var(--system-textfield-text-color-invalid); + --spectrum-textfield-text-color-valid: var(--system-textfield-text-color-valid); + --spectrum-textfield-icon-color-valid: var(--system-textfield-icon-color-valid); + --spectrum-textfield-focus-indicator-color: var(--system-textfield-focus-indicator-color); + --spectrum-text-area-min-inline-size: var(--system-textfield-text-area-min-inline-size); + --spectrum-text-area-min-block-size: var(--system-textfield-text-area-min-block-size); + --spectrum-textfield-height: var(--system-textfield-size-xl-height); + --spectrum-textfield-label-spacing-block-quiet: var(--system-textfield-size-xl-label-spacing-block-quiet); + --spectrum-textfield-label-spacing-inline-side-label: var(--system-textfield-size-xl-label-spacing-inline-side-label); + --spectrum-textfield-placeholder-font-size: var(--system-textfield-size-xl-placeholder-font-size); + --spectrum-textfield-spacing-inline: var(--system-textfield-size-xl-spacing-inline); + --spectrum-textfield-icon-size-invalid: var(--system-textfield-size-xl-icon-size-invalid); + --spectrum-textfield-icon-size-valid: var(--system-textfield-size-xl-icon-size-valid); + --spectrum-textfield-icon-spacing-inline-end-invalid: var(--system-textfield-size-xl-icon-spacing-inline-end-invalid); + --spectrum-textfield-icon-spacing-inline-end-valid: var(--system-textfield-size-xl-icon-spacing-inline-end-valid); + --spectrum-textfield-icon-spacing-block-invalid: var(--system-textfield-size-xl-icon-spacing-block-invalid); + --spectrum-textfield-icon-spacing-block-valid: var(--system-textfield-size-xl-icon-spacing-block-valid); + --spectrum-textfield-icon-spacing-inline-start-invalid: var(--system-textfield-size-xl-icon-spacing-inline-start-invalid); + --spectrum-textfield-icon-spacing-inline-start-valid: var(--system-textfield-size-xl-icon-spacing-inline-start-valid); + --spectrum-textfield-character-count-font-size: var(--system-textfield-size-xl-character-count-font-size); + --spectrum-textfield-character-count-spacing-block: var(--system-textfield-size-xl-character-count-spacing-block); + --spectrum-textfield-character-count-spacing-block-quiet: var(--system-textfield-size-xl-character-count-spacing-block-quiet); + --spectrum-textfield-character-count-spacing-block-side: var(--system-textfield-size-xl-character-count-spacing-block-side); + --spectrum-text-area-min-block-size-quiet: var(--system-textfield-size-xl-text-area-min-block-size-quiet); + --spectrum-thumbnail-size: var(--system-thumbnail-size-1000-size); + --spectrum-thumbnail-border-radius: var(--system-thumbnail-border-radius); + --spectrum-thumbnail-border-width: var(--system-thumbnail-border-width); + --spectrum-thumbnail-border-color-rgba: var(--system-thumbnail-border-color-rgba); + --spectrum-thumbnail-layer-border-width-inner: var(--system-thumbnail-layer-border-width-inner); + --spectrum-thumbnail-layer-border-color-inner: var(--system-thumbnail-layer-border-color-inner); + --spectrum-thumbnail-layer-border-width-outer: var(--system-thumbnail-layer-border-width-outer); + --spectrum-thumbnail-layer-border-color-outer: var(--system-thumbnail-layer-border-color-outer); + --spectrum-thumbnail-border-width-selected: var(--system-thumbnail-border-width-selected); + --spectrum-thumbnail-border-color-selected: var(--system-thumbnail-border-color-selected); + --spectrum-thumbnail-focus-indicator-thickness: var(--system-thumbnail-focus-indicator-thickness); + --spectrum-thumbnail-focus-indicator-gap: var(--system-thumbnail-focus-indicator-gap); + --spectrum-thumbnail-focus-indicator-color: var(--system-thumbnail-focus-indicator-color); + --spectrum-thumbnail-color-opacity-disabled: var(--system-thumbnail-color-opacity-disabled); + --spectrum-toast-background-color-default: var(--system-toast-background-color-default); + --spectrum-toast-font-weight: var(--system-toast-font-weight); + --spectrum-toast-font-size: var(--system-toast-font-size); + --spectrum-toast-corner-radius: var(--system-toast-corner-radius); + --spectrum-toast-block-size: var(--system-toast-block-size); + --spectrum-toast-max-inline-size: var(--system-toast-max-inline-size); + --spectrum-toast-border-width: var(--system-toast-border-width); + --spectrum-toast-line-height: var(--system-toast-line-height); + --spectrum-toast-line-height-cjk: var(--system-toast-line-height-cjk); + --spectrum-toast-spacing-icon-to-text: var(--system-toast-spacing-icon-to-text); + --spectrum-toast-spacing-start-edge-to-text-and-icon: var(--system-toast-spacing-start-edge-to-text-and-icon); + --spectrum-toast-spacing-text-and-action-button-to-divider: var(--system-toast-spacing-text-and-action-button-to-divider); + --spectrum-toast-spacing-top-edge-to-divider: var(--system-toast-spacing-top-edge-to-divider); + --spectrum-toast-spacing-bottom-edge-to-divider: var(--system-toast-spacing-bottom-edge-to-divider); + --spectrum-toast-spacing-top-edge-to-icon: var(--system-toast-spacing-top-edge-to-icon); + --spectrum-toast-spacing-text-to-action-button-horizontal: var(--system-toast-spacing-text-to-action-button-horizontal); + --spectrum-toast-spacing-close-button: var(--system-toast-spacing-close-button); + --spectrum-toast-spacing-block-start: var(--system-toast-spacing-block-start); + --spectrum-toast-spacing-block-end: var(--system-toast-spacing-block-end); + --spectrum-toast-spacing-top-edge-to-text: var(--system-toast-spacing-top-edge-to-text); + --spectrum-toast-spacing-bottom-edge-to-text: var(--system-toast-spacing-bottom-edge-to-text); + --spectrum-toast-negative-background-color-default: var(--system-toast-negative-background-color-default); + --spectrum-toast-positive-background-color-default: var(--system-toast-positive-background-color-default); + --spectrum-toast-informative-background-color-default: var(--system-toast-informative-background-color-default); + --spectrum-toast-text-and-icon-color: var(--system-toast-text-and-icon-color); + --spectrum-toast-divider-color: var(--system-toast-divider-color); + --spectrum-tooltip-backgound-color-default-neutral: var(--system-tooltip-backgound-color-default-neutral); + --spectrum-tooltip-animation-duration: var(--system-tooltip-animation-duration); + --spectrum-tooltip-margin: var(--system-tooltip-margin); + --spectrum-tooltip-height: var(--system-tooltip-height); + --spectrum-tooltip-max-inline-size: var(--system-tooltip-max-inline-size); + --spectrum-tooltip-border-radius: var(--system-tooltip-border-radius); + --spectrum-tooltip-icon-width: var(--system-tooltip-icon-width); + --spectrum-tooltip-icon-height: var(--system-tooltip-icon-height); + --spectrum-tooltip-font-size: var(--system-tooltip-font-size); + --spectrum-tooltip-line-height: var(--system-tooltip-line-height); + --spectrum-tooltip-cjk-line-height: var(--system-tooltip-cjk-line-height); + --spectrum-tooltip-font-weight: var(--system-tooltip-font-weight); + --spectrum-tooltip-spacing-inline: var(--system-tooltip-spacing-inline); + --spectrum-tooltip-spacing-block-start: var(--system-tooltip-spacing-block-start); + --spectrum-tooltip-spacing-block-end: var(--system-tooltip-spacing-block-end); + --spectrum-tooltip-icon-spacing-inline-start: var(--system-tooltip-icon-spacing-inline-start); + --spectrum-tooltip-icon-spacing-inline-end: var(--system-tooltip-icon-spacing-inline-end); + --spectrum-tooltip-icon-spacing-block-start: var(--system-tooltip-icon-spacing-block-start); + --spectrum-tooltip-background-color-informative: var(--system-tooltip-background-color-informative); + --spectrum-tooltip-background-color-positive: var(--system-tooltip-background-color-positive); + --spectrum-tooltip-background-color-negative: var(--system-tooltip-background-color-negative); + --spectrum-tooltip-content-color: var(--system-tooltip-content-color); + --spectrum-tooltip-tip-inline-size: var(--system-tooltip-tip-inline-size); + --spectrum-tooltip-tip-block-size: var(--system-tooltip-tip-block-size); + --spectrum-tooltip-tip-square-size: var(--system-tooltip-tip-square-size); + --spectrum-tooltip-tip-height-percentage: var(--system-tooltip-tip-height-percentage); + --spectrum-tooltip-tip-antialiasing-inset: var(--system-tooltip-tip-antialiasing-inset); + --spectrum-tooltip-pointer-corner-spacing: var(--system-tooltip-pointer-corner-spacing); + --spectrum-tooltip-background-color-default: var(--system-tooltip-background-color-default); + --spectrum-tray-exit-animation-delay: var(--system-tray-exit-animation-delay); + --spectrum-tray-entry-animation-delay: var(--system-tray-entry-animation-delay); + --spectrum-tray-max-inline-size: var(--system-tray-max-inline-size); + --spectrum-tray-spacing-edge-to-tray-safe-zone: var(--system-tray-spacing-edge-to-safe-zone); + --spectrum-tray-entry-animation-duration: var(--system-tray-entry-animation-duration); + --spectrum-tray-exit-animation-duration: var(--system-tray-exit-animation-duration); + --spectrum-tray-corner-radius: var(--system-tray-corner-radius); + --spectrum-tray-background-color: var(--system-tray-background-color); + --spectrum-treeview-line-height: var(--system-tree-view-line-height); + --spectrum-treeview-margin-block: var(--system-tree-view-margin-block); + --spectrum-treeview-font-size: var(--system-tree-view-size-xl-font-size); + --spectrum-treeview-item-min-block-size: var(--system-tree-view-size-xl-item-min-block-size); + --spectrum-treeview-item-indentation: var(--system-tree-view-size-xl-item-indentation); + --spectrum-treeview-item-padding-inline-start: var(--system-tree-view-size-xl-item-padding-inline-start); + --spectrum-treeview-item-padding-inline-end: var(--system-tree-view-size-xl-item-padding-inline-end); + --spectrum-treeview-section-spacing: var(--system-tree-view-section-spacing); + --spectrum-treeview-heading-font-weight: var(--system-tree-view-heading-font-weight); + --spectrum-treeview-heading-bottom-to-text: var(--system-tree-view-size-xl-heading-bottom-to-text); + --spectrum-treeview-heading-color: var(--system-tree-view-heading-color); + --spectrum-treeview-item-border-size: var(--system-tree-view-item-border-size); + --spectrum-treeview-item-border-size-selected: var(--system-tree-view-item-border-size-selected); + --spectrum-treeview-item-border-radius: var(--system-tree-view-detached-item-border-radius); + --spectrum-treeview-item-border-color-selected: var(--system-tree-view-item-border-color-selected); + --spectrum-treeview-item-border-color-focus: var(--system-tree-view-item-border-color-focus); + --spectrum-treeview-item-background-color-hover: var(--system-tree-view-item-background-color-hover); + --spectrum-treeview-item-background-color-focus: var(--system-tree-view-item-background-color-focus); + --spectrum-treeview-item-border-color-quiet-selected: var(--system-tree-view-item-border-color-quiet-selected); + --spectrum-treeview-item-icon-gap: var(--system-tree-view-item-icon-gap); + --spectrum-treeview-item-icon-color: var(--system-tree-view-item-icon-color); + --spectrum-treeview-item-icon-color-hover: var(--system-tree-view-item-icon-color-hover); + --spectrum-treeview-item-icon-color-focus: var(--system-tree-view-item-icon-color-focus); + --spectrum-treeview-item-icon-color-selected: var(--system-tree-view-item-icon-color-selected); + --spectrum-treeview-item-icon-color-disabled: var(--system-tree-view-item-icon-color-disabled); + --spectrum-treeview-item-text-color: var(--system-tree-view-item-text-color); + --spectrum-treeview-item-text-color-selected: var(--system-tree-view-item-text-color-selected); + --spectrum-treeview-item-text-color-disabled: var(--system-tree-view-item-text-color-disabled); + --spectrum-treeview-item-text-color-focus: var(--system-tree-view-item-text-color-focus); + --spectrum-treeview-item-text-color-hover: var(--system-tree-view-item-text-color-hover); + --spectrum-treeview-indicator-margin-inline-start: var(--system-tree-view-size-xl-indicator-margin-inline-start); + --spectrum-treeview-indicator-padding: var(--system-tree-view-size-xl-indicator-padding); + --spectrum-treeview-item-min-block-size-thumbnail-offset: var(--system-tree-view-size-xl-item-min-block-size-thumbnail-offset); + --spectrum-treeview-indicator-animation-duration: var(--system-tree-view-indicator-animation-duration); + --spectrum-font-family-ar: var(--system-font-family-ar); + --spectrum-font-family-he: var(--system-font-family-he); + --spectrum-font-family: var(--system-font-family); + --spectrum-font-style: var(--system-font-style); + --spectrum-font-size: var(--system-font-size); + --spectrum-heading-sans-serif-font-family: var(--system-heading-sans-serif-font-family); + --spectrum-heading-serif-font-family: var(--system-heading-serif-font-family); + --spectrum-heading-cjk-font-family: var(--system-heading-cjk-font-family); + --spectrum-heading-cjk-letter-spacing: var(--system-heading-cjk-letter-spacing); + --spectrum-heading-font-color: var(--system-heading-font-color); + --spectrum-heading-font-size: var(--system-heading-size-xxxl-font-size); + --spectrum-heading-cjk-font-size: var(--system-heading-size-xxxl-cjk-font-size); + --spectrum-body-sans-serif-font-family: var(--system-body-sans-serif-font-family); + --spectrum-body-serif-font-family: var(--system-body-serif-font-family); + --spectrum-body-cjk-font-family: var(--system-body-cjk-font-family); + --spectrum-body-cjk-letter-spacing: var(--system-body-cjk-letter-spacing); + --spectrum-body-font-color: var(--system-body-font-color); + --spectrum-body-font-size: var(--system-body-size-xxxl-font-size); + --spectrum-detail-sans-serif-font-family: var(--system-detail-sans-serif-font-family); + --spectrum-detail-serif-font-family: var(--system-detail-serif-font-family); + --spectrum-detail-cjk-font-family: var(--system-detail-cjk-font-family); + --spectrum-detail-font-color: var(--system-detail-font-color); + --spectrum-detail-font-size: var(--system-detail-size-xl-font-size); + --spectrum-code-font-family: var(--system-code-font-family); + --spectrum-code-cjk-letter-spacing: var(--system-code-cjk-letter-spacing); + --spectrum-code-font-color: var(--system-code-font-color); + --spectrum-code-font-size: var(--system-code-size-xl-font-size); + --spectrum-underlay-background-entry-animation-delay: var(--system-underlay-background-entry-animation-delay); + --spectrum-underlay-background-exit-animation-ease: var(--system-underlay-background-exit-animation-ease); + --spectrum-underlay-background-entry-animation-ease: var(--system-underlay-background-entry-animation-ease); + --spectrum-underlay-background-entry-animation-duration: var(--system-underlay-background-entry-animation-duration); + --spectrum-underlay-background-exit-animation-duration: var(--system-underlay-background-exit-animation-duration); + --spectrum-underlay-background-exit-animation-delay: var(--system-underlay-background-exit-animation-delay); + --spectrum-underlay-background-color: var(--system-underlay-background-color); + --spectrum-well-border-width: var(--system-well-border-width); + --spectrum-well-border-color: var(--system-well-border-color); + --spectrum-well-border-radius: var(--system-well-border-radius); + --spectrum-well-content-color: var(--system-well-content-color); + --spectrum-well-background-color: var(--system-well-background-color); + --spectrum-well-padding: var(--system-well-padding); + --spectrum-well-margin-top: var(--system-well-margin-top); + --spectrum-well-minimum-width: var(--system-well-minimum-width); } diff --git a/tokens/dist/css/components/bridge/infieldbutton.css b/tokens/dist/css/components/bridge/infieldbutton.css deleted file mode 100644 index f490fc8f86a..00000000000 --- a/tokens/dist/css/components/bridge/infieldbutton.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 - * - * 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-InfieldButton { - --spectrum-infield-button-border-width: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-width); - --spectrum-infield-button-border-color: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-color); - --spectrum-infield-button-border-radius: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-radius); - --spectrum-infield-button-border-radius-reset: var(--system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset); - --spectrum-infield-button-stacked-top-border-radius-start-start: var(--system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start); - --spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start); - --spectrum-infield-button-background-color: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color); - --spectrum-infield-button-background-color-hover: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover); - --spectrum-infield-button-background-color-down: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-down); - --spectrum-infield-button-background-color-key-focus: var(--system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus); -} diff --git a/tokens/dist/css/components/bridge/picker.css b/tokens/dist/css/components/bridge/picker.css deleted file mode 100644 index 0ec728da2e7..00000000000 --- a/tokens/dist/css/components/bridge/picker.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 - * - * 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-Picker { - --spectrum-picker-background-color-default: var(--system-spectrum-picker-background-color-default); - --spectrum-picker-background-color-default-open: var(--system-spectrum-picker-background-color-default-open); - --spectrum-picker-background-color-active: var(--system-spectrum-picker-background-color-active); - --spectrum-picker-background-color-hover: var(--system-spectrum-picker-background-color-hover); - --spectrum-picker-background-color-hover-open: var(--system-spectrum-picker-background-color-hover-open); - --spectrum-picker-background-color-key-focus: var(--system-spectrum-picker-background-color-key-focus); - --spectrum-picker-border-color-default: var(--system-spectrum-picker-border-color-default); - --spectrum-picker-border-color-default-open: var(--system-spectrum-picker-border-color-default-open); - --spectrum-picker-border-color-hover: var(--system-spectrum-picker-border-color-hover); - --spectrum-picker-border-color-hover-open: var(--system-spectrum-picker-border-color-hover-open); - --spectrum-picker-border-color-active: var(--system-spectrum-picker-border-color-active); - --spectrum-picker-border-color-key-focus: var(--system-spectrum-picker-border-color-key-focus); - --spectrum-picker-border-width: var(--system-spectrum-picker-border-width); -} diff --git a/tokens/dist/css/components/bridge/pickerbutton.css b/tokens/dist/css/components/bridge/pickerbutton.css deleted file mode 100644 index a110492d7ca..00000000000 --- a/tokens/dist/css/components/bridge/pickerbutton.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 - * - * 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-PickerButton { - --spectrum-picker-button-background-color: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color); - --spectrum-picker-button-background-color-hover: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover); - --spectrum-picker-button-background-color-down: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-down); - --spectrum-picker-button-background-color-key-focus: var(--system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus); - --spectrum-picker-button-border-color: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-color); - --spectrum-picker-button-border-radius: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius); - --spectrum-picker-button-border-radius-rounded-sided: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided); - --spectrum-picker-button-border-radius-sided: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided); - --spectrum-picker-button-border-width: var(--system-spectrum-pickerbutton-spectrum-picker-button-border-width); -} diff --git a/tokens/dist/css/components/bridge/popover.css b/tokens/dist/css/components/bridge/popover.css deleted file mode 100644 index 21dd5a8e453..00000000000 --- a/tokens/dist/css/components/bridge/popover.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 - * - * 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-Popover { - --spectrum-popover-border-width: var(--system-spectrum-popover-border-width); -} diff --git a/tokens/dist/css/components/bridge/radio.css b/tokens/dist/css/components/bridge/radio.css deleted file mode 100644 index 08bfc273b20..00000000000 --- a/tokens/dist/css/components/bridge/radio.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 - * - * 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-Radio { - --spectrum-radio-button-border-color-default: var(--system-spectrum-radio-button-border-color-default); - --spectrum-radio-button-border-color-hover: var(--system-spectrum-radio-button-border-color-hover); - --spectrum-radio-button-border-color-down: var(--system-spectrum-radio-button-border-color-down); - --spectrum-radio-button-border-color-focus: var(--system-spectrum-radio-button-border-color-focus); -} -.spectrum-Radio--emphasized { - --spectrum-radio-button-checked-border-color-default: var(--system-spectrum-radio-emphasized-button-checked-border-color-default); - --spectrum-radio-button-checked-border-color-hover: var(--system-spectrum-radio-emphasized-button-checked-border-color-hover); - --spectrum-radio-button-checked-border-color-down: var(--system-spectrum-radio-emphasized-button-checked-border-color-down); - --spectrum-radio-button-checked-border-color-focus: var(--system-spectrum-radio-emphasized-button-checked-border-color-focus); -} diff --git a/tokens/dist/css/components/bridge/rating.css b/tokens/dist/css/components/bridge/rating.css deleted file mode 100644 index 5dbdc4d1de1..00000000000 --- a/tokens/dist/css/components/bridge/rating.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 - * - * 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-Rating { - --spectrum-rating-icon-color-default: var(--system-spectrum-rating-icon-color-default); - --spectrum-rating-icon-color-hover: var(--system-spectrum-rating-icon-color-hover); - --spectrum-rating-icon-color-down: var(--system-spectrum-rating-icon-color-down); - --spectrum-rating-icon-color-key-focus: var(--system-spectrum-rating-icon-color-key-focus); -} diff --git a/tokens/dist/css/components/bridge/search.css b/tokens/dist/css/components/bridge/search.css deleted file mode 100644 index 79f23c507d3..00000000000 --- a/tokens/dist/css/components/bridge/search.css +++ /dev/null @@ -1,38 +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 - * - * 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-Search { - --spectrum-search-border-radius: var(--system-spectrum-search-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-edge-to-visual); - --spectrum-search-border-color-default: var(--system-spectrum-search-border-color-default); - --spectrum-search-border-color-hover: var(--system-spectrum-search-border-color-hover); - --spectrum-search-border-color-focus: var(--system-spectrum-search-border-color-focus); - --spectrum-search-border-color-focus-hover: var(--system-spectrum-search-border-color-focus-hover); - --spectrum-search-border-color-key-focus: var(--system-spectrum-search-border-color-key-focus); -} -.spectrum-Search--sizeS { - --spectrum-search-border-radius: var(--system-spectrum-search-sizes-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizes-edge-to-visual); -} -.spectrum-Search--sizeM { - --spectrum-search-border-radius: var(--system-spectrum-search-sizem-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizem-edge-to-visual); -} -.spectrum-Search--sizeL { - --spectrum-search-border-radius: var(--system-spectrum-search-sizel-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizel-edge-to-visual); -} -.spectrum-Search--sizeXL { - --spectrum-search-border-radius: var(--system-spectrum-search-sizexl-border-radius); - --spectrum-search-edge-to-visual: var(--system-spectrum-search-sizexl-edge-to-visual); -} diff --git a/tokens/dist/css/components/bridge/slider.css b/tokens/dist/css/components/bridge/slider.css deleted file mode 100644 index bacc46bb52f..00000000000 --- a/tokens/dist/css/components/bridge/slider.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 - * - * 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-Slider { - --spectrum-slider-track-color: var(--system-spectrum-slider-track-color); - --spectrum-slider-track-fill-color: var(--system-spectrum-slider-track-fill-color); - --spectrum-slider-ramp-track-color: var(--system-spectrum-slider-ramp-track-color); - --spectrum-slider-ramp-track-color-disabled: var(--system-spectrum-slider-ramp-track-color-disabled); - --spectrum-slider-handle-background-color: var(--system-spectrum-slider-handle-background-color); - --spectrum-slider-handle-background-color-disabled: var(--system-spectrum-slider-handle-background-color-disabled); - --spectrum-slider-ramp-handle-background-color: var(--system-spectrum-slider-ramp-handle-background-color); - --spectrum-slider-ticks-handle-background-color: var(--system-spectrum-slider-ticks-handle-background-color); - --spectrum-slider-handle-border-color: var(--system-spectrum-slider-handle-border-color); - --spectrum-slider-handle-disabled-background-color: var(--system-spectrum-slider-handle-disabled-background-color); - --spectrum-slider-tick-mark-color: var(--system-spectrum-slider-tick-mark-color); - --spectrum-slider-handle-border-color-hover: var(--system-spectrum-slider-handle-border-color-hover); - --spectrum-slider-handle-border-color-down: var(--system-spectrum-slider-handle-border-color-down); - --spectrum-slider-handle-border-color-key-focus: var(--system-spectrum-slider-handle-border-color-key-focus); - --spectrum-slider-handle-focus-ring-color-key-focus: var(--system-spectrum-slider-handle-focus-ring-color-key-focus); -} diff --git a/tokens/dist/css/components/bridge/stepper.css b/tokens/dist/css/components/bridge/stepper.css deleted file mode 100644 index e3aaa302ed5..00000000000 --- a/tokens/dist/css/components/bridge/stepper.css +++ /dev/null @@ -1,40 +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 - * - * 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-Stepper { - --spectrum-stepper-border-width: var(--system-spectrum-stepper-border-width); - --spectrum-stepper-buttons-border-style: var(--system-spectrum-stepper-buttons-border-style); - --spectrum-stepper-buttons-border-width: var(--system-spectrum-stepper-buttons-border-width); - --spectrum-stepper-buttons-border-color: var(--system-spectrum-stepper-buttons-border-color); - --spectrum-stepper-buttons-background-color: var(--system-spectrum-stepper-buttons-background-color); - --spectrum-stepper-buttons-border-color-hover: var(--system-spectrum-stepper-buttons-border-color-hover); - --spectrum-stepper-buttons-border-color-focus: var(--system-spectrum-stepper-buttons-border-color-focus); - --spectrum-stepper-buttons-border-color-keyboard-focus: var(--system-spectrum-stepper-buttons-border-color-keyboard-focus); - --spectrum-stepper-button-border-radius-reset: var(--system-spectrum-stepper-button-border-radius-reset); - --spectrum-stepper-button-border-width: var(--system-spectrum-stepper-button-border-width); - --spectrum-stepper-border-color: var(--system-spectrum-stepper-border-color); - --spectrum-stepper-border-color-hover: var(--system-spectrum-stepper-border-color-hover); - --spectrum-stepper-border-color-focus: var(--system-spectrum-stepper-border-color-focus); - --spectrum-stepper-border-color-focus-hover: var(--system-spectrum-stepper-border-color-focus-hover); - --spectrum-stepper-border-color-keyboard-focus: var(--system-spectrum-stepper-border-color-keyboard-focus); - --spectrum-stepper-border-color-invalid: var(--system-spectrum-stepper-border-color-invalid); - --spectrum-stepper-border-color-focus-invalid: var(--system-spectrum-stepper-border-color-focus-invalid); - --spectrum-stepper-border-color-focus-hover-invalid: var(--system-spectrum-stepper-border-color-focus-hover-invalid); - --spectrum-stepper-border-color-keyboard-focus-invalid: var(--system-spectrum-stepper-border-color-keyboard-focus-invalid); - --spectrum-stepper-button-background-color-focus: var(--system-spectrum-stepper-button-background-color-focus); - --spectrum-stepper-button-background-color-keyboard-focus: var(--system-spectrum-stepper-button-background-color-keyboard-focus); -} -.spectrum-Stepper.is-disabled { - --spectrum-stepper-buttons-background-color: var(--system-spectrum-stepper-disabled-buttons-background-color); - --spectrum-stepper-buttons-border-width: var(--system-spectrum-stepper-disabled-buttons-border-width); -} diff --git a/tokens/dist/css/components/bridge/switch.css b/tokens/dist/css/components/bridge/switch.css deleted file mode 100644 index 5c85388b0ab..00000000000 --- a/tokens/dist/css/components/bridge/switch.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 - * - * 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-Switch { - --spectrum-switch-handle-border-color-default: var(--system-spectrum-switch-handle-border-color-default); - --spectrum-switch-handle-border-color-hover: var(--system-spectrum-switch-handle-border-color-hover); - --spectrum-switch-handle-border-color-down: var(--system-spectrum-switch-handle-border-color-down); - --spectrum-switch-handle-border-color-focus: var(--system-spectrum-switch-handle-border-color-focus); - --spectrum-switch-handle-border-color-selected-default: var(--system-spectrum-switch-handle-border-color-selected-default); - --spectrum-switch-handle-border-color-selected-hover: var(--system-spectrum-switch-handle-border-color-selected-hover); - --spectrum-switch-handle-border-color-selected-down: var(--system-spectrum-switch-handle-border-color-selected-down); - --spectrum-switch-handle-border-color-selected-focus: var(--system-spectrum-switch-handle-border-color-selected-focus); -} diff --git a/tokens/dist/css/components/bridge/tabs.css b/tokens/dist/css/components/bridge/tabs.css deleted file mode 100644 index eaea09ed394..00000000000 --- a/tokens/dist/css/components/bridge/tabs.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 - * - * 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-Tabs { - --spectrum-tabs-font-weight: var(--system-spectrum-tabs-font-weight); -} diff --git a/tokens/dist/css/components/bridge/tag.css b/tokens/dist/css/components/bridge/tag.css deleted file mode 100644 index 576f43ca8a6..00000000000 --- a/tokens/dist/css/components/bridge/tag.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 - * - * 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-Tag { - --spectrum-tag-border-color: var(--system-spectrum-tag-border-color); - --spectrum-tag-border-color-hover: var(--system-spectrum-tag-border-color-hover); - --spectrum-tag-border-color-active: var(--system-spectrum-tag-border-color-active); - --spectrum-tag-border-color-focus: var(--system-spectrum-tag-border-color-focus); - --spectrum-tag-size-small-corner-radius: var(--system-spectrum-tag-size-small-corner-radius); - --spectrum-tag-size-medium-corner-radius: var(--system-spectrum-tag-size-medium-corner-radius); - --spectrum-tag-size-large-corner-radius: var(--system-spectrum-tag-size-large-corner-radius); - --spectrum-tag-background-color: var(--system-spectrum-tag-background-color); - --spectrum-tag-background-color-hover: var(--system-spectrum-tag-background-color-hover); - --spectrum-tag-background-color-active: var(--system-spectrum-tag-background-color-active); - --spectrum-tag-background-color-focus: var(--system-spectrum-tag-background-color-focus); - --spectrum-tag-content-color: var(--system-spectrum-tag-content-color); - --spectrum-tag-content-color-hover: var(--system-spectrum-tag-content-color-hover); - --spectrum-tag-content-color-active: var(--system-spectrum-tag-content-color-active); - --spectrum-tag-content-color-focus: var(--system-spectrum-tag-content-color-focus); - --spectrum-tag-border-color-selected: var(--system-spectrum-tag-border-color-selected); - --spectrum-tag-border-color-selected-hover: var(--system-spectrum-tag-border-color-selected-hover); - --spectrum-tag-border-color-selected-active: var(--system-spectrum-tag-border-color-selected-active); - --spectrum-tag-border-color-selected-focus: var(--system-spectrum-tag-border-color-selected-focus); - --spectrum-tag-border-color-disabled: var(--system-spectrum-tag-border-color-disabled); - --spectrum-tag-background-color-disabled: var(--system-spectrum-tag-background-color-disabled); - --spectrum-tag-size-small-spacing-inline-start: var(--system-spectrum-tag-size-small-spacing-inline-start); - --spectrum-tag-size-small-label-spacing-inline-end: var(--system-spectrum-tag-size-small-label-spacing-inline-end); - --spectrum-tag-size-small-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-small-clear-button-spacing-inline-end); - --spectrum-tag-size-medium-spacing-inline-start: var(--system-spectrum-tag-size-medium-spacing-inline-start); - --spectrum-tag-size-medium-label-spacing-inline-end: var(--system-spectrum-tag-size-medium-label-spacing-inline-end); - --spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-medium-clear-button-spacing-inline-end); - --spectrum-tag-size-large-spacing-inline-start: var(--system-spectrum-tag-size-large-spacing-inline-start); - --spectrum-tag-size-large-label-spacing-inline-end: var(--system-spectrum-tag-size-large-label-spacing-inline-end); - --spectrum-tag-size-large-clear-button-spacing-inline-end: var(--system-spectrum-tag-size-large-clear-button-spacing-inline-end); -} diff --git a/tokens/dist/css/components/bridge/textfield.css b/tokens/dist/css/components/bridge/textfield.css deleted file mode 100644 index 9f6f1616a17..00000000000 --- a/tokens/dist/css/components/bridge/textfield.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 - * - * 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-Textfield { - --spectrum-textfield-border-color: var(--system-spectrum-textfield-border-color); - --spectrum-textfield-border-color-hover: var(--system-spectrum-textfield-border-color-hover); - --spectrum-textfield-border-color-focus: var(--system-spectrum-textfield-border-color-focus); - --spectrum-textfield-border-color-focus-hover: var(--system-spectrum-textfield-border-color-focus-hover); - --spectrum-textfield-border-color-keyboard-focus: var(--system-spectrum-textfield-border-color-keyboard-focus); - --spectrum-textfield-border-width: var(--system-spectrum-textfield-border-width); -} diff --git a/tokens/dist/css/components/bridge/toast.css b/tokens/dist/css/components/bridge/toast.css deleted file mode 100644 index 3e078919966..00000000000 --- a/tokens/dist/css/components/bridge/toast.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 - * - * 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-Toast { - --spectrum-toast-background-color-default: var(--system-spectrum-toast-background-color-default); -} diff --git a/tokens/dist/css/components/bridge/tooltip.css b/tokens/dist/css/components/bridge/tooltip.css deleted file mode 100644 index 715d093c82c..00000000000 --- a/tokens/dist/css/components/bridge/tooltip.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 - * - * 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-Tooltip { - --spectrum-tooltip-backgound-color-default-neutral: var(--system-spectrum-tooltip-backgound-color-default-neutral); -} diff --git a/tokens/dist/css/components/express/accordion.css b/tokens/dist/css/components/express/accordion.css new file mode 100644 index 00000000000..d8d0edd3f7c --- /dev/null +++ b/tokens/dist/css/components/express/accordion.css @@ -0,0 +1,99 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-accordion-item-height: var(--spectrum-component-height-200); + --system-accordion-item-width: var(--spectrum-accordion-minimum-width); + --system-accordion-disclosure-indicator-height: var(--spectrum-component-height-100); + --system-accordion-disclosure-indicator-to-text-space: var(--spectrum-accordion-disclosure-indicator-to-text); + --system-accordion-edge-to-disclosure-indicator-space: var(--spectrum-accordion-edge-to-disclosure-indicator); + --system-accordion-edge-to-text-space: var(--spectrum-accordion-edge-to-text); + --system-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-medium); + --system-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-medium); + --system-accordion-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-accordion-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-accordion-corner-radius: var(--spectrum-corner-radius-100); + --system-accordion-item-content-area-top-to-content: var(--spectrum-accordion-content-area-top-to-content); + --system-accordion-item-content-area-bottom-to-content: var(--spectrum-accordion-content-area-bottom-to-content); + --system-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-75); + --system-accordion-item-header-font: var(--spectrum-sans-font-family-stack); + --system-accordion-item-header-font-weight: var(--spectrum-bold-font-weight); + --system-accordion-item-header-font-style: var(--spectrum-default-font-style); + --system-accordion-item-header-font-size: var(--spectrum-font-size-300); + --system-accordion-item-header-line-height: 1.25; + --system-accordion-item-content-font: var(--spectrum-sans-font-family-stack); + --system-accordion-item-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-accordion-item-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-accordion-item-content-font-size: var(--spectrum-body-size-s); + --system-accordion-item-content-line-height: var(--spectrum-line-height-100); + --system-accordion-background-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default)); + --system-accordion-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover)); + --system-accordion-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down)); + --system-accordion-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus)); + --system-accordion-item-header-color-default: var(--spectrum-neutral-content-color-default); + --system-accordion-item-header-color-hover: var(--spectrum-neutral-content-color-hover); + --system-accordion-item-header-color-down: var(--spectrum-neutral-content-color-down); + --system-accordion-item-header-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-accordion-item-header-disabled-color: var(--spectrum-disabled-content-color); + --system-accordion-item-content-disabled-color: var(--spectrum-disabled-content-color); + --system-accordion-item-content-color: var(--spectrum-body-color); + --system-accordion-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-accordion-divider-color: var(--spectrum-gray-300); + --system-accordion-item-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-accordion-item-content-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-accordion-item-height-size-s: var(--spectrum-component-height-100); + --system-accordion-disclosure-indicator-height-size-s: var(--spectrum-component-height-75); + --system-accordion-component-edge-to-text-size-s: var(--spectrum-component-edge-to-text-50); + --system-accordion-item-header-font-size-size-s: var(--spectrum-font-size-200); + --system-accordion-item-content-font-size-size-s: var(--spectrum-body-size-xs); + --system-accordion-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-regular-small); + --system-accordion-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-regular-small); + --system-accordion-item-height-size-l: var(--spectrum-component-height-300); + --system-accordion-disclosure-indicator-height-size-l: var(--spectrum-component-height-200); + --system-accordion-component-edge-to-text-size-l: var(--spectrum-component-edge-to-text-100); + --system-accordion-item-header-font-size-size-l: var(--spectrum-font-size-500); + --system-accordion-item-content-font-size-size-l: var(--spectrum-body-size-m); + --system-accordion-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-regular-large); + --system-accordion-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-regular-large); + --system-accordion-item-height-size-xl: var(--spectrum-component-height-400); + --system-accordion-disclosure-indicator-height-size-xl: var(--spectrum-component-height-300); + --system-accordion-component-edge-to-text-size-xl: var(--spectrum-component-edge-to-text-200); + --system-accordion-item-header-font-size-size-xl: var(--spectrum-font-size-700); + --system-accordion-item-content-font-size-size-xl: var(--spectrum-body-size-l); + --system-accordion-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-regular-extra-large); + --system-accordion-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-regular-extra-large); + --system-accordion-compact-item-height: var(--spectrum-component-height-100); + --system-accordion-compact-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-medium); + --system-accordion-compact-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-medium); + --system-accordion-compact-item-height-size-s: var(--spectrum-component-height-75); + --system-accordion-compact-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-compact-small); + --system-accordion-compact-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-compact-small); + --system-accordion-compact-item-height-size-l: var(--spectrum-component-height-200); + --system-accordion-compact-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-compact-large); + --system-accordion-compact-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-compact-large); + --system-accordion-compact-item-height-size-xl: var(--spectrum-component-height-300); + --system-accordion-compact-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-compact-extra-large); + --system-accordion-compact-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-compact-extra-large); + --system-accordion-spacious-item-header-line-height: 1.278; + --system-accordion-spacious-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-medium); + --system-accordion-spacious-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-medium); + --system-accordion-spacious-item-header-line-height-size-l: 1.273; + --system-accordion-spacious-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-spacious-large); + --system-accordion-spacious-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-spacious-large); + --system-accordion-spacious-item-header-line-height-size-xl: 1.25; + --system-accordion-spacious-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-spacious-extra-large); + --system-accordion-spacious-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-spacious-extra-large); + --system-accordion-spacious-item-header-line-height-size-s: 1.25; + --system-accordion-spacious-item-header-top-to-text-space-size-s: var(--spectrum-accordion-small-top-to-text-spacious); + --system-accordion-spacious-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-spacious-small); +} diff --git a/tokens/dist/css/components/express/actionbar.css b/tokens/dist/css/components/express/actionbar.css new file mode 100644 index 00000000000..6015588eb7c --- /dev/null +++ b/tokens/dist/css/components/express/actionbar.css @@ -0,0 +1,37 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-action-bar-height: var(--spectrum-action-bar-height); + --system-action-bar-corner-radius: var(--spectrum-corner-radius-100); + --system-action-bar-item-counter-font-size: var(--spectrum-font-size-100); + --system-action-bar-item-counter-line-height: var(--spectrum-line-height-100); + --system-action-bar-item-counter-color: var(--spectrum-neutral-content-color-default); + --system-action-bar-item-counter-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-action-bar-popover-background-color: var(--spectrum-gray-50); + --system-action-bar-popover-border-color: var(--spectrum-gray-400); + --system-action-bar-emphasized-background-color: var(--spectrum-informative-background-color-default); + --system-action-bar-emphasized-item-counter-color: var(--spectrum-white); + --system-action-bar-spacing-outer-edge: var(--spectrum-spacing-300); + --system-action-bar-spacing-close-button-top: var(--spectrum-spacing-100); + --system-action-bar-spacing-close-button-start: var(--spectrum-spacing-100); + --system-action-bar-spacing-close-button-end: var(--spectrum-spacing-75); + --system-action-bar-spacing-item-counter-top: var(--spectrum-action-bar-top-to-item-counter); + --system-action-bar-spacing-item-counter-end: var(--spectrum-spacing-400); + --system-action-bar-spacing-action-group-top: var(--spectrum-spacing-100); + --system-action-bar-spacing-action-group-end: var(--spectrum-spacing-100); + --system-action-bar-shadow-horizontal: var(--spectrum-drop-shadow-x); + --system-action-bar-shadow-vertical: var(--spectrum-drop-shadow-y); + --system-action-bar-shadow-blur: var(--spectrum-drop-shadow-blur); + --system-action-bar-shadow-color: var(--spectrum-drop-shadow-color); +} diff --git a/tokens/dist/css/components/express/actionbutton.css b/tokens/dist/css/components/express/actionbutton.css deleted file mode 100644 index b9f413a1e77..00000000000 --- a/tokens/dist/css/components/express/actionbutton.css +++ /dev/null @@ -1,104 +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 - * - * 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--express { - --system-spectrum-actionbutton-background-color-default: var(--spectrum-gray-200); - --system-spectrum-actionbutton-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-actionbutton-background-color-down: var(--spectrum-gray-400); - --system-spectrum-actionbutton-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-actionbutton-border-color-default: transparent; - --system-spectrum-actionbutton-border-color-hover: transparent; - --system-spectrum-actionbutton-border-color-down: transparent; - --system-spectrum-actionbutton-border-color-focus: transparent; - --system-spectrum-actionbutton-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-actionbutton-quiet-background-color-default: transparent; - --system-spectrum-actionbutton-quiet-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-background-color-down: var(--spectrum-gray-400); - --system-spectrum-actionbutton-quiet-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-quiet-background-color-disabled: transparent; - --system-spectrum-actionbutton-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-selected-border-color-default: transparent; - --system-spectrum-actionbutton-selected-border-color-hover: transparent; - --system-spectrum-actionbutton-selected-border-color-down: transparent; - --system-spectrum-actionbutton-selected-border-color-focus: transparent; - --system-spectrum-actionbutton-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-selected-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-actionbutton-staticblack-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-actionbutton-staticblack-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-actionbutton-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-actionbutton-staticwhite-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-actionbutton-staticwhite-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-actionbutton-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled: transparent; -} diff --git a/tokens/dist/css/components/express/actiongroup.css b/tokens/dist/css/components/express/actiongroup.css deleted file mode 100644 index 6d4df423308..00000000000 --- a/tokens/dist/css/components/express/actiongroup.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 - * - * 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--express { - --system-spectrum-actiongroup-gap-size-compact: var(--spectrum-spacing-50); - --system-spectrum-actiongroup-horizontal-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); - --system-spectrum-actiongroup-vertical-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); -} diff --git a/tokens/dist/css/components/express/alertbanner.css b/tokens/dist/css/components/express/alertbanner.css deleted file mode 100644 index a4ce337efbc..00000000000 --- a/tokens/dist/css/components/express/alertbanner.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 - * - * 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--express { - --system-spectrum-alertbanner-spectrum-alert-banner-netural-background: var(--spectrum-neutral-background-color-default); -} diff --git a/tokens/dist/css/components/express/alertdialog.css b/tokens/dist/css/components/express/alertdialog.css new file mode 100644 index 00000000000..a857505b635 --- /dev/null +++ b/tokens/dist/css/components/express/alertdialog.css @@ -0,0 +1,35 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-alert-dialog-min-width: var(--spectrum-alert-dialog-minimum-width); + --system-alert-dialog-max-width: var(--spectrum-alert-dialog-maximum-width); + --system-alert-dialog-icon-size: var(--spectrum-workflow-icon-size-100); + --system-alert-dialog-warning-icon-color: var(--spectrum-notice-visual-color); + --system-alert-dialog-error-icon-color: var(--spectrum-negative-visual-color); + --system-alert-dialog-title-font-family: var(--spectrum-sans-font-family-stack); + --system-alert-dialog-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-alert-dialog-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-alert-dialog-title-font-size: var(--spectrum-alert-dialog-title-size); + --system-alert-dialog-title-line-height: var(--spectrum-heading-line-height); + --system-alert-dialog-title-color: var(--spectrum-heading-color); + --system-alert-dialog-body-font-family: var(--spectrum-sans-font-family-stack); + --system-alert-dialog-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-alert-dialog-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-alert-dialog-body-font-size: var(--spectrum-alert-dialog-description-size); + --system-alert-dialog-body-line-height: var(--spectrum-line-height-100); + --system-alert-dialog-body-color: var(--spectrum-body-color); + --system-alert-dialog-title-to-divider: var(--spectrum-spacing-200); + --system-alert-dialog-divider-to-description: var(--spectrum-spacing-300); + --system-alert-dialog-title-to-icon: var(--spectrum-spacing-300); +} diff --git a/tokens/dist/css/components/express/asset.css b/tokens/dist/css/components/express/asset.css new file mode 100644 index 00000000000..826ffe1fb3a --- /dev/null +++ b/tokens/dist/css/components/express/asset.css @@ -0,0 +1,19 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-asset-transition-duration: var(--spectrum-animation-duration-100); + --system-asset-folder-background-color: var(--spectrum-gray-300); + --system-asset-file-background-color: var(--spectrum-gray-50); + --system-asset-icon-outline-color: var(--spectrum-gray-500); +} diff --git a/tokens/dist/css/components/express/assetcard.css b/tokens/dist/css/components/express/assetcard.css deleted file mode 100644 index c09fe2e04be..00000000000 --- a/tokens/dist/css/components/express/assetcard.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 - * - * 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--express { - --system-spectrum-assetcard-overlay-background-color: rgba(109, 115, 246, 0.2); -} diff --git a/tokens/dist/css/components/express/assetlist.css b/tokens/dist/css/components/express/assetlist.css new file mode 100644 index 00000000000..263c019e6cb --- /dev/null +++ b/tokens/dist/css/components/express/assetlist.css @@ -0,0 +1,32 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-asset-list-width: 272px; + --system-asset-list-child-indicator-animation: var(--spectrum-animation-duration-100); + --system-asset-list-item-height: var(--spectrum-spacing-600); + --system-asset-list-item-padding-inline-start: var(--spectrum-spacing-300); + --system-asset-list-item-padding-inline-end: var(--spectrum-spacing-300); + --system-asset-list-item-margin-block-end: var(--spectrum-spacing-75); + --system-asset-list-item-border-radius: var(--spectrum-spacing-75); + --system-asset-list-item-animation: var(--spectrum-animation-duration-100); + --system-asset-list-item-font-size: var(--spectrum-font-size-100); + --system-asset-list-item-font-weight: var(--spectrum-regular-font-weight); + --system-asset-list-item-background-color-down: var(--spectrum-gray-300); + --system-asset-list-item-background-color-hover: var(--spectrum-gray-200); + --system-asset-list-thumbnail-width: var(--spectrum-spacing-400); + --system-asset-list-thumbnail-height: var(--spectrum-spacing-400); + --system-asset-list-thumbnail-margin-inline-start: var(--spectrum-spacing-100); + --system-asset-list-item-label-padding-inline-start: var(--spectrum-spacing-100); + --system-asset-list-label-color: var(--spectrum-neutral-content-color-default); +} diff --git a/tokens/dist/css/components/express/avatar.css b/tokens/dist/css/components/express/avatar.css new file mode 100644 index 00000000000..a83677386af --- /dev/null +++ b/tokens/dist/css/components/express/avatar.css @@ -0,0 +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 + * + * 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.spectrum--express { + --system-avatar-color-opacity: 1; + --system-avatar-inline-size: var(--spectrum-avatar-size-100); + --system-avatar-block-size: var(--spectrum-avatar-size-100); + --system-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-avatar-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-avatar-color-opacity-disabled: var(--spectrum-avatar-opacity-disabled); + --system-avatar-size-50-inline-size: var(--spectrum-avatar-size-50); + --system-avatar-size-50-block-size: var(--spectrum-avatar-size-50); + --system-avatar-size-75-inline-size: var(--spectrum-avatar-size-75); + --system-avatar-size-75-block-size: var(--spectrum-avatar-size-75); + --system-avatar-size-100-inline-size: var(--spectrum-avatar-size-100); + --system-avatar-size-100-block-size: var(--spectrum-avatar-size-100); + --system-avatar-size-200-inline-size: var(--spectrum-avatar-size-200); + --system-avatar-size-200-block-size: var(--spectrum-avatar-size-200); + --system-avatar-size-300-inline-size: var(--spectrum-avatar-size-300); + --system-avatar-size-300-block-size: var(--spectrum-avatar-size-300); + --system-avatar-size-400-inline-size: var(--spectrum-avatar-size-400); + --system-avatar-size-400-block-size: var(--spectrum-avatar-size-400); + --system-avatar-size-500-inline-size: var(--spectrum-avatar-size-500); + --system-avatar-size-500-block-size: var(--spectrum-avatar-size-500); + --system-avatar-size-600-inline-size: var(--spectrum-avatar-size-600); + --system-avatar-size-600-block-size: var(--spectrum-avatar-size-600); + --system-avatar-size-700-inline-size: var(--spectrum-avatar-size-700); + --system-avatar-size-700-block-size: var(--spectrum-avatar-size-700); +} diff --git a/tokens/dist/css/components/express/badge.css b/tokens/dist/css/components/express/badge.css new file mode 100644 index 00000000000..3b362d5ee0e --- /dev/null +++ b/tokens/dist/css/components/express/badge.css @@ -0,0 +1,93 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-badge-corner-radius: var(--spectrum-corner-radius-100); + --system-badge-line-height: var(--spectrum-line-height-100); + --system-badge-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-badge-label-icon-color: var(--spectrum-white); + --system-badge-background-color-default: var(--spectrum-neutral-subdued-background-color-default); + --system-badge-background-color-accent: var(--spectrum-accent-background-color-default); + --system-badge-background-color-informative: var(--spectrum-informative-background-color-default); + --system-badge-background-color-negative: var(--spectrum-negative-background-color-default); + --system-badge-background-color-positive: var(--spectrum-positive-background-color-default); + --system-badge-background-color-notice: var(--spectrum-notice-background-color-default); + --system-badge-background-color-gray: var(--spectrum-gray-background-color-default); + --system-badge-background-color-red: var(--spectrum-red-background-color-default); + --system-badge-background-color-orange: var(--spectrum-orange-background-color-default); + --system-badge-background-color-yellow: var(--spectrum-yellow-background-color-default); + --system-badge-background-color-chartreuse: var(--spectrum-chartreuse-background-color-default); + --system-badge-background-color-celery: var(--spectrum-celery-background-color-default); + --system-badge-background-color-green: var(--spectrum-green-background-color-default); + --system-badge-background-color-seafoam: var(--spectrum-seafoam-background-color-default); + --system-badge-background-color-cyan: var(--spectrum-cyan-background-color-default); + --system-badge-background-color-blue: var(--spectrum-blue-background-color-default); + --system-badge-background-color-indigo: var(--spectrum-indigo-background-color-default); + --system-badge-background-color-purple: var(--spectrum-purple-background-color-default); + --system-badge-background-color-fuchsia: var(--spectrum-fuchsia-background-color-default); + --system-badge-background-color-magenta: var(--spectrum-magenta-background-color-default); + --system-badge-height: var(--spectrum-component-height-100); + --system-badge-font-size: var(--spectrum-font-size-100); + --system-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-100); + --system-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-100); + --system-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-100); + --system-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-100); + --system-badge-icon-text-spacing: var(--spectrum-text-to-visual-100); + --system-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-100); + --system-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); + --system-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-100); + --system-badge-orange-label-icon-color: var(--spectrum-black); + --system-badge-yellow-label-icon-color: var(--spectrum-black); + --system-badge-chartreuse-label-icon-color: var(--spectrum-black); + --system-badge-celery-label-icon-color: var(--spectrum-black); + --system-badge-gray-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-red-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-green-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-seafoam-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-cyan-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-blue-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-indigo-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-purple-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-fuchsia-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-magenta-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-size-s-height: var(--spectrum-component-height-75); + --system-badge-size-s-font-size: var(--spectrum-font-size-75); + --system-badge-size-s-label-spacing-vertical-top: var(--spectrum-component-top-to-text-75); + --system-badge-size-s-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-75); + --system-badge-size-s-label-spacing-horizontal: var(--spectrum-component-edge-to-text-75); + --system-badge-size-s-workflow-icon-size: var(--spectrum-workflow-icon-size-75); + --system-badge-size-s-icon-text-spacing: var(--spectrum-text-to-visual-75); + --system-badge-size-s-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-75); + --system-badge-size-s-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-75); + --system-badge-size-s-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-75); + --system-badge-size-l-height: var(--spectrum-component-height-100); + --system-badge-size-l-font-size: var(--spectrum-font-size-200); + --system-badge-size-l-label-spacing-vertical-top: var(--spectrum-component-top-to-text-200); + --system-badge-size-l-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-200); + --system-badge-size-l-label-spacing-horizontal: var(--spectrum-component-edge-to-text-200); + --system-badge-size-l-workflow-icon-size: var(--spectrum-workflow-icon-size-200); + --system-badge-size-l-icon-text-spacing: var(--spectrum-text-to-visual-200); + --system-badge-size-l-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-200); + --system-badge-size-l-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-200); + --system-badge-size-l-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-200); + --system-badge-size-xl-height: var(--spectrum-component-height-100); + --system-badge-size-xl-font-size: var(--spectrum-font-size-300); + --system-badge-size-xl-label-spacing-vertical-top: var(--spectrum-component-top-to-text-300); + --system-badge-size-xl-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-300); + --system-badge-size-xl-label-spacing-horizontal: var(--spectrum-component-edge-to-text-300); + --system-badge-size-xl-workflow-icon-size: var(--spectrum-workflow-icon-size-300); + --system-badge-size-xl-icon-text-spacing: var(--spectrum-text-to-visual-300); + --system-badge-size-xl-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-300); + --system-badge-size-xl-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-300); + --system-badge-size-xl-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-300); +} diff --git a/tokens/dist/css/components/express/breadcrumb.css b/tokens/dist/css/components/express/breadcrumb.css new file mode 100644 index 00000000000..2e8e75843a2 --- /dev/null +++ b/tokens/dist/css/components/express/breadcrumb.css @@ -0,0 +1,69 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-breadcrumbs-block-size: var(--spectrum-breadcrumbs-height); + --system-breadcrumbs-block-size-compact: var(--spectrum-breadcrumbs-height-compact); + --system-breadcrumbs-block-size-multiline: var(--spectrum-breadcrumbs-height-multiline); + --system-breadcrumbs-line-height: var(--spectrum-line-height-100); + --system-breadcrumbs-font-size: var(--spectrum-font-size-200); + --system-breadcrumbs-font-family: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-current: var(--spectrum-font-size-200); + --system-breadcrumbs-font-family-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-font-size-compact: var(--spectrum-font-size-100); + --system-breadcrumbs-font-family-compact: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-compact: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-compact-current: var(--spectrum-font-size-100); + --system-breadcrumbs-font-family-compact-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-compact-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-font-size-multiline: var(--spectrum-font-size-75); + --system-breadcrumbs-font-family-multiline: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-multiline: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-multiline-current: var(--spectrum-font-size-300); + --system-breadcrumbs-font-family-multiline-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-multiline-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-text-decoration-thickness: var(--spectrum-text-underline-thickness); + --system-breadcrumbs-text-decoration-gap: var(--spectrum-text-underline-gap); + --system-breadcrumbs-separator-spacing-inline: var(--spectrum-text-to-visual-100); + --system-breadcrumbs-text-spacing-block-start: var(--spectrum-breadcrumbs-top-to-text); + --system-breadcrumbs-text-spacing-block-end: var(--spectrum-breadcrumbs-bottom-to-text); + --system-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-icon); + --system-breadcrumbs-text-spacing-block-start-compact: var(--spectrum-breadcrumbs-top-to-text-compact); + --system-breadcrumbs-text-spacing-block-end-compact: var(--spectrum-breadcrumbs-bottom-to-text-compact); + --system-breadcrumbs-icon-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-separator-icon-compact); + --system-breadcrumbs-text-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-text-multiline); + --system-breadcrumbs-text-spacing-block-end-multiline: var(--spectrum-breadcrumbs-bottom-to-text-multiline); + --system-breadcrumbs-text-spacing-block-between-multiline: var(--spectrum-breadcrumbs-top-text-to-bottom-text); + --system-breadcrumbs-icon-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-separator-icon-multiline); + --system-breadcrumbs-icon-spacing-block-between-multiline: var(--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline); + --system-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text); + --system-breadcrumbs-inline-end: var(--spectrum-breadcrumbs-end-edge-to-text); + --system-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator-icon); + --system-breadcrumbs-action-button-spacing-block: var(--spectrum-breadcrumbs-top-to-truncated-menu); + --system-breadcrumbs-action-button-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); + --system-breadcrumbs-action-button-spacing-inline-start: var(--spectrum-breadcrumbs-start-edge-to-truncated-menu); + --system-breadcrumbs-action-button-spacing-block-multiline: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); + --system-breadcrumbs-action-button-spacing-block-between-multiline: var(--spectrum-breadcrumbs-truncated-menu-to-bottom-text); + --system-breadcrumbs-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-breadcrumbs-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-breadcrumbs-item-link-border-radius: var(--spectrum-corner-radius-100); + --system-breadcrumbs-text-color: var(--spectrum-neutral-subdued-content-color-default); + --system-breadcrumbs-text-color-current: var(--spectrum-neutral-content-color-default); + --system-breadcrumbs-text-color-disabled: var(--spectrum-disabled-content-color); + --system-breadcrumbs-separator-color: var(--spectrum-neutral-content-color-default); + --system-breadcrumbs-action-button-color: var(--spectrum-neutral-subdued-content-color-default); + --system-breadcrumbs-action-button-color-disabled: var(--spectrum-disabled-content-color); + --system-breadcrumbs-focus-indicator-color: var(--spectrum-focus-indicator-color); +} diff --git a/tokens/dist/css/components/express/button.css b/tokens/dist/css/components/express/button.css deleted file mode 100644 index f2a5caefa1e..00000000000 --- a/tokens/dist/css/components/express/button.css +++ /dev/null @@ -1,326 +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 - * - * 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--express { - --system-spectrum-button-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-border-color-default: transparent; - --system-spectrum-button-border-color-hover: transparent; - --system-spectrum-button-border-color-down: transparent; - --system-spectrum-button-border-color-focus: transparent; - --system-spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-border-color-disabled: transparent; - --system-spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-accent-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-accent-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-accent-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-accent-border-color-default: transparent; - --system-spectrum-button-accent-border-color-hover: transparent; - --system-spectrum-button-accent-border-color-down: transparent; - --system-spectrum-button-accent-border-color-focus: transparent; - --system-spectrum-button-accent-content-color-default: var(--spectrum-white); - --system-spectrum-button-accent-content-color-hover: var(--spectrum-white); - --system-spectrum-button-accent-content-color-down: var(--spectrum-white); - --system-spectrum-button-accent-content-color-focus: var(--spectrum-white); - --system-spectrum-button-accent-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-accent-border-color-disabled: transparent; - --system-spectrum-button-accent-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-outline-background-color-default: transparent; - --system-spectrum-button-accent-outline-background-color-hover: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-background-color-down: var(--spectrum-accent-color-300); - --system-spectrum-button-accent-outline-background-color-focus: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-button-accent-outline-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-button-accent-outline-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-content-color-default: var(--spectrum-accent-content-color-default); - --system-spectrum-button-accent-outline-content-color-hover: var(--spectrum-accent-content-color-hover); - --system-spectrum-button-accent-outline-content-color-down: var(--spectrum-accent-content-color-down); - --system-spectrum-button-accent-outline-content-color-focus: var(--spectrum-accent-content-color-key-focus); - --system-spectrum-button-accent-outline-background-color-disabled: transparent; - --system-spectrum-button-accent-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-accent-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-background-color-default: var(--spectrum-negative-background-color-default); - --system-spectrum-button-negative-background-color-hover: var(--spectrum-negative-background-color-hover); - --system-spectrum-button-negative-background-color-down: var(--spectrum-negative-background-color-down); - --system-spectrum-button-negative-background-color-focus: var(--spectrum-negative-background-color-key-focus); - --system-spectrum-button-negative-border-color-default: transparent; - --system-spectrum-button-negative-border-color-hover: transparent; - --system-spectrum-button-negative-border-color-down: transparent; - --system-spectrum-button-negative-border-color-focus: transparent; - --system-spectrum-button-negative-content-color-default: var(--spectrum-white); - --system-spectrum-button-negative-content-color-hover: var(--spectrum-white); - --system-spectrum-button-negative-content-color-down: var(--spectrum-white); - --system-spectrum-button-negative-content-color-focus: var(--spectrum-white); - --system-spectrum-button-negative-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-negative-border-color-disabled: transparent; - --system-spectrum-button-negative-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-outline-background-color-default: transparent; - --system-spectrum-button-negative-outline-background-color-hover: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-background-color-down: var(--spectrum-negative-color-300); - --system-spectrum-button-negative-outline-background-color-focus: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-border-color-default: var(--spectrum-negative-color-900); - --system-spectrum-button-negative-outline-border-color-hover: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-border-color-down: var(--spectrum-negative-color-1100); - --system-spectrum-button-negative-outline-border-color-focus: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-content-color-default: var(--spectrum-negative-content-color-default); - --system-spectrum-button-negative-outline-content-color-hover: var(--spectrum-negative-content-color-hover); - --system-spectrum-button-negative-outline-content-color-down: var(--spectrum-negative-content-color-down); - --system-spectrum-button-negative-outline-content-color-focus: var(--spectrum-negative-content-color-key-focus); - --system-spectrum-button-negative-outline-background-color-disabled: transparent; - --system-spectrum-button-negative-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-negative-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-primary-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-primary-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-primary-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-primary-border-color-default: transparent; - --system-spectrum-button-primary-border-color-hover: transparent; - --system-spectrum-button-primary-border-color-down: transparent; - --system-spectrum-button-primary-border-color-focus: transparent; - --system-spectrum-button-primary-content-color-default: var(--spectrum-white); - --system-spectrum-button-primary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-primary-content-color-down: var(--spectrum-white); - --system-spectrum-button-primary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-primary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-primary-border-color-disabled: transparent; - --system-spectrum-button-primary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-outline-background-color-default: transparent; - --system-spectrum-button-primary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-primary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-border-color-default: var(--spectrum-gray-800); - --system-spectrum-button-primary-outline-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-down: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-primary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-primary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-primary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-primary-outline-background-color-disabled: transparent; - --system-spectrum-button-primary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-primary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-secondary-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-border-color-default: transparent; - --system-spectrum-button-secondary-border-color-hover: transparent; - --system-spectrum-button-secondary-border-color-down: transparent; - --system-spectrum-button-secondary-border-color-focus: transparent; - --system-spectrum-button-secondary-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-secondary-border-color-disabled: transparent; - --system-spectrum-button-secondary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-outline-background-color-default: transparent; - --system-spectrum-button-secondary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-default: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-border-color-down: var(--spectrum-gray-500); - --system-spectrum-button-secondary-outline-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-secondary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-secondary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-quiet-background-color-default: transparent; - --system-spectrum-button-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-quiet-border-color-default: transparent; - --system-spectrum-button-quiet-border-color-hover: transparent; - --system-spectrum-button-quiet-border-color-down: transparent; - --system-spectrum-button-quiet-border-color-focus: transparent; - --system-spectrum-button-quiet-background-color-disabled: transparent; - --system-spectrum-button-quiet-border-color-disabled: transparent; - --system-spectrum-button-selected-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-selected-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-selected-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-selected-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-selected-border-color-default: transparent; - --system-spectrum-button-selected-border-color-hover: transparent; - --system-spectrum-button-selected-border-color-down: transparent; - --system-spectrum-button-selected-border-color-focus: transparent; - --system-spectrum-button-selected-content-color-default: var(--spectrum-white); - --system-spectrum-button-selected-content-color-hover: var(--spectrum-white); - --system-spectrum-button-selected-content-color-down: var(--spectrum-white); - --system-spectrum-button-selected-content-color-focus: var(--spectrum-white); - --system-spectrum-button-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-selected-border-color-disabled: transparent; - --system-spectrum-button-selected-emphasized-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-selected-emphasized-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-selected-emphasized-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-selected-emphasized-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-staticblack-quiet-border-color-default: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-button-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-button-staticblack-quiet-border-color-down: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-button-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-button-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-border-color-default: transparent; - --system-spectrum-button-staticwhite-border-color-hover: transparent; - --system-spectrum-button-staticwhite-border-color-down: transparent; - --system-spectrum-button-staticwhite-border-color-focus: transparent; - --system-spectrum-button-staticwhite-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-border-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-outline-border-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-selected-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-selected-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-selected-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-button-staticwhite-secondary-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-border-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-hover: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-down: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-focus: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-default: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-hover: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-border-color-down: var(--spectrum-transparent-white-500); - --system-spectrum-button-staticwhite-secondary-outline-border-color-focus: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticblack-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-button-staticblack-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-border-color-default: transparent; - --system-spectrum-button-staticblack-border-color-hover: transparent; - --system-spectrum-button-staticblack-border-color-down: transparent; - --system-spectrum-button-staticblack-border-color-focus: transparent; - --system-spectrum-button-staticblack-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-border-color-disabled: transparent; - --system-spectrum-button-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-button-staticblack-outline-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-button-staticblack-secondary-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-border-color-default: transparent; - --system-spectrum-button-staticblack-secondary-border-color-hover: transparent; - --system-spectrum-button-staticblack-secondary-border-color-down: transparent; - --system-spectrum-button-staticblack-secondary-border-color-focus: transparent; - --system-spectrum-button-staticblack-secondary-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-secondary-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-default: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-hover: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-border-color-down: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-secondary-outline-border-color-focus: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); -} diff --git a/tokens/dist/css/components/express/buttongroup.css b/tokens/dist/css/components/express/buttongroup.css new file mode 100644 index 00000000000..ac1ddbbeb88 --- /dev/null +++ b/tokens/dist/css/components/express/buttongroup.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-button-group-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-s-spacing-horizontal: var(--spectrum-spacing-200); + --system-button-group-size-s-spacing-vertical: var(--spectrum-spacing-200); + --system-button-group-size-m-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-m-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-l-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-l-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-xl-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-xl-spacing-vertical: var(--spectrum-spacing-300); +} diff --git a/tokens/dist/css/components/express/calendar.css b/tokens/dist/css/components/express/calendar.css new file mode 100644 index 00000000000..ec75a7d6728 --- /dev/null +++ b/tokens/dist/css/components/express/calendar.css @@ -0,0 +1,45 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-calendar-day-width: var(--spectrum-component-height-100); + --system-calendar-day-height: var(--spectrum-component-height-100); + --system-calendar-border-radius-reset: 0; + --system-calendar-border-width-reset: 0; + --system-calendar-day-border-size: var(--spectrum-border-width-200); + --system-calendar-margin-y: 24px; + --system-calendar-margin-x: 32px; + --system-calendar-day-padding: 4px; + --system-calendar-width: calc((var(--system-calendar-day-width) + var(--system-calendar-day-padding) * 2) * 7); + --system-calendar-title-text-letter-spacing: 0.06em; + --system-calendar-title-height: 32px; + --system-calendar-title-text-size: var(--spectrum-font-size-300); + --system-calendar-day-title-text-font-weight: var(--spectrum-bold-font-weight); + --system-calendar-day-title-text-color: var(--spectrum-gray-700); + --system-calendar-day-title-text-size: var(--spectrum-font-size-50); + --system-calendar-day-text-size-han: var(--spectrum-font-size-50); + --system-calendar-day-text-size: var(--spectrum-font-size-100); + --system-calendar-day-text-color-selected: var(--spectrum-gray-900); + --system-calendar-day-text-color-hover: var(--spectrum-gray-900); + --system-calendar-day-text-color-cap-selected: var(--spectrum-gray-900); + --system-calendar-day-text-font-weight-selected: var(--spectrum-bold-font-weight); + --system-calendar-day-text-font-weight-cap-selected: var(--spectrum-bold-font-weight); + --system-calendar-day-today-text-color: var(--spectrum-gray-800); + --system-calendar-day-today-text-font-weight: var(--spectrum-bold-font-weight); + --system-calendar-day-today-border-color: var(--spectrum-gray-800); + --system-calendar-day-today-text-color-disabled: var(--spectrum-gray-500); + --system-calendar-day-today-border-color-disabled: var(--spectrum-gray-400); + --system-calendar-day-text-color-disabled: var(--spectrum-disabled-content-color); + --system-calendar-day-text-color-key-focus: var(--spectrum-gray-900); + --system-calendar-button-icon-color: var(--spectrum-gray-700); +} diff --git a/tokens/dist/css/components/express/card.css b/tokens/dist/css/components/express/card.css new file mode 100644 index 00000000000..507701c236e --- /dev/null +++ b/tokens/dist/css/components/express/card.css @@ -0,0 +1,63 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-card-background-color: var(--spectrum-background-layer-2-color); + --system-card-body-spacing: var(--spectrum-spacing-400); + --system-card-title-padding-top: var(--spectrum-spacing-300); + --system-card-title-padding-right: var(--spectrum-spacing-400); + --system-card-content-margin-top: var(--spectrum-spacing-100); + --system-card-content-margin-bottom: var(--spectrum-spacing-300); + --system-card-footer-padding-top: var(--spectrum-spacing-100); + --system-card-subtitle-padding-right: var(--spectrum-spacing-100); + --system-card-border-width: var(--spectrum-border-width-100); + --system-card-corner-radius: var(--spectrum-corner-radius-100); + --system-card-border-color: var(--spectrum-gray-200); + --system-card-border-color-hover: var(--spectrum-gray-300); + --system-card-border-color-selected: var(--spectrum-blue-700); + --system-card-divider-color: var(--spectrum-gray-300); + --system-card-title-font-family: var(--spectrum-sans-font-family-stack); + --system-card-title-font-size: var(--spectrum-heading-size-xxs); + --system-card-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-card-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-card-title-line-height: var(--spectrum-heading-line-height); + --system-card-title-font-color: var(--spectrum-heading-color); + --system-card-body-font-family: var(--spectrum-sans-font-family-stack); + --system-card-body-font-size: var(--spectrum-body-size-s); + --system-card-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-card-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-card-body-line-height: var(--spectrum-body-line-height); + --system-card-body-font-color: var(--spectrum-body-color); + --system-card-actions-spacing: var(--spectrum-spacing-300); + --system-card-actions-size: var(--spectrum-card-selection-background-size); + --system-card-actions-border-radius: var(--spectrum-corner-radius-100); + --system-card-actions-background-color-rgb: var(--spectrum-gray-100-rgb); + --system-card-actions-background-color-opacity: var(--spectrum-card-selection-background-color-opacity); + --system-card-actions-drop-shadow-color: var(--spectrum-drop-shadow-color); + --system-card-actions-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-card-actions-drop-shadow-y: var(--spectrum-drop-shadow-y); + --system-card-actions-drop-shadow-blur: var(--spectrum-drop-shadow-blur); + --system-card-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-card-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-card-selected-background-opacity: 0.1; + --system-card-preview-border-width-selected: var(--spectrum-border-width-100); + --system-card-preview-background-color: var(--spectrum-background-base-color); + --system-card-preview-background-color-hover: var(--spectrum-gray-300); + --system-card-horizontal-body-padding: var(--spectrum-spacing-300); + --system-card-horizontal-preview-padding: var(--spectrum-spacing-200); + --system-card-content-margin-top-quiet: var(--spectrum-spacing-100); + --system-card-minimum-width-quiet: var(--spectrum-card-minimum-width); + --system-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); + --system-card-dark-selected-background-color-rgb: var(--spectrum-blue-500-rgb); + --system-card-darkest-selected-background-color-rgb: var(--spectrum-blue-600-rgb); +} diff --git a/tokens/dist/css/components/express/checkbox.css b/tokens/dist/css/components/express/checkbox.css deleted file mode 100644 index d792c0b5a35..00000000000 --- a/tokens/dist/css/components/express/checkbox.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 - * - * 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--express { - --system-spectrum-checkbox-control-color-default: var(--spectrum-gray-800); - --system-spectrum-checkbox-control-color-hover: var(--spectrum-gray-900); - --system-spectrum-checkbox-control-color-down: var(--spectrum-gray-900); - --system-spectrum-checkbox-control-color-focus: var(--spectrum-gray-900); -} diff --git a/tokens/dist/css/components/express/clearbutton.css b/tokens/dist/css/components/express/clearbutton.css deleted file mode 100644 index e0630c79a24..00000000000 --- a/tokens/dist/css/components/express/clearbutton.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 - * - * 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--express { - --system-spectrum-clearbutton-spectrum-clear-button-background-color: var(--spectrum-gray-200); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus: var(--spectrum-gray-300); -} diff --git a/tokens/dist/css/components/express/closebutton.css b/tokens/dist/css/components/express/closebutton.css deleted file mode 100644 index 0d6f78c91dd..00000000000 --- a/tokens/dist/css/components/express/closebutton.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 - * - * 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--express { - --system-spectrum-closebutton-background-color-default: transparent; - --system-spectrum-closebutton-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-closebutton-background-color-down: var(--spectrum-gray-400); - --system-spectrum-closebutton-background-color-focus: var(--spectrum-gray-300); -} diff --git a/tokens/dist/css/components/express/coachindicator.css b/tokens/dist/css/components/express/coachindicator.css new file mode 100644 index 00000000000..128e25f2fda --- /dev/null +++ b/tokens/dist/css/components/express/coachindicator.css @@ -0,0 +1,42 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-coach-indicator-ring-border-size: var(--spectrum-border-width-200); + --system-coach-indicator-min-inline-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --system-coach-indicator-min-block-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --system-coach-indicator-inline-size: var(--system-coach-indicator-min-inline-size); + --system-coach-indicator-block-size: var(--system-coach-indicator-min-block-size); + --system-coach-indicator-ring-inline-size: var(--spectrum-coach-indicator-ring-diameter); + --system-coach-indicator-ring-block-size: var(--spectrum-coach-indicator-ring-diameter); + --system-coach-indicator-ring-dark-color: var(--spectrum-gray-900); + --system-coach-indicator-ring-light-color: var(--spectrum-gray-50); + --system-coach-indicator-top: calc(var(--system-coach-indicator-block-size) / 3 - var(--system-coach-indicator-ring-border-size)); + --system-coach-indicator-left: calc(var(--system-coach-indicator-inline-size) / 3 - var(--system-coach-indicator-ring-border-size)); + --system-coach-indicator-coach-animation-indicator-ring-duration: var(--spectrum-animation-duration-6000); + --system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple: -0.5; + --system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple: -0.66; + --system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple: -1; + --system-coach-indicator-quiet-animation-ring-inner-delay-multiple: -0.33; + --system-coach-indicator-animation-name: pulse; + --system-coach-indicator-inner-animation-delay-multiple: var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple); + --system-coach-indicator-animation-keyframe-0-scale: 1; + --system-coach-indicator-animation-keyframe-0-opacity: 0; + --system-coach-indicator-animation-keyframe-50-scale: 1.5; + --system-coach-indicator-animation-keyframe-50-opacity: 1; + --system-coach-indicator-animation-keyframe-100-scale: 2; + --system-coach-indicator-animation-keyframe-100-opacity: 0; + --system-coach-indicator-quiet-animation-keyframe-0-scale: 0.8; + --system-coach-indicator-quiet-quiet-ring-diameter-size: var(--spectrum-coach-indicator-quiet-ring-diameter); + --system-coach-indicator-quiet-animation-name: pulse-quiet; +} diff --git a/tokens/dist/css/components/express/coachmark.css b/tokens/dist/css/components/express/coachmark.css new file mode 100644 index 00000000000..6264dfcf2f7 --- /dev/null +++ b/tokens/dist/css/components/express/coachmark.css @@ -0,0 +1,46 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-coach-mark-min-width: var(--spectrum-coach-mark-minimum-width); + --system-coach-mark-width: var(--spectrum-coach-mark-width); + --system-coach-mark-max-width: var(--spectrum-coach-mark-maximum-width); + --system-coach-mark-media-height: var(--spectrum-coach-mark-media-height); + --system-coach-mark-media-min-height: var(--spectrum-coach-mark-media-minimum-height); + --system-coach-mark-padding: var(--spectrum-coach-mark-edge-to-content); + --system-coach-mark-heading-to-action-button: var(--spectrum-spacing-300); + --system-coach-mark-header-to-body: var(--spectrum-spacing-200); + --system-coach-mark-body-to-footer: var(--spectrum-spacing-300); + --system-coach-mark-title-color: var(--spectrum-heading-color); + --system-coach-mark-title-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-title-font-style: var(--spectrum-heading-serif-font-style); + --system-coach-mark-title-text-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-coach-mark-title-font-size: var(--spectrum-coach-mark-title-size); + --system-coach-mark-title-text-line-height: var(--spectrum-heading-line-height); + --system-coach-mark-content-font-color: var(--spectrum-body-color); + --system-coach-mark-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-coach-mark-content-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-coach-mark-content-line-height: var(--spectrum-body-line-height); + --system-coach-mark-content-font-size: var(--spectrum-coach-mark-body-size); + --system-coach-mark-step-color: var(--spectrum-coach-mark-pagination-color); + --system-coach-mark-step-font-weight: var(--spectrum-body-medium-font-weight); + --system-coach-mark-step-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-step-font-style: var(--spectrum-body-sans-serif-font-style); + --system-coach-mark-step-line-height: var(--spectrum-body-line-height); + --system-coach-mark-step-font-size: var(--spectrum-coach-mark-pagination-body-size); + --system-coach-mark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge); + --system-coach-mark-popover-border-width: var(--spectrum-border-width-100); + --system-coach-mark-popover-corner-radius: var(--spectrum-corner-radius-100); + --system-coach-mark-buttongroup-spacing-horizontal: var(--spectrum-spacing-100); +} diff --git a/tokens/dist/css/components/express/colorarea.css b/tokens/dist/css/components/express/colorarea.css new file mode 100644 index 00000000000..1028a1ac073 --- /dev/null +++ b/tokens/dist/css/components/express/colorarea.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-color-area-border-radius: var(--spectrum-color-area-border-rounding); + --system-color-area-border-color-rgb: 0, 0, 0; + --system-color-area-border-color-opacity: 0.1; + --system-color-area-border-color: rgba(var(--system-color-area-border-color-rgb), var(--system-color-area-border-color-opacity)); + --system-color-area-disabled-background-color: var(--spectrum-disabled-background-color); + --system-color-area-border-width: var(--spectrum-color-area-border-width); + --system-color-area-height: var(--spectrum-color-area-height); + --system-color-area-width: var(--spectrum-color-area-width); + --system-color-area-min-width: var(--spectrum-color-area-minimum-width); + --system-color-area-min-height: var(--spectrum-color-area-minimum-height); +} diff --git a/tokens/dist/css/components/express/colorhandle.css b/tokens/dist/css/components/express/colorhandle.css new file mode 100644 index 00000000000..0910acbe115 --- /dev/null +++ b/tokens/dist/css/components/express/colorhandle.css @@ -0,0 +1,28 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-color-handle-size: var(--spectrum-color-handle-size); + --system-color-handle-focused-size: var(--spectrum-color-handle-size-key-focus); + --system-color-handle-hitarea-size: var(--spectrum-color-control-track-width); + --system-color-handle-animation-duration: var(--spectrum-animation-duration-100); + --system-color-handle-animation-easing: ease-in-out; + --system-color-handle-outer-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-outer-border-opacity)); + --system-color-handle-outer-border-width: var(--spectrum-color-handle-outer-border-width); + --system-color-handle-inner-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-inner-border-opacity)); + --system-color-handle-inner-border-width: var(--spectrum-color-handle-inner-border-width); + --system-color-handle-border-width: var(--spectrum-color-handle-border-width); + --system-color-handle-border-color: var(--spectrum-white); + --system-color-handle-border-color-disabled: var(--spectrum-disabled-content-color); + --system-color-handle-fill-color-disabled: var(--spectrum-disabled-background-color); +} diff --git a/tokens/dist/css/components/express/colorloupe.css b/tokens/dist/css/components/express/colorloupe.css new file mode 100644 index 00000000000..2505b202ce4 --- /dev/null +++ b/tokens/dist/css/components/express/colorloupe.css @@ -0,0 +1,29 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-color-loupe-width: var(--spectrum-color-loupe-width); + --system-color-loupe-height: var(--spectrum-color-loupe-height); + --system-color-loupe-offset: var(--spectrum-color-loupe-bottom-to-color-handle); + --system-color-loupe-animation-distance: 8px; + --system-color-loupe-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-color-loupe-drop-shadow-y: var(--spectrum-color-loupe-drop-shadow-y); + --system-color-loupe-drop-shadow-blur: var(--spectrum-color-loupe-drop-shadow-blur); + --system-color-loupe-drop-shadow-color: var(--spectrum-color-loupe-drop-shadow-color); + --system-color-loupe-outer-border-width: var(--spectrum-color-loupe-outer-border-width); + --system-color-loupe-inner-border-width: var(--spectrum-color-loupe-inner-border-width); + --system-color-loupe-outer-border-color: var(--spectrum-color-loupe-outer-border); + --system-color-loupe-inner-border-color: var(--spectrum-color-loupe-inner-border); + --system-color-loupe-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --system-color-loupe-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); +} diff --git a/tokens/dist/css/components/express/colorslider.css b/tokens/dist/css/components/express/colorslider.css new file mode 100644 index 00000000000..c3f194932e4 --- /dev/null +++ b/tokens/dist/css/components/express/colorslider.css @@ -0,0 +1,20 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-color-slider-handle-margin-block: var(--spectrum-component-top-to-text-75); + --system-color-slider-border-color-rgba: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-color-slider-border-opacity)); + --system-color-slider-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --system-color-slider-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --system-color-slider-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); +} diff --git a/tokens/dist/css/components/express/colorwheel.css b/tokens/dist/css/components/express/colorwheel.css new file mode 100644 index 00000000000..19dc559d60b --- /dev/null +++ b/tokens/dist/css/components/express/colorwheel.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-color-wheel-width: var(--spectrum-color-wheel-width); + --system-color-wheel-min-width: var(--spectrum-color-wheel-minimum-width); + --system-color-wheel-height: var(--spectrum-color-wheel-width); + --system-color-wheel-border-color: var(--spectrum-transparent-black-200); + --system-color-wheel-border-width: var(--spectrum-border-width-100); + --system-color-wheel-fill-color-disabled: var(--spectrum-disabled-background-color); + --system-color-wheel-track-width: var(--spectrum-color-control-track-width); + --system-color-wheel-colorarea-margin: var(--spectrum-color-wheel-color-area-margin); + --system-color-wheel-colorhandle-position: calc(var(--system-color-wheel-width) / 2 - var(--system-color-wheel-track-width) / 2); +} diff --git a/tokens/dist/css/components/express/combobox.css b/tokens/dist/css/components/express/combobox.css deleted file mode 100644 index 828a907f216..00000000000 --- a/tokens/dist/css/components/express/combobox.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 - * - * 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--express { - --system-spectrum-combobox-border-color-default: var(--spectrum-gray-400); - --system-spectrum-combobox-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-800); - --system-spectrum-combobox-border-color-key-focus: var(--spectrum-gray-900); -} diff --git a/tokens/dist/css/components/express/contextualhelp.css b/tokens/dist/css/components/express/contextualhelp.css new file mode 100644 index 00000000000..825de9aeeec --- /dev/null +++ b/tokens/dist/css/components/express/contextualhelp.css @@ -0,0 +1,20 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-contextual-help-padding: var(--spectrum-spacing-400); + --system-contextual-help-link-spacing: var(--spectrum-spacing-300); + --system-contextual-help-heading-size: var(--spectrum-contextual-help-title-size); + --system-contextual-help-heading-color: var(--spectrum-heading-color); + --system-contextual-help-body-color: var(--spectrum-body-color); +} diff --git a/tokens/dist/css/components/express/datepicker.css b/tokens/dist/css/components/express/datepicker.css deleted file mode 100644 index 4cbfea9b604..00000000000 --- a/tokens/dist/css/components/express/datepicker.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 - * - * 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--express { - --system-spectrum-datepicker-initial-height: var(--spectrum-component-height-75); -} diff --git a/tokens/dist/css/components/express/dial.css b/tokens/dist/css/components/express/dial.css new file mode 100644 index 00000000000..c6ee9812f74 --- /dev/null +++ b/tokens/dist/css/components/express/dial.css @@ -0,0 +1,47 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-dial-background-color-default: var(--spectrum-gray-100); + --system-dial-handle-marker-color-disabled: var(--spectrum-gray-300); + --system-dial-border-color-disabled: var(--spectrum-gray-300); + --system-dial-handle-marker-color: var(--spectrum-gray-700); + --system-dial-border-color: var(--spectrum-gray-700); + --system-dial-handle-marker-color-down: var(--spectrum-gray-800); + --system-dial-border-color-down: var(--spectrum-gray-800); + --system-dial-handle-marker-color-hover: var(--spectrum-gray-800); + --system-dial-border-color-hover: var(--spectrum-gray-800); + --system-dial-handle-marker-color-key-focus: var(--spectrum-gray-50); + --system-dial-border-color-key-focus: var(--spectrum-gray-50); + --system-dial-handle-marker-color-mouse-focus: var(--spectrum-gray-700); + --system-dial-border-color-mouse-focus: var(--spectrum-gray-700); + --system-dial-min-max-tick-color: var(--spectrum-gray-600); + --system-dial-label-text-color: var(--spectrum-gray-700); + --system-dial-label-text-color-disabled: var(--spectrum-gray-700); + --system-dial-handle-border-color-disabled: var(--spectrum-gray-400); + --system-dial-container-width: 48px; + --system-dial-handle-marker-width: 12px; + --system-dial-handle-marker-height: 2px; + --system-dial-handle-marker-border-radius: 1px; + --system-dial-handle-size: 100%; + --system-dial-min-height: 0; + --system-dial-controls-min-height: 0; + --system-dial-min-max-tick-angles: 45deg; + --system-dial-width: 32px; + --system-dial-height: 32px; + --system-dial-handle-border-size: var(--spectrum-border-width-200); + --system-dial-label-text-size: var(--spectrum-font-size-75); + --system-dial-label-line-height: var(--spectrum-line-height-200); + --system-dial-small-width: 24px; + --system-dial-small-height: 24px; +} diff --git a/tokens/dist/css/components/express/dialog.css b/tokens/dist/css/components/express/dialog.css new file mode 100644 index 00000000000..c8a4859d9b5 --- /dev/null +++ b/tokens/dist/css/components/express/dialog.css @@ -0,0 +1,35 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-dialog-fullscreen-header-text-size: 28px; + --system-dialog-min-inline-size: 288px; + --system-dialog-confirm-small-width: 400px; + --system-dialog-confirm-medium-width: 480px; + --system-dialog-confirm-large-width: 640px; + --system-dialog-confirm-divider-block-spacing-start: var(--spectrum-spacing-300); + --system-dialog-confirm-divider-block-spacing-end: var(--spectrum-spacing-200); + --system-dialog-confirm-description-text-color: var(--spectrum-gray-800); + --system-dialog-confirm-title-text-color: var(--spectrum-gray-900); + --system-dialog-confirm-description-text-line-height: var(--spectrum-line-height-100); + --system-dialog-confirm-title-text-line-height: var(--spectrum-line-height-100); + --system-dialog-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-dialog-confirm-description-padding: var(--spectrum-spacing-50); + --system-dialog-confirm-description-margin: calc(var(--spectrum-spacing-50) * -1); + --system-dialog-confirm-footer-padding-top: var(--spectrum-spacing-600); + --system-dialog-confirm-gap-size: var(--spectrum-component-pill-edge-to-text-100); + --system-dialog-confirm-buttongroup-padding-top: var(--spectrum-spacing-600); + --system-dialog-confirm-close-button-size: var(--spectrum-component-height-100); + --system-dialog-confirm-close-button-padding: calc(26px - var(--spectrum-component-bottom-to-text-300)); + --system-dialog-confirm-divider-height: var(--spectrum-spacing-50); +} diff --git a/tokens/dist/css/components/express/divider.css b/tokens/dist/css/components/express/divider.css new file mode 100644 index 00000000000..413111f02ba --- /dev/null +++ b/tokens/dist/css/components/express/divider.css @@ -0,0 +1,24 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-divider-background-color-small: var(--spectrum-gray-300); + --system-divider-background-color-medium: var(--spectrum-gray-300); + --system-divider-background-color-large: var(--spectrum-gray-800); + --system-divider-background-color-small-static-white: var(--spectrum-transparent-white-300); + --system-divider-background-color-medium-static-white: var(--spectrum-transparent-white-300); + --system-divider-background-color-large-static-white: var(--spectrum-transparent-white-800); + --system-divider-background-color-small-static-black: var(--spectrum-transparent-black-300); + --system-divider-background-color-medium-static-black: var(--spectrum-transparent-black-300); + --system-divider-background-color-large-static-black: var(--spectrum-transparent-black-800); +} diff --git a/tokens/dist/css/components/express/dropindicator.css b/tokens/dist/css/components/express/dropindicator.css new file mode 100644 index 00000000000..54a877e58d1 --- /dev/null +++ b/tokens/dist/css/components/express/dropindicator.css @@ -0,0 +1,19 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-drop-indicator-border-color: var(--spectrum-dropindicator-color); + --system-drop-indicator-circle-color: var(--spectrum-dropindicator-color); + --system-drop-indicator-border-size: var(--spectrum-border-width-200); + --system-drop-indicator-circle-size: 12px; +} diff --git a/tokens/dist/css/components/express/dropzone.css b/tokens/dist/css/components/express/dropzone.css new file mode 100644 index 00000000000..80763e4e7b5 --- /dev/null +++ b/tokens/dist/css/components/express/dropzone.css @@ -0,0 +1,50 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-drop-zone-padding: var(--spectrum-spacing-400); + --system-drop-zone-illustration-to-heading: var(--spectrum-spacing-400); + --system-drop-zone-heading-to-body: var(--spectrum-spacing-75); + --system-drop-zone-border-width: var(--spectrum-border-width-200); + --system-drop-zone-corner-radius: var(--spectrum-corner-radius-100); + --system-drop-zone-border-color: var(--spectrum-gray-300); + --system-drop-zone-heading-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-drop-zone-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-drop-zone-heading-font-size: var(--spectrum-drop-zone-title-size); + --system-drop-zone-heading-line-height: var(--spectrum-heading-line-height); + --system-drop-zone-heading-color: var(--spectrum-heading-color); + --system-drop-zone-body-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-drop-zone-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-drop-zone-body-font-size: var(--spectrum-drop-zone-body-size); + --system-drop-zone-body-line-height: var(--spectrum-body-line-height); + --system-drop-zone-body-color: var(--spectrum-body-color); + --system-drop-zone-background-color: var(--spectrum-drop-zone-background-color-rgb); + --system-drop-zone-border-color-hover: var(--spectrum-accent-visual-color); + --system-drop-zone-illustration-color: var(--spectrum-neutral-visual-color); + --system-drop-zone-illustration-color-hover: var(--spectrum-accent-visual-color); + --system-drop-zone-content-height: var(--spectrum-component-height-300); + --system-drop-zone-content-max-width: var(--spectrum-drop-zone-content-maximum-width); + --system-drop-zone-content-edge-to-text: var(--spectrum-component-edge-to-text-300); + --system-drop-zone-content-top-to-text: var(--spectrum-component-top-to-text-300); + --system-drop-zone-content-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --system-drop-zone-content-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-content-font-weight: var(--spectrum-bold-font-weight); + --system-drop-zone-content-font-style: var(--spectrum-default-font-style); + --system-drop-zone-content-font-size: var(--spectrum-font-size-300); + --system-drop-zone-content-line-height: var(--spectrum-line-height-100); + --system-drop-zone-content-background-color: var(--spectrum-accent-visual-color); + --system-drop-zone-content-color: var(--spectrum-white); + --system-drop-zone-heading-font-size-cjk: var(--spectrum-drop-zone-cjk-title-size); +} diff --git a/tokens/custom-express/custom-vars.css b/tokens/dist/css/components/express/fieldgroup.css similarity index 81% rename from tokens/custom-express/custom-vars.css rename to tokens/dist/css/components/express/fieldgroup.css index 6659b9d2405..0559fe36e64 100644 --- a/tokens/custom-express/custom-vars.css +++ b/tokens/dist/css/components/express/fieldgroup.css @@ -11,8 +11,7 @@ * governing permissions and limitations under the License. */ -/* This file contains overrides and additions to core tokens */ - -.spectrum--express { - --system: express; +.spectrum.spectrum--express { + --system-field-group-margin: var(--spectrum-spacing-300); + --system-field-group-readonly-delimiter: "\002c"; } diff --git a/tokens/dist/css/components/express/fieldlabel.css b/tokens/dist/css/components/express/fieldlabel.css new file mode 100644 index 00000000000..d15d4c00ad2 --- /dev/null +++ b/tokens/dist/css/components/express/fieldlabel.css @@ -0,0 +1,54 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-field-label-min-height: var(--spectrum-component-height-75); + --system-field-label-color: var(--spectrum-neutral-subdued-content-color-default); + --system-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + --system-field-label-font-weight: var(--spectrum-regular-font-weight); + --system-field-label-line-height: var(--spectrum-line-height-100); + --system-field-label-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-field-label-size-s-min-height: var(--spectrum-component-height-75); + --system-field-label-size-s-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-size-s-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-size-s-font-size: var(--spectrum-font-size-75); + --system-field-label-size-s-side-margin-block-start: var(--spectrum-field-label-top-margin-small); + --system-field-label-size-s-side-padding-right: var(--spectrum-spacing-100); + --system-field-label-size-s-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); + --system-field-label-size-m-min-height: var(--spectrum-component-height-75); + --system-field-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-size-m-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-size-m-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-font-size: var(--spectrum-font-size-75); + --system-field-label-size-m-font-size: var(--spectrum-font-size-75); + --system-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --system-field-label-size-m-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --system-field-label-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-m-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-m-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + --system-field-label-size-l-min-height: var(--spectrum-component-height-100); + --system-field-label-size-l-top-to-text: var(--spectrum-component-top-to-text-100); + --system-field-label-size-l-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-field-label-size-l-font-size: var(--spectrum-font-size-100); + --system-field-label-size-l-side-margin-block-start: var(--spectrum-field-label-top-margin-large); + --system-field-label-size-l-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-l-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); + --system-field-label-size-xl-min-height: var(--spectrum-component-height-200); + --system-field-label-size-xl-top-to-text: var(--spectrum-component-top-to-text-200); + --system-field-label-size-xl-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --system-field-label-size-xl-font-size: var(--spectrum-font-size-200); + --system-field-label-size-xl-side-margin-block-start: var(--spectrum-field-label-top-margin-extra-large); + --system-field-label-size-xl-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-xl-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-extra-large); +} diff --git a/tokens/dist/css/components/express/floatingactionbutton.css b/tokens/dist/css/components/express/floatingactionbutton.css new file mode 100644 index 00000000000..139a49bc745 --- /dev/null +++ b/tokens/dist/css/components/express/floatingactionbutton.css @@ -0,0 +1,39 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-floating-action-button-size: var(--spectrum-component-height-200); + --system-floating-action-button-icon-size: var(--spectrum-workflow-icon-size-200); + --system-floating-action-button-padding: var(--spectrum-component-pill-edge-to-visual-only-200); + --system-floating-action-button-margin: var(--spectrum-spacing-200); + --system-floating-action-button-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-floating-action-button-focus-ring-width: var(--spectrum-focus-indicator-thickness); + --system-floating-action-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-floating-action-button-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-floating-action-button-background-color: var(--spectrum-accent-background-color-default); + --system-floating-action-button-background-color-hover: var(--spectrum-accent-background-color-hover); + --system-floating-action-button-background-color-down: var(--spectrum-accent-background-color-down); + --system-floating-action-button-background-color-key-focus: var(--spectrum-accent-background-color-key-focus); + --system-floating-action-button-icon-color: var(--spectrum-white); + --system-floating-action-button-icon-color-hover: var(--spectrum-white); + --system-floating-action-button-icon-color-down: var(--spectrum-white); + --system-floating-action-button-icon-color-key-focus: var(--spectrum-white); + --system-floating-action-button-secondary-background-color: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-hover: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-down: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-key-focus: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-icon-color: var(--spectrum-neutral-subdued-content-color-default); + --system-floating-action-button-secondary-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-floating-action-button-secondary-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-floating-action-button-secondary-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); +} diff --git a/tokens/dist/css/components/express/helptext.css b/tokens/dist/css/components/express/helptext.css new file mode 100644 index 00000000000..e18085db661 --- /dev/null +++ b/tokens/dist/css/components/express/helptext.css @@ -0,0 +1,56 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-help-text-line-height: var(--spectrum-line-height-100); + --system-help-text-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-disabled-content-color: var(--spectrum-disabled-content-color); + --system-help-text-neutral-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-neutral-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-negative-content-color-default: var(--spectrum-negative-color-900); + --system-help-text-negative-icon-color-default: var(--spectrum-negative-color-900); + --system-help-text-disabled-content-color-default: var(--system-help-text-disabled-content-color); + --system-help-text-disabled-icon-color-default: var(--system-help-text-disabled-content-color); + --system-help-text-lang-ja-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-lang-zh-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-lang-ko-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-size-s-min-height: var(--spectrum-component-height-75); + --system-help-text-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-help-text-size-s-font-size: var(--spectrum-font-size-75); + --system-help-text-size-s-text-to-visual: var(--spectrum-text-to-visual-75); + --system-help-text-size-s-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-small); + --system-help-text-size-s-top-to-text: var(--spectrum-component-top-to-text-75); + --system-help-text-size-s-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-help-text-size-m-min-height: var(--spectrum-component-height-75); + --system-help-text-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-help-text-size-m-font-size: var(--spectrum-font-size-75); + --system-help-text-size-m-text-to-visual: var(--spectrum-text-to-visual-75); + --system-help-text-size-m-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-medium); + --system-help-text-size-m-top-to-text: var(--spectrum-component-top-to-text-75); + --system-help-text-size-m-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-help-text-size-l-min-height: var(--spectrum-component-height-100); + --system-help-text-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-help-text-size-l-font-size: var(--spectrum-font-size-100); + --system-help-text-size-l-text-to-visual: var(--spectrum-text-to-visual-100); + --system-help-text-size-l-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-large); + --system-help-text-size-l-top-to-text: var(--spectrum-component-top-to-text-100); + --system-help-text-size-l-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-help-text-size-xl-min-height: var(--spectrum-component-height-200); + --system-help-text-size-xl-icon-size: var(--spectrum-workflow-icon-size-300); + --system-help-text-size-xl-font-size: var(--spectrum-font-size-200); + --system-help-text-size-xl-text-to-visual: var(--spectrum-text-to-visual-200); + --system-help-text-size-xl-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-extra-large); + --system-help-text-size-xl-top-to-text: var(--spectrum-component-top-to-text-200); + --system-help-text-size-xl-bottom-to-text: var(--spectrum-component-bottom-to-text-200); +} diff --git a/tokens/dist/css/components/express/icon.css b/tokens/dist/css/components/express/icon.css new file mode 100644 index 00000000000..b0e0e4dd526 --- /dev/null +++ b/tokens/dist/css/components/express/icon.css @@ -0,0 +1,109 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-icon-size-xxs: var(--spectrum-workflow-icon-size-xxs); + --system-icon-size-xs: var(--spectrum-workflow-icon-size-50); + --system-icon-size-s: var(--spectrum-workflow-icon-size-75); + --system-icon-size-m: var(--spectrum-workflow-icon-size-100); + --system-icon-size-l: var(--spectrum-workflow-icon-size-200); + --system-icon-size-xl: var(--spectrum-workflow-icon-size-300); + --system-icon-size-xxl: var(--spectrum-workflow-icon-size-xxl); + --system-ui-icon-chevron-right-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-down-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-right-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-down-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-right-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-down-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-right-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-down-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-right-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-down-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-right-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-down-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-right-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-down-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-left-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-left-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-left-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-left-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-left-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-left-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-left-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-up-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-up-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-up-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-up-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-up-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-up-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-up-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-arrow-right-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-right-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-right-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-right-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-right-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-right-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-right-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-down-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-down-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-down-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-down-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-down-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-down-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-down-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-left-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-left-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-left-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-left-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-left-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-left-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-left-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-up-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-up-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-up-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-up-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-up-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-up-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-up-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-checkmark-50-icon-size: var(--spectrum-checkmark-icon-size-50); + --system-ui-icon-checkmark-75-icon-size: var(--spectrum-checkmark-icon-size-75); + --system-ui-icon-checkmark-100-icon-size: var(--spectrum-checkmark-icon-size-100); + --system-ui-icon-checkmark-200-icon-size: var(--spectrum-checkmark-icon-size-200); + --system-ui-icon-checkmark-300-icon-size: var(--spectrum-checkmark-icon-size-300); + --system-ui-icon-checkmark-400-icon-size: var(--spectrum-checkmark-icon-size-400); + --system-ui-icon-checkmark-500-icon-size: var(--spectrum-checkmark-icon-size-500); + --system-ui-icon-checkmark-600-icon-size: var(--spectrum-checkmark-icon-size-600); + --system-ui-icon-dash-50-icon-size: var(--spectrum-dash-icon-size-50); + --system-ui-icon-dash-75-icon-size: var(--spectrum-dash-icon-size-75); + --system-ui-icon-dash-100-icon-size: var(--spectrum-dash-icon-size-100); + --system-ui-icon-dash-200-icon-size: var(--spectrum-dash-icon-size-200); + --system-ui-icon-dash-300-icon-size: var(--spectrum-dash-icon-size-300); + --system-ui-icon-dash-400-icon-size: var(--spectrum-dash-icon-size-400); + --system-ui-icon-dash-500-icon-size: var(--spectrum-dash-icon-size-500); + --system-ui-icon-dash-600-icon-size: var(--spectrum-dash-icon-size-600); + --system-ui-icon-cross-75-icon-size: var(--spectrum-cross-icon-size-75); + --system-ui-icon-cross-100-icon-size: var(--spectrum-cross-icon-size-100); + --system-ui-icon-cross-200-icon-size: var(--spectrum-cross-icon-size-200); + --system-ui-icon-cross-300-icon-size: var(--spectrum-cross-icon-size-300); + --system-ui-icon-cross-400-icon-size: var(--spectrum-cross-icon-size-400); + --system-ui-icon-cross-500-icon-size: var(--spectrum-cross-icon-size-500); + --system-ui-icon-cross-600-icon-size: var(--spectrum-cross-icon-size-600); + --system-ui-icon-corner-triangle-75-icon-size: var(--spectrum-corner-triangle-icon-size-75); + --system-ui-icon-corner-triangle-100-icon-size: var(--spectrum-corner-triangle-icon-size-100); + --system-ui-icon-corner-triangle-200-icon-size: var(--spectrum-corner-triangle-icon-size-200); + --system-ui-icon-corner-triangle-300-icon-size: var(--spectrum-corner-triangle-icon-size-300); + --system-ui-icon-asterisk-75-icon-size: var(--spectrum-asterisk-icon-size-75); + --system-ui-icon-asterisk-100-icon-size: var(--spectrum-asterisk-icon-size-100); + --system-ui-icon-asterisk-200-icon-size: var(--spectrum-asterisk-icon-size-200); + --system-ui-icon-asterisk-300-icon-size: var(--spectrum-asterisk-icon-size-300); +} diff --git a/tokens/dist/css/components/express/illustratedmessage.css b/tokens/dist/css/components/express/illustratedmessage.css new file mode 100644 index 00000000000..67b62584a45 --- /dev/null +++ b/tokens/dist/css/components/express/illustratedmessage.css @@ -0,0 +1,36 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-illustrated-message-description-max-inline-size: var(--spectrum-illustrated-message-maximum-width); + --system-illustrated-message-heading-max-inline-size: var(--spectrum-illustrated-message-maximum-width); + --system-illustrated-message-title-to-heading: var(--spectrum-spacing-400); + --system-illustrated-message-heading-to-description: var(--spectrum-spacing-75); + --system-illustrated-message-illustration-color: var(--spectrum-neutral-visual-color); + --system-illustrated-message-illustration-accent-color: var(--spectrum-accent-visual-color); + --system-illustrated-message-title-font-family: var(--spectrum-sans-font-family-stack); + --system-illustrated-message-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-illustrated-message-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-illustrated-message-title-font-size: var(--spectrum-illustrated-message-title-size); + --system-illustrated-message-title-line-height: var(--spectrum-heading-line-height); + --system-illustrated-message-title-color: var(--spectrum-heading-color); + --system-illustrated-message-description-font-family: var(--spectrum-sans-font-family-stack); + --system-illustrated-message-description-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-illustrated-message-description-font-style: var(--spectrum-body-sans-serif-font-style); + --system-illustrated-message-description-font-size: var(--spectrum-illustrated-message-body-size); + --system-illustrated-message-description-line-height: var(--spectrum-body-line-height); + --system-illustrated-message-description-color: var(--spectrum-body-color); + --system-illustrated-message-lang-ja-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --system-illustrated-message-lang-zh-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --system-illustrated-message-lang-ko-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); +} diff --git a/tokens/dist/css/components/express/index.css b/tokens/dist/css/components/express/index.css index a4cfa742c68..92af1a3ab8f 100644 --- a/tokens/dist/css/components/express/index.css +++ b/tokens/dist/css/components/express/index.css @@ -11,575 +11,3532 @@ * governing permissions and limitations under the License. */ -.spectrum--express { - --system-spectrum-actionbutton-background-color-default: var(--spectrum-gray-200); - --system-spectrum-actionbutton-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-actionbutton-background-color-down: var(--spectrum-gray-400); - --system-spectrum-actionbutton-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-actionbutton-border-color-default: transparent; - --system-spectrum-actionbutton-border-color-hover: transparent; - --system-spectrum-actionbutton-border-color-down: transparent; - --system-spectrum-actionbutton-border-color-focus: transparent; - --system-spectrum-actionbutton-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-actionbutton-quiet-background-color-default: transparent; - --system-spectrum-actionbutton-quiet-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-background-color-down: var(--spectrum-gray-400); - --system-spectrum-actionbutton-quiet-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-quiet-background-color-disabled: transparent; - --system-spectrum-actionbutton-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-selected-border-color-default: transparent; - --system-spectrum-actionbutton-selected-border-color-hover: transparent; - --system-spectrum-actionbutton-selected-border-color-down: transparent; - --system-spectrum-actionbutton-selected-border-color-focus: transparent; - --system-spectrum-actionbutton-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-selected-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-actionbutton-staticblack-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-actionbutton-staticblack-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-actionbutton-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-actionbutton-staticwhite-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-actionbutton-staticwhite-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-actionbutton-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actiongroup-gap-size-compact: var(--spectrum-spacing-50); - --system-spectrum-actiongroup-horizontal-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); - --system-spectrum-actiongroup-vertical-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); - --system-spectrum-alertbanner-spectrum-alert-banner-netural-background: var(--spectrum-neutral-background-color-default); - --system-spectrum-assetcard-overlay-background-color-rgb: 109, 115, 246; - --system-spectrum-assetcard-overlay-background-color-opacity: 0.2; - --system-spectrum-assetcard-overlay-background-color: rgba(var(--system-spectrum-assetcard-overlay-background-color-rgb), var(--system-spectrum-assetcard-overlay-background-color-opacity)); - --system-spectrum-button-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-border-color-default: transparent; - --system-spectrum-button-border-color-hover: transparent; - --system-spectrum-button-border-color-down: transparent; - --system-spectrum-button-border-color-focus: transparent; - --system-spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-border-color-disabled: transparent; - --system-spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-accent-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-accent-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-accent-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-accent-border-color-default: transparent; - --system-spectrum-button-accent-border-color-hover: transparent; - --system-spectrum-button-accent-border-color-down: transparent; - --system-spectrum-button-accent-border-color-focus: transparent; - --system-spectrum-button-accent-content-color-default: var(--spectrum-white); - --system-spectrum-button-accent-content-color-hover: var(--spectrum-white); - --system-spectrum-button-accent-content-color-down: var(--spectrum-white); - --system-spectrum-button-accent-content-color-focus: var(--spectrum-white); - --system-spectrum-button-accent-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-accent-border-color-disabled: transparent; - --system-spectrum-button-accent-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-outline-background-color-default: transparent; - --system-spectrum-button-accent-outline-background-color-hover: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-background-color-down: var(--spectrum-accent-color-300); - --system-spectrum-button-accent-outline-background-color-focus: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-button-accent-outline-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-button-accent-outline-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-content-color-default: var(--spectrum-accent-content-color-default); - --system-spectrum-button-accent-outline-content-color-hover: var(--spectrum-accent-content-color-hover); - --system-spectrum-button-accent-outline-content-color-down: var(--spectrum-accent-content-color-down); - --system-spectrum-button-accent-outline-content-color-focus: var(--spectrum-accent-content-color-key-focus); - --system-spectrum-button-accent-outline-background-color-disabled: transparent; - --system-spectrum-button-accent-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-accent-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-background-color-default: var(--spectrum-negative-background-color-default); - --system-spectrum-button-negative-background-color-hover: var(--spectrum-negative-background-color-hover); - --system-spectrum-button-negative-background-color-down: var(--spectrum-negative-background-color-down); - --system-spectrum-button-negative-background-color-focus: var(--spectrum-negative-background-color-key-focus); - --system-spectrum-button-negative-border-color-default: transparent; - --system-spectrum-button-negative-border-color-hover: transparent; - --system-spectrum-button-negative-border-color-down: transparent; - --system-spectrum-button-negative-border-color-focus: transparent; - --system-spectrum-button-negative-content-color-default: var(--spectrum-white); - --system-spectrum-button-negative-content-color-hover: var(--spectrum-white); - --system-spectrum-button-negative-content-color-down: var(--spectrum-white); - --system-spectrum-button-negative-content-color-focus: var(--spectrum-white); - --system-spectrum-button-negative-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-negative-border-color-disabled: transparent; - --system-spectrum-button-negative-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-outline-background-color-default: transparent; - --system-spectrum-button-negative-outline-background-color-hover: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-background-color-down: var(--spectrum-negative-color-300); - --system-spectrum-button-negative-outline-background-color-focus: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-border-color-default: var(--spectrum-negative-color-900); - --system-spectrum-button-negative-outline-border-color-hover: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-border-color-down: var(--spectrum-negative-color-1100); - --system-spectrum-button-negative-outline-border-color-focus: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-content-color-default: var(--spectrum-negative-content-color-default); - --system-spectrum-button-negative-outline-content-color-hover: var(--spectrum-negative-content-color-hover); - --system-spectrum-button-negative-outline-content-color-down: var(--spectrum-negative-content-color-down); - --system-spectrum-button-negative-outline-content-color-focus: var(--spectrum-negative-content-color-key-focus); - --system-spectrum-button-negative-outline-background-color-disabled: transparent; - --system-spectrum-button-negative-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-negative-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-primary-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-primary-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-primary-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-primary-border-color-default: transparent; - --system-spectrum-button-primary-border-color-hover: transparent; - --system-spectrum-button-primary-border-color-down: transparent; - --system-spectrum-button-primary-border-color-focus: transparent; - --system-spectrum-button-primary-content-color-default: var(--spectrum-white); - --system-spectrum-button-primary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-primary-content-color-down: var(--spectrum-white); - --system-spectrum-button-primary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-primary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-primary-border-color-disabled: transparent; - --system-spectrum-button-primary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-outline-background-color-default: transparent; - --system-spectrum-button-primary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-primary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-border-color-default: var(--spectrum-gray-800); - --system-spectrum-button-primary-outline-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-down: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-primary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-primary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-primary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-primary-outline-background-color-disabled: transparent; - --system-spectrum-button-primary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-primary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-secondary-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-border-color-default: transparent; - --system-spectrum-button-secondary-border-color-hover: transparent; - --system-spectrum-button-secondary-border-color-down: transparent; - --system-spectrum-button-secondary-border-color-focus: transparent; - --system-spectrum-button-secondary-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-secondary-border-color-disabled: transparent; - --system-spectrum-button-secondary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-outline-background-color-default: transparent; - --system-spectrum-button-secondary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-default: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-border-color-down: var(--spectrum-gray-500); - --system-spectrum-button-secondary-outline-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-secondary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-secondary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-quiet-background-color-default: transparent; - --system-spectrum-button-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-quiet-border-color-default: transparent; - --system-spectrum-button-quiet-border-color-hover: transparent; - --system-spectrum-button-quiet-border-color-down: transparent; - --system-spectrum-button-quiet-border-color-focus: transparent; - --system-spectrum-button-quiet-background-color-disabled: transparent; - --system-spectrum-button-quiet-border-color-disabled: transparent; - --system-spectrum-button-selected-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-selected-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-selected-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-selected-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-selected-border-color-default: transparent; - --system-spectrum-button-selected-border-color-hover: transparent; - --system-spectrum-button-selected-border-color-down: transparent; - --system-spectrum-button-selected-border-color-focus: transparent; - --system-spectrum-button-selected-content-color-default: var(--spectrum-white); - --system-spectrum-button-selected-content-color-hover: var(--spectrum-white); - --system-spectrum-button-selected-content-color-down: var(--spectrum-white); - --system-spectrum-button-selected-content-color-focus: var(--spectrum-white); - --system-spectrum-button-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-selected-border-color-disabled: transparent; - --system-spectrum-button-selected-emphasized-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-selected-emphasized-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-selected-emphasized-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-selected-emphasized-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-staticblack-quiet-border-color-default: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-button-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-button-staticblack-quiet-border-color-down: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-button-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-button-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-border-color-default: transparent; - --system-spectrum-button-staticwhite-border-color-hover: transparent; - --system-spectrum-button-staticwhite-border-color-down: transparent; - --system-spectrum-button-staticwhite-border-color-focus: transparent; - --system-spectrum-button-staticwhite-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-border-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-outline-border-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-selected-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-selected-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-selected-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-button-staticwhite-secondary-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-border-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-hover: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-down: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-focus: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-default: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-hover: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-border-color-down: var(--spectrum-transparent-white-500); - --system-spectrum-button-staticwhite-secondary-outline-border-color-focus: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticblack-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-button-staticblack-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-border-color-default: transparent; - --system-spectrum-button-staticblack-border-color-hover: transparent; - --system-spectrum-button-staticblack-border-color-down: transparent; - --system-spectrum-button-staticblack-border-color-focus: transparent; - --system-spectrum-button-staticblack-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-border-color-disabled: transparent; - --system-spectrum-button-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-button-staticblack-outline-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-button-staticblack-secondary-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-border-color-default: transparent; - --system-spectrum-button-staticblack-secondary-border-color-hover: transparent; - --system-spectrum-button-staticblack-secondary-border-color-down: transparent; - --system-spectrum-button-staticblack-secondary-border-color-focus: transparent; - --system-spectrum-button-staticblack-secondary-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-secondary-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-default: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-hover: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-border-color-down: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-secondary-outline-border-color-focus: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-checkbox-control-color-default: var(--spectrum-gray-800); - --system-spectrum-checkbox-control-color-hover: var(--spectrum-gray-900); - --system-spectrum-checkbox-control-color-down: var(--spectrum-gray-900); - --system-spectrum-checkbox-control-color-focus: var(--spectrum-gray-900); - --system-spectrum-clearbutton-spectrum-clear-button-background-color: var(--spectrum-gray-200); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-closebutton-background-color-default: transparent; - --system-spectrum-closebutton-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-closebutton-background-color-down: var(--spectrum-gray-400); - --system-spectrum-closebutton-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-combobox-border-color-default: var(--spectrum-gray-400); - --system-spectrum-combobox-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-800); - --system-spectrum-combobox-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-datepicker-initial-height: var(--spectrum-component-height-75); - --system-spectrum-infieldbutton-spectrum-infield-button-border-width: 0; - --system-spectrum-infieldbutton-spectrum-infield-button-border-color: transparent; - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color: var(--spectrum-gray-200); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-default: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-default-open: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-active: var(--spectrum-gray-400); - --system-spectrum-picker-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-hover-open: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-picker-border-color-default: transparent; - --system-spectrum-picker-border-color-default-open: transparent; - --system-spectrum-picker-border-color-hover: transparent; - --system-spectrum-picker-border-color-hover-open: transparent; - --system-spectrum-picker-border-color-active: transparent; - --system-spectrum-picker-border-color-key-focus: transparent; - --system-spectrum-picker-border-width: 0px; - --system-spectrum-pickerbutton-spectrum-picker-button-background-color: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-border-color: none; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius: var(--spectrum-corner-radius-75); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided: var(--spectrum-corner-radius-200); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided: var(--spectrum-corner-radius-75); - --system-spectrum-pickerbutton-spectrum-picker-button-border-width: 0px; - --system-spectrum-popover-border-width: 0; - --system-spectrum-radio-button-border-color-default: var(--spectrum-gray-800); - --system-spectrum-radio-button-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-radio-button-border-color-down: var(--spectrum-gray-900); - --system-spectrum-radio-button-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-radio-emphasized-button-checked-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-radio-emphasized-button-checked-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-radio-emphasized-button-checked-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-radio-emphasized-button-checked-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-rating-icon-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-rating-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-rating-icon-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-search-border-radius: calc(var(--spectrum-component-height-100) / 2); - --system-spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-search-border-color-default: var(--spectrum-gray-400); - --system-spectrum-search-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-search-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-search-sizes-border-radius: calc(var(--spectrum-component-height-75) / 2); - --system-spectrum-search-sizes-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-search-sizem-border-radius: calc(var(--spectrum-component-height-100) / 2); - --system-spectrum-search-sizem-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-search-sizel-border-radius: calc(var(--spectrum-component-height-200) / 2); - --system-spectrum-search-sizel-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-200); - --system-spectrum-search-sizexl-border-radius: calc(var(--spectrum-component-height-300) / 2); - --system-spectrum-search-sizexl-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-300); - --system-spectrum-slider-track-color: var(--spectrum-gray-200); - --system-spectrum-slider-track-fill-color: var(--spectrum-gray-600); - --system-spectrum-slider-ramp-track-color: var(--spectrum-gray-300); - --system-spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - --system-spectrum-slider-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-handle-background-color-disabled: var(--spectrum-gray-50); - --system-spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-handle-border-color: var(--spectrum-gray-800); - --system-spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-tick-mark-color: var(--spectrum-gray-200); - --system-spectrum-slider-handle-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-slider-handle-border-color-down: var(--spectrum-gray-900); - --system-spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); - --system-spectrum-stepper-border-width: var(--spectrum-border-width-200); - --system-spectrum-stepper-buttons-border-style: solid; - --system-spectrum-stepper-buttons-border-width: var(--spectrum-border-width-200); - --system-spectrum-stepper-buttons-border-color: transparent; - --system-spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --system-spectrum-stepper-buttons-border-color-hover: transparent; - --system-spectrum-stepper-buttons-border-color-focus: transparent; - --system-spectrum-stepper-buttons-border-color-keyboard-focus: transparent; - --system-spectrum-stepper-button-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); - --system-spectrum-stepper-button-border-width: 0; - --system-spectrum-stepper-border-color: var(--spectrum-gray-400); - --system-spectrum-stepper-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-invalid: transparent; - --system-spectrum-stepper-border-color-focus-invalid: transparent; - --system-spectrum-stepper-border-color-focus-hover-invalid: transparent; - --system-spectrum-stepper-border-color-keyboard-focus-invalid: transparent; - --system-spectrum-stepper-button-background-color-focus: var(--spectrum-gray-400); - --system-spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-300); - --system-spectrum-stepper-disabled-buttons-background-color: var(--spectrum-disabled-background-color); - --system-spectrum-stepper-disabled-buttons-border-width: 0; - --system-spectrum-switch-handle-border-color-default: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-900); - --system-spectrum-tabs-font-weight: var(--spectrum-bold-font-weight); - --system-spectrum-tag-border-color: var(--spectrum-gray-300); - --system-spectrum-tag-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-tag-border-color-active: var(--spectrum-gray-500); - --system-spectrum-tag-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-tag-size-small-corner-radius: var(--spectrum-component-height-75); - --system-spectrum-tag-size-medium-corner-radius: var(--spectrum-component-height-100); - --system-spectrum-tag-size-large-corner-radius: var(--spectrum-component-height-200); - --system-spectrum-tag-background-color: transparent; - --system-spectrum-tag-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-tag-background-color-active: var(--spectrum-gray-400); - --system-spectrum-tag-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-tag-content-color: var(--spectrum-neutral-content-color-default); - --system-spectrum-tag-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-tag-content-color-active: var(--spectrum-neutral-content-color-down); - --system-spectrum-tag-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-tag-border-color-selected: var(--spectrum-neutral-background-color-default); - --system-spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-tag-border-color-selected-active: var(--spectrum-neutral-background-color-down); - --system-spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-tag-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-tag-background-color-disabled: transparent; - --system-spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-75); - --system-spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-100); - --system-spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-200); - --system-spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-200); - --system-spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-200); - --system-spectrum-textfield-border-color: var(--spectrum-gray-400); - --system-spectrum-textfield-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-textfield-border-width: var(--spectrum-border-width-200); - --system-spectrum-toast-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-background-color-default); +.spectrum.spectrum--express { + --system-accordion-item-height: var(--spectrum-component-height-200); + --system-accordion-item-width: var(--spectrum-accordion-minimum-width); + --system-accordion-disclosure-indicator-height: var(--spectrum-component-height-100); + --system-accordion-disclosure-indicator-to-text-space: var(--spectrum-accordion-disclosure-indicator-to-text); + --system-accordion-edge-to-disclosure-indicator-space: var(--spectrum-accordion-edge-to-disclosure-indicator); + --system-accordion-edge-to-text-space: var(--spectrum-accordion-edge-to-text); + --system-accordion-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-regular-medium); + --system-accordion-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-regular-medium); + --system-accordion-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-accordion-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-accordion-corner-radius: var(--spectrum-corner-radius-100); + --system-accordion-item-content-area-top-to-content: var(--spectrum-accordion-content-area-top-to-content); + --system-accordion-item-content-area-bottom-to-content: var(--spectrum-accordion-content-area-bottom-to-content); + --system-accordion-component-edge-to-text: var(--spectrum-component-edge-to-text-75); + --system-accordion-item-header-font: var(--spectrum-sans-font-family-stack); + --system-accordion-item-header-font-weight: var(--spectrum-bold-font-weight); + --system-accordion-item-header-font-style: var(--spectrum-default-font-style); + --system-accordion-item-header-font-size: var(--spectrum-font-size-300); + --system-accordion-item-header-line-height: 1.25; + --system-accordion-item-content-font: var(--spectrum-sans-font-family-stack); + --system-accordion-item-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-accordion-item-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-accordion-item-content-font-size: var(--spectrum-body-size-s); + --system-accordion-item-content-line-height: var(--spectrum-line-height-100); + --system-accordion-background-color-default: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-default)); + --system-accordion-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-hover)); + --system-accordion-background-color-down: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-down)); + --system-accordion-background-color-key-focus: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-background-opacity-key-focus)); + --system-accordion-item-header-color-default: var(--spectrum-neutral-content-color-default); + --system-accordion-item-header-color-hover: var(--spectrum-neutral-content-color-hover); + --system-accordion-item-header-color-down: var(--spectrum-neutral-content-color-down); + --system-accordion-item-header-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-accordion-item-header-disabled-color: var(--spectrum-disabled-content-color); + --system-accordion-item-content-disabled-color: var(--spectrum-disabled-content-color); + --system-accordion-item-content-color: var(--spectrum-body-color); + --system-accordion-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-accordion-divider-color: var(--spectrum-gray-300); + --system-accordion-item-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-accordion-item-content-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-accordion-item-height-size-s: var(--spectrum-component-height-100); + --system-accordion-disclosure-indicator-height-size-s: var(--spectrum-component-height-75); + --system-accordion-component-edge-to-text-size-s: var(--spectrum-component-edge-to-text-50); + --system-accordion-item-header-font-size-size-s: var(--spectrum-font-size-200); + --system-accordion-item-content-font-size-size-s: var(--spectrum-body-size-xs); + --system-accordion-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-regular-small); + --system-accordion-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-regular-small); + --system-accordion-item-height-size-l: var(--spectrum-component-height-300); + --system-accordion-disclosure-indicator-height-size-l: var(--spectrum-component-height-200); + --system-accordion-component-edge-to-text-size-l: var(--spectrum-component-edge-to-text-100); + --system-accordion-item-header-font-size-size-l: var(--spectrum-font-size-500); + --system-accordion-item-content-font-size-size-l: var(--spectrum-body-size-m); + --system-accordion-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-regular-large); + --system-accordion-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-regular-large); + --system-accordion-item-height-size-xl: var(--spectrum-component-height-400); + --system-accordion-disclosure-indicator-height-size-xl: var(--spectrum-component-height-300); + --system-accordion-component-edge-to-text-size-xl: var(--spectrum-component-edge-to-text-200); + --system-accordion-item-header-font-size-size-xl: var(--spectrum-font-size-700); + --system-accordion-item-content-font-size-size-xl: var(--spectrum-body-size-l); + --system-accordion-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-regular-extra-large); + --system-accordion-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-regular-extra-large); + --system-accordion-compact-item-height: var(--spectrum-component-height-100); + --system-accordion-compact-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-compact-medium); + --system-accordion-compact-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-compact-medium); + --system-accordion-compact-item-height-size-s: var(--spectrum-component-height-75); + --system-accordion-compact-item-header-top-to-text-space-size-s: var(--spectrum-accordion-top-to-text-compact-small); + --system-accordion-compact-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-compact-small); + --system-accordion-compact-item-height-size-l: var(--spectrum-component-height-200); + --system-accordion-compact-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-compact-large); + --system-accordion-compact-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-compact-large); + --system-accordion-compact-item-height-size-xl: var(--spectrum-component-height-300); + --system-accordion-compact-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-compact-extra-large); + --system-accordion-compact-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-compact-extra-large); + --system-accordion-spacious-item-header-line-height: 1.278; + --system-accordion-spacious-item-header-top-to-text-space: var(--spectrum-accordion-top-to-text-spacious-medium); + --system-accordion-spacious-item-header-bottom-to-text-space: var(--spectrum-accordion-bottom-to-text-spacious-medium); + --system-accordion-spacious-item-header-line-height-size-l: 1.273; + --system-accordion-spacious-item-header-top-to-text-space-size-l: var(--spectrum-accordion-top-to-text-spacious-large); + --system-accordion-spacious-item-header-bottom-to-text-space-size-l: var(--spectrum-accordion-bottom-to-text-spacious-large); + --system-accordion-spacious-item-header-line-height-size-xl: 1.25; + --system-accordion-spacious-item-header-top-to-text-space-size-xl: var(--spectrum-accordion-top-to-text-spacious-extra-large); + --system-accordion-spacious-item-header-bottom-to-text-space-size-xl: var(--spectrum-accordion-bottom-to-text-spacious-extra-large); + --system-accordion-spacious-item-header-line-height-size-s: 1.25; + --system-accordion-spacious-item-header-top-to-text-space-size-s: var(--spectrum-accordion-small-top-to-text-spacious); + --system-accordion-spacious-item-header-bottom-to-text-space-size-s: var(--spectrum-accordion-bottom-to-text-spacious-small); + --system-action-bar-height: var(--spectrum-action-bar-height); + --system-action-bar-corner-radius: var(--spectrum-corner-radius-100); + --system-action-bar-item-counter-font-size: var(--spectrum-font-size-100); + --system-action-bar-item-counter-line-height: var(--spectrum-line-height-100); + --system-action-bar-item-counter-color: var(--spectrum-neutral-content-color-default); + --system-action-bar-item-counter-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-action-bar-popover-background-color: var(--spectrum-gray-50); + --system-action-bar-popover-border-color: var(--spectrum-gray-400); + --system-action-bar-emphasized-background-color: var(--spectrum-informative-background-color-default); + --system-action-bar-emphasized-item-counter-color: var(--spectrum-white); + --system-action-bar-spacing-outer-edge: var(--spectrum-spacing-300); + --system-action-bar-spacing-close-button-top: var(--spectrum-spacing-100); + --system-action-bar-spacing-close-button-start: var(--spectrum-spacing-100); + --system-action-bar-spacing-close-button-end: var(--spectrum-spacing-75); + --system-action-bar-spacing-item-counter-top: var(--spectrum-action-bar-top-to-item-counter); + --system-action-bar-spacing-item-counter-end: var(--spectrum-spacing-400); + --system-action-bar-spacing-action-group-top: var(--spectrum-spacing-100); + --system-action-bar-spacing-action-group-end: var(--spectrum-spacing-100); + --system-action-bar-shadow-horizontal: var(--spectrum-drop-shadow-x); + --system-action-bar-shadow-vertical: var(--spectrum-drop-shadow-y); + --system-action-bar-shadow-blur: var(--spectrum-drop-shadow-blur); + --system-action-bar-shadow-color: var(--spectrum-drop-shadow-color); + --system-action-button-background-color-default: var(--spectrum-gray-200); + --system-action-button-background-color-hover: var(--spectrum-gray-300); + --system-action-button-background-color-down: var(--spectrum-gray-400); + --system-action-button-background-color-focus: var(--spectrum-gray-300); + --system-action-button-background-color-disabled: var(--spectrum-disabled-background-color); + --system-action-button-background-color-default-selected: var(--spectrum-neutral-background-color-selected-default); + --system-action-button-background-color-hover-selected: var(--spectrum-neutral-background-color-selected-hover); + --system-action-button-background-color-down-selected: var(--spectrum-neutral-background-color-selected-down); + --system-action-button-background-color-focus-selected: var(--spectrum-neutral-background-color-selected-key-focus); + --system-action-button-background-color-disabled-selected: var(--spectrum-disabled-background-color); + --system-action-button-border-color-default: transparent; + --system-action-button-border-color-hover: transparent; + --system-action-button-border-color-down: transparent; + --system-action-button-border-color-focus: transparent; + --system-action-button-border-color-disabled: transparent; + --system-action-button-animation-duration: var(--spectrum-animation-duration-100); + --system-action-button-border-radius: var(--spectrum-corner-radius-100); + --system-action-button-border-width: var(--spectrum-border-width-100); + --system-action-button-min-width: calc(var(--spectrum-component-edge-to-visual-only-100) * 2 + var(--spectrum-workflow-icon-size-100)); + --system-action-button-height: var(--spectrum-component-height-100); + --system-action-button-icon-size: var(--spectrum-workflow-icon-size-100); + --system-action-button-font-size: var(--spectrum-font-size-100); + --system-action-button-text-to-visual: var(--spectrum-text-to-visual-100); + --system-action-button-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-medium); + --system-action-button-content-color-default: var(--spectrum-neutral-content-color-default); + --system-action-button-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-action-button-content-color-down: var(--spectrum-neutral-content-color-down); + --system-action-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-action-button-content-color-disabled: var(--spectrum-disabled-content-color); + --system-action-button-content-color-default-selected: var(--spectrum-gray-50); + --system-action-button-content-color-hover-selected: var(--spectrum-gray-50); + --system-action-button-content-color-down-selected: var(--spectrum-gray-50); + --system-action-button-content-color-focus-selected: var(--spectrum-gray-50); + --system-action-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-action-button-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-action-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-action-button-border-color-default-selected: transparent; + --system-action-button-border-color-hover-selected: transparent; + --system-action-button-border-color-down-selected: transparent; + --system-action-button-border-color-focus-selected: transparent; + --system-action-button-border-color-disabled-selected: transparent; + --system-action-button-quiet-background-color-default: transparent; + --system-action-button-quiet-background-color-hover: var(--spectrum-gray-300); + --system-action-button-quiet-background-color-down: var(--spectrum-gray-400); + --system-action-button-quiet-background-color-focus: var(--spectrum-gray-300); + --system-action-button-quiet-background-color-disabled: transparent; + --system-action-button-quiet-border-color-default: transparent; + --system-action-button-quiet-border-color-hover: transparent; + --system-action-button-quiet-border-color-down: transparent; + --system-action-button-quiet-border-color-focus: transparent; + --system-action-button-quiet-border-color-disabled: transparent; + --system-action-button-emphasized-background-color-default-selected: var(--spectrum-accent-background-color-default); + --system-action-button-emphasized-background-color-hover-selected: var(--spectrum-accent-background-color-hover); + --system-action-button-emphasized-background-color-down-selected: var(--spectrum-accent-background-color-down); + --system-action-button-emphasized-background-color-focus-selected: var(--spectrum-accent-background-color-key-focus); + --system-action-button-emphasized-content-color-default-selected: var(--spectrum-white); + --system-action-button-emphasized-content-color-hover-selected: var(--spectrum-white); + --system-action-button-emphasized-content-color-down-selected: var(--spectrum-white); + --system-action-button-emphasized-content-color-focus-selected: var(--spectrum-white); + --system-action-button-size-xs-min-width: calc(var(--spectrum-component-edge-to-visual-only-50) * 2 + var(--spectrum-workflow-icon-size-50)); + --system-action-button-size-xs-height: var(--spectrum-component-height-50); + --system-action-button-size-xs-icon-size: var(--spectrum-workflow-icon-size-50); + --system-action-button-size-xs-font-size: var(--spectrum-font-size-50); + --system-action-button-size-xs-text-to-visual: var(--spectrum-text-to-visual-50); + --system-action-button-size-xs-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-extra-small); + --system-action-button-size-xs-edge-to-visual-size: var(--spectrum-component-edge-to-visual-50); + --system-action-button-size-xs-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-50); + --system-action-button-size-xs-edge-to-text-size: var(--spectrum-component-edge-to-text-50); + --system-action-button-size-s-min-width: calc(var(--spectrum-component-edge-to-visual-only-75) * 2 + var(--spectrum-workflow-icon-size-75)); + --system-action-button-size-s-height: var(--spectrum-component-height-75); + --system-action-button-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-action-button-size-s-font-size: var(--spectrum-font-size-75); + --system-action-button-size-s-text-to-visual: var(--spectrum-text-to-visual-75); + --system-action-button-size-s-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-small); + --system-action-button-size-s-edge-to-visual-size: var(--spectrum-component-edge-to-visual-75); + --system-action-button-size-s-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-75); + --system-action-button-size-s-edge-to-text-size: var(--spectrum-component-edge-to-text-75); + --system-action-button-size-m-min-width: calc(var(--spectrum-component-edge-to-visual-only-100) * 2 + var(--spectrum-workflow-icon-size-100)); + --system-action-button-size-m-height: var(--spectrum-component-height-100); + --system-action-button-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-action-button-size-m-font-size: var(--spectrum-font-size-100); + --system-action-button-size-m-text-to-visual: var(--spectrum-text-to-visual-100); + --system-action-button-size-m-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-medium); + --system-action-button-edge-to-visual-size: var(--spectrum-component-edge-to-visual-100); + --system-action-button-size-m-edge-to-visual-size: var(--spectrum-component-edge-to-visual-100); + --system-action-button-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-100); + --system-action-button-size-m-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-100); + --system-action-button-edge-to-text-size: var(--spectrum-component-edge-to-text-100); + --system-action-button-size-m-edge-to-text-size: var(--spectrum-component-edge-to-text-100); + --system-action-button-size-l-min-width: calc(var(--spectrum-component-edge-to-visual-only-200) * 2 + var(--spectrum-workflow-icon-size-200)); + --system-action-button-size-l-height: var(--spectrum-component-height-200); + --system-action-button-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-action-button-size-l-font-size: var(--spectrum-font-size-200); + --system-action-button-size-l-text-to-visual: var(--spectrum-text-to-visual-200); + --system-action-button-size-l-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-large); + --system-action-button-size-l-edge-to-visual-size: var(--spectrum-component-edge-to-visual-200); + --system-action-button-size-l-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-200); + --system-action-button-size-l-edge-to-text-size: var(--spectrum-component-edge-to-text-200); + --system-action-button-size-xl-min-width: calc(var(--spectrum-component-edge-to-visual-only-300) * 2 + var(--spectrum-workflow-icon-size-300)); + --system-action-button-size-xl-height: var(--spectrum-component-height-300); + --system-action-button-size-xl-icon-size: var(--spectrum-workflow-icon-size-300); + --system-action-button-size-xl-font-size: var(--spectrum-font-size-300); + --system-action-button-size-xl-text-to-visual: var(--spectrum-text-to-visual-300); + --system-action-button-size-xl-edge-to-hold-icon: var(--spectrum-action-button-edge-to-hold-icon-extra-large); + --system-action-button-size-xl-edge-to-visual-size: var(--spectrum-component-edge-to-visual-300); + --system-action-button-size-xl-edge-to-visual-only-size: var(--spectrum-component-edge-to-visual-only-300); + --system-action-button-size-xl-edge-to-text-size: var(--spectrum-component-edge-to-text-300); + --system-action-button-static-black-quiet-border-color-default: transparent; + --system-action-button-static-white-quiet-border-color-default: transparent; + --system-action-button-static-black-quiet-border-color-hover: transparent; + --system-action-button-static-white-quiet-border-color-hover: transparent; + --system-action-button-static-black-quiet-border-color-down: transparent; + --system-action-button-static-white-quiet-border-color-down: transparent; + --system-action-button-static-black-quiet-border-color-focus: transparent; + --system-action-button-static-white-quiet-border-color-focus: transparent; + --system-action-button-static-black-quiet-border-color-disabled: transparent; + --system-action-button-static-white-quiet-border-color-disabled: transparent; + --system-action-button-static-black-background-color-default: var(--spectrum-transparent-black-200); + --system-action-button-static-black-background-color-hover: var(--spectrum-transparent-black-300); + --system-action-button-static-black-background-color-down: var(--spectrum-transparent-black-400); + --system-action-button-static-black-background-color-focus: var(--spectrum-transparent-black-300); + --system-action-button-static-black-background-color-disabled: transparent; + --system-action-button-static-black-background-color-default-selected: var(--spectrum-transparent-black-800); + --system-action-button-static-black-background-color-hover-selected: var(--spectrum-transparent-black-900); + --system-action-button-static-black-background-color-down-selected: var(--spectrum-transparent-black-900); + --system-action-button-static-black-background-color-focus-selected: var(--spectrum-transparent-black-900); + --system-action-button-static-black-background-color-disabled-selected: var(--spectrum-transparent-black-200); + --system-action-button-static-black-border-color-default: transparent; + --system-action-button-static-black-border-color-hover: transparent; + --system-action-button-static-black-border-color-down: transparent; + --system-action-button-static-black-border-color-focus: transparent; + --system-action-button-static-black-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --system-action-button-static-black-border-color-disabled-selected: transparent; + --system-action-button-static-black-content-color-default: var(--spectrum-black); + --system-action-button-static-black-content-color-hover: var(--spectrum-black); + --system-action-button-static-black-content-color-down: var(--spectrum-black); + --system-action-button-static-black-content-color-focus: var(--spectrum-black); + --system-action-button-static-black-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-action-button-static-black-content-color-selected: var(--spectrum-white); + --system-action-button-static-black-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-action-button-static-black-emphasized-background-color-default-selected: var(--spectrum-transparent-black-900); + --system-action-button-static-black-emphasized-background-color-hover-selected: var(--spectrum-transparent-black-1000); + --system-action-button-static-black-emphasized-background-color-down-selected: var(--spectrum-transparent-black-1000); + --system-action-button-static-black-emphasized-background-color-focus-selected: var(--spectrum-transparent-black-1000); + --system-action-button-static-black-emphasized-content-color-default-selected: var(--spectrum-gray-50); + --system-action-button-static-black-emphasized-content-color-hover-selected: var(--spectrum-gray-900); + --system-action-button-static-black-emphasized-content-color-down-selected: var(--spectrum-gray-900); + --system-action-button-static-black-emphasized-content-color-focus-selected: var(--spectrum-gray-900); + --system-action-button-static-white-background-color-default: var(--spectrum-transparent-white-200); + --system-action-button-static-white-background-color-hover: var(--spectrum-transparent-white-300); + --system-action-button-static-white-background-color-down: var(--spectrum-transparent-white-400); + --system-action-button-static-white-background-color-focus: var(--spectrum-transparent-white-300); + --system-action-button-static-white-background-color-disabled: transparent; + --system-action-button-static-white-background-color-default-selected: var(--spectrum-transparent-white-800); + --system-action-button-static-white-background-color-hover-selected: var(--spectrum-transparent-white-900); + --system-action-button-static-white-background-color-down-selected: var(--spectrum-transparent-white-900); + --system-action-button-static-white-background-color-focus-selected: var(--spectrum-transparent-white-900); + --system-action-button-static-white-background-color-disabled-selected: var(--spectrum-transparent-white-200); + --system-action-button-static-white-border-color-default: transparent; + --system-action-button-static-white-border-color-hover: transparent; + --system-action-button-static-white-border-color-down: transparent; + --system-action-button-static-white-border-color-focus: transparent; + --system-action-button-static-white-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --system-action-button-static-white-border-color-disabled-selected: transparent; + --system-action-button-static-white-content-color-default: var(--spectrum-white); + --system-action-button-static-white-content-color-hover: var(--spectrum-white); + --system-action-button-static-white-content-color-down: var(--spectrum-white); + --system-action-button-static-white-content-color-focus: var(--spectrum-white); + --system-action-button-static-white-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-action-button-static-white-content-color-selected: var(--spectrum-black); + --system-action-button-static-white-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-action-button-static-white-emphasized-background-color-default-selected: var(--spectrum-transparent-white-900); + --system-action-button-static-white-emphasized-background-color-hover-selected: var(--spectrum-transparent-white-1000); + --system-action-button-static-white-emphasized-background-color-down-selected: var(--spectrum-transparent-white-1000); + --system-action-button-static-white-emphasized-background-color-focus-selected: var(--spectrum-transparent-white-1000); + --system-action-button-static-white-emphasized-content-color-default-selected: var(--spectrum-gray-50); + --system-action-group-gap-size-compact: var(--spectrum-spacing-50); + --system-action-group-horizontal-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); + --system-action-group-vertical-spacing-compact: calc(-1px * var(--spectrum-spacing-50)); + --system-action-group-button-spacing-reset: 0; + --system-action-group-border-radius-reset: 0; + --system-action-group-border-radius: var(--spectrum-corner-radius-100); + --system-action-group-size-xs-horizontal-spacing-regular: var(--spectrum-spacing-75); + --system-action-group-size-s-horizontal-spacing-regular: var(--spectrum-spacing-75); + --system-action-group-size-xs-vertical-spacing-regular: var(--spectrum-spacing-75); + --system-action-group-size-s-vertical-spacing-regular: var(--spectrum-spacing-75); + --system-action-group-horizontal-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-m-horizontal-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-l-horizontal-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-xl-horizontal-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-vertical-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-m-vertical-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-l-vertical-spacing-regular: var(--spectrum-spacing-100); + --system-action-group-size-xl-vertical-spacing-regular: var(--spectrum-spacing-100); + --system-alert-banner-neutral-background: var(--spectrum-neutral-background-color-default); + --system-alert-banner-min-height: var(--spectrum-alert-banner-minimum-height); + --system-alert-banner-max-inline-size: var(--spectrum-alert-banner-width); + --system-alert-banner-size: auto; + --system-alert-banner-font-size: var(--spectrum-font-size-100); + --system-alert-banner-icon-size: var(--spectrum-workflow-icon-size-100); + --system-alert-banner-icon-to-text: var(--spectrum-text-to-visual-300); + --system-alert-banner-start-edge: var(--spectrum-spacing-300); + --system-alert-banner-text-to-button-horizontal: var(--spectrum-spacing-300); + --system-alert-banner-text-to-divider: var(--spectrum-spacing-300); + --system-alert-banner-top-icon: var(--spectrum-alert-banner-top-to-workflow-icon); + --system-alert-banner-top-text: var(--spectrum-alert-banner-top-to-text); + --system-alert-banner-bottom-text: var(--spectrum-alert-banner-bottom-to-text); + --system-alert-banner-informative-background: var(--spectrum-informative-background-color-default); + --system-alert-banner-negative-background: var(--spectrum-negative-background-color-default); + --system-alert-banner-font-color: var(--spectrum-white); + --system-alert-dialog-min-width: var(--spectrum-alert-dialog-minimum-width); + --system-alert-dialog-max-width: var(--spectrum-alert-dialog-maximum-width); + --system-alert-dialog-icon-size: var(--spectrum-workflow-icon-size-100); + --system-alert-dialog-warning-icon-color: var(--spectrum-notice-visual-color); + --system-alert-dialog-error-icon-color: var(--spectrum-negative-visual-color); + --system-alert-dialog-title-font-family: var(--spectrum-sans-font-family-stack); + --system-alert-dialog-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-alert-dialog-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-alert-dialog-title-font-size: var(--spectrum-alert-dialog-title-size); + --system-alert-dialog-title-line-height: var(--spectrum-heading-line-height); + --system-alert-dialog-title-color: var(--spectrum-heading-color); + --system-alert-dialog-body-font-family: var(--spectrum-sans-font-family-stack); + --system-alert-dialog-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-alert-dialog-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-alert-dialog-body-font-size: var(--spectrum-alert-dialog-description-size); + --system-alert-dialog-body-line-height: var(--spectrum-line-height-100); + --system-alert-dialog-body-color: var(--spectrum-body-color); + --system-alert-dialog-title-to-divider: var(--spectrum-spacing-200); + --system-alert-dialog-divider-to-description: var(--spectrum-spacing-300); + --system-alert-dialog-title-to-icon: var(--spectrum-spacing-300); + --system-asset-transition-duration: var(--spectrum-animation-duration-100); + --system-asset-folder-background-color: var(--spectrum-gray-300); + --system-asset-file-background-color: var(--spectrum-gray-50); + --system-asset-icon-outline-color: var(--spectrum-gray-500); + --system-asset-card-overlay-background-color-rgb: 109, 115, 246; + --system-asset-card-overlay-background-color-opacity: 0.2; + --system-asset-card-overlay-background-color: rgba(var(--system-asset-card-overlay-background-color-rgb), var(--system-asset-card-overlay-background-color-opacity)); + --system-asset-card-asset-size: 224px; + --system-asset-card-background-color: var(--spectrum-gray-200); + --system-asset-card-asset-animation-duration: var(--spectrum-animation-duration-100); + --system-asset-card-asset-container-border-size: 1px; + --system-asset-card-header-margin-block-start: var(--spectrum-spacing-300); + --system-asset-card-border-radius: var(--spectrum-corner-radius-100); + --system-asset-card-border-color: transparent; + --system-asset-card-border-color-hover: var(--spectrum-gray-500); + --system-asset-card-border-color-down: var(--spectrum-gray-600); + --system-asset-card-focus-ring-gap: 5px; + --system-asset-card-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-asset-card-selectionindicator-background-color-default: rgba(var(--spectrum-gray-100-rgb), 0.9); + --system-asset-card-selectionindicator-box-shadow-color: var(--spectrum-transparent-black-200); + --system-asset-card-selectionindicator-size: var(--spectrum-card-selection-background-size); + --system-asset-card-selectionindicator-border-radius: var(--spectrum-corner-radius-100); + --system-asset-card-selectionindicator-offset-y: 4px; + --system-asset-card-selectionindicator-blur: 6px; + --system-asset-card-selectionindicator-color: var(--spectrum-white); + --system-asset-card-selectionindicator-font-weight: var(--spectrum-bold-font-weight); + --system-asset-card-selectionindicator-font-size: var(--spectrum-font-size-400); + --system-asset-card-title-text-color: var(--spectrum-gray-900); + --system-asset-card-title-font-family: var(--spectrum-sans-font-family-stack); + --system-asset-card-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-asset-card-title-font-style: var(--spectrum-default-font-style); + --system-asset-card-title-line-height: var(--spectrum-line-height-100); + --system-asset-card-title-letter-spacing: 0; + --system-asset-card-header-content-text-color: var(--spectrum-gray-900); + --system-asset-card-header-content-font-family: var(--spectrum-sans-font-family-stack); + --system-asset-card-header-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-asset-card-header-content-font-style: var(--spectrum-default-font-style); + --system-asset-card-header-content-line-height: var(--spectrum-line-height-200); + --system-asset-card-header-content-letter-spacing: 0; + --system-asset-card-content-text-color: var(--spectrum-gray-700); + --system-asset-card-content-font-family: var(--spectrum-sans-font-family-stack); + --system-asset-card-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-asset-card-content-font-style: var(--spectrum-default-font-style); + --system-asset-card-content-line-height: var(--spectrum-line-height-200); + --system-asset-card-content-letter-spacing: 0; + --system-asset-card-content-margin-block-start: var(--spectrum-spacing-75); + --system-asset-card-lang-zh-title-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ja-title-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ko-title-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-zh-title-font-style: var(--spectrum-heading-cjk-font-style); + --system-asset-card-lang-ja-title-font-style: var(--spectrum-heading-cjk-font-style); + --system-asset-card-lang-ko-title-font-style: var(--spectrum-heading-cjk-font-style); + --system-asset-card-lang-zh-title-font-weight: var(--spectrum-heading-cjk-font-weight); + --system-asset-card-lang-ja-title-font-weight: var(--spectrum-heading-cjk-font-weight); + --system-asset-card-lang-ko-title-font-weight: var(--spectrum-heading-cjk-font-weight); + --system-asset-card-lang-zh-title-font-size: var(--spectrum-heading-cjk-size-xs); + --system-asset-card-lang-ja-title-font-size: var(--spectrum-heading-cjk-size-xs); + --system-asset-card-lang-ko-title-font-size: var(--spectrum-heading-cjk-size-xs); + --system-asset-card-lang-zh-title-line-height: var(--spectrum-heading-cjk-line-height); + --system-asset-card-lang-ja-title-line-height: var(--spectrum-heading-cjk-line-height); + --system-asset-card-lang-ko-title-line-height: var(--spectrum-heading-cjk-line-height); + --system-asset-card-lang-zh-title-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ja-title-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ko-title-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-zh-header-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ja-header-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ko-header-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-zh-header-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-ja-header-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-ko-header-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-zh-header-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-ja-header-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-ko-header-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-zh-header-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-ja-header-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-ko-header-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-zh-header-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ja-header-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ko-header-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-zh-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ja-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-ko-content-font-family: var(--spectrum-cjk-font-family-stack); + --system-asset-card-lang-zh-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-ja-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-ko-content-font-weight: var(--spectrum-body-cjk-font-weight); + --system-asset-card-lang-zh-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-ja-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-ko-content-line-height: var(--spectrum-body-cjk-line-height); + --system-asset-card-lang-zh-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-ja-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-ko-content-font-style: var(--spectrum-body-cjk-font-style); + --system-asset-card-lang-zh-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ja-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-card-lang-ko-content-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-asset-list-width: 272px; + --system-asset-list-child-indicator-animation: var(--spectrum-animation-duration-100); + --system-asset-list-item-height: var(--spectrum-spacing-600); + --system-asset-list-item-padding-inline-start: var(--spectrum-spacing-300); + --system-asset-list-item-padding-inline-end: var(--spectrum-spacing-300); + --system-asset-list-item-margin-block-end: var(--spectrum-spacing-75); + --system-asset-list-item-border-radius: var(--spectrum-spacing-75); + --system-asset-list-item-animation: var(--spectrum-animation-duration-100); + --system-asset-list-item-font-size: var(--spectrum-font-size-100); + --system-asset-list-item-font-weight: var(--spectrum-regular-font-weight); + --system-asset-list-item-background-color-down: var(--spectrum-gray-300); + --system-asset-list-item-background-color-hover: var(--spectrum-gray-200); + --system-asset-list-thumbnail-width: var(--spectrum-spacing-400); + --system-asset-list-thumbnail-height: var(--spectrum-spacing-400); + --system-asset-list-thumbnail-margin-inline-start: var(--spectrum-spacing-100); + --system-asset-list-item-label-padding-inline-start: var(--spectrum-spacing-100); + --system-asset-list-label-color: var(--spectrum-neutral-content-color-default); + --system-avatar-color-opacity: 1; + --system-avatar-inline-size: var(--spectrum-avatar-size-100); + --system-avatar-block-size: var(--spectrum-avatar-size-100); + --system-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-avatar-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-avatar-color-opacity-disabled: var(--spectrum-avatar-opacity-disabled); + --system-avatar-size-50-inline-size: var(--spectrum-avatar-size-50); + --system-avatar-size-50-block-size: var(--spectrum-avatar-size-50); + --system-avatar-size-75-inline-size: var(--spectrum-avatar-size-75); + --system-avatar-size-75-block-size: var(--spectrum-avatar-size-75); + --system-avatar-size-100-inline-size: var(--spectrum-avatar-size-100); + --system-avatar-size-100-block-size: var(--spectrum-avatar-size-100); + --system-avatar-size-200-inline-size: var(--spectrum-avatar-size-200); + --system-avatar-size-200-block-size: var(--spectrum-avatar-size-200); + --system-avatar-size-300-inline-size: var(--spectrum-avatar-size-300); + --system-avatar-size-300-block-size: var(--spectrum-avatar-size-300); + --system-avatar-size-400-inline-size: var(--spectrum-avatar-size-400); + --system-avatar-size-400-block-size: var(--spectrum-avatar-size-400); + --system-avatar-size-500-inline-size: var(--spectrum-avatar-size-500); + --system-avatar-size-500-block-size: var(--spectrum-avatar-size-500); + --system-avatar-size-600-inline-size: var(--spectrum-avatar-size-600); + --system-avatar-size-600-block-size: var(--spectrum-avatar-size-600); + --system-avatar-size-700-inline-size: var(--spectrum-avatar-size-700); + --system-avatar-size-700-block-size: var(--spectrum-avatar-size-700); + --system-badge-corner-radius: var(--spectrum-corner-radius-100); + --system-badge-line-height: var(--spectrum-line-height-100); + --system-badge-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-badge-label-icon-color: var(--spectrum-white); + --system-badge-background-color-default: var(--spectrum-neutral-subdued-background-color-default); + --system-badge-background-color-accent: var(--spectrum-accent-background-color-default); + --system-badge-background-color-informative: var(--spectrum-informative-background-color-default); + --system-badge-background-color-negative: var(--spectrum-negative-background-color-default); + --system-badge-background-color-positive: var(--spectrum-positive-background-color-default); + --system-badge-background-color-notice: var(--spectrum-notice-background-color-default); + --system-badge-background-color-gray: var(--spectrum-gray-background-color-default); + --system-badge-background-color-red: var(--spectrum-red-background-color-default); + --system-badge-background-color-orange: var(--spectrum-orange-background-color-default); + --system-badge-background-color-yellow: var(--spectrum-yellow-background-color-default); + --system-badge-background-color-chartreuse: var(--spectrum-chartreuse-background-color-default); + --system-badge-background-color-celery: var(--spectrum-celery-background-color-default); + --system-badge-background-color-green: var(--spectrum-green-background-color-default); + --system-badge-background-color-seafoam: var(--spectrum-seafoam-background-color-default); + --system-badge-background-color-cyan: var(--spectrum-cyan-background-color-default); + --system-badge-background-color-blue: var(--spectrum-blue-background-color-default); + --system-badge-background-color-indigo: var(--spectrum-indigo-background-color-default); + --system-badge-background-color-purple: var(--spectrum-purple-background-color-default); + --system-badge-background-color-fuchsia: var(--spectrum-fuchsia-background-color-default); + --system-badge-background-color-magenta: var(--spectrum-magenta-background-color-default); + --system-badge-height: var(--spectrum-component-height-100); + --system-badge-font-size: var(--spectrum-font-size-100); + --system-badge-label-spacing-vertical-top: var(--spectrum-component-top-to-text-100); + --system-badge-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-100); + --system-badge-label-spacing-horizontal: var(--spectrum-component-edge-to-text-100); + --system-badge-workflow-icon-size: var(--spectrum-workflow-icon-size-100); + --system-badge-icon-text-spacing: var(--spectrum-text-to-visual-100); + --system-badge-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-100); + --system-badge-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); + --system-badge-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-100); + --system-badge-orange-label-icon-color: var(--spectrum-black); + --system-badge-yellow-label-icon-color: var(--spectrum-black); + --system-badge-chartreuse-label-icon-color: var(--spectrum-black); + --system-badge-celery-label-icon-color: var(--spectrum-black); + --system-badge-gray-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-red-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-green-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-seafoam-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-cyan-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-blue-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-indigo-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-purple-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-fuchsia-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-magenta-label-icon-color: var(--spectrum-badge-label-icon-color-primary); + --system-badge-size-s-height: var(--spectrum-component-height-75); + --system-badge-size-s-font-size: var(--spectrum-font-size-75); + --system-badge-size-s-label-spacing-vertical-top: var(--spectrum-component-top-to-text-75); + --system-badge-size-s-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-75); + --system-badge-size-s-label-spacing-horizontal: var(--spectrum-component-edge-to-text-75); + --system-badge-size-s-workflow-icon-size: var(--spectrum-workflow-icon-size-75); + --system-badge-size-s-icon-text-spacing: var(--spectrum-text-to-visual-75); + --system-badge-size-s-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-75); + --system-badge-size-s-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-75); + --system-badge-size-s-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-75); + --system-badge-size-l-height: var(--spectrum-component-height-100); + --system-badge-size-l-font-size: var(--spectrum-font-size-200); + --system-badge-size-l-label-spacing-vertical-top: var(--spectrum-component-top-to-text-200); + --system-badge-size-l-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-200); + --system-badge-size-l-label-spacing-horizontal: var(--spectrum-component-edge-to-text-200); + --system-badge-size-l-workflow-icon-size: var(--spectrum-workflow-icon-size-200); + --system-badge-size-l-icon-text-spacing: var(--spectrum-text-to-visual-200); + --system-badge-size-l-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-200); + --system-badge-size-l-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-200); + --system-badge-size-l-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-200); + --system-badge-size-xl-height: var(--spectrum-component-height-100); + --system-badge-size-xl-font-size: var(--spectrum-font-size-300); + --system-badge-size-xl-label-spacing-vertical-top: var(--spectrum-component-top-to-text-300); + --system-badge-size-xl-label-spacing-vertical-bottom: var(--spectrum-component-bottom-to-text-300); + --system-badge-size-xl-label-spacing-horizontal: var(--spectrum-component-edge-to-text-300); + --system-badge-size-xl-workflow-icon-size: var(--spectrum-workflow-icon-size-300); + --system-badge-size-xl-icon-text-spacing: var(--spectrum-text-to-visual-300); + --system-badge-size-xl-icon-spacing-horizontal: var(--spectrum-component-edge-to-visual-300); + --system-badge-size-xl-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-300); + --system-badge-size-xl-icon-only-spacing-horizontal: var(--spectrum-component-edge-to-visual-only-300); + --system-breadcrumbs-block-size: var(--spectrum-breadcrumbs-height); + --system-breadcrumbs-block-size-compact: var(--spectrum-breadcrumbs-height-compact); + --system-breadcrumbs-block-size-multiline: var(--spectrum-breadcrumbs-height-multiline); + --system-breadcrumbs-line-height: var(--spectrum-line-height-100); + --system-breadcrumbs-font-size: var(--spectrum-font-size-200); + --system-breadcrumbs-font-family: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-current: var(--spectrum-font-size-200); + --system-breadcrumbs-font-family-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-font-size-compact: var(--spectrum-font-size-100); + --system-breadcrumbs-font-family-compact: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-compact: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-compact-current: var(--spectrum-font-size-100); + --system-breadcrumbs-font-family-compact-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-compact-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-font-size-multiline: var(--spectrum-font-size-75); + --system-breadcrumbs-font-family-multiline: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-multiline: var(--spectrum-regular-font-weight); + --system-breadcrumbs-font-size-multiline-current: var(--spectrum-font-size-300); + --system-breadcrumbs-font-family-multiline-current: var(--spectrum-sans-font-family-stack); + --system-breadcrumbs-font-weight-multiline-current: var(--spectrum-bold-font-weight); + --system-breadcrumbs-text-decoration-thickness: var(--spectrum-text-underline-thickness); + --system-breadcrumbs-text-decoration-gap: var(--spectrum-text-underline-gap); + --system-breadcrumbs-separator-spacing-inline: var(--spectrum-text-to-visual-100); + --system-breadcrumbs-text-spacing-block-start: var(--spectrum-breadcrumbs-top-to-text); + --system-breadcrumbs-text-spacing-block-end: var(--spectrum-breadcrumbs-bottom-to-text); + --system-breadcrumbs-icon-spacing-block: var(--spectrum-breadcrumbs-top-to-separator-icon); + --system-breadcrumbs-text-spacing-block-start-compact: var(--spectrum-breadcrumbs-top-to-text-compact); + --system-breadcrumbs-text-spacing-block-end-compact: var(--spectrum-breadcrumbs-bottom-to-text-compact); + --system-breadcrumbs-icon-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-separator-icon-compact); + --system-breadcrumbs-text-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-text-multiline); + --system-breadcrumbs-text-spacing-block-end-multiline: var(--spectrum-breadcrumbs-bottom-to-text-multiline); + --system-breadcrumbs-text-spacing-block-between-multiline: var(--spectrum-breadcrumbs-top-text-to-bottom-text); + --system-breadcrumbs-icon-spacing-block-start-multiline: var(--spectrum-breadcrumbs-top-to-separator-icon-multiline); + --system-breadcrumbs-icon-spacing-block-between-multiline: var(--spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline); + --system-breadcrumbs-inline-start: var(--spectrum-breadcrumbs-start-edge-to-text); + --system-breadcrumbs-inline-end: var(--spectrum-breadcrumbs-end-edge-to-text); + --system-breadcrumbs-action-button-spacing-inline: var(--spectrum-breadcrumbs-truncated-menu-to-separator-icon); + --system-breadcrumbs-action-button-spacing-block: var(--spectrum-breadcrumbs-top-to-truncated-menu); + --system-breadcrumbs-action-button-spacing-block-compact: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); + --system-breadcrumbs-action-button-spacing-inline-start: var(--spectrum-breadcrumbs-start-edge-to-truncated-menu); + --system-breadcrumbs-action-button-spacing-block-multiline: var(--spectrum-breadcrumbs-top-to-truncated-menu-compact); + --system-breadcrumbs-action-button-spacing-block-between-multiline: var(--spectrum-breadcrumbs-truncated-menu-to-bottom-text); + --system-breadcrumbs-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-breadcrumbs-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-breadcrumbs-item-link-border-radius: var(--spectrum-corner-radius-100); + --system-breadcrumbs-text-color: var(--spectrum-neutral-subdued-content-color-default); + --system-breadcrumbs-text-color-current: var(--spectrum-neutral-content-color-default); + --system-breadcrumbs-text-color-disabled: var(--spectrum-disabled-content-color); + --system-breadcrumbs-separator-color: var(--spectrum-neutral-content-color-default); + --system-breadcrumbs-action-button-color: var(--spectrum-neutral-subdued-content-color-default); + --system-breadcrumbs-action-button-color-disabled: var(--spectrum-disabled-content-color); + --system-breadcrumbs-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-button-animation-duration: var(--spectrum-animation-duration-100); + --system-button-border-radius: var(--spectrum-corner-radius-100); + --system-button-border-width: var(--spectrum-border-width-200); + --system-button-line-height: 1.2; + --system-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-button-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); + --system-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-button-intended-icon-size: var(--spectrum-workflow-icon-size-50); + --system-button-background-color-default: var(--spectrum-gray-200); + --system-button-background-color-hover: var(--spectrum-gray-300); + --system-button-background-color-down: var(--spectrum-gray-400); + --system-button-background-color-focus: var(--spectrum-gray-300); + --system-button-border-color-default: transparent; + --system-button-border-color-hover: transparent; + --system-button-border-color-down: transparent; + --system-button-border-color-focus: transparent; + --system-button-content-color-default: var(--spectrum-neutral-content-color-default); + --system-button-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-button-content-color-down: var(--spectrum-neutral-content-color-down); + --system-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-button-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-border-color-disabled: transparent; + --system-button-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-accent-background-color-default: var(--spectrum-accent-background-color-default); + --system-button-accent-background-color-hover: var(--spectrum-accent-background-color-hover); + --system-button-accent-background-color-down: var(--spectrum-accent-background-color-down); + --system-button-accent-background-color-focus: var(--spectrum-accent-background-color-key-focus); + --system-button-accent-border-color-default: transparent; + --system-button-accent-border-color-hover: transparent; + --system-button-accent-border-color-down: transparent; + --system-button-accent-border-color-focus: transparent; + --system-button-accent-content-color-default: var(--spectrum-white); + --system-button-accent-content-color-hover: var(--spectrum-white); + --system-button-accent-content-color-down: var(--spectrum-white); + --system-button-accent-content-color-focus: var(--spectrum-white); + --system-button-accent-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-accent-border-color-disabled: transparent; + --system-button-accent-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-accent-outline-background-color-default: transparent; + --system-button-accent-outline-background-color-hover: var(--spectrum-accent-color-200); + --system-button-accent-outline-background-color-down: var(--spectrum-accent-color-300); + --system-button-accent-outline-background-color-focus: var(--spectrum-accent-color-200); + --system-button-accent-outline-border-color-default: var(--spectrum-accent-color-900); + --system-button-accent-outline-border-color-hover: var(--spectrum-accent-color-1000); + --system-button-accent-outline-border-color-down: var(--spectrum-accent-color-1100); + --system-button-accent-outline-border-color-focus: var(--spectrum-accent-color-1000); + --system-button-accent-outline-content-color-default: var(--spectrum-accent-content-color-default); + --system-button-accent-outline-content-color-hover: var(--spectrum-accent-content-color-hover); + --system-button-accent-outline-content-color-down: var(--spectrum-accent-content-color-down); + --system-button-accent-outline-content-color-focus: var(--spectrum-accent-content-color-key-focus); + --system-button-accent-outline-background-color-disabled: transparent; + --system-button-accent-outline-border-color-disabled: var(--spectrum-disabled-border-color); + --system-button-accent-outline-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-negative-background-color-default: var(--spectrum-negative-background-color-default); + --system-button-negative-background-color-hover: var(--spectrum-negative-background-color-hover); + --system-button-negative-background-color-down: var(--spectrum-negative-background-color-down); + --system-button-negative-background-color-focus: var(--spectrum-negative-background-color-key-focus); + --system-button-negative-border-color-default: transparent; + --system-button-negative-border-color-hover: transparent; + --system-button-negative-border-color-down: transparent; + --system-button-negative-border-color-focus: transparent; + --system-button-negative-content-color-default: var(--spectrum-white); + --system-button-negative-content-color-hover: var(--spectrum-white); + --system-button-negative-content-color-down: var(--spectrum-white); + --system-button-negative-content-color-focus: var(--spectrum-white); + --system-button-negative-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-negative-border-color-disabled: transparent; + --system-button-negative-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-negative-outline-background-color-default: transparent; + --system-button-negative-outline-background-color-hover: var(--spectrum-negative-color-200); + --system-button-negative-outline-background-color-down: var(--spectrum-negative-color-300); + --system-button-negative-outline-background-color-focus: var(--spectrum-negative-color-200); + --system-button-negative-outline-border-color-default: var(--spectrum-negative-color-900); + --system-button-negative-outline-border-color-hover: var(--spectrum-negative-color-1000); + --system-button-negative-outline-border-color-down: var(--spectrum-negative-color-1100); + --system-button-negative-outline-border-color-focus: var(--spectrum-negative-color-1000); + --system-button-negative-outline-content-color-default: var(--spectrum-negative-content-color-default); + --system-button-negative-outline-content-color-hover: var(--spectrum-negative-content-color-hover); + --system-button-negative-outline-content-color-down: var(--spectrum-negative-content-color-down); + --system-button-negative-outline-content-color-focus: var(--spectrum-negative-content-color-key-focus); + --system-button-negative-outline-background-color-disabled: transparent; + --system-button-negative-outline-border-color-disabled: var(--spectrum-disabled-border-color); + --system-button-negative-outline-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-primary-background-color-default: var(--spectrum-neutral-background-color-default); + --system-button-primary-background-color-hover: var(--spectrum-neutral-background-color-hover); + --system-button-primary-background-color-down: var(--spectrum-neutral-background-color-down); + --system-button-primary-background-color-focus: var(--spectrum-neutral-background-color-key-focus); + --system-button-primary-border-color-default: transparent; + --system-button-primary-border-color-hover: transparent; + --system-button-primary-border-color-down: transparent; + --system-button-primary-border-color-focus: transparent; + --system-button-primary-content-color-default: var(--spectrum-white); + --system-button-primary-content-color-hover: var(--spectrum-white); + --system-button-primary-content-color-down: var(--spectrum-white); + --system-button-primary-content-color-focus: var(--spectrum-white); + --system-button-primary-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-primary-border-color-disabled: transparent; + --system-button-primary-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-primary-outline-background-color-default: transparent; + --system-button-primary-outline-background-color-hover: var(--spectrum-gray-300); + --system-button-primary-outline-background-color-down: var(--spectrum-gray-400); + --system-button-primary-outline-background-color-focus: var(--spectrum-gray-300); + --system-button-primary-outline-border-color-default: var(--spectrum-gray-800); + --system-button-primary-outline-border-color-hover: var(--spectrum-gray-900); + --system-button-primary-outline-border-color-down: var(--spectrum-gray-900); + --system-button-primary-outline-border-color-focus: var(--spectrum-gray-900); + --system-button-primary-outline-content-color-default: var(--spectrum-neutral-content-color-default); + --system-button-primary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-button-primary-outline-content-color-down: var(--spectrum-neutral-content-color-down); + --system-button-primary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-button-primary-outline-background-color-disabled: transparent; + --system-button-primary-outline-border-color-disabled: var(--spectrum-disabled-border-color); + --system-button-primary-outline-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-secondary-background-color-default: var(--spectrum-gray-200); + --system-button-secondary-background-color-hover: var(--spectrum-gray-300); + --system-button-secondary-background-color-down: var(--spectrum-gray-400); + --system-button-secondary-background-color-focus: var(--spectrum-gray-300); + --system-button-secondary-border-color-default: transparent; + --system-button-secondary-border-color-hover: transparent; + --system-button-secondary-border-color-down: transparent; + --system-button-secondary-border-color-focus: transparent; + --system-button-secondary-content-color-default: var(--spectrum-neutral-content-color-default); + --system-button-secondary-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-button-secondary-content-color-down: var(--spectrum-neutral-content-color-down); + --system-button-secondary-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-button-secondary-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-secondary-border-color-disabled: transparent; + --system-button-secondary-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-secondary-outline-background-color-default: transparent; + --system-button-secondary-outline-background-color-hover: var(--spectrum-gray-300); + --system-button-secondary-outline-background-color-down: var(--spectrum-gray-400); + --system-button-secondary-outline-background-color-focus: var(--spectrum-gray-300); + --system-button-secondary-outline-border-color-default: var(--spectrum-gray-300); + --system-button-secondary-outline-border-color-hover: var(--spectrum-gray-400); + --system-button-secondary-outline-border-color-down: var(--spectrum-gray-500); + --system-button-secondary-outline-border-color-focus: var(--spectrum-gray-400); + --system-button-secondary-outline-content-color-default: var(--spectrum-neutral-content-color-default); + --system-button-secondary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-button-secondary-outline-content-color-down: var(--spectrum-neutral-content-color-down); + --system-button-secondary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-button-secondary-outline-background-color-disabled: transparent; + --system-button-secondary-outline-border-color-disabled: var(--spectrum-disabled-border-color); + --system-button-secondary-outline-content-color-disabled: var(--spectrum-disabled-content-color); + --system-button-quiet-background-color-default: transparent; + --system-button-quiet-background-color-hover: var(--spectrum-gray-100); + --system-button-quiet-background-color-down: var(--spectrum-gray-200); + --system-button-quiet-background-color-focus: var(--spectrum-gray-100); + --system-button-quiet-border-color-default: transparent; + --system-button-quiet-border-color-hover: transparent; + --system-button-quiet-border-color-down: transparent; + --system-button-quiet-border-color-focus: transparent; + --system-button-quiet-background-color-disabled: transparent; + --system-button-quiet-border-color-disabled: transparent; + --system-button-selected-background-color-default: var(--spectrum-neutral-background-color-default); + --system-button-selected-background-color-hover: var(--spectrum-neutral-background-color-hover); + --system-button-selected-background-color-down: var(--spectrum-neutral-background-color-down); + --system-button-selected-background-color-focus: var(--spectrum-neutral-background-color-key-focus); + --system-button-selected-border-color-default: transparent; + --system-button-selected-border-color-hover: transparent; + --system-button-selected-border-color-down: transparent; + --system-button-selected-border-color-focus: transparent; + --system-button-selected-content-color-default: var(--spectrum-white); + --system-button-selected-content-color-hover: var(--spectrum-white); + --system-button-selected-content-color-down: var(--spectrum-white); + --system-button-selected-content-color-focus: var(--spectrum-white); + --system-button-selected-background-color-disabled: var(--spectrum-disabled-background-color); + --system-button-selected-border-color-disabled: transparent; + --system-button-selected-emphasized-background-color-default: var(--spectrum-accent-background-color-default); + --system-button-selected-emphasized-background-color-hover: var(--spectrum-accent-background-color-hover); + --system-button-selected-emphasized-background-color-down: var(--spectrum-accent-background-color-down); + --system-button-selected-emphasized-background-color-focus: var(--spectrum-accent-background-color-key-focus); + --system-button-static-black-quiet-border-color-default: transparent; + --system-button-static-white-quiet-border-color-default: transparent; + --system-button-static-black-quiet-border-color-hover: transparent; + --system-button-static-white-quiet-border-color-hover: transparent; + --system-button-static-black-quiet-border-color-down: transparent; + --system-button-static-white-quiet-border-color-down: transparent; + --system-button-static-black-quiet-border-color-focus: transparent; + --system-button-static-white-quiet-border-color-focus: transparent; + --system-button-static-black-quiet-border-color-disabled: transparent; + --system-button-static-white-quiet-border-color-disabled: transparent; + --system-button-static-white-background-color-default: var(--spectrum-transparent-white-800); + --system-button-static-white-background-color-hover: var(--spectrum-transparent-white-900); + --system-button-static-white-background-color-down: var(--spectrum-transparent-white-900); + --system-button-static-white-background-color-focus: var(--spectrum-transparent-white-900); + --system-button-static-white-border-color-default: transparent; + --system-button-static-white-border-color-hover: transparent; + --system-button-static-white-border-color-down: transparent; + --system-button-static-white-border-color-focus: transparent; + --system-button-static-white-content-color-default: var(--spectrum-black); + --system-button-static-white-content-color-hover: var(--spectrum-black); + --system-button-static-white-content-color-down: var(--spectrum-black); + --system-button-static-white-content-color-focus: var(--spectrum-black); + --system-button-static-white-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-button-static-white-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + --system-button-static-white-border-color-disabled: transparent; + --system-button-static-white-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-button-static-white-outline-background-color-default: transparent; + --system-button-static-white-outline-background-color-hover: var(--spectrum-transparent-white-300); + --system-button-static-white-outline-background-color-down: var(--spectrum-transparent-white-400); + --system-button-static-white-outline-background-color-focus: var(--spectrum-transparent-white-300); + --system-button-static-white-outline-border-color-default: var(--spectrum-transparent-white-800); + --system-button-static-white-outline-border-color-hover: var(--spectrum-transparent-white-900); + --system-button-static-white-outline-border-color-down: var(--spectrum-transparent-white-900); + --system-button-static-white-outline-border-color-focus: var(--spectrum-transparent-white-900); + --system-button-static-white-outline-content-color-default: var(--spectrum-white); + --system-button-static-white-outline-content-color-hover: var(--spectrum-white); + --system-button-static-white-outline-content-color-down: var(--spectrum-white); + --system-button-static-white-outline-content-color-focus: var(--spectrum-white); + --system-button-static-white-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-button-static-white-outline-background-color-disabled: transparent; + --system-button-static-white-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --system-button-static-white-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-button-static-white-selected-background-color-default: var(--spectrum-transparent-white-800); + --system-button-static-white-selected-background-color-hover: var(--spectrum-transparent-white-900); + --system-button-static-white-selected-background-color-down: var(--spectrum-transparent-white-900); + --system-button-static-white-selected-background-color-focus: var(--spectrum-transparent-white-900); + --system-button-static-white-selected-static-white-content-color-default: var(--spectrum-black); + --system-button-static-white-selected-static-white-content-color-hover: var(--spectrum-black); + --system-button-static-white-selected-static-white-content-color-down: var(--spectrum-black); + --system-button-static-white-selected-static-white-content-color-focus: var(--spectrum-black); + --system-button-static-white-selected-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + --system-button-static-white-selected-border-color-disabled: transparent; + --system-button-static-white-secondary-background-color-default: var(--spectrum-transparent-white-200); + --system-button-static-white-secondary-background-color-hover: var(--spectrum-transparent-white-300); + --system-button-static-white-secondary-background-color-down: var(--spectrum-transparent-white-400); + --system-button-static-white-secondary-background-color-focus: var(--spectrum-transparent-white-300); + --system-button-static-white-secondary-border-color-default: transparent; + --system-button-static-white-secondary-border-color-hover: transparent; + --system-button-static-white-secondary-border-color-down: transparent; + --system-button-static-white-secondary-border-color-focus: transparent; + --system-button-static-white-secondary-content-color-default: var(--spectrum-white); + --system-button-static-white-secondary-content-color-hover: var(--spectrum-white); + --system-button-static-white-secondary-content-color-down: var(--spectrum-white); + --system-button-static-white-secondary-content-color-focus: var(--spectrum-white); + --system-button-static-white-secondary-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-button-static-white-secondary-background-color-disabled: var(--spectrum-disabled-static-white-background-color); + --system-button-static-white-secondary-border-color-disabled: transparent; + --system-button-static-white-secondary-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-button-static-white-secondary-outline-background-color-default: transparent; + --system-button-static-white-secondary-outline-background-color-hover: var(--spectrum-transparent-white-300); + --system-button-static-white-secondary-outline-background-color-down: var(--spectrum-transparent-white-400); + --system-button-static-white-secondary-outline-background-color-focus: var(--spectrum-transparent-white-300); + --system-button-static-white-secondary-outline-border-color-default: var(--spectrum-transparent-white-300); + --system-button-static-white-secondary-outline-border-color-hover: var(--spectrum-transparent-white-400); + --system-button-static-white-secondary-outline-border-color-down: var(--spectrum-transparent-white-500); + --system-button-static-white-secondary-outline-border-color-focus: var(--spectrum-transparent-white-400); + --system-button-static-white-secondary-outline-content-color-default: var(--spectrum-white); + --system-button-static-white-secondary-outline-content-color-hover: var(--spectrum-white); + --system-button-static-white-secondary-outline-content-color-down: var(--spectrum-white); + --system-button-static-white-secondary-outline-content-color-focus: var(--spectrum-white); + --system-button-static-white-secondary-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-button-static-white-secondary-outline-background-color-disabled: transparent; + --system-button-static-white-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); + --system-button-static-white-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-button-static-black-background-color-default: var(--spectrum-transparent-black-800); + --system-button-static-black-background-color-hover: var(--spectrum-transparent-black-900); + --system-button-static-black-background-color-down: var(--spectrum-transparent-black-900); + --system-button-static-black-background-color-focus: var(--spectrum-transparent-black-900); + --system-button-static-black-border-color-default: transparent; + --system-button-static-black-border-color-hover: transparent; + --system-button-static-black-border-color-down: transparent; + --system-button-static-black-border-color-focus: transparent; + --system-button-static-black-content-color-default: var(--spectrum-white); + --system-button-static-black-content-color-hover: var(--spectrum-white); + --system-button-static-black-content-color-down: var(--spectrum-white); + --system-button-static-black-content-color-focus: var(--spectrum-white); + --system-button-static-black-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-button-static-black-background-color-disabled: var(--spectrum-disabled-static-black-background-color); + --system-button-static-black-border-color-disabled: transparent; + --system-button-static-black-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-button-static-black-outline-background-color-default: transparent; + --system-button-static-black-outline-background-color-hover: var(--spectrum-transparent-black-300); + --system-button-static-black-outline-background-color-down: var(--spectrum-transparent-black-400); + --system-button-static-black-outline-background-color-focus: var(--spectrum-transparent-black-300); + --system-button-static-black-outline-border-color-default: var(--spectrum-transparent-black-400); + --system-button-static-black-outline-border-color-hover: var(--spectrum-transparent-black-500); + --system-button-static-black-outline-border-color-down: var(--spectrum-transparent-black-600); + --system-button-static-black-outline-border-color-focus: var(--spectrum-transparent-black-500); + --system-button-static-black-outline-content-color-default: var(--spectrum-black); + --system-button-static-black-outline-content-color-hover: var(--spectrum-black); + --system-button-static-black-outline-content-color-down: var(--spectrum-black); + --system-button-static-black-outline-content-color-focus: var(--spectrum-black); + --system-button-static-black-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-button-static-black-outline-background-color-disabled: transparent; + --system-button-static-black-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --system-button-static-black-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-button-static-black-secondary-background-color-default: var(--spectrum-transparent-black-200); + --system-button-static-black-secondary-background-color-hover: var(--spectrum-transparent-black-300); + --system-button-static-black-secondary-background-color-down: var(--spectrum-transparent-black-400); + --system-button-static-black-secondary-background-color-focus: var(--spectrum-transparent-black-300); + --system-button-static-black-secondary-border-color-default: transparent; + --system-button-static-black-secondary-border-color-hover: transparent; + --system-button-static-black-secondary-border-color-down: transparent; + --system-button-static-black-secondary-border-color-focus: transparent; + --system-button-static-black-secondary-content-color-default: var(--spectrum-black); + --system-button-static-black-secondary-content-color-hover: var(--spectrum-black); + --system-button-static-black-secondary-content-color-down: var(--spectrum-black); + --system-button-static-black-secondary-content-color-focus: var(--spectrum-black); + --system-button-static-black-secondary-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-button-static-black-secondary-background-color-disabled: var(--spectrum-disabled-static-black-background-color); + --system-button-static-black-secondary-border-color-disabled: transparent; + --system-button-static-black-secondary-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-button-static-black-secondary-outline-background-color-default: transparent; + --system-button-static-black-secondary-outline-background-color-hover: var(--spectrum-transparent-black-300); + --system-button-static-black-secondary-outline-background-color-down: var(--spectrum-transparent-black-400); + --system-button-static-black-secondary-outline-background-color-focus: var(--spectrum-transparent-black-300); + --system-button-static-black-secondary-outline-border-color-default: var(--spectrum-transparent-black-300); + --system-button-static-black-secondary-outline-border-color-hover: var(--spectrum-transparent-black-400); + --system-button-static-black-secondary-outline-border-color-down: var(--spectrum-transparent-black-500); + --system-button-static-black-secondary-outline-border-color-focus: var(--spectrum-transparent-black-400); + --system-button-static-black-secondary-outline-content-color-default: var(--spectrum-black); + --system-button-static-black-secondary-outline-content-color-hover: var(--spectrum-black); + --system-button-static-black-secondary-outline-content-color-down: var(--spectrum-black); + --system-button-static-black-secondary-outline-content-color-focus: var(--spectrum-black); + --system-button-static-black-secondary-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-button-static-black-secondary-outline-background-color-disabled: transparent; + --system-button-static-black-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); + --system-button-static-black-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-button-size-s-min-width: calc(var(--spectrum-component-height-75) * var(--spectrum-button-minimum-width-multiplier)); + --system-button-size-s-border-radius: var(--spectrum-component-pill-edge-to-text-75); + --system-button-size-s-height: var(--spectrum-component-height-75); + --system-button-size-s-font-size: var(--spectrum-font-size-75); + --system-button-size-s-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-75) - var(--system-button-border-width)); + --system-button-size-s-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-75); + --system-button-size-s-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-75) - var(--system-button-border-width)); + --system-button-size-s-padding-label-to-icon: var(--spectrum-text-to-visual-75); + --system-button-size-s-top-to-text: var(--spectrum-button-top-to-text-small); + --system-button-size-s-bottom-to-text: var(--spectrum-button-bottom-to-text-small); + --system-button-size-s-top-to-icon: var(--spectrum-component-top-to-workflow-icon-75); + --system-button-size-s-intended-icon-size: var(--spectrum-workflow-icon-size-75); + --system-button-size-m-min-width: calc(var(--spectrum-component-height-100) * var(--spectrum-button-minimum-width-multiplier)); + --system-button-size-m-border-radius: var(--spectrum-component-pill-edge-to-text-100); + --system-button-size-m-height: var(--spectrum-component-height-100); + --system-button-size-m-font-size: var(--spectrum-font-size-100); + --system-button-size-m-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-100) - var(--system-button-border-width)); + --system-button-size-m-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-100); + --system-button-size-m-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-100) - var(--system-button-border-width)); + --system-button-size-m-padding-label-to-icon: var(--spectrum-text-to-visual-100); + --system-button-size-m-top-to-text: var(--spectrum-button-top-to-text-medium); + --system-button-size-m-bottom-to-text: var(--spectrum-button-bottom-to-text-medium); + --system-button-size-m-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); + --system-button-size-m-intended-icon-size: var(--spectrum-workflow-icon-size-100); + --system-button-size-l-min-width: calc(var(--spectrum-component-height-200) * var(--spectrum-button-minimum-width-multiplier)); + --system-button-size-l-border-radius: var(--spectrum-component-pill-edge-to-text-200); + --system-button-size-l-height: var(--spectrum-component-height-200); + --system-button-size-l-font-size: var(--spectrum-font-size-200); + --system-button-size-l-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-200) - var(--system-button-border-width)); + --system-button-size-l-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-200); + --system-button-size-l-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-200) - var(--system-button-border-width)); + --system-button-size-l-padding-label-to-icon: var(--spectrum-text-to-visual-200); + --system-button-size-l-top-to-text: var(--spectrum-button-top-to-text-large); + --system-button-size-l-bottom-to-text: var(--spectrum-button-bottom-to-text-large); + --system-button-size-l-top-to-icon: var(--spectrum-component-top-to-workflow-icon-200); + --system-button-size-l-intended-icon-size: var(--spectrum-workflow-icon-size-200); + --system-button-size-xl-min-width: calc(var(--spectrum-component-height-300) * var(--spectrum-button-minimum-width-multiplier)); + --system-button-size-xl-border-radius: var(--spectrum-component-pill-edge-to-text-300); + --system-button-size-xl-height: var(--spectrum-component-height-300); + --system-button-size-xl-font-size: var(--spectrum-font-size-300); + --system-button-size-xl-edge-to-visual: calc(var(--spectrum-component-pill-edge-to-visual-300) - var(--system-button-border-width)); + --system-button-size-xl-edge-to-visual-only: var(--spectrum-component-pill-edge-to-visual-only-300); + --system-button-size-xl-edge-to-text: calc(var(--spectrum-component-pill-edge-to-text-300) - var(--system-button-border-width)); + --system-button-size-xl-padding-label-to-icon: var(--spectrum-text-to-visual-300); + --system-button-size-xl-top-to-text: var(--spectrum-button-top-to-text-extra-large); + --system-button-size-xl-bottom-to-text: var(--spectrum-button-bottom-to-text-extra-large); + --system-button-size-xl-top-to-icon: var(--spectrum-component-top-to-workflow-icon-300); + --system-button-size-xl-intended-icon-size: var(--spectrum-workflow-icon-size-300); + --system-button-group-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-s-spacing-horizontal: var(--spectrum-spacing-200); + --system-button-group-size-s-spacing-vertical: var(--spectrum-spacing-200); + --system-button-group-size-m-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-m-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-l-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-l-spacing-vertical: var(--spectrum-spacing-300); + --system-button-group-size-xl-spacing-horizontal: var(--spectrum-spacing-300); + --system-button-group-size-xl-spacing-vertical: var(--spectrum-spacing-300); + --system-calendar-day-width: var(--spectrum-component-height-100); + --system-calendar-day-height: var(--spectrum-component-height-100); + --system-calendar-border-radius-reset: 0; + --system-calendar-border-width-reset: 0; + --system-calendar-day-border-size: var(--spectrum-border-width-200); + --system-calendar-margin-y: 24px; + --system-calendar-margin-x: 32px; + --system-calendar-day-padding: 4px; + --system-calendar-width: calc((var(--system-calendar-day-width) + var(--system-calendar-day-padding) * 2) * 7); + --system-calendar-title-text-letter-spacing: 0.06em; + --system-calendar-title-height: 32px; + --system-calendar-title-text-size: var(--spectrum-font-size-300); + --system-calendar-day-title-text-font-weight: var(--spectrum-bold-font-weight); + --system-calendar-day-title-text-color: var(--spectrum-gray-700); + --system-calendar-day-title-text-size: var(--spectrum-font-size-50); + --system-calendar-day-text-size-han: var(--spectrum-font-size-50); + --system-calendar-day-text-size: var(--spectrum-font-size-100); + --system-calendar-day-text-color-selected: var(--spectrum-gray-900); + --system-calendar-day-text-color-hover: var(--spectrum-gray-900); + --system-calendar-day-text-color-cap-selected: var(--spectrum-gray-900); + --system-calendar-day-text-font-weight-selected: var(--spectrum-bold-font-weight); + --system-calendar-day-text-font-weight-cap-selected: var(--spectrum-bold-font-weight); + --system-calendar-day-today-text-color: var(--spectrum-gray-800); + --system-calendar-day-today-text-font-weight: var(--spectrum-bold-font-weight); + --system-calendar-day-today-border-color: var(--spectrum-gray-800); + --system-calendar-day-today-text-color-disabled: var(--spectrum-gray-500); + --system-calendar-day-today-border-color-disabled: var(--spectrum-gray-400); + --system-calendar-day-text-color-disabled: var(--spectrum-disabled-content-color); + --system-calendar-day-text-color-key-focus: var(--spectrum-gray-900); + --system-calendar-button-icon-color: var(--spectrum-gray-700); + --system-card-background-color: var(--spectrum-background-layer-2-color); + --system-card-body-spacing: var(--spectrum-spacing-400); + --system-card-title-padding-top: var(--spectrum-spacing-300); + --system-card-title-padding-right: var(--spectrum-spacing-400); + --system-card-content-margin-top: var(--spectrum-spacing-100); + --system-card-content-margin-bottom: var(--spectrum-spacing-300); + --system-card-footer-padding-top: var(--spectrum-spacing-100); + --system-card-subtitle-padding-right: var(--spectrum-spacing-100); + --system-card-border-width: var(--spectrum-border-width-100); + --system-card-corner-radius: var(--spectrum-corner-radius-100); + --system-card-border-color: var(--spectrum-gray-200); + --system-card-border-color-hover: var(--spectrum-gray-300); + --system-card-border-color-selected: var(--spectrum-blue-700); + --system-card-divider-color: var(--spectrum-gray-300); + --system-card-title-font-family: var(--spectrum-sans-font-family-stack); + --system-card-title-font-size: var(--spectrum-heading-size-xxs); + --system-card-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-card-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-card-title-line-height: var(--spectrum-heading-line-height); + --system-card-title-font-color: var(--spectrum-heading-color); + --system-card-body-font-family: var(--spectrum-sans-font-family-stack); + --system-card-body-font-size: var(--spectrum-body-size-s); + --system-card-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-card-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-card-body-line-height: var(--spectrum-body-line-height); + --system-card-body-font-color: var(--spectrum-body-color); + --system-card-actions-spacing: var(--spectrum-spacing-300); + --system-card-actions-size: var(--spectrum-card-selection-background-size); + --system-card-actions-border-radius: var(--spectrum-corner-radius-100); + --system-card-actions-background-color-rgb: var(--spectrum-gray-100-rgb); + --system-card-actions-background-color-opacity: var(--spectrum-card-selection-background-color-opacity); + --system-card-actions-drop-shadow-color: var(--spectrum-drop-shadow-color); + --system-card-actions-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-card-actions-drop-shadow-y: var(--spectrum-drop-shadow-y); + --system-card-actions-drop-shadow-blur: var(--spectrum-drop-shadow-blur); + --system-card-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-card-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-card-selected-background-opacity: 0.1; + --system-card-preview-border-width-selected: var(--spectrum-border-width-100); + --system-card-preview-background-color: var(--spectrum-background-base-color); + --system-card-preview-background-color-hover: var(--spectrum-gray-300); + --system-card-horizontal-body-padding: var(--spectrum-spacing-300); + --system-card-horizontal-preview-padding: var(--spectrum-spacing-200); + --system-card-content-margin-top-quiet: var(--spectrum-spacing-100); + --system-card-minimum-width-quiet: var(--spectrum-card-minimum-width); + --system-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); + --system-card-dark-selected-background-color-rgb: var(--spectrum-blue-500-rgb); + --system-card-darkest-selected-background-color-rgb: var(--spectrum-blue-600-rgb); + --system-checkbox-control-color-default: var(--spectrum-gray-800); + --system-checkbox-control-color-hover: var(--spectrum-gray-900); + --system-checkbox-control-color-down: var(--spectrum-gray-900); + --system-checkbox-control-color-focus: var(--spectrum-gray-900); + --system-checkbox-content-color-default: var(--spectrum-neutral-content-color-default); + --system-checkbox-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-checkbox-content-color-down: var(--spectrum-neutral-content-color-down); + --system-checkbox-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-checkbox-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-checkbox-content-color-disabled: var(--spectrum-disabled-content-color); + --system-checkbox-control-color-disabled: var(--spectrum-disabled-content-color); + --system-checkbox-checkmark-color: var(--spectrum-gray-75); + --system-checkbox-invalid-color-default: var(--spectrum-negative-color-900); + --system-checkbox-invalid-color-hover: var(--spectrum-negative-color-1000); + --system-checkbox-invalid-color-down: var(--spectrum-negative-color-1100); + --system-checkbox-invalid-color-focus: var(--spectrum-negative-color-1000); + --system-checkbox-emphasized-color-default: var(--spectrum-accent-color-900); + --system-checkbox-emphasized-color-hover: var(--spectrum-accent-color-1000); + --system-checkbox-emphasized-color-down: var(--spectrum-accent-color-1100); + --system-checkbox-emphasized-color-focus: var(--spectrum-accent-color-1000); + --system-checkbox-control-selected-color-default: var(--spectrum-neutral-background-color-selected-default); + --system-checkbox-control-selected-color-hover: var(--spectrum-neutral-background-color-selected-hover); + --system-checkbox-control-selected-color-down: var(--spectrum-neutral-background-color-selected-down); + --system-checkbox-control-selected-color-focus: var(--spectrum-neutral-background-color-selected-key-focus); + --system-checkbox-line-height: var(--spectrum-line-height-100); + --system-checkbox-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-checkbox-control-corner-radius: var(--spectrum-corner-radius-75); + --system-checkbox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-checkbox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-checkbox-border-width: var(--spectrum-border-width-200); + --system-checkbox-animation-duration: var(--spectrum-animation-duration-100); + --system-checkbox-size-s-font-size: var(--spectrum-font-size-75); + --system-checkbox-size-s-height: var(--spectrum-component-height-75); + --system-checkbox-size-s-control-size: var(--spectrum-checkbox-control-size-small); + --system-checkbox-size-s-top-to-text: var(--spectrum-component-top-to-text-75); + --system-checkbox-size-s-text-to-control: var(--spectrum-text-to-control-75); + --system-checkbox-font-size: var(--spectrum-font-size-100); + --system-checkbox-size-m-font-size: var(--spectrum-font-size-100); + --system-checkbox-height: var(--spectrum-component-height-100); + --system-checkbox-size-m-height: var(--spectrum-component-height-100); + --system-checkbox-control-size: var(--spectrum-checkbox-control-size-medium); + --system-checkbox-size-m-control-size: var(--spectrum-checkbox-control-size-medium); + --system-checkbox-top-to-text: var(--spectrum-component-top-to-text-100); + --system-checkbox-size-m-top-to-text: var(--spectrum-component-top-to-text-100); + --system-checkbox-text-to-control: var(--spectrum-text-to-control-100); + --system-checkbox-size-m-text-to-control: var(--spectrum-text-to-control-100); + --system-checkbox-size-l-font-size: var(--spectrum-font-size-200); + --system-checkbox-size-l-height: var(--spectrum-component-height-200); + --system-checkbox-size-l-control-size: var(--spectrum-checkbox-control-size-large); + --system-checkbox-size-l-top-to-text: var(--spectrum-component-top-to-text-200); + --system-checkbox-size-l-text-to-control: var(--spectrum-text-to-control-200); + --system-checkbox-size-xl-font-size: var(--spectrum-font-size-300); + --system-checkbox-size-xl-height: var(--spectrum-component-height-300); + --system-checkbox-size-xl-control-size: var(--spectrum-checkbox-control-size-extra-large); + --system-checkbox-size-xl-top-to-text: var(--spectrum-component-top-to-text-300); + --system-checkbox-size-xl-text-to-control: var(--spectrum-text-to-control-300); + --system-clear-button-background-color: var(--spectrum-gray-200); + --system-clear-button-background-color-hover: var(--spectrum-gray-300); + --system-clear-button-background-color-down: var(--spectrum-gray-400); + --system-clear-button-background-color-key-focus: var(--spectrum-gray-300); + --system-clear-button-height: var(--spectrum-component-height-100); + --system-clear-button-width: var(--spectrum-component-height-100); + --system-clear-button-padding: var(--spectrum-in-field-button-edge-to-fill); + --system-clear-button-icon-color: var(--spectrum-neutral-content-color-default); + --system-clear-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-clear-button-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-clear-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-clear-button-size-s-height: var(--spectrum-component-height-75); + --system-clear-button-size-s-width: var(--spectrum-component-height-75); + --system-clear-button-size-l-height: var(--spectrum-component-height-200); + --system-clear-button-size-l-width: var(--spectrum-component-height-200); + --system-clear-button-size-xl-height: var(--spectrum-component-height-300); + --system-clear-button-size-xl-width: var(--spectrum-component-height-300); + --system-clear-button-quiet-background-color: var(--spectrum-clear-button-background-color-quiet, transparent); + --system-clear-button-quiet-background-color-hover: var(--spectrum-clear-button-background-color-hover-quiet, transparent); + --system-clear-button-quiet-background-color-down: var(--spectrum-clear-button-background-color-down-quiet, transparent); + --system-clear-button-quiet-background-color-key-focus: var(--spectrum-clear-button-background-color-key-focus-quiet, transparent); + --system-clear-button-over-background-icon-color: var(--spectrum-clear-button-icon-color-over-background, var(--spectrum-white)); + --system-clear-button-over-background-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-over-background, var(--spectrum-white)); + --system-clear-button-over-background-icon-color-down: var(--spectrum-clear-button-icon-color-down-over-background, var(--spectrum-white)); + --system-clear-button-over-background-icon-color-key-focus: var(--spectrum-clear-button-icon-color-key-focus-over-background, var(--spectrum-white)); + --system-clear-button-over-background-background-color: var(--spectrum-clear-button-background-color-over-background, transparent); + --system-clear-button-over-background-background-color-hover: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); + --system-clear-button-over-background-background-color-down: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-400)); + --system-clear-button-over-background-background-color-key-focus: var(--spectrum-clear-button-background-color-hover-over-background, var(--spectrum-transparent-white-300)); + --system-clear-button-disabled-icon-color: var(--spectrum-disabled-content-color); + --system-clear-button-disabled-icon-color-hover: var(--spectrum-clear-button-icon-color-hover-disabled, var(--spectrum-disabled-content-color)); + --system-clear-button-disabled-icon-color-down: var(--spectrum-clear-button-icon-color-down-disabled, var(--spectrum-disabled-content-color)); + --system-clear-button-disabled-background-color: transparent; + --system-close-button-background-color-default: transparent; + --system-close-button-background-color-hover: var(--spectrum-gray-300); + --system-close-button-background-color-down: var(--spectrum-gray-400); + --system-close-button-background-color-focus: var(--spectrum-gray-300); + --system-close-button-icon-color-default: var(--spectrum-neutral-content-color-default); + --system-close-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-close-button-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-close-button-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-close-button-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-close-button-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-close-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-close-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-close-button-animation-duration: var(--spectrum-animation-duration-100); + --system-close-button-size-s-size: var(--spectrum-component-height-75); + --system-close-button-size: var(--spectrum-component-height-100); + --system-close-button-size-m-size: var(--spectrum-component-height-100); + --system-close-button-size-l-size: var(--spectrum-component-height-200); + --system-close-button-size-xl-size: var(--spectrum-component-height-300); + --system-close-button-static-white-static-background-color-default: transparent; + --system-close-button-static-white-static-background-color-hover: var(--spectrum-transparent-white-300); + --system-close-button-static-white-static-background-color-down: var(--spectrum-transparent-white-400); + --system-close-button-static-white-static-background-color-focus: var(--spectrum-transparent-white-300); + --system-close-button-static-white-icon-color-default: var(--spectrum-white); + --system-close-button-static-white-icon-color-disabled: var(--spectrum-disabled-static-white-content-color); + --system-close-button-static-white-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); + --system-close-button-static-black-static-background-color-default: transparent; + --system-close-button-static-black-static-background-color-hover: var(--spectrum-transparent-black-300); + --system-close-button-static-black-static-background-color-down: var(--spectrum-transparent-black-400); + --system-close-button-static-black-static-background-color-focus: var(--spectrum-transparent-black-300); + --system-close-button-static-black-icon-color-default: var(--spectrum-black); + --system-close-button-static-black-icon-color-disabled: var(--spectrum-disabled-static-black-content-color); + --system-close-button-static-black-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); + --system-coach-indicator-ring-border-size: var(--spectrum-border-width-200); + --system-coach-indicator-min-inline-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --system-coach-indicator-min-block-size: calc(var(--spectrum-coach-indicator-ring-diameter) * 3); + --system-coach-indicator-inline-size: var(--system-coach-indicator-min-inline-size); + --system-coach-indicator-block-size: var(--system-coach-indicator-min-block-size); + --system-coach-indicator-ring-inline-size: var(--spectrum-coach-indicator-ring-diameter); + --system-coach-indicator-ring-block-size: var(--spectrum-coach-indicator-ring-diameter); + --system-coach-indicator-ring-dark-color: var(--spectrum-gray-900); + --system-coach-indicator-ring-light-color: var(--spectrum-gray-50); + --system-coach-indicator-top: calc(var(--system-coach-indicator-block-size) / 3 - var(--system-coach-indicator-ring-border-size)); + --system-coach-indicator-left: calc(var(--system-coach-indicator-inline-size) / 3 - var(--system-coach-indicator-ring-border-size)); + --system-coach-indicator-coach-animation-indicator-ring-duration: var(--spectrum-animation-duration-6000); + --system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple: -0.5; + --system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple: -0.66; + --system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple: -1; + --system-coach-indicator-quiet-animation-ring-inner-delay-multiple: -0.33; + --system-coach-indicator-animation-name: pulse; + --system-coach-indicator-inner-animation-delay-multiple: var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple); + --system-coach-indicator-animation-keyframe-0-scale: 1; + --system-coach-indicator-animation-keyframe-0-opacity: 0; + --system-coach-indicator-animation-keyframe-50-scale: 1.5; + --system-coach-indicator-animation-keyframe-50-opacity: 1; + --system-coach-indicator-animation-keyframe-100-scale: 2; + --system-coach-indicator-animation-keyframe-100-opacity: 0; + --system-coach-indicator-quiet-animation-keyframe-0-scale: 0.8; + --system-coach-indicator-quiet-quiet-ring-diameter-size: var(--spectrum-coach-indicator-quiet-ring-diameter); + --system-coach-indicator-quiet-animation-name: pulse-quiet; + --system-coach-mark-min-width: var(--spectrum-coach-mark-minimum-width); + --system-coach-mark-width: var(--spectrum-coach-mark-width); + --system-coach-mark-max-width: var(--spectrum-coach-mark-maximum-width); + --system-coach-mark-media-height: var(--spectrum-coach-mark-media-height); + --system-coach-mark-media-min-height: var(--spectrum-coach-mark-media-minimum-height); + --system-coach-mark-padding: var(--spectrum-coach-mark-edge-to-content); + --system-coach-mark-heading-to-action-button: var(--spectrum-spacing-300); + --system-coach-mark-header-to-body: var(--spectrum-spacing-200); + --system-coach-mark-body-to-footer: var(--spectrum-spacing-300); + --system-coach-mark-title-color: var(--spectrum-heading-color); + --system-coach-mark-title-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-title-font-style: var(--spectrum-heading-serif-font-style); + --system-coach-mark-title-text-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-coach-mark-title-font-size: var(--spectrum-coach-mark-title-size); + --system-coach-mark-title-text-line-height: var(--spectrum-heading-line-height); + --system-coach-mark-content-font-color: var(--spectrum-body-color); + --system-coach-mark-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-coach-mark-content-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-coach-mark-content-line-height: var(--spectrum-body-line-height); + --system-coach-mark-content-font-size: var(--spectrum-coach-mark-body-size); + --system-coach-mark-step-color: var(--spectrum-coach-mark-pagination-color); + --system-coach-mark-step-font-weight: var(--spectrum-body-medium-font-weight); + --system-coach-mark-step-font-family: var(--spectrum-sans-serif-font); + --system-coach-mark-step-font-style: var(--spectrum-body-sans-serif-font-style); + --system-coach-mark-step-line-height: var(--spectrum-body-line-height); + --system-coach-mark-step-font-size: var(--spectrum-coach-mark-pagination-body-size); + --system-coach-mark-step-to-bottom: var(--spectrum-coach-mark-pagination-text-to-bottom-edge); + --system-coach-mark-popover-border-width: var(--spectrum-border-width-100); + --system-coach-mark-popover-corner-radius: var(--spectrum-corner-radius-100); + --system-coach-mark-buttongroup-spacing-horizontal: var(--spectrum-spacing-100); + --system-color-area-border-radius: var(--spectrum-color-area-border-rounding); + --system-color-area-border-color-rgb: 0, 0, 0; + --system-color-area-border-color-opacity: 0.1; + --system-color-area-border-color: rgba(var(--system-color-area-border-color-rgb), var(--system-color-area-border-color-opacity)); + --system-color-area-disabled-background-color: var(--spectrum-disabled-background-color); + --system-color-area-border-width: var(--spectrum-color-area-border-width); + --system-color-area-height: var(--spectrum-color-area-height); + --system-color-area-width: var(--spectrum-color-area-width); + --system-color-area-min-width: var(--spectrum-color-area-minimum-width); + --system-color-area-min-height: var(--spectrum-color-area-minimum-height); + --system-color-handle-size: var(--spectrum-color-handle-size); + --system-color-handle-focused-size: var(--spectrum-color-handle-size-key-focus); + --system-color-handle-hitarea-size: var(--spectrum-color-control-track-width); + --system-color-handle-animation-duration: var(--spectrum-animation-duration-100); + --system-color-handle-animation-easing: ease-in-out; + --system-color-handle-outer-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-outer-border-opacity)); + --system-color-handle-outer-border-width: var(--spectrum-color-handle-outer-border-width); + --system-color-handle-inner-border-color: rgba(var(--spectrum-black-rgb), var(--spectrum-color-handle-inner-border-opacity)); + --system-color-handle-inner-border-width: var(--spectrum-color-handle-inner-border-width); + --system-color-handle-border-width: var(--spectrum-color-handle-border-width); + --system-color-handle-border-color: var(--spectrum-white); + --system-color-handle-border-color-disabled: var(--spectrum-disabled-content-color); + --system-color-handle-fill-color-disabled: var(--spectrum-disabled-background-color); + --system-color-loupe-width: var(--spectrum-color-loupe-width); + --system-color-loupe-height: var(--spectrum-color-loupe-height); + --system-color-loupe-offset: var(--spectrum-color-loupe-bottom-to-color-handle); + --system-color-loupe-animation-distance: 8px; + --system-color-loupe-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-color-loupe-drop-shadow-y: var(--spectrum-color-loupe-drop-shadow-y); + --system-color-loupe-drop-shadow-blur: var(--spectrum-color-loupe-drop-shadow-blur); + --system-color-loupe-drop-shadow-color: var(--spectrum-color-loupe-drop-shadow-color); + --system-color-loupe-outer-border-width: var(--spectrum-color-loupe-outer-border-width); + --system-color-loupe-inner-border-width: var(--spectrum-color-loupe-inner-border-width); + --system-color-loupe-outer-border-color: var(--spectrum-color-loupe-outer-border); + --system-color-loupe-inner-border-color: var(--spectrum-color-loupe-inner-border); + --system-color-loupe-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --system-color-loupe-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); + --system-color-slider-handle-margin-block: var(--spectrum-component-top-to-text-75); + --system-color-slider-border-color-rgba: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-color-slider-border-opacity)); + --system-color-slider-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --system-color-slider-checkerboard-dark-color: var(--spectrum-opacity-checkerboard-square-dark); + --system-color-slider-checkerboard-light-color: var(--spectrum-opacity-checkerboard-square-light); + --system-color-wheel-width: var(--spectrum-color-wheel-width); + --system-color-wheel-min-width: var(--spectrum-color-wheel-minimum-width); + --system-color-wheel-height: var(--spectrum-color-wheel-width); + --system-color-wheel-border-color: var(--spectrum-transparent-black-200); + --system-color-wheel-border-width: var(--spectrum-border-width-100); + --system-color-wheel-fill-color-disabled: var(--spectrum-disabled-background-color); + --system-color-wheel-track-width: var(--spectrum-color-control-track-width); + --system-color-wheel-colorarea-margin: var(--spectrum-color-wheel-color-area-margin); + --system-color-wheel-colorhandle-position: calc(var(--system-color-wheel-width) / 2 - var(--system-color-wheel-track-width) / 2); + --system-combobox-border-color-default: var(--spectrum-gray-400); + --system-combobox-border-color-hover: var(--spectrum-gray-500); + --system-combobox-border-color-focus: var(--spectrum-gray-900); + --system-combobox-border-color-focus-hover: var(--spectrum-gray-800); + --system-combobox-border-color-key-focus: var(--spectrum-gray-900); + --system-combobox-inline-size: var(--spectrum-field-width); + --system-combobox-minimum-width-multiplier: var(--spectrum-combo-box-minimum-width-multiplier); + --system-combobox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-combobox-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-combobox-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-combobox-border-radius: var(--spectrum-corner-radius-100); + --system-combobox-border-width: var(--spectrum-border-width-100); + --system-combobox-spacing-label-to: var(--spectrum-field-label-to-component); + --system-combobox-font-style: var(--spectrum-default-font-style); + --system-combobox-line-height: var(--spectrum-line-height-100); + --system-combobox-border-color-invalid-default: var(--spectrum-negative-border-color-default); + --system-combobox-border-color-invalid-hover: var(--spectrum-negative-border-color-hover); + --system-combobox-border-color-invalid-focus: var(--spectrum-negative-border-color-focus); + --system-combobox-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); + --system-combobox-border-color-invalid-key-focus: var(--spectrum-negative-border-color-key-focus); + --system-combobox-size-s-block-size: var(--spectrum-component-height-75); + --system-combobox-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-combobox-size-s-font-size: var(--spectrum-font-size-75); + --system-combobox-size-s-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-small); + --system-combobox-size-s-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-small); + --system-combobox-size-s-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-small); + --system-combobox-size-s-spacing-edge-to-menu: var(--spectrum-component-to-menu-small); + --system-combobox-size-s-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-75); + --system-combobox-size-s-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-75); + --system-combobox-size-s-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-75); + --system-combobox-size-s-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-75); + --system-combobox-block-size: var(--spectrum-component-height-100); + --system-combobox-size-m-block-size: var(--spectrum-component-height-100); + --system-combobox-icon-size: var(--spectrum-workflow-icon-size-100); + --system-combobox-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-combobox-font-size: var(--spectrum-font-size-100); + --system-combobox-size-m-font-size: var(--spectrum-font-size-100); + --system-combobox-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-medium); + --system-combobox-size-m-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-medium); + --system-combobox-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-medium); + --system-combobox-size-m-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-medium); + --system-combobox-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-medium); + --system-combobox-size-m-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-medium); + --system-combobox-spacing-edge-to-menu: var(--spectrum-component-to-menu-medium); + --system-combobox-size-m-spacing-edge-to-menu: var(--spectrum-component-to-menu-medium); + --system-combobox-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-combobox-size-m-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-combobox-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-combobox-size-m-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-combobox-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-100); + --system-combobox-size-m-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-100); + --system-combobox-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-100); + --system-combobox-size-m-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-100); + --system-combobox-size-l-block-size: var(--spectrum-component-height-200); + --system-combobox-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-combobox-size-l-font-size: var(--spectrum-font-size-200); + --system-combobox-size-l-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-large); + --system-combobox-size-l-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-large); + --system-combobox-size-l-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-large); + --system-combobox-size-l-spacing-edge-to-menu: var(--spectrum-component-to-menu-large); + --system-combobox-size-l-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-200); + --system-combobox-size-l-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-200); + --system-combobox-size-l-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-200); + --system-combobox-size-l-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-200); + --system-combobox-size-xl-block-size: var(--spectrum-component-height-300); + --system-combobox-size-xl-icon-size: var(--spectrum-workflow-icon-size-300); + --system-combobox-size-xl-font-size: var(--spectrum-font-size-300); + --system-combobox-size-xl-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-extra-large); + --system-combobox-size-xl-block-spacing-edge-to-progress-circle: var(--spectrum-field-top-to-progress-circle-extra-large); + --system-combobox-size-xl-block-spacing-edge-to-alert: var(--spectrum-field-top-to-alert-icon-extra-large); + --system-combobox-size-xl-spacing-edge-to-menu: var(--spectrum-component-to-menu-extra-large); + --system-combobox-size-xl-spacing-block-start-edge-to-text: var(--spectrum-component-top-to-text-300); + --system-combobox-size-xl-spacing-block-end-edge-to-text: var(--spectrum-component-bottom-to-text-300); + --system-combobox-size-xl-spacing-inline-start-edge-to-text: var(--spectrum-component-edge-to-text-300); + --system-combobox-size-xl-spacing-inline-end-edge-to-text: var(--spectrum-component-edge-to-text-300); + --system-combobox-quiet-minimum-width-multiplier: var(--spectrum-combo-box-quiet-minimum-width-multiplier); + --system-combobox-quiet-spacing-inline-icon-to-button: var(--spectrum-combo-box-visual-to-field-button-quiet); + --system-combobox-quiet-spacing-inline-start-edge-to-text: var(--spectrum-field-edge-to-text-quiet); + --system-combobox-quiet-size-s-spacing-label-to: var(--spectrum-field-label-to-component-quiet-small); + --system-combobox-quiet-spacing-label-to: var(--spectrum-field-label-to-component-quiet-medium); + --system-combobox-quiet-size-m-spacing-label-to: var(--spectrum-field-label-to-component-quiet-medium); + --system-combobox-quiet-size-l-spacing-label-to: var(--spectrum-field-label-to-component-quiet-large); + --system-combobox-quiet-size-xl-spacing-label-to: var(--spectrum-field-label-to-component-quiet-extra-large); + --system-contextual-help-padding: var(--spectrum-spacing-400); + --system-contextual-help-link-spacing: var(--spectrum-spacing-300); + --system-contextual-help-heading-size: var(--spectrum-contextual-help-title-size); + --system-contextual-help-heading-color: var(--spectrum-heading-color); + --system-contextual-help-body-color: var(--spectrum-body-color); + --system-date-picker-initial-height: var(--spectrum-component-height-75); + --system-date-picker-border-radius: var(--spectrum-corner-radius-100); + --system-date-picker-border-radius-quiet: 0; + --system-date-picker-border-width: var(--spectrum-border-width-100); + --system-date-picker-min-width: var(--spectrum-field-width); + --system-date-picker-icon-size: var(--spectrum-workflow-icon-size-100); + --system-date-picker-pickerbutton-border-color: var(--spectrum-gray-500); + --system-date-picker-pickerbutton-border-color-invalid: var(--spectrum-negative-border-color-default); + --system-date-picker-pickerbutton-width: calc(var(--spectrum-field-edge-to-disclosure-icon-100) * 2 + var(--spectrum-workflow-icon-size-100)); + --system-date-picker-pickerbutton-width-quiet: calc(var(--system-date-picker-pickerbutton-width) - var(--system-date-picker-quiet-button-offset)); + --system-date-picker-quiet-button-offset: var(--spectrum-text-to-visual-100); + --system-date-picker-icon-to-button: var(--spectrum-text-to-visual-100); + --system-date-picker-icon-to-text: var(--spectrum-component-edge-to-text-100); + --system-date-picker-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-date-picker-focus-thickness: var(--spectrum-focus-indicator-thickness); + --system-date-picker-focus-animation: var(--spectrum-animation-duration-100); + --system-date-picker-focus-ring-width: var(--spectrum-border-width-100); + --system-date-picker-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-date-picker-focus-line-gap: var(--spectrum-spacing-75); + --system-date-picker-invalid-quiet-color: var(--spectrum-negative-border-color-default); + --system-date-picker-quiet-border-color-hover: var(--spectrum-gray-500); + --system-date-picker-border-color-disabled: var(--spectrum-disabled-border-color); + --system-date-picker-dash-font-size: var(--spectrum-font-size-100); + --system-date-picker-dash-color: var(--spectrum-neutral-content-color-default); + --system-date-picker-dash-color-disabled: var(--spectrum-disabled-content-color); + --system-date-picker-range-dash-marin-inline-start: calc(var(--system-date-picker-dash-font-size) * -0.5); + --system-date-picker-range-dash-padding-top: 0; + --system-date-picker-input-width-base: calc(var(--system-date-picker-range-input-width-first) + var(--system-date-picker-icon-size)); + --system-date-picker-input-width: calc(var(--system-date-picker-input-width-base) + var(--system-date-picker-initial-height)); + --system-date-picker-input-width-quiet: calc(var(--system-date-picker-range-input-width-quiet-first) + var(--system-date-picker-icon-size) + var(--system-date-picker-initial-height)); + --system-date-picker-range-input-width-first: calc(var(--spectrum-datepicker-initial-width) - var(--spectrum-datepicker-generic-padding) * 2); + --system-date-picker-range-input-width-quiet-first: calc(var(--spectrum-datepicker-width-quiet-first) + var(--spectrum-datepicker-width-quiet-second)); + --system-date-picker-datetime-input-width-first: calc(var(--system-date-picker-input-width-base) + var(--spectrum-datepicker-datetime-width-first)); + --system-date-picker-datetime-input-width: calc(var(--system-date-picker-datetime-input-width-first) + var(--system-date-picker-icon-size) + var(--system-date-picker-initial-height)); + --system-date-picker-datetime-quiet-input-width-first: calc(var(--system-date-picker-input-width-base) + var(--spectrum-datepicker-input-datetime-width)); + --system-date-picker-datetime-quiet-input-width: calc(var(--system-date-picker-datetime-quiet-input-width-first) + var(--system-date-picker-icon-size) + var(--system-date-picker-initial-height)); + --system-date-picker-padding-inline-end: calc(var(--system-date-picker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) - var(--system-date-picker-border-width) * 2); + --system-date-picker-padding-inline-end-quiet: calc(var(--system-date-picker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) - var(--system-date-picker-quiet-button-offset)); + --system-date-picker-padding-inline-end-invalid: calc(var(--system-date-picker-pickerbutton-width) + var(--spectrum-component-edge-to-text-100) + var(--system-date-picker-icon-to-button) + var(--system-date-picker-icon-size) - var(--system-date-picker-border-width) * 2); + --system-date-picker-padding-inline-end-invalid-quiet: calc(var(--system-date-picker-pickerbutton-width-quiet) + var(--system-date-picker-icon-size) + var(--system-date-picker-icon-to-text)); + --system-dial-background-color-default: var(--spectrum-gray-100); + --system-dial-handle-marker-color-disabled: var(--spectrum-gray-300); + --system-dial-border-color-disabled: var(--spectrum-gray-300); + --system-dial-handle-marker-color: var(--spectrum-gray-700); + --system-dial-border-color: var(--spectrum-gray-700); + --system-dial-handle-marker-color-down: var(--spectrum-gray-800); + --system-dial-border-color-down: var(--spectrum-gray-800); + --system-dial-handle-marker-color-hover: var(--spectrum-gray-800); + --system-dial-border-color-hover: var(--spectrum-gray-800); + --system-dial-handle-marker-color-key-focus: var(--spectrum-gray-50); + --system-dial-border-color-key-focus: var(--spectrum-gray-50); + --system-dial-handle-marker-color-mouse-focus: var(--spectrum-gray-700); + --system-dial-border-color-mouse-focus: var(--spectrum-gray-700); + --system-dial-min-max-tick-color: var(--spectrum-gray-600); + --system-dial-label-text-color: var(--spectrum-gray-700); + --system-dial-label-text-color-disabled: var(--spectrum-gray-700); + --system-dial-handle-border-color-disabled: var(--spectrum-gray-400); + --system-dial-container-width: 48px; + --system-dial-handle-marker-width: 12px; + --system-dial-handle-marker-height: 2px; + --system-dial-handle-marker-border-radius: 1px; + --system-dial-handle-size: 100%; + --system-dial-min-height: 0; + --system-dial-controls-min-height: 0; + --system-dial-min-max-tick-angles: 45deg; + --system-dial-width: 32px; + --system-dial-height: 32px; + --system-dial-handle-border-size: var(--spectrum-border-width-200); + --system-dial-label-text-size: var(--spectrum-font-size-75); + --system-dial-label-line-height: var(--spectrum-line-height-200); + --system-dial-small-width: 24px; + --system-dial-small-height: 24px; + --system-dialog-fullscreen-header-text-size: 28px; + --system-dialog-min-inline-size: 288px; + --system-dialog-confirm-small-width: 400px; + --system-dialog-confirm-medium-width: 480px; + --system-dialog-confirm-large-width: 640px; + --system-dialog-confirm-divider-block-spacing-start: var(--spectrum-spacing-300); + --system-dialog-confirm-divider-block-spacing-end: var(--spectrum-spacing-200); + --system-dialog-confirm-description-text-color: var(--spectrum-gray-800); + --system-dialog-confirm-title-text-color: var(--spectrum-gray-900); + --system-dialog-confirm-description-text-line-height: var(--spectrum-line-height-100); + --system-dialog-confirm-title-text-line-height: var(--spectrum-line-height-100); + --system-dialog-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-dialog-confirm-description-padding: var(--spectrum-spacing-50); + --system-dialog-confirm-description-margin: calc(var(--spectrum-spacing-50) * -1); + --system-dialog-confirm-footer-padding-top: var(--spectrum-spacing-600); + --system-dialog-confirm-gap-size: var(--spectrum-component-pill-edge-to-text-100); + --system-dialog-confirm-buttongroup-padding-top: var(--spectrum-spacing-600); + --system-dialog-confirm-close-button-size: var(--spectrum-component-height-100); + --system-dialog-confirm-close-button-padding: calc(26px - var(--spectrum-component-bottom-to-text-300)); + --system-dialog-confirm-divider-height: var(--spectrum-spacing-50); + --system-divider-background-color-small: var(--spectrum-gray-300); + --system-divider-background-color-medium: var(--spectrum-gray-300); + --system-divider-background-color-large: var(--spectrum-gray-800); + --system-divider-background-color-small-static-white: var(--spectrum-transparent-white-300); + --system-divider-background-color-medium-static-white: var(--spectrum-transparent-white-300); + --system-divider-background-color-large-static-white: var(--spectrum-transparent-white-800); + --system-divider-background-color-small-static-black: var(--spectrum-transparent-black-300); + --system-divider-background-color-medium-static-black: var(--spectrum-transparent-black-300); + --system-divider-background-color-large-static-black: var(--spectrum-transparent-black-800); + --system-drop-indicator-border-color: var(--spectrum-dropindicator-color); + --system-drop-indicator-circle-color: var(--spectrum-dropindicator-color); + --system-drop-indicator-border-size: var(--spectrum-border-width-200); + --system-drop-indicator-circle-size: 12px; + --system-drop-zone-padding: var(--spectrum-spacing-400); + --system-drop-zone-illustration-to-heading: var(--spectrum-spacing-400); + --system-drop-zone-heading-to-body: var(--spectrum-spacing-75); + --system-drop-zone-border-width: var(--spectrum-border-width-200); + --system-drop-zone-corner-radius: var(--spectrum-corner-radius-100); + --system-drop-zone-border-color: var(--spectrum-gray-300); + --system-drop-zone-heading-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-drop-zone-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-drop-zone-heading-font-size: var(--spectrum-drop-zone-title-size); + --system-drop-zone-heading-line-height: var(--spectrum-heading-line-height); + --system-drop-zone-heading-color: var(--spectrum-heading-color); + --system-drop-zone-body-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-body-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-drop-zone-body-font-style: var(--spectrum-body-sans-serif-font-style); + --system-drop-zone-body-font-size: var(--spectrum-drop-zone-body-size); + --system-drop-zone-body-line-height: var(--spectrum-body-line-height); + --system-drop-zone-body-color: var(--spectrum-body-color); + --system-drop-zone-background-color: var(--spectrum-drop-zone-background-color-rgb); + --system-drop-zone-border-color-hover: var(--spectrum-accent-visual-color); + --system-drop-zone-illustration-color: var(--spectrum-neutral-visual-color); + --system-drop-zone-illustration-color-hover: var(--spectrum-accent-visual-color); + --system-drop-zone-content-height: var(--spectrum-component-height-300); + --system-drop-zone-content-max-width: var(--spectrum-drop-zone-content-maximum-width); + --system-drop-zone-content-edge-to-text: var(--spectrum-component-edge-to-text-300); + --system-drop-zone-content-top-to-text: var(--spectrum-component-top-to-text-300); + --system-drop-zone-content-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --system-drop-zone-content-font-family: var(--spectrum-sans-font-family-stack); + --system-drop-zone-content-font-weight: var(--spectrum-bold-font-weight); + --system-drop-zone-content-font-style: var(--spectrum-default-font-style); + --system-drop-zone-content-font-size: var(--spectrum-font-size-300); + --system-drop-zone-content-line-height: var(--spectrum-line-height-100); + --system-drop-zone-content-background-color: var(--spectrum-accent-visual-color); + --system-drop-zone-content-color: var(--spectrum-white); + --system-drop-zone-heading-font-size-cjk: var(--spectrum-drop-zone-cjk-title-size); + --system-field-group-margin: var(--spectrum-spacing-300); + --system-field-group-readonly-delimiter: "\002c"; + --system-field-label-min-height: var(--spectrum-component-height-75); + --system-field-label-color: var(--spectrum-neutral-subdued-content-color-default); + --system-field-label-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + --system-field-label-font-weight: var(--spectrum-regular-font-weight); + --system-field-label-line-height: var(--spectrum-line-height-100); + --system-field-label-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-field-label-size-s-min-height: var(--spectrum-component-height-75); + --system-field-label-size-s-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-size-s-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-size-s-font-size: var(--spectrum-font-size-75); + --system-field-label-size-s-side-margin-block-start: var(--spectrum-field-label-top-margin-small); + --system-field-label-size-s-side-padding-right: var(--spectrum-spacing-100); + --system-field-label-size-s-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-small); + --system-field-label-size-m-min-height: var(--spectrum-component-height-75); + --system-field-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-size-m-top-to-text: var(--spectrum-component-top-to-text-75); + --system-field-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-size-m-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-field-label-font-size: var(--spectrum-font-size-75); + --system-field-label-size-m-font-size: var(--spectrum-font-size-75); + --system-field-label-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --system-field-label-size-m-side-margin-block-start: var(--spectrum-field-label-top-margin-medium); + --system-field-label-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-m-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-m-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-medium); + --system-field-label-size-l-min-height: var(--spectrum-component-height-100); + --system-field-label-size-l-top-to-text: var(--spectrum-component-top-to-text-100); + --system-field-label-size-l-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-field-label-size-l-font-size: var(--spectrum-font-size-100); + --system-field-label-size-l-side-margin-block-start: var(--spectrum-field-label-top-margin-large); + --system-field-label-size-l-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-l-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-large); + --system-field-label-size-xl-min-height: var(--spectrum-component-height-200); + --system-field-label-size-xl-top-to-text: var(--spectrum-component-top-to-text-200); + --system-field-label-size-xl-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --system-field-label-size-xl-font-size: var(--spectrum-font-size-200); + --system-field-label-size-xl-side-margin-block-start: var(--spectrum-field-label-top-margin-extra-large); + --system-field-label-size-xl-side-padding-right: var(--spectrum-spacing-200); + --system-field-label-size-xl-text-to-asterisk: var(--spectrum-field-label-text-to-asterisk-extra-large); + --system-floating-action-button-size: var(--spectrum-component-height-200); + --system-floating-action-button-icon-size: var(--spectrum-workflow-icon-size-200); + --system-floating-action-button-padding: var(--spectrum-component-pill-edge-to-visual-only-200); + --system-floating-action-button-margin: var(--spectrum-spacing-200); + --system-floating-action-button-drop-shadow-x: var(--spectrum-drop-shadow-x); + --system-floating-action-button-focus-ring-width: var(--spectrum-focus-indicator-thickness); + --system-floating-action-button-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-floating-action-button-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-floating-action-button-background-color: var(--spectrum-accent-background-color-default); + --system-floating-action-button-background-color-hover: var(--spectrum-accent-background-color-hover); + --system-floating-action-button-background-color-down: var(--spectrum-accent-background-color-down); + --system-floating-action-button-background-color-key-focus: var(--spectrum-accent-background-color-key-focus); + --system-floating-action-button-icon-color: var(--spectrum-white); + --system-floating-action-button-icon-color-hover: var(--spectrum-white); + --system-floating-action-button-icon-color-down: var(--spectrum-white); + --system-floating-action-button-icon-color-key-focus: var(--spectrum-white); + --system-floating-action-button-secondary-background-color: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-hover: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-down: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-background-color-key-focus: var(--spectrum-background-layer-2-color); + --system-floating-action-button-secondary-icon-color: var(--spectrum-neutral-subdued-content-color-default); + --system-floating-action-button-secondary-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-floating-action-button-secondary-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-floating-action-button-secondary-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-help-text-line-height: var(--spectrum-line-height-100); + --system-help-text-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-disabled-content-color: var(--spectrum-disabled-content-color); + --system-help-text-neutral-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-neutral-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-help-text-negative-content-color-default: var(--spectrum-negative-color-900); + --system-help-text-negative-icon-color-default: var(--spectrum-negative-color-900); + --system-help-text-disabled-content-color-default: var(--system-help-text-disabled-content-color); + --system-help-text-disabled-icon-color-default: var(--system-help-text-disabled-content-color); + --system-help-text-lang-ja-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-lang-zh-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-lang-ko-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-help-text-size-s-min-height: var(--spectrum-component-height-75); + --system-help-text-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-help-text-size-s-font-size: var(--spectrum-font-size-75); + --system-help-text-size-s-text-to-visual: var(--spectrum-text-to-visual-75); + --system-help-text-size-s-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-small); + --system-help-text-size-s-top-to-text: var(--spectrum-component-top-to-text-75); + --system-help-text-size-s-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-help-text-size-m-min-height: var(--spectrum-component-height-75); + --system-help-text-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-help-text-size-m-font-size: var(--spectrum-font-size-75); + --system-help-text-size-m-text-to-visual: var(--spectrum-text-to-visual-75); + --system-help-text-size-m-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-medium); + --system-help-text-size-m-top-to-text: var(--spectrum-component-top-to-text-75); + --system-help-text-size-m-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-help-text-size-l-min-height: var(--spectrum-component-height-100); + --system-help-text-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-help-text-size-l-font-size: var(--spectrum-font-size-100); + --system-help-text-size-l-text-to-visual: var(--spectrum-text-to-visual-100); + --system-help-text-size-l-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-large); + --system-help-text-size-l-top-to-text: var(--spectrum-component-top-to-text-100); + --system-help-text-size-l-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-help-text-size-xl-min-height: var(--spectrum-component-height-200); + --system-help-text-size-xl-icon-size: var(--spectrum-workflow-icon-size-300); + --system-help-text-size-xl-font-size: var(--spectrum-font-size-200); + --system-help-text-size-xl-text-to-visual: var(--spectrum-text-to-visual-200); + --system-help-text-size-xl-top-to-workflow-icon: var(--spectrum-help-text-top-to-workflow-icon-extra-large); + --system-help-text-size-xl-top-to-text: var(--spectrum-component-top-to-text-200); + --system-help-text-size-xl-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --system-icon-size-xxs: var(--spectrum-workflow-icon-size-xxs); + --system-icon-size-xs: var(--spectrum-workflow-icon-size-50); + --system-icon-size-s: var(--spectrum-workflow-icon-size-75); + --system-icon-size-m: var(--spectrum-workflow-icon-size-100); + --system-icon-size-l: var(--spectrum-workflow-icon-size-200); + --system-icon-size-xl: var(--spectrum-workflow-icon-size-300); + --system-icon-size-xxl: var(--spectrum-workflow-icon-size-xxl); + --system-ui-icon-chevron-right-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-down-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-right-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-down-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-right-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-down-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-right-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-down-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-right-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-down-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-right-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-down-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-right-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-down-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-left-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-left-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-left-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-left-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-left-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-left-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-left-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-chevron-up-50-icon-size: var(--spectrum-chevron-icon-size-50); + --system-ui-icon-chevron-up-75-icon-size: var(--spectrum-chevron-icon-size-75); + --system-ui-icon-chevron-up-100-icon-size: var(--spectrum-chevron-icon-size-100); + --system-ui-icon-chevron-up-200-icon-size: var(--spectrum-chevron-icon-size-200); + --system-ui-icon-chevron-up-300-icon-size: var(--spectrum-chevron-icon-size-300); + --system-ui-icon-chevron-up-400-icon-size: var(--spectrum-chevron-icon-size-400); + --system-ui-icon-chevron-up-500-icon-size: var(--spectrum-chevron-icon-size-500); + --system-ui-icon-arrow-right-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-right-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-right-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-right-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-right-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-right-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-right-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-down-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-down-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-down-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-down-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-down-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-down-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-down-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-left-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-left-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-left-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-left-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-left-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-left-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-left-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-arrow-up-75-icon-size: var(--spectrum-arrow-icon-size-75); + --system-ui-icon-arrow-up-100-icon-size: var(--spectrum-arrow-icon-size-100); + --system-ui-icon-arrow-up-200-icon-size: var(--spectrum-arrow-icon-size-200); + --system-ui-icon-arrow-up-300-icon-size: var(--spectrum-arrow-icon-size-300); + --system-ui-icon-arrow-up-400-icon-size: var(--spectrum-arrow-icon-size-400); + --system-ui-icon-arrow-up-500-icon-size: var(--spectrum-arrow-icon-size-500); + --system-ui-icon-arrow-up-600-icon-size: var(--spectrum-arrow-icon-size-600); + --system-ui-icon-checkmark-50-icon-size: var(--spectrum-checkmark-icon-size-50); + --system-ui-icon-checkmark-75-icon-size: var(--spectrum-checkmark-icon-size-75); + --system-ui-icon-checkmark-100-icon-size: var(--spectrum-checkmark-icon-size-100); + --system-ui-icon-checkmark-200-icon-size: var(--spectrum-checkmark-icon-size-200); + --system-ui-icon-checkmark-300-icon-size: var(--spectrum-checkmark-icon-size-300); + --system-ui-icon-checkmark-400-icon-size: var(--spectrum-checkmark-icon-size-400); + --system-ui-icon-checkmark-500-icon-size: var(--spectrum-checkmark-icon-size-500); + --system-ui-icon-checkmark-600-icon-size: var(--spectrum-checkmark-icon-size-600); + --system-ui-icon-dash-50-icon-size: var(--spectrum-dash-icon-size-50); + --system-ui-icon-dash-75-icon-size: var(--spectrum-dash-icon-size-75); + --system-ui-icon-dash-100-icon-size: var(--spectrum-dash-icon-size-100); + --system-ui-icon-dash-200-icon-size: var(--spectrum-dash-icon-size-200); + --system-ui-icon-dash-300-icon-size: var(--spectrum-dash-icon-size-300); + --system-ui-icon-dash-400-icon-size: var(--spectrum-dash-icon-size-400); + --system-ui-icon-dash-500-icon-size: var(--spectrum-dash-icon-size-500); + --system-ui-icon-dash-600-icon-size: var(--spectrum-dash-icon-size-600); + --system-ui-icon-cross-75-icon-size: var(--spectrum-cross-icon-size-75); + --system-ui-icon-cross-100-icon-size: var(--spectrum-cross-icon-size-100); + --system-ui-icon-cross-200-icon-size: var(--spectrum-cross-icon-size-200); + --system-ui-icon-cross-300-icon-size: var(--spectrum-cross-icon-size-300); + --system-ui-icon-cross-400-icon-size: var(--spectrum-cross-icon-size-400); + --system-ui-icon-cross-500-icon-size: var(--spectrum-cross-icon-size-500); + --system-ui-icon-cross-600-icon-size: var(--spectrum-cross-icon-size-600); + --system-ui-icon-corner-triangle-75-icon-size: var(--spectrum-corner-triangle-icon-size-75); + --system-ui-icon-corner-triangle-100-icon-size: var(--spectrum-corner-triangle-icon-size-100); + --system-ui-icon-corner-triangle-200-icon-size: var(--spectrum-corner-triangle-icon-size-200); + --system-ui-icon-corner-triangle-300-icon-size: var(--spectrum-corner-triangle-icon-size-300); + --system-ui-icon-asterisk-75-icon-size: var(--spectrum-asterisk-icon-size-75); + --system-ui-icon-asterisk-100-icon-size: var(--spectrum-asterisk-icon-size-100); + --system-ui-icon-asterisk-200-icon-size: var(--spectrum-asterisk-icon-size-200); + --system-ui-icon-asterisk-300-icon-size: var(--spectrum-asterisk-icon-size-300); + --system-illustrated-message-description-max-inline-size: var(--spectrum-illustrated-message-maximum-width); + --system-illustrated-message-heading-max-inline-size: var(--spectrum-illustrated-message-maximum-width); + --system-illustrated-message-title-to-heading: var(--spectrum-spacing-400); + --system-illustrated-message-heading-to-description: var(--spectrum-spacing-75); + --system-illustrated-message-illustration-color: var(--spectrum-neutral-visual-color); + --system-illustrated-message-illustration-accent-color: var(--spectrum-accent-visual-color); + --system-illustrated-message-title-font-family: var(--spectrum-sans-font-family-stack); + --system-illustrated-message-title-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-illustrated-message-title-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-illustrated-message-title-font-size: var(--spectrum-illustrated-message-title-size); + --system-illustrated-message-title-line-height: var(--spectrum-heading-line-height); + --system-illustrated-message-title-color: var(--spectrum-heading-color); + --system-illustrated-message-description-font-family: var(--spectrum-sans-font-family-stack); + --system-illustrated-message-description-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-illustrated-message-description-font-style: var(--spectrum-body-sans-serif-font-style); + --system-illustrated-message-description-font-size: var(--spectrum-illustrated-message-body-size); + --system-illustrated-message-description-line-height: var(--spectrum-body-line-height); + --system-illustrated-message-description-color: var(--spectrum-body-color); + --system-illustrated-message-lang-ja-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --system-illustrated-message-lang-zh-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --system-illustrated-message-lang-ko-title-font-size: var(--spectrum-illustrated-message-cjk-title-size); + --system-infield-button-border-width: 0; + --system-infield-button-border-color: transparent; + --system-infield-button-border-radius: var(--spectrum-corner-radius-75); + --system-infield-button-border-radius-reset: var(--spectrum-corner-radius-75); + --system-infield-button-stacked-top-border-radius-start-start: var(--spectrum-corner-radius-75); + --system-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-corner-radius-75); + --system-infield-button-background-color: var(--spectrum-gray-200); + --system-infield-button-background-color-hover: var(--spectrum-gray-300); + --system-infield-button-background-color-down: var(--spectrum-gray-400); + --system-infield-button-background-color-key-focus: var(--spectrum-gray-300); + --system-infield-button-height: var(--spectrum-component-height-100); + --system-infield-button-width: var(--spectrum-component-height-100); + --system-infield-button-stacked-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); + --system-infield-button-edge-to-fill: var(--spectrum-in-field-button-edge-to-fill); + --system-infield-button-inner-edge-to-fill: var(--spectrum-in-field-button-stacked-inner-edge-to-fill); + --system-infield-button-fill-padding: 0px; + --system-infield-button-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium); + --system-infield-button-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); + --system-infield-button-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium); + --system-infield-button-animation-duration: var(--spectrum-animation-duration-100); + --system-infield-button-icon-color: var(--spectrum-neutral-content-color-default); + --system-infield-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-infield-button-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-infield-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-infield-button-fill-justify-content: center; + --system-infield-button-disabled-background-color: var(--spectrum-disabled-background-color); + --system-infield-button-disabled-background-color-hover: var(--spectrum-disabled-background-color); + --system-infield-button-disabled-background-color-down: var(--spectrum-disabled-background-color); + --system-infield-button-disabled-border-color: var(--spectrum-disabled-background-color); + --system-infield-button-disabled-icon-color: var(--spectrum-disabled-content-color); + --system-infield-button-disabled-icon-color-hover: var(--spectrum-disabled-content-color); + --system-infield-button-disabled-icon-color-down: var(--spectrum-disabled-content-color); + --system-infield-button-disabled-icon-color-key-focus: var(--spectrum-disabled-content-color); + --system-infield-button-size-s-height: var(--spectrum-component-height-75); + --system-infield-button-size-s-width: var(--spectrum-component-height-75); + --system-infield-button-size-s-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-small); + --system-infield-button-size-s-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); + --system-infield-button-size-s-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small); + --system-infield-button-size-l-height: var(--spectrum-component-height-200); + --system-infield-button-size-l-width: var(--spectrum-component-height-200); + --system-infield-button-size-l-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-large); + --system-infield-button-size-l-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); + --system-infield-button-size-l-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large); + --system-infield-button-size-xl-height: var(--spectrum-component-height-300); + --system-infield-button-size-xl-width: var(--spectrum-component-height-300); + --system-infield-button-size-xl-stacked-fill-padding-inline: var(--spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large); + --system-infield-button-size-xl-stacked-fill-padding-outer: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); + --system-infield-button-size-xl-stacked-fill-padding-inner: var(--spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large); + --system-infield-button-top-width: var(--spectrum-in-field-button-width-stacked-medium); + --system-infield-button-bottom-width: var(--spectrum-in-field-button-width-stacked-medium); + --system-infield-button-top-size-s-width: var(--spectrum-in-field-button-width-stacked-small); + --system-infield-button-bottom-size-s-width: var(--spectrum-in-field-button-width-stacked-small); + --system-infield-button-top-size-l-width: var(--spectrum-in-field-button-width-stacked-large); + --system-infield-button-bottom-size-l-width: var(--spectrum-in-field-button-width-stacked-large); + --system-infield-button-top-size-xl-width: var(--spectrum-in-field-button-width-stacked-extra-large); + --system-infield-button-bottom-size-xl-width: var(--spectrum-in-field-button-width-stacked-extra-large); + --system-infield-button-quiet-background-color: transparent; + --system-infield-button-quiet-background-color-hover: transparent; + --system-infield-button-quiet-background-color-down: transparent; + --system-infield-button-quiet-background-color-key-focus: transparent; + --system-infield-button-quiet-infield-border-color: transparent; + --system-infield-button-quiet-border-width: 0; + --system-infield-button-quiet-disabled-background-color: transparent; + --system-infield-button-quiet-disabled-border-color: transparent; + --system-in-line-alert-heading-font-family: var(--spectrum-sans-font-family-stack); + --system-in-line-alert-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-in-line-alert-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-in-line-alert-heading-font-size: var(--spectrum-heading-size-xxs); + --system-in-line-alert-heading-line-height: var(--spectrum-heading-line-height); + --system-in-line-alert-content-font-family: var(--spectrum-sans-font-family-stack); + --system-in-line-alert-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-in-line-alert-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-in-line-alert-content-font-size: var(--spectrum-body-size-s); + --system-in-line-alert-content-line-height: var(--spectrum-body-line-height); + --system-in-line-alert-border-width: var(--spectrum-border-width-200); + --system-in-line-alert-border-radius: var(--spectrum-corner-radius-100); + --system-in-line-alert-icon-size: var(--spectrum-workflow-icon-size-100); + --system-in-line-alert-min-inline-size: var(--spectrum-in-line-alert-minimum-width); + --system-in-line-alert-header-min-block-size: var(--spectrum-component-height-50); + --system-in-line-alert-spacing-edge-to-text: var(--spectrum-spacing-400); + --system-in-line-alert-spacing-header-to-icon: var(--spectrum-spacing-400); + --system-in-line-alert-spacing-header-content-button: var(--spectrum-spacing-300); + --system-in-line-alert-background-color: var(--spectrum-background-layer-2-color); + --system-in-line-alert-border-and-icon-color: var(--spectrum-neutral-visual-color); + --system-in-line-alert-header-color: var(--spectrum-heading-color); + --system-in-line-alert-content-color: var(--spectrum-body-color); + --system-in-line-alert-border-and-icon-color-info: var(--spectrum-informative-visual-color); + --system-in-line-alert-border-and-icon-color-positive: var(--spectrum-positive-visual-color); + --system-in-line-alert-border-and-icon-color-notice: var(--spectrum-notice-visual-color); + --system-in-line-alert-border-and-icon-color-negative: var(--spectrum-negative-visual-color); + --system-link-animation-duration: var(--spectrum-animation-duration-100); + --system-link-text-color-primary-default: var(--spectrum-accent-content-color-default); + --system-link-text-color-primary-hover: var(--spectrum-accent-content-color-hover); + --system-link-text-color-primary-active: var(--spectrum-accent-content-color-down); + --system-link-text-color-primary-focus: var(--spectrum-accent-content-color-key-focus); + --system-link-text-color-secondary-default: var(--spectrum-neutral-content-color-default); + --system-link-text-color-secondary-hover: var(--spectrum-neutral-content-color-hover); + --system-link-text-color-secondary-active: var(--spectrum-neutral-content-color-down); + --system-link-text-color-secondary-focus: var(--spectrum-neutral-content-color-key-focus); + --system-link-text-color-white: var(--spectrum-white); + --system-link-text-color-black: var(--spectrum-black); + --system-logic-button-height: 24px; + --system-logic-button-padding: var(--spectrum-component-edge-to-text-50); + --system-logic-button-font-size: var(--spectrum-font-size-100); + --system-logic-button-font-weight: var(--spectrum-bold-font-weight); + --system-logic-button-border-width: var(--spectrum-border-width-200); + --system-logic-button-border-radius: var(--spectrum-corner-radius-100); + --system-logic-button-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-logic-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-logic-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-logic-button-and-text-color: var(--spectrum-white); + --system-logic-button-and-background-color-default: var(--spectrum-logic-button-and-background-color); + --system-logic-button-and-background-color-hover: var(--spectrum-blue-1100); + --system-logic-button-and-border-color-hover: var(--spectrum-blue-1100); + --system-logic-button-or-text-color: var(--spectrum-white); + --system-logic-button-and-background-color-default-disabled: var(--spectrum-gray-200); + --system-logic-button-and-border-color-disabled: var(--spectrum-gray-200); + --system-logic-button-and-text-color-disabled: var(--spectrum-gray-500); + --system-logic-button-and-background-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-and-border-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-or-background-color-disabled: var(--spectrum-gray-200); + --system-logic-button-or-border-color-disabled: var(--spectrum-gray-200); + --system-logic-button-or-text-color-disabled: var(--spectrum-gray-500); + --system-logic-button-or-background-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-or-border-color-hover-disabled: var(--spectrum-gray-200); + --system-menu-item-top-to-action: var(--spectrum-spacing-50); + --system-menu-item-top-to-checkbox: var(--spectrum-spacing-50); + --system-menu-item-label-line-height: var(--spectrum-line-height-100); + --system-menu-item-label-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-item-label-to-description-spacing: var(--spectrum-menu-item-label-to-description); + --system-menu-item-focus-indicator-width: var(--spectrum-border-width-200); + --system-menu-item-focus-indicator-color: var(--spectrum-blue-800); + --system-menu-item-label-to-value-area-min-spacing: var(--spectrum-spacing-100); + --system-menu-item-label-content-color-default: var(--spectrum-neutral-content-color-default); + --system-menu-item-label-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-menu-item-label-content-color-down: var(--spectrum-neutral-content-color-down); + --system-menu-item-label-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-menu-item-label-icon-color-default: var(--spectrum-neutral-content-color-default); + --system-menu-item-label-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-menu-item-label-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-menu-item-label-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-menu-item-label-content-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-item-label-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-item-description-line-height: var(--spectrum-line-height-100); + --system-menu-item-description-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-item-description-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-item-description-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-item-description-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-item-description-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-item-description-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-section-header-line-height: var(--spectrum-line-height-100); + --system-menu-section-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-section-header-font-weight: var(--spectrum-bold-font-weight); + --system-menu-section-header-color: var(--spectrum-gray-900); + --system-menu-collapsible-icon-color: var(--spectrum-gray-900); + --system-menu-checkmark-icon-color-default: var(--spectrum-accent-color-900); + --system-menu-checkmark-icon-color-hover: var(--spectrum-accent-color-1000); + --system-menu-checkmark-icon-color-down: var(--spectrum-accent-color-1100); + --system-menu-checkmark-icon-color-focus: var(--spectrum-accent-color-1000); + --system-menu-drillin-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-drillin-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-drillin-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-drillin-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-item-value-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-item-value-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-item-value-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-item-value-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-checkmark-display-hidden: none; + --system-menu-checkmark-display-shown: block; + --system-menu-checkmark-display: var(--system-menu-checkmark-display-shown); + --system-menu-item-collapsible-has-icon-sub-item-padding-x-start: calc(var(--system-menu-item-label-inline-edge-to-content) + var(--system-menu-item-checkmark-width) + var(--system-menu-item-text-to-control) + var(--system-menu-item-icon-width) + var(--system-menu-item-label-text-to-visual) + var(--system-menu-item-focus-indicator-width)); + --system-menu-item-collapsible-no-icon-sub-item-padding-x-start: calc(var(--system-menu-item-label-inline-edge-to-content) + var(--system-menu-item-checkmark-width) + var(--system-menu-item-label-text-to-visual) + var(--system-menu-item-focus-indicator-width)); + --system-menu-item-background-color-default: var(--spectrum-gray-50); + --system-menu-item-background-color-hover: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-item-background-color-down: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-size-s-item-min-height: var(--spectrum-component-height-75); + --system-menu-size-s-item-icon-height: var(--spectrum-workflow-icon-size-75); + --system-menu-size-s-item-icon-width: var(--spectrum-workflow-icon-size-75); + --system-menu-size-s-item-label-font-size: var(--spectrum-font-size-75); + --system-menu-size-s-item-label-text-to-visual: var(--spectrum-text-to-visual-75); + --system-menu-size-s-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-75); + --system-menu-size-s-item-top-edge-to-text: var(--spectrum-component-top-to-text-75); + --system-menu-size-s-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-75); + --system-menu-size-s-item-text-to-control: var(--spectrum-text-to-control-75); + --system-menu-size-s-item-description-font-size: var(--spectrum-font-size-50); + --system-menu-size-s-section-header-font-size: var(--spectrum-font-size-75); + --system-menu-size-s-section-header-min-width: var(--spectrum-component-height-75); + --system-menu-size-s-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-small); + --system-menu-size-s-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-small); + --system-menu-size-s-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-small); + --system-menu-size-s-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-small); + --system-menu-size-s-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-small); + --system-menu-item-min-height: var(--spectrum-component-height-100); + --system-menu-size-m-item-min-height: var(--spectrum-component-height-100); + --system-menu-item-icon-height: var(--spectrum-workflow-icon-size-100); + --system-menu-size-m-item-icon-height: var(--spectrum-workflow-icon-size-100); + --system-menu-item-icon-width: var(--spectrum-workflow-icon-size-100); + --system-menu-size-m-item-icon-width: var(--spectrum-workflow-icon-size-100); + --system-menu-item-label-font-size: var(--spectrum-font-size-100); + --system-menu-size-m-item-label-font-size: var(--spectrum-font-size-100); + --system-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-100); + --system-menu-size-m-item-label-text-to-visual: var(--spectrum-text-to-visual-100); + --system-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); + --system-menu-size-m-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); + --system-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-menu-size-m-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-menu-size-m-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-menu-item-text-to-control: var(--spectrum-text-to-control-100); + --system-menu-size-m-item-text-to-control: var(--spectrum-text-to-control-100); + --system-menu-item-description-font-size: var(--spectrum-font-size-75); + --system-menu-size-m-item-description-font-size: var(--spectrum-font-size-75); + --system-menu-section-header-font-size: var(--spectrum-font-size-100); + --system-menu-size-m-section-header-font-size: var(--spectrum-font-size-100); + --system-menu-section-header-min-width: var(--spectrum-component-height-100); + --system-menu-size-m-section-header-min-width: var(--spectrum-component-height-100); + --system-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); + --system-menu-size-m-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); + --system-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); + --system-menu-size-m-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); + --system-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); + --system-menu-size-m-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); + --system-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); + --system-menu-size-m-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); + --system-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); + --system-menu-size-m-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); + --system-menu-size-l-item-min-height: var(--spectrum-component-height-200); + --system-menu-size-l-item-icon-height: var(--spectrum-workflow-icon-size-200); + --system-menu-size-l-item-icon-width: var(--spectrum-workflow-icon-size-200); + --system-menu-size-l-item-label-font-size: var(--spectrum-font-size-200); + --system-menu-size-l-item-label-text-to-visual: var(--spectrum-text-to-visual-200); + --system-menu-size-l-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-200); + --system-menu-size-l-item-top-edge-to-text: var(--spectrum-component-top-to-text-200); + --system-menu-size-l-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-200); + --system-menu-size-l-item-text-to-control: var(--spectrum-text-to-control-200); + --system-menu-size-l-item-description-font-size: var(--spectrum-font-size-100); + --system-menu-size-l-section-header-font-size: var(--spectrum-font-size-200); + --system-menu-size-l-section-header-min-width: var(--spectrum-component-height-200); + --system-menu-size-l-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-large); + --system-menu-size-l-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-large); + --system-menu-size-l-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-large); + --system-menu-size-l-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-large); + --system-menu-size-l-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-large); + --system-menu-size-xl-item-min-height: var(--spectrum-component-height-300); + --system-menu-size-xl-item-icon-height: var(--spectrum-workflow-icon-size-300); + --system-menu-size-xl-item-icon-width: var(--spectrum-workflow-icon-size-300); + --system-menu-size-xl-item-label-font-size: var(--spectrum-font-size-300); + --system-menu-size-xl-item-label-text-to-visual: var(--spectrum-text-to-visual-300); + --system-menu-size-xl-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-300); + --system-menu-size-xl-item-top-edge-to-text: var(--spectrum-component-top-to-text-300); + --system-menu-size-xl-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-300); + --system-menu-size-xl-item-text-to-control: var(--spectrum-text-to-control-300); + --system-menu-size-xl-item-description-font-size: var(--spectrum-font-size-200); + --system-menu-size-xl-section-header-font-size: var(--spectrum-font-size-300); + --system-menu-size-xl-section-header-min-width: var(--spectrum-component-height-300); + --system-menu-size-xl-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large); + --system-menu-size-xl-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-extra-large); + --system-menu-size-xl-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-extra-large); + --system-menu-size-xl-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-extra-large); + --system-menu-size-xl-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-extra-large); + --system-miller-columns-inline-size: 272px; + --system-miller-columns-padding: var(--spectrum-spacing-100); + --system-miller-columns-margin-inline-start: var(--spectrum-spacing-100); + --system-miller-columns-margin-inline-end: var(--spectrum-spacing-100); + --system-modal-confirm-exit-animation-delay: var(--spectrum-animation-duration-0); + --system-modal-fullscreen-margin: 32px; + --system-modal-max-height: 90vh; + --system-modal-max-width: 90%; + --system-modal-background-color: var(--spectrum-gray-100); + --system-modal-confirm-border-radius: var(--spectrum-corner-radius-100); + --system-modal-confirm-exit-animation-duration: var(--spectrum-animation-duration-100); + --system-modal-confirm-entry-animation-duration: var(--spectrum-animation-duration-500); + --system-modal-confirm-entry-animation-delay: var(--spectrum-animation-duration-200); + --system-modal-transition-animation-duration: var(--spectrum-animation-duration-100); + --system-opacity-checkerboard-dark: var(--spectrum-opacity-checkerboard-square-dark); + --system-opacity-checkerboard-light: var(--spectrum-opacity-checkerboard-square-light); + --system-opacity-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --system-opacity-checkerboard-position: left top; + --system-pagination-counter-margin-inline-start: var(--spectrum-pagination-item-inline-spacing); + --system-pagination-page-button-inline-spacing: var(--spectrum-pagination-item-inline-spacing); + --system-pagination-counter-color: var(--spectrum-neutral-subdued-content-color-default); + --system-pagination-counter-font-size: var(--spectrum-font-size-100); + --system-pagination-counter-line-height: var(--spectrum-line-height-100); + --system-picker-background-color-default: var(--spectrum-gray-200); + --system-picker-background-color-default-open: var(--spectrum-gray-300); + --system-picker-background-color-active: var(--spectrum-gray-400); + --system-picker-background-color-hover: var(--spectrum-gray-300); + --system-picker-background-color-hover-open: var(--spectrum-gray-300); + --system-picker-background-color-key-focus: var(--spectrum-gray-300); + --system-picker-border-color-default: transparent; + --system-picker-border-color-default-open: transparent; + --system-picker-border-color-hover: transparent; + --system-picker-border-color-hover-open: transparent; + --system-picker-border-color-active: transparent; + --system-picker-border-color-key-focus: transparent; + --system-picker-border-width: 0px; + --system-picker-font-size: var(--spectrum-font-size-100); + --system-picker-font-weight: var(--spectrum-regular-font-weight); + --system-picker-placeholder-font-style: var(--spectrum-default-font-style); + --system-picker-line-height: var(--spectrum-line-height-100); + --system-picker-block-size: var(--spectrum-component-height-100); + --system-picker-inline-size: var(--spectrum-field-width); + --system-picker-border-radius: var(--spectrum-corner-radius-100); + --system-picker-spacing-top-to-text: var(--spectrum-component-top-to-text-100); + --system-picker-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-picker-spacing-edge-to-text: var(--spectrum-component-edge-to-text-100); + --system-picker-spacing-edge-to-text-quiet: var(--spectrum-field-edge-to-text-quiet); + --system-picker-spacing-label-to: var(--spectrum-field-label-to-component); + --system-picker-spacing-text-to-icon: var(--spectrum-text-to-visual-100); + --system-picker-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-medium); + --system-picker-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-medium); + --system-picker-spacing-label-to-quiet: var(--spectrum-field-label-to-component-quiet-medium); + --system-picker-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-medium); + --system-picker-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-medium); + --system-picker-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-100); + --system-picker-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-100); + --system-picker-spacing-edge-to-disclosure-icon-quiet: var(--spectrum-picker-end-edge-to-disclousure-icon-quiet); + --system-picker-animation-duration: var(--spectrum-animation-duration-100); + --system-picker-font-color-default: var(--spectrum-neutral-content-color-default); + --system-picker-font-color-default-open: var(--spectrum-neutral-content-color-focus); + --system-picker-font-color-hover: var(--spectrum-neutral-content-color-hover); + --system-picker-font-color-hover-open: var(--spectrum-neutral-content-color-focus-hover); + --system-picker-font-color-active: var(--spectrum-neutral-content-color-down); + --system-picker-font-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-picker-icon-color-default: var(--spectrum-neutral-content-color-default); + --system-picker-icon-color-default-open: var(--spectrum-neutral-content-color-focus); + --system-picker-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-picker-icon-color-hover-open: var(--spectrum-neutral-content-color-focus-hover); + --system-picker-icon-color-active: var(--spectrum-neutral-content-color-down); + --system-picker-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-picker-border-color-error-default: var(--spectrum-negative-border-color-default); + --system-picker-border-color-error-default-open: var(--spectrum-negative-border-color-focus); + --system-picker-border-color-error-hover: var(--spectrum-negative-border-color-hover); + --system-picker-border-color-error-hover-open: var(--spectrum-negative-border-color-focus-hover); + --system-picker-border-color-error-active: var(--spectrum-negative-border-color-down); + --system-picker-border-color-error-key-focus: var(--spectrum-negative-border-color-key-focus); + --system-picker-icon-color-error: var(--spectrum-negative-visual-color); + --system-picker-background-color-disabled: var(--spectrum-disabled-background-color); + --system-picker-font-color-disabled: var(--spectrum-disabled-content-color); + --system-picker-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-picker-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-picker-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-picker-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-picker-next-to-popover-bottom-open-spacing-to-popover: var(--spectrum-component-to-menu-medium); + --system-picker-size-s-font-size: var(--spectrum-font-size-75); + --system-picker-size-s-block-size: var(--spectrum-component-height-75); + --system-picker-size-s-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-picker-size-s-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-picker-size-s-spacing-edge-to-text: var(--spectrum-component-edge-to-text-75); + --system-picker-size-s-spacing-text-to-icon: var(--spectrum-text-to-visual-75); + --system-picker-size-s-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-small); + --system-picker-size-s-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-small); + --system-picker-size-s-spacing-label-to-quiet: var(--spectrum-field-label-to-component-quiet-small); + --system-picker-size-s-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-small); + --system-picker-size-s-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-small); + --system-picker-size-s-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-75); + --system-picker-size-s-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-75); + --system-picker-size-s-next-to-popover-bottom-open-spacing-to-popover: var(--spectrum-component-to-menu-small); + --system-picker-size-l-font-size: var(--spectrum-font-size-200); + --system-picker-size-l-block-size: var(--spectrum-component-height-200); + --system-picker-size-l-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + --system-picker-size-l-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --system-picker-size-l-spacing-edge-to-text: var(--spectrum-component-edge-to-text-200); + --system-picker-size-l-spacing-text-to-icon: var(--spectrum-text-to-visual-200); + --system-picker-size-l-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-large); + --system-picker-size-l-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-large); + --system-picker-size-l-spacing-label-to-quiet: var(--spectrum-field-label-to-component-quiet-large); + --system-picker-size-l-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-large); + --system-picker-size-l-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-large); + --system-picker-size-l-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-200); + --system-picker-size-l-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-200); + --system-picker-size-l-next-to-popover-bottom-open-spacing-to-popover: var(--spectrum-component-to-menu-large); + --system-picker-size-xl-font-size: var(--spectrum-font-size-300); + --system-picker-size-xl-block-size: var(--spectrum-component-height-300); + --system-picker-size-xl-spacing-top-to-text: var(--spectrum-component-top-to-text-300); + --system-picker-size-xl-spacing-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --system-picker-size-xl-spacing-edge-to-text: var(--spectrum-component-edge-to-text-300); + --system-picker-size-xl-spacing-text-to-icon: var(--spectrum-text-to-visual-300); + --system-picker-size-xl-spacing-text-to-icon-inline-end: var(--spectrum-field-text-to-alert-icon-extra-large); + --system-picker-size-xl-spacing-icon-to-disclosure-icon: var(--spectrum-picker-visual-to-disclosure-icon-extra-large); + --system-picker-size-xl-spacing-label-to-quiet: var(--spectrum-field-label-to-component-quiet-extra-large); + --system-picker-size-xl-spacing-top-to-alert-icon: var(--spectrum-field-top-to-alert-icon-extra-large); + --system-picker-size-xl-spacing-top-to-progress-circle: var(--spectrum-field-top-to-progress-circle-extra-large); + --system-picker-size-xl-spacing-top-to-disclosure-icon: var(--spectrum-field-top-to-disclosure-icon-300); + --system-picker-size-xl-spacing-edge-to-disclosure-icon: var(--spectrum-field-end-edge-to-disclosure-icon-300); + --system-picker-size-xl-next-to-popover-bottom-open-spacing-to-popover: var(--spectrum-component-to-menu-extra-large); + --system-picker-button-background-color: var(--spectrum-gray-200); + --system-picker-button-background-color-hover: var(--spectrum-gray-300); + --system-picker-button-background-color-down: var(--spectrum-gray-400); + --system-picker-button-background-color-key-focus: var(--spectrum-gray-300); + --system-picker-button-border-color: none; + --system-picker-button-border-radius: var(--spectrum-corner-radius-75); + --system-picker-button-border-radius-rounded-sided: var(--spectrum-corner-radius-200); + --system-picker-button-border-radius-sided: var(--spectrum-corner-radius-75); + --system-picker-button-border-width: 0px; + --system-picker-button-height: var(--spectrum-component-height-100); + --system-picker-button-width: var(--spectrum-component-height-100); + --system-picker-button-gap: var(--spectrum-text-to-visual-50); + --system-picker-button-padding: var(--spectrum-in-field-button-edge-to-fill); + --system-picker-button-label-padding: var(--spectrum-text-to-visual-50); + --system-picker-button-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-100); + --system-picker-button-border-radius-rounded: var(--spectrum-corner-radius-200); + --system-picker-button-icon-color: var(--spectrum-neutral-content-color-default); + --system-picker-button-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-picker-button-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-picker-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-picker-button-font-color: var(--spectrum-neutral-content-color-default); + --system-picker-button-font-color-hover: var(--spectrum-neutral-content-color-hover); + --system-picker-button-font-color-down: var(--spectrum-neutral-content-color-down); + --system-picker-button-font-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-picker-button-font-family: var(--spectrum-sans-font-family-stack); + --system-picker-button-font-style: var(--spectrum-default-font-style); + --system-picker-button-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-picker-button-font-size: var(--spectrum-font-size-100); + --system-picker-button-background-animation-duration: var(--spectrum-animation-duration-100); + --system-picker-button-background-color-disabled: var(--spectrum-disabled-background-color); + --system-picker-button-background-color-hover-disabled: var(--spectrum-disabled-background-color); + --system-picker-button-background-color-down-disabled: var(--spectrum-disabled-background-color); + --system-picker-button-border-color-disabled: var(--spectrum-disabled-background-color); + --system-picker-button-font-color-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-font-color-hover-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-font-color-down-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-icon-color-hover-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-icon-color-down-disabled: var(--spectrum-disabled-content-color); + --system-picker-button-size-s-height: var(--spectrum-component-height-75); + --system-picker-button-size-s-width: var(--spectrum-component-height-75); + --system-picker-button-size-s-label-padding: var(--spectrum-spacing-75); + --system-picker-button-size-s-font-size: var(--spectrum-font-size-75); + --system-picker-button-size-s-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-75); + --system-picker-button-size-l-height: var(--spectrum-component-height-200); + --system-picker-button-size-l-width: var(--spectrum-component-height-200); + --system-picker-button-size-l-label-padding: var(--spectrum-text-to-visual-200); + --system-picker-button-size-l-font-size: var(--spectrum-font-size-200); + --system-picker-button-size-l-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-200); + --system-picker-button-size-xl-height: var(--spectrum-component-height-300); + --system-picker-button-size-xl-width: var(--spectrum-component-height-300); + --system-picker-button-size-xl-label-padding: var(--spectrum-text-to-visual-300); + --system-picker-button-size-xl-font-size: var(--spectrum-font-size-300); + --system-picker-button-size-xl-fill-padding: var(--spectrum-field-edge-to-disclosure-icon-300); + --system-popover-border-width: 0; + --system-popover-animation-distance: var(--spectrum-spacing-100); + --system-popover-background-color: var(--spectrum-background-layer-2-color); + --system-popover-border-color: var(--spectrum-gray-400); + --system-popover-content-area-spacing-vertical: var(--spectrum-popover-top-to-content-area); + --system-popover-shadow-horizontal: var(--spectrum-drop-shadow-x); + --system-popover-shadow-vertical: var(--spectrum-drop-shadow-y); + --system-popover-shadow-blur: var(--spectrum-drop-shadow-blur); + --system-popover-shadow-color: var(--spectrum-drop-shadow-color); + --system-popover-corner-radius: var(--spectrum-corner-radius-100); + --system-popover-pointer-width: var(--spectrum-popover-tip-width); + --system-popover-pointer-height: var(--spectrum-popover-tip-height); + --system-popover-pointer-edge-offset: calc(var(--spectrum-corner-radius-100) + var(--spectrum-popover-tip-width) / 2); + --system-popover-pointer-edge-spacing: calc(var(--system-popover-pointer-edge-offset) - var(--spectrum-popover-tip-width) / 2); + --system-progress-bar-animation-ease-in-out-indeterminate: var(--spectrum-animation-ease-in-out); + --system-progress-bar-animation-duration-indeterminate: var(--spectrum-animation-duration-2000); + --system-progress-bar-corner-radius: var(--spectrum-corner-radius-100); + --system-progress-bar-fill-size-indeterminate: 70%; + --system-progress-bar-size-2400: 192px; + --system-progress-bar-size-2500: 200px; + --system-progress-bar-size-2800: 224px; + --system-progress-bar-font-size: var(--spectrum-font-size-75); + --system-progress-bar-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-progress-bar-min-size: var(--spectrum-progress-bar-minimum-width); + --system-progress-bar-max-size: var(--spectrum-progress-bar-maximum-width); + --system-progress-bar-thickness: var(--spectrum-progress-bar-thickness-medium); + --system-progress-bar-line-height: var(--spectrum-line-height-100); + --system-progress-bar-spacing-label-to: var(--spectrum-spacing-75); + --system-progress-bar-spacing-top-to-text: var(--spectrum-component-top-to-text-100); + --system-progress-bar-spacing-label-to-text: var(--spectrum-spacing-200); + --system-progress-bar-text-color: var(--spectrum-neutral-content-color-default); + --system-progress-bar-track-color: var(--spectrum-gray-300); + --system-progress-bar-fill-color: var(--spectrum-accent-color-900); + --system-progress-bar-fill-color-positive: var(--spectrum-positive-visual-color); + --system-progress-bar-fill-color-notice: var(--spectrum-notice-visual-color); + --system-progress-bar-fill-color-negative: var(--spectrum-negative-visual-color); + --system-progress-bar-label-and-value-white: var(--spectrum-white); + --system-progress-bar-track-color-white: var(--spectrum-transparent-white-300); + --system-progress-bar-fill-color-white: var(--spectrum-white); + --system-progress-bar-size-s-size-default: var(--system-progress-bar-size-2400); + --system-progress-bar-size-s-font-size: var(--spectrum-font-size-75); + --system-progress-bar-size-s-thickness: var(--spectrum-progress-bar-thickness-small); + --system-progress-bar-size-s-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-progress-bar-size-m-size-default: var(--system-progress-bar-size-2400); + --system-progress-bar-size-m-font-size: var(--spectrum-font-size-75); + --system-progress-bar-size-m-thickness: var(--spectrum-progress-bar-thickness-large); + --system-progress-bar-size-m-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-progress-bar-size-l-size-default: var(--system-progress-bar-size-2500); + --system-progress-bar-size-l-font-size: var(--spectrum-font-size-100); + --system-progress-bar-size-l-thickness: var(--spectrum-progress-bar-thickness-large); + --system-progress-bar-size-l-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + --system-progress-bar-size-xl-size-default: var(--system-progress-bar-size-2800); + --system-progress-bar-size-xl-font-size: var(--spectrum-font-size-200); + --system-progress-bar-size-xl-thickness: var(--spectrum-progress-bar-thickness-extra-large); + --system-progress-bar-size-xl-spacing-top-to-text: var(--spectrum-component-top-to-text-300); + --system-meter-min-width: var(--spectrum-meter-minimum-width); + --system-meter-max-width: var(--spectrum-meter-maximum-width); + --system-meter-inline-size: var(--spectrum-meter-width); + --system-meter-top-to-text: var(--spectrum-component-top-to-text); + --system-meter-size-s-progressbar-thickness: var(--spectrum-meter-thickness-small); + --system-meter-size-s-progressbar-size-default: var(--system-progress-bar-size-2400); + --system-meter-size-s-progressbar-font-size: var(--spectrum-font-size-75); + --system-meter-size-s-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-meter-size-l-progressbar-thickness: var(--spectrum-meter-thickness-large); + --system-meter-size-l-progressbar-size-default: var(--system-progress-bar-size-2500); + --system-meter-size-l-progressbar-font-size: var(--spectrum-font-size-100); + --system-meter-size-l-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + --system-progress-circle-track-border-color: var(--spectrum-gray-300); + --system-progress-circle-fill-border-color: var(--spectrum-accent-content-color-default); + --system-progress-circle-track-border-color-over-background: var(--spectrum-transparent-white-300); + --system-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-900); + --system-progress-circle-size: var(--spectrum-progress-circle-size-medium); + --system-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); + --system-progress-circle-track-border-style: solid; + --system-progress-circle-small-size: var(--spectrum-progress-circle-size-small); + --system-progress-circle-small-thickness: var(--spectrum-progress-circle-thickness-small); + --system-progress-circle-medium-size: var(--spectrum-progress-circle-size-medium); + --system-progress-circle-medium-thickness: var(--spectrum-progress-circle-thickness-medium); + --system-progress-circle-large-size: var(--spectrum-progress-circle-size-large); + --system-progress-circle-large-thickness: var(--spectrum-progress-circle-thickness-large); + --system-radio-button-border-color-default: var(--spectrum-gray-800); + --system-radio-button-border-color-hover: var(--spectrum-gray-900); + --system-radio-button-border-color-down: var(--spectrum-gray-900); + --system-radio-button-border-color-focus: var(--spectrum-gray-900); + --system-radio-neutral-content-color: var(--spectrum-neutral-content-color-default); + --system-radio-neutral-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-radio-neutral-content-color-down: var(--spectrum-neutral-content-color-down); + --system-radio-neutral-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-radio-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-radio-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-radio-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-radio-disabled-content-color: var(--spectrum-disabled-content-color); + --system-radio-disabled-border-color: var(--spectrum-disabled-content-color); + --system-radio-emphasized-accent-color: var(--spectrum-accent-color-900); + --system-radio-emphasized-accent-color-hover: var(--spectrum-accent-color-1000); + --system-radio-emphasized-accent-color-down: var(--spectrum-accent-color-1100); + --system-radio-emphasized-accent-color-focus: var(--spectrum-accent-color-1000); + --system-radio-border-width: var(--spectrum-border-width-200); + --system-radio-button-background-color: var(--spectrum-gray-50); + --system-radio-button-checked-border-color-default: var(--spectrum-neutral-background-color-selected-default); + --system-radio-button-checked-border-color-hover: var(--spectrum-neutral-background-color-selected-hover); + --system-radio-button-checked-border-color-down: var(--spectrum-neutral-background-color-selected-down); + --system-radio-button-checked-border-color-focus: var(--spectrum-neutral-background-color-selected-focus); + --system-radio-text-to-control: var(--spectrum-text-to-control-100); + --system-radio-label-top-to-text: var(--spectrum-component-top-to-text-100); + --system-radio-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-radio-font-size: var(--spectrum-font-size-100); + --system-radio-line-height: var(--spectrum-line-height-100); + --system-radio-animation-duration: var(--spectrum-animation-duration-100); + --system-radio-height: var(--spectrum-component-height-100); + --system-radio-button-control-size: var(--spectrum-radio-button-control-size-medium); + --system-radio-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); + --system-radio-lang-ja-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-radio-lang-zh-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-radio-lang-ko-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-radio-size-s-height: var(--spectrum-component-height-75); + --system-radio-size-s-button-control-size: var(--spectrum-radio-button-control-size-small); + --system-radio-size-s-text-to-control: var(--spectrum-text-to-control-75); + --system-radio-size-s-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-radio-size-s-label-bottom-to-text: var(--spectrum-component-bottom-to-text-75); + --system-radio-size-s-button-top-to-control: var(--spectrum-radio-button-top-to-control-small); + --system-radio-size-s-font-size: var(--spectrum-font-size-75); + --system-radio-size-m-height: var(--spectrum-component-height-100); + --system-radio-size-m-button-control-size: var(--spectrum-radio-button-control-size-medium); + --system-radio-size-m-text-to-control: var(--spectrum-text-to-control-100); + --system-radio-size-m-label-top-to-text: var(--spectrum-component-top-to-text-100); + --system-radio-size-m-label-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-radio-size-m-button-top-to-control: var(--spectrum-radio-button-top-to-control-medium); + --system-radio-size-m-font-size: var(--spectrum-font-size-100); + --system-radio-size-l-height: var(--spectrum-component-height-200); + --system-radio-size-l-button-control-size: var(--spectrum-radio-button-control-size-large); + --system-radio-size-l-text-to-control: var(--spectrum-text-to-control-200); + --system-radio-size-l-label-top-to-text: var(--spectrum-component-top-to-text-200); + --system-radio-size-l-label-bottom-to-text: var(--spectrum-component-bottom-to-text-200); + --system-radio-size-l-button-top-to-control: var(--spectrum-radio-button-top-to-control-large); + --system-radio-size-l-font-size: var(--spectrum-font-size-200); + --system-radio-size-xl-height: var(--spectrum-component-height-300); + --system-radio-size-xl-button-control-size: var(--spectrum-radio-button-control-size-extra-large); + --system-radio-size-xl-text-to-control: var(--spectrum-text-to-control-300); + --system-radio-size-xl-label-top-to-text: var(--spectrum-component-top-to-text-300); + --system-radio-size-xl-label-bottom-to-text: var(--spectrum-component-bottom-to-text-300); + --system-radio-size-xl-button-top-to-control: var(--spectrum-radio-button-top-to-control-extra-large); + --system-radio-size-xl-font-size: var(--spectrum-font-size-300); + --system-radio-emphasized-button-checked-border-color-default: var(--spectrum-accent-color-900); + --system-radio-emphasized-button-checked-border-color-hover: var(--spectrum-accent-color-1000); + --system-radio-emphasized-button-checked-border-color-down: var(--spectrum-accent-color-1100); + --system-radio-emphasized-button-checked-border-color-focus: var(--spectrum-accent-color-1000); + --system-rating-icon-color-default: var(--spectrum-neutral-content-color-default); + --system-rating-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-rating-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-rating-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-rating-icon-height: var(--spectrum-workflow-icon-size-100); + --system-rating-icon-width: var(--spectrum-workflow-icon-size-100); + --system-rating-border-radius: var(--spectrum-corner-radius-100); + --system-rating-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-rating-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-rating-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-rating-icon-spacing-vertical-top: var(--spectrum-component-top-to-workflow-icon-100); + --system-rating-indicator-border-radius: var(--spectrum-corner-radius-75); + --system-rating-indicator-height: var(--spectrum-border-width-200); + --system-rating-emphasized-icon-color-default: var(--spectrum-accent-content-color-default); + --system-rating-emphasized-icon-color-hover: var(--spectrum-accent-content-color-hover); + --system-rating-emphasized-icon-color-down: var(--spectrum-accent-content-color-down); + --system-rating-emphasized-icon-color-key-focus: var(--spectrum-accent-content-color-key-focus); + --system-rating-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-rating-icon-count: var(--system-rating-icon-count); + --system-search-border-color-default: var(--spectrum-gray-400); + --system-search-border-color-hover: var(--spectrum-gray-500); + --system-search-border-color-focus: var(--spectrum-gray-800); + --system-search-border-color-focus-hover: var(--spectrum-gray-900); + --system-search-border-color-key-focus: var(--spectrum-gray-900); + --system-search-inline-size: var(--spectrum-field-width); + --system-search-min-inline-multiplier: var(--spectrum-search-field-minimum-width-multiplier); + --system-search-to-help-text: var(--spectrum-help-text-to-component); + --system-search-top-to-text: var(--spectrum-component-top-to-text-100); + --system-search-bottom-to-text: var(--spectrum-component-bottom-to-text-100); + --system-search-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-search-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-search-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-search-font-family: var(--spectrum-sans-font-family-stack); + --system-search-font-weight: var(--spectrum-regular-font-weight); + --system-search-font-style: var(--spectrum-default-font-style); + --system-search-line-height: var(--spectrum-line-height-100); + --system-search-color-default: var(--spectrum-neutral-content-color-default); + --system-search-color-hover: var(--spectrum-neutral-content-color-hover); + --system-search-color-focus: var(--spectrum-neutral-content-color-focus); + --system-search-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); + --system-search-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-search-border-width: var(--spectrum-border-width-100); + --system-search-background-color: var(--spectrum-gray-50); + --system-search-color-disabled: var(--spectrum-disabled-content-color); + --system-search-background-color-disabled: var(--spectrum-disabled-background-color); + --system-search-border-color-disabled: var(--spectrum-disabled-background-color); + --system-search-size-s-border-radius: calc(var(--spectrum-component-height-75) / 2); + --system-search-size-s-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-75); + --system-search-size-s-block-size: var(--spectrum-component-height-75); + --system-search-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-search-size-s-text-to-icon: var(--spectrum-text-to-visual-75); + --system-search-border-radius: calc(var(--spectrum-component-height-100) / 2); + --system-search-size-m-border-radius: calc(var(--spectrum-component-height-100) / 2); + --system-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); + --system-search-size-m-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); + --system-search-block-size: var(--spectrum-component-height-100); + --system-search-size-m-block-size: var(--spectrum-component-height-100); + --system-search-icon-size: var(--spectrum-workflow-icon-size-100); + --system-search-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-search-text-to-icon: var(--spectrum-text-to-visual-100); + --system-search-size-m-text-to-icon: var(--spectrum-text-to-visual-100); + --system-search-size-l-border-radius: calc(var(--spectrum-component-height-200) / 2); + --system-search-size-l-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-200); + --system-search-size-l-block-size: var(--spectrum-component-height-200); + --system-search-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-search-size-l-text-to-icon: var(--spectrum-text-to-visual-200); + --system-search-size-xl-border-radius: calc(var(--spectrum-component-height-300) / 2); + --system-search-size-xl-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-300); + --system-search-size-xl-block-size: var(--spectrum-component-height-300); + --system-search-size-xl-icon-size: var(--spectrum-workflow-icon-size-300); + --system-search-size-xl-text-to-icon: var(--spectrum-text-to-visual-300); + --system-search-quiet-background-color: transparent; + --system-search-quiet-background-color-disabled: transparent; + --system-search-quiet-border-color-disabled: var(--spectrum-disabled-border-color); + --system-search-quiet-border-radius: 0; + --system-search-quiet-edge-to-visual: var(--spectrum-field-edge-to-visual-quiet); + --system-side-nav-focus-ring-size: var(--spectrum-focus-indicator-thickness); + --system-side-nav-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-side-nav-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-side-nav-min-height: var(--spectrum-component-height-100); + --system-side-nav-width: 100%; + --system-side-nav-min-width: var(--spectrum-side-navigation-minimum-width); + --system-side-nav-max-width: var(--spectrum-side-navigation-maximum-width); + --system-side-nav-border-radius: var(--spectrum-corner-radius-100); + --system-side-nav-icon-size: var(--spectrum-workflow-icon-size-100); + --system-side-nav-icon-spacing: var(--spectrum-text-to-visual-100); + --system-side-nav-inline-padding: var(--spectrum-component-edge-to-text-100); + --system-side-nav-gap: var(--spectrum-side-navigation-item-to-item); + --system-side-nav-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); + --system-side-nav-top-to-label: var(--spectrum-component-top-to-text-100); + --system-side-nav-bottom-to-label: var(--spectrum-side-navigation-bottom-to-text); + --system-side-nav-start-to-content-second-level: var(--spectrum-side-navigation-second-level-edge-to-text); + --system-side-nav-start-to-content-third-level: var(--spectrum-side-navigation-third-level-edge-to-text); + --system-side-nav-start-to-content-with-icon-second-level: var(--spectrum-side-navigation-with-icon-second-level-edge-to-text); + --system-side-nav-start-to-content-with-icon-third-level: var(--spectrum-side-navigation-with-icon-third-level-edge-to-text); + --system-side-nav-heading-top-margin: var(--spectrum-side-navigation-item-to-header); + --system-side-nav-heading-bottom-margin: var(--spectrum-side-navigation-header-to-item); + --system-side-nav-background-disabled: transparent; + --system-side-nav-background-default: transparent; + --system-side-nav-background-hover: var(--spectrum-gray-200); + --system-side-nav-item-background-down: var(--spectrum-gray-300); + --system-side-nav-background-key-focus: var(--spectrum-gray-200); + --system-side-nav-item-background-default-selected: var(--spectrum-gray-200); + --system-side-nav-background-hover-selected: var(--spectrum-gray-300); + --system-side-nav-item-background-down-selected: var(--spectrum-gray-300); + --system-side-nav-background-key-focus-selected: var(--spectrum-gray-200); + --system-side-nav-header-color: var(--spectrum-gray-600); + --system-side-nav-content-disabled-color: var(--spectrum-disabled-content-color); + --system-side-nav-content-color-default: var(--spectrum-neutral-content-color-default); + --system-side-nav-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-side-nav-content-color-down: var(--spectrum-neutral-content-color-down); + --system-side-nav-content-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-side-nav-content-color-default-selected: var(--spectrum-neutral-content-color-default); + --system-side-nav-content-color-hover-selected: var(--spectrum-neutral-content-color-hover); + --system-side-nav-content-color-down-selected: var(--spectrum-neutral-content-color-down); + --system-side-nav-content-color-key-focus-selected: var(--spectrum-neutral-content-color-key-focus); + --system-side-nav-text-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-text-font-weight: var(--spectrum-regular-font-weight); + --system-side-nav-text-font-style: var(--spectrum-default-font-style); + --system-side-nav-text-font-size: var(--spectrum-font-size-100); + --system-side-nav-text-line-height: var(--spectrum-line-height-100); + --system-side-nav-top-level-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-top-level-font-weight: var(--spectrum-bold-font-weight); + --system-side-nav-top-level-font-style: var(--spectrum-default-font-style); + --system-side-nav-top-level-font-size: var(--spectrum-font-size-100); + --system-side-nav-top-level-line-height: var(--spectrum-line-height-100); + --system-side-nav-header-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-header-font-weight: var(--spectrum-medium-font-weight); + --system-side-nav-header-font-style: var(--spectrum-default-font-style); + --system-side-nav-header-font-size: var(--spectrum-font-size-75); + --system-side-nav-header-line-height: var(--spectrum-line-height-100); + --system-side-nav-lang-ja-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ja-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ja-header-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-header-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-header-line-height: var(--spectrum-cjk-line-height-100); + --system-slider-track-color: var(--spectrum-gray-200); + --system-slider-track-fill-color: var(--spectrum-gray-600); + --system-slider-ramp-track-color: var(--spectrum-gray-300); + --system-slider-ramp-track-color-disabled: var(--spectrum-gray-200); + --system-slider-handle-background-color: var(--spectrum-gray-50); + --system-slider-handle-background-color-disabled: var(--spectrum-gray-50); + --system-slider-ramp-handle-background-color: var(--spectrum-gray-50); + --system-slider-ticks-handle-background-color: var(--spectrum-gray-50); + --system-slider-handle-border-color: var(--spectrum-gray-800); + --system-slider-handle-disabled-background-color: var(--spectrum-gray-50); + --system-slider-tick-mark-color: var(--spectrum-gray-200); + --system-slider-handle-border-color-hover: var(--spectrum-gray-900); + --system-slider-handle-border-color-down: var(--spectrum-gray-900); + --system-slider-handle-border-color-key-focus: var(--spectrum-gray-900); + --system-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); + --system-slider-value-inline-size: 18px; + --system-slider-cjk-line-height: var(--spectrum-cjk-line-height-100); + --system-slider-min-size: var(--spectrum-spacing-900); + --system-slider-track-corner-radius: var(--spectrum-corner-radius-75); + --system-slider-label-margin-start: var(--spectrum-spacing-300); + --system-slider-handle-border-width: var(--spectrum-border-width-200); + --system-slider-handle-margin-left: calc(var(--system-slider-handle-size) / -2); + --system-slider-controls-margin: calc(var(--system-slider-handle-size) / 2); + --system-slider-track-margin-offset: calc(var(--system-slider-controls-margin) * -1); + --system-slider-track-middle-handleoffset: calc(var(--spectrum-slider-handle-gap) + var(--system-slider-handle-size) / 2); + --system-slider-input-top-size: calc(var(--system-slider-handle-size) / -2 / 4); + --system-slider-track-fill-thickness: var(--spectrum-slider-track-thickness); + --system-slider-tick-mark-width: var(--spectrum-border-width-200); + --system-slider-tick-mark-border-radius: 2px; + --system-slider-tick-handle-background-color: var(--spectrum-gray-75); + --system-slider-track-color-disabled: var(--spectrum-disabled-background-color); + --system-slider-track-fill-color-disabled: var(--spectrum-disabled-background-color); + --system-slider-handle-border-color-disabled: var(--spectrum-disabled-border-color); + --system-slider-label-text-color: var(--spectrum-neutral-content-color-default); + --system-slider-tick-label-color: var(--spectrum-neutral-content-color-default); + --system-slider-label-text-color-disabled: var(--spectrum-disabled-content-color); + --system-slider-tick-mark-color-disabled: var(--spectrum-disabled-background-color); + --system-slider-ramp-handle-border-color-active: var(--spectrum-gray-75); + --system-slider-input-left: calc(var(--system-slider-handle-margin-left) / 4); + --system-slider-track-handleoffset: var(--spectrum-slider-handle-gap); + --system-slider-range-track-reset: 0; + --system-slider-size-s-font-size: var(--spectrum-font-size-75); + --system-slider-size-s-handle-size: var(--spectrum-slider-handle-size-small); + --system-slider-size-s-control-height: var(--spectrum-component-height-75); + --system-slider-size-s-handle-border-radius: var(--spectrum-corner-radius-200); + --system-slider-size-s-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-small); + --system-slider-size-s-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-slider-size-s-control-to-field-label: var(--spectrum-slider-control-to-field-label-small); + --system-slider-size-s-value-side-padding-inline: var(--spectrum-spacing-100); + --system-slider-font-size: var(--spectrum-font-size-75); + --system-slider-size-m-font-size: var(--spectrum-font-size-75); + --system-slider-handle-size: var(--spectrum-slider-handle-size-medium); + --system-slider-size-m-handle-size: var(--spectrum-slider-handle-size-medium); + --system-slider-control-height: var(--spectrum-component-height-100); + --system-slider-size-m-control-height: var(--spectrum-component-height-100); + --system-slider-handle-border-radius: var(--spectrum-corner-radius-200); + --system-slider-size-m-handle-border-radius: var(--spectrum-corner-radius-200); + --system-slider-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-medium); + --system-slider-size-m-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-medium); + --system-slider-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-slider-size-m-label-top-to-text: var(--spectrum-component-top-to-text-75); + --system-slider-control-to-field-label: var(--spectrum-slider-control-to-field-label-medium); + --system-slider-size-m-control-to-field-label: var(--spectrum-slider-control-to-field-label-medium); + --system-slider-value-side-padding-inline: var(--spectrum-spacing-200); + --system-slider-size-m-value-side-padding-inline: var(--spectrum-spacing-200); + --system-slider-size-l-font-size: var(--spectrum-font-size-100); + --system-slider-size-l-handle-size: var(--spectrum-slider-handle-size-large); + --system-slider-size-l-control-height: var(--spectrum-component-height-200); + --system-slider-size-l-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); + --system-slider-size-l-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-large); + --system-slider-size-l-label-top-to-text: var(--spectrum-component-top-to-text-100); + --system-slider-size-l-control-to-field-label: var(--spectrum-slider-control-to-field-label-large); + --system-slider-size-l-value-side-padding-inline: var(--spectrum-spacing-200); + --system-slider-size-l-value-inline-size: 18px; + --system-slider-size-xl-font-size: var(--spectrum-font-size-200); + --system-slider-size-xl-handle-size: var(--spectrum-slider-handle-size-extra-large); + --system-slider-size-xl-control-height: var(--spectrum-component-height-300); + --system-slider-size-xl-handle-border-radius: calc(var(--spectrum-corner-radius-200) * 4); + --system-slider-size-xl-handle-border-width-down: var(--spectrum-slider-handle-border-width-down-extra-large); + --system-slider-size-xl-label-top-to-text: var(--spectrum-component-top-to-text-200); + --system-slider-size-xl-control-to-field-label: var(--spectrum-slider-control-to-field-label-extra-large); + --system-slider-size-xl-value-side-padding-inline: var(--spectrum-spacing-200); + --system-slider-size-xl-value-inline-size: 22px; + --system-split-view-vertical-width: 100%; + --system-split-view-vertical-gripper-width: 50%; + --system-split-view-vertical-gripper-outer-width: 100%; + --system-split-view-vertical-gripper-reset: 0; + --system-split-view-background-color: var(--spectrum-gray-100); + --system-split-view-content-color: var(--spectrum-body-color); + --system-split-view-handle-background-color: var(--spectrum-gray-300); + --system-split-view-handle-background-color-hover: var(--spectrum-gray-400); + --system-split-view-handle-background-color-down: var(--spectrum-gray-800); + --system-split-view-handle-background-color-focus: var(--spectrum-focus-indicator-color); + --system-split-view-handle-width: var(--spectrum-border-width-200); + --system-split-view-gripper-border-radius: var(--spectrum-corner-radius-75); + --system-split-view-gripper-width: var(--spectrum-border-width-400); + --system-split-view-gripper-height: 16px; + --system-split-view-gripper-border-width-horizontal: 3px; + --system-split-view-gripper-border-width-vertical: var(--spectrum-border-width-400); + --system-status-light-corner-radius: 50%; + --system-status-light-font-weight: 400; + --system-status-light-border-width: var(--spectrum-border-width-100); + --system-status-light-height: var(--spectrum-component-height-100); + --system-status-light-dot-size: var(--spectrum-status-light-dot-size-medium); + --system-status-light-line-height: var(--spectrum-line-height-100); + --system-status-light-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-status-light-font-size: var(--spectrum-font-size-100); + --system-status-light-spacing-dot-to-label: var(--spectrum-text-to-visual-100); + --system-status-light-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-medium); + --system-status-light-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --system-status-light-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); + --system-status-light-content-color-default: var(--spectrum-neutral-content-color-default); + --system-status-light-subdued-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-status-light-semantic-neutral-color: var(--spectrum-neutral-visual-color); + --system-status-light-semantic-accent-color: var(--spectrum-accent-visual-color); + --system-status-light-semantic-negative-color: var(--spectrum-negative-visual-color); + --system-status-light-semantic-info-color: var(--spectrum-informative-visual-color); + --system-status-light-semantic-notice-color: var(--spectrum-notice-visual-color); + --system-status-light-semantic-positive-color: var(--spectrum-positive-visual-color); + --system-status-light-nonsemantic-gray-color: var(--spectrum-gray-visual-color); + --system-status-light-nonsemantic-red-color: var(--spectrum-red-visual-color); + --system-status-light-nonsemantic-orange-color: var(--spectrum-orange-visual-color); + --system-status-light-nonsemantic-yellow-color: var(--spectrum-yellow-visual-color); + --system-status-light-nonsemantic-chartreuse-color: var(--spectrum-chartreuse-visual-color); + --system-status-light-nonsemantic-celery-color: var(--spectrum-celery-visual-color); + --system-status-light-nonsemantic-green-color: var(--spectrum-green-visual-color); + --system-status-light-nonsemantic-seafoam-color: var(--spectrum-seafoam-visual-color); + --system-status-light-nonsemantic-cyan-color: var(--spectrum-cyan-visual-color); + --system-status-light-nonsemantic-blue-color: var(--spectrum-blue-visual-color); + --system-status-light-nonsemantic-indigo-color: var(--spectrum-indigo-visual-color); + --system-status-light-nonsemantic-purple-color: var(--spectrum-purple-visual-color); + --system-status-light-nonsemantic-fuchsia-color: var(--spectrum-fuchsia-visual-color); + --system-status-light-nonsemantic-magenta-color: var(--spectrum-magenta-visual-color); + --system-status-light-size-s-height: var(--spectrum-component-height-75); + --system-status-light-size-s-dot-size: var(--spectrum-status-light-dot-size-small); + --system-status-light-size-s-font-size: var(--spectrum-font-size-75); + --system-status-light-size-s-spacing-dot-to-label: var(--spectrum-text-to-visual-75); + --system-status-light-size-s-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-small); + --system-status-light-size-s-spacing-top-to-label: var(--spectrum-component-top-to-text-75); + --system-status-light-size-s-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-75); + --system-status-light-size-m-height: var(--spectrum-component-height-100); + --system-status-light-size-m-dot-size: var(--spectrum-status-light-dot-size-medium); + --system-status-light-size-m-font-size: var(--spectrum-font-size-100); + --system-status-light-size-m-spacing-dot-to-label: var(--spectrum-text-to-visual-100); + --system-status-light-size-m-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-medium); + --system-status-light-size-m-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --system-status-light-size-m-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); + --system-status-light-size-l-height: var(--spectrum-component-height-200); + --system-status-light-size-l-dot-size: var(--spectrum-status-light-dot-size-large); + --system-status-light-size-l-font-size: var(--spectrum-font-size-200); + --system-status-light-size-l-spacing-dot-to-label: var(--spectrum-text-to-visual-200); + --system-status-light-size-l-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-large); + --system-status-light-size-l-spacing-top-to-label: var(--spectrum-component-top-to-text-200); + --system-status-light-size-l-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-200); + --system-status-light-size-xl-height: var(--spectrum-component-height-300); + --system-status-light-size-xl-dot-size: var(--spectrum-status-light-dot-size-extra-large); + --system-status-light-size-xl-font-size: var(--spectrum-font-size-300); + --system-status-light-size-xl-spacing-dot-to-label: var(--spectrum-text-to-visual-300); + --system-status-light-size-xl-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-extra-large); + --system-status-light-size-xl-spacing-top-to-label: var(--spectrum-component-top-to-text-300); + --system-status-light-size-xl-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-300); + --system-steplist-step-width: 80px; + --system-steplist-marker-diameter: 8px; + --system-steplist-marker-hit-area: 20px; + --system-steplist-segment-height: 2px; + --system-steplist-top-padding: 22px; + --system-steplist-small-top-padding: 11px; + --system-steplist-side-padding: 60px; + --system-steplist-label-label-offset: 10px; + --system-steplist-label-text-size: 12px; + --system-steplist-current-label-text-color: var(--spectrum-gray-800); + --system-steplist-current-marker-color: var(--spectrum-gray-800); + --system-steplist-complete-label-text-color: var(--spectrum-gray-700); + --system-steplist-incomplete-label-color: var(--spectrum-gray-600); + --system-steplist-complete-marker-background-color: var(--spectrum-gray-600); + --system-steplist-incomplete-marker-border-color: var(--spectrum-gray-300); + --system-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-300); + --system-steplist-complete-segment-border-block-end-color: var(--spectrum-gray-600); + --system-stepper-border-width: var(--spectrum-border-width-200); + --system-stepper-border-color: var(--spectrum-gray-400); + --system-stepper-border-color-hover: var(--spectrum-gray-500); + --system-stepper-border-color-focus: var(--spectrum-gray-800); + --system-stepper-border-color-focus-hover: var(--spectrum-gray-900); + --system-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); + --system-stepper-border-radius: var(--spectrum-corner-radius-100); + --system-stepper-min-width-multiplier: var(--spectrum-text-field-minimum-width-multiplier); + --system-stepper-animation-duration: var(--spectrum-animation-duration-100); + --system-stepper-buttons-border-style: solid; + --system-stepper-buttons-border-width: var(--spectrum-border-width-200); + --system-stepper-buttons-border-color: transparent; + --system-stepper-buttons-background-color: var(--spectrum-gray-50); + --system-stepper-buttons-border-color-hover: transparent; + --system-stepper-buttons-border-color-focus: transparent; + --system-stepper-buttons-border-color-keyboard-focus: transparent; + --system-stepper-button-padding: var(--spectrum-in-field-button-edge-to-fill); + --system-stepper-button-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); + --system-stepper-button-border-width: 0; + --system-stepper-button-background-color-focus: var(--spectrum-gray-400); + --system-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-300); + --system-stepper-border-color-invalid: transparent; + --system-stepper-border-color-hover-invalid: transparent; + --system-stepper-border-color-focus-invalid: transparent; + --system-stepper-border-color-focus-hover-invalid: transparent; + --system-stepper-border-color-keyboard-focus-invalid: transparent; + --system-stepper-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-stepper-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-stepper-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-stepper-button-border-color-quiet: transparent; + --system-stepper-button-border-color-disabled: var(--spectrum-gray-200); + --system-stepper-button-border-width-disabled: 0; + --system-stepper-buttons-background-color-disabled: var(--spectrum-disabled-background-color); + --system-stepper-size-s-button-width: var(--spectrum-in-field-button-width-stacked-small); + --system-stepper-size-s-height: var(--spectrum-component-height-75); + --system-stepper-button-width: var(--spectrum-in-field-button-width-stacked-medium); + --system-stepper-size-m-button-width: var(--spectrum-in-field-button-width-stacked-medium); + --system-stepper-height: var(--spectrum-component-height-100); + --system-stepper-size-m-height: var(--spectrum-component-height-100); + --system-stepper-size-l-button-width: var(--spectrum-in-field-button-width-stacked-large); + --system-stepper-size-l-height: var(--spectrum-component-height-200); + --system-stepper-size-xl-button-width: var(--spectrum-in-field-button-width-stacked-extra-large); + --system-stepper-size-xl-height: var(--spectrum-component-height-300); + --system-swatch-border-radius: var(--spectrum-corner-radius-100); + --system-swatch-focus-indicator-border-radius: var(--spectrum-corner-radius-200); + --system-swatch-border-thickness: var(--spectrum-border-width-100); + --system-swatch-border-thickness-selected: var(--spectrum-border-width-200); + --system-swatch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-swatch-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-swatch-border-color-opacity: 0.51; + --system-swatch-border-color-light-opacity: 0.2; + --system-swatch-border-color: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-opacity)); + --system-swatch-icon-border-color: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-opacity)); + --system-swatch-border-color-light: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-light-opacity)); + --system-swatch-border-color-selected: var(--spectrum-gray-900); + --system-swatch-inner-border-color-selected: var(--spectrum-gray-50); + --system-swatch-disabled-icon-color: var(--spectrum-gray-50); + --system-swatch-dash-icon-color: var(--spectrum-gray-800); + --system-swatch-slash-icon-color: var(--spectrum-red-900); + --system-swatch-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-swatch-size-xs-size: var(--spectrum-swatch-size-extra-small); + --system-swatch-size-xs-disabled-icon-size: var(--spectrum-workflow-icon-size-50); + --system-swatch-size-xs-slash-thickness: var(--spectrum-swatch-slash-thickness-extra-small); + --system-swatch-size-s-size: var(--spectrum-swatch-size-small); + --system-swatch-size-s-disabled-icon-size: var(--spectrum-workflow-icon-size-75); + --system-swatch-size-s-slash-thickness: var(--spectrum-swatch-slash-thickness-small); + --system-swatch-size: var(--spectrum-swatch-size-medium); + --system-swatch-size-m-size: var(--spectrum-swatch-size-medium); + --system-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-100); + --system-swatch-size-m-disabled-icon-size: var(--spectrum-workflow-icon-size-100); + --system-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-medium); + --system-swatch-size-m-slash-thickness: var(--spectrum-swatch-slash-thickness-medium); + --system-swatch-size-l-size: var(--spectrum-swatch-size-large); + --system-swatch-size-l-disabled-icon-size: var(--spectrum-workflow-icon-size-200); + --system-swatch-size-l-slash-thickness: var(--spectrum-swatch-slash-thickness-large); + --system-swatch-group-spacing-compact: var(--spectrum-spacing-50); + --system-swatch-group-spacing-regular: var(--spectrum-spacing-75); + --system-swatch-group-spacing-spacious: var(--spectrum-spacing-100); + --system-switch-handle-border-color-default: var(--spectrum-gray-800); + --system-switch-handle-border-color-hover: var(--spectrum-gray-900); + --system-switch-handle-border-color-down: var(--spectrum-gray-900); + --system-switch-handle-border-color-focus: var(--spectrum-gray-900); + --system-switch-handle-border-color-selected-default: var(--spectrum-gray-800); + --system-switch-handle-border-color-selected-hover: var(--spectrum-gray-900); + --system-switch-handle-border-color-selected-down: var(--spectrum-gray-900); + --system-switch-handle-border-color-selected-focus: var(--spectrum-gray-900); + --system-switch-label-color-default: var(--spectrum-neutral-content-color-default); + --system-switch-label-color-hover: var(--spectrum-neutral-content-color-hover); + --system-switch-label-color-down: var(--spectrum-neutral-content-color-down); + --system-switch-label-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-switch-label-color-disabled: var(--spectrum-disabled-content-color); + --system-switch-background-color: var(--spectrum-gray-300); + --system-switch-background-color-disabled: var(--spectrum-gray-300); + --system-switch-background-color-selected-disabled: var(--spectrum-disabled-content-color); + --system-switch-background-color-selected-default: var(--spectrum-neutral-background-color-selected-default); + --system-switch-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); + --system-switch-background-color-selected-down: var(--spectrum-neutral-background-color-selected-down); + --system-switch-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); + --system-switch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-switch-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-switch-handle-background-color: var(--spectrum-gray-75); + --system-switch-handle-border-color-disabled: var(--spectrum-disabled-content-color); + --system-switch-disabled-label-color-default: var(--spectrum-disabled-content-color); + --system-switch-emphasized-background-color-selected-default: var(--spectrum-accent-color-900); + --system-switch-emphasized-background-color-selected-hover: var(--spectrum-accent-color-1000); + --system-switch-emphasized-background-color-selected-down: var(--spectrum-accent-color-1100); + --system-switch-emphasized-background-color-selected-focus: var(--spectrum-accent-color-1000); + --system-switch-emphasized-handle-border-color-selected-default: var(--spectrum-accent-color-900); + --system-switch-emphasized-handle-border-color-selected-hover: var(--spectrum-accent-color-1000); + --system-switch-emphasized-handle-border-color-selected-down: var(--spectrum-accent-color-1100); + --system-switch-emphasized-handle-border-color-selected-focus: var(--spectrum-accent-color-1000); + --system-switch-size-s-min-height: var(--spectrum-component-height-75); + --system-switch-size-s-control-width: var(--spectrum-switch-control-width-small); + --system-switch-size-s-control-height: var(--spectrum-switch-control-height-small); + --system-switch-size-s-control-label-spacing: var(--spectrum-text-to-control-75); + --system-switch-size-s-spacing-top-to-control: var(--spectrum-switch-top-to-control-small); + --system-switch-size-s-spacing-top-to-label: var(--spectrum-component-top-to-text-75); + --system-switch-size-s-font-size: var(--spectrum-font-size-75); + --system-switch-size-m-min-height: var(--spectrum-component-height-100); + --system-switch-size-m-control-width: var(--spectrum-switch-control-width-medium); + --system-switch-size-m-control-height: var(--spectrum-switch-control-height-medium); + --system-switch-size-m-control-label-spacing: var(--spectrum-text-to-control-100); + --system-switch-size-m-spacing-top-to-control: var(--spectrum-switch-top-to-control-medium); + --system-switch-size-m-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --system-switch-size-m-font-size: var(--spectrum-font-size-100); + --system-switch-size-l-min-height: var(--spectrum-component-height-200); + --system-switch-size-l-control-width: var(--spectrum-switch-control-width-large); + --system-switch-size-l-control-height: var(--spectrum-switch-control-height-large); + --system-switch-size-l-control-label-spacing: var(--spectrum-text-to-control-200); + --system-switch-size-l-spacing-top-to-control: var(--spectrum-switch-top-to-control-large); + --system-switch-size-l-spacing-top-to-label: var(--spectrum-component-top-to-text-200); + --system-switch-size-l-font-size: var(--spectrum-font-size-200); + --system-switch-size-xl-min-height: var(--spectrum-component-height-300); + --system-switch-size-xl-control-width: var(--spectrum-switch-control-width-extra-large); + --system-switch-size-xl-control-height: var(--spectrum-switch-control-height-extra-large); + --system-switch-size-xl-control-label-spacing: var(--spectrum-text-to-control-300); + --system-switch-size-xl-spacing-top-to-control: var(--spectrum-switch-top-to-control-extra-large); + --system-switch-size-xl-spacing-top-to-label: var(--spectrum-component-top-to-text-300); + --system-switch-size-xl-font-size: var(--spectrum-font-size-300); + --system-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-medium); + --system-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-medium); + --system-table-min-header-height: var(--spectrum-component-height-100); + --system-table-min-row-height: var(--spectrum-table-row-height-medium-regular); + --system-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-regular); + --system-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-regular); + --system-table-cell-inline-space: var(--spectrum-table-edge-to-content); + --system-table-border-radius: var(--spectrum-corner-radius-100); + --system-table-border-width: var(--spectrum-table-border-divider-width); + --system-table-outer-border-inline-width: var(--spectrum-table-border-divider-width); + --system-table-icon-to-text: var(--spectrum-text-to-visual-100); + --system-table-default-vertical-align: top; + --system-table-header-vertical-align: middle; + --system-table-header-font-weight: var(--spectrum-bold-font-weight); + --system-table-row-font-family: var(--spectrum-sans-font-family-stack); + --system-table-row-font-weight: var(--spectrum-regular-font-weight); + --system-table-row-font-style: var(--spectrum-default-font-style); + --system-table-row-font-size: var(--spectrum-font-size-100); + --system-table-row-line-height: var(--spectrum-line-height-100); + --system-table-border-color: var(--spectrum-gray-300); + --system-table-divider-color: var(--spectrum-gray-300); + --system-table-header-background-color: var(--spectrum-transparent-white-100); + --system-table-header-text-color: var(--spectrum-body-color); + --system-table-row-background-color: var(--spectrum-gray-50); + --system-table-row-text-color: var(--spectrum-neutral-content-color-default); + --system-table-selected-row-background-color: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity)); + --system-table-selected-row-background-color-non-emphasized: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized)); + --system-table-row-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-hover-opacity)); + --system-table-row-active-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-down-opacity)); + --system-table-selected-row-background-color-focus: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity-hover)); + --system-table-selected-row-background-color-non-emphasized-focus: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized-hover)); + --system-table-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-table-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-table-icon-color-active: var(--spectrum-neutral-subdued-content-color-down); + --system-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-focus); + --system-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-focus-hover); + --system-table-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-medium); + --system-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-regular); + --system-table-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-table-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-table-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color-rgb), var(--spectrum-drop-zone-background-color-opacity)); + --system-table-drop-zone-outline-color: var(--spectrum-accent-visual-color); + --system-table-transition-duration: var(--spectrum-animation-duration-100); + --system-table-summary-row-font-weight: var(--spectrum-bold-font-weight); + --system-table-summary-row-background-color: var(--spectrum-gray-200); + --system-table-section-header-min-height: var(--spectrum-table-section-header-row-height-medium); + --system-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-100); + --system-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-100); + --system-table-section-header-font-weight: var(--spectrum-bold-font-weight); + --system-table-section-header-background-color: var(--spectrum-gray-200); + --system-table-collapsible-tier-indent: var(--spectrum-spacing-300); + --system-table-collapsible-disclosure-inline-spacing: 0px; + --system-table-disclosure-icon-size: var(--spectrum-component-height-100); + --system-table-collapsible-icon-animation-duration: var(--spectrum-animation-duration-100); + --system-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --system-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-regular); + --system-table-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-cell-background-color: var(--system-table-row-background-color); + --system-table-selected-cell-background-color: var(--system-table-selected-row-background-color-non-emphasized); + --system-table-selected-cell-background-color-focus: var(--system-table-selected-row-background-color-non-emphasized-focus); + --system-table-size-s-min-header-height: var(--spectrum-component-height-100); + --system-table-size-s-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-small); + --system-table-size-s-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-small); + --system-table-size-s-min-row-height: var(--spectrum-table-row-height-small-regular); + --system-table-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-regular); + --system-table-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-regular); + --system-table-size-s-icon-to-text: var(--spectrum-text-to-visual-100); + --system-table-size-s-row-font-size: var(--spectrum-font-size-75); + --system-table-size-s-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-small); + --system-table-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-regular); + --system-table-size-s-section-header-min-height: var(--spectrum-table-section-header-row-height-small); + --system-table-size-s-section-header-block-start-spacing: var(--spectrum-component-top-to-text-75); + --system-table-size-s-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-75); + --system-table-size-s-disclosure-icon-size: var(--spectrum-component-height-75); + --system-table-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-regular); + --system-table-size-s-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --system-table-size-s-thumbnail-size: var(--spectrum-thumbnail-size-200); + --system-table-size-l-min-header-height: var(--spectrum-component-height-200); + --system-table-size-l-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-large); + --system-table-size-l-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-large); + --system-table-size-l-min-row-height: var(--spectrum-table-row-height-large-regular); + --system-table-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-regular); + --system-table-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-regular); + --system-table-size-l-icon-to-text: var(--spectrum-text-to-visual-200); + --system-table-size-l-row-font-size: var(--spectrum-font-size-200); + --system-table-size-l-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-large); + --system-table-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-regular); + --system-table-size-l-section-header-min-height: var(--spectrum-table-section-header-row-height-large); + --system-table-size-l-section-header-block-start-spacing: var(--spectrum-component-top-to-text-200); + --system-table-size-l-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-200); + --system-table-size-l-disclosure-icon-size: var(--spectrum-component-height-200); + --system-table-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-regular); + --system-table-size-l-thumbnail-to-text: var(--spectrum-text-to-visual-200); + --system-table-size-l-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-size-xl-min-header-height: var(--spectrum-component-height-300); + --system-table-size-xl-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-extra-large); + --system-table-size-xl-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-extra-large); + --system-table-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-regular); + --system-table-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-regular); + --system-table-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-regular); + --system-table-size-xl-icon-to-text: var(--spectrum-text-to-visual-300); + --system-table-size-xl-row-font-size: var(--spectrum-font-size-300); + --system-table-size-xl-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-extra-large); + --system-table-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-regular); + --system-table-size-xl-section-header-min-height: var(--spectrum-table-section-header-row-height-extra-large); + --system-table-size-xl-section-header-block-start-spacing: var(--spectrum-component-top-to-text-300); + --system-table-size-xl-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-300); + --system-table-size-xl-disclosure-icon-size: var(--spectrum-component-height-300); + --system-table-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-regular); + --system-table-size-xl-thumbnail-to-text: var(--spectrum-text-to-visual-300); + --system-table-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-700); + --system-table-compact-min-row-height: var(--spectrum-table-row-height-medium-compact); + --system-table-compact-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-compact); + --system-table-compact-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-compact); + --system-table-compact-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-compact); + --system-table-compact-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-compact); + --system-table-compact-thumbnail-size: var(--spectrum-thumbnail-size-200); + --system-table-compact-size-s-min-row-height: var(--spectrum-table-row-height-small-compact); + --system-table-compact-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-compact); + --system-table-compact-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-compact); + --system-table-compact-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-compact); + --system-table-compact-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-compact); + --system-table-compact-size-s-thumbnail-size: var(--spectrum-thumbnail-size-50); + --system-table-compact-size-l-min-row-height: var(--spectrum-table-row-height-large-compact); + --system-table-compact-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-compact); + --system-table-compact-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-compact); + --system-table-compact-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-compact); + --system-table-compact-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-compact); + --system-table-compact-size-l-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-compact-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-compact); + --system-table-compact-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-compact); + --system-table-compact-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-compact); + --system-table-compact-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-compact); + --system-table-compact-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-compact); + --system-table-compact-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-spacious-min-row-height: var(--spectrum-table-row-height-medium-spacious); + --system-table-spacious-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-spacious); + --system-table-spacious-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-spacious); + --system-table-spacious-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-spacious); + --system-table-spacious-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-spacious); + --system-table-spacious-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-spacious-size-s-min-row-height: var(--spectrum-table-row-height-small-spacious); + --system-table-spacious-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-spacious); + --system-table-spacious-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-spacious); + --system-table-spacious-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-spacious); + --system-table-spacious-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-spacious); + --system-table-spacious-size-s-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-spacious-size-l-min-row-height: var(--spectrum-table-row-height-large-spacious); + --system-table-spacious-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-spacious); + --system-table-spacious-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-spacious); + --system-table-spacious-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-spacious); + --system-table-spacious-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-spacious); + --system-table-spacious-size-l-thumbnail-size: var(--spectrum-thumbnail-size-700); + --system-table-spacious-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-spacious); + --system-table-spacious-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-spacious); + --system-table-spacious-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-spacious); + --system-table-spacious-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-spacious); + --system-table-spacious-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious); + --system-table-spacious-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-800); + --system-table-emphasized-selected-cell-background-color: var(--system-table-selected-row-background-color); + --system-table-emphasized-selected-cell-background-color-focus: var(--system-table-selected-row-background-color-focus); + --system-table-quiet-border-radius: 0px; + --system-table-quiet-outer-border-inline-width: 0px; + --system-table-quiet-header-background-color: var(--spectrum-transparent-white-100); + --system-table-quiet-row-background-color: var(--spectrum-transparent-white-100); + --system-tabs-font-weight: var(--spectrum-bold-font-weight); + --system-tabs-item-height: var(--spectrum-tab-item-height-medium); + --system-tabs-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-medium); + --system-tabs-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-medium); + --system-tabs-start-to-edge: var(--spectrum-tab-item-start-to-edge-medium); + --system-tabs-top-to-text: var(--spectrum-tab-item-top-to-text-medium); + --system-tabs-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-medium); + --system-tabs-icon-size: var(--spectrum-workflow-icon-size-75); + --system-tabs-icon-to-text: var(--spectrum-text-to-visual-100); + --system-tabs-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-medium); + --system-tabs-color: var(--spectrum-neutral-subdued-content-color-default); + --system-tabs-color-selected: var(--spectrum-neutral-subdued-content-color-down); + --system-tabs-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-tabs-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-tabs-color-disabled: var(--spectrum-gray-500); + --system-tabs-font-family: var(--spectrum-sans-font-family-stack); + --system-tabs-font-style: var(--spectrum-default-font-style); + --system-tabs-font-size: var(--spectrum-font-size-100); + --system-tabs-line-height: var(--spectrum-line-height-100); + --system-tabs-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-tabs-focus-indicator-border-radius: var(--spectrum-corner-radius-100); + --system-tabs-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-medium); + --system-tabs-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-tabs-selection-indicator-color: var(--spectrum-neutral-subdued-content-color-down); + --system-tabs-list-background-direction: top; + --system-tabs-divider-background-color: var(--spectrum-gray-300); + --system-tabs-divider-size: var(--spectrum-border-width-200); + --system-tabs-divider-border-radius: 1px; + --system-tabs-animation-duration: var(--spectrum-animation-duration-100); + --system-tabs-animation-ease: var(--spectrum-animation-ease-in-out); + --system-tabs-size-s-item-height: var(--spectrum-tab-item-height-small); + --system-tabs-size-s-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-small); + --system-tabs-size-s-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-small); + --system-tabs-size-s-start-to-edge: var(--spectrum-tab-item-start-to-edge-small); + --system-tabs-size-s-top-to-text: var(--spectrum-tab-item-top-to-text-small); + --system-tabs-size-s-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-small); + --system-tabs-size-s-icon-size: var(--spectrum-workflow-icon-size-50); + --system-tabs-size-s-icon-to-text: var(--spectrum-text-to-visual-75); + --system-tabs-size-s-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-small); + --system-tabs-size-s-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-small); + --system-tabs-size-s-font-size: var(--spectrum-font-size-75); + --system-tabs-size-l-item-height: var(--spectrum-tab-item-height-large); + --system-tabs-size-l-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-large); + --system-tabs-size-l-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-large); + --system-tabs-size-l-start-to-edge: var(--spectrum-tab-item-start-to-edge-large); + --system-tabs-size-l-top-to-text: var(--spectrum-tab-item-top-to-text-large); + --system-tabs-size-l-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-large); + --system-tabs-size-l-icon-size: var(--spectrum-workflow-icon-size-100); + --system-tabs-size-l-icon-to-text: var(--spectrum-text-to-visual-200); + --system-tabs-size-l-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-large); + --system-tabs-size-l-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-large); + --system-tabs-size-l-font-size: var(--spectrum-font-size-200); + --system-tabs-size-xl-item-height: var(--spectrum-tab-item-height-extra-large); + --system-tabs-size-xl-item-horizontal-spacing: var(--spectrum-tab-item-to-tab-item-horizontal-extra-large); + --system-tabs-size-xl-item-vertical-spacing: var(--spectrum-tab-item-to-tab-item-vertical-extra-large); + --system-tabs-size-xl-start-to-edge: var(--spectrum-tab-item-start-to-edge-extra-large); + --system-tabs-size-xl-top-to-text: var(--spectrum-tab-item-top-to-text-extra-large); + --system-tabs-size-xl-bottom-to-text: var(--spectrum-tab-item-bottom-to-text-extra-large); + --system-tabs-size-xl-icon-size: var(--spectrum-workflow-icon-size-200); + --system-tabs-size-xl-icon-to-text: var(--spectrum-text-to-visual-300); + --system-tabs-size-xl-top-to-icon: var(--spectrum-tab-item-top-to-workflow-icon-extra-large); + --system-tabs-size-xl-focus-indicator-gap: var(--spectrum-tab-item-focus-indicator-gap-extra-large); + --system-tabs-size-xl-font-size: var(--spectrum-font-size-300); + --system-tabs-emphasized-color-selected: var(--spectrum-accent-content-color-default); + --system-tabs-emphasized-color-hover: var(--spectrum-accent-content-color-hover); + --system-tabs-emphasized-color-key-focus: var(--spectrum-accent-content-color-key-focus); + --system-tabs-emphasized-selection-indicator-color: var(--spectrum-accent-content-color-default); + --system-tag-border-color: var(--spectrum-gray-300); + --system-tag-border-color-hover: var(--spectrum-gray-400); + --system-tag-border-color-active: var(--spectrum-gray-500); + --system-tag-border-color-focus: var(--spectrum-gray-400); + --system-tag-size-small-corner-radius: var(--spectrum-component-height-75); + --system-tag-size-medium-corner-radius: var(--spectrum-component-height-100); + --system-tag-size-large-corner-radius: var(--spectrum-component-height-200); + --system-tag-background-color: transparent; + --system-tag-background-color-hover: var(--spectrum-gray-300); + --system-tag-background-color-active: var(--spectrum-gray-400); + --system-tag-background-color-focus: var(--spectrum-gray-300); + --system-tag-content-color: var(--spectrum-neutral-content-color-default); + --system-tag-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-tag-content-color-active: var(--spectrum-neutral-content-color-down); + --system-tag-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-tag-border-color-selected: var(--spectrum-neutral-background-color-default); + --system-tag-border-color-selected-hover: var(--spectrum-neutral-background-color-hover); + --system-tag-border-color-selected-active: var(--spectrum-neutral-background-color-down); + --system-tag-border-color-selected-focus: var(--spectrum-neutral-background-color-key-focus); + --system-tag-border-color-disabled: var(--spectrum-disabled-border-color); + --system-tag-background-color-disabled: transparent; + --system-tag-size-small-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-75); + --system-tag-size-small-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-75); + --system-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-75); + --system-tag-size-medium-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-100); + --system-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-100); + --system-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-100); + --system-tag-size-large-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-200); + --system-tag-size-large-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-200); + --system-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-200); + --system-tag-avatar-opacity-disabled: 0.3; + --system-tag-animation-duration: var(--spectrum-animation-duration-100); + --system-tag-border-width: var(--spectrum-border-width-100); + --system-tag-focus-ring-thickness: var(--spectrum-focus-indicator-thickness); + --system-tag-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-tag-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-tag-label-line-height: var(--spectrum-line-height-100); + --system-tag-label-font-weight: var(--spectrum-regular-font-weight); + --system-tag-content-color-selected: var(--spectrum-gray-50); + --system-tag-background-color-selected: var(--spectrum-neutral-background-color-selected-default); + --system-tag-background-color-selected-hover: var(--spectrum-neutral-background-color-selected-hover); + --system-tag-background-color-selected-active: var(--spectrum-neutral-background-color-selected-down); + --system-tag-background-color-selected-focus: var(--spectrum-neutral-background-color-selected-key-focus); + --system-tag-border-color-invalid: var(--spectrum-negative-color-900); + --system-tag-border-color-invalid-hover: var(--spectrum-negative-color-1000); + --system-tag-border-color-invalid-active: var(--spectrum-negative-color-1100); + --system-tag-border-color-invalid-focus: var(--spectrum-negative-color-1000); + --system-tag-content-color-invalid: var(--spectrum-negative-content-color-default); + --system-tag-content-color-invalid-hover: var(--spectrum-negative-content-color-hover); + --system-tag-content-color-invalid-active: var(--spectrum-negative-content-color-down); + --system-tag-content-color-invalid-focus: var(--spectrum-negative-content-color-key-focus); + --system-tag-border-color-invalid-selected: var(--spectrum-negative-background-color-default); + --system-tag-border-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); + --system-tag-border-color-invalid-selected-focus: var(--spectrum-negative-background-color-down); + --system-tag-border-color-invalid-selected-active: var(--spectrum-negative-background-color-key-focus); + --system-tag-background-color-invalid-selected: var(--spectrum-negative-background-color-default); + --system-tag-background-color-invalid-selected-hover: var(--spectrum-negative-background-color-hover); + --system-tag-background-color-invalid-selected-active: var(--spectrum-negative-background-color-down); + --system-tag-background-color-invalid-selected-focus: var(--spectrum-negative-background-color-key-focus); + --system-tag-content-color-invalid-selected: var(--spectrum-white); + --system-tag-border-color-emphasized: var(--spectrum-accent-background-color-default); + --system-tag-border-color-emphasized-hover: var(--spectrum-accent-background-color-hover); + --system-tag-border-color-emphasized-active: var(--spectrum-accent-background-color-down); + --system-tag-border-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); + --system-tag-background-color-emphasized: var(--spectrum-accent-background-color-default); + --system-tag-background-color-emphasized-hover: var(--spectrum-accent-background-color-hover); + --system-tag-background-color-emphasized-active: var(--spectrum-accent-background-color-down); + --system-tag-background-color-emphasized-focus: var(--spectrum-accent-background-color-key-focus); + --system-tag-content-color-emphasized: var(--spectrum-white); + --system-tag-content-color-disabled: var(--spectrum-disabled-content-color); + --system-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-tag-icon-size: var(--spectrum-workflow-icon-size-100); + --system-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); + --system-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); + --system-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); + --system-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); + --system-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); + --system-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); + --system-tag-height: var(--spectrum-component-height-100); + --system-tag-font-size: var(--spectrum-font-size-100); + --system-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); + --system-tag-size-s-height: var(--spectrum-component-height-75); + --system-tag-size-s-font-size: var(--spectrum-font-size-75); + --system-tag-size-s-icon-size: var(--spectrum-workflow-icon-size-75); + --system-tag-size-s-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-75); + --system-tag-size-s-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-small); + --system-tag-size-s-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-75); + --system-tag-size-s-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-75); + --system-tag-size-s-icon-spacing-inline-end: var(--spectrum-text-to-visual-75); + --system-tag-size-s-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-small); + --system-tag-size-s-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-small); + --system-tag-size-s-avatar-spacing-inline-end: var(--spectrum-text-to-visual-75); + --system-tag-size-s-label-spacing-block: var(--spectrum-component-top-to-text-75); + --system-tag-size-s-corner-radius: var(--system-tag-size-small-corner-radius); + --system-tag-size-s-spacing-inline-start: var(--system-tag-size-small-spacing-inline-start); + --system-tag-size-s-label-spacing-inline-end: var(--system-tag-size-small-label-spacing-inline-end); + --system-tag-size-s-clear-button-spacing-inline-end: var(--system-tag-size-small-clear-button-spacing-inline-end); + --system-scope-tag-height: var(--spectrum-component-height-100); + --system-tag-size-m-height: var(--spectrum-component-height-100); + --system-scope-tag-font-size: var(--spectrum-font-size-100); + --system-tag-size-m-font-size: var(--spectrum-font-size-100); + --system-scope-tag-icon-size: var(--spectrum-workflow-icon-size-100); + --system-tag-size-m-icon-size: var(--spectrum-workflow-icon-size-100); + --system-scope-tag-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); + --system-tag-size-m-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-100); + --system-scope-tag-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); + --system-tag-size-m-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-medium); + --system-scope-tag-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); + --system-tag-size-m-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-100); + --system-scope-tag-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); + --system-tag-size-m-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-100); + --system-scope-tag-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-tag-size-m-icon-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-scope-tag-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); + --system-tag-size-m-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-medium); + --system-scope-tag-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); + --system-tag-size-m-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-medium); + --system-scope-tag-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-tag-size-m-avatar-spacing-inline-end: var(--spectrum-text-to-visual-100); + --system-scope-tag-label-spacing-block: var(--spectrum-component-top-to-text-100); + --system-tag-size-m-label-spacing-block: var(--spectrum-component-top-to-text-100); + --system-scope-tag-corner-radius: var(--system-tag-size-medium-corner-radius); + --system-tag-size-m-corner-radius: var(--system-tag-size-medium-corner-radius); + --system-scope-tag-spacing-inline-start: var(--system-tag-size-medium-spacing-inline-start); + --system-tag-size-m-spacing-inline-start: var(--system-tag-size-medium-spacing-inline-start); + --system-scope-tag-label-spacing-inline-end: var(--system-tag-size-medium-label-spacing-inline-end); + --system-tag-size-m-label-spacing-inline-end: var(--system-tag-size-medium-label-spacing-inline-end); + --system-scope-tag-clear-button-spacing-inline-end: var(--system-tag-size-medium-clear-button-spacing-inline-end); + --system-tag-size-m-clear-button-spacing-inline-end: var(--system-tag-size-medium-clear-button-spacing-inline-end); + --system-tag-size-l-height: var(--spectrum-component-height-200); + --system-tag-size-l-font-size: var(--spectrum-font-size-200); + --system-tag-size-l-icon-size: var(--spectrum-workflow-icon-size-200); + --system-tag-size-l-clear-button-spacing-inline-start: var(--spectrum-text-to-visual-200); + --system-tag-size-l-clear-button-spacing-block: var(--spectrum-tag-top-to-cross-icon-large); + --system-tag-size-l-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-200); + --system-tag-size-l-icon-spacing-block-end: var(--spectrum-component-top-to-workflow-icon-200); + --system-tag-size-l-icon-spacing-inline-end: var(--spectrum-text-to-visual-200); + --system-tag-size-l-avatar-spacing-block-start: var(--spectrum-tag-top-to-avatar-large); + --system-tag-size-l-avatar-spacing-block-end: var(--spectrum-tag-top-to-avatar-large); + --system-tag-size-l-avatar-spacing-inline-end: var(--spectrum-text-to-visual-200); + --system-tag-size-l-label-spacing-block: var(--spectrum-component-top-to-text-200); + --system-tag-size-l-corner-radius: var(--system-tag-size-large-corner-radius); + --system-tag-size-l-spacing-inline-start: var(--system-tag-size-large-spacing-inline-start); + --system-tag-size-l-label-spacing-inline-end: var(--system-tag-size-large-label-spacing-inline-end); + --system-tag-size-l-clear-button-spacing-inline-end: var(--system-tag-size-large-clear-button-spacing-inline-end); + --system-tag-group-item-margin-block: var(--spectrum-spacing-75); + --system-tag-group-item-margin-inline: var(--spectrum-spacing-75); + --system-textfield-border-color: var(--spectrum-gray-400); + --system-textfield-border-color-hover: var(--spectrum-gray-500); + --system-textfield-border-color-focus: var(--spectrum-gray-800); + --system-textfield-border-color-focus-hover: var(--spectrum-gray-900); + --system-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); + --system-textfield-border-width: var(--spectrum-border-width-200); + --system-textfield-texfield-animation-duration: var(--spectrum-animation-duration-100); + --system-textfield-width: 240px; + --system-textfield-min-width: var(--spectrum-text-field-minimum-width-multiplier); + --system-textfield-corner-radius: var(--spectrum-corner-radius-100); + --system-textfield-spacing-inline-quiet: var(--spectrum-field-edge-to-text-quiet); + --system-textfield-spacing-block-start: var(--spectrum-component-top-to-text-100); + --system-textfield-spacing-block-end: var(--spectrum-component-bottom-to-text-100); + --system-textfield-spacing-block-quiet: var(--spectrum-field-edge-to-border-quiet); + --system-textfield-label-spacing-block: var(--spectrum-field-label-to-component); + --system-textfield-helptext-spacing-block: var(--spectrum-help-text-to-component); + --system-textfield-icon-spacing-inline-end-quiet-invalid: var(--spectrum-field-edge-to-alert-icon-quiet); + --system-textfield-icon-spacing-inline-end-quiet-valid: var(--spectrum-field-edge-to-validation-icon-quiet); + --system-textfield-font-family: var(--spectrum-sans-font-family-stack); + --system-textfield-font-weight: var(--spectrum-regular-font-weight); + --system-textfield-character-count-font-family: var(--spectrum-sans-font-family-stack); + --system-textfield-character-count-font-weight: var(--spectrum-regular-font-weight); + --system-textfield-character-count-spacing-inline: var(--spectrum-spacing-200); + --system-textfield-character-count-spacing-inline-side: var(--spectrum-side-label-character-count-to-field); + --system-textfield-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-textfield-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-textfield-background-color: var(--spectrum-gray-50); + --system-textfield-text-color-default: var(--spectrum-neutral-content-color-default); + --system-textfield-text-color-hover: var(--spectrum-neutral-content-color-hover); + --system-textfield-text-color-focus: var(--spectrum-neutral-content-color-focus); + --system-textfield-text-color-focus-hover: var(--spectrum-neutral-content-color-focus-hover); + --system-textfield-text-color-keyboard-focus: var(--spectrum-neutral-content-color-key-focus); + --system-textfield-text-color-readonly: var(--spectrum-neutral-content-color-default); + --system-textfield-background-color-disabled: var(--spectrum-disabled-background-color); + --system-textfield-border-color-disabled: var(--spectrum-disabled-border-color); + --system-textfield-text-color-disabled: var(--spectrum-disabled-content-color); + --system-textfield-border-color-invalid-default: var(--spectrum-negative-border-color-default); + --system-textfield-border-color-invalid-hover: var(--spectrum-negative-border-color-hover); + --system-textfield-border-color-invalid-focus: var(--spectrum-negative-border-color-focus); + --system-textfield-border-color-invalid-focus-hover: var(--spectrum-negative-border-color-focus-hover); + --system-textfield-border-color-invalid-keyboard-focus: var(--spectrum-negative-border-color-key-focus); + --system-textfield-icon-color-invalid: var(--spectrum-negative-visual-color); + --system-textfield-text-color-invalid: var(--spectrum-neutral-content-color-default); + --system-textfield-text-color-valid: var(--spectrum-neutral-content-color-default); + --system-textfield-icon-color-valid: var(--spectrum-positive-visual-color); + --system-textfield-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-textfield-text-area-min-inline-size: var(--spectrum-text-area-minimum-width); + --system-textfield-text-area-min-block-size: var(--spectrum-text-area-minimum-height); + --system-textfield-size-s-height: var(--spectrum-component-height-75); + --system-textfield-size-s-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-small); + --system-textfield-size-s-label-spacing-inline-side-label: var(--spectrum-spacing-100); + --system-textfield-size-s-placeholder-font-size: var(--spectrum-font-size-75); + --system-textfield-size-s-spacing-inline: var(--spectrum-component-edge-to-text-75); + --system-textfield-size-s-icon-size-invalid: var(--spectrum-workflow-icon-size-75); + --system-textfield-size-s-icon-size-valid: var(--spectrum-checkmark-icon-size-75); + --system-textfield-size-s-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-small); + --system-textfield-size-s-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-small); + --system-textfield-size-s-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-small); + --system-textfield-size-s-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-small); + --system-textfield-size-s-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-small); + --system-textfield-size-s-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-small); + --system-textfield-size-s-character-count-font-size: var(--spectrum-font-size-75); + --system-textfield-size-s-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); + --system-textfield-size-s-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-small); + --system-textfield-size-s-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-small); + --system-textfield-size-s-text-area-min-block-size-quiet: var(--spectrum-component-height-75); + --system-textfield-height: var(--spectrum-component-height-100); + --system-textfield-size-m-height: var(--spectrum-component-height-100); + --system-textfield-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-medium); + --system-textfield-size-m-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-medium); + --system-textfield-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --system-textfield-size-m-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --system-textfield-placeholder-font-size: var(--spectrum-font-size-100); + --system-textfield-size-m-placeholder-font-size: var(--spectrum-font-size-100); + --system-textfield-spacing-inline: var(--spectrum-component-edge-to-text-100); + --system-textfield-size-m-spacing-inline: var(--spectrum-component-edge-to-text-100); + --system-textfield-icon-size-invalid: var(--spectrum-workflow-icon-size-100); + --system-textfield-size-m-icon-size-invalid: var(--spectrum-workflow-icon-size-100); + --system-textfield-icon-size-valid: var(--spectrum-checkmark-icon-size-100); + --system-textfield-size-m-icon-size-valid: var(--spectrum-checkmark-icon-size-100); + --system-textfield-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-medium); + --system-textfield-size-m-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-medium); + --system-textfield-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-medium); + --system-textfield-size-m-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-medium); + --system-textfield-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium); + --system-textfield-size-m-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-medium); + --system-textfield-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-medium); + --system-textfield-size-m-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-medium); + --system-textfield-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-medium); + --system-textfield-size-m-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-medium); + --system-textfield-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-medium); + --system-textfield-size-m-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-medium); + --system-textfield-character-count-font-size: var(--spectrum-font-size-75); + --system-textfield-size-m-character-count-font-size: var(--spectrum-font-size-75); + --system-textfield-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); + --system-textfield-size-m-character-count-spacing-block: var(--spectrum-component-bottom-to-text-75); + --system-textfield-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-medium); + --system-textfield-size-m-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-medium); + --system-textfield-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-medium); + --system-textfield-size-m-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-medium); + --system-textfield-text-area-min-block-size-quiet: var(--spectrum-component-height-100); + --system-textfield-size-m-text-area-min-block-size-quiet: var(--spectrum-component-height-100); + --system-textfield-size-l-height: var(--spectrum-component-height-200); + --system-textfield-size-l-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-large); + --system-textfield-size-l-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --system-textfield-size-l-placeholder-font-size: var(--spectrum-font-size-200); + --system-textfield-size-l-spacing-inline: var(--spectrum-component-edge-to-text-200); + --system-textfield-size-l-icon-size-invalid: var(--spectrum-workflow-icon-size-200); + --system-textfield-size-l-icon-size-valid: var(--spectrum-checkmark-icon-size-200); + --system-textfield-size-l-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-large); + --system-textfield-size-l-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-large); + --system-textfield-size-l-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-large); + --system-textfield-size-l-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-large); + --system-textfield-size-l-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-large); + --system-textfield-size-l-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-large); + --system-textfield-size-l-character-count-font-size: var(--spectrum-font-size-100); + --system-textfield-size-l-character-count-spacing-block: var(--spectrum-component-bottom-to-text-100); + --system-textfield-size-l-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-large); + --system-textfield-size-l-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-large); + --system-textfield-size-l-text-area-min-block-size-quiet: var(--spectrum-component-height-200); + --system-textfield-size-xl-height: var(--spectrum-component-height-300); + --system-textfield-size-xl-label-spacing-block-quiet: var(--spectrum-field-label-to-component-quiet-extra-large); + --system-textfield-size-xl-label-spacing-inline-side-label: var(--spectrum-spacing-200); + --system-textfield-size-xl-placeholder-font-size: var(--spectrum-font-size-300); + --system-textfield-size-xl-spacing-inline: var(--spectrum-component-edge-to-text-200); + --system-textfield-size-xl-icon-size-invalid: var(--spectrum-workflow-icon-size-300); + --system-textfield-size-xl-icon-size-valid: var(--spectrum-checkmark-icon-size-300); + --system-textfield-size-xl-icon-spacing-inline-end-invalid: var(--spectrum-field-edge-to-alert-icon-extra-large); + --system-textfield-size-xl-icon-spacing-inline-end-valid: var(--spectrum-field-edge-to-validation-icon-extra-large); + --system-textfield-size-xl-icon-spacing-block-invalid: var(--spectrum-field-top-to-alert-icon-extra-large); + --system-textfield-size-xl-icon-spacing-block-valid: var(--spectrum-field-top-to-validation-icon-extra-large); + --system-textfield-size-xl-icon-spacing-inline-start-invalid: var(--spectrum-field-text-to-alert-icon-extra-large); + --system-textfield-size-xl-icon-spacing-inline-start-valid: var(--spectrum-field-text-to-validation-icon-extra-large); + --system-textfield-size-xl-character-count-font-size: var(--spectrum-font-size-200); + --system-textfield-size-xl-character-count-spacing-block: var(--spectrum-component-bottom-to-text-200); + --system-textfield-size-xl-character-count-spacing-block-quiet: var(--spectrum-character-count-to-field-quiet-extra-large); + --system-textfield-size-xl-character-count-spacing-block-side: var(--spectrum-side-label-character-count-top-margin-extra-large); + --system-textfield-size-xl-text-area-min-block-size-quiet: var(--spectrum-component-height-300); + --system-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-thumbnail-border-radius: var(--spectrum-corner-radius-75); + --system-thumbnail-border-width: var(--spectrum-border-width-100); + --system-thumbnail-border-color-rgba: rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-color-opacity)); + --system-thumbnail-layer-border-width-inner: var(--spectrum-border-width-400); + --system-thumbnail-layer-border-color-inner: var(--spectrum-white); + --system-thumbnail-layer-border-width-outer: var(--spectrum-border-width-100); + --system-thumbnail-layer-border-color-outer: var(--spectrum-gray-500); + --system-thumbnail-border-width-selected: var(--spectrum-border-width-200); + --system-thumbnail-border-color-selected: var(--spectrum-accent-color-800); + --system-thumbnail-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-thumbnail-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-thumbnail-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-thumbnail-color-opacity-disabled: var(--spectrum-thumbnail-opacity-disabled); + --system-thumbnail-size-50-size: var(--spectrum-thumbnail-size-50); + --system-thumbnail-size-75-size: var(--spectrum-thumbnail-size-75); + --system-thumbnail-size-100-size: var(--spectrum-thumbnail-size-100); + --system-thumbnail-size-200-size: var(--spectrum-thumbnail-size-200); + --system-thumbnail-size-300-size: var(--spectrum-thumbnail-size-300); + --system-thumbnail-size-400-size: var(--spectrum-thumbnail-size-400); + --system-thumbnail-size-500-size: var(--spectrum-thumbnail-size-500); + --system-thumbnail-size-600-size: var(--spectrum-thumbnail-size-600); + --system-thumbnail-size-700-size: var(--spectrum-thumbnail-size-700); + --system-thumbnail-size-800-size: var(--spectrum-thumbnail-size-800); + --system-thumbnail-size-900-size: var(--spectrum-thumbnail-size-900); + --system-thumbnail-size-1000-size: var(--spectrum-thumbnail-size-1000); + --system-toast-background-color-default: var(--spectrum-neutral-background-color-default); + --system-toast-font-weight: var(--spectrum-regular-font-weight); + --system-toast-font-size: var(--spectrum-font-size-100); + --system-toast-corner-radius: var(--spectrum-corner-radius-100); + --system-toast-block-size: var(--spectrum-toast-height); + --system-toast-max-inline-size: var(--spectrum-toast-maximum-width); + --system-toast-border-width: var(--spectrum-border-width-100); + --system-toast-line-height: var(--spectrum-line-height-100); + --system-toast-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-toast-spacing-icon-to-text: var(--spectrum-text-to-visual-100); + --system-toast-spacing-start-edge-to-text-and-icon: var(--spectrum-spacing-300); + --system-toast-spacing-text-and-action-button-to-divider: var(--spectrum-spacing-300); + --system-toast-spacing-top-edge-to-divider: var(--spectrum-spacing-100); + --system-toast-spacing-bottom-edge-to-divider: var(--spectrum-spacing-100); + --system-toast-spacing-top-edge-to-icon: var(--spectrum-toast-top-to-workflow-icon); + --system-toast-spacing-text-to-action-button-horizontal: var(--spectrum-spacing-300); + --system-toast-spacing-close-button: var(--spectrum-spacing-100); + --system-toast-spacing-block-start: var(--spectrum-spacing-100); + --system-toast-spacing-block-end: var(--spectrum-spacing-100); + --system-toast-spacing-top-edge-to-text: var(--spectrum-toast-top-to-text); + --system-toast-spacing-bottom-edge-to-text: var(--spectrum-toast-bottom-to-text); + --system-toast-negative-background-color-default: var(--spectrum-negative-background-color-default); + --system-toast-positive-background-color-default: var(--spectrum-positive-background-color-default); + --system-toast-informative-background-color-default: var(--spectrum-informative-background-color-default); + --system-toast-text-and-icon-color: var(--spectrum-white); + --system-toast-divider-color: var(--spectrum-transparent-white-300); + --system-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-background-color-default); + --system-tooltip-animation-duration: var(--spectrum-animation-duration-100); + --system-tooltip-margin: 0px; + --system-tooltip-height: var(--spectrum-component-height-75); + --system-tooltip-max-inline-size: var(--spectrum-tooltip-maximum-width); + --system-tooltip-border-radius: var(--spectrum-corner-radius-100); + --system-tooltip-icon-width: var(--spectrum-workflow-icon-size-50); + --system-tooltip-icon-height: var(--spectrum-workflow-icon-size-50); + --system-tooltip-font-size: var(--spectrum-font-size-75); + --system-tooltip-line-height: var(--spectrum-line-height-100); + --system-tooltip-cjk-line-height: var(--spectrum-cjk-line-height-100); + --system-tooltip-font-weight: var(--spectrum-regular-font-weight); + --system-tooltip-spacing-inline: var(--spectrum-component-edge-to-text-75); + --system-tooltip-spacing-block-start: var(--spectrum-component-top-to-text-75); + --system-tooltip-spacing-block-end: var(--spectrum-component-bottom-to-text-75); + --system-tooltip-icon-spacing-inline-start: var(--spectrum-text-to-visual-75); + --system-tooltip-icon-spacing-inline-end: var(--spectrum-text-to-visual-75); + --system-tooltip-icon-spacing-block-start: var(--spectrum-component-top-to-workflow-icon-75); + --system-tooltip-background-color-informative: var(--spectrum-informative-background-color-default); + --system-tooltip-background-color-positive: var(--spectrum-positive-background-color-default); + --system-tooltip-background-color-negative: var(--spectrum-negative-background-color-default); + --system-tooltip-content-color: var(--spectrum-white); + --system-tooltip-tip-inline-size: var(--spectrum-tooltip-tip-width); + --system-tooltip-tip-block-size: var(--spectrum-tooltip-tip-height); + --system-tooltip-tip-square-size: var(--system-tooltip-tip-inline-size); + --system-tooltip-tip-height-percentage: 50%; + --system-tooltip-tip-antialiasing-inset: 0.5px; + --system-tooltip-pointer-corner-spacing: var(--spectrum-corner-radius-100); + --system-tooltip-background-color-default: var(--system-tooltip-backgound-color-default-neutral); + --system-tray-exit-animation-delay: 0ms; + --system-tray-entry-animation-delay: 160ms; + --system-tray-max-inline-size: 375px; + --system-tray-spacing-edge-to-safe-zone: 64px; + --system-tray-entry-animation-duration: var(--spectrum-animation-duration-500); + --system-tray-exit-animation-duration: var(--spectrum-animation-duration-100); + --system-tray-corner-radius: var(--spectrum-corner-radius-100); + --system-tray-background-color: var(--spectrum-background-layer-2-color); + --system-tree-view-line-height: var(--spectrum-line-height-200); + --system-tree-view-margin-block: 1em; + --system-tree-view-font-size: var(--spectrum-font-size-100); + --system-tree-view-item-min-block-size: var(--spectrum-component-height-100); + --system-tree-view-item-indentation: var(--spectrum-treeview-item-indentation-medium); + --system-tree-view-item-padding-inline-start: var(--spectrum-component-height-100); + --system-tree-view-item-padding-inline-end: var(--spectrum-component-edge-to-text-100); + --system-tree-view-section-spacing: var(--spectrum-treeview-item-indentation-medium); + --system-tree-view-heading-font-weight: var(--spectrum-bold-font-weight); + --system-tree-view-heading-bottom-to-text: var(--spectrum-component-edge-to-text-100); + --system-tree-view-heading-color: var(--spectrum-heading-color); + --system-tree-view-item-border-size: var(--spectrum-border-width-200); + --system-tree-view-item-border-size-selected: 1px; + --system-tree-view-item-border-radius: 0px; + --system-tree-view-item-border-color-selected: var(--spectrum-blue-800); + --system-tree-view-item-border-color-focus: var(--spectrum-blue-700); + --system-tree-view-item-background-color-hover: var(--spectrum-gray-100); + --system-tree-view-item-background-color-focus: var(--spectrum-gray-100); + --system-tree-view-item-border-color-quiet-selected: transparent; + --system-tree-view-item-icon-gap: var(--spectrum-text-to-visual-75); + --system-tree-view-item-icon-color: var(--spectrum-gray-700); + --system-tree-view-item-icon-color-hover: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-focus: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-selected: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-tree-view-item-text-color: var(--spectrum-neutral-content-color-default); + --system-tree-view-item-text-color-selected: var(--spectrum-gray-900); + --system-tree-view-item-text-color-disabled: var(--spectrum-gray-500); + --system-tree-view-item-text-color-focus: var(--spectrum-gray-900); + --system-tree-view-item-text-color-hover: var(--spectrum-gray-900); + --system-tree-view-indicator-margin-inline-start: calc(var(--spectrum-component-height-100) * -1); + --system-tree-view-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-medium); + --system-tree-view-item-min-block-size-thumbnail-offset: var(--spectrum-treeview-item-min-block-size-thumbnail-offset-medium, 0px); + --system-tree-view-indicator-animation-duration: var(--spectrum-animation-duration-100); + --system-tree-view-size-s-font-size: var(--spectrum-font-size-75); + --system-tree-view-size-s-item-min-block-size: var(--spectrum-component-height-75); + --system-tree-view-size-s-item-indentation: var(--spectrum-treeview-item-indentation-small); + --system-tree-view-size-s-heading-bottom-to-text: var(--spectrum-component-edge-to-text-75); + --system-tree-view-size-s-item-padding-inline-start: var(--spectrum-component-height-75); + --system-tree-view-size-s-indicator-margin-inline-start: calc(var(--spectrum-component-height-75) * -1); + --system-tree-view-size-s-item-padding-inline-end: var(--spectrum-component-edge-to-text-75); + --system-tree-view-size-s-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-small); + --system-tree-view-size-s-item-min-block-size-thumbnail-offset: 6px; + --system-tree-view-size-l-font-size: var(--spectrum-font-size-200); + --system-tree-view-size-l-item-indentation: var(--spectrum-treeview-item-indentation-large); + --system-tree-view-size-l-item-min-block-size: var(--spectrum-component-height-200); + --system-tree-view-size-l-heading-bottom-to-text: var(--spectrum-component-edge-to-text-200); + --system-tree-view-size-l-item-padding-inline-start: var(--spectrum-component-height-200); + --system-tree-view-size-l-indicator-margin-inline-start: calc(var(--spectrum-component-height-200) * -1); + --system-tree-view-size-l-item-padding-inline-end: var(--spectrum-component-edge-to-text-200); + --system-tree-view-size-l-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-large); + --system-tree-view-size-l-item-min-block-size-thumbnail-offset: 0px; + --system-tree-view-size-xl-font-size: var(--spectrum-font-size-300); + --system-tree-view-size-xl-item-indentation: var(--spectrum-treeview-item-indentation-extra-large); + --system-tree-view-size-xl-item-min-block-size: var(--spectrum-component-height-300); + --system-tree-view-size-xl-heading-bottom-to-text: var(--spectrum-component-edge-to-text-300); + --system-tree-view-size-xl-item-padding-inline-start: var(--spectrum-component-height-300); + --system-tree-view-size-xl-indicator-margin-inline-start: calc(var(--spectrum-component-height-300) * -1); + --system-tree-view-size-xl-item-padding-inline-end: var(--spectrum-component-edge-to-text-300); + --system-tree-view-size-xl-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large); + --system-tree-view-size-xl-item-min-block-size-thumbnail-offset: 0px; + --system-tree-view-detached-item-border-radius: var(--spectrum-corner-radius-100); + --system-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --system-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --system-font-family: var(--spectrum-sans-font-family-stack); + --system-font-style: var(--spectrum-default-font-style); + --system-font-size: var(--spectrum-font-size-100); + --system-heading-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-heading-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-heading-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-heading-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-heading-font-color: var(--spectrum-heading-color); + --system-heading-size-xxs-font-size: var(--spectrum-heading-size-xxs); + --system-heading-size-xxs-cjk-font-size: var(--spectrum-heading-cjk-size-xxs); + --system-heading-size-xs-font-size: var(--spectrum-heading-size-xs); + --system-heading-size-xs-cjk-font-size: var(--spectrum-heading-cjk-size-xs); + --system-heading-size-s-font-size: var(--spectrum-heading-size-s); + --system-heading-size-s-cjk-font-size: var(--spectrum-heading-cjk-size-s); + --system-heading-font-size: var(--spectrum-heading-size-m); + --system-heading-size-m-font-size: var(--spectrum-heading-size-m); + --system-heading-cjk-font-size: var(--spectrum-heading-cjk-size-m); + --system-heading-size-m-cjk-font-size: var(--spectrum-heading-cjk-size-m); + --system-heading-size-l-font-size: var(--spectrum-heading-size-l); + --system-heading-size-l-cjk-font-size: var(--spectrum-heading-cjk-size-l); + --system-heading-size-xl-font-size: var(--spectrum-heading-size-xl); + --system-heading-size-xl-cjk-font-size: var(--spectrum-heading-cjk-size-xl); + --system-heading-size-xxl-font-size: var(--spectrum-heading-size-xxl); + --system-heading-size-xxl-cjk-font-size: var(--spectrum-heading-cjk-size-xxl); + --system-heading-size-xxxl-font-size: var(--spectrum-heading-size-xxxl); + --system-heading-size-xxxl-cjk-font-size: var(--spectrum-heading-cjk-size-xxxl); + --system-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-body-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-body-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-body-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-body-font-color: var(--spectrum-body-color); + --system-body-size-xs-font-size: var(--spectrum-body-size-xs); + --system-body-size-s-font-size: var(--spectrum-body-size-s); + --system-body-font-size: var(--spectrum-body-size-m); + --system-body-size-m-font-size: var(--spectrum-body-size-m); + --system-body-size-l-font-size: var(--spectrum-body-size-l); + --system-body-size-xl-font-size: var(--spectrum-body-size-xl); + --system-body-size-xxl-font-size: var(--spectrum-body-size-xxl); + --system-body-size-xxxl-font-size: var(--spectrum-body-size-xxxl); + --system-detail-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-detail-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-detail-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-detail-font-color: var(--spectrum-detail-color); + --system-detail-size-s-font-size: var(--spectrum-detail-size-s); + --system-detail-font-size: var(--spectrum-detail-size-m); + --system-detail-size-m-font-size: var(--spectrum-detail-size-m); + --system-detail-size-l-font-size: var(--spectrum-detail-size-l); + --system-detail-size-xl-font-size: var(--spectrum-detail-size-xl); + --system-code-font-family: var(--spectrum-code-font-family-stack); + --system-code-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-code-font-color: var(--spectrum-code-color); + --system-code-size-xs-font-size: var(--spectrum-code-size-xs); + --system-code-size-s-font-size: var(--spectrum-code-size-s); + --system-code-font-size: var(--spectrum-code-size-m); + --system-code-size-m-font-size: var(--spectrum-code-size-m); + --system-code-size-l-font-size: var(--spectrum-code-size-l); + --system-code-size-xl-font-size: var(--spectrum-code-size-xl); + --system-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); + --system-underlay-background-exit-animation-ease: var(--spectrum-animation-ease-in); + --system-underlay-background-entry-animation-ease: var(--spectrum-animation-ease-out); + --system-underlay-background-entry-animation-duration: var(--spectrum-animation-duration-600); + --system-underlay-background-exit-animation-duration: var(--spectrum-animation-duration-300); + --system-underlay-background-exit-animation-delay: var(--spectrum-animation-duration-200); + --system-underlay-background-color: rgba(var(--spectrum-black-rgb), var(--spectrum-overlay-opacity)); + --system-well-border-width: var(--spectrum-border-width-100); + --system-well-border-color: rgba(var(--spectrum-gray-900-rgb), 0.05); + --system-well-border-radius: var(--spectrum-spacing-75); + --system-well-content-color: var(--spectrum-body-color); + --system-well-background-color: rgba(var(--spectrum-gray-800-rgb), 0.02); + --system-well-padding: var(--spectrum-spacing-300); + --system-well-margin-top: var(--spectrum-spacing-75); + --system-well-minimum-width: var(--spectrum-well-min-width); } diff --git a/tokens/dist/css/components/express/infieldbutton.css b/tokens/dist/css/components/express/infieldbutton.css deleted file mode 100644 index 479f5ef34a7..00000000000 --- a/tokens/dist/css/components/express/infieldbutton.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 - * - * 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--express { - --system-spectrum-infieldbutton-spectrum-infield-button-border-width: 0; - --system-spectrum-infieldbutton-spectrum-infield-button-border-color: transparent; - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-corner-radius-75); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color: var(--spectrum-gray-200); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-300); -} diff --git a/tokens/dist/css/components/express/inlinealert.css b/tokens/dist/css/components/express/inlinealert.css new file mode 100644 index 00000000000..40f298de61e --- /dev/null +++ b/tokens/dist/css/components/express/inlinealert.css @@ -0,0 +1,41 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-in-line-alert-heading-font-family: var(--spectrum-sans-font-family-stack); + --system-in-line-alert-heading-font-weight: var(--spectrum-heading-sans-serif-font-weight); + --system-in-line-alert-heading-font-style: var(--spectrum-heading-sans-serif-font-style); + --system-in-line-alert-heading-font-size: var(--spectrum-heading-size-xxs); + --system-in-line-alert-heading-line-height: var(--spectrum-heading-line-height); + --system-in-line-alert-content-font-family: var(--spectrum-sans-font-family-stack); + --system-in-line-alert-content-font-weight: var(--spectrum-body-sans-serif-font-weight); + --system-in-line-alert-content-font-style: var(--spectrum-body-sans-serif-font-style); + --system-in-line-alert-content-font-size: var(--spectrum-body-size-s); + --system-in-line-alert-content-line-height: var(--spectrum-body-line-height); + --system-in-line-alert-border-width: var(--spectrum-border-width-200); + --system-in-line-alert-border-radius: var(--spectrum-corner-radius-100); + --system-in-line-alert-icon-size: var(--spectrum-workflow-icon-size-100); + --system-in-line-alert-min-inline-size: var(--spectrum-in-line-alert-minimum-width); + --system-in-line-alert-header-min-block-size: var(--spectrum-component-height-50); + --system-in-line-alert-spacing-edge-to-text: var(--spectrum-spacing-400); + --system-in-line-alert-spacing-header-to-icon: var(--spectrum-spacing-400); + --system-in-line-alert-spacing-header-content-button: var(--spectrum-spacing-300); + --system-in-line-alert-background-color: var(--spectrum-background-layer-2-color); + --system-in-line-alert-border-and-icon-color: var(--spectrum-neutral-visual-color); + --system-in-line-alert-header-color: var(--spectrum-heading-color); + --system-in-line-alert-content-color: var(--spectrum-body-color); + --system-in-line-alert-border-and-icon-color-info: var(--spectrum-informative-visual-color); + --system-in-line-alert-border-and-icon-color-positive: var(--spectrum-positive-visual-color); + --system-in-line-alert-border-and-icon-color-notice: var(--spectrum-notice-visual-color); + --system-in-line-alert-border-and-icon-color-negative: var(--spectrum-negative-visual-color); +} diff --git a/tokens/dist/css/components/express/link.css b/tokens/dist/css/components/express/link.css new file mode 100644 index 00000000000..49cf47adef1 --- /dev/null +++ b/tokens/dist/css/components/express/link.css @@ -0,0 +1,26 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-link-animation-duration: var(--spectrum-animation-duration-100); + --system-link-text-color-primary-default: var(--spectrum-accent-content-color-default); + --system-link-text-color-primary-hover: var(--spectrum-accent-content-color-hover); + --system-link-text-color-primary-active: var(--spectrum-accent-content-color-down); + --system-link-text-color-primary-focus: var(--spectrum-accent-content-color-key-focus); + --system-link-text-color-secondary-default: var(--spectrum-neutral-content-color-default); + --system-link-text-color-secondary-hover: var(--spectrum-neutral-content-color-hover); + --system-link-text-color-secondary-active: var(--spectrum-neutral-content-color-down); + --system-link-text-color-secondary-focus: var(--spectrum-neutral-content-color-key-focus); + --system-link-text-color-white: var(--spectrum-white); + --system-link-text-color-black: var(--spectrum-black); +} diff --git a/tokens/dist/css/components/express/logicbutton.css b/tokens/dist/css/components/express/logicbutton.css new file mode 100644 index 00000000000..657ec391c20 --- /dev/null +++ b/tokens/dist/css/components/express/logicbutton.css @@ -0,0 +1,39 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-logic-button-height: 24px; + --system-logic-button-padding: var(--spectrum-component-edge-to-text-50); + --system-logic-button-font-size: var(--spectrum-font-size-100); + --system-logic-button-font-weight: var(--spectrum-bold-font-weight); + --system-logic-button-border-width: var(--spectrum-border-width-200); + --system-logic-button-border-radius: var(--spectrum-corner-radius-100); + --system-logic-button-focus-indicator-width: var(--spectrum-focus-indicator-thickness); + --system-logic-button-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-logic-button-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-logic-button-and-text-color: var(--spectrum-white); + --system-logic-button-and-background-color-default: var(--spectrum-logic-button-and-background-color); + --system-logic-button-and-background-color-hover: var(--spectrum-blue-1100); + --system-logic-button-and-border-color-hover: var(--spectrum-blue-1100); + --system-logic-button-or-text-color: var(--spectrum-white); + --system-logic-button-and-background-color-default-disabled: var(--spectrum-gray-200); + --system-logic-button-and-border-color-disabled: var(--spectrum-gray-200); + --system-logic-button-and-text-color-disabled: var(--spectrum-gray-500); + --system-logic-button-and-background-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-and-border-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-or-background-color-disabled: var(--spectrum-gray-200); + --system-logic-button-or-border-color-disabled: var(--spectrum-gray-200); + --system-logic-button-or-text-color-disabled: var(--spectrum-gray-500); + --system-logic-button-or-background-color-hover-disabled: var(--spectrum-gray-200); + --system-logic-button-or-border-color-hover-disabled: var(--spectrum-gray-200); +} diff --git a/tokens/dist/css/components/express/menu.css b/tokens/dist/css/components/express/menu.css new file mode 100644 index 00000000000..877aa4a4674 --- /dev/null +++ b/tokens/dist/css/components/express/menu.css @@ -0,0 +1,151 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-menu-item-top-to-action: var(--spectrum-spacing-50); + --system-menu-item-top-to-checkbox: var(--spectrum-spacing-50); + --system-menu-item-label-line-height: var(--spectrum-line-height-100); + --system-menu-item-label-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-item-label-to-description-spacing: var(--spectrum-menu-item-label-to-description); + --system-menu-item-focus-indicator-width: var(--spectrum-border-width-200); + --system-menu-item-focus-indicator-color: var(--spectrum-blue-800); + --system-menu-item-label-to-value-area-min-spacing: var(--spectrum-spacing-100); + --system-menu-item-label-content-color-default: var(--spectrum-neutral-content-color-default); + --system-menu-item-label-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-menu-item-label-content-color-down: var(--spectrum-neutral-content-color-down); + --system-menu-item-label-content-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-menu-item-label-icon-color-default: var(--spectrum-neutral-content-color-default); + --system-menu-item-label-icon-color-hover: var(--spectrum-neutral-content-color-hover); + --system-menu-item-label-icon-color-down: var(--spectrum-neutral-content-color-down); + --system-menu-item-label-icon-color-focus: var(--spectrum-neutral-content-color-key-focus); + --system-menu-item-label-content-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-item-label-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-item-description-line-height: var(--spectrum-line-height-100); + --system-menu-item-description-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-item-description-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-item-description-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-item-description-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-item-description-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-item-description-color-disabled: var(--spectrum-disabled-content-color); + --system-menu-section-header-line-height: var(--spectrum-line-height-100); + --system-menu-section-header-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-menu-section-header-font-weight: var(--spectrum-bold-font-weight); + --system-menu-section-header-color: var(--spectrum-gray-900); + --system-menu-collapsible-icon-color: var(--spectrum-gray-900); + --system-menu-checkmark-icon-color-default: var(--spectrum-accent-color-900); + --system-menu-checkmark-icon-color-hover: var(--spectrum-accent-color-1000); + --system-menu-checkmark-icon-color-down: var(--spectrum-accent-color-1100); + --system-menu-checkmark-icon-color-focus: var(--spectrum-accent-color-1000); + --system-menu-drillin-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-drillin-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-drillin-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-drillin-icon-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-item-value-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-menu-item-value-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-menu-item-value-color-down: var(--spectrum-neutral-subdued-content-color-down); + --system-menu-item-value-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-menu-checkmark-display-hidden: none; + --system-menu-checkmark-display-shown: block; + --system-menu-checkmark-display: var(--system-menu-checkmark-display-shown); + --system-menu-item-collapsible-has-icon-sub-item-padding-x-start: calc(var(--system-menu-item-label-inline-edge-to-content) + var(--system-menu-item-checkmark-width) + var(--system-menu-item-text-to-control) + var(--system-menu-item-icon-width) + var(--system-menu-item-label-text-to-visual) + var(--system-menu-item-focus-indicator-width)); + --system-menu-item-collapsible-no-icon-sub-item-padding-x-start: calc(var(--system-menu-item-label-inline-edge-to-content) + var(--system-menu-item-checkmark-width) + var(--system-menu-item-label-text-to-visual) + var(--system-menu-item-focus-indicator-width)); + --system-menu-item-background-color-default: var(--spectrum-gray-50); + --system-menu-item-background-color-hover: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-item-background-color-down: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-item-background-color-key-focus: rgba(var(--spectrum-gray-900), var(--spectrum-transparent-black-200-opacity)); + --system-menu-size-s-item-min-height: var(--spectrum-component-height-75); + --system-menu-size-s-item-icon-height: var(--spectrum-workflow-icon-size-75); + --system-menu-size-s-item-icon-width: var(--spectrum-workflow-icon-size-75); + --system-menu-size-s-item-label-font-size: var(--spectrum-font-size-75); + --system-menu-size-s-item-label-text-to-visual: var(--spectrum-text-to-visual-75); + --system-menu-size-s-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-75); + --system-menu-size-s-item-top-edge-to-text: var(--spectrum-component-top-to-text-75); + --system-menu-size-s-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-75); + --system-menu-size-s-item-text-to-control: var(--spectrum-text-to-control-75); + --system-menu-size-s-item-description-font-size: var(--spectrum-font-size-50); + --system-menu-size-s-section-header-font-size: var(--spectrum-font-size-75); + --system-menu-size-s-section-header-min-width: var(--spectrum-component-height-75); + --system-menu-size-s-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-small); + --system-menu-size-s-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-small); + --system-menu-size-s-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-small); + --system-menu-size-s-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-small); + --system-menu-size-s-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-small); + --system-menu-item-min-height: var(--spectrum-component-height-100); + --system-menu-size-m-item-min-height: var(--spectrum-component-height-100); + --system-menu-item-icon-height: var(--spectrum-workflow-icon-size-100); + --system-menu-size-m-item-icon-height: var(--spectrum-workflow-icon-size-100); + --system-menu-item-icon-width: var(--spectrum-workflow-icon-size-100); + --system-menu-size-m-item-icon-width: var(--spectrum-workflow-icon-size-100); + --system-menu-item-label-font-size: var(--spectrum-font-size-100); + --system-menu-size-m-item-label-font-size: var(--spectrum-font-size-100); + --system-menu-item-label-text-to-visual: var(--spectrum-text-to-visual-100); + --system-menu-size-m-item-label-text-to-visual: var(--spectrum-text-to-visual-100); + --system-menu-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); + --system-menu-size-m-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-100); + --system-menu-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-menu-size-m-item-top-edge-to-text: var(--spectrum-component-top-to-text-100); + --system-menu-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-menu-size-m-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-100); + --system-menu-item-text-to-control: var(--spectrum-text-to-control-100); + --system-menu-size-m-item-text-to-control: var(--spectrum-text-to-control-100); + --system-menu-item-description-font-size: var(--spectrum-font-size-75); + --system-menu-size-m-item-description-font-size: var(--spectrum-font-size-75); + --system-menu-section-header-font-size: var(--spectrum-font-size-100); + --system-menu-size-m-section-header-font-size: var(--spectrum-font-size-100); + --system-menu-section-header-min-width: var(--spectrum-component-height-100); + --system-menu-size-m-section-header-min-width: var(--spectrum-component-height-100); + --system-menu-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); + --system-menu-size-m-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-medium); + --system-menu-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); + --system-menu-size-m-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-medium); + --system-menu-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); + --system-menu-size-m-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-medium); + --system-menu-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); + --system-menu-size-m-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-medium); + --system-menu-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); + --system-menu-size-m-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-medium); + --system-menu-size-l-item-min-height: var(--spectrum-component-height-200); + --system-menu-size-l-item-icon-height: var(--spectrum-workflow-icon-size-200); + --system-menu-size-l-item-icon-width: var(--spectrum-workflow-icon-size-200); + --system-menu-size-l-item-label-font-size: var(--spectrum-font-size-200); + --system-menu-size-l-item-label-text-to-visual: var(--spectrum-text-to-visual-200); + --system-menu-size-l-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-200); + --system-menu-size-l-item-top-edge-to-text: var(--spectrum-component-top-to-text-200); + --system-menu-size-l-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-200); + --system-menu-size-l-item-text-to-control: var(--spectrum-text-to-control-200); + --system-menu-size-l-item-description-font-size: var(--spectrum-font-size-100); + --system-menu-size-l-section-header-font-size: var(--spectrum-font-size-200); + --system-menu-size-l-section-header-min-width: var(--spectrum-component-height-200); + --system-menu-size-l-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-large); + --system-menu-size-l-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-large); + --system-menu-size-l-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-large); + --system-menu-size-l-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-large); + --system-menu-size-l-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-large); + --system-menu-size-xl-item-min-height: var(--spectrum-component-height-300); + --system-menu-size-xl-item-icon-height: var(--spectrum-workflow-icon-size-300); + --system-menu-size-xl-item-icon-width: var(--spectrum-workflow-icon-size-300); + --system-menu-size-xl-item-label-font-size: var(--spectrum-font-size-300); + --system-menu-size-xl-item-label-text-to-visual: var(--spectrum-text-to-visual-300); + --system-menu-size-xl-item-label-inline-edge-to-content: var(--spectrum-component-edge-to-text-300); + --system-menu-size-xl-item-top-edge-to-text: var(--spectrum-component-top-to-text-300); + --system-menu-size-xl-item-bottom-edge-to-text: var(--spectrum-component-bottom-to-text-300); + --system-menu-size-xl-item-text-to-control: var(--spectrum-text-to-control-300); + --system-menu-size-xl-item-description-font-size: var(--spectrum-font-size-200); + --system-menu-size-xl-section-header-font-size: var(--spectrum-font-size-300); + --system-menu-size-xl-section-header-min-width: var(--spectrum-component-height-300); + --system-menu-size-xl-item-selectable-edge-to-text-not-selected: var(--spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large); + --system-menu-size-xl-item-checkmark-height: var(--spectrum-menu-item-checkmark-height-extra-large); + --system-menu-size-xl-item-checkmark-width: var(--spectrum-menu-item-checkmark-width-extra-large); + --system-menu-size-xl-item-top-to-checkmark: var(--spectrum-menu-item-top-to-selected-icon-extra-large); + --system-menu-size-xl-back-icon-margin: var(--spectrum-navigational-indicator-top-to-back-icon-extra-large); +} diff --git a/tokens/dist/css/components/express/miller.css b/tokens/dist/css/components/express/miller.css new file mode 100644 index 00000000000..b39d4a3af76 --- /dev/null +++ b/tokens/dist/css/components/express/miller.css @@ -0,0 +1,19 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-miller-columns-inline-size: 272px; + --system-miller-columns-padding: var(--spectrum-spacing-100); + --system-miller-columns-margin-inline-start: var(--spectrum-spacing-100); + --system-miller-columns-margin-inline-end: var(--spectrum-spacing-100); +} diff --git a/tokens/dist/css/components/express/modal.css b/tokens/dist/css/components/express/modal.css new file mode 100644 index 00000000000..59ff3fd9b1a --- /dev/null +++ b/tokens/dist/css/components/express/modal.css @@ -0,0 +1,25 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-modal-confirm-exit-animation-delay: var(--spectrum-animation-duration-0); + --system-modal-fullscreen-margin: 32px; + --system-modal-max-height: 90vh; + --system-modal-max-width: 90%; + --system-modal-background-color: var(--spectrum-gray-100); + --system-modal-confirm-border-radius: var(--spectrum-corner-radius-100); + --system-modal-confirm-exit-animation-duration: var(--spectrum-animation-duration-100); + --system-modal-confirm-entry-animation-duration: var(--spectrum-animation-duration-500); + --system-modal-confirm-entry-animation-delay: var(--spectrum-animation-duration-200); + --system-modal-transition-animation-duration: var(--spectrum-animation-duration-100); +} diff --git a/tokens/dist/css/components/express/opacitycheckerboard.css b/tokens/dist/css/components/express/opacitycheckerboard.css new file mode 100644 index 00000000000..a9d87927425 --- /dev/null +++ b/tokens/dist/css/components/express/opacitycheckerboard.css @@ -0,0 +1,19 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-opacity-checkerboard-dark: var(--spectrum-opacity-checkerboard-square-dark); + --system-opacity-checkerboard-light: var(--spectrum-opacity-checkerboard-square-light); + --system-opacity-checkerboard-size: var(--spectrum-opacity-checkerboard-square-size); + --system-opacity-checkerboard-position: left top; +} diff --git a/tokens/dist/css/components/express/pagination.css b/tokens/dist/css/components/express/pagination.css new file mode 100644 index 00000000000..b67f286eded --- /dev/null +++ b/tokens/dist/css/components/express/pagination.css @@ -0,0 +1,20 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-pagination-counter-margin-inline-start: var(--spectrum-pagination-item-inline-spacing); + --system-pagination-page-button-inline-spacing: var(--spectrum-pagination-item-inline-spacing); + --system-pagination-counter-color: var(--spectrum-neutral-subdued-content-color-default); + --system-pagination-counter-font-size: var(--spectrum-font-size-100); + --system-pagination-counter-line-height: var(--spectrum-line-height-100); +} diff --git a/tokens/dist/css/components/express/picker.css b/tokens/dist/css/components/express/picker.css deleted file mode 100644 index 9768a42a8f2..00000000000 --- a/tokens/dist/css/components/express/picker.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 - * - * 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--express { - --system-spectrum-picker-background-color-default: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-default-open: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-active: var(--spectrum-gray-400); - --system-spectrum-picker-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-hover-open: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-picker-border-color-default: transparent; - --system-spectrum-picker-border-color-default-open: transparent; - --system-spectrum-picker-border-color-hover: transparent; - --system-spectrum-picker-border-color-hover-open: transparent; - --system-spectrum-picker-border-color-active: transparent; - --system-spectrum-picker-border-color-key-focus: transparent; - --system-spectrum-picker-border-width: 0px; -} diff --git a/tokens/dist/css/components/express/pickerbutton.css b/tokens/dist/css/components/express/pickerbutton.css deleted file mode 100644 index b6555351d48..00000000000 --- a/tokens/dist/css/components/express/pickerbutton.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 - * - * 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--express { - --system-spectrum-pickerbutton-spectrum-picker-button-background-color: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-down: var(--spectrum-gray-400); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-border-color: none; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius: var(--spectrum-corner-radius-75); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided: var(--spectrum-corner-radius-200); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided: var(--spectrum-corner-radius-75); - --system-spectrum-pickerbutton-spectrum-picker-button-border-width: 0px; -} diff --git a/tokens/dist/css/components/express/progressbar.css b/tokens/dist/css/components/express/progressbar.css new file mode 100644 index 00000000000..9c8788178e0 --- /dev/null +++ b/tokens/dist/css/components/express/progressbar.css @@ -0,0 +1,68 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-progress-bar-animation-ease-in-out-indeterminate: var(--spectrum-animation-ease-in-out); + --system-progress-bar-animation-duration-indeterminate: var(--spectrum-animation-duration-2000); + --system-progress-bar-corner-radius: var(--spectrum-corner-radius-100); + --system-progress-bar-fill-size-indeterminate: 70%; + --system-progress-bar-size-2400: 192px; + --system-progress-bar-size-2500: 200px; + --system-progress-bar-size-2800: 224px; + --system-progress-bar-font-size: var(--spectrum-font-size-75); + --system-progress-bar-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-progress-bar-min-size: var(--spectrum-progress-bar-minimum-width); + --system-progress-bar-max-size: var(--spectrum-progress-bar-maximum-width); + --system-progress-bar-thickness: var(--spectrum-progress-bar-thickness-medium); + --system-progress-bar-line-height: var(--spectrum-line-height-100); + --system-progress-bar-spacing-label-to: var(--spectrum-spacing-75); + --system-progress-bar-spacing-top-to-text: var(--spectrum-component-top-to-text-100); + --system-progress-bar-spacing-label-to-text: var(--spectrum-spacing-200); + --system-progress-bar-text-color: var(--spectrum-neutral-content-color-default); + --system-progress-bar-track-color: var(--spectrum-gray-300); + --system-progress-bar-fill-color: var(--spectrum-accent-color-900); + --system-progress-bar-fill-color-positive: var(--spectrum-positive-visual-color); + --system-progress-bar-fill-color-notice: var(--spectrum-notice-visual-color); + --system-progress-bar-fill-color-negative: var(--spectrum-negative-visual-color); + --system-progress-bar-label-and-value-white: var(--spectrum-white); + --system-progress-bar-track-color-white: var(--spectrum-transparent-white-300); + --system-progress-bar-fill-color-white: var(--spectrum-white); + --system-progress-bar-size-s-size-default: var(--system-progress-bar-size-2400); + --system-progress-bar-size-s-font-size: var(--spectrum-font-size-75); + --system-progress-bar-size-s-thickness: var(--spectrum-progress-bar-thickness-small); + --system-progress-bar-size-s-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-progress-bar-size-m-size-default: var(--system-progress-bar-size-2400); + --system-progress-bar-size-m-font-size: var(--spectrum-font-size-75); + --system-progress-bar-size-m-thickness: var(--spectrum-progress-bar-thickness-large); + --system-progress-bar-size-m-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-progress-bar-size-l-size-default: var(--system-progress-bar-size-2500); + --system-progress-bar-size-l-font-size: var(--spectrum-font-size-100); + --system-progress-bar-size-l-thickness: var(--spectrum-progress-bar-thickness-large); + --system-progress-bar-size-l-spacing-top-to-text: var(--spectrum-component-top-to-text-200); + --system-progress-bar-size-xl-size-default: var(--system-progress-bar-size-2800); + --system-progress-bar-size-xl-font-size: var(--spectrum-font-size-200); + --system-progress-bar-size-xl-thickness: var(--spectrum-progress-bar-thickness-extra-large); + --system-progress-bar-size-xl-spacing-top-to-text: var(--spectrum-component-top-to-text-300); + --system-meter-min-width: var(--spectrum-meter-minimum-width); + --system-meter-max-width: var(--spectrum-meter-maximum-width); + --system-meter-inline-size: var(--spectrum-meter-width); + --system-meter-top-to-text: var(--spectrum-component-top-to-text); + --system-meter-size-s-progressbar-thickness: var(--spectrum-meter-thickness-small); + --system-meter-size-s-progressbar-size-default: var(--system-progress-bar-size-2400); + --system-meter-size-s-progressbar-font-size: var(--spectrum-font-size-75); + --system-meter-size-s-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-75); + --system-meter-size-l-progressbar-thickness: var(--spectrum-meter-thickness-large); + --system-meter-size-l-progressbar-size-default: var(--system-progress-bar-size-2500); + --system-meter-size-l-progressbar-font-size: var(--spectrum-font-size-100); + --system-meter-size-l-progressbar-spacing-top-to-text: var(--spectrum-component-top-to-text-200); +} diff --git a/tokens/dist/css/components/express/progresscircle.css b/tokens/dist/css/components/express/progresscircle.css new file mode 100644 index 00000000000..2fafec20277 --- /dev/null +++ b/tokens/dist/css/components/express/progresscircle.css @@ -0,0 +1,28 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-progress-circle-track-border-color: var(--spectrum-gray-300); + --system-progress-circle-fill-border-color: var(--spectrum-accent-content-color-default); + --system-progress-circle-track-border-color-over-background: var(--spectrum-transparent-white-300); + --system-progress-circle-fill-border-color-over-background: var(--spectrum-transparent-white-900); + --system-progress-circle-size: var(--spectrum-progress-circle-size-medium); + --system-progress-circle-thickness: var(--spectrum-progress-circle-thickness-medium); + --system-progress-circle-track-border-style: solid; + --system-progress-circle-small-size: var(--spectrum-progress-circle-size-small); + --system-progress-circle-small-thickness: var(--spectrum-progress-circle-thickness-small); + --system-progress-circle-medium-size: var(--spectrum-progress-circle-size-medium); + --system-progress-circle-medium-thickness: var(--spectrum-progress-circle-thickness-medium); + --system-progress-circle-large-size: var(--spectrum-progress-circle-size-large); + --system-progress-circle-large-thickness: var(--spectrum-progress-circle-thickness-large); +} diff --git a/tokens/dist/css/components/express/radio.css b/tokens/dist/css/components/express/radio.css deleted file mode 100644 index 892173360e5..00000000000 --- a/tokens/dist/css/components/express/radio.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 - * - * 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--express { - --system-spectrum-radio-button-border-color-default: var(--spectrum-gray-800); - --system-spectrum-radio-button-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-radio-button-border-color-down: var(--spectrum-gray-900); - --system-spectrum-radio-button-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-radio-emphasized-button-checked-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-radio-emphasized-button-checked-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-radio-emphasized-button-checked-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-radio-emphasized-button-checked-border-color-focus: var(--spectrum-accent-color-1000); -} diff --git a/tokens/dist/css/components/express/rating.css b/tokens/dist/css/components/express/rating.css deleted file mode 100644 index 77cf8d3dd30..00000000000 --- a/tokens/dist/css/components/express/rating.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 - * - * 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--express { - --system-spectrum-rating-icon-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-rating-icon-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-rating-icon-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus); -} diff --git a/tokens/dist/css/components/express/search.css b/tokens/dist/css/components/express/search.css deleted file mode 100644 index 5668eaeae69..00000000000 --- a/tokens/dist/css/components/express/search.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 - * - * 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--express { - --system-spectrum-search-border-radius: calc(var(--spectrum-component-height-100) / 2); - --system-spectrum-search-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-search-border-color-default: var(--spectrum-gray-400); - --system-spectrum-search-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-search-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-search-sizes-border-radius: calc(var(--spectrum-component-height-75) / 2); - --system-spectrum-search-sizes-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-search-sizem-border-radius: calc(var(--spectrum-component-height-100) / 2); - --system-spectrum-search-sizem-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-search-sizel-border-radius: calc(var(--spectrum-component-height-200) / 2); - --system-spectrum-search-sizel-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-200); - --system-spectrum-search-sizexl-border-radius: calc(var(--spectrum-component-height-300) / 2); - --system-spectrum-search-sizexl-edge-to-visual: var(--spectrum-component-pill-edge-to-visual-300); -} diff --git a/tokens/dist/css/components/express/sidenav.css b/tokens/dist/css/components/express/sidenav.css new file mode 100644 index 00000000000..08f0362f167 --- /dev/null +++ b/tokens/dist/css/components/express/sidenav.css @@ -0,0 +1,79 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-side-nav-focus-ring-size: var(--spectrum-focus-indicator-thickness); + --system-side-nav-focus-ring-gap: var(--spectrum-focus-indicator-gap); + --system-side-nav-focus-ring-color: var(--spectrum-focus-indicator-color); + --system-side-nav-min-height: var(--spectrum-component-height-100); + --system-side-nav-width: 100%; + --system-side-nav-min-width: var(--spectrum-side-navigation-minimum-width); + --system-side-nav-max-width: var(--spectrum-side-navigation-maximum-width); + --system-side-nav-border-radius: var(--spectrum-corner-radius-100); + --system-side-nav-icon-size: var(--spectrum-workflow-icon-size-100); + --system-side-nav-icon-spacing: var(--spectrum-text-to-visual-100); + --system-side-nav-inline-padding: var(--spectrum-component-edge-to-text-100); + --system-side-nav-gap: var(--spectrum-side-navigation-item-to-item); + --system-side-nav-top-to-icon: var(--spectrum-component-top-to-workflow-icon-100); + --system-side-nav-top-to-label: var(--spectrum-component-top-to-text-100); + --system-side-nav-bottom-to-label: var(--spectrum-side-navigation-bottom-to-text); + --system-side-nav-start-to-content-second-level: var(--spectrum-side-navigation-second-level-edge-to-text); + --system-side-nav-start-to-content-third-level: var(--spectrum-side-navigation-third-level-edge-to-text); + --system-side-nav-start-to-content-with-icon-second-level: var(--spectrum-side-navigation-with-icon-second-level-edge-to-text); + --system-side-nav-start-to-content-with-icon-third-level: var(--spectrum-side-navigation-with-icon-third-level-edge-to-text); + --system-side-nav-heading-top-margin: var(--spectrum-side-navigation-item-to-header); + --system-side-nav-heading-bottom-margin: var(--spectrum-side-navigation-header-to-item); + --system-side-nav-background-disabled: transparent; + --system-side-nav-background-default: transparent; + --system-side-nav-background-hover: var(--spectrum-gray-200); + --system-side-nav-item-background-down: var(--spectrum-gray-300); + --system-side-nav-background-key-focus: var(--spectrum-gray-200); + --system-side-nav-item-background-default-selected: var(--spectrum-gray-200); + --system-side-nav-background-hover-selected: var(--spectrum-gray-300); + --system-side-nav-item-background-down-selected: var(--spectrum-gray-300); + --system-side-nav-background-key-focus-selected: var(--spectrum-gray-200); + --system-side-nav-header-color: var(--spectrum-gray-600); + --system-side-nav-content-disabled-color: var(--spectrum-disabled-content-color); + --system-side-nav-content-color-default: var(--spectrum-neutral-content-color-default); + --system-side-nav-content-color-hover: var(--spectrum-neutral-content-color-hover); + --system-side-nav-content-color-down: var(--spectrum-neutral-content-color-down); + --system-side-nav-content-color-key-focus: var(--spectrum-neutral-content-color-key-focus); + --system-side-nav-content-color-default-selected: var(--spectrum-neutral-content-color-default); + --system-side-nav-content-color-hover-selected: var(--spectrum-neutral-content-color-hover); + --system-side-nav-content-color-down-selected: var(--spectrum-neutral-content-color-down); + --system-side-nav-content-color-key-focus-selected: var(--spectrum-neutral-content-color-key-focus); + --system-side-nav-text-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-text-font-weight: var(--spectrum-regular-font-weight); + --system-side-nav-text-font-style: var(--spectrum-default-font-style); + --system-side-nav-text-font-size: var(--spectrum-font-size-100); + --system-side-nav-text-line-height: var(--spectrum-line-height-100); + --system-side-nav-top-level-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-top-level-font-weight: var(--spectrum-bold-font-weight); + --system-side-nav-top-level-font-style: var(--spectrum-default-font-style); + --system-side-nav-top-level-font-size: var(--spectrum-font-size-100); + --system-side-nav-top-level-line-height: var(--spectrum-line-height-100); + --system-side-nav-header-font-family: var(--spectrum-sans-font-family-stack); + --system-side-nav-header-font-weight: var(--spectrum-medium-font-weight); + --system-side-nav-header-font-style: var(--spectrum-default-font-style); + --system-side-nav-header-font-size: var(--spectrum-font-size-75); + --system-side-nav-header-line-height: var(--spectrum-line-height-100); + --system-side-nav-lang-ja-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-text-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ja-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-top-level-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ja-header-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-zh-header-line-height: var(--spectrum-cjk-line-height-100); + --system-side-nav-lang-ko-header-line-height: var(--spectrum-cjk-line-height-100); +} diff --git a/tokens/dist/css/components/express/slider.css b/tokens/dist/css/components/express/slider.css deleted file mode 100644 index 493ac3fce7b..00000000000 --- a/tokens/dist/css/components/express/slider.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 - * - * 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--express { - --system-spectrum-slider-track-color: var(--spectrum-gray-200); - --system-spectrum-slider-track-fill-color: var(--spectrum-gray-600); - --system-spectrum-slider-ramp-track-color: var(--spectrum-gray-300); - --system-spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - --system-spectrum-slider-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-handle-background-color-disabled: var(--spectrum-gray-50); - --system-spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-handle-border-color: var(--spectrum-gray-800); - --system-spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-50); - --system-spectrum-slider-tick-mark-color: var(--spectrum-gray-200); - --system-spectrum-slider-handle-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-slider-handle-border-color-down: var(--spectrum-gray-900); - --system-spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); -} diff --git a/tokens/dist/css/components/express/splitview.css b/tokens/dist/css/components/express/splitview.css new file mode 100644 index 00000000000..65fa1122e2f --- /dev/null +++ b/tokens/dist/css/components/express/splitview.css @@ -0,0 +1,31 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-split-view-vertical-width: 100%; + --system-split-view-vertical-gripper-width: 50%; + --system-split-view-vertical-gripper-outer-width: 100%; + --system-split-view-vertical-gripper-reset: 0; + --system-split-view-background-color: var(--spectrum-gray-100); + --system-split-view-content-color: var(--spectrum-body-color); + --system-split-view-handle-background-color: var(--spectrum-gray-300); + --system-split-view-handle-background-color-hover: var(--spectrum-gray-400); + --system-split-view-handle-background-color-down: var(--spectrum-gray-800); + --system-split-view-handle-background-color-focus: var(--spectrum-focus-indicator-color); + --system-split-view-handle-width: var(--spectrum-border-width-200); + --system-split-view-gripper-border-radius: var(--spectrum-corner-radius-75); + --system-split-view-gripper-width: var(--spectrum-border-width-400); + --system-split-view-gripper-height: 16px; + --system-split-view-gripper-border-width-horizontal: 3px; + --system-split-view-gripper-border-width-vertical: var(--spectrum-border-width-400); +} diff --git a/tokens/dist/css/components/express/statuslight.css b/tokens/dist/css/components/express/statuslight.css new file mode 100644 index 00000000000..acdcf90c8e5 --- /dev/null +++ b/tokens/dist/css/components/express/statuslight.css @@ -0,0 +1,77 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-status-light-corner-radius: 50%; + --system-status-light-font-weight: 400; + --system-status-light-border-width: var(--spectrum-border-width-100); + --system-status-light-height: var(--spectrum-component-height-100); + --system-status-light-dot-size: var(--spectrum-status-light-dot-size-medium); + --system-status-light-line-height: var(--spectrum-line-height-100); + --system-status-light-line-height-cjk: var(--spectrum-cjk-line-height-100); + --system-status-light-font-size: var(--spectrum-font-size-100); + --system-status-light-spacing-dot-to-label: var(--spectrum-text-to-visual-100); + --system-status-light-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-medium); + --system-status-light-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --system-status-light-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); + --system-status-light-content-color-default: var(--spectrum-neutral-content-color-default); + --system-status-light-subdued-content-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-status-light-semantic-neutral-color: var(--spectrum-neutral-visual-color); + --system-status-light-semantic-accent-color: var(--spectrum-accent-visual-color); + --system-status-light-semantic-negative-color: var(--spectrum-negative-visual-color); + --system-status-light-semantic-info-color: var(--spectrum-informative-visual-color); + --system-status-light-semantic-notice-color: var(--spectrum-notice-visual-color); + --system-status-light-semantic-positive-color: var(--spectrum-positive-visual-color); + --system-status-light-nonsemantic-gray-color: var(--spectrum-gray-visual-color); + --system-status-light-nonsemantic-red-color: var(--spectrum-red-visual-color); + --system-status-light-nonsemantic-orange-color: var(--spectrum-orange-visual-color); + --system-status-light-nonsemantic-yellow-color: var(--spectrum-yellow-visual-color); + --system-status-light-nonsemantic-chartreuse-color: var(--spectrum-chartreuse-visual-color); + --system-status-light-nonsemantic-celery-color: var(--spectrum-celery-visual-color); + --system-status-light-nonsemantic-green-color: var(--spectrum-green-visual-color); + --system-status-light-nonsemantic-seafoam-color: var(--spectrum-seafoam-visual-color); + --system-status-light-nonsemantic-cyan-color: var(--spectrum-cyan-visual-color); + --system-status-light-nonsemantic-blue-color: var(--spectrum-blue-visual-color); + --system-status-light-nonsemantic-indigo-color: var(--spectrum-indigo-visual-color); + --system-status-light-nonsemantic-purple-color: var(--spectrum-purple-visual-color); + --system-status-light-nonsemantic-fuchsia-color: var(--spectrum-fuchsia-visual-color); + --system-status-light-nonsemantic-magenta-color: var(--spectrum-magenta-visual-color); + --system-status-light-size-s-height: var(--spectrum-component-height-75); + --system-status-light-size-s-dot-size: var(--spectrum-status-light-dot-size-small); + --system-status-light-size-s-font-size: var(--spectrum-font-size-75); + --system-status-light-size-s-spacing-dot-to-label: var(--spectrum-text-to-visual-75); + --system-status-light-size-s-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-small); + --system-status-light-size-s-spacing-top-to-label: var(--spectrum-component-top-to-text-75); + --system-status-light-size-s-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-75); + --system-status-light-size-m-height: var(--spectrum-component-height-100); + --system-status-light-size-m-dot-size: var(--spectrum-status-light-dot-size-medium); + --system-status-light-size-m-font-size: var(--spectrum-font-size-100); + --system-status-light-size-m-spacing-dot-to-label: var(--spectrum-text-to-visual-100); + --system-status-light-size-m-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-medium); + --system-status-light-size-m-spacing-top-to-label: var(--spectrum-component-top-to-text-100); + --system-status-light-size-m-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-100); + --system-status-light-size-l-height: var(--spectrum-component-height-200); + --system-status-light-size-l-dot-size: var(--spectrum-status-light-dot-size-large); + --system-status-light-size-l-font-size: var(--spectrum-font-size-200); + --system-status-light-size-l-spacing-dot-to-label: var(--spectrum-text-to-visual-200); + --system-status-light-size-l-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-large); + --system-status-light-size-l-spacing-top-to-label: var(--spectrum-component-top-to-text-200); + --system-status-light-size-l-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-200); + --system-status-light-size-xl-height: var(--spectrum-component-height-300); + --system-status-light-size-xl-dot-size: var(--spectrum-status-light-dot-size-extra-large); + --system-status-light-size-xl-font-size: var(--spectrum-font-size-300); + --system-status-light-size-xl-spacing-dot-to-label: var(--spectrum-text-to-visual-300); + --system-status-light-size-xl-spacing-top-to-dot: var(--spectrum-status-light-top-to-dot-extra-large); + --system-status-light-size-xl-spacing-top-to-label: var(--spectrum-component-top-to-text-300); + --system-status-light-size-xl-spacing-bottom-to-label: var(--spectrum-component-bottom-to-text-300); +} diff --git a/tokens/dist/css/components/express/steplist.css b/tokens/dist/css/components/express/steplist.css new file mode 100644 index 00000000000..d524aac1091 --- /dev/null +++ b/tokens/dist/css/components/express/steplist.css @@ -0,0 +1,32 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-steplist-step-width: 80px; + --system-steplist-marker-diameter: 8px; + --system-steplist-marker-hit-area: 20px; + --system-steplist-segment-height: 2px; + --system-steplist-top-padding: 22px; + --system-steplist-small-top-padding: 11px; + --system-steplist-side-padding: 60px; + --system-steplist-label-label-offset: 10px; + --system-steplist-label-text-size: 12px; + --system-steplist-current-label-text-color: var(--spectrum-gray-800); + --system-steplist-current-marker-color: var(--spectrum-gray-800); + --system-steplist-complete-label-text-color: var(--spectrum-gray-700); + --system-steplist-incomplete-label-color: var(--spectrum-gray-600); + --system-steplist-complete-marker-background-color: var(--spectrum-gray-600); + --system-steplist-incomplete-marker-border-color: var(--spectrum-gray-300); + --system-steplist-incomplete-segment-border-block-end-color: var(--spectrum-gray-300); + --system-steplist-complete-segment-border-block-end-color: var(--spectrum-gray-600); +} diff --git a/tokens/dist/css/components/express/stepper.css b/tokens/dist/css/components/express/stepper.css deleted file mode 100644 index 6935f77b8f0..00000000000 --- a/tokens/dist/css/components/express/stepper.css +++ /dev/null @@ -1,38 +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 - * - * 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--express { - --system-spectrum-stepper-border-width: var(--spectrum-border-width-200); - --system-spectrum-stepper-buttons-border-style: solid; - --system-spectrum-stepper-buttons-border-width: var(--spectrum-border-width-200); - --system-spectrum-stepper-buttons-border-color: transparent; - --system-spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --system-spectrum-stepper-buttons-border-color-hover: transparent; - --system-spectrum-stepper-buttons-border-color-focus: transparent; - --system-spectrum-stepper-buttons-border-color-keyboard-focus: transparent; - --system-spectrum-stepper-button-border-radius-reset: var(--spectrum-in-field-button-fill-stacked-inner-border-rounding); - --system-spectrum-stepper-button-border-width: 0; - --system-spectrum-stepper-border-color: var(--spectrum-gray-400); - --system-spectrum-stepper-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-invalid: transparent; - --system-spectrum-stepper-border-color-focus-invalid: transparent; - --system-spectrum-stepper-border-color-focus-hover-invalid: transparent; - --system-spectrum-stepper-border-color-keyboard-focus-invalid: transparent; - --system-spectrum-stepper-button-background-color-focus: var(--spectrum-gray-400); - --system-spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-300); - --system-spectrum-stepper-disabled-buttons-background-color: var(--spectrum-disabled-background-color); - --system-spectrum-stepper-disabled-buttons-border-width: 0; -} diff --git a/tokens/dist/css/components/express/swatch.css b/tokens/dist/css/components/express/swatch.css new file mode 100644 index 00000000000..6311f89a418 --- /dev/null +++ b/tokens/dist/css/components/express/swatch.css @@ -0,0 +1,47 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-swatch-border-radius: var(--spectrum-corner-radius-100); + --system-swatch-focus-indicator-border-radius: var(--spectrum-corner-radius-200); + --system-swatch-border-thickness: var(--spectrum-border-width-100); + --system-swatch-border-thickness-selected: var(--spectrum-border-width-200); + --system-swatch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-swatch-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-swatch-border-color-opacity: 0.51; + --system-swatch-border-color-light-opacity: 0.2; + --system-swatch-border-color: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-opacity)); + --system-swatch-icon-border-color: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-opacity)); + --system-swatch-border-color-light: rgba(var(--spectrum-black-rgb), var(--system-swatch-border-color-light-opacity)); + --system-swatch-border-color-selected: var(--spectrum-gray-900); + --system-swatch-inner-border-color-selected: var(--spectrum-gray-50); + --system-swatch-disabled-icon-color: var(--spectrum-gray-50); + --system-swatch-dash-icon-color: var(--spectrum-gray-800); + --system-swatch-slash-icon-color: var(--spectrum-red-900); + --system-swatch-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-swatch-size-xs-size: var(--spectrum-swatch-size-extra-small); + --system-swatch-size-xs-disabled-icon-size: var(--spectrum-workflow-icon-size-50); + --system-swatch-size-xs-slash-thickness: var(--spectrum-swatch-slash-thickness-extra-small); + --system-swatch-size-s-size: var(--spectrum-swatch-size-small); + --system-swatch-size-s-disabled-icon-size: var(--spectrum-workflow-icon-size-75); + --system-swatch-size-s-slash-thickness: var(--spectrum-swatch-slash-thickness-small); + --system-swatch-size: var(--spectrum-swatch-size-medium); + --system-swatch-size-m-size: var(--spectrum-swatch-size-medium); + --system-swatch-disabled-icon-size: var(--spectrum-workflow-icon-size-100); + --system-swatch-size-m-disabled-icon-size: var(--spectrum-workflow-icon-size-100); + --system-swatch-slash-thickness: var(--spectrum-swatch-slash-thickness-medium); + --system-swatch-size-m-slash-thickness: var(--spectrum-swatch-slash-thickness-medium); + --system-swatch-size-l-size: var(--spectrum-swatch-size-large); + --system-swatch-size-l-disabled-icon-size: var(--spectrum-workflow-icon-size-200); + --system-swatch-size-l-slash-thickness: var(--spectrum-swatch-slash-thickness-large); +} diff --git a/tokens/dist/css/components/express/swatchgroup.css b/tokens/dist/css/components/express/swatchgroup.css new file mode 100644 index 00000000000..d1985199b01 --- /dev/null +++ b/tokens/dist/css/components/express/swatchgroup.css @@ -0,0 +1,18 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-swatch-group-spacing-compact: var(--spectrum-spacing-50); + --system-swatch-group-spacing-regular: var(--spectrum-spacing-75); + --system-swatch-group-spacing-spacious: var(--spectrum-spacing-100); +} diff --git a/tokens/dist/css/components/express/switch.css b/tokens/dist/css/components/express/switch.css deleted file mode 100644 index c716f5b9b1d..00000000000 --- a/tokens/dist/css/components/express/switch.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 - * - * 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--express { - --system-spectrum-switch-handle-border-color-default: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-900); -} diff --git a/tokens/dist/css/components/express/table.css b/tokens/dist/css/components/express/table.css new file mode 100644 index 00000000000..460cd4a40cc --- /dev/null +++ b/tokens/dist/css/components/express/table.css @@ -0,0 +1,181 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-table-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-medium); + --system-table-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-medium); + --system-table-min-header-height: var(--spectrum-component-height-100); + --system-table-min-row-height: var(--spectrum-table-row-height-medium-regular); + --system-table-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-regular); + --system-table-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-regular); + --system-table-cell-inline-space: var(--spectrum-table-edge-to-content); + --system-table-border-radius: var(--spectrum-corner-radius-100); + --system-table-border-width: var(--spectrum-table-border-divider-width); + --system-table-outer-border-inline-width: var(--spectrum-table-border-divider-width); + --system-table-icon-to-text: var(--spectrum-text-to-visual-100); + --system-table-default-vertical-align: top; + --system-table-header-vertical-align: middle; + --system-table-header-font-weight: var(--spectrum-bold-font-weight); + --system-table-row-font-family: var(--spectrum-sans-font-family-stack); + --system-table-row-font-weight: var(--spectrum-regular-font-weight); + --system-table-row-font-style: var(--spectrum-default-font-style); + --system-table-row-font-size: var(--spectrum-font-size-100); + --system-table-row-line-height: var(--spectrum-line-height-100); + --system-table-border-color: var(--spectrum-gray-300); + --system-table-divider-color: var(--spectrum-gray-300); + --system-table-header-background-color: var(--spectrum-transparent-white-100); + --system-table-header-text-color: var(--spectrum-body-color); + --system-table-row-background-color: var(--spectrum-gray-50); + --system-table-row-text-color: var(--spectrum-neutral-content-color-default); + --system-table-selected-row-background-color: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity)); + --system-table-selected-row-background-color-non-emphasized: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized)); + --system-table-row-background-color-hover: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-hover-opacity)); + --system-table-row-active-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-table-row-down-opacity)); + --system-table-selected-row-background-color-focus: rgba(var(--spectrum-blue-900-rgb), var(--spectrum-table-selected-row-background-opacity-hover)); + --system-table-selected-row-background-color-non-emphasized-focus: rgba(var(--spectrum-gray-700-rgb), var(--spectrum-table-selected-row-background-opacity-non-emphasized-hover)); + --system-table-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); + --system-table-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); + --system-table-icon-color-active: var(--spectrum-neutral-subdued-content-color-down); + --system-table-icon-color-focus: var(--spectrum-neutral-subdued-content-color-focus); + --system-table-icon-color-focus-hover: var(--spectrum-neutral-subdued-content-focus-hover); + --system-table-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); + --system-table-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-medium); + --system-table-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-regular); + --system-table-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-table-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-table-drop-zone-background-color: rgba(var(--spectrum-drop-zone-background-color-rgb), var(--spectrum-drop-zone-background-color-opacity)); + --system-table-drop-zone-outline-color: var(--spectrum-accent-visual-color); + --system-table-transition-duration: var(--spectrum-animation-duration-100); + --system-table-summary-row-font-weight: var(--spectrum-bold-font-weight); + --system-table-summary-row-background-color: var(--spectrum-gray-200); + --system-table-section-header-min-height: var(--spectrum-table-section-header-row-height-medium); + --system-table-section-header-block-start-spacing: var(--spectrum-component-top-to-text-100); + --system-table-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-100); + --system-table-section-header-font-weight: var(--spectrum-bold-font-weight); + --system-table-section-header-background-color: var(--spectrum-gray-200); + --system-table-collapsible-tier-indent: var(--spectrum-spacing-300); + --system-table-collapsible-disclosure-inline-spacing: 0px; + --system-table-disclosure-icon-size: var(--spectrum-component-height-100); + --system-table-collapsible-icon-animation-duration: var(--spectrum-animation-duration-100); + --system-table-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --system-table-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-regular); + --system-table-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-cell-background-color: var(--system-table-row-background-color); + --system-table-selected-cell-background-color: var(--system-table-selected-row-background-color-non-emphasized); + --system-table-selected-cell-background-color-focus: var(--system-table-selected-row-background-color-non-emphasized-focus); + --system-table-size-s-min-header-height: var(--spectrum-component-height-100); + --system-table-size-s-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-small); + --system-table-size-s-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-small); + --system-table-size-s-min-row-height: var(--spectrum-table-row-height-small-regular); + --system-table-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-regular); + --system-table-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-regular); + --system-table-size-s-icon-to-text: var(--spectrum-text-to-visual-100); + --system-table-size-s-row-font-size: var(--spectrum-font-size-75); + --system-table-size-s-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-small); + --system-table-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-regular); + --system-table-size-s-section-header-min-height: var(--spectrum-table-section-header-row-height-small); + --system-table-size-s-section-header-block-start-spacing: var(--spectrum-component-top-to-text-75); + --system-table-size-s-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-75); + --system-table-size-s-disclosure-icon-size: var(--spectrum-component-height-75); + --system-table-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-regular); + --system-table-size-s-thumbnail-to-text: var(--spectrum-text-to-visual-100); + --system-table-size-s-thumbnail-size: var(--spectrum-thumbnail-size-200); + --system-table-size-l-min-header-height: var(--spectrum-component-height-200); + --system-table-size-l-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-large); + --system-table-size-l-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-large); + --system-table-size-l-min-row-height: var(--spectrum-table-row-height-large-regular); + --system-table-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-regular); + --system-table-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-regular); + --system-table-size-l-icon-to-text: var(--spectrum-text-to-visual-200); + --system-table-size-l-row-font-size: var(--spectrum-font-size-200); + --system-table-size-l-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-large); + --system-table-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-regular); + --system-table-size-l-section-header-min-height: var(--spectrum-table-section-header-row-height-large); + --system-table-size-l-section-header-block-start-spacing: var(--spectrum-component-top-to-text-200); + --system-table-size-l-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-200); + --system-table-size-l-disclosure-icon-size: var(--spectrum-component-height-200); + --system-table-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-regular); + --system-table-size-l-thumbnail-to-text: var(--spectrum-text-to-visual-200); + --system-table-size-l-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-size-xl-min-header-height: var(--spectrum-component-height-300); + --system-table-size-xl-header-top-to-text: var(--spectrum-table-column-header-row-top-to-text-extra-large); + --system-table-size-xl-header-bottom-to-text: var(--spectrum-table-column-header-row-bottom-to-text-extra-large); + --system-table-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-regular); + --system-table-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-regular); + --system-table-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-regular); + --system-table-size-xl-icon-to-text: var(--spectrum-text-to-visual-300); + --system-table-size-xl-row-font-size: var(--spectrum-font-size-300); + --system-table-size-xl-header-checkbox-block-spacing: var(--spectrum-table-header-row-checkbox-to-top-extra-large); + --system-table-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-regular); + --system-table-size-xl-section-header-min-height: var(--spectrum-table-section-header-row-height-extra-large); + --system-table-size-xl-section-header-block-start-spacing: var(--spectrum-component-top-to-text-300); + --system-table-size-xl-section-header-block-end-spacing: var(--spectrum-component-bottom-to-text-300); + --system-table-size-xl-disclosure-icon-size: var(--spectrum-component-height-300); + --system-table-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-regular); + --system-table-size-xl-thumbnail-to-text: var(--spectrum-text-to-visual-300); + --system-table-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-700); + --system-table-compact-min-row-height: var(--spectrum-table-row-height-medium-compact); + --system-table-compact-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-compact); + --system-table-compact-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-compact); + --system-table-compact-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-compact); + --system-table-compact-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-compact); + --system-table-compact-thumbnail-size: var(--spectrum-thumbnail-size-200); + --system-table-compact-size-s-min-row-height: var(--spectrum-table-row-height-small-compact); + --system-table-compact-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-compact); + --system-table-compact-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-compact); + --system-table-compact-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-compact); + --system-table-compact-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-compact); + --system-table-compact-size-s-thumbnail-size: var(--spectrum-thumbnail-size-50); + --system-table-compact-size-l-min-row-height: var(--spectrum-table-row-height-large-compact); + --system-table-compact-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-compact); + --system-table-compact-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-compact); + --system-table-compact-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-compact); + --system-table-compact-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-compact); + --system-table-compact-size-l-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-compact-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-compact); + --system-table-compact-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-compact); + --system-table-compact-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-compact); + --system-table-compact-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-compact); + --system-table-compact-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-compact); + --system-table-compact-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-spacious-min-row-height: var(--spectrum-table-row-height-medium-spacious); + --system-table-spacious-row-top-to-text: var(--spectrum-table-row-top-to-text-medium-spacious); + --system-table-spacious-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-medium-spacious); + --system-table-spacious-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-medium-spacious); + --system-table-spacious-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-medium-spacious); + --system-table-spacious-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-table-spacious-size-s-min-row-height: var(--spectrum-table-row-height-small-spacious); + --system-table-spacious-size-s-row-top-to-text: var(--spectrum-table-row-top-to-text-small-spacious); + --system-table-spacious-size-s-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-small-spacious); + --system-table-spacious-size-s-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-small-spacious); + --system-table-spacious-size-s-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-small-spacious); + --system-table-spacious-size-s-thumbnail-size: var(--spectrum-thumbnail-size-300); + --system-table-spacious-size-l-min-row-height: var(--spectrum-table-row-height-large-spacious); + --system-table-spacious-size-l-row-top-to-text: var(--spectrum-table-row-top-to-text-large-spacious); + --system-table-spacious-size-l-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-large-spacious); + --system-table-spacious-size-l-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-large-spacious); + --system-table-spacious-size-l-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-large-spacious); + --system-table-spacious-size-l-thumbnail-size: var(--spectrum-thumbnail-size-700); + --system-table-spacious-size-xl-min-row-height: var(--spectrum-table-row-height-extra-large-spacious); + --system-table-spacious-size-xl-row-top-to-text: var(--spectrum-table-row-top-to-text-extra-large-spacious); + --system-table-spacious-size-xl-row-bottom-to-text: var(--spectrum-table-row-bottom-to-text-extra-large-spacious); + --system-table-spacious-size-xl-row-checkbox-block-spacing: var(--spectrum-table-row-checkbox-to-top-extra-large-spacious); + --system-table-spacious-size-xl-thumbnail-block-spacing: var(--spectrum-table-thumbnail-to-top-minimum-extra-large-spacious); + --system-table-spacious-size-xl-thumbnail-size: var(--spectrum-thumbnail-size-800); + --system-table-emphasized-selected-cell-background-color: var(--system-table-selected-row-background-color); + --system-table-emphasized-selected-cell-background-color-focus: var(--system-table-selected-row-background-color-focus); + --system-table-quiet-border-radius: 0px; + --system-table-quiet-outer-border-inline-width: 0px; + --system-table-quiet-header-background-color: var(--spectrum-transparent-white-100); + --system-table-quiet-row-background-color: var(--spectrum-transparent-white-100); +} diff --git a/tokens/dist/css/components/express/tabs.css b/tokens/dist/css/components/express/tabs.css deleted file mode 100644 index 29c75453742..00000000000 --- a/tokens/dist/css/components/express/tabs.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 - * - * 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--express { - --system-spectrum-tabs-font-weight: var(--spectrum-bold-font-weight); -} diff --git a/tokens/dist/css/components/express/tag.css b/tokens/dist/css/components/express/tag.css deleted file mode 100644 index c550e784ff6..00000000000 --- a/tokens/dist/css/components/express/tag.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 - * - * 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--express { - --system-spectrum-tag-border-color: var(--spectrum-gray-300); - --system-spectrum-tag-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-tag-border-color-active: var(--spectrum-gray-500); - --system-spectrum-tag-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-tag-size-small-corner-radius: var(--spectrum-component-height-75); - --system-spectrum-tag-size-medium-corner-radius: var(--spectrum-component-height-100); - --system-spectrum-tag-size-large-corner-radius: var(--spectrum-component-height-200); - --system-spectrum-tag-background-color: transparent; - --system-spectrum-tag-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-tag-background-color-active: var(--spectrum-gray-400); - --system-spectrum-tag-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-tag-content-color: var(--spectrum-neutral-content-color-default); - --system-spectrum-tag-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-tag-content-color-active: var(--spectrum-neutral-content-color-down); - --system-spectrum-tag-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-tag-border-color-selected: var(--spectrum-neutral-background-color-default); - --system-spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-tag-border-color-selected-active: var(--spectrum-neutral-background-color-down); - --system-spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-tag-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-tag-background-color-disabled: transparent; - --system-spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-75); - --system-spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-75); - --system-spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-100); - --system-spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-100); - --system-spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-pill-edge-to-visual-200); - --system-spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-pill-edge-to-text-200); - --system-spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-pill-edge-to-visual-200); -} diff --git a/tokens/dist/css/components/spectrum/alertbanner.css b/tokens/dist/css/components/express/taggroup.css similarity index 79% rename from tokens/dist/css/components/spectrum/alertbanner.css rename to tokens/dist/css/components/express/taggroup.css index c249affdb34..2c9d471de00 100644 --- a/tokens/dist/css/components/spectrum/alertbanner.css +++ b/tokens/dist/css/components/express/taggroup.css @@ -11,6 +11,7 @@ * governing permissions and limitations under the License. */ -.spectrum { - --system-spectrum-alertbanner-spectrum-alert-banner-netural-background: var(--spectrum-neutral-subdued-background-color-default); +.spectrum.spectrum--express { + --system-tag-group-item-margin-block: var(--spectrum-spacing-75); + --system-tag-group-item-margin-inline: var(--spectrum-spacing-75); } diff --git a/tokens/dist/css/components/express/textfield.css b/tokens/dist/css/components/express/textfield.css deleted file mode 100644 index eb9e9854a73..00000000000 --- a/tokens/dist/css/components/express/textfield.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 - * - * 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--express { - --system-spectrum-textfield-border-color: var(--spectrum-gray-400); - --system-spectrum-textfield-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-textfield-border-width: var(--spectrum-border-width-200); -} diff --git a/tokens/dist/css/components/express/thumbnail.css b/tokens/dist/css/components/express/thumbnail.css new file mode 100644 index 00000000000..ab5a5d925a5 --- /dev/null +++ b/tokens/dist/css/components/express/thumbnail.css @@ -0,0 +1,41 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-thumbnail-size: var(--spectrum-thumbnail-size-500); + --system-thumbnail-border-radius: var(--spectrum-corner-radius-75); + --system-thumbnail-border-width: var(--spectrum-border-width-100); + --system-thumbnail-border-color-rgba: rgba(var(--spectrum-gray-800-rgb), var(--spectrum-thumbnail-border-color-opacity)); + --system-thumbnail-layer-border-width-inner: var(--spectrum-border-width-400); + --system-thumbnail-layer-border-color-inner: var(--spectrum-white); + --system-thumbnail-layer-border-width-outer: var(--spectrum-border-width-100); + --system-thumbnail-layer-border-color-outer: var(--spectrum-gray-500); + --system-thumbnail-border-width-selected: var(--spectrum-border-width-200); + --system-thumbnail-border-color-selected: var(--spectrum-accent-color-800); + --system-thumbnail-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness); + --system-thumbnail-focus-indicator-gap: var(--spectrum-focus-indicator-gap); + --system-thumbnail-focus-indicator-color: var(--spectrum-focus-indicator-color); + --system-thumbnail-color-opacity-disabled: var(--spectrum-thumbnail-opacity-disabled); + --system-thumbnail-size-50-size: var(--spectrum-thumbnail-size-50); + --system-thumbnail-size-75-size: var(--spectrum-thumbnail-size-75); + --system-thumbnail-size-100-size: var(--spectrum-thumbnail-size-100); + --system-thumbnail-size-200-size: var(--spectrum-thumbnail-size-200); + --system-thumbnail-size-300-size: var(--spectrum-thumbnail-size-300); + --system-thumbnail-size-400-size: var(--spectrum-thumbnail-size-400); + --system-thumbnail-size-500-size: var(--spectrum-thumbnail-size-500); + --system-thumbnail-size-600-size: var(--spectrum-thumbnail-size-600); + --system-thumbnail-size-700-size: var(--spectrum-thumbnail-size-700); + --system-thumbnail-size-800-size: var(--spectrum-thumbnail-size-800); + --system-thumbnail-size-900-size: var(--spectrum-thumbnail-size-900); + --system-thumbnail-size-1000-size: var(--spectrum-thumbnail-size-1000); +} diff --git a/tokens/dist/css/components/express/toast.css b/tokens/dist/css/components/express/toast.css deleted file mode 100644 index e7bb049aeb8..00000000000 --- a/tokens/dist/css/components/express/toast.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 - * - * 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--express { - --system-spectrum-toast-background-color-default: var(--spectrum-neutral-background-color-default); -} diff --git a/tokens/dist/css/components/express/tooltip.css b/tokens/dist/css/components/express/tooltip.css deleted file mode 100644 index f6e4a069dd1..00000000000 --- a/tokens/dist/css/components/express/tooltip.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 - * - * 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--express { - --system-spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-background-color-default); -} diff --git a/tokens/dist/css/express/custom-large-vars.css b/tokens/dist/css/components/express/tray.css similarity index 55% rename from tokens/dist/css/express/custom-large-vars.css rename to tokens/dist/css/components/express/tray.css index 51bb84b7abb..da371a6fc70 100644 --- a/tokens/dist/css/express/custom-large-vars.css +++ b/tokens/dist/css/components/express/tray.css @@ -11,13 +11,13 @@ * governing permissions and limitations under the License. */ -.spectrum--express.spectrum--large{ - --spectrum-colorwheel-path:"M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - - --spectrum-dialog-confirm-border-radius:8px; - - --spectrum-dial-border-radius:15px; - - --spectrum-assetcard-focus-ring-border-radius:12px; +.spectrum.spectrum--express { + --system-tray-exit-animation-delay: 0ms; + --system-tray-entry-animation-delay: 160ms; + --system-tray-max-inline-size: 375px; + --system-tray-spacing-edge-to-safe-zone: 64px; + --system-tray-entry-animation-duration: var(--spectrum-animation-duration-500); + --system-tray-exit-animation-duration: var(--spectrum-animation-duration-100); + --system-tray-corner-radius: var(--spectrum-corner-radius-100); + --system-tray-background-color: var(--spectrum-background-layer-2-color); } diff --git a/tokens/dist/css/components/express/treeview.css b/tokens/dist/css/components/express/treeview.css new file mode 100644 index 00000000000..f9081f137f7 --- /dev/null +++ b/tokens/dist/css/components/express/treeview.css @@ -0,0 +1,77 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-tree-view-line-height: var(--spectrum-line-height-200); + --system-tree-view-margin-block: 1em; + --system-tree-view-font-size: var(--spectrum-font-size-100); + --system-tree-view-item-min-block-size: var(--spectrum-component-height-100); + --system-tree-view-item-indentation: var(--spectrum-treeview-item-indentation-medium); + --system-tree-view-item-padding-inline-start: var(--spectrum-component-height-100); + --system-tree-view-item-padding-inline-end: var(--spectrum-component-edge-to-text-100); + --system-tree-view-section-spacing: var(--spectrum-treeview-item-indentation-medium); + --system-tree-view-heading-font-weight: var(--spectrum-bold-font-weight); + --system-tree-view-heading-bottom-to-text: var(--spectrum-component-edge-to-text-100); + --system-tree-view-heading-color: var(--spectrum-heading-color); + --system-tree-view-item-border-size: var(--spectrum-border-width-200); + --system-tree-view-item-border-size-selected: 1px; + --system-tree-view-item-border-radius: 0px; + --system-tree-view-item-border-color-selected: var(--spectrum-blue-800); + --system-tree-view-item-border-color-focus: var(--spectrum-blue-700); + --system-tree-view-item-background-color-hover: var(--spectrum-gray-100); + --system-tree-view-item-background-color-focus: var(--spectrum-gray-100); + --system-tree-view-item-border-color-quiet-selected: transparent; + --system-tree-view-item-icon-gap: var(--spectrum-text-to-visual-75); + --system-tree-view-item-icon-color: var(--spectrum-gray-700); + --system-tree-view-item-icon-color-hover: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-focus: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-selected: var(--spectrum-gray-900); + --system-tree-view-item-icon-color-disabled: var(--spectrum-disabled-content-color); + --system-tree-view-item-text-color: var(--spectrum-neutral-content-color-default); + --system-tree-view-item-text-color-selected: var(--spectrum-gray-900); + --system-tree-view-item-text-color-disabled: var(--spectrum-gray-500); + --system-tree-view-item-text-color-focus: var(--spectrum-gray-900); + --system-tree-view-item-text-color-hover: var(--spectrum-gray-900); + --system-tree-view-indicator-margin-inline-start: calc(var(--spectrum-component-height-100) * -1); + --system-tree-view-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-medium); + --system-tree-view-item-min-block-size-thumbnail-offset: var(--spectrum-treeview-item-min-block-size-thumbnail-offset-medium, 0px); + --system-tree-view-indicator-animation-duration: var(--spectrum-animation-duration-100); + --system-tree-view-size-s-font-size: var(--spectrum-font-size-75); + --system-tree-view-size-s-item-min-block-size: var(--spectrum-component-height-75); + --system-tree-view-size-s-item-indentation: var(--spectrum-treeview-item-indentation-small); + --system-tree-view-size-s-heading-bottom-to-text: var(--spectrum-component-edge-to-text-75); + --system-tree-view-size-s-item-padding-inline-start: var(--spectrum-component-height-75); + --system-tree-view-size-s-indicator-margin-inline-start: calc(var(--spectrum-component-height-75) * -1); + --system-tree-view-size-s-item-padding-inline-end: var(--spectrum-component-edge-to-text-75); + --system-tree-view-size-s-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-small); + --system-tree-view-size-s-item-min-block-size-thumbnail-offset: 6px; + --system-tree-view-size-l-font-size: var(--spectrum-font-size-200); + --system-tree-view-size-l-item-indentation: var(--spectrum-treeview-item-indentation-large); + --system-tree-view-size-l-item-min-block-size: var(--spectrum-component-height-200); + --system-tree-view-size-l-heading-bottom-to-text: var(--spectrum-component-edge-to-text-200); + --system-tree-view-size-l-item-padding-inline-start: var(--spectrum-component-height-200); + --system-tree-view-size-l-indicator-margin-inline-start: calc(var(--spectrum-component-height-200) * -1); + --system-tree-view-size-l-item-padding-inline-end: var(--spectrum-component-edge-to-text-200); + --system-tree-view-size-l-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-large); + --system-tree-view-size-l-item-min-block-size-thumbnail-offset: 0px; + --system-tree-view-size-xl-font-size: var(--spectrum-font-size-300); + --system-tree-view-size-xl-item-indentation: var(--spectrum-treeview-item-indentation-extra-large); + --system-tree-view-size-xl-item-min-block-size: var(--spectrum-component-height-300); + --system-tree-view-size-xl-heading-bottom-to-text: var(--spectrum-component-edge-to-text-300); + --system-tree-view-size-xl-item-padding-inline-start: var(--spectrum-component-height-300); + --system-tree-view-size-xl-indicator-margin-inline-start: calc(var(--spectrum-component-height-300) * -1); + --system-tree-view-size-xl-item-padding-inline-end: var(--spectrum-component-edge-to-text-300); + --system-tree-view-size-xl-indicator-padding: var(--spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large); + --system-tree-view-size-xl-item-min-block-size-thumbnail-offset: 0px; + --system-tree-view-detached-item-border-radius: var(--spectrum-corner-radius-100); +} diff --git a/tokens/dist/css/components/express/typography.css b/tokens/dist/css/components/express/typography.css new file mode 100644 index 00000000000..d21a909a434 --- /dev/null +++ b/tokens/dist/css/components/express/typography.css @@ -0,0 +1,74 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-font-family-ar: myriad-arabic, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --system-font-family-he: myriad-hebrew, adobe-clean, "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --system-font-family: var(--spectrum-sans-font-family-stack); + --system-font-style: var(--spectrum-default-font-style); + --system-font-size: var(--spectrum-font-size-100); + --system-heading-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-heading-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-heading-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-heading-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-heading-font-color: var(--spectrum-heading-color); + --system-heading-size-xxs-font-size: var(--spectrum-heading-size-xxs); + --system-heading-size-xxs-cjk-font-size: var(--spectrum-heading-cjk-size-xxs); + --system-heading-size-xs-font-size: var(--spectrum-heading-size-xs); + --system-heading-size-xs-cjk-font-size: var(--spectrum-heading-cjk-size-xs); + --system-heading-size-s-font-size: var(--spectrum-heading-size-s); + --system-heading-size-s-cjk-font-size: var(--spectrum-heading-cjk-size-s); + --system-heading-font-size: var(--spectrum-heading-size-m); + --system-heading-size-m-font-size: var(--spectrum-heading-size-m); + --system-heading-cjk-font-size: var(--spectrum-heading-cjk-size-m); + --system-heading-size-m-cjk-font-size: var(--spectrum-heading-cjk-size-m); + --system-heading-size-l-font-size: var(--spectrum-heading-size-l); + --system-heading-size-l-cjk-font-size: var(--spectrum-heading-cjk-size-l); + --system-heading-size-xl-font-size: var(--spectrum-heading-size-xl); + --system-heading-size-xl-cjk-font-size: var(--spectrum-heading-cjk-size-xl); + --system-heading-size-xxl-font-size: var(--spectrum-heading-size-xxl); + --system-heading-size-xxl-cjk-font-size: var(--spectrum-heading-cjk-size-xxl); + --system-heading-size-xxxl-font-size: var(--spectrum-heading-size-xxxl); + --system-heading-size-xxxl-cjk-font-size: var(--spectrum-heading-cjk-size-xxxl); + --system-body-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-body-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-body-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-body-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-body-font-color: var(--spectrum-body-color); + --system-body-size-xs-font-size: var(--spectrum-body-size-xs); + --system-body-size-s-font-size: var(--spectrum-body-size-s); + --system-body-font-size: var(--spectrum-body-size-m); + --system-body-size-m-font-size: var(--spectrum-body-size-m); + --system-body-size-l-font-size: var(--spectrum-body-size-l); + --system-body-size-xl-font-size: var(--spectrum-body-size-xl); + --system-body-size-xxl-font-size: var(--spectrum-body-size-xxl); + --system-body-size-xxxl-font-size: var(--spectrum-body-size-xxxl); + --system-detail-sans-serif-font-family: var(--spectrum-sans-font-family-stack); + --system-detail-serif-font-family: var(--spectrum-serif-font-family-stack); + --system-detail-cjk-font-family: var(--spectrum-cjk-font-family-stack); + --system-detail-font-color: var(--spectrum-detail-color); + --system-detail-size-s-font-size: var(--spectrum-detail-size-s); + --system-detail-font-size: var(--spectrum-detail-size-m); + --system-detail-size-m-font-size: var(--spectrum-detail-size-m); + --system-detail-size-l-font-size: var(--spectrum-detail-size-l); + --system-detail-size-xl-font-size: var(--spectrum-detail-size-xl); + --system-code-font-family: var(--spectrum-code-font-family-stack); + --system-code-cjk-letter-spacing: var(--spectrum-cjk-letter-spacing); + --system-code-font-color: var(--spectrum-code-color); + --system-code-size-xs-font-size: var(--spectrum-code-size-xs); + --system-code-size-s-font-size: var(--spectrum-code-size-s); + --system-code-font-size: var(--spectrum-code-size-m); + --system-code-size-m-font-size: var(--spectrum-code-size-m); + --system-code-size-l-font-size: var(--spectrum-code-size-l); + --system-code-size-xl-font-size: var(--spectrum-code-size-xl); +} diff --git a/tokens/dist/css/components/express/underlay.css b/tokens/dist/css/components/express/underlay.css new file mode 100644 index 00000000000..99b34933c67 --- /dev/null +++ b/tokens/dist/css/components/express/underlay.css @@ -0,0 +1,22 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-underlay-background-entry-animation-delay: var(--spectrum-animation-duration-0); + --system-underlay-background-exit-animation-ease: var(--spectrum-animation-ease-in); + --system-underlay-background-entry-animation-ease: var(--spectrum-animation-ease-out); + --system-underlay-background-entry-animation-duration: var(--spectrum-animation-duration-600); + --system-underlay-background-exit-animation-duration: var(--spectrum-animation-duration-300); + --system-underlay-background-exit-animation-delay: var(--spectrum-animation-duration-200); + --system-underlay-background-color: rgba(var(--spectrum-black-rgb), var(--spectrum-overlay-opacity)); +} diff --git a/tokens/dist/css/components/express/well.css b/tokens/dist/css/components/express/well.css new file mode 100644 index 00000000000..f5a04b491dc --- /dev/null +++ b/tokens/dist/css/components/express/well.css @@ -0,0 +1,23 @@ +/*! + * 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 + * + * 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.spectrum--express { + --system-well-border-width: var(--spectrum-border-width-100); + --system-well-border-color: rgba(var(--spectrum-gray-900-rgb), 0.05); + --system-well-border-radius: var(--spectrum-spacing-75); + --system-well-content-color: var(--spectrum-body-color); + --system-well-background-color: rgba(var(--spectrum-gray-800-rgb), 0.02); + --system-well-padding: var(--spectrum-spacing-300); + --system-well-margin-top: var(--spectrum-spacing-75); + --system-well-minimum-width: var(--spectrum-well-min-width); +} diff --git a/tokens/dist/css/components/spectrum/actionbutton.css b/tokens/dist/css/components/spectrum/actionbutton.css deleted file mode 100644 index 0348931dc34..00000000000 --- a/tokens/dist/css/components/spectrum/actionbutton.css +++ /dev/null @@ -1,104 +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 - * - * 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 { - --system-spectrum-actionbutton-background-color-default: var(--spectrum-gray-75); - --system-spectrum-actionbutton-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-actionbutton-background-color-down: var(--spectrum-gray-300); - --system-spectrum-actionbutton-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-actionbutton-border-color-default: var(--spectrum-gray-400); - --system-spectrum-actionbutton-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-actionbutton-border-color-down: var(--spectrum-gray-600); - --system-spectrum-actionbutton-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-actionbutton-background-color-disabled: transparent; - --system-spectrum-actionbutton-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-actionbutton-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-actionbutton-quiet-background-color-default: transparent; - --system-spectrum-actionbutton-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-actionbutton-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-actionbutton-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-quiet-background-color-disabled: transparent; - --system-spectrum-actionbutton-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-selected-border-color-default: transparent; - --system-spectrum-actionbutton-selected-border-color-hover: transparent; - --system-spectrum-actionbutton-selected-border-color-down: transparent; - --system-spectrum-actionbutton-selected-border-color-focus: transparent; - --system-spectrum-actionbutton-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-selected-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-background-color-default: transparent; - --system-spectrum-actionbutton-staticblack-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-actionbutton-staticblack-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-actionbutton-staticblack-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-actionbutton-staticblack-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-actionbutton-staticblack-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-actionbutton-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-border-color-default: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-border-color-hover: var(--spectrum-transparent-white-500); - --system-spectrum-actionbutton-staticwhite-border-color-down: var(--spectrum-transparent-white-600); - --system-spectrum-actionbutton-staticwhite-border-color-focus: var(--spectrum-transparent-white-500); - --system-spectrum-actionbutton-staticwhite-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-actionbutton-staticwhite-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-actionbutton-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled: transparent; -} diff --git a/tokens/dist/css/components/spectrum/assetcard.css b/tokens/dist/css/components/spectrum/assetcard.css deleted file mode 100644 index 27b98bbcfd3..00000000000 --- a/tokens/dist/css/components/spectrum/assetcard.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 - * - * 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 { - --system-spectrum-assetcard-overlay-background-color: rgba(27, 127, 245, 0.1); -} diff --git a/tokens/dist/css/components/spectrum/button.css b/tokens/dist/css/components/spectrum/button.css deleted file mode 100644 index 4ea830ac9ed..00000000000 --- a/tokens/dist/css/components/spectrum/button.css +++ /dev/null @@ -1,326 +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 - * - * 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 { - --system-spectrum-button-background-color-default: var(--spectrum-gray-75); - --system-spectrum-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-border-color-default: var(--spectrum-gray-400); - --system-spectrum-button-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-button-border-color-down: var(--spectrum-gray-600); - --system-spectrum-button-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-background-color-disabled: transparent; - --system-spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-accent-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-accent-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-accent-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-accent-border-color-default: transparent; - --system-spectrum-button-accent-border-color-hover: transparent; - --system-spectrum-button-accent-border-color-down: transparent; - --system-spectrum-button-accent-border-color-focus: transparent; - --system-spectrum-button-accent-content-color-default: var(--spectrum-white); - --system-spectrum-button-accent-content-color-hover: var(--spectrum-white); - --system-spectrum-button-accent-content-color-down: var(--spectrum-white); - --system-spectrum-button-accent-content-color-focus: var(--spectrum-white); - --system-spectrum-button-accent-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-accent-border-color-disabled: transparent; - --system-spectrum-button-accent-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-outline-background-color-default: transparent; - --system-spectrum-button-accent-outline-background-color-hover: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-background-color-down: var(--spectrum-accent-color-300); - --system-spectrum-button-accent-outline-background-color-focus: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-button-accent-outline-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-button-accent-outline-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-content-color-default: var(--spectrum-accent-content-color-default); - --system-spectrum-button-accent-outline-content-color-hover: var(--spectrum-accent-content-color-hover); - --system-spectrum-button-accent-outline-content-color-down: var(--spectrum-accent-content-color-down); - --system-spectrum-button-accent-outline-content-color-focus: var(--spectrum-accent-content-color-key-focus); - --system-spectrum-button-accent-outline-background-color-disabled: transparent; - --system-spectrum-button-accent-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-accent-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-background-color-default: var(--spectrum-negative-background-color-default); - --system-spectrum-button-negative-background-color-hover: var(--spectrum-negative-background-color-hover); - --system-spectrum-button-negative-background-color-down: var(--spectrum-negative-background-color-down); - --system-spectrum-button-negative-background-color-focus: var(--spectrum-negative-background-color-key-focus); - --system-spectrum-button-negative-border-color-default: transparent; - --system-spectrum-button-negative-border-color-hover: transparent; - --system-spectrum-button-negative-border-color-down: transparent; - --system-spectrum-button-negative-border-color-focus: transparent; - --system-spectrum-button-negative-content-color-default: var(--spectrum-white); - --system-spectrum-button-negative-content-color-hover: var(--spectrum-white); - --system-spectrum-button-negative-content-color-down: var(--spectrum-white); - --system-spectrum-button-negative-content-color-focus: var(--spectrum-white); - --system-spectrum-button-negative-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-negative-border-color-disabled: transparent; - --system-spectrum-button-negative-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-outline-background-color-default: transparent; - --system-spectrum-button-negative-outline-background-color-hover: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-background-color-down: var(--spectrum-negative-color-300); - --system-spectrum-button-negative-outline-background-color-focus: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-border-color-default: var(--spectrum-negative-color-900); - --system-spectrum-button-negative-outline-border-color-hover: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-border-color-down: var(--spectrum-negative-color-1100); - --system-spectrum-button-negative-outline-border-color-focus: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-content-color-default: var(--spectrum-negative-content-color-default); - --system-spectrum-button-negative-outline-content-color-hover: var(--spectrum-negative-content-color-hover); - --system-spectrum-button-negative-outline-content-color-down: var(--spectrum-negative-content-color-down); - --system-spectrum-button-negative-outline-content-color-focus: var(--spectrum-negative-content-color-key-focus); - --system-spectrum-button-negative-outline-background-color-disabled: transparent; - --system-spectrum-button-negative-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-negative-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-primary-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-primary-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-primary-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-primary-border-color-default: transparent; - --system-spectrum-button-primary-border-color-hover: transparent; - --system-spectrum-button-primary-border-color-down: transparent; - --system-spectrum-button-primary-border-color-focus: transparent; - --system-spectrum-button-primary-content-color-default: var(--spectrum-white); - --system-spectrum-button-primary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-primary-content-color-down: var(--spectrum-white); - --system-spectrum-button-primary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-primary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-primary-border-color-disabled: transparent; - --system-spectrum-button-primary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-outline-background-color-default: transparent; - --system-spectrum-button-primary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-primary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-border-color-default: var(--spectrum-gray-800); - --system-spectrum-button-primary-outline-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-down: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-primary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-primary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-primary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-primary-outline-background-color-disabled: transparent; - --system-spectrum-button-primary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-primary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-secondary-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-border-color-default: transparent; - --system-spectrum-button-secondary-border-color-hover: transparent; - --system-spectrum-button-secondary-border-color-down: transparent; - --system-spectrum-button-secondary-border-color-focus: transparent; - --system-spectrum-button-secondary-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-secondary-border-color-disabled: transparent; - --system-spectrum-button-secondary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-outline-background-color-default: transparent; - --system-spectrum-button-secondary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-default: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-border-color-down: var(--spectrum-gray-500); - --system-spectrum-button-secondary-outline-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-secondary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-secondary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-quiet-background-color-default: transparent; - --system-spectrum-button-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-quiet-border-color-default: transparent; - --system-spectrum-button-quiet-border-color-hover: transparent; - --system-spectrum-button-quiet-border-color-down: transparent; - --system-spectrum-button-quiet-border-color-focus: transparent; - --system-spectrum-button-quiet-background-color-disabled: transparent; - --system-spectrum-button-quiet-border-color-disabled: transparent; - --system-spectrum-button-selected-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-button-selected-background-color-hover: var(--spectrum-neutral-subdued-background-color-hover); - --system-spectrum-button-selected-background-color-down: var(--spectrum-neutral-subdued-background-color-down); - --system-spectrum-button-selected-background-color-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - --system-spectrum-button-selected-border-color-default: transparent; - --system-spectrum-button-selected-border-color-hover: transparent; - --system-spectrum-button-selected-border-color-down: transparent; - --system-spectrum-button-selected-border-color-focus: transparent; - --system-spectrum-button-selected-content-color-default: var(--spectrum-white); - --system-spectrum-button-selected-content-color-hover: var(--spectrum-white); - --system-spectrum-button-selected-content-color-down: var(--spectrum-white); - --system-spectrum-button-selected-content-color-focus: var(--spectrum-white); - --system-spectrum-button-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-selected-border-color-disabled: transparent; - --system-spectrum-button-selected-emphasized-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-selected-emphasized-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-selected-emphasized-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-selected-emphasized-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-staticblack-quiet-border-color-default: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-button-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-button-staticblack-quiet-border-color-down: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-button-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-button-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-border-color-default: transparent; - --system-spectrum-button-staticwhite-border-color-hover: transparent; - --system-spectrum-button-staticwhite-border-color-down: transparent; - --system-spectrum-button-staticwhite-border-color-focus: transparent; - --system-spectrum-button-staticwhite-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-border-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-outline-border-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-selected-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-selected-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-selected-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-button-staticwhite-secondary-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-border-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-hover: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-down: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-focus: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-default: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-hover: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-border-color-down: var(--spectrum-transparent-white-500); - --system-spectrum-button-staticwhite-secondary-outline-border-color-focus: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticblack-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-button-staticblack-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-border-color-default: transparent; - --system-spectrum-button-staticblack-border-color-hover: transparent; - --system-spectrum-button-staticblack-border-color-down: transparent; - --system-spectrum-button-staticblack-border-color-focus: transparent; - --system-spectrum-button-staticblack-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-border-color-disabled: transparent; - --system-spectrum-button-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-button-staticblack-outline-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-button-staticblack-secondary-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-border-color-default: transparent; - --system-spectrum-button-staticblack-secondary-border-color-hover: transparent; - --system-spectrum-button-staticblack-secondary-border-color-down: transparent; - --system-spectrum-button-staticblack-secondary-border-color-focus: transparent; - --system-spectrum-button-staticblack-secondary-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-secondary-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-default: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-hover: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-border-color-down: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-secondary-outline-border-color-focus: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); -} diff --git a/tokens/dist/css/components/spectrum/checkbox.css b/tokens/dist/css/components/spectrum/checkbox.css deleted file mode 100644 index fd2a6979295..00000000000 --- a/tokens/dist/css/components/spectrum/checkbox.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 - * - * 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 { - --system-spectrum-checkbox-control-color-default: var(--spectrum-gray-600); - --system-spectrum-checkbox-control-color-hover: var(--spectrum-gray-700); - --system-spectrum-checkbox-control-color-down: var(--spectrum-gray-800); - --system-spectrum-checkbox-control-color-focus: var(--spectrum-gray-700); -} diff --git a/tokens/dist/css/components/spectrum/clearbutton.css b/tokens/dist/css/components/spectrum/clearbutton.css deleted file mode 100644 index 094afb3edc2..00000000000 --- a/tokens/dist/css/components/spectrum/clearbutton.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 - * - * 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 { - --system-spectrum-clearbutton-spectrum-clear-button-background-color: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-hover: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-down: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus: transparent; -} diff --git a/tokens/dist/css/components/spectrum/combobox.css b/tokens/dist/css/components/spectrum/combobox.css deleted file mode 100644 index 8979eb00591..00000000000 --- a/tokens/dist/css/components/spectrum/combobox.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 - * - * 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 { - --system-spectrum-combobox-border-color-default: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-combobox-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-600); - --system-spectrum-combobox-border-color-key-focus: var(--spectrum-gray-600); -} diff --git a/tokens/dist/css/components/spectrum/datepicker.css b/tokens/dist/css/components/spectrum/datepicker.css deleted file mode 100644 index 79b4709cce0..00000000000 --- a/tokens/dist/css/components/spectrum/datepicker.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 - * - * 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 { - --system-spectrum-datepicker-initial-height: var(--spectrum-component-height-100); -} diff --git a/tokens/dist/css/components/spectrum/index.css b/tokens/dist/css/components/spectrum/index.css deleted file mode 100644 index 40657edf215..00000000000 --- a/tokens/dist/css/components/spectrum/index.css +++ /dev/null @@ -1,583 +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 - * - * 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 { - --system-spectrum-actionbutton-background-color-default: var(--spectrum-gray-75); - --system-spectrum-actionbutton-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-actionbutton-background-color-down: var(--spectrum-gray-300); - --system-spectrum-actionbutton-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-actionbutton-border-color-default: var(--spectrum-gray-400); - --system-spectrum-actionbutton-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-actionbutton-border-color-down: var(--spectrum-gray-600); - --system-spectrum-actionbutton-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-actionbutton-background-color-disabled: transparent; - --system-spectrum-actionbutton-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-actionbutton-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-actionbutton-quiet-background-color-default: transparent; - --system-spectrum-actionbutton-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-actionbutton-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-actionbutton-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-actionbutton-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-quiet-background-color-disabled: transparent; - --system-spectrum-actionbutton-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-selected-border-color-default: transparent; - --system-spectrum-actionbutton-selected-border-color-hover: transparent; - --system-spectrum-actionbutton-selected-border-color-down: transparent; - --system-spectrum-actionbutton-selected-border-color-focus: transparent; - --system-spectrum-actionbutton-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-actionbutton-selected-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-actionbutton-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-background-color-default: transparent; - --system-spectrum-actionbutton-staticblack-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-actionbutton-staticblack-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-actionbutton-staticblack-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-actionbutton-staticblack-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-actionbutton-staticblack-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-actionbutton-staticblack-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-actionbutton-staticblack-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticblack-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-actionbutton-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-actionbutton-staticblack-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-default: transparent; - --system-spectrum-actionbutton-staticwhite-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-actionbutton-staticwhite-border-color-default: var(--spectrum-transparent-white-400); - --system-spectrum-actionbutton-staticwhite-border-color-hover: var(--spectrum-transparent-white-500); - --system-spectrum-actionbutton-staticwhite-border-color-down: var(--spectrum-transparent-white-600); - --system-spectrum-actionbutton-staticwhite-border-color-focus: var(--spectrum-transparent-white-500); - --system-spectrum-actionbutton-staticwhite-content-color-default: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-hover: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-down: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-content-color-focus: var(--spectrum-white); - --system-spectrum-actionbutton-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-actionbutton-staticwhite-background-color-disabled: transparent; - --system-spectrum-actionbutton-staticwhite-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-actionbutton-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-default: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-hover: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-down: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-content-color-focus: var(--spectrum-black); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-actionbutton-staticwhite-selected-mod-actionbutton-border-color-disabled: transparent; - --system-spectrum-actiongroup-gap-size-compact: 0; - --system-spectrum-actiongroup-horizontal-spacing-compact: -1px; - --system-spectrum-actiongroup-vertical-spacing-compact: -1px; - --system-spectrum-alertbanner-spectrum-alert-banner-netural-background: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-assetcard-overlay-background-color-rgb: 27, 127, 245; - --system-spectrum-assetcard-overlay-background-color-opacity: 0.1; - --system-spectrum-assetcard-overlay-background-color: rgba(var(--system-spectrum-assetcard-overlay-background-color-rgb), var(--system-spectrum-assetcard-overlay-background-color-opacity)); - --system-spectrum-button-background-color-default: var(--spectrum-gray-75); - --system-spectrum-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-border-color-default: var(--spectrum-gray-400); - --system-spectrum-button-border-color-hover: var(--spectrum-gray-500); - --system-spectrum-button-border-color-down: var(--spectrum-gray-600); - --system-spectrum-button-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-button-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-background-color-disabled: transparent; - --system-spectrum-button-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-accent-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-accent-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-accent-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-accent-border-color-default: transparent; - --system-spectrum-button-accent-border-color-hover: transparent; - --system-spectrum-button-accent-border-color-down: transparent; - --system-spectrum-button-accent-border-color-focus: transparent; - --system-spectrum-button-accent-content-color-default: var(--spectrum-white); - --system-spectrum-button-accent-content-color-hover: var(--spectrum-white); - --system-spectrum-button-accent-content-color-down: var(--spectrum-white); - --system-spectrum-button-accent-content-color-focus: var(--spectrum-white); - --system-spectrum-button-accent-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-accent-border-color-disabled: transparent; - --system-spectrum-button-accent-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-accent-outline-background-color-default: transparent; - --system-spectrum-button-accent-outline-background-color-hover: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-background-color-down: var(--spectrum-accent-color-300); - --system-spectrum-button-accent-outline-background-color-focus: var(--spectrum-accent-color-200); - --system-spectrum-button-accent-outline-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-button-accent-outline-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-button-accent-outline-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-button-accent-outline-content-color-default: var(--spectrum-accent-content-color-default); - --system-spectrum-button-accent-outline-content-color-hover: var(--spectrum-accent-content-color-hover); - --system-spectrum-button-accent-outline-content-color-down: var(--spectrum-accent-content-color-down); - --system-spectrum-button-accent-outline-content-color-focus: var(--spectrum-accent-content-color-key-focus); - --system-spectrum-button-accent-outline-background-color-disabled: transparent; - --system-spectrum-button-accent-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-accent-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-background-color-default: var(--spectrum-negative-background-color-default); - --system-spectrum-button-negative-background-color-hover: var(--spectrum-negative-background-color-hover); - --system-spectrum-button-negative-background-color-down: var(--spectrum-negative-background-color-down); - --system-spectrum-button-negative-background-color-focus: var(--spectrum-negative-background-color-key-focus); - --system-spectrum-button-negative-border-color-default: transparent; - --system-spectrum-button-negative-border-color-hover: transparent; - --system-spectrum-button-negative-border-color-down: transparent; - --system-spectrum-button-negative-border-color-focus: transparent; - --system-spectrum-button-negative-content-color-default: var(--spectrum-white); - --system-spectrum-button-negative-content-color-hover: var(--spectrum-white); - --system-spectrum-button-negative-content-color-down: var(--spectrum-white); - --system-spectrum-button-negative-content-color-focus: var(--spectrum-white); - --system-spectrum-button-negative-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-negative-border-color-disabled: transparent; - --system-spectrum-button-negative-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-negative-outline-background-color-default: transparent; - --system-spectrum-button-negative-outline-background-color-hover: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-background-color-down: var(--spectrum-negative-color-300); - --system-spectrum-button-negative-outline-background-color-focus: var(--spectrum-negative-color-200); - --system-spectrum-button-negative-outline-border-color-default: var(--spectrum-negative-color-900); - --system-spectrum-button-negative-outline-border-color-hover: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-border-color-down: var(--spectrum-negative-color-1100); - --system-spectrum-button-negative-outline-border-color-focus: var(--spectrum-negative-color-1000); - --system-spectrum-button-negative-outline-content-color-default: var(--spectrum-negative-content-color-default); - --system-spectrum-button-negative-outline-content-color-hover: var(--spectrum-negative-content-color-hover); - --system-spectrum-button-negative-outline-content-color-down: var(--spectrum-negative-content-color-down); - --system-spectrum-button-negative-outline-content-color-focus: var(--spectrum-negative-content-color-key-focus); - --system-spectrum-button-negative-outline-background-color-disabled: transparent; - --system-spectrum-button-negative-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-negative-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-background-color-default: var(--spectrum-neutral-background-color-default); - --system-spectrum-button-primary-background-color-hover: var(--spectrum-neutral-background-color-hover); - --system-spectrum-button-primary-background-color-down: var(--spectrum-neutral-background-color-down); - --system-spectrum-button-primary-background-color-focus: var(--spectrum-neutral-background-color-key-focus); - --system-spectrum-button-primary-border-color-default: transparent; - --system-spectrum-button-primary-border-color-hover: transparent; - --system-spectrum-button-primary-border-color-down: transparent; - --system-spectrum-button-primary-border-color-focus: transparent; - --system-spectrum-button-primary-content-color-default: var(--spectrum-white); - --system-spectrum-button-primary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-primary-content-color-down: var(--spectrum-white); - --system-spectrum-button-primary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-primary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-primary-border-color-disabled: transparent; - --system-spectrum-button-primary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-primary-outline-background-color-default: transparent; - --system-spectrum-button-primary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-primary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-primary-outline-border-color-default: var(--spectrum-gray-800); - --system-spectrum-button-primary-outline-border-color-hover: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-down: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-border-color-focus: var(--spectrum-gray-900); - --system-spectrum-button-primary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-primary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-primary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-primary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-primary-outline-background-color-disabled: transparent; - --system-spectrum-button-primary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-primary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-background-color-default: var(--spectrum-gray-200); - --system-spectrum-button-secondary-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-border-color-default: transparent; - --system-spectrum-button-secondary-border-color-hover: transparent; - --system-spectrum-button-secondary-border-color-down: transparent; - --system-spectrum-button-secondary-border-color-focus: transparent; - --system-spectrum-button-secondary-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-secondary-border-color-disabled: transparent; - --system-spectrum-button-secondary-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-secondary-outline-background-color-default: transparent; - --system-spectrum-button-secondary-outline-background-color-hover: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-background-color-down: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-default: var(--spectrum-gray-300); - --system-spectrum-button-secondary-outline-border-color-hover: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-border-color-down: var(--spectrum-gray-500); - --system-spectrum-button-secondary-outline-border-color-focus: var(--spectrum-gray-400); - --system-spectrum-button-secondary-outline-content-color-default: var(--spectrum-neutral-content-color-default); - --system-spectrum-button-secondary-outline-content-color-hover: var(--spectrum-neutral-content-color-hover); - --system-spectrum-button-secondary-outline-content-color-down: var(--spectrum-neutral-content-color-down); - --system-spectrum-button-secondary-outline-content-color-focus: var(--spectrum-neutral-content-color-key-focus); - --system-spectrum-button-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-secondary-outline-border-color-disabled: var(--spectrum-disabled-border-color); - --system-spectrum-button-secondary-outline-content-color-disabled: var(--spectrum-disabled-content-color); - --system-spectrum-button-quiet-background-color-default: transparent; - --system-spectrum-button-quiet-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-button-quiet-background-color-down: var(--spectrum-gray-300); - --system-spectrum-button-quiet-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-button-quiet-border-color-default: transparent; - --system-spectrum-button-quiet-border-color-hover: transparent; - --system-spectrum-button-quiet-border-color-down: transparent; - --system-spectrum-button-quiet-border-color-focus: transparent; - --system-spectrum-button-quiet-background-color-disabled: transparent; - --system-spectrum-button-quiet-border-color-disabled: transparent; - --system-spectrum-button-selected-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-button-selected-background-color-hover: var(--spectrum-neutral-subdued-background-color-hover); - --system-spectrum-button-selected-background-color-down: var(--spectrum-neutral-subdued-background-color-down); - --system-spectrum-button-selected-background-color-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - --system-spectrum-button-selected-border-color-default: transparent; - --system-spectrum-button-selected-border-color-hover: transparent; - --system-spectrum-button-selected-border-color-down: transparent; - --system-spectrum-button-selected-border-color-focus: transparent; - --system-spectrum-button-selected-content-color-default: var(--spectrum-white); - --system-spectrum-button-selected-content-color-hover: var(--spectrum-white); - --system-spectrum-button-selected-content-color-down: var(--spectrum-white); - --system-spectrum-button-selected-content-color-focus: var(--spectrum-white); - --system-spectrum-button-selected-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-button-selected-border-color-disabled: transparent; - --system-spectrum-button-selected-emphasized-background-color-default: var(--spectrum-accent-background-color-default); - --system-spectrum-button-selected-emphasized-background-color-hover: var(--spectrum-accent-background-color-hover); - --system-spectrum-button-selected-emphasized-background-color-down: var(--spectrum-accent-background-color-down); - --system-spectrum-button-selected-emphasized-background-color-focus: var(--spectrum-accent-background-color-key-focus); - --system-spectrum-button-staticblack-quiet-border-color-default: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-default: transparent; - --system-spectrum-button-staticblack-quiet-border-color-hover: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-hover: transparent; - --system-spectrum-button-staticblack-quiet-border-color-down: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-down: transparent; - --system-spectrum-button-staticblack-quiet-border-color-focus: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-focus: transparent; - --system-spectrum-button-staticblack-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-quiet-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-border-color-default: transparent; - --system-spectrum-button-staticwhite-border-color-hover: transparent; - --system-spectrum-button-staticwhite-border-color-down: transparent; - --system-spectrum-button-staticwhite-border-color-focus: transparent; - --system-spectrum-button-staticwhite-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-outline-border-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-outline-border-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-border-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-selected-background-color-default: var(--spectrum-transparent-white-800); - --system-spectrum-button-staticwhite-selected-background-color-hover: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-down: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-background-color-focus: var(--spectrum-transparent-white-900); - --system-spectrum-button-staticwhite-selected-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticwhite-selected-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-selected-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-background-color-default: var(--spectrum-transparent-white-200); - --system-spectrum-button-staticwhite-secondary-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-border-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-hover: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-down: transparent; - --system-spectrum-button-staticwhite-secondary-border-color-focus: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-background-color-disabled: var(--spectrum-disabled-static-white-background-color); - --system-spectrum-button-staticwhite-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticwhite-secondary-outline-background-color-hover: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-background-color-down: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-background-color-focus: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-default: var(--spectrum-transparent-white-300); - --system-spectrum-button-staticwhite-secondary-outline-border-color-hover: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-border-color-down: var(--spectrum-transparent-white-500); - --system-spectrum-button-staticwhite-secondary-outline-border-color-focus: var(--spectrum-transparent-white-400); - --system-spectrum-button-staticwhite-secondary-outline-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticwhite-secondary-outline-focus-indicator-color: var(--spectrum-static-white-focus-indicator-color); - --system-spectrum-button-staticwhite-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticwhite-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-white-border-color); - --system-spectrum-button-staticwhite-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-white-content-color); - --system-spectrum-button-staticblack-background-color-default: var(--spectrum-transparent-black-800); - --system-spectrum-button-staticblack-background-color-hover: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-down: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-background-color-focus: var(--spectrum-transparent-black-900); - --system-spectrum-button-staticblack-border-color-default: transparent; - --system-spectrum-button-staticblack-border-color-hover: transparent; - --system-spectrum-button-staticblack-border-color-down: transparent; - --system-spectrum-button-staticblack-border-color-focus: transparent; - --system-spectrum-button-staticblack-content-color-default: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-hover: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-down: var(--spectrum-white); - --system-spectrum-button-staticblack-content-color-focus: var(--spectrum-white); - --system-spectrum-button-staticblack-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-border-color-disabled: transparent; - --system-spectrum-button-staticblack-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-outline-border-color-default: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-outline-border-color-hover: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-border-color-down: var(--spectrum-transparent-black-600); - --system-spectrum-button-staticblack-outline-border-color-focus: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-background-color-default: var(--spectrum-transparent-black-200); - --system-spectrum-button-staticblack-secondary-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-border-color-default: transparent; - --system-spectrum-button-staticblack-secondary-border-color-hover: transparent; - --system-spectrum-button-staticblack-secondary-border-color-down: transparent; - --system-spectrum-button-staticblack-secondary-border-color-focus: transparent; - --system-spectrum-button-staticblack-secondary-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-background-color-disabled: var(--spectrum-disabled-static-black-background-color); - --system-spectrum-button-staticblack-secondary-border-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-default: transparent; - --system-spectrum-button-staticblack-secondary-outline-background-color-hover: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-background-color-down: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-background-color-focus: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-default: var(--spectrum-transparent-black-300); - --system-spectrum-button-staticblack-secondary-outline-border-color-hover: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-border-color-down: var(--spectrum-transparent-black-500); - --system-spectrum-button-staticblack-secondary-outline-border-color-focus: var(--spectrum-transparent-black-400); - --system-spectrum-button-staticblack-secondary-outline-content-color-default: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-hover: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-down: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-content-color-focus: var(--spectrum-black); - --system-spectrum-button-staticblack-secondary-outline-focus-indicator-color: var(--spectrum-static-black-focus-indicator-color); - --system-spectrum-button-staticblack-secondary-outline-background-color-disabled: transparent; - --system-spectrum-button-staticblack-secondary-outline-border-color-disabled: var(--spectrum-disabled-static-black-border-color); - --system-spectrum-button-staticblack-secondary-outline-content-color-disabled: var(--spectrum-disabled-static-black-content-color); - --system-spectrum-checkbox-control-color-default: var(--spectrum-gray-600); - --system-spectrum-checkbox-control-color-hover: var(--spectrum-gray-700); - --system-spectrum-checkbox-control-color-down: var(--spectrum-gray-800); - --system-spectrum-checkbox-control-color-focus: var(--spectrum-gray-700); - --system-spectrum-clearbutton-spectrum-clear-button-background-color: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-hover: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-down: transparent; - --system-spectrum-clearbutton-spectrum-clear-button-background-color-key-focus: transparent; - --system-spectrum-closebutton-background-color-default: transparent; - --system-spectrum-closebutton-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-closebutton-background-color-down: var(--spectrum-gray-300); - --system-spectrum-closebutton-background-color-focus: var(--spectrum-gray-200); - --system-spectrum-combobox-border-color-default: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-combobox-border-color-focus: var(--spectrum-gray-500); - --system-spectrum-combobox-border-color-focus-hover: var(--spectrum-gray-600); - --system-spectrum-combobox-border-color-key-focus: var(--spectrum-gray-600); - --system-spectrum-datepicker-initial-height: var(--spectrum-component-height-100); - --system-spectrum-infieldbutton-spectrum-infield-button-border-width: var(--spectrum-border-width-100); - --system-spectrum-infieldbutton-spectrum-infield-button-border-color: inherit; - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset: 0; - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-infield-button-border-radius-reset); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-infield-button-border-radius-reset); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color: var(--spectrum-gray-75); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-default: var(--spectrum-gray-75); - --system-spectrum-picker-background-color-default-open: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-active: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-hover-open: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-key-focus: var(--spectrum-gray-200); - --system-spectrum-picker-border-color-default: var(--spectrum-gray-500); - --system-spectrum-picker-border-color-default-open: var(--spectrum-gray-500); - --system-spectrum-picker-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-picker-border-color-hover-open: var(--spectrum-gray-600); - --system-spectrum-picker-border-color-active: var(--spectrum-gray-700); - --system-spectrum-picker-border-color-key-focus: var(--spectrum-gray-600); - --system-spectrum-picker-border-width: var(--spectrum-border-width-100); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color: var(--spectrum-gray-75); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-border-color: inherit; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided: 0; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided: 0; - --system-spectrum-pickerbutton-spectrum-picker-button-border-width: var(--spectrum-border-width-100); - --system-spectrum-popover-border-width: var(--spectrum-border-width-100); - --system-spectrum-radio-button-border-color-default: var(--spectrum-gray-600); - --system-spectrum-radio-button-border-color-hover: var(--spectrum-gray-700); - --system-spectrum-radio-button-border-color-down: var(--spectrum-gray-800); - --system-spectrum-radio-button-border-color-focus: var(--spectrum-gray-700); - --system-spectrum-radio-emphasized-button-checked-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-radio-emphasized-button-checked-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-radio-emphasized-button-checked-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-radio-emphasized-button-checked-border-color-focus: var(--spectrum-accent-color-1000); - --system-spectrum-rating-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --system-spectrum-rating-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --system-spectrum-rating-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); - --system-spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --system-spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-search-border-color-default: var(--spectrum-gray-500); - --system-spectrum-search-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-search-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-search-sizes-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizes-edge-to-visual: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-search-sizem-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizem-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-search-sizel-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizel-edge-to-visual: var(--spectrum-component-edge-to-visual-200); - --system-spectrum-search-sizexl-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizexl-edge-to-visual: var(--spectrum-component-edge-to-visual-300); - --system-spectrum-slider-track-color: var(--spectrum-gray-300); - --system-spectrum-slider-track-fill-color: var(--spectrum-gray-700); - --system-spectrum-slider-ramp-track-color: var(--spectrum-gray-400); - --system-spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - --system-spectrum-slider-handle-background-color: transparent; - --system-spectrum-slider-handle-background-color-disabled: transparent; - --system-spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-handle-border-color: var(--spectrum-gray-700); - --system-spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-tick-mark-color: var(--spectrum-gray-300); - --system-spectrum-slider-handle-border-color-hover: var(--spectrum-gray-800); - --system-spectrum-slider-handle-border-color-down: var(--spectrum-gray-800); - --system-spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-800); - --system-spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); - --system-spectrum-stepper-border-width: var(--spectrum-border-width-100); - --system-spectrum-stepper-buttons-border-style: none; - --system-spectrum-stepper-buttons-border-width: 0; - --system-spectrum-stepper-buttons-border-color: var(--spectrum-gray-500); - --system-spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --system-spectrum-stepper-buttons-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-stepper-buttons-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-buttons-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-button-border-radius-reset: 0px; - --system-spectrum-stepper-button-border-width: var(--spectrum-border-width-100); - --system-spectrum-stepper-border-color: var(--spectrum-gray-500); - --system-spectrum-stepper-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-invalid: var(--spectrum-negative-border-color-default); - --system-spectrum-stepper-border-color-focus-invalid: var(--spectrum-negative-border-color-focus); - --system-spectrum-stepper-border-color-focus-hover-invalid: var(--spectrum-negative-border-color-focus-hover); - --system-spectrum-stepper-border-color-keyboard-focus-invalid: var(--spectrum-negative-border-color-key-focus); - --system-spectrum-stepper-button-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-200); - --system-spectrum-switch-handle-border-color-default: var(--spectrum-gray-600); - --system-spectrum-switch-handle-border-color-hover: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-down: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-focus: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-800); - --system-spectrum-tabs-font-weight: var(--spectrum-default-font-weight); - --system-spectrum-tag-border-color: var(--spectrum-gray-700); - --system-spectrum-tag-border-color-hover: var(--spectrum-gray-800); - --system-spectrum-tag-border-color-active: var(--spectrum-gray-900); - --system-spectrum-tag-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-tag-size-small-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-size-medium-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-size-large-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-background-color: var(--spectrum-gray-75); - --system-spectrum-tag-background-color-hover: var(--spectrum-gray-75); - --system-spectrum-tag-background-color-active: var(--spectrum-gray-200); - --system-spectrum-tag-background-color-focus: var(--spectrum-gray-75); - --system-spectrum-tag-content-color: var(--spectrum-neutral-subdued-content-color-default); - --system-spectrum-tag-content-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --system-spectrum-tag-content-color-active: var(--spectrum-neutral-subdued-content-color-down); - --system-spectrum-tag-content-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --system-spectrum-tag-border-color-selected: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-subdued-background-color-hover); - --system-spectrum-tag-border-color-selected-active: var(--spectrum-neutral-subdued-background-color-down); - --system-spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - --system-spectrum-tag-border-color-disabled: transparent; - --system-spectrum-tag-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-edge-to-text-75); - --system-spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-edge-to-text-100); - --system-spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-edge-to-visual-200); - --system-spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-edge-to-text-200); - --system-spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-200); - --system-spectrum-textfield-border-color: var(--spectrum-gray-500); - --system-spectrum-textfield-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-textfield-border-width: var(--spectrum-border-width-100); - --system-spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-subdued-background-color-default); -} diff --git a/tokens/dist/css/components/spectrum/infieldbutton.css b/tokens/dist/css/components/spectrum/infieldbutton.css deleted file mode 100644 index 6d46ecd9cca..00000000000 --- a/tokens/dist/css/components/spectrum/infieldbutton.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 - * - * 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 { - --system-spectrum-infieldbutton-spectrum-infield-button-border-width: var(--spectrum-border-width-100); - --system-spectrum-infieldbutton-spectrum-infield-button-border-color: inherit; - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-infieldbutton-spectrum-infield-button-border-radius-reset: 0; - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-top-border-radius-start-start: var(--spectrum-infield-button-border-radius-reset); - --system-spectrum-infieldbutton-spectrum-infield-button-stacked-bottom-border-radius-end-start: var(--spectrum-infield-button-border-radius-reset); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color: var(--spectrum-gray-75); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-infieldbutton-spectrum-infield-button-background-color-key-focus: var(--spectrum-gray-200); -} diff --git a/tokens/dist/css/components/spectrum/picker.css b/tokens/dist/css/components/spectrum/picker.css deleted file mode 100644 index 4714ba73981..00000000000 --- a/tokens/dist/css/components/spectrum/picker.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 - * - * 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 { - --system-spectrum-picker-background-color-default: var(--spectrum-gray-75); - --system-spectrum-picker-background-color-default-open: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-active: var(--spectrum-gray-300); - --system-spectrum-picker-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-hover-open: var(--spectrum-gray-200); - --system-spectrum-picker-background-color-key-focus: var(--spectrum-gray-200); - --system-spectrum-picker-border-color-default: var(--spectrum-gray-500); - --system-spectrum-picker-border-color-default-open: var(--spectrum-gray-500); - --system-spectrum-picker-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-picker-border-color-hover-open: var(--spectrum-gray-600); - --system-spectrum-picker-border-color-active: var(--spectrum-gray-700); - --system-spectrum-picker-border-color-key-focus: var(--spectrum-gray-600); - --system-spectrum-picker-border-width: var(--spectrum-border-width-100); -} diff --git a/tokens/dist/css/components/spectrum/pickerbutton.css b/tokens/dist/css/components/spectrum/pickerbutton.css deleted file mode 100644 index 4579d743f23..00000000000 --- a/tokens/dist/css/components/spectrum/pickerbutton.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 - * - * 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 { - --system-spectrum-pickerbutton-spectrum-picker-button-background-color: var(--spectrum-gray-75); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-hover: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-down: var(--spectrum-gray-300); - --system-spectrum-pickerbutton-spectrum-picker-button-background-color-key-focus: var(--spectrum-gray-200); - --system-spectrum-pickerbutton-spectrum-picker-button-border-color: inherit; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-rounded-sided: 0; - --system-spectrum-pickerbutton-spectrum-picker-button-border-radius-sided: 0; - --system-spectrum-pickerbutton-spectrum-picker-button-border-width: var(--spectrum-border-width-100); -} diff --git a/tokens/dist/css/components/spectrum/popover.css b/tokens/dist/css/components/spectrum/popover.css deleted file mode 100644 index c8ad7b5b02a..00000000000 --- a/tokens/dist/css/components/spectrum/popover.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 - * - * 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 { - --system-spectrum-popover-border-width: var(--spectrum-border-width-100); -} diff --git a/tokens/dist/css/components/spectrum/radio.css b/tokens/dist/css/components/spectrum/radio.css deleted file mode 100644 index b0f6aed5326..00000000000 --- a/tokens/dist/css/components/spectrum/radio.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 - * - * 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 { - --system-spectrum-radio-button-border-color-default: var(--spectrum-gray-600); - --system-spectrum-radio-button-border-color-hover: var(--spectrum-gray-700); - --system-spectrum-radio-button-border-color-down: var(--spectrum-gray-800); - --system-spectrum-radio-button-border-color-focus: var(--spectrum-gray-700); - --system-spectrum-radio-emphasized-button-checked-border-color-default: var(--spectrum-accent-color-900); - --system-spectrum-radio-emphasized-button-checked-border-color-hover: var(--spectrum-accent-color-1000); - --system-spectrum-radio-emphasized-button-checked-border-color-down: var(--spectrum-accent-color-1100); - --system-spectrum-radio-emphasized-button-checked-border-color-focus: var(--spectrum-accent-color-1000); -} diff --git a/tokens/dist/css/components/spectrum/rating.css b/tokens/dist/css/components/spectrum/rating.css deleted file mode 100644 index 76218100c07..00000000000 --- a/tokens/dist/css/components/spectrum/rating.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 - * - * 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 { - --system-spectrum-rating-icon-color-default: var(--spectrum-neutral-subdued-content-color-default); - --system-spectrum-rating-icon-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --system-spectrum-rating-icon-color-down: var(--spectrum-neutral-subdued-content-color-down); - --system-spectrum-rating-icon-color-key-focus: var(--spectrum-neutral-subdued-content-color-key-focus); -} diff --git a/tokens/dist/css/components/spectrum/search.css b/tokens/dist/css/components/spectrum/search.css deleted file mode 100644 index 380ca000fb3..00000000000 --- a/tokens/dist/css/components/spectrum/search.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 - * - * 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 { - --system-spectrum-search-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-search-border-color-default: var(--spectrum-gray-500); - --system-spectrum-search-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-search-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-search-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-search-border-color-key-focus: var(--spectrum-gray-900); - --system-spectrum-search-sizes-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizes-edge-to-visual: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-search-sizem-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizem-edge-to-visual: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-search-sizel-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizel-edge-to-visual: var(--spectrum-component-edge-to-visual-200); - --system-spectrum-search-sizexl-border-radius: var(--spectrum-corner-radius-100); - --system-spectrum-search-sizexl-edge-to-visual: var(--spectrum-component-edge-to-visual-300); -} diff --git a/tokens/dist/css/components/spectrum/slider.css b/tokens/dist/css/components/spectrum/slider.css deleted file mode 100644 index 8e005edfaad..00000000000 --- a/tokens/dist/css/components/spectrum/slider.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 - * - * 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 { - --system-spectrum-slider-track-color: var(--spectrum-gray-300); - --system-spectrum-slider-track-fill-color: var(--spectrum-gray-700); - --system-spectrum-slider-ramp-track-color: var(--spectrum-gray-400); - --system-spectrum-slider-ramp-track-color-disabled: var(--spectrum-gray-200); - --system-spectrum-slider-handle-background-color: transparent; - --system-spectrum-slider-handle-background-color-disabled: transparent; - --system-spectrum-slider-ramp-handle-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-ticks-handle-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-handle-border-color: var(--spectrum-gray-700); - --system-spectrum-slider-handle-disabled-background-color: var(--spectrum-gray-100); - --system-spectrum-slider-tick-mark-color: var(--spectrum-gray-300); - --system-spectrum-slider-handle-border-color-hover: var(--spectrum-gray-800); - --system-spectrum-slider-handle-border-color-down: var(--spectrum-gray-800); - --system-spectrum-slider-handle-border-color-key-focus: var(--spectrum-gray-800); - --system-spectrum-slider-handle-focus-ring-color-key-focus: var(--spectrum-focus-indicator-color); -} diff --git a/tokens/dist/css/components/spectrum/stepper.css b/tokens/dist/css/components/spectrum/stepper.css deleted file mode 100644 index b25e6cd8ce1..00000000000 --- a/tokens/dist/css/components/spectrum/stepper.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 - * - * 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 { - --system-spectrum-stepper-border-width: var(--spectrum-border-width-100); - --system-spectrum-stepper-buttons-border-style: none; - --system-spectrum-stepper-buttons-border-width: 0; - --system-spectrum-stepper-buttons-border-color: var(--spectrum-gray-500); - --system-spectrum-stepper-buttons-background-color: var(--spectrum-gray-50); - --system-spectrum-stepper-buttons-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-stepper-buttons-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-buttons-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-button-border-radius-reset: 0px; - --system-spectrum-stepper-button-border-width: var(--spectrum-border-width-100); - --system-spectrum-stepper-border-color: var(--spectrum-gray-500); - --system-spectrum-stepper-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-stepper-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-focus-hover: var(--spectrum-gray-800); - --system-spectrum-stepper-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-stepper-border-color-invalid: var(--spectrum-negative-border-color-default); - --system-spectrum-stepper-border-color-focus-invalid: var(--spectrum-negative-border-color-focus); - --system-spectrum-stepper-border-color-focus-hover-invalid: var(--spectrum-negative-border-color-focus-hover); - --system-spectrum-stepper-border-color-keyboard-focus-invalid: var(--spectrum-negative-border-color-key-focus); - --system-spectrum-stepper-button-background-color-focus: var(--spectrum-gray-300); - --system-spectrum-stepper-button-background-color-keyboard-focus: var(--spectrum-gray-200); -} diff --git a/tokens/dist/css/components/spectrum/switch.css b/tokens/dist/css/components/spectrum/switch.css deleted file mode 100644 index 031fc500d10..00000000000 --- a/tokens/dist/css/components/spectrum/switch.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 - * - * 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 { - --system-spectrum-switch-handle-border-color-default: var(--spectrum-gray-600); - --system-spectrum-switch-handle-border-color-hover: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-down: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-focus: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-selected-default: var(--spectrum-gray-700); - --system-spectrum-switch-handle-border-color-selected-hover: var(--spectrum-gray-800); - --system-spectrum-switch-handle-border-color-selected-down: var(--spectrum-gray-900); - --system-spectrum-switch-handle-border-color-selected-focus: var(--spectrum-gray-800); -} diff --git a/tokens/dist/css/components/spectrum/tag.css b/tokens/dist/css/components/spectrum/tag.css deleted file mode 100644 index 1577f16fa17..00000000000 --- a/tokens/dist/css/components/spectrum/tag.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 - * - * 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 { - --system-spectrum-tag-border-color: var(--spectrum-gray-700); - --system-spectrum-tag-border-color-hover: var(--spectrum-gray-800); - --system-spectrum-tag-border-color-active: var(--spectrum-gray-900); - --system-spectrum-tag-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-tag-size-small-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-size-medium-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-size-large-corner-radius: var(--spectrum-corner-radius-100); - --system-spectrum-tag-background-color: var(--spectrum-gray-75); - --system-spectrum-tag-background-color-hover: var(--spectrum-gray-75); - --system-spectrum-tag-background-color-active: var(--spectrum-gray-200); - --system-spectrum-tag-background-color-focus: var(--spectrum-gray-75); - --system-spectrum-tag-content-color: var(--spectrum-neutral-subdued-content-color-default); - --system-spectrum-tag-content-color-hover: var(--spectrum-neutral-subdued-content-color-hover); - --system-spectrum-tag-content-color-active: var(--spectrum-neutral-subdued-content-color-down); - --system-spectrum-tag-content-color-focus: var(--spectrum-neutral-subdued-content-color-key-focus); - --system-spectrum-tag-border-color-selected: var(--spectrum-neutral-subdued-background-color-default); - --system-spectrum-tag-border-color-selected-hover: var(--spectrum-neutral-subdued-background-color-hover); - --system-spectrum-tag-border-color-selected-active: var(--spectrum-neutral-subdued-background-color-down); - --system-spectrum-tag-border-color-selected-focus: var(--spectrum-neutral-subdued-background-color-key-focus); - --system-spectrum-tag-border-color-disabled: transparent; - --system-spectrum-tag-background-color-disabled: var(--spectrum-disabled-background-color); - --system-spectrum-tag-size-small-spacing-inline-start: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-tag-size-small-label-spacing-inline-end: var(--spectrum-component-edge-to-text-75); - --system-spectrum-tag-size-small-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-75); - --system-spectrum-tag-size-medium-spacing-inline-start: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-tag-size-medium-label-spacing-inline-end: var(--spectrum-component-edge-to-text-100); - --system-spectrum-tag-size-medium-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-100); - --system-spectrum-tag-size-large-spacing-inline-start: var(--spectrum-component-edge-to-visual-200); - --system-spectrum-tag-size-large-label-spacing-inline-end: var(--spectrum-component-edge-to-text-200); - --system-spectrum-tag-size-large-clear-button-spacing-inline-end: var(--spectrum-component-edge-to-visual-200); -} diff --git a/tokens/dist/css/components/spectrum/textfield.css b/tokens/dist/css/components/spectrum/textfield.css deleted file mode 100644 index d82ed4fb70f..00000000000 --- a/tokens/dist/css/components/spectrum/textfield.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 - * - * 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 { - --system-spectrum-textfield-border-color: var(--spectrum-gray-500); - --system-spectrum-textfield-border-color-hover: var(--spectrum-gray-600); - --system-spectrum-textfield-border-color-focus: var(--spectrum-gray-800); - --system-spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900); - --system-spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900); - --system-spectrum-textfield-border-width: var(--spectrum-border-width-100); -} diff --git a/tokens/dist/css/components/spectrum/toast.css b/tokens/dist/css/components/spectrum/toast.css deleted file mode 100644 index c7a30741f99..00000000000 --- a/tokens/dist/css/components/spectrum/toast.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 - * - * 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 { - --system-spectrum-toast-background-color-default: var(--spectrum-neutral-subdued-background-color-default); -} diff --git a/tokens/dist/css/components/spectrum/tooltip.css b/tokens/dist/css/components/spectrum/tooltip.css deleted file mode 100644 index 2160961ed5c..00000000000 --- a/tokens/dist/css/components/spectrum/tooltip.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 - * - * 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 { - --system-spectrum-tooltip-backgound-color-default-neutral: var(--spectrum-neutral-subdued-background-color-default); -} diff --git a/tokens/dist/css/dark-vars.css b/tokens/dist/css/dark-vars.css deleted file mode 100644 index 4ae60835874..00000000000 --- a/tokens/dist/css/dark-vars.css +++ /dev/null @@ -1,472 +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 - * - * 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--dark{ - --spectrum-overlay-opacity:0.5; - --spectrum-drop-shadow-color-rgb:0, 0, 0; - --spectrum-drop-shadow-color-opacity:0.5; - --spectrum-drop-shadow-color:rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color:var(--spectrum-gray-50); - --spectrum-background-layer-1-color:var(--spectrum-gray-75); - --spectrum-background-layer-2-color:var(--spectrum-gray-100); - --spectrum-neutral-background-color-default:var(--spectrum-gray-400); - --spectrum-neutral-background-color-hover:var(--spectrum-gray-300); - --spectrum-neutral-background-color-down:var(--spectrum-gray-200); - --spectrum-neutral-background-color-key-focus:var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-default:var(--spectrum-gray-400); - --spectrum-neutral-subdued-background-color-hover:var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-down:var(--spectrum-gray-200); - --spectrum-neutral-subdued-background-color-key-focus:var(--spectrum-gray-300); - --spectrum-accent-background-color-default:var(--spectrum-accent-color-500); - --spectrum-accent-background-color-hover:var(--spectrum-accent-color-400); - --spectrum-accent-background-color-down:var(--spectrum-accent-color-300); - --spectrum-accent-background-color-key-focus:var(--spectrum-accent-color-400); - --spectrum-informative-background-color-default:var(--spectrum-informative-color-500); - --spectrum-informative-background-color-hover:var(--spectrum-informative-color-400); - --spectrum-informative-background-color-down:var(--spectrum-informative-color-300); - --spectrum-informative-background-color-key-focus:var(--spectrum-informative-color-400); - --spectrum-negative-background-color-default:var(--spectrum-negative-color-500); - --spectrum-negative-background-color-hover:var(--spectrum-negative-color-400); - --spectrum-negative-background-color-down:var(--spectrum-negative-color-300); - --spectrum-negative-background-color-key-focus:var(--spectrum-negative-color-400); - --spectrum-positive-background-color-default:var(--spectrum-positive-color-500); - --spectrum-positive-background-color-hover:var(--spectrum-positive-color-400); - --spectrum-positive-background-color-down:var(--spectrum-positive-color-300); - --spectrum-positive-background-color-key-focus:var(--spectrum-positive-color-400); - --spectrum-notice-background-color-default:var(--spectrum-notice-color-800); - --spectrum-gray-background-color-default:var(--spectrum-gray-700); - --spectrum-red-background-color-default:var(--spectrum-red-700); - --spectrum-orange-background-color-default:var(--spectrum-orange-800); - --spectrum-yellow-background-color-default:var(--spectrum-yellow-1000); - --spectrum-chartreuse-background-color-default:var(--spectrum-chartreuse-900); - --spectrum-celery-background-color-default:var(--spectrum-celery-800); - --spectrum-green-background-color-default:var(--spectrum-green-700); - --spectrum-seafoam-background-color-default:var(--spectrum-seafoam-700); - --spectrum-cyan-background-color-default:var(--spectrum-cyan-700); - --spectrum-blue-background-color-default:var(--spectrum-blue-700); - --spectrum-indigo-background-color-default:var(--spectrum-indigo-700); - --spectrum-purple-background-color-default:var(--spectrum-purple-700); - --spectrum-fuchsia-background-color-default:var(--spectrum-fuchsia-700); - --spectrum-magenta-background-color-default:var(--spectrum-magenta-700); - --spectrum-neutral-visual-color:var(--spectrum-gray-600); - --spectrum-accent-visual-color:var(--spectrum-accent-color-900); - --spectrum-informative-visual-color:var(--spectrum-informative-color-900); - --spectrum-negative-visual-color:var(--spectrum-negative-color-700); - --spectrum-notice-visual-color:var(--spectrum-notice-color-900); - --spectrum-positive-visual-color:var(--spectrum-positive-color-800); - --spectrum-gray-visual-color:var(--spectrum-gray-600); - --spectrum-red-visual-color:var(--spectrum-red-700); - --spectrum-orange-visual-color:var(--spectrum-orange-900); - --spectrum-yellow-visual-color:var(--spectrum-yellow-1100); - --spectrum-chartreuse-visual-color:var(--spectrum-chartreuse-900); - --spectrum-celery-visual-color:var(--spectrum-celery-800); - --spectrum-green-visual-color:var(--spectrum-green-800); - --spectrum-seafoam-visual-color:var(--spectrum-seafoam-800); - --spectrum-cyan-visual-color:var(--spectrum-cyan-900); - --spectrum-blue-visual-color:var(--spectrum-blue-900); - --spectrum-indigo-visual-color:var(--spectrum-indigo-900); - --spectrum-purple-visual-color:var(--spectrum-purple-900); - --spectrum-fuchsia-visual-color:var(--spectrum-fuchsia-900); - --spectrum-magenta-visual-color:var(--spectrum-magenta-900); - --spectrum-opacity-checkerboard-square-dark:var(--spectrum-gray-800); - --spectrum-gray-50-rgb:29, 29, 29; - --spectrum-gray-50:rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb:38, 38, 38; - --spectrum-gray-75:rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb:50, 50, 50; - --spectrum-gray-100:rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb:63, 63, 63; - --spectrum-gray-200:rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb:84, 84, 84; - --spectrum-gray-300:rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb:112, 112, 112; - --spectrum-gray-400:rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb:144, 144, 144; - --spectrum-gray-500:rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb:178, 178, 178; - --spectrum-gray-600:rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb:209, 209, 209; - --spectrum-gray-700:rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb:235, 235, 235; - --spectrum-gray-800:rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb:255, 255, 255; - --spectrum-gray-900:rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb:0, 56, 119; - --spectrum-blue-100:rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb:0, 65, 138; - --spectrum-blue-200:rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb:0, 77, 163; - --spectrum-blue-300:rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb:0, 89, 194; - --spectrum-blue-400:rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb:3, 103, 224; - --spectrum-blue-500:rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb:19, 121, 243; - --spectrum-blue-600:rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb:52, 143, 244; - --spectrum-blue-700:rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb:84, 163, 246; - --spectrum-blue-800:rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb:114, 183, 249; - --spectrum-blue-900:rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb:143, 202, 252; - --spectrum-blue-1000:rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb:174, 219, 254; - --spectrum-blue-1100:rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb:204, 233, 255; - --spectrum-blue-1200:rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb:232, 246, 255; - --spectrum-blue-1300:rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb:255, 255, 255; - --spectrum-blue-1400:rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb:123, 0, 0; - --spectrum-red-100:rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb:141, 0, 0; - --spectrum-red-200:rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb:165, 0, 0; - --spectrum-red-300:rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb:190, 4, 3; - --spectrum-red-400:rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb:215, 25, 19; - --spectrum-red-500:rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb:234, 56, 41; - --spectrum-red-600:rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb:246, 88, 67; - --spectrum-red-700:rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb:255, 117, 94; - --spectrum-red-800:rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb:255, 149, 129; - --spectrum-red-900:rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb:255, 176, 161; - --spectrum-red-1000:rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb:255, 201, 189; - --spectrum-red-1100:rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb:255, 222, 216; - --spectrum-red-1200:rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb:255, 241, 238; - --spectrum-red-1300:rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb:255, 255, 255; - --spectrum-red-1400:rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb:102, 37, 0; - --spectrum-orange-100:rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb:117, 45, 0; - --spectrum-orange-200:rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb:137, 55, 0; - --spectrum-orange-300:rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb:158, 66, 0; - --spectrum-orange-400:rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb:180, 78, 0; - --spectrum-orange-500:rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb:202, 93, 0; - --spectrum-orange-600:rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb:225, 109, 0; - --spectrum-orange-700:rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb:244, 129, 12; - --spectrum-orange-800:rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb:254, 154, 46; - --spectrum-orange-900:rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb:255, 181, 88; - --spectrum-orange-1000:rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb:253, 206, 136; - --spectrum-orange-1100:rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb:255, 225, 179; - --spectrum-orange-1200:rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb:255, 242, 221; - --spectrum-orange-1300:rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb:255, 253, 249; - --spectrum-orange-1400:rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb:76, 54, 0; - --spectrum-yellow-100:rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb:88, 64, 0; - --spectrum-yellow-200:rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb:103, 76, 0; - --spectrum-yellow-300:rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb:119, 89, 0; - --spectrum-yellow-400:rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb:136, 104, 0; - --spectrum-yellow-500:rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb:155, 120, 0; - --spectrum-yellow-600:rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb:174, 137, 0; - --spectrum-yellow-700:rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb:192, 156, 0; - --spectrum-yellow-800:rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb:211, 174, 0; - --spectrum-yellow-900:rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb:228, 194, 0; - --spectrum-yellow-1000:rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb:244, 213, 0; - --spectrum-yellow-1100:rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb:249, 232, 92; - --spectrum-yellow-1200:rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb:252, 246, 187; - --spectrum-yellow-1300:rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb:255, 255, 255; - --spectrum-yellow-1400:rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb:48, 64, 0; - --spectrum-chartreuse-100:rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb:55, 74, 0; - --spectrum-chartreuse-200:rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb:65, 87, 0; - --spectrum-chartreuse-300:rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb:76, 102, 0; - --spectrum-chartreuse-400:rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb:89, 118, 0; - --spectrum-chartreuse-500:rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb:102, 136, 0; - --spectrum-chartreuse-600:rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb:117, 154, 0; - --spectrum-chartreuse-700:rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb:132, 173, 1; - --spectrum-chartreuse-800:rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb:148, 192, 8; - --spectrum-chartreuse-900:rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb:166, 211, 18; - --spectrum-chartreuse-1000:rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb:184, 229, 37; - --spectrum-chartreuse-1100:rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb:205, 245, 71; - --spectrum-chartreuse-1200:rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb:231, 254, 154; - --spectrum-chartreuse-1300:rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb:255, 255, 255; - --spectrum-chartreuse-1400:rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb:0, 69, 10; - --spectrum-celery-100:rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb:0, 80, 12; - --spectrum-celery-200:rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb:0, 94, 14; - --spectrum-celery-300:rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb:0, 109, 15; - --spectrum-celery-400:rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb:0, 127, 15; - --spectrum-celery-500:rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb:0, 145, 18; - --spectrum-celery-600:rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb:4, 165, 30; - --spectrum-celery-700:rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb:34, 184, 51; - --spectrum-celery-800:rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb:68, 202, 73; - --spectrum-celery-900:rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb:105, 220, 99; - --spectrum-celery-1000:rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb:142, 235, 127; - --spectrum-celery-1100:rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb:180, 247, 162; - --spectrum-celery-1200:rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb:221, 253, 211; - --spectrum-celery-1300:rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb:255, 255, 255; - --spectrum-celery-1400:rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb:4, 67, 41; - --spectrum-green-100:rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb:0, 78, 47; - --spectrum-green-200:rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb:0, 92, 56; - --spectrum-green-300:rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb:0, 108, 67; - --spectrum-green-400:rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb:0, 125, 78; - --spectrum-green-500:rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb:0, 143, 93; - --spectrum-green-600:rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb:18, 162, 108; - --spectrum-green-700:rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb:43, 180, 125; - --spectrum-green-800:rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb:67, 199, 143; - --spectrum-green-900:rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb:94, 217, 162; - --spectrum-green-1000:rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb:129, 233, 184; - --spectrum-green-1100:rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb:177, 244, 209; - --spectrum-green-1200:rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb:223, 250, 234; - --spectrum-green-1300:rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb:254, 255, 252; - --spectrum-green-1400:rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb:18, 65, 63; - --spectrum-seafoam-100:rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb:14, 76, 73; - --spectrum-seafoam-200:rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb:4, 90, 87; - --spectrum-seafoam-300:rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb:0, 105, 101; - --spectrum-seafoam-400:rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb:0, 122, 117; - --spectrum-seafoam-500:rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb:0, 140, 135; - --spectrum-seafoam-600:rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb:0, 158, 152; - --spectrum-seafoam-700:rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb:3, 178, 171; - --spectrum-seafoam-800:rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb:54, 197, 189; - --spectrum-seafoam-900:rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb:93, 214, 207; - --spectrum-seafoam-1000:rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb:132, 230, 223; - --spectrum-seafoam-1100:rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb:176, 242, 236; - --spectrum-seafoam-1200:rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb:223, 249, 246; - --spectrum-seafoam-1300:rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb:254, 255, 254; - --spectrum-seafoam-1400:rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb:0, 61, 98; - --spectrum-cyan-100:rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb:0, 71, 111; - --spectrum-cyan-200:rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb:0, 85, 127; - --spectrum-cyan-300:rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb:0, 100, 145; - --spectrum-cyan-400:rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb:0, 116, 162; - --spectrum-cyan-500:rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb:0, 134, 180; - --spectrum-cyan-600:rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb:0, 153, 198; - --spectrum-cyan-700:rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb:14, 173, 215; - --spectrum-cyan-800:rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb:44, 193, 230; - --spectrum-cyan-900:rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb:84, 211, 241; - --spectrum-cyan-1000:rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb:127, 228, 249; - --spectrum-cyan-1100:rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb:167, 241, 255; - --spectrum-cyan-1200:rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb:215, 250, 255; - --spectrum-cyan-1300:rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb:255, 255, 255; - --spectrum-cyan-1400:rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb:40, 44, 140; - --spectrum-indigo-100:rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb:47, 52, 163; - --spectrum-indigo-200:rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb:57, 63, 187; - --spectrum-indigo-300:rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb:70, 75, 211; - --spectrum-indigo-400:rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb:85, 91, 231; - --spectrum-indigo-500:rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb:104, 109, 244; - --spectrum-indigo-600:rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb:124, 129, 251; - --spectrum-indigo-700:rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb:145, 149, 255; - --spectrum-indigo-800:rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb:167, 170, 255; - --spectrum-indigo-900:rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb:188, 190, 255; - --spectrum-indigo-1000:rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb:208, 210, 255; - --spectrum-indigo-1100:rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb:226, 228, 255; - --spectrum-indigo-1200:rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb:243, 243, 254; - --spectrum-indigo-1300:rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb:255, 255, 255; - --spectrum-indigo-1400:rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb:76, 13, 157; - --spectrum-purple-100:rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb:89, 17, 177; - --spectrum-purple-200:rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb:105, 28, 200; - --spectrum-purple-300:rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb:122, 45, 218; - --spectrum-purple-400:rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb:140, 65, 233; - --spectrum-purple-500:rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb:157, 87, 243; - --spectrum-purple-600:rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb:172, 111, 249; - --spectrum-purple-700:rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb:187, 135, 251; - --spectrum-purple-800:rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb:202, 159, 252; - --spectrum-purple-900:rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb:215, 182, 254; - --spectrum-purple-1000:rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb:228, 204, 254; - --spectrum-purple-1100:rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb:239, 223, 255; - --spectrum-purple-1200:rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb:249, 240, 255; - --spectrum-purple-1300:rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb:255, 253, 255; - --spectrum-purple-1400:rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb:107, 3, 106; - --spectrum-fuchsia-100:rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb:123, 0, 123; - --spectrum-fuchsia-200:rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb:144, 0, 145; - --spectrum-fuchsia-300:rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb:165, 13, 166; - --spectrum-fuchsia-400:rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb:185, 37, 185; - --spectrum-fuchsia-500:rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb:205, 57, 206; - --spectrum-fuchsia-600:rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb:223, 81, 224; - --spectrum-fuchsia-700:rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb:235, 110, 236; - --spectrum-fuchsia-800:rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb:244, 140, 242; - --spectrum-fuchsia-900:rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb:250, 168, 245; - --spectrum-fuchsia-1000:rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb:254, 194, 248; - --spectrum-fuchsia-1100:rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb:255, 219, 250; - --spectrum-fuchsia-1200:rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb:255, 239, 252; - --spectrum-fuchsia-1300:rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb:255, 253, 255; - --spectrum-fuchsia-1400:rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb:118, 0, 58; - --spectrum-magenta-100:rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb:137, 0, 66; - --spectrum-magenta-200:rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb:160, 0, 77; - --spectrum-magenta-300:rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb:182, 18, 90; - --spectrum-magenta-400:rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb:203, 38, 109; - --spectrum-magenta-500:rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb:222, 61, 130; - --spectrum-magenta-600:rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb:237, 87, 149; - --spectrum-magenta-700:rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb:249, 114, 167; - --spectrum-magenta-800:rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb:255, 143, 185; - --spectrum-magenta-900:rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb:255, 172, 202; - --spectrum-magenta-1000:rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb:255, 198, 218; - --spectrum-magenta-1100:rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb:255, 221, 233; - --spectrum-magenta-1200:rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb:255, 240, 245; - --spectrum-magenta-1300:rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb:255, 252, 253; - --spectrum-magenta-1400:rgba(var(--spectrum-magenta-1400-rgb)); - --spectrum-icon-color-blue-primary-default:var(--spectrum-blue-800); - --spectrum-icon-color-green-primary-default:var(--spectrum-green-800); - --spectrum-icon-color-red-primary-default:var(--spectrum-red-700); - --spectrum-icon-color-yellow-primary-default:var(--spectrum-yellow-1000); -} diff --git a/tokens/dist/css/darkest-vars.css b/tokens/dist/css/darkest-vars.css deleted file mode 100644 index 084a3fc8753..00000000000 --- a/tokens/dist/css/darkest-vars.css +++ /dev/null @@ -1,472 +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 - * - * 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--darkest{ - --spectrum-overlay-opacity:0.6; - --spectrum-drop-shadow-color-rgb:0, 0, 0; - --spectrum-drop-shadow-color-opacity:0.8; - --spectrum-drop-shadow-color:rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color:var(--spectrum-gray-50); - --spectrum-background-layer-1-color:var(--spectrum-gray-75); - --spectrum-background-layer-2-color:var(--spectrum-gray-100); - --spectrum-neutral-background-color-default:var(--spectrum-gray-400); - --spectrum-neutral-background-color-hover:var(--spectrum-gray-300); - --spectrum-neutral-background-color-down:var(--spectrum-gray-200); - --spectrum-neutral-background-color-key-focus:var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-default:var(--spectrum-gray-400); - --spectrum-neutral-subdued-background-color-hover:var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-down:var(--spectrum-gray-200); - --spectrum-neutral-subdued-background-color-key-focus:var(--spectrum-gray-300); - --spectrum-accent-background-color-default:var(--spectrum-accent-color-600); - --spectrum-accent-background-color-hover:var(--spectrum-accent-color-500); - --spectrum-accent-background-color-down:var(--spectrum-accent-color-400); - --spectrum-accent-background-color-key-focus:var(--spectrum-accent-color-500); - --spectrum-informative-background-color-default:var(--spectrum-informative-color-600); - --spectrum-informative-background-color-hover:var(--spectrum-informative-color-500); - --spectrum-informative-background-color-down:var(--spectrum-informative-color-400); - --spectrum-informative-background-color-key-focus:var(--spectrum-informative-color-500); - --spectrum-negative-background-color-default:var(--spectrum-negative-color-600); - --spectrum-negative-background-color-hover:var(--spectrum-negative-color-500); - --spectrum-negative-background-color-down:var(--spectrum-negative-color-400); - --spectrum-negative-background-color-key-focus:var(--spectrum-negative-color-500); - --spectrum-positive-background-color-default:var(--spectrum-positive-color-600); - --spectrum-positive-background-color-hover:var(--spectrum-positive-color-500); - --spectrum-positive-background-color-down:var(--spectrum-positive-color-400); - --spectrum-positive-background-color-key-focus:var(--spectrum-positive-color-500); - --spectrum-notice-background-color-default:var(--spectrum-notice-color-800); - --spectrum-gray-background-color-default:var(--spectrum-gray-700); - --spectrum-red-background-color-default:var(--spectrum-red-700); - --spectrum-orange-background-color-default:var(--spectrum-orange-800); - --spectrum-yellow-background-color-default:var(--spectrum-yellow-1000); - --spectrum-chartreuse-background-color-default:var(--spectrum-chartreuse-900); - --spectrum-celery-background-color-default:var(--spectrum-celery-800); - --spectrum-green-background-color-default:var(--spectrum-green-700); - --spectrum-seafoam-background-color-default:var(--spectrum-seafoam-700); - --spectrum-cyan-background-color-default:var(--spectrum-cyan-700); - --spectrum-blue-background-color-default:var(--spectrum-blue-700); - --spectrum-indigo-background-color-default:var(--spectrum-indigo-700); - --spectrum-purple-background-color-default:var(--spectrum-purple-700); - --spectrum-fuchsia-background-color-default:var(--spectrum-fuchsia-700); - --spectrum-magenta-background-color-default:var(--spectrum-magenta-700); - --spectrum-neutral-visual-color:var(--spectrum-gray-600); - --spectrum-accent-visual-color:var(--spectrum-accent-color-900); - --spectrum-informative-visual-color:var(--spectrum-informative-color-900); - --spectrum-negative-visual-color:var(--spectrum-negative-color-700); - --spectrum-notice-visual-color:var(--spectrum-notice-color-900); - --spectrum-positive-visual-color:var(--spectrum-positive-color-800); - --spectrum-gray-visual-color:var(--spectrum-gray-600); - --spectrum-red-visual-color:var(--spectrum-red-700); - --spectrum-orange-visual-color:var(--spectrum-orange-900); - --spectrum-yellow-visual-color:var(--spectrum-yellow-1100); - --spectrum-chartreuse-visual-color:var(--spectrum-chartreuse-900); - --spectrum-celery-visual-color:var(--spectrum-celery-800); - --spectrum-green-visual-color:var(--spectrum-green-800); - --spectrum-seafoam-visual-color:var(--spectrum-seafoam-800); - --spectrum-cyan-visual-color:var(--spectrum-cyan-900); - --spectrum-blue-visual-color:var(--spectrum-blue-900); - --spectrum-indigo-visual-color:var(--spectrum-indigo-900); - --spectrum-purple-visual-color:var(--spectrum-purple-900); - --spectrum-fuchsia-visual-color:var(--spectrum-fuchsia-900); - --spectrum-magenta-visual-color:var(--spectrum-magenta-900); - --spectrum-opacity-checkerboard-square-dark:var(--spectrum-gray-800); - --spectrum-gray-50-rgb:0, 0, 0; - --spectrum-gray-50:rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb:14, 14, 14; - --spectrum-gray-75:rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb:29, 29, 29; - --spectrum-gray-100:rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb:48, 48, 48; - --spectrum-gray-200:rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb:75, 75, 75; - --spectrum-gray-300:rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb:106, 106, 106; - --spectrum-gray-400:rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb:141, 141, 141; - --spectrum-gray-500:rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb:176, 176, 176; - --spectrum-gray-600:rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb:208, 208, 208; - --spectrum-gray-700:rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb:235, 235, 235; - --spectrum-gray-800:rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb:255, 255, 255; - --spectrum-gray-900:rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb:0, 38, 81; - --spectrum-blue-100:rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb:0, 50, 106; - --spectrum-blue-200:rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb:0, 64, 135; - --spectrum-blue-300:rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb:0, 78, 166; - --spectrum-blue-400:rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb:0, 92, 200; - --spectrum-blue-500:rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb:6, 108, 231; - --spectrum-blue-600:rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb:29, 128, 245; - --spectrum-blue-700:rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb:64, 150, 243; - --spectrum-blue-800:rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb:94, 170, 247; - --spectrum-blue-900:rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb:124, 189, 250; - --spectrum-blue-1000:rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb:152, 206, 253; - --spectrum-blue-1100:rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb:179, 222, 254; - --spectrum-blue-1200:rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb:206, 234, 255; - --spectrum-blue-1300:rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb:227, 243, 255; - --spectrum-blue-1400:rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb:87, 0, 0; - --spectrum-red-100:rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb:110, 0, 0; - --spectrum-red-200:rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb:138, 0, 0; - --spectrum-red-300:rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb:167, 0, 0; - --spectrum-red-400:rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb:196, 7, 6; - --spectrum-red-500:rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb:221, 33, 24; - --spectrum-red-600:rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb:238, 67, 49; - --spectrum-red-700:rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb:249, 99, 76; - --spectrum-red-800:rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb:255, 129, 107; - --spectrum-red-900:rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb:255, 158, 140; - --spectrum-red-1000:rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb:255, 183, 169; - --spectrum-red-1100:rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb:255, 205, 195; - --spectrum-red-1200:rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb:255, 223, 217; - --spectrum-red-1300:rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb:255, 237, 234; - --spectrum-red-1400:rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb:72, 24, 1; - --spectrum-orange-100:rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb:92, 32, 0; - --spectrum-orange-200:rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb:115, 43, 0; - --spectrum-orange-300:rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb:138, 55, 0; - --spectrum-orange-400:rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb:162, 68, 0; - --spectrum-orange-500:rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb:186, 82, 0; - --spectrum-orange-600:rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb:210, 98, 0; - --spectrum-orange-700:rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb:232, 116, 0; - --spectrum-orange-800:rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb:249, 137, 23; - --spectrum-orange-900:rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb:255, 162, 59; - --spectrum-orange-1000:rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb:255, 188, 102; - --spectrum-orange-1100:rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb:253, 210, 145; - --spectrum-orange-1200:rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb:255, 226, 181; - --spectrum-orange-1300:rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb:255, 239, 213; - --spectrum-orange-1400:rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb:53, 36, 0; - --spectrum-yellow-100:rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb:68, 47, 0; - --spectrum-yellow-200:rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb:86, 62, 0; - --spectrum-yellow-300:rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb:103, 77, 0; - --spectrum-yellow-400:rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb:122, 92, 0; - --spectrum-yellow-500:rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb:141, 108, 0; - --spectrum-yellow-600:rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb:161, 126, 0; - --spectrum-yellow-700:rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb:180, 144, 0; - --spectrum-yellow-800:rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb:199, 162, 0; - --spectrum-yellow-900:rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb:216, 181, 0; - --spectrum-yellow-1000:rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb:233, 199, 0; - --spectrum-yellow-1100:rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb:247, 216, 4; - --spectrum-yellow-1200:rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb:249, 233, 97; - --spectrum-yellow-1300:rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb:252, 243, 170; - --spectrum-yellow-1400:rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb:32, 43, 0; - --spectrum-chartreuse-100:rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb:42, 56, 0; - --spectrum-chartreuse-200:rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb:54, 72, 0; - --spectrum-chartreuse-300:rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb:66, 88, 0; - --spectrum-chartreuse-400:rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb:79, 105, 0; - --spectrum-chartreuse-500:rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb:93, 123, 0; - --spectrum-chartreuse-600:rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb:107, 142, 0; - --spectrum-chartreuse-700:rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb:122, 161, 0; - --spectrum-chartreuse-800:rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb:138, 180, 3; - --spectrum-chartreuse-900:rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb:154, 198, 11; - --spectrum-chartreuse-1000:rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb:170, 216, 22; - --spectrum-chartreuse-1100:rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb:187, 232, 41; - --spectrum-chartreuse-1200:rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb:205, 246, 72; - --spectrum-chartreuse-1300:rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb:225, 253, 132; - --spectrum-chartreuse-1400:rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb:0, 47, 7; - --spectrum-celery-100:rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb:0, 61, 9; - --spectrum-celery-200:rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb:0, 77, 12; - --spectrum-celery-300:rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb:0, 95, 15; - --spectrum-celery-400:rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb:0, 113, 15; - --spectrum-celery-500:rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb:0, 132, 15; - --spectrum-celery-600:rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb:0, 151, 20; - --spectrum-celery-700:rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb:13, 171, 37; - --spectrum-celery-800:rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb:45, 191, 58; - --spectrum-celery-900:rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb:80, 208, 82; - --spectrum-celery-1000:rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb:115, 224, 107; - --spectrum-celery-1100:rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb:147, 237, 131; - --spectrum-celery-1200:rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb:180, 247, 162; - --spectrum-celery-1300:rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb:213, 252, 202; - --spectrum-celery-1400:rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb:10, 44, 28; - --spectrum-green-100:rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb:7, 59, 36; - --spectrum-green-200:rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb:0, 76, 46; - --spectrum-green-300:rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb:0, 93, 57; - --spectrum-green-400:rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb:0, 111, 69; - --spectrum-green-500:rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb:0, 130, 82; - --spectrum-green-600:rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb:0, 149, 98; - --spectrum-green-700:rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb:28, 168, 114; - --spectrum-green-800:rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb:52, 187, 132; - --spectrum-green-900:rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb:75, 205, 149; - --spectrum-green-1000:rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb:103, 222, 168; - --spectrum-green-1100:rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb:137, 236, 188; - --spectrum-green-1200:rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb:177, 244, 209; - --spectrum-green-1300:rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb:214, 249, 228; - --spectrum-green-1400:rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb:18, 43, 42; - --spectrum-seafoam-100:rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb:19, 57, 55; - --spectrum-seafoam-200:rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb:16, 73, 70; - --spectrum-seafoam-300:rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb:3, 91, 88; - --spectrum-seafoam-400:rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb:0, 108, 104; - --spectrum-seafoam-500:rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb:0, 127, 121; - --spectrum-seafoam-600:rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb:0, 146, 140; - --spectrum-seafoam-700:rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb:0, 165, 159; - --spectrum-seafoam-800:rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb:26, 185, 178; - --spectrum-seafoam-900:rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb:66, 202, 195; - --spectrum-seafoam-1000:rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb:102, 218, 211; - --spectrum-seafoam-1100:rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb:139, 232, 225; - --spectrum-seafoam-1200:rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb:179, 242, 237; - --spectrum-seafoam-1300:rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb:215, 248, 244; - --spectrum-seafoam-1400:rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb:0, 41, 68; - --spectrum-cyan-100:rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb:0, 54, 88; - --spectrum-cyan-200:rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb:0, 69, 108; - --spectrum-cyan-300:rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb:0, 86, 128; - --spectrum-cyan-400:rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb:0, 103, 147; - --spectrum-cyan-500:rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb:0, 121, 167; - --spectrum-cyan-600:rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb:0, 140, 186; - --spectrum-cyan-700:rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb:4, 160, 205; - --spectrum-cyan-800:rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb:23, 180, 221; - --spectrum-cyan-900:rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb:57, 199, 234; - --spectrum-cyan-1000:rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb:96, 216, 243; - --spectrum-cyan-1100:rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb:134, 230, 250; - --spectrum-cyan-1200:rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb:170, 242, 255; - --spectrum-cyan-1300:rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb:206, 249, 255; - --spectrum-cyan-1400:rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb:26, 29, 97; - --spectrum-indigo-100:rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb:35, 39, 125; - --spectrum-indigo-200:rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb:46, 50, 158; - --spectrum-indigo-300:rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb:58, 63, 189; - --spectrum-indigo-400:rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb:73, 78, 216; - --spectrum-indigo-500:rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb:90, 96, 235; - --spectrum-indigo-600:rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb:110, 115, 246; - --spectrum-indigo-700:rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb:132, 136, 253; - --spectrum-indigo-800:rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb:153, 157, 255; - --spectrum-indigo-900:rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb:174, 177, 255; - --spectrum-indigo-1000:rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb:194, 196, 255; - --spectrum-indigo-1100:rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb:212, 213, 255; - --spectrum-indigo-1200:rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb:227, 228, 255; - --spectrum-indigo-1300:rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb:240, 240, 255; - --spectrum-indigo-1400:rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb:50, 16, 104; - --spectrum-purple-100:rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb:67, 13, 140; - --spectrum-purple-200:rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb:86, 16, 173; - --spectrum-purple-300:rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb:106, 29, 200; - --spectrum-purple-400:rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb:126, 49, 222; - --spectrum-purple-500:rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb:145, 70, 236; - --spectrum-purple-600:rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb:162, 94, 246; - --spectrum-purple-700:rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb:178, 119, 250; - --spectrum-purple-800:rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb:192, 143, 252; - --spectrum-purple-900:rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb:206, 166, 253; - --spectrum-purple-1000:rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb:219, 188, 254; - --spectrum-purple-1100:rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb:230, 207, 255; - --spectrum-purple-1200:rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb:240, 224, 255; - --spectrum-purple-1300:rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb:248, 237, 255; - --spectrum-purple-1400:rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb:70, 14, 68; - --spectrum-fuchsia-100:rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb:93, 9, 92; - --spectrum-fuchsia-200:rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb:120, 0, 120; - --spectrum-fuchsia-300:rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb:146, 0, 147; - --spectrum-fuchsia-400:rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb:169, 19, 170; - --spectrum-fuchsia-500:rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb:191, 43, 191; - --spectrum-fuchsia-600:rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb:211, 65, 213; - --spectrum-fuchsia-700:rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb:228, 91, 229; - --spectrum-fuchsia-800:rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb:239, 120, 238; - --spectrum-fuchsia-900:rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb:246, 149, 243; - --spectrum-fuchsia-1000:rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb:251, 175, 246; - --spectrum-fuchsia-1100:rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb:254, 199, 248; - --spectrum-fuchsia-1200:rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb:255, 220, 250; - --spectrum-fuchsia-1300:rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb:255, 235, 252; - --spectrum-fuchsia-1400:rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb:83, 3, 41; - --spectrum-magenta-100:rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb:106, 0, 52; - --spectrum-magenta-200:rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb:133, 0, 65; - --spectrum-magenta-300:rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb:161, 0, 78; - --spectrum-magenta-400:rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb:186, 22, 93; - --spectrum-magenta-500:rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb:209, 43, 114; - --spectrum-magenta-600:rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb:227, 69, 137; - --spectrum-magenta-700:rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb:241, 97, 156; - --spectrum-magenta-800:rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb:252, 124, 173; - --spectrum-magenta-900:rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb:255, 152, 191; - --spectrum-magenta-1000:rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb:255, 179, 207; - --spectrum-magenta-1100:rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb:255, 202, 221; - --spectrum-magenta-1200:rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb:255, 221, 233; - --spectrum-magenta-1300:rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb:255, 236, 243; - --spectrum-magenta-1400:rgba(var(--spectrum-magenta-1400-rgb)); - --spectrum-icon-color-blue-primary-default:var(--spectrum-blue-800); - --spectrum-icon-color-green-primary-default:var(--spectrum-green-800); - --spectrum-icon-color-red-primary-default:var(--spectrum-red-700); - --spectrum-icon-color-yellow-primary-default:var(--spectrum-yellow-1000); -} diff --git a/tokens/dist/css/express/darkest-vars.css b/tokens/dist/css/express/darkest-vars.css deleted file mode 100644 index c5626287b97..00000000000 --- a/tokens/dist/css/express/darkest-vars.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 - * - * 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--express.spectrum--darkest{ - --spectrum-drop-zone-background-color-rgb:var(--spectrum-indigo-900-rgb); - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - - --spectrum-assetcard-border-color-selected:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-indigo-700); -} diff --git a/tokens/dist/css/express/global-vars.css b/tokens/dist/css/express/global-vars.css deleted file mode 100644 index a1d1e03501d..00000000000 --- a/tokens/dist/css/express/global-vars.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 - * - * 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--express{ - --spectrum-neutral-background-color-selected-default:var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-hover:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-down:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus:var(--spectrum-gray-900); - --spectrum-slider-track-thickness:4px; - --spectrum-slider-handle-gap:0px; - --spectrum-picker-border-width:0; - --spectrum-in-field-button-fill-stacked-inner-border-rounding:1px; - --spectrum-in-field-button-edge-to-fill:4px; - --spectrum-in-field-button-stacked-inner-edge-to-fill:1px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium:5px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large:7px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large:8px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small:1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium:1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large:3px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large:4px; - --spectrum-border-width-100:2px; - --spectrum-accent-color-100:var(--spectrum-indigo-100); - --spectrum-accent-color-200:var(--spectrum-indigo-200); - --spectrum-accent-color-300:var(--spectrum-indigo-300); - --spectrum-accent-color-400:var(--spectrum-indigo-400); - --spectrum-accent-color-500:var(--spectrum-indigo-500); - --spectrum-accent-color-600:var(--spectrum-indigo-600); - --spectrum-accent-color-700:var(--spectrum-indigo-700); - --spectrum-accent-color-800:var(--spectrum-indigo-800); - --spectrum-accent-color-900:var(--spectrum-indigo-900); - --spectrum-accent-color-1000:var(--spectrum-indigo-1000); - --spectrum-accent-color-1100:var(--spectrum-indigo-1100); - --spectrum-accent-color-1200:var(--spectrum-indigo-1200); - --spectrum-accent-color-1300:var(--spectrum-indigo-1300); - --spectrum-accent-color-1400:var(--spectrum-indigo-1400); - --spectrum-heading-sans-serif-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-emphasized-font-weight:var(--spectrum-black-font-weight); - --system:express; -} diff --git a/tokens/dist/css/express/index.css b/tokens/dist/css/express/index.css deleted file mode 100644 index 6ce93008ee5..00000000000 --- a/tokens/dist/css/express/index.css +++ /dev/null @@ -1,195 +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 - * - * 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--express.spectrum--dark,.spectrum--express.spectrum--darkest{ - --spectrum-drop-zone-background-color-rgb:var(--spectrum-indigo-900-rgb); - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-assetcard-border-color-selected:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-indigo-700); -} - -.spectrum--express{ - --spectrum-neutral-background-color-selected-default:var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-hover:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-down:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus:var(--spectrum-gray-900); - --spectrum-slider-track-thickness:4px; - --spectrum-slider-handle-gap:0px; - --spectrum-picker-border-width:0; - --spectrum-in-field-button-fill-stacked-inner-border-rounding:1px; - --spectrum-in-field-button-edge-to-fill:4px; - --spectrum-in-field-button-stacked-inner-edge-to-fill:1px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium:5px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large:7px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large:8px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small:1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium:1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large:3px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large:4px; - --spectrum-border-width-100:2px; - --spectrum-accent-color-100:var(--spectrum-indigo-100); - --spectrum-accent-color-200:var(--spectrum-indigo-200); - --spectrum-accent-color-300:var(--spectrum-indigo-300); - --spectrum-accent-color-400:var(--spectrum-indigo-400); - --spectrum-accent-color-500:var(--spectrum-indigo-500); - --spectrum-accent-color-600:var(--spectrum-indigo-600); - --spectrum-accent-color-700:var(--spectrum-indigo-700); - --spectrum-accent-color-800:var(--spectrum-indigo-800); - --spectrum-accent-color-900:var(--spectrum-indigo-900); - --spectrum-accent-color-1000:var(--spectrum-indigo-1000); - --spectrum-accent-color-1100:var(--spectrum-indigo-1100); - --spectrum-accent-color-1200:var(--spectrum-indigo-1200); - --spectrum-accent-color-1300:var(--spectrum-indigo-1300); - --spectrum-accent-color-1400:var(--spectrum-indigo-1400); - --spectrum-heading-sans-serif-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-emphasized-font-weight:var(--spectrum-black-font-weight); - --system:express; -} - -.spectrum--express.spectrum--large{ - --spectrum-checkbox-control-size-small:18px; - --spectrum-checkbox-control-size-medium:20px; - --spectrum-checkbox-control-size-large:22px; - --spectrum-checkbox-control-size-extra-large:26px; - --spectrum-checkbox-top-to-control-small:6px; - --spectrum-checkbox-top-to-control-medium:10px; - --spectrum-checkbox-top-to-control-large:14px; - --spectrum-checkbox-top-to-control-extra-large:17px; - --spectrum-switch-control-width-small:32px; - --spectrum-switch-control-width-medium:36px; - --spectrum-switch-control-width-large:41px; - --spectrum-switch-control-width-extra-large:46px; - --spectrum-switch-control-height-small:18px; - --spectrum-switch-control-height-medium:20px; - --spectrum-switch-control-height-large:22px; - --spectrum-switch-control-height-extra-large:26px; - --spectrum-switch-top-to-control-small:6px; - --spectrum-switch-top-to-control-medium:10px; - --spectrum-switch-top-to-control-large:14px; - --spectrum-switch-top-to-control-extra-large:17px; - --spectrum-radio-button-control-size-small:18px; - --spectrum-radio-button-control-size-medium:20px; - --spectrum-radio-button-control-size-large:22px; - --spectrum-radio-button-control-size-extra-large:26px; - --spectrum-radio-button-top-to-control-small:6px; - --spectrum-radio-button-top-to-control-medium:10px; - --spectrum-radio-button-top-to-control-large:14px; - --spectrum-radio-button-top-to-control-extra-large:17px; - --spectrum-slider-control-height-small:22px; - --spectrum-slider-control-height-medium:24px; - --spectrum-slider-control-height-large:28px; - --spectrum-slider-control-height-extra-large:30px; - --spectrum-slider-handle-size-small:22px; - --spectrum-slider-handle-size-medium:24px; - --spectrum-slider-handle-size-large:28px; - --spectrum-slider-handle-size-extra-large:30px; - --spectrum-slider-handle-border-width-down-small:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large:var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small:4px; - --spectrum-slider-bottom-to-handle-medium:8px; - --spectrum-slider-bottom-to-handle-large:12px; - --spectrum-slider-bottom-to-handle-extra-large:15px; - --spectrum-corner-radius-75:4px; - --spectrum-corner-radius-100:8px; - --spectrum-corner-radius-200:16px; - --spectrum-drop-shadow-x:0px; - --spectrum-drop-shadow-y:4px; - --spectrum-drop-shadow-blur:16px; - --spectrum-colorwheel-path:"M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - - --spectrum-dialog-confirm-border-radius:8px; - - --spectrum-dial-border-radius:15px; - - --spectrum-assetcard-focus-ring-border-radius:12px; -} - -.spectrum--express.spectrum--light,.spectrum--express.spectrum--lightest{ - --spectrum-drop-zone-background-color-rgb:var(--spectrum-indigo-800-rgb); - --spectrum-well-border-color:rgba(var(--spectrum-black-rgb), 0.05); - - --spectrum-assetcard-border-color-selected:var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-indigo-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-indigo-900); -} - -.spectrum--express.spectrum--medium{ - --spectrum-checkbox-control-size-small:14px; - --spectrum-checkbox-control-size-medium:16px; - --spectrum-checkbox-control-size-large:18px; - --spectrum-checkbox-control-size-extra-large:20px; - --spectrum-checkbox-top-to-control-small:5px; - --spectrum-checkbox-top-to-control-medium:8px; - --spectrum-checkbox-top-to-control-large:11px; - --spectrum-checkbox-top-to-control-extra-large:14px; - --spectrum-switch-control-width-small:25px; - --spectrum-switch-control-width-medium:28px; - --spectrum-switch-control-width-large:32px; - --spectrum-switch-control-width-extra-large:35px; - --spectrum-switch-control-height-small:14px; - --spectrum-switch-control-height-medium:16px; - --spectrum-switch-control-height-large:18px; - --spectrum-switch-control-height-extra-large:20px; - --spectrum-switch-top-to-control-small:5px; - --spectrum-switch-top-to-control-medium:8px; - --spectrum-switch-top-to-control-large:11px; - --spectrum-switch-top-to-control-extra-large:14px; - --spectrum-radio-button-control-size-small:14px; - --spectrum-radio-button-control-size-medium:16px; - --spectrum-radio-button-control-size-large:18px; - --spectrum-radio-button-control-size-extra-large:20px; - --spectrum-radio-button-top-to-control-small:5px; - --spectrum-radio-button-top-to-control-medium:8px; - --spectrum-radio-button-top-to-control-large:11px; - --spectrum-radio-button-top-to-control-extra-large:14px; - --spectrum-slider-control-height-small:18px; - --spectrum-slider-control-height-medium:20px; - --spectrum-slider-control-height-large:22px; - --spectrum-slider-control-height-extra-large:24px; - --spectrum-slider-handle-size-small:18px; - --spectrum-slider-handle-size-medium:20px; - --spectrum-slider-handle-size-large:22px; - --spectrum-slider-handle-size-extra-large:24px; - --spectrum-slider-handle-border-width-down-small:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large:var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small:3px; - --spectrum-slider-bottom-to-handle-medium:6px; - --spectrum-slider-bottom-to-handle-large:9px; - --spectrum-slider-bottom-to-handle-extra-large:12px; - --spectrum-corner-radius-75:3px; - --spectrum-corner-radius-100:6px; - --spectrum-corner-radius-200:12px; - --spectrum-drop-shadow-x:0px; - --spectrum-drop-shadow-y:4px; - --spectrum-drop-shadow-blur:16px; - --spectrum-colorwheel-path:"M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - - --spectrum-dialog-confirm-border-radius:6px; - - --spectrum-dial-border-radius:12px; - - --spectrum-assetcard-focus-ring-border-radius:10px; -} diff --git a/tokens/dist/css/express/large-vars.css b/tokens/dist/css/express/large-vars.css deleted file mode 100644 index d19dd2fee33..00000000000 --- a/tokens/dist/css/express/large-vars.css +++ /dev/null @@ -1,73 +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 - * - * 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--express.spectrum--large{ - --spectrum-checkbox-control-size-small:18px; - --spectrum-checkbox-control-size-medium:20px; - --spectrum-checkbox-control-size-large:22px; - --spectrum-checkbox-control-size-extra-large:26px; - --spectrum-checkbox-top-to-control-small:6px; - --spectrum-checkbox-top-to-control-medium:10px; - --spectrum-checkbox-top-to-control-large:14px; - --spectrum-checkbox-top-to-control-extra-large:17px; - --spectrum-switch-control-width-small:32px; - --spectrum-switch-control-width-medium:36px; - --spectrum-switch-control-width-large:41px; - --spectrum-switch-control-width-extra-large:46px; - --spectrum-switch-control-height-small:18px; - --spectrum-switch-control-height-medium:20px; - --spectrum-switch-control-height-large:22px; - --spectrum-switch-control-height-extra-large:26px; - --spectrum-switch-top-to-control-small:6px; - --spectrum-switch-top-to-control-medium:10px; - --spectrum-switch-top-to-control-large:14px; - --spectrum-switch-top-to-control-extra-large:17px; - --spectrum-radio-button-control-size-small:18px; - --spectrum-radio-button-control-size-medium:20px; - --spectrum-radio-button-control-size-large:22px; - --spectrum-radio-button-control-size-extra-large:26px; - --spectrum-radio-button-top-to-control-small:6px; - --spectrum-radio-button-top-to-control-medium:10px; - --spectrum-radio-button-top-to-control-large:14px; - --spectrum-radio-button-top-to-control-extra-large:17px; - --spectrum-slider-control-height-small:22px; - --spectrum-slider-control-height-medium:24px; - --spectrum-slider-control-height-large:28px; - --spectrum-slider-control-height-extra-large:30px; - --spectrum-slider-handle-size-small:22px; - --spectrum-slider-handle-size-medium:24px; - --spectrum-slider-handle-size-large:28px; - --spectrum-slider-handle-size-extra-large:30px; - --spectrum-slider-handle-border-width-down-small:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large:var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small:4px; - --spectrum-slider-bottom-to-handle-medium:8px; - --spectrum-slider-bottom-to-handle-large:12px; - --spectrum-slider-bottom-to-handle-extra-large:15px; - --spectrum-corner-radius-75:4px; - --spectrum-corner-radius-100:8px; - --spectrum-corner-radius-200:16px; - --spectrum-drop-shadow-x:0px; - --spectrum-drop-shadow-y:4px; - --spectrum-drop-shadow-blur:16px; - --spectrum-colorwheel-path:"M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - - --spectrum-dialog-confirm-border-radius:8px; - - --spectrum-dial-border-radius:15px; - - --spectrum-assetcard-focus-ring-border-radius:12px; -} diff --git a/tokens/dist/css/express/light-vars.css b/tokens/dist/css/express/light-vars.css deleted file mode 100644 index 12398007453..00000000000 --- a/tokens/dist/css/express/light-vars.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 - * - * 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--express.spectrum--light,.spectrum--express.spectrum--lightest{ - --spectrum-drop-zone-background-color-rgb:var(--spectrum-indigo-800-rgb); - --spectrum-well-border-color:rgba(var(--spectrum-black-rgb), 0.05); - - - --spectrum-assetcard-border-color-selected:var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-indigo-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-indigo-900); -} diff --git a/tokens/dist/css/express/medium-vars.css b/tokens/dist/css/express/medium-vars.css deleted file mode 100644 index 0c03587e626..00000000000 --- a/tokens/dist/css/express/medium-vars.css +++ /dev/null @@ -1,73 +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 - * - * 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--express.spectrum--medium{ - --spectrum-checkbox-control-size-small:14px; - --spectrum-checkbox-control-size-medium:16px; - --spectrum-checkbox-control-size-large:18px; - --spectrum-checkbox-control-size-extra-large:20px; - --spectrum-checkbox-top-to-control-small:5px; - --spectrum-checkbox-top-to-control-medium:8px; - --spectrum-checkbox-top-to-control-large:11px; - --spectrum-checkbox-top-to-control-extra-large:14px; - --spectrum-switch-control-width-small:25px; - --spectrum-switch-control-width-medium:28px; - --spectrum-switch-control-width-large:32px; - --spectrum-switch-control-width-extra-large:35px; - --spectrum-switch-control-height-small:14px; - --spectrum-switch-control-height-medium:16px; - --spectrum-switch-control-height-large:18px; - --spectrum-switch-control-height-extra-large:20px; - --spectrum-switch-top-to-control-small:5px; - --spectrum-switch-top-to-control-medium:8px; - --spectrum-switch-top-to-control-large:11px; - --spectrum-switch-top-to-control-extra-large:14px; - --spectrum-radio-button-control-size-small:14px; - --spectrum-radio-button-control-size-medium:16px; - --spectrum-radio-button-control-size-large:18px; - --spectrum-radio-button-control-size-extra-large:20px; - --spectrum-radio-button-top-to-control-small:5px; - --spectrum-radio-button-top-to-control-medium:8px; - --spectrum-radio-button-top-to-control-large:11px; - --spectrum-radio-button-top-to-control-extra-large:14px; - --spectrum-slider-control-height-small:18px; - --spectrum-slider-control-height-medium:20px; - --spectrum-slider-control-height-large:22px; - --spectrum-slider-control-height-extra-large:24px; - --spectrum-slider-handle-size-small:18px; - --spectrum-slider-handle-size-medium:20px; - --spectrum-slider-handle-size-large:22px; - --spectrum-slider-handle-size-extra-large:24px; - --spectrum-slider-handle-border-width-down-small:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large:var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large:var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small:3px; - --spectrum-slider-bottom-to-handle-medium:6px; - --spectrum-slider-bottom-to-handle-large:9px; - --spectrum-slider-bottom-to-handle-extra-large:12px; - --spectrum-corner-radius-75:3px; - --spectrum-corner-radius-100:6px; - --spectrum-corner-radius-200:12px; - --spectrum-drop-shadow-x:0px; - --spectrum-drop-shadow-y:4px; - --spectrum-drop-shadow-blur:16px; - --spectrum-colorwheel-path:"M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - - --spectrum-dialog-confirm-border-radius:6px; - - --spectrum-dial-border-radius:12px; - - --spectrum-assetcard-focus-ring-border-radius:10px; -} diff --git a/tokens/dist/css/global-vars.css b/tokens/dist/css/global-vars.css deleted file mode 100644 index 5a2d087885e..00000000000 --- a/tokens/dist/css/global-vars.css +++ /dev/null @@ -1,586 +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 - * - * 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{ - --spectrum-focus-indicator-color:var(--spectrum-blue-800); - --spectrum-static-white-focus-indicator-color:var(--spectrum-white); - --spectrum-static-black-focus-indicator-color:var(--spectrum-black); - --spectrum-overlay-color:var(--spectrum-black); - --spectrum-opacity-disabled:0.3; - --spectrum-neutral-subdued-content-color-selected:var(--spectrum-neutral-subdued-content-color-down); - --spectrum-accent-content-color-selected:var(--spectrum-accent-content-color-down); - --spectrum-disabled-background-color:var(--spectrum-gray-200); - --spectrum-disabled-static-white-background-color:var(--spectrum-transparent-white-200); - --spectrum-disabled-static-black-background-color:var(--spectrum-transparent-black-200); - --spectrum-background-opacity-default:0; - --spectrum-background-opacity-hover:0.1; - --spectrum-background-opacity-down:0.1; - --spectrum-background-opacity-key-focus:0.1; - --spectrum-neutral-content-color-default:var(--spectrum-gray-800); - --spectrum-neutral-content-color-hover:var(--spectrum-gray-900); - --spectrum-neutral-content-color-down:var(--spectrum-gray-900); - --spectrum-neutral-content-color-focus-hover:var(--spectrum-neutral-content-color-down); - --spectrum-neutral-content-color-focus:var(--spectrum-neutral-content-color-down); - --spectrum-neutral-content-color-key-focus:var(--spectrum-gray-900); - --spectrum-neutral-subdued-content-color-default:var(--spectrum-gray-700); - --spectrum-neutral-subdued-content-color-hover:var(--spectrum-gray-800); - --spectrum-neutral-subdued-content-color-down:var(--spectrum-gray-900); - --spectrum-neutral-subdued-content-color-key-focus:var(--spectrum-gray-800); - --spectrum-accent-content-color-default:var(--spectrum-accent-color-900); - --spectrum-accent-content-color-hover:var(--spectrum-accent-color-1000); - --spectrum-accent-content-color-down:var(--spectrum-accent-color-1100); - --spectrum-accent-content-color-key-focus:var(--spectrum-accent-color-1000); - --spectrum-negative-content-color-default:var(--spectrum-negative-color-900); - --spectrum-negative-content-color-hover:var(--spectrum-negative-color-1000); - --spectrum-negative-content-color-down:var(--spectrum-negative-color-1100); - --spectrum-negative-content-color-key-focus:var(--spectrum-negative-color-1000); - --spectrum-disabled-content-color:var(--spectrum-gray-400); - --spectrum-disabled-static-white-content-color:var(--spectrum-transparent-white-500); - --spectrum-disabled-static-black-content-color:var(--spectrum-transparent-black-500); - --spectrum-disabled-border-color:var(--spectrum-gray-300); - --spectrum-disabled-static-white-border-color:var(--spectrum-transparent-white-300); - --spectrum-disabled-static-black-border-color:var(--spectrum-transparent-black-300); - --spectrum-negative-border-color-default:var(--spectrum-negative-color-900); - --spectrum-negative-border-color-hover:var(--spectrum-negative-color-1000); - --spectrum-negative-border-color-down:var(--spectrum-negative-color-1100); - --spectrum-negative-border-color-focus-hover:var(--spectrum-negative-border-color-down); - --spectrum-negative-border-color-focus:var(--spectrum-negative-color-1000); - --spectrum-negative-border-color-key-focus:var(--spectrum-negative-color-1000); - --spectrum-swatch-border-color:var(--spectrum-gray-900); - --spectrum-swatch-border-opacity:0.51; - --spectrum-swatch-disabled-icon-border-color:var(--spectrum-black); - --spectrum-swatch-disabled-icon-border-opacity:0.51; - --spectrum-thumbnail-border-color:var(--spectrum-gray-800); - --spectrum-thumbnail-border-opacity:0.1; - --spectrum-thumbnail-opacity-disabled:var(--spectrum-opacity-disabled); - --spectrum-opacity-checkerboard-square-light:var(--spectrum-white); - --spectrum-avatar-opacity-disabled:var(--spectrum-opacity-disabled); - --spectrum-color-area-border-color:var(--spectrum-gray-900); - --spectrum-color-area-border-opacity:0.1; - --spectrum-color-slider-border-color:var(--spectrum-gray-900); - --spectrum-color-slider-border-opacity:0.1; - --spectrum-color-loupe-drop-shadow-color:var(--spectrum-transparent-black-300); - --spectrum-color-loupe-inner-border:var(--spectrum-transparent-black-200); - --spectrum-color-loupe-outer-border:var(--spectrum-white); - --spectrum-card-selection-background-color:var(--spectrum-gray-100); - --spectrum-card-selection-background-color-opacity:0.95; - --spectrum-drop-zone-background-color:var(--spectrum-accent-visual-color); - --spectrum-drop-zone-background-color-opacity:0.1; - --spectrum-drop-zone-background-color-opacity-filled:0.3; - --spectrum-coach-mark-pagination-color:var(--spectrum-gray-600); - --spectrum-color-handle-inner-border-color:var(--spectrum-black); - --spectrum-color-handle-inner-border-opacity:0.42; - --spectrum-color-handle-outer-border-color:var(--spectrum-black); - --spectrum-color-handle-outer-border-opacity:var(--spectrum-color-handle-inner-border-opacity); - --spectrum-color-handle-drop-shadow-color:var(--spectrum-drop-shadow-color); - --spectrum-floating-action-button-drop-shadow-color:var(--spectrum-transparent-black-300); - --spectrum-floating-action-button-shadow-color:var(--spectrum-floating-action-button-drop-shadow-color); - --spectrum-table-row-hover-color:var(--spectrum-gray-900); - --spectrum-table-row-hover-opacity:0.07; - --spectrum-table-selected-row-background-color:var(--spectrum-informative-background-color-default); - --spectrum-table-selected-row-background-opacity:0.1; - --spectrum-table-selected-row-background-color-non-emphasized:var(--spectrum-neutral-background-color-selected-default); - --spectrum-table-selected-row-background-opacity-non-emphasized:0.1; - --spectrum-table-row-down-opacity:0.1; - --spectrum-table-selected-row-background-opacity-hover:0.15; - --spectrum-table-selected-row-background-opacity-non-emphasized-hover:0.15; - --spectrum-white-rgb:255, 255, 255; - --spectrum-white:rgba(var(--spectrum-white-rgb)); - --spectrum-transparent-white-100-rgb:255, 255, 255; - --spectrum-transparent-white-100-opacity:0; - --spectrum-transparent-white-100:rgba(var(--spectrum-transparent-white-100-rgb), var(--spectrum-transparent-white-100-opacity)); - --spectrum-transparent-white-200-rgb:255, 255, 255; - --spectrum-transparent-white-200-opacity:0.1; - --spectrum-transparent-white-200:rgba(var(--spectrum-transparent-white-200-rgb), var(--spectrum-transparent-white-200-opacity)); - --spectrum-transparent-white-300-rgb:255, 255, 255; - --spectrum-transparent-white-300-opacity:0.25; - --spectrum-transparent-white-300:rgba(var(--spectrum-transparent-white-300-rgb), var(--spectrum-transparent-white-300-opacity)); - --spectrum-transparent-white-400-rgb:255, 255, 255; - --spectrum-transparent-white-400-opacity:0.4; - --spectrum-transparent-white-400:rgba(var(--spectrum-transparent-white-400-rgb), var(--spectrum-transparent-white-400-opacity)); - --spectrum-transparent-white-500-rgb:255, 255, 255; - --spectrum-transparent-white-500-opacity:0.55; - --spectrum-transparent-white-500:rgba(var(--spectrum-transparent-white-500-rgb), var(--spectrum-transparent-white-500-opacity)); - --spectrum-transparent-white-600-rgb:255, 255, 255; - --spectrum-transparent-white-600-opacity:0.7; - --spectrum-transparent-white-600:rgba(var(--spectrum-transparent-white-600-rgb), var(--spectrum-transparent-white-600-opacity)); - --spectrum-transparent-white-700-rgb:255, 255, 255; - --spectrum-transparent-white-700-opacity:0.8; - --spectrum-transparent-white-700:rgba(var(--spectrum-transparent-white-700-rgb), var(--spectrum-transparent-white-700-opacity)); - --spectrum-transparent-white-800-rgb:255, 255, 255; - --spectrum-transparent-white-800-opacity:0.9; - --spectrum-transparent-white-800:rgba(var(--spectrum-transparent-white-800-rgb), var(--spectrum-transparent-white-800-opacity)); - --spectrum-transparent-white-900-rgb:255, 255, 255; - --spectrum-transparent-white-900:rgba(var(--spectrum-transparent-white-900-rgb)); - --spectrum-black-rgb:0, 0, 0; - --spectrum-black:rgba(var(--spectrum-black-rgb)); - --spectrum-transparent-black-100-rgb:0, 0, 0; - --spectrum-transparent-black-100-opacity:0; - --spectrum-transparent-black-100:rgba(var(--spectrum-transparent-black-100-rgb), var(--spectrum-transparent-black-100-opacity)); - --spectrum-transparent-black-200-rgb:0, 0, 0; - --spectrum-transparent-black-200-opacity:0.1; - --spectrum-transparent-black-200:rgba(var(--spectrum-transparent-black-200-rgb), var(--spectrum-transparent-black-200-opacity)); - --spectrum-transparent-black-300-rgb:0, 0, 0; - --spectrum-transparent-black-300-opacity:0.25; - --spectrum-transparent-black-300:rgba(var(--spectrum-transparent-black-300-rgb), var(--spectrum-transparent-black-300-opacity)); - --spectrum-transparent-black-400-rgb:0, 0, 0; - --spectrum-transparent-black-400-opacity:0.4; - --spectrum-transparent-black-400:rgba(var(--spectrum-transparent-black-400-rgb), var(--spectrum-transparent-black-400-opacity)); - --spectrum-transparent-black-500-rgb:0, 0, 0; - --spectrum-transparent-black-500-opacity:0.55; - --spectrum-transparent-black-500:rgba(var(--spectrum-transparent-black-500-rgb), var(--spectrum-transparent-black-500-opacity)); - --spectrum-transparent-black-600-rgb:0, 0, 0; - --spectrum-transparent-black-600-opacity:0.7; - --spectrum-transparent-black-600:rgba(var(--spectrum-transparent-black-600-rgb), var(--spectrum-transparent-black-600-opacity)); - --spectrum-transparent-black-700-rgb:0, 0, 0; - --spectrum-transparent-black-700-opacity:0.8; - --spectrum-transparent-black-700:rgba(var(--spectrum-transparent-black-700-rgb), var(--spectrum-transparent-black-700-opacity)); - --spectrum-transparent-black-800-rgb:0, 0, 0; - --spectrum-transparent-black-800-opacity:0.9; - --spectrum-transparent-black-800:rgba(var(--spectrum-transparent-black-800-rgb), var(--spectrum-transparent-black-800-opacity)); - --spectrum-transparent-black-900-rgb:0, 0, 0; - --spectrum-transparent-black-900:rgba(var(--spectrum-transparent-black-900-rgb)); - --spectrum-icon-color-inverse:var(--spectrum-gray-50); - --spectrum-icon-color-primary-default:var(--spectrum-neutral-content-color-default); - --spectrum-asterisk-icon-size-75:8px; - --spectrum-radio-button-selection-indicator:4px; - --spectrum-field-label-top-margin-small:0px; - --spectrum-field-label-to-component:0px; - --spectrum-help-text-to-component:0px; - --spectrum-status-light-dot-size-small:8px; - --spectrum-action-button-edge-to-hold-icon-extra-small:3px; - --spectrum-action-button-edge-to-hold-icon-small:3px; - --spectrum-button-minimum-width-multiplier:2.25; - --spectrum-divider-thickness-small:1px; - --spectrum-divider-thickness-medium:2px; - --spectrum-divider-thickness-large:4px; - --spectrum-swatch-rectangle-width-multiplier:2; - --spectrum-swatch-slash-thickness-extra-small:2px; - --spectrum-swatch-slash-thickness-small:3px; - --spectrum-swatch-slash-thickness-medium:4px; - --spectrum-swatch-slash-thickness-large:5px; - --spectrum-progress-bar-minimum-width:48px; - --spectrum-progress-bar-maximum-width:768px; - --spectrum-meter-minimum-width:48px; - --spectrum-meter-maximum-width:768px; - --spectrum-meter-default-width:var(--spectrum-meter-width); - --spectrum-in-line-alert-minimum-width:240px; - --spectrum-popover-tip-width:16px; - --spectrum-popover-tip-height:8px; - --spectrum-menu-item-label-to-description:1px; - --spectrum-menu-item-section-divider-height:8px; - --spectrum-picker-minimum-width-multiplier:2; - --spectrum-picker-end-edge-to-disclousure-icon-quiet:var(--spectrum-picker-end-edge-to-disclosure-icon-quiet); - --spectrum-picker-end-edge-to-disclosure-icon-quiet:0px; - --spectrum-text-field-minimum-width-multiplier:1.5; - --spectrum-combo-box-minimum-width-multiplier:2.5; - --spectrum-combo-box-quiet-minimum-width-multiplier:2; - --spectrum-combo-box-visual-to-field-button-quiet:0px; - --spectrum-alert-dialog-minimum-width:288px; - --spectrum-alert-dialog-maximum-width:480px; - --spectrum-contextual-help-minimum-width:268px; - --spectrum-breadcrumbs-height:var(--spectrum-component-height-300); - --spectrum-breadcrumbs-height-compact:var(--spectrum-component-height-200); - --spectrum-breadcrumbs-end-edge-to-text:0px; - --spectrum-breadcrumbs-truncated-menu-to-separator-icon:0px; - --spectrum-breadcrumbs-start-edge-to-truncated-menu:0px; - --spectrum-breadcrumbs-truncated-menu-to-bottom-text:0px; - --spectrum-alert-banner-to-top-workflow-icon:var(--spectrum-alert-banner-top-to-workflow-icon); - --spectrum-alert-banner-to-top-text:var(--spectrum-alert-banner-top-to-text); - --spectrum-alert-banner-to-bottom-text:var(--spectrum-alert-banner-bottom-to-text); - --spectrum-color-area-border-width:var(--spectrum-border-width-100); - --spectrum-color-area-border-rounding:var(--spectrum-corner-radius-100); - --spectrum-color-wheel-color-area-margin:12px; - --spectrum-color-slider-border-width:1px; - --spectrum-color-slider-border-rounding:4px; - --spectrum-floating-action-button-drop-shadow-blur:12px; - --spectrum-floating-action-button-drop-shadow-y:4px; - --spectrum-illustrated-message-maximum-width:380px; - --spectrum-search-field-minimum-width-multiplier:3; - --spectrum-color-loupe-height:64px; - --spectrum-color-loupe-width:48px; - --spectrum-color-loupe-bottom-to-color-handle:12px; - --spectrum-color-loupe-outer-border-width:var(--spectrum-border-width-200); - --spectrum-color-loupe-inner-border-width:1px; - --spectrum-color-loupe-drop-shadow-y:2px; - --spectrum-color-loupe-drop-shadow-blur:8px; - --spectrum-card-minimum-width:100px; - --spectrum-card-preview-minimum-height:130px; - --spectrum-card-selection-background-size:40px; - --spectrum-drop-zone-width:428px; - --spectrum-drop-zone-content-maximum-width:var(--spectrum-illustrated-message-maximum-width); - --spectrum-drop-zone-border-dash-length:8px; - --spectrum-drop-zone-border-dash-gap:4px; - --spectrum-drop-zone-title-size:var(--spectrum-illustrated-message-title-size); - --spectrum-drop-zone-cjk-title-size:var(--spectrum-illustrated-message-cjk-title-size); - --spectrum-drop-zone-body-size:var(--spectrum-illustrated-message-body-size); - --spectrum-accordion-top-to-text-compact-small:2px; - --spectrum-accordion-top-to-text-compact-medium:4px; - --spectrum-accordion-disclosure-indicator-to-text:0px; - --spectrum-accordion-edge-to-disclosure-indicator:0px; - --spectrum-accordion-edge-to-text:0px; - --spectrum-accordion-focus-indicator-gap:0px; - --spectrum-color-handle-border-width:var(--spectrum-border-width-200); - --spectrum-color-handle-inner-border-width:1px; - --spectrum-color-handle-outer-border-width:1px; - --spectrum-color-handle-drop-shadow-x:0; - --spectrum-color-handle-drop-shadow-y:0; - --spectrum-color-handle-drop-shadow-blur:0; - --spectrum-table-row-height-small-compact:var(--spectrum-component-height-75); - --spectrum-table-row-height-medium-compact:var(--spectrum-component-height-100); - --spectrum-table-row-height-large-compact:var(--spectrum-component-height-200); - --spectrum-table-row-height-extra-large-compact:var(--spectrum-component-height-300); - --spectrum-table-row-top-to-text-small-compact:var(--spectrum-component-top-to-text-75); - --spectrum-table-row-top-to-text-medium-compact:var(--spectrum-component-top-to-text-100); - --spectrum-table-row-top-to-text-large-compact:var(--spectrum-component-top-to-text-200); - --spectrum-table-row-top-to-text-extra-large-compact:var(--spectrum-component-top-to-text-300); - --spectrum-table-row-bottom-to-text-small-compact:var(--spectrum-component-bottom-to-text-75); - --spectrum-table-row-bottom-to-text-medium-compact:var(--spectrum-component-bottom-to-text-100); - --spectrum-table-row-bottom-to-text-large-compact:var(--spectrum-component-bottom-to-text-200); - --spectrum-table-row-bottom-to-text-extra-large-compact:var(--spectrum-component-bottom-to-text-300); - --spectrum-table-edge-to-content:16px; - --spectrum-table-border-divider-width:1px; - --spectrum-tab-item-height-small:var(--spectrum-component-height-200); - --spectrum-tab-item-height-medium:var(--spectrum-component-height-300); - --spectrum-tab-item-height-large:var(--spectrum-component-height-400); - --spectrum-tab-item-height-extra-large:var(--spectrum-component-height-500); - --spectrum-tab-item-compact-height-small:var(--spectrum-component-height-75); - --spectrum-tab-item-compact-height-medium:var(--spectrum-component-height-100); - --spectrum-tab-item-compact-height-large:var(--spectrum-component-height-200); - --spectrum-tab-item-compact-height-extra-large:var(--spectrum-component-height-300); - --spectrum-tab-item-start-to-edge-quiet:0px; - --spectrum-in-field-button-width-stacked-small:20px; - --spectrum-in-field-button-width-stacked-medium:28px; - --spectrum-in-field-button-width-stacked-large:36px; - --spectrum-in-field-button-width-stacked-extra-large:44px; - --spectrum-in-field-button-edge-to-disclosure-icon-stacked-small:7px; - --spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium:9px; - --spectrum-in-field-button-edge-to-disclosure-icon-stacked-large:13px; - --spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large:16px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small:3px; - --spectrum-android-elevation:2dp; - --spectrum-spacing-50:2px; - --spectrum-spacing-75:4px; - --spectrum-spacing-100:8px; - --spectrum-spacing-200:12px; - --spectrum-spacing-300:16px; - --spectrum-spacing-400:24px; - --spectrum-spacing-500:32px; - --spectrum-spacing-600:40px; - --spectrum-spacing-700:48px; - --spectrum-spacing-800:64px; - --spectrum-spacing-900:80px; - --spectrum-spacing-1000:96px; - --spectrum-focus-indicator-thickness:2px; - --spectrum-focus-indicator-gap:2px; - --spectrum-border-width-200:2px; - --spectrum-border-width-400:4px; - --spectrum-field-edge-to-text-quiet:0px; - --spectrum-field-edge-to-visual-quiet:0px; - --spectrum-field-edge-to-border-quiet:0px; - --spectrum-field-edge-to-alert-icon-quiet:0px; - --spectrum-field-edge-to-validation-icon-quiet:0px; - --spectrum-text-underline-thickness:1px; - --spectrum-text-underline-gap:1px; - --spectrum-informative-color-100:var(--spectrum-blue-100); - --spectrum-informative-color-200:var(--spectrum-blue-200); - --spectrum-informative-color-300:var(--spectrum-blue-300); - --spectrum-informative-color-400:var(--spectrum-blue-400); - --spectrum-informative-color-500:var(--spectrum-blue-500); - --spectrum-informative-color-600:var(--spectrum-blue-600); - --spectrum-informative-color-700:var(--spectrum-blue-700); - --spectrum-informative-color-800:var(--spectrum-blue-800); - --spectrum-informative-color-900:var(--spectrum-blue-900); - --spectrum-informative-color-1000:var(--spectrum-blue-1000); - --spectrum-informative-color-1100:var(--spectrum-blue-1100); - --spectrum-informative-color-1200:var(--spectrum-blue-1200); - --spectrum-informative-color-1300:var(--spectrum-blue-1300); - --spectrum-informative-color-1400:var(--spectrum-blue-1400); - --spectrum-negative-color-100:var(--spectrum-red-100); - --spectrum-negative-color-200:var(--spectrum-red-200); - --spectrum-negative-color-300:var(--spectrum-red-300); - --spectrum-negative-color-400:var(--spectrum-red-400); - --spectrum-negative-color-500:var(--spectrum-red-500); - --spectrum-negative-color-600:var(--spectrum-red-600); - --spectrum-negative-color-700:var(--spectrum-red-700); - --spectrum-negative-color-800:var(--spectrum-red-800); - --spectrum-negative-color-900:var(--spectrum-red-900); - --spectrum-negative-color-1000:var(--spectrum-red-1000); - --spectrum-negative-color-1100:var(--spectrum-red-1100); - --spectrum-negative-color-1200:var(--spectrum-red-1200); - --spectrum-negative-color-1300:var(--spectrum-red-1300); - --spectrum-negative-color-1400:var(--spectrum-red-1400); - --spectrum-notice-color-100:var(--spectrum-orange-100); - --spectrum-notice-color-200:var(--spectrum-orange-200); - --spectrum-notice-color-300:var(--spectrum-orange-300); - --spectrum-notice-color-400:var(--spectrum-orange-400); - --spectrum-notice-color-500:var(--spectrum-orange-500); - --spectrum-notice-color-600:var(--spectrum-orange-600); - --spectrum-notice-color-700:var(--spectrum-orange-700); - --spectrum-notice-color-800:var(--spectrum-orange-800); - --spectrum-notice-color-900:var(--spectrum-orange-900); - --spectrum-notice-color-1000:var(--spectrum-orange-1000); - --spectrum-notice-color-1100:var(--spectrum-orange-1100); - --spectrum-notice-color-1200:var(--spectrum-orange-1200); - --spectrum-notice-color-1300:var(--spectrum-orange-1300); - --spectrum-notice-color-1400:var(--spectrum-orange-1400); - --spectrum-positive-color-100:var(--spectrum-green-100); - --spectrum-positive-color-200:var(--spectrum-green-200); - --spectrum-positive-color-300:var(--spectrum-green-300); - --spectrum-positive-color-400:var(--spectrum-green-400); - --spectrum-positive-color-500:var(--spectrum-green-500); - --spectrum-positive-color-600:var(--spectrum-green-600); - --spectrum-positive-color-700:var(--spectrum-green-700); - --spectrum-positive-color-800:var(--spectrum-green-800); - --spectrum-positive-color-900:var(--spectrum-green-900); - --spectrum-positive-color-1000:var(--spectrum-green-1000); - --spectrum-positive-color-1100:var(--spectrum-green-1100); - --spectrum-positive-color-1200:var(--spectrum-green-1200); - --spectrum-positive-color-1300:var(--spectrum-green-1300); - --spectrum-positive-color-1400:var(--spectrum-green-1400); - --spectrum-default-font-family:var(--spectrum-sans-serif-font-family); - --spectrum-sans-serif-font-family:Adobe Clean; - --spectrum-serif-font-family:Adobe Clean Serif; - --spectrum-cjk-font-family:Adobe Clean Han; - --spectrum-light-font-weight:300; - --spectrum-regular-font-weight:400; - --spectrum-medium-font-weight:500; - --spectrum-bold-font-weight:700; - --spectrum-extra-bold-font-weight:800; - --spectrum-black-font-weight:900; - --spectrum-italic-font-style:italic; - --spectrum-default-font-style:normal; - --spectrum-line-height-100:1.3; - --spectrum-line-height-200:1.5; - --spectrum-cjk-line-height-100:1.5; - --spectrum-cjk-line-height-200:1.7; - --spectrum-cjk-letter-spacing:0.05em; - --spectrum-heading-sans-serif-font-family:var(--spectrum-sans-serif-font-family); - --spectrum-heading-serif-font-family:var(--spectrum-serif-font-family); - --spectrum-heading-cjk-font-family:var(--spectrum-cjk-font-family); - --spectrum-heading-sans-serif-light-font-weight:var(--spectrum-light-font-weight); - --spectrum-heading-sans-serif-light-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-light-font-weight:var(--spectrum-regular-font-weight); - --spectrum-heading-serif-light-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-light-font-weight:var(--spectrum-light-font-weight); - --spectrum-heading-cjk-light-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-heavy-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-heavy-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-heavy-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-heavy-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-heavy-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-heavy-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-light-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-sans-serif-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-light-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-light-strong-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-heading-cjk-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-heavy-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-heavy-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-serif-heavy-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-heavy-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-cjk-heavy-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-heavy-strong-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-light-emphasized-font-weight:var(--spectrum-light-font-weight); - --spectrum-heading-sans-serif-light-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-light-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-heading-serif-light-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-light-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-heading-cjk-light-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-heavy-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-heavy-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-heavy-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-heavy-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-heavy-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-heavy-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-light-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-sans-serif-light-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-light-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-light-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-light-strong-emphasized-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-heading-cjk-light-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-sans-serif-heavy-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-heavy-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-serif-heavy-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-serif-heavy-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-heading-cjk-heavy-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-heading-cjk-heavy-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-heading-size-xxxl:var(--spectrum-font-size-1300); - --spectrum-heading-size-xxl:var(--spectrum-font-size-1100); - --spectrum-heading-size-xl:var(--spectrum-font-size-900); - --spectrum-heading-size-l:var(--spectrum-font-size-700); - --spectrum-heading-size-m:var(--spectrum-font-size-500); - --spectrum-heading-size-s:var(--spectrum-font-size-300); - --spectrum-heading-size-xs:var(--spectrum-font-size-200); - --spectrum-heading-size-xxs:var(--spectrum-font-size-100); - --spectrum-heading-cjk-size-xxxl:var(--spectrum-font-size-1300); - --spectrum-heading-cjk-size-xxl:var(--spectrum-font-size-900); - --spectrum-heading-cjk-size-xl:var(--spectrum-font-size-800); - --spectrum-heading-cjk-size-l:var(--spectrum-font-size-600); - --spectrum-heading-cjk-size-m:var(--spectrum-font-size-400); - --spectrum-heading-cjk-size-s:var(--spectrum-font-size-300); - --spectrum-heading-cjk-size-xs:var(--spectrum-font-size-200); - --spectrum-heading-cjk-size-xxs:var(--spectrum-font-size-100); - --spectrum-heading-line-height:var(--spectrum-line-height-100); - --spectrum-heading-cjk-line-height:var(--spectrum-cjk-line-height-100); - --spectrum-heading-margin-top-multiplier:0.88888889; - --spectrum-heading-margin-bottom-multiplier:0.25; - --spectrum-heading-color:var(--spectrum-gray-900); - --spectrum-body-sans-serif-font-family:var(--spectrum-sans-serif-font-family); - --spectrum-body-serif-font-family:var(--spectrum-serif-font-family); - --spectrum-body-cjk-font-family:var(--spectrum-cjk-font-family); - --spectrum-body-sans-serif-font-weight:var(--spectrum-regular-font-weight); - --spectrum-body-sans-serif-font-style:var(--spectrum-default-font-style); - --spectrum-body-serif-font-weight:var(--spectrum-regular-font-weight); - --spectrum-body-serif-font-style:var(--spectrum-default-font-style); - --spectrum-body-cjk-font-weight:var(--spectrum-regular-font-weight); - --spectrum-body-cjk-font-style:var(--spectrum-default-font-style); - --spectrum-body-sans-serif-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-body-sans-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-body-serif-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-body-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-body-cjk-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-body-cjk-strong-font-style:var(--spectrum-default-font-style); - --spectrum-body-sans-serif-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-body-sans-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-body-serif-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-body-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-body-cjk-emphasized-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-body-cjk-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-body-sans-serif-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-body-sans-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-body-serif-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-body-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-body-cjk-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-body-cjk-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-body-size-xxxl:var(--spectrum-font-size-600); - --spectrum-body-size-xxl:var(--spectrum-font-size-500); - --spectrum-body-size-xl:var(--spectrum-font-size-400); - --spectrum-body-size-l:var(--spectrum-font-size-300); - --spectrum-body-size-m:var(--spectrum-font-size-200); - --spectrum-body-size-s:var(--spectrum-font-size-100); - --spectrum-body-size-xs:var(--spectrum-font-size-75); - --spectrum-body-line-height:var(--spectrum-line-height-200); - --spectrum-body-cjk-line-height:var(--spectrum-cjk-line-height-200); - --spectrum-body-margin-multiplier:0.75; - --spectrum-body-color:var(--spectrum-gray-800); - --spectrum-detail-sans-serif-font-family:var(--spectrum-sans-serif-font-family); - --spectrum-detail-serif-font-family:var(--spectrum-serif-font-family); - --spectrum-detail-cjk-font-family:var(--spectrum-cjk-font-family); - --spectrum-detail-sans-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-sans-serif-font-style:var(--spectrum-default-font-style); - --spectrum-detail-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-serif-font-style:var(--spectrum-default-font-style); - --spectrum-detail-cjk-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-detail-cjk-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-light-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-sans-serif-light-font-style:var(--spectrum-default-font-style); - --spectrum-detail-serif-light-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-serif-light-font-style:var(--spectrum-default-font-style); - --spectrum-detail-cjk-light-font-weight:var(--spectrum-light-font-weight); - --spectrum-detail-cjk-light-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-sans-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-serif-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-serif-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-cjk-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-detail-cjk-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-light-strong-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-sans-serif-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-serif-light-strong-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-serif-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-cjk-light-strong-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-detail-cjk-light-strong-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-sans-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-serif-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-cjk-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-detail-cjk-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-light-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-sans-serif-light-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-serif-light-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-serif-light-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-cjk-light-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-cjk-light-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-sans-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-serif-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-detail-serif-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-cjk-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-detail-cjk-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-detail-sans-serif-light-strong-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-sans-serif-light-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-serif-light-strong-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-detail-serif-light-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-detail-cjk-light-strong-emphasized-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-detail-cjk-light-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-detail-size-xl:var(--spectrum-font-size-200); - --spectrum-detail-size-l:var(--spectrum-font-size-100); - --spectrum-detail-size-m:var(--spectrum-font-size-75); - --spectrum-detail-size-s:var(--spectrum-font-size-50); - --spectrum-detail-line-height:var(--spectrum-line-height-100); - --spectrum-detail-cjk-line-height:var(--spectrum-cjk-line-height-100); - --spectrum-detail-margin-top-multiplier:0.88888889; - --spectrum-detail-margin-bottom-multiplier:0.25; - --spectrum-detail-letter-spacing:0.06em; - --spectrum-detail-sans-serif-text-transform:uppercase; - --spectrum-detail-serif-text-transform:uppercase; - --spectrum-detail-color:var(--spectrum-gray-900); - --spectrum-code-font-family:Source Code Pro; - --spectrum-code-cjk-font-family:var(--spectrum-code-font-family); - --spectrum-code-font-weight:var(--spectrum-regular-font-weight); - --spectrum-code-font-style:var(--spectrum-default-font-style); - --spectrum-code-cjk-font-weight:var(--spectrum-regular-font-weight); - --spectrum-code-cjk-font-style:var(--spectrum-default-font-style); - --spectrum-code-strong-font-weight:var(--spectrum-bold-font-weight); - --spectrum-code-strong-font-style:var(--spectrum-default-font-style); - --spectrum-code-cjk-strong-font-weight:var(--spectrum-black-font-weight); - --spectrum-code-cjk-strong-font-style:var(--spectrum-default-font-style); - --spectrum-code-emphasized-font-weight:var(--spectrum-regular-font-weight); - --spectrum-code-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-code-cjk-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-code-cjk-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-code-strong-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-code-strong-emphasized-font-style:var(--spectrum-italic-font-style); - --spectrum-code-cjk-strong-emphasized-font-weight:var(--spectrum-black-font-weight); - --spectrum-code-cjk-strong-emphasized-font-style:var(--spectrum-default-font-style); - --spectrum-code-size-xl:var(--spectrum-font-size-400); - --spectrum-code-size-l:var(--spectrum-font-size-300); - --spectrum-code-size-m:var(--spectrum-font-size-200); - --spectrum-code-size-s:var(--spectrum-font-size-100); - --spectrum-code-size-xs:var(--spectrum-font-size-75); - --spectrum-code-line-height:var(--spectrum-line-height-200); - --spectrum-code-cjk-line-height:var(--spectrum-cjk-line-height-200); - --spectrum-code-color:var(--spectrum-gray-800); -} diff --git a/tokens/dist/css/large-vars.css b/tokens/dist/css/large-vars.css deleted file mode 100644 index 232dcfb2877..00000000000 --- a/tokens/dist/css/large-vars.css +++ /dev/null @@ -1,504 +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 - * - * 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--large{ - --spectrum-workflow-icon-size-50:18px; - --spectrum-workflow-icon-size-75:20px; - --spectrum-workflow-icon-size-100:22px; - --spectrum-workflow-icon-size-200:24px; - --spectrum-workflow-icon-size-300:28px; - --spectrum-arrow-icon-size-75:12px; - --spectrum-arrow-icon-size-100:14px; - --spectrum-arrow-icon-size-200:16px; - --spectrum-arrow-icon-size-300:16px; - --spectrum-arrow-icon-size-400:18px; - --spectrum-arrow-icon-size-500:22px; - --spectrum-arrow-icon-size-600:24px; - --spectrum-asterisk-icon-size-100:10px; - --spectrum-asterisk-icon-size-200:12px; - --spectrum-asterisk-icon-size-300:12px; - --spectrum-checkmark-icon-size-50:12px; - --spectrum-checkmark-icon-size-75:12px; - --spectrum-checkmark-icon-size-100:14px; - --spectrum-checkmark-icon-size-200:14px; - --spectrum-checkmark-icon-size-300:16px; - --spectrum-checkmark-icon-size-400:18px; - --spectrum-checkmark-icon-size-500:20px; - --spectrum-checkmark-icon-size-600:24px; - --spectrum-chevron-icon-size-50:8px; - --spectrum-chevron-icon-size-75:12px; - --spectrum-chevron-icon-size-100:14px; - --spectrum-chevron-icon-size-200:14px; - --spectrum-chevron-icon-size-300:16px; - --spectrum-chevron-icon-size-400:18px; - --spectrum-chevron-icon-size-500:20px; - --spectrum-chevron-icon-size-600:24px; - --spectrum-corner-triangle-icon-size-75:6px; - --spectrum-corner-triangle-icon-size-100:7px; - --spectrum-corner-triangle-icon-size-200:8px; - --spectrum-corner-triangle-icon-size-300:8px; - --spectrum-cross-icon-size-75:10px; - --spectrum-cross-icon-size-100:10px; - --spectrum-cross-icon-size-200:12px; - --spectrum-cross-icon-size-300:14px; - --spectrum-cross-icon-size-400:16px; - --spectrum-cross-icon-size-500:16px; - --spectrum-cross-icon-size-600:18px; - --spectrum-dash-icon-size-50:10px; - --spectrum-dash-icon-size-75:10px; - --spectrum-dash-icon-size-100:12px; - --spectrum-dash-icon-size-200:14px; - --spectrum-dash-icon-size-300:16px; - --spectrum-dash-icon-size-400:18px; - --spectrum-dash-icon-size-500:20px; - --spectrum-dash-icon-size-600:22px; - --spectrum-field-label-text-to-asterisk-small:5px; - --spectrum-field-label-text-to-asterisk-medium:5px; - --spectrum-field-label-text-to-asterisk-large:6px; - --spectrum-field-label-text-to-asterisk-extra-large:6px; - --spectrum-field-label-top-to-asterisk-small:11px; - --spectrum-field-label-top-to-asterisk-medium:15px; - --spectrum-field-label-top-to-asterisk-large:19px; - --spectrum-field-label-top-to-asterisk-extra-large:24px; - --spectrum-field-label-top-margin-medium:5px; - --spectrum-field-label-top-margin-large:6px; - --spectrum-field-label-top-margin-extra-large:6px; - --spectrum-field-label-to-component-quiet-small:-10px; - --spectrum-field-label-to-component-quiet-medium:-10px; - --spectrum-field-label-to-component-quiet-large:-15px; - --spectrum-field-label-to-component-quiet-extra-large:-19px; - --spectrum-help-text-top-to-workflow-icon-small:5px; - --spectrum-help-text-top-to-workflow-icon-medium:4px; - --spectrum-help-text-top-to-workflow-icon-large:8px; - --spectrum-help-text-top-to-workflow-icon-extra-large:11px; - --spectrum-status-light-dot-size-medium:10px; - --spectrum-status-light-dot-size-large:12px; - --spectrum-status-light-dot-size-extra-large:12px; - --spectrum-status-light-top-to-dot-small:11px; - --spectrum-status-light-top-to-dot-medium:15px; - --spectrum-status-light-top-to-dot-large:19px; - --spectrum-status-light-top-to-dot-extra-large:24px; - --spectrum-action-button-edge-to-hold-icon-medium:5px; - --spectrum-action-button-edge-to-hold-icon-large:6px; - --spectrum-action-button-edge-to-hold-icon-extra-large:7px; - --spectrum-tooltip-tip-width:10px; - --spectrum-tooltip-tip-height:5px; - --spectrum-tooltip-maximum-width:200px; - --spectrum-progress-circle-size-small:20px; - --spectrum-progress-circle-size-medium:40px; - --spectrum-progress-circle-size-large:80px; - --spectrum-progress-circle-thickness-small:3px; - --spectrum-progress-circle-thickness-medium:4px; - --spectrum-progress-circle-thickness-large:5px; - --spectrum-toast-height:56px; - --spectrum-toast-maximum-width:420px; - --spectrum-toast-top-to-workflow-icon:17px; - --spectrum-toast-top-to-text:16px; - --spectrum-toast-bottom-to-text:19px; - --spectrum-action-bar-height:56px; - --spectrum-action-bar-top-to-item-counter:16px; - --spectrum-swatch-size-extra-small:20px; - --spectrum-swatch-size-small:30px; - --spectrum-swatch-size-medium:40px; - --spectrum-swatch-size-large:50px; - --spectrum-progress-bar-thickness-small:5px; - --spectrum-progress-bar-thickness-medium:8px; - --spectrum-progress-bar-thickness-large:10px; - --spectrum-progress-bar-thickness-extra-large:13px; - --spectrum-meter-width:240px; - --spectrum-meter-thickness-small:5px; - --spectrum-meter-thickness-large:8px; - --spectrum-tag-top-to-avatar-small:5px; - --spectrum-tag-top-to-avatar-medium:7px; - --spectrum-tag-top-to-avatar-large:11px; - --spectrum-tag-top-to-cross-icon-small:10px; - --spectrum-tag-top-to-cross-icon-medium:15px; - --spectrum-tag-top-to-cross-icon-large:19px; - --spectrum-popover-top-to-content-area:5px; - --spectrum-menu-item-edge-to-content-not-selected-small:24px; - --spectrum-menu-item-edge-to-content-not-selected-medium:42px; - --spectrum-menu-item-edge-to-content-not-selected-large:47px; - --spectrum-menu-item-edge-to-content-not-selected-extra-large:54px; - --spectrum-menu-item-top-to-disclosure-icon-small:9px; - --spectrum-menu-item-top-to-disclosure-icon-medium:13px; - --spectrum-menu-item-top-to-disclosure-icon-large:17px; - --spectrum-menu-item-top-to-disclosure-icon-extra-large:22px; - --spectrum-menu-item-top-to-selected-icon-small:9px; - --spectrum-menu-item-top-to-selected-icon-medium:13px; - --spectrum-menu-item-top-to-selected-icon-large:17px; - --spectrum-menu-item-top-to-selected-icon-extra-large:22px; - --spectrum-slider-control-to-field-label-small:6px; - --spectrum-slider-control-to-field-label-medium:10px; - --spectrum-slider-control-to-field-label-large:14px; - --spectrum-slider-control-to-field-label-extra-large:17px; - --spectrum-picker-visual-to-disclosure-icon-small:9px; - --spectrum-picker-visual-to-disclosure-icon-medium:10px; - --spectrum-picker-visual-to-disclosure-icon-large:11px; - --spectrum-picker-visual-to-disclosure-icon-extra-large:13px; - --spectrum-text-area-minimum-width:140px; - --spectrum-text-area-minimum-height:70px; - --spectrum-combo-box-visual-to-field-button-small:9px; - --spectrum-combo-box-visual-to-field-button-medium:10px; - --spectrum-combo-box-visual-to-field-button-large:11px; - --spectrum-combo-box-visual-to-field-button-extra-large:13px; - --spectrum-thumbnail-size-50:20px; - --spectrum-thumbnail-size-75:22px; - --spectrum-thumbnail-size-100:26px; - --spectrum-thumbnail-size-200:28px; - --spectrum-thumbnail-size-300:32px; - --spectrum-thumbnail-size-400:36px; - --spectrum-thumbnail-size-500:40px; - --spectrum-thumbnail-size-600:46px; - --spectrum-thumbnail-size-700:50px; - --spectrum-thumbnail-size-800:55px; - --spectrum-thumbnail-size-900:62px; - --spectrum-thumbnail-size-1000:70px; - --spectrum-alert-dialog-title-size:var(--spectrum-heading-size-xs); - --spectrum-alert-dialog-description-size:var(--spectrum-body-size-xs); - --spectrum-opacity-checkerboard-square-size:10px; - --spectrum-contextual-help-title-size:var(--spectrum-heading-size-xxs); - --spectrum-contextual-help-body-size:var(--spectrum-body-size-xs); - --spectrum-breadcrumbs-height-multiline:84px; - --spectrum-breadcrumbs-top-to-text:17px; - --spectrum-breadcrumbs-top-to-text-compact:16px; - --spectrum-breadcrumbs-top-to-text-multiline:15px; - --spectrum-breadcrumbs-bottom-to-text:19px; - --spectrum-breadcrumbs-bottom-to-text-compact:19px; - --spectrum-breadcrumbs-bottom-to-text-multiline:10px; - --spectrum-breadcrumbs-start-edge-to-text:9px; - --spectrum-breadcrumbs-top-text-to-bottom-text:11px; - --spectrum-breadcrumbs-top-to-separator-icon:25px; - --spectrum-breadcrumbs-top-to-separator-icon-compact:23px; - --spectrum-breadcrumbs-top-to-separator-icon-multiline:20px; - --spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline:15px; - --spectrum-breadcrumbs-top-to-truncated-menu:10px; - --spectrum-breadcrumbs-top-to-truncated-menu-compact:5px; - --spectrum-avatar-size-50:20px; - --spectrum-avatar-size-75:22px; - --spectrum-avatar-size-100:26px; - --spectrum-avatar-size-200:28px; - --spectrum-avatar-size-300:32px; - --spectrum-avatar-size-400:36px; - --spectrum-avatar-size-500:40px; - --spectrum-avatar-size-600:46px; - --spectrum-avatar-size-700:50px; - --spectrum-alert-banner-minimum-height:64px; - --spectrum-alert-banner-width:680px; - --spectrum-alert-banner-top-to-workflow-icon:21px; - --spectrum-alert-banner-top-to-text:21px; - --spectrum-alert-banner-bottom-to-text:22px; - --spectrum-rating-indicator-width:22px; - --spectrum-rating-indicator-to-icon:5px; - --spectrum-color-area-width:240px; - --spectrum-color-area-minimum-width:80px; - --spectrum-color-area-height:240px; - --spectrum-color-area-minimum-height:80px; - --spectrum-color-wheel-width:240px; - --spectrum-color-wheel-minimum-width:219px; - --spectrum-color-slider-length:240px; - --spectrum-color-slider-minimum-length:100px; - --spectrum-illustrated-message-title-size:var(--spectrum-heading-size-s); - --spectrum-illustrated-message-cjk-title-size:var(--spectrum-heading-cjk-size-s); - --spectrum-illustrated-message-body-size:var(--spectrum-body-size-xs); - --spectrum-coach-mark-width:216px; - --spectrum-coach-mark-minimum-width:216px; - --spectrum-coach-mark-maximum-width:248px; - --spectrum-coach-mark-edge-to-content:var(--spectrum-spacing-300); - --spectrum-coach-mark-pagination-text-to-bottom-edge:22px; - --spectrum-coach-mark-media-height:162px; - --spectrum-coach-mark-media-minimum-height:121px; - --spectrum-coach-mark-title-size:var(--spectrum-heading-size-xxs); - --spectrum-coach-mark-body-size:var(--spectrum-body-size-xs); - --spectrum-coach-mark-pagination-body-size:var(--spectrum-body-size-xs); - --spectrum-accordion-top-to-text-regular-small:7px; - --spectrum-accordion-small-top-to-text-spacious:12px; - --spectrum-accordion-top-to-text-regular-medium:9px; - --spectrum-accordion-top-to-text-spacious-medium:14px; - --spectrum-accordion-top-to-text-compact-large:7px; - --spectrum-accordion-top-to-text-regular-large:12px; - --spectrum-accordion-top-to-text-spacious-large:14px; - --spectrum-accordion-top-to-text-compact-extra-large:7px; - --spectrum-accordion-top-to-text-regular-extra-large:12px; - --spectrum-accordion-top-to-text-spacious-extra-large:14px; - --spectrum-accordion-bottom-to-text-compact-small:4px; - --spectrum-accordion-bottom-to-text-regular-small:9px; - --spectrum-accordion-bottom-to-text-spacious-small:14px; - --spectrum-accordion-bottom-to-text-compact-medium:8px; - --spectrum-accordion-bottom-to-text-regular-medium:13px; - --spectrum-accordion-bottom-to-text-spacious-medium:18px; - --spectrum-accordion-bottom-to-text-compact-large:9px; - --spectrum-accordion-bottom-to-text-regular-large:14px; - --spectrum-accordion-bottom-to-text-spacious-large:19px; - --spectrum-accordion-bottom-to-text-compact-extra-large:10px; - --spectrum-accordion-bottom-to-text-regular-extra-large:15px; - --spectrum-accordion-bottom-to-text-spacious-extra-large:21px; - --spectrum-accordion-minimum-width:250px; - --spectrum-accordion-content-area-top-to-content:10px; - --spectrum-accordion-content-area-bottom-to-content:20px; - --spectrum-color-handle-size:20px; - --spectrum-color-handle-size-key-focus:40px; - --spectrum-table-column-header-row-top-to-text-small:10px; - --spectrum-table-column-header-row-top-to-text-medium:9px; - --spectrum-table-column-header-row-top-to-text-large:13px; - --spectrum-table-column-header-row-top-to-text-extra-large:16px; - --spectrum-table-column-header-row-bottom-to-text-small:11px; - --spectrum-table-column-header-row-bottom-to-text-medium:10px; - --spectrum-table-column-header-row-bottom-to-text-large:13px; - --spectrum-table-column-header-row-bottom-to-text-extra-large:17px; - --spectrum-table-row-height-small-regular:40px; - --spectrum-table-row-height-medium-regular:50px; - --spectrum-table-row-height-large-regular:60px; - --spectrum-table-row-height-extra-large-regular:70px; - --spectrum-table-row-height-small-spacious:50px; - --spectrum-table-row-height-medium-spacious:60px; - --spectrum-table-row-height-large-spacious:70px; - --spectrum-table-row-height-extra-large-spacious:80px; - --spectrum-table-row-top-to-text-small-regular:10px; - --spectrum-table-row-top-to-text-medium-regular:14px; - --spectrum-table-row-top-to-text-large-regular:18px; - --spectrum-table-row-top-to-text-extra-large-regular:21px; - --spectrum-table-row-bottom-to-text-small-regular:11px; - --spectrum-table-row-bottom-to-text-medium-regular:15px; - --spectrum-table-row-bottom-to-text-large-regular:18px; - --spectrum-table-row-bottom-to-text-extra-large-regular:22px; - --spectrum-table-row-top-to-text-small-spacious:15px; - --spectrum-table-row-top-to-text-medium-spacious:18px; - --spectrum-table-row-top-to-text-large-spacious:23px; - --spectrum-table-row-top-to-text-extra-large-spacious:26px; - --spectrum-table-row-bottom-to-text-small-spacious:16px; - --spectrum-table-row-bottom-to-text-medium-spacious:18px; - --spectrum-table-row-bottom-to-text-large-spacious:23px; - --spectrum-table-row-bottom-to-text-extra-large-spacious:27px; - --spectrum-table-checkbox-to-text:30px; - --spectrum-table-header-row-checkbox-to-top-small:14px; - --spectrum-table-header-row-checkbox-to-top-medium:13px; - --spectrum-table-header-row-checkbox-to-top-large:17px; - --spectrum-table-header-row-checkbox-to-top-extra-large:21px; - --spectrum-table-row-checkbox-to-top-small-compact:9px; - --spectrum-table-row-checkbox-to-top-small-regular:14px; - --spectrum-table-row-checkbox-to-top-small-spacious:19px; - --spectrum-table-row-checkbox-to-top-medium-compact:13px; - --spectrum-table-row-checkbox-to-top-medium-regular:18px; - --spectrum-table-row-checkbox-to-top-medium-spacious:23px; - --spectrum-table-row-checkbox-to-top-large-compact:17px; - --spectrum-table-row-checkbox-to-top-large-regular:22px; - --spectrum-table-row-checkbox-to-top-large-spacious:27px; - --spectrum-table-row-checkbox-to-top-extra-large-compact:21px; - --spectrum-table-row-checkbox-to-top-extra-large-regular:26px; - --spectrum-table-row-checkbox-to-top-extra-large-spacious:31px; - --spectrum-table-section-header-row-height-small:30px; - --spectrum-table-section-header-row-height-medium:40px; - --spectrum-table-section-header-row-height-large:50px; - --spectrum-table-section-header-row-height-extra-large:60px; - --spectrum-table-thumbnail-to-top-minimum-small-compact:5px; - --spectrum-table-thumbnail-to-top-minimum-medium-compact:6px; - --spectrum-table-thumbnail-to-top-minimum-large-compact:9px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-compact:10px; - --spectrum-table-thumbnail-to-top-minimum-small-regular:6px; - --spectrum-table-thumbnail-to-top-minimum-medium-regular:9px; - --spectrum-table-thumbnail-to-top-minimum-large-regular:10px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-regular:10px; - --spectrum-table-thumbnail-to-top-minimum-small-spacious:9px; - --spectrum-table-thumbnail-to-top-minimum-medium-spacious:10px; - --spectrum-table-thumbnail-to-top-minimum-large-spacious:10px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-spacious:12px; - --spectrum-tab-item-to-tab-item-horizontal-small:27px; - --spectrum-tab-item-to-tab-item-horizontal-medium:30px; - --spectrum-tab-item-to-tab-item-horizontal-large:33px; - --spectrum-tab-item-to-tab-item-horizontal-extra-large:36px; - --spectrum-tab-item-to-tab-item-vertical-small:5px; - --spectrum-tab-item-to-tab-item-vertical-medium:5px; - --spectrum-tab-item-to-tab-item-vertical-large:6px; - --spectrum-tab-item-to-tab-item-vertical-extra-large:6px; - --spectrum-tab-item-start-to-edge-small:13px; - --spectrum-tab-item-start-to-edge-medium:15px; - --spectrum-tab-item-start-to-edge-large:17px; - --spectrum-tab-item-start-to-edge-extra-large:19px; - --spectrum-tab-item-top-to-text-small:14px; - --spectrum-tab-item-bottom-to-text-small:15px; - --spectrum-tab-item-top-to-text-medium:18px; - --spectrum-tab-item-bottom-to-text-medium:19px; - --spectrum-tab-item-top-to-text-large:22px; - --spectrum-tab-item-bottom-to-text-large:22px; - --spectrum-tab-item-top-to-text-extra-large:25px; - --spectrum-tab-item-bottom-to-text-extra-large:25px; - --spectrum-tab-item-top-to-text-compact-small:5px; - --spectrum-tab-item-bottom-to-text-compact-small:6px; - --spectrum-tab-item-top-to-text-compact-medium:9px; - --spectrum-tab-item-bottom-to-text-compact-medium:10px; - --spectrum-tab-item-top-to-text-compact-large:12px; - --spectrum-tab-item-bottom-to-text-compact-large:14px; - --spectrum-tab-item-top-to-text-compact-extra-large:15px; - --spectrum-tab-item-bottom-to-text-compact-extra-large:17px; - --spectrum-tab-item-top-to-workflow-icon-small:15px; - --spectrum-tab-item-top-to-workflow-icon-medium:19px; - --spectrum-tab-item-top-to-workflow-icon-large:23px; - --spectrum-tab-item-top-to-workflow-icon-extra-large:26px; - --spectrum-tab-item-top-to-workflow-icon-compact-small:5px; - --spectrum-tab-item-top-to-workflow-icon-compact-medium:9px; - --spectrum-tab-item-top-to-workflow-icon-compact-large:13px; - --spectrum-tab-item-top-to-workflow-icon-compact-extra-large:16px; - --spectrum-tab-item-focus-indicator-gap-small:9px; - --spectrum-tab-item-focus-indicator-gap-medium:10px; - --spectrum-tab-item-focus-indicator-gap-large:11px; - --spectrum-tab-item-focus-indicator-gap-extra-large:12px; - --spectrum-side-navigation-width:240px; - --spectrum-side-navigation-minimum-width:200px; - --spectrum-side-navigation-maximum-width:300px; - --spectrum-side-navigation-second-level-edge-to-text:30px; - --spectrum-side-navigation-third-level-edge-to-text:45px; - --spectrum-side-navigation-with-icon-second-level-edge-to-text:62px; - --spectrum-side-navigation-with-icon-third-level-edge-to-text:77px; - --spectrum-side-navigation-item-to-item:5px; - --spectrum-side-navigation-item-to-header:30px; - --spectrum-side-navigation-header-to-item:10px; - --spectrum-side-navigation-bottom-to-text:10px; - --spectrum-tray-top-to-content-area:5px; - --spectrum-accordion-top-to-text-spacious-small:12px; - --spectrum-text-to-visual-50:8px; - --spectrum-text-to-visual-75:9px; - --spectrum-text-to-visual-100:10px; - --spectrum-text-to-visual-200:11px; - --spectrum-text-to-visual-300:13px; - --spectrum-text-to-control-75:11px; - --spectrum-text-to-control-100:13px; - --spectrum-text-to-control-200:14px; - --spectrum-text-to-control-300:16px; - --spectrum-component-height-50:26px; - --spectrum-component-height-75:30px; - --spectrum-component-height-100:40px; - --spectrum-component-height-200:50px; - --spectrum-component-height-300:60px; - --spectrum-component-height-400:70px; - --spectrum-component-height-500:80px; - --spectrum-component-pill-edge-to-visual-75:13px; - --spectrum-component-pill-edge-to-visual-100:17px; - --spectrum-component-pill-edge-to-visual-200:22px; - --spectrum-component-pill-edge-to-visual-300:27px; - --spectrum-component-pill-edge-to-visual-only-75:5px; - --spectrum-component-pill-edge-to-visual-only-100:9px; - --spectrum-component-pill-edge-to-visual-only-200:13px; - --spectrum-component-pill-edge-to-visual-only-300:16px; - --spectrum-component-pill-edge-to-text-75:15px; - --spectrum-component-pill-edge-to-text-100:20px; - --spectrum-component-pill-edge-to-text-200:25px; - --spectrum-component-pill-edge-to-text-300:30px; - --spectrum-component-edge-to-visual-50:7px; - --spectrum-component-edge-to-visual-75:9px; - --spectrum-component-edge-to-visual-100:12px; - --spectrum-component-edge-to-visual-200:16px; - --spectrum-component-edge-to-visual-300:19px; - --spectrum-component-edge-to-visual-only-50:4px; - --spectrum-component-edge-to-visual-only-75:5px; - --spectrum-component-edge-to-visual-only-100:9px; - --spectrum-component-edge-to-visual-only-200:13px; - --spectrum-component-edge-to-visual-only-300:16px; - --spectrum-component-edge-to-text-50:10px; - --spectrum-component-edge-to-text-75:11px; - --spectrum-component-edge-to-text-100:15px; - --spectrum-component-edge-to-text-200:19px; - --spectrum-component-edge-to-text-300:22px; - --spectrum-component-top-to-workflow-icon-50:4px; - --spectrum-component-top-to-workflow-icon-75:5px; - --spectrum-component-top-to-workflow-icon-100:9px; - --spectrum-component-top-to-workflow-icon-200:13px; - --spectrum-component-top-to-workflow-icon-300:16px; - --spectrum-component-top-to-text-50:4px; - --spectrum-component-top-to-text-75:5px; - --spectrum-component-top-to-text-100:8px; - --spectrum-component-top-to-text-200:12px; - --spectrum-component-top-to-text-300:15px; - --spectrum-component-bottom-to-text-50:6px; - --spectrum-component-bottom-to-text-75:6px; - --spectrum-component-bottom-to-text-100:11px; - --spectrum-component-bottom-to-text-200:14px; - --spectrum-component-bottom-to-text-300:18px; - --spectrum-component-to-menu-small:7px; - --spectrum-component-to-menu-medium:8px; - --spectrum-component-to-menu-large:9px; - --spectrum-component-to-menu-extra-large:10px; - --spectrum-field-edge-to-disclosure-icon-75:9px; - --spectrum-field-edge-to-disclosure-icon-100:13px; - --spectrum-field-edge-to-disclosure-icon-200:17px; - --spectrum-field-edge-to-disclosure-icon-300:22px; - --spectrum-field-end-edge-to-disclosure-icon-75:9px; - --spectrum-field-end-edge-to-disclosure-icon-100:13px; - --spectrum-field-end-edge-to-disclosure-icon-200:17px; - --spectrum-field-end-edge-to-disclosure-icon-300:22px; - --spectrum-field-top-to-disclosure-icon-75:9px; - --spectrum-field-top-to-disclosure-icon-100:13px; - --spectrum-field-top-to-disclosure-icon-200:17px; - --spectrum-field-top-to-disclosure-icon-300:22px; - --spectrum-field-top-to-alert-icon-small:5px; - --spectrum-field-top-to-alert-icon-medium:9px; - --spectrum-field-top-to-alert-icon-large:13px; - --spectrum-field-top-to-alert-icon-extra-large:16px; - --spectrum-field-top-to-validation-icon-small:9px; - --spectrum-field-top-to-validation-icon-medium:13px; - --spectrum-field-top-to-validation-icon-large:17px; - --spectrum-field-top-to-validation-icon-extra-large:22px; - --spectrum-field-top-to-progress-circle-small:7px; - --spectrum-field-top-to-progress-circle-medium:12px; - --spectrum-field-top-to-progress-circle-large:17px; - --spectrum-field-top-to-progress-circle-extra-large:22px; - --spectrum-field-edge-to-alert-icon-small:11px; - --spectrum-field-edge-to-alert-icon-medium:15px; - --spectrum-field-edge-to-alert-icon-large:19px; - --spectrum-field-edge-to-alert-icon-extra-large:22px; - --spectrum-field-edge-to-validation-icon-small:11px; - --spectrum-field-edge-to-validation-icon-medium:15px; - --spectrum-field-edge-to-validation-icon-large:19px; - --spectrum-field-edge-to-validation-icon-extra-large:22px; - --spectrum-field-text-to-alert-icon-small:10px; - --spectrum-field-text-to-alert-icon-medium:15px; - --spectrum-field-text-to-alert-icon-large:19px; - --spectrum-field-text-to-alert-icon-extra-large:22px; - --spectrum-field-text-to-validation-icon-small:10px; - --spectrum-field-text-to-validation-icon-medium:15px; - --spectrum-field-text-to-validation-icon-large:19px; - --spectrum-field-text-to-validation-icon-extra-large:22px; - --spectrum-field-width:240px; - --spectrum-character-count-to-field-quiet-small:-4px; - --spectrum-character-count-to-field-quiet-medium:-4px; - --spectrum-character-count-to-field-quiet-large:-4px; - --spectrum-character-count-to-field-quiet-extra-large:-5px; - --spectrum-side-label-character-count-to-field:15px; - --spectrum-side-label-character-count-top-margin-small:5px; - --spectrum-side-label-character-count-top-margin-medium:10px; - --spectrum-side-label-character-count-top-margin-large:14px; - --spectrum-side-label-character-count-top-margin-extra-large:18px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-small:9px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-medium:13px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-large:17px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large:22px; - --spectrum-navigational-indicator-top-to-back-icon-small:7px; - --spectrum-navigational-indicator-top-to-back-icon-medium:12px; - --spectrum-navigational-indicator-top-to-back-icon-large:16px; - --spectrum-navigational-indicator-top-to-back-icon-extra-large:19px; - --spectrum-color-control-track-width:30px; - --spectrum-font-size-50:13px; - --spectrum-font-size-75:15px; - --spectrum-font-size-100:17px; - --spectrum-font-size-200:19px; - --spectrum-font-size-300:22px; - --spectrum-font-size-400:24px; - --spectrum-font-size-500:27px; - --spectrum-font-size-600:31px; - --spectrum-font-size-700:34px; - --spectrum-font-size-800:39px; - --spectrum-font-size-900:44px; - --spectrum-font-size-1000:49px; - --spectrum-font-size-1100:55px; - --spectrum-font-size-1200:62px; - --spectrum-font-size-1300:70px; -} diff --git a/tokens/dist/css/light-vars.css b/tokens/dist/css/light-vars.css deleted file mode 100644 index 5411d477c5f..00000000000 --- a/tokens/dist/css/light-vars.css +++ /dev/null @@ -1,472 +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 - * - * 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--light,.spectrum--lightest{ - --spectrum-overlay-opacity:0.4; - --spectrum-drop-shadow-color-rgb:0, 0, 0; - --spectrum-drop-shadow-color-opacity:0.15; - --spectrum-drop-shadow-color:rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color:var(--spectrum-gray-200); - --spectrum-background-layer-1-color:var(--spectrum-gray-100); - --spectrum-background-layer-2-color:var(--spectrum-gray-50); - --spectrum-neutral-background-color-default:var(--spectrum-gray-800); - --spectrum-neutral-background-color-hover:var(--spectrum-gray-900); - --spectrum-neutral-background-color-down:var(--spectrum-gray-900); - --spectrum-neutral-background-color-key-focus:var(--spectrum-gray-900); - --spectrum-neutral-subdued-background-color-default:var(--spectrum-gray-600); - --spectrum-neutral-subdued-background-color-hover:var(--spectrum-gray-700); - --spectrum-neutral-subdued-background-color-down:var(--spectrum-gray-800); - --spectrum-neutral-subdued-background-color-key-focus:var(--spectrum-gray-700); - --spectrum-accent-background-color-default:var(--spectrum-accent-color-900); - --spectrum-accent-background-color-hover:var(--spectrum-accent-color-1000); - --spectrum-accent-background-color-down:var(--spectrum-accent-color-1100); - --spectrum-accent-background-color-key-focus:var(--spectrum-accent-color-1000); - --spectrum-informative-background-color-default:var(--spectrum-informative-color-900); - --spectrum-informative-background-color-hover:var(--spectrum-informative-color-1000); - --spectrum-informative-background-color-down:var(--spectrum-informative-color-1100); - --spectrum-informative-background-color-key-focus:var(--spectrum-informative-color-1000); - --spectrum-negative-background-color-default:var(--spectrum-negative-color-900); - --spectrum-negative-background-color-hover:var(--spectrum-negative-color-1000); - --spectrum-negative-background-color-down:var(--spectrum-negative-color-1100); - --spectrum-negative-background-color-key-focus:var(--spectrum-negative-color-1000); - --spectrum-positive-background-color-default:var(--spectrum-positive-color-900); - --spectrum-positive-background-color-hover:var(--spectrum-positive-color-1000); - --spectrum-positive-background-color-down:var(--spectrum-positive-color-1100); - --spectrum-positive-background-color-key-focus:var(--spectrum-positive-color-1000); - --spectrum-notice-background-color-default:var(--spectrum-notice-color-600); - --spectrum-gray-background-color-default:var(--spectrum-gray-700); - --spectrum-red-background-color-default:var(--spectrum-red-900); - --spectrum-orange-background-color-default:var(--spectrum-orange-600); - --spectrum-yellow-background-color-default:var(--spectrum-yellow-400); - --spectrum-chartreuse-background-color-default:var(--spectrum-chartreuse-500); - --spectrum-celery-background-color-default:var(--spectrum-celery-600); - --spectrum-green-background-color-default:var(--spectrum-green-900); - --spectrum-seafoam-background-color-default:var(--spectrum-seafoam-900); - --spectrum-cyan-background-color-default:var(--spectrum-cyan-900); - --spectrum-blue-background-color-default:var(--spectrum-blue-900); - --spectrum-indigo-background-color-default:var(--spectrum-indigo-900); - --spectrum-purple-background-color-default:var(--spectrum-purple-900); - --spectrum-fuchsia-background-color-default:var(--spectrum-fuchsia-900); - --spectrum-magenta-background-color-default:var(--spectrum-magenta-900); - --spectrum-neutral-visual-color:var(--spectrum-gray-500); - --spectrum-accent-visual-color:var(--spectrum-accent-color-800); - --spectrum-informative-visual-color:var(--spectrum-informative-color-800); - --spectrum-negative-visual-color:var(--spectrum-negative-color-800); - --spectrum-notice-visual-color:var(--spectrum-notice-color-700); - --spectrum-positive-visual-color:var(--spectrum-positive-color-700); - --spectrum-gray-visual-color:var(--spectrum-gray-500); - --spectrum-red-visual-color:var(--spectrum-red-800); - --spectrum-orange-visual-color:var(--spectrum-orange-700); - --spectrum-yellow-visual-color:var(--spectrum-yellow-600); - --spectrum-chartreuse-visual-color:var(--spectrum-chartreuse-600); - --spectrum-celery-visual-color:var(--spectrum-celery-700); - --spectrum-green-visual-color:var(--spectrum-green-700); - --spectrum-seafoam-visual-color:var(--spectrum-seafoam-700); - --spectrum-cyan-visual-color:var(--spectrum-cyan-600); - --spectrum-blue-visual-color:var(--spectrum-blue-800); - --spectrum-indigo-visual-color:var(--spectrum-indigo-800); - --spectrum-purple-visual-color:var(--spectrum-purple-800); - --spectrum-fuchsia-visual-color:var(--spectrum-fuchsia-800); - --spectrum-magenta-visual-color:var(--spectrum-magenta-800); - --spectrum-opacity-checkerboard-square-dark:var(--spectrum-gray-200); - --spectrum-gray-50-rgb:255, 255, 255; - --spectrum-gray-50:rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb:253, 253, 253; - --spectrum-gray-75:rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb:248, 248, 248; - --spectrum-gray-100:rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb:230, 230, 230; - --spectrum-gray-200:rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb:213, 213, 213; - --spectrum-gray-300:rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb:177, 177, 177; - --spectrum-gray-400:rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb:144, 144, 144; - --spectrum-gray-500:rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb:109, 109, 109; - --spectrum-gray-600:rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb:70, 70, 70; - --spectrum-gray-700:rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb:34, 34, 34; - --spectrum-gray-800:rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb:0, 0, 0; - --spectrum-gray-900:rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb:224, 242, 255; - --spectrum-blue-100:rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb:202, 232, 255; - --spectrum-blue-200:rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb:181, 222, 255; - --spectrum-blue-300:rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb:150, 206, 253; - --spectrum-blue-400:rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb:120, 187, 250; - --spectrum-blue-500:rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb:89, 167, 246; - --spectrum-blue-600:rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb:56, 146, 243; - --spectrum-blue-700:rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb:20, 122, 243; - --spectrum-blue-800:rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb:2, 101, 220; - --spectrum-blue-900:rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb:0, 84, 182; - --spectrum-blue-1000:rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb:0, 68, 145; - --spectrum-blue-1100:rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb:0, 53, 113; - --spectrum-blue-1200:rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb:0, 39, 84; - --spectrum-blue-1300:rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb:0, 28, 60; - --spectrum-blue-1400:rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb:255, 235, 231; - --spectrum-red-100:rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb:255, 221, 214; - --spectrum-red-200:rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb:255, 205, 195; - --spectrum-red-300:rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb:255, 183, 169; - --spectrum-red-400:rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb:255, 155, 136; - --spectrum-red-500:rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb:255, 124, 101; - --spectrum-red-600:rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb:247, 92, 70; - --spectrum-red-700:rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb:234, 56, 41; - --spectrum-red-800:rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb:211, 21, 16; - --spectrum-red-900:rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb:180, 0, 0; - --spectrum-red-1000:rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb:147, 0, 0; - --spectrum-red-1100:rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb:116, 0, 0; - --spectrum-red-1200:rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb:89, 0, 0; - --spectrum-red-1300:rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb:67, 0, 0; - --spectrum-red-1400:rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb:255, 236, 204; - --spectrum-orange-100:rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb:255, 223, 173; - --spectrum-orange-200:rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb:253, 210, 145; - --spectrum-orange-300:rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb:255, 187, 99; - --spectrum-orange-400:rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb:255, 160, 55; - --spectrum-orange-500:rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb:246, 133, 17; - --spectrum-orange-600:rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb:228, 111, 0; - --spectrum-orange-700:rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb:203, 93, 0; - --spectrum-orange-800:rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb:177, 76, 0; - --spectrum-orange-900:rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb:149, 61, 0; - --spectrum-orange-1000:rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb:122, 47, 0; - --spectrum-orange-1100:rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb:97, 35, 0; - --spectrum-orange-1200:rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb:73, 25, 1; - --spectrum-orange-1300:rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb:53, 18, 1; - --spectrum-orange-1400:rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb:251, 241, 152; - --spectrum-yellow-100:rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb:248, 231, 80; - --spectrum-yellow-200:rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb:248, 217, 4; - --spectrum-yellow-300:rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb:232, 198, 0; - --spectrum-yellow-400:rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb:215, 179, 0; - --spectrum-yellow-500:rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb:196, 159, 0; - --spectrum-yellow-600:rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb:176, 140, 0; - --spectrum-yellow-700:rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb:155, 120, 0; - --spectrum-yellow-800:rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb:133, 102, 0; - --spectrum-yellow-900:rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb:112, 83, 0; - --spectrum-yellow-1000:rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb:91, 67, 0; - --spectrum-yellow-1100:rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb:72, 51, 0; - --spectrum-yellow-1200:rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb:54, 37, 0; - --spectrum-yellow-1300:rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb:40, 26, 0; - --spectrum-yellow-1400:rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb:219, 252, 110; - --spectrum-chartreuse-100:rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb:203, 244, 67; - --spectrum-chartreuse-200:rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb:188, 233, 42; - --spectrum-chartreuse-300:rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb:170, 216, 22; - --spectrum-chartreuse-400:rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb:152, 197, 10; - --spectrum-chartreuse-500:rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb:135, 177, 3; - --spectrum-chartreuse-600:rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb:118, 156, 0; - --spectrum-chartreuse-700:rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb:103, 136, 0; - --spectrum-chartreuse-800:rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb:87, 116, 0; - --spectrum-chartreuse-900:rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb:72, 96, 0; - --spectrum-chartreuse-1000:rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb:58, 77, 0; - --spectrum-chartreuse-1100:rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb:44, 59, 0; - --spectrum-chartreuse-1200:rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb:33, 44, 0; - --spectrum-chartreuse-1300:rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb:24, 31, 0; - --spectrum-chartreuse-1400:rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb:205, 252, 191; - --spectrum-celery-100:rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb:174, 246, 157; - --spectrum-celery-200:rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb:150, 238, 133; - --spectrum-celery-300:rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb:114, 224, 106; - --spectrum-celery-400:rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb:78, 207, 80; - --spectrum-celery-500:rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb:39, 187, 54; - --spectrum-celery-600:rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb:7, 167, 33; - --spectrum-celery-700:rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb:0, 145, 18; - --spectrum-celery-800:rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb:0, 124, 15; - --spectrum-celery-900:rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb:0, 103, 15; - --spectrum-celery-1000:rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb:0, 83, 13; - --spectrum-celery-1100:rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb:0, 64, 10; - --spectrum-celery-1200:rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb:0, 48, 7; - --spectrum-celery-1300:rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb:0, 34, 5; - --spectrum-celery-1400:rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb:206, 248, 224; - --spectrum-green-100:rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb:173, 244, 206; - --spectrum-green-200:rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb:137, 236, 188; - --spectrum-green-300:rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb:103, 222, 168; - --spectrum-green-400:rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb:73, 204, 147; - --spectrum-green-500:rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb:47, 184, 128; - --spectrum-green-600:rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb:21, 164, 110; - --spectrum-green-700:rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb:0, 143, 93; - --spectrum-green-800:rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb:0, 122, 77; - --spectrum-green-900:rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb:0, 101, 62; - --spectrum-green-1000:rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb:0, 81, 50; - --spectrum-green-1100:rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb:5, 63, 39; - --spectrum-green-1200:rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb:10, 46, 29; - --spectrum-green-1300:rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb:10, 32, 21; - --spectrum-green-1400:rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb:206, 247, 243; - --spectrum-seafoam-100:rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb:170, 241, 234; - --spectrum-seafoam-200:rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb:140, 233, 226; - --spectrum-seafoam-300:rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb:101, 218, 210; - --spectrum-seafoam-400:rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb:63, 201, 193; - --spectrum-seafoam-500:rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb:15, 181, 174; - --spectrum-seafoam-600:rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb:0, 161, 154; - --spectrum-seafoam-700:rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb:0, 140, 135; - --spectrum-seafoam-800:rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb:0, 119, 114; - --spectrum-seafoam-900:rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb:0, 99, 95; - --spectrum-seafoam-1000:rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb:12, 79, 76; - --spectrum-seafoam-1100:rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb:18, 60, 58; - --spectrum-seafoam-1200:rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb:18, 44, 43; - --spectrum-seafoam-1300:rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb:15, 31, 30; - --spectrum-seafoam-1400:rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb:197, 248, 255; - --spectrum-cyan-100:rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb:164, 240, 255; - --spectrum-cyan-200:rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb:136, 231, 250; - --spectrum-cyan-300:rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb:96, 216, 243; - --spectrum-cyan-400:rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb:51, 197, 232; - --spectrum-cyan-500:rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb:18, 176, 218; - --spectrum-cyan-600:rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb:1, 156, 200; - --spectrum-cyan-700:rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb:0, 134, 180; - --spectrum-cyan-800:rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb:0, 113, 159; - --spectrum-cyan-900:rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb:0, 93, 137; - --spectrum-cyan-1000:rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb:0, 74, 115; - --spectrum-cyan-1100:rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb:0, 57, 93; - --spectrum-cyan-1200:rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb:0, 42, 70; - --spectrum-cyan-1300:rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb:0, 30, 51; - --spectrum-cyan-1400:rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb:237, 238, 255; - --spectrum-indigo-100:rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb:224, 226, 255; - --spectrum-indigo-200:rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb:211, 213, 255; - --spectrum-indigo-300:rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb:193, 196, 255; - --spectrum-indigo-400:rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb:172, 175, 255; - --spectrum-indigo-500:rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb:149, 153, 255; - --spectrum-indigo-600:rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb:126, 132, 252; - --spectrum-indigo-700:rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb:104, 109, 244; - --spectrum-indigo-800:rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb:82, 88, 228; - --spectrum-indigo-900:rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb:64, 70, 202; - --spectrum-indigo-1000:rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb:50, 54, 168; - --spectrum-indigo-1100:rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb:38, 41, 134; - --spectrum-indigo-1200:rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb:27, 30, 100; - --spectrum-indigo-1300:rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb:20, 22, 72; - --spectrum-indigo-1400:rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb:246, 235, 255; - --spectrum-purple-100:rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb:238, 221, 255; - --spectrum-purple-200:rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb:230, 208, 255; - --spectrum-purple-300:rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb:219, 187, 254; - --spectrum-purple-400:rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb:204, 164, 253; - --spectrum-purple-500:rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb:189, 139, 252; - --spectrum-purple-600:rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb:174, 114, 249; - --spectrum-purple-700:rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb:157, 87, 244; - --spectrum-purple-800:rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb:137, 61, 231; - --spectrum-purple-900:rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb:115, 38, 211; - --spectrum-purple-1000:rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb:93, 19, 183; - --spectrum-purple-1100:rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb:71, 12, 148; - --spectrum-purple-1200:rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb:51, 16, 106; - --spectrum-purple-1300:rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb:35, 15, 73; - --spectrum-purple-1400:rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb:255, 233, 252; - --spectrum-fuchsia-100:rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb:255, 218, 250; - --spectrum-fuchsia-200:rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb:254, 199, 248; - --spectrum-fuchsia-300:rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb:251, 174, 246; - --spectrum-fuchsia-400:rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb:245, 146, 243; - --spectrum-fuchsia-500:rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb:237, 116, 237; - --spectrum-fuchsia-600:rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb:224, 85, 226; - --spectrum-fuchsia-700:rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb:205, 58, 206; - --spectrum-fuchsia-800:rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb:182, 34, 183; - --spectrum-fuchsia-900:rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb:157, 3, 158; - --spectrum-fuchsia-1000:rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb:128, 0, 129; - --spectrum-fuchsia-1100:rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb:100, 6, 100; - --spectrum-fuchsia-1200:rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb:71, 14, 70; - --spectrum-fuchsia-1300:rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb:50, 13, 49; - --spectrum-fuchsia-1400:rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb:255, 234, 241; - --spectrum-magenta-100:rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb:255, 220, 232; - --spectrum-magenta-200:rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb:255, 202, 221; - --spectrum-magenta-300:rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb:255, 178, 206; - --spectrum-magenta-400:rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb:255, 149, 189; - --spectrum-magenta-500:rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb:250, 119, 170; - --spectrum-magenta-600:rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb:239, 90, 152; - --spectrum-magenta-700:rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb:222, 61, 130; - --spectrum-magenta-800:rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb:200, 34, 105; - --spectrum-magenta-900:rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb:173, 9, 85; - --spectrum-magenta-1000:rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb:142, 0, 69; - --spectrum-magenta-1100:rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb:112, 0, 55; - --spectrum-magenta-1200:rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb:84, 3, 42; - --spectrum-magenta-1300:rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb:60, 6, 29; - --spectrum-magenta-1400:rgba(var(--spectrum-magenta-1400-rgb)); - --spectrum-icon-color-blue-primary-default:var(--spectrum-blue-900); - --spectrum-icon-color-green-primary-default:var(--spectrum-green-900); - --spectrum-icon-color-red-primary-default:var(--spectrum-red-900); - --spectrum-icon-color-yellow-primary-default:var(--spectrum-yellow-400); -} diff --git a/tokens/dist/css/medium-vars.css b/tokens/dist/css/medium-vars.css deleted file mode 100644 index 9756afa3545..00000000000 --- a/tokens/dist/css/medium-vars.css +++ /dev/null @@ -1,504 +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 - * - * 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--medium{ - --spectrum-workflow-icon-size-50:14px; - --spectrum-workflow-icon-size-75:16px; - --spectrum-workflow-icon-size-100:18px; - --spectrum-workflow-icon-size-200:20px; - --spectrum-workflow-icon-size-300:22px; - --spectrum-arrow-icon-size-75:10px; - --spectrum-arrow-icon-size-100:10px; - --spectrum-arrow-icon-size-200:12px; - --spectrum-arrow-icon-size-300:14px; - --spectrum-arrow-icon-size-400:16px; - --spectrum-arrow-icon-size-500:18px; - --spectrum-arrow-icon-size-600:20px; - --spectrum-asterisk-icon-size-100:8px; - --spectrum-asterisk-icon-size-200:10px; - --spectrum-asterisk-icon-size-300:10px; - --spectrum-checkmark-icon-size-50:10px; - --spectrum-checkmark-icon-size-75:10px; - --spectrum-checkmark-icon-size-100:10px; - --spectrum-checkmark-icon-size-200:12px; - --spectrum-checkmark-icon-size-300:14px; - --spectrum-checkmark-icon-size-400:16px; - --spectrum-checkmark-icon-size-500:16px; - --spectrum-checkmark-icon-size-600:18px; - --spectrum-chevron-icon-size-50:6px; - --spectrum-chevron-icon-size-75:10px; - --spectrum-chevron-icon-size-100:10px; - --spectrum-chevron-icon-size-200:12px; - --spectrum-chevron-icon-size-300:14px; - --spectrum-chevron-icon-size-400:16px; - --spectrum-chevron-icon-size-500:16px; - --spectrum-chevron-icon-size-600:18px; - --spectrum-corner-triangle-icon-size-75:5px; - --spectrum-corner-triangle-icon-size-100:5px; - --spectrum-corner-triangle-icon-size-200:6px; - --spectrum-corner-triangle-icon-size-300:7px; - --spectrum-cross-icon-size-75:8px; - --spectrum-cross-icon-size-100:8px; - --spectrum-cross-icon-size-200:10px; - --spectrum-cross-icon-size-300:12px; - --spectrum-cross-icon-size-400:12px; - --spectrum-cross-icon-size-500:14px; - --spectrum-cross-icon-size-600:16px; - --spectrum-dash-icon-size-50:8px; - --spectrum-dash-icon-size-75:8px; - --spectrum-dash-icon-size-100:10px; - --spectrum-dash-icon-size-200:12px; - --spectrum-dash-icon-size-300:12px; - --spectrum-dash-icon-size-400:14px; - --spectrum-dash-icon-size-500:16px; - --spectrum-dash-icon-size-600:18px; - --spectrum-field-label-text-to-asterisk-small:4px; - --spectrum-field-label-text-to-asterisk-medium:4px; - --spectrum-field-label-text-to-asterisk-large:5px; - --spectrum-field-label-text-to-asterisk-extra-large:5px; - --spectrum-field-label-top-to-asterisk-small:8px; - --spectrum-field-label-top-to-asterisk-medium:12px; - --spectrum-field-label-top-to-asterisk-large:15px; - --spectrum-field-label-top-to-asterisk-extra-large:19px; - --spectrum-field-label-top-margin-medium:4px; - --spectrum-field-label-top-margin-large:5px; - --spectrum-field-label-top-margin-extra-large:5px; - --spectrum-field-label-to-component-quiet-small:-8px; - --spectrum-field-label-to-component-quiet-medium:-8px; - --spectrum-field-label-to-component-quiet-large:-12px; - --spectrum-field-label-to-component-quiet-extra-large:-15px; - --spectrum-help-text-top-to-workflow-icon-small:4px; - --spectrum-help-text-top-to-workflow-icon-medium:3px; - --spectrum-help-text-top-to-workflow-icon-large:6px; - --spectrum-help-text-top-to-workflow-icon-extra-large:9px; - --spectrum-status-light-dot-size-medium:8px; - --spectrum-status-light-dot-size-large:10px; - --spectrum-status-light-dot-size-extra-large:10px; - --spectrum-status-light-top-to-dot-small:8px; - --spectrum-status-light-top-to-dot-medium:12px; - --spectrum-status-light-top-to-dot-large:15px; - --spectrum-status-light-top-to-dot-extra-large:19px; - --spectrum-action-button-edge-to-hold-icon-medium:4px; - --spectrum-action-button-edge-to-hold-icon-large:5px; - --spectrum-action-button-edge-to-hold-icon-extra-large:6px; - --spectrum-tooltip-tip-width:8px; - --spectrum-tooltip-tip-height:4px; - --spectrum-tooltip-maximum-width:160px; - --spectrum-progress-circle-size-small:16px; - --spectrum-progress-circle-size-medium:32px; - --spectrum-progress-circle-size-large:64px; - --spectrum-progress-circle-thickness-small:2px; - --spectrum-progress-circle-thickness-medium:3px; - --spectrum-progress-circle-thickness-large:4px; - --spectrum-toast-height:48px; - --spectrum-toast-maximum-width:336px; - --spectrum-toast-top-to-workflow-icon:15px; - --spectrum-toast-top-to-text:14px; - --spectrum-toast-bottom-to-text:17px; - --spectrum-action-bar-height:48px; - --spectrum-action-bar-top-to-item-counter:14px; - --spectrum-swatch-size-extra-small:16px; - --spectrum-swatch-size-small:24px; - --spectrum-swatch-size-medium:32px; - --spectrum-swatch-size-large:40px; - --spectrum-progress-bar-thickness-small:4px; - --spectrum-progress-bar-thickness-medium:6px; - --spectrum-progress-bar-thickness-large:8px; - --spectrum-progress-bar-thickness-extra-large:10px; - --spectrum-meter-width:192px; - --spectrum-meter-thickness-small:4px; - --spectrum-meter-thickness-large:6px; - --spectrum-tag-top-to-avatar-small:4px; - --spectrum-tag-top-to-avatar-medium:6px; - --spectrum-tag-top-to-avatar-large:9px; - --spectrum-tag-top-to-cross-icon-small:8px; - --spectrum-tag-top-to-cross-icon-medium:12px; - --spectrum-tag-top-to-cross-icon-large:15px; - --spectrum-popover-top-to-content-area:4px; - --spectrum-menu-item-edge-to-content-not-selected-small:28px; - --spectrum-menu-item-edge-to-content-not-selected-medium:32px; - --spectrum-menu-item-edge-to-content-not-selected-large:38px; - --spectrum-menu-item-edge-to-content-not-selected-extra-large:45px; - --spectrum-menu-item-top-to-disclosure-icon-small:7px; - --spectrum-menu-item-top-to-disclosure-icon-medium:11px; - --spectrum-menu-item-top-to-disclosure-icon-large:14px; - --spectrum-menu-item-top-to-disclosure-icon-extra-large:17px; - --spectrum-menu-item-top-to-selected-icon-small:7px; - --spectrum-menu-item-top-to-selected-icon-medium:11px; - --spectrum-menu-item-top-to-selected-icon-large:14px; - --spectrum-menu-item-top-to-selected-icon-extra-large:17px; - --spectrum-slider-control-to-field-label-small:5px; - --spectrum-slider-control-to-field-label-medium:8px; - --spectrum-slider-control-to-field-label-large:11px; - --spectrum-slider-control-to-field-label-extra-large:14px; - --spectrum-picker-visual-to-disclosure-icon-small:7px; - --spectrum-picker-visual-to-disclosure-icon-medium:8px; - --spectrum-picker-visual-to-disclosure-icon-large:9px; - --spectrum-picker-visual-to-disclosure-icon-extra-large:10px; - --spectrum-text-area-minimum-width:112px; - --spectrum-text-area-minimum-height:56px; - --spectrum-combo-box-visual-to-field-button-small:7px; - --spectrum-combo-box-visual-to-field-button-medium:8px; - --spectrum-combo-box-visual-to-field-button-large:9px; - --spectrum-combo-box-visual-to-field-button-extra-large:10px; - --spectrum-thumbnail-size-50:16px; - --spectrum-thumbnail-size-75:18px; - --spectrum-thumbnail-size-100:20px; - --spectrum-thumbnail-size-200:22px; - --spectrum-thumbnail-size-300:26px; - --spectrum-thumbnail-size-400:28px; - --spectrum-thumbnail-size-500:32px; - --spectrum-thumbnail-size-600:36px; - --spectrum-thumbnail-size-700:40px; - --spectrum-thumbnail-size-800:44px; - --spectrum-thumbnail-size-900:50px; - --spectrum-thumbnail-size-1000:56px; - --spectrum-alert-dialog-title-size:var(--spectrum-heading-size-s); - --spectrum-alert-dialog-description-size:var(--spectrum-body-size-s); - --spectrum-opacity-checkerboard-square-size:8px; - --spectrum-contextual-help-title-size:var(--spectrum-heading-size-xs); - --spectrum-contextual-help-body-size:var(--spectrum-body-size-s); - --spectrum-breadcrumbs-height-multiline:72px; - --spectrum-breadcrumbs-top-to-text:13px; - --spectrum-breadcrumbs-top-to-text-compact:11px; - --spectrum-breadcrumbs-top-to-text-multiline:12px; - --spectrum-breadcrumbs-bottom-to-text:15px; - --spectrum-breadcrumbs-bottom-to-text-compact:12px; - --spectrum-breadcrumbs-bottom-to-text-multiline:9px; - --spectrum-breadcrumbs-start-edge-to-text:8px; - --spectrum-breadcrumbs-top-text-to-bottom-text:9px; - --spectrum-breadcrumbs-top-to-separator-icon:19px; - --spectrum-breadcrumbs-top-to-separator-icon-compact:15px; - --spectrum-breadcrumbs-top-to-separator-icon-multiline:15px; - --spectrum-breadcrumbs-separator-icon-to-bottom-text-multiline:11px; - --spectrum-breadcrumbs-top-to-truncated-menu:8px; - --spectrum-breadcrumbs-top-to-truncated-menu-compact:4px; - --spectrum-avatar-size-50:16px; - --spectrum-avatar-size-75:18px; - --spectrum-avatar-size-100:20px; - --spectrum-avatar-size-200:22px; - --spectrum-avatar-size-300:26px; - --spectrum-avatar-size-400:28px; - --spectrum-avatar-size-500:32px; - --spectrum-avatar-size-600:36px; - --spectrum-avatar-size-700:40px; - --spectrum-alert-banner-minimum-height:48px; - --spectrum-alert-banner-width:832px; - --spectrum-alert-banner-top-to-workflow-icon:15px; - --spectrum-alert-banner-top-to-text:14px; - --spectrum-alert-banner-bottom-to-text:17px; - --spectrum-rating-indicator-width:18px; - --spectrum-rating-indicator-to-icon:4px; - --spectrum-color-area-width:192px; - --spectrum-color-area-minimum-width:64px; - --spectrum-color-area-height:192px; - --spectrum-color-area-minimum-height:64px; - --spectrum-color-wheel-width:192px; - --spectrum-color-wheel-minimum-width:175px; - --spectrum-color-slider-length:192px; - --spectrum-color-slider-minimum-length:80px; - --spectrum-illustrated-message-title-size:var(--spectrum-heading-size-m); - --spectrum-illustrated-message-cjk-title-size:var(--spectrum-heading-cjk-size-m); - --spectrum-illustrated-message-body-size:var(--spectrum-body-size-s); - --spectrum-coach-mark-width:296px; - --spectrum-coach-mark-minimum-width:296px; - --spectrum-coach-mark-maximum-width:380px; - --spectrum-coach-mark-edge-to-content:var(--spectrum-spacing-400); - --spectrum-coach-mark-pagination-text-to-bottom-edge:33px; - --spectrum-coach-mark-media-height:222px; - --spectrum-coach-mark-media-minimum-height:166px; - --spectrum-coach-mark-title-size:var(--spectrum-heading-size-xs); - --spectrum-coach-mark-body-size:var(--spectrum-body-size-s); - --spectrum-coach-mark-pagination-body-size:var(--spectrum-body-size-s); - --spectrum-accordion-top-to-text-regular-small:5px; - --spectrum-accordion-small-top-to-text-spacious:9px; - --spectrum-accordion-top-to-text-regular-medium:8px; - --spectrum-accordion-top-to-text-spacious-medium:12px; - --spectrum-accordion-top-to-text-compact-large:4px; - --spectrum-accordion-top-to-text-regular-large:9px; - --spectrum-accordion-top-to-text-spacious-large:12px; - --spectrum-accordion-top-to-text-compact-extra-large:5px; - --spectrum-accordion-top-to-text-regular-extra-large:9px; - --spectrum-accordion-top-to-text-spacious-extra-large:13px; - --spectrum-accordion-bottom-to-text-compact-small:2px; - --spectrum-accordion-bottom-to-text-regular-small:7px; - --spectrum-accordion-bottom-to-text-spacious-small:11px; - --spectrum-accordion-bottom-to-text-compact-medium:5px; - --spectrum-accordion-bottom-to-text-regular-medium:9px; - --spectrum-accordion-bottom-to-text-spacious-medium:13px; - --spectrum-accordion-bottom-to-text-compact-large:8px; - --spectrum-accordion-bottom-to-text-regular-large:11px; - --spectrum-accordion-bottom-to-text-spacious-large:16px; - --spectrum-accordion-bottom-to-text-compact-extra-large:8px; - --spectrum-accordion-bottom-to-text-regular-extra-large:12px; - --spectrum-accordion-bottom-to-text-spacious-extra-large:16px; - --spectrum-accordion-minimum-width:200px; - --spectrum-accordion-content-area-top-to-content:8px; - --spectrum-accordion-content-area-bottom-to-content:16px; - --spectrum-color-handle-size:16px; - --spectrum-color-handle-size-key-focus:32px; - --spectrum-table-column-header-row-top-to-text-small:8px; - --spectrum-table-column-header-row-top-to-text-medium:7px; - --spectrum-table-column-header-row-top-to-text-large:10px; - --spectrum-table-column-header-row-top-to-text-extra-large:13px; - --spectrum-table-column-header-row-bottom-to-text-small:9px; - --spectrum-table-column-header-row-bottom-to-text-medium:8px; - --spectrum-table-column-header-row-bottom-to-text-large:10px; - --spectrum-table-column-header-row-bottom-to-text-extra-large:13px; - --spectrum-table-row-height-small-regular:32px; - --spectrum-table-row-height-medium-regular:40px; - --spectrum-table-row-height-large-regular:48px; - --spectrum-table-row-height-extra-large-regular:56px; - --spectrum-table-row-height-small-spacious:40px; - --spectrum-table-row-height-medium-spacious:48px; - --spectrum-table-row-height-large-spacious:56px; - --spectrum-table-row-height-extra-large-spacious:64px; - --spectrum-table-row-top-to-text-small-regular:8px; - --spectrum-table-row-top-to-text-medium-regular:11px; - --spectrum-table-row-top-to-text-large-regular:14px; - --spectrum-table-row-top-to-text-extra-large-regular:17px; - --spectrum-table-row-bottom-to-text-small-regular:9px; - --spectrum-table-row-bottom-to-text-medium-regular:12px; - --spectrum-table-row-bottom-to-text-large-regular:14px; - --spectrum-table-row-bottom-to-text-extra-large-regular:17px; - --spectrum-table-row-top-to-text-small-spacious:12px; - --spectrum-table-row-top-to-text-medium-spacious:15px; - --spectrum-table-row-top-to-text-large-spacious:18px; - --spectrum-table-row-top-to-text-extra-large-spacious:21px; - --spectrum-table-row-bottom-to-text-small-spacious:13px; - --spectrum-table-row-bottom-to-text-medium-spacious:16px; - --spectrum-table-row-bottom-to-text-large-spacious:18px; - --spectrum-table-row-bottom-to-text-extra-large-spacious:21px; - --spectrum-table-checkbox-to-text:24px; - --spectrum-table-header-row-checkbox-to-top-small:10px; - --spectrum-table-header-row-checkbox-to-top-medium:9px; - --spectrum-table-header-row-checkbox-to-top-large:12px; - --spectrum-table-header-row-checkbox-to-top-extra-large:15px; - --spectrum-table-row-checkbox-to-top-small-compact:6px; - --spectrum-table-row-checkbox-to-top-small-regular:10px; - --spectrum-table-row-checkbox-to-top-small-spacious:14px; - --spectrum-table-row-checkbox-to-top-medium-compact:9px; - --spectrum-table-row-checkbox-to-top-medium-regular:13px; - --spectrum-table-row-checkbox-to-top-medium-spacious:17px; - --spectrum-table-row-checkbox-to-top-large-compact:12px; - --spectrum-table-row-checkbox-to-top-large-regular:16px; - --spectrum-table-row-checkbox-to-top-large-spacious:20px; - --spectrum-table-row-checkbox-to-top-extra-large-compact:15px; - --spectrum-table-row-checkbox-to-top-extra-large-regular:19px; - --spectrum-table-row-checkbox-to-top-extra-large-spacious:23px; - --spectrum-table-section-header-row-height-small:24px; - --spectrum-table-section-header-row-height-medium:32px; - --spectrum-table-section-header-row-height-large:40px; - --spectrum-table-section-header-row-height-extra-large:48px; - --spectrum-table-thumbnail-to-top-minimum-small-compact:4px; - --spectrum-table-thumbnail-to-top-minimum-medium-compact:5px; - --spectrum-table-thumbnail-to-top-minimum-large-compact:7px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-compact:8px; - --spectrum-table-thumbnail-to-top-minimum-small-regular:5px; - --spectrum-table-thumbnail-to-top-minimum-medium-regular:7px; - --spectrum-table-thumbnail-to-top-minimum-large-regular:8px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-regular:8px; - --spectrum-table-thumbnail-to-top-minimum-small-spacious:7px; - --spectrum-table-thumbnail-to-top-minimum-medium-spacious:8px; - --spectrum-table-thumbnail-to-top-minimum-large-spacious:8px; - --spectrum-table-thumbnail-to-top-minimum-extra-large-spacious:10px; - --spectrum-tab-item-to-tab-item-horizontal-small:21px; - --spectrum-tab-item-to-tab-item-horizontal-medium:24px; - --spectrum-tab-item-to-tab-item-horizontal-large:27px; - --spectrum-tab-item-to-tab-item-horizontal-extra-large:30px; - --spectrum-tab-item-to-tab-item-vertical-small:4px; - --spectrum-tab-item-to-tab-item-vertical-medium:4px; - --spectrum-tab-item-to-tab-item-vertical-large:5px; - --spectrum-tab-item-to-tab-item-vertical-extra-large:5px; - --spectrum-tab-item-start-to-edge-small:12px; - --spectrum-tab-item-start-to-edge-medium:12px; - --spectrum-tab-item-start-to-edge-large:13px; - --spectrum-tab-item-start-to-edge-extra-large:13px; - --spectrum-tab-item-top-to-text-small:11px; - --spectrum-tab-item-bottom-to-text-small:12px; - --spectrum-tab-item-top-to-text-medium:14px; - --spectrum-tab-item-bottom-to-text-medium:14px; - --spectrum-tab-item-top-to-text-large:16px; - --spectrum-tab-item-bottom-to-text-large:18px; - --spectrum-tab-item-top-to-text-extra-large:19px; - --spectrum-tab-item-bottom-to-text-extra-large:20px; - --spectrum-tab-item-top-to-text-compact-small:4px; - --spectrum-tab-item-bottom-to-text-compact-small:5px; - --spectrum-tab-item-top-to-text-compact-medium:6px; - --spectrum-tab-item-bottom-to-text-compact-medium:8px; - --spectrum-tab-item-top-to-text-compact-large:10px; - --spectrum-tab-item-bottom-to-text-compact-large:12px; - --spectrum-tab-item-top-to-text-compact-extra-large:12px; - --spectrum-tab-item-bottom-to-text-compact-extra-large:13px; - --spectrum-tab-item-top-to-workflow-icon-small:13px; - --spectrum-tab-item-top-to-workflow-icon-medium:15px; - --spectrum-tab-item-top-to-workflow-icon-large:17px; - --spectrum-tab-item-top-to-workflow-icon-extra-large:19px; - --spectrum-tab-item-top-to-workflow-icon-compact-small:3px; - --spectrum-tab-item-top-to-workflow-icon-compact-medium:7px; - --spectrum-tab-item-top-to-workflow-icon-compact-large:9px; - --spectrum-tab-item-top-to-workflow-icon-compact-extra-large:11px; - --spectrum-tab-item-focus-indicator-gap-small:7px; - --spectrum-tab-item-focus-indicator-gap-medium:8px; - --spectrum-tab-item-focus-indicator-gap-large:9px; - --spectrum-tab-item-focus-indicator-gap-extra-large:10px; - --spectrum-side-navigation-width:192px; - --spectrum-side-navigation-minimum-width:160px; - --spectrum-side-navigation-maximum-width:240px; - --spectrum-side-navigation-second-level-edge-to-text:24px; - --spectrum-side-navigation-third-level-edge-to-text:36px; - --spectrum-side-navigation-with-icon-second-level-edge-to-text:50px; - --spectrum-side-navigation-with-icon-third-level-edge-to-text:62px; - --spectrum-side-navigation-item-to-item:4px; - --spectrum-side-navigation-item-to-header:24px; - --spectrum-side-navigation-header-to-item:8px; - --spectrum-side-navigation-bottom-to-text:8px; - --spectrum-tray-top-to-content-area:4px; - --spectrum-accordion-top-to-text-spacious-small:9px; - --spectrum-text-to-visual-50:6px; - --spectrum-text-to-visual-75:7px; - --spectrum-text-to-visual-100:8px; - --spectrum-text-to-visual-200:9px; - --spectrum-text-to-visual-300:10px; - --spectrum-text-to-control-75:9px; - --spectrum-text-to-control-100:10px; - --spectrum-text-to-control-200:11px; - --spectrum-text-to-control-300:13px; - --spectrum-component-height-50:20px; - --spectrum-component-height-75:24px; - --spectrum-component-height-100:32px; - --spectrum-component-height-200:40px; - --spectrum-component-height-300:48px; - --spectrum-component-height-400:56px; - --spectrum-component-height-500:64px; - --spectrum-component-pill-edge-to-visual-75:10px; - --spectrum-component-pill-edge-to-visual-100:14px; - --spectrum-component-pill-edge-to-visual-200:18px; - --spectrum-component-pill-edge-to-visual-300:21px; - --spectrum-component-pill-edge-to-visual-only-75:4px; - --spectrum-component-pill-edge-to-visual-only-100:7px; - --spectrum-component-pill-edge-to-visual-only-200:10px; - --spectrum-component-pill-edge-to-visual-only-300:13px; - --spectrum-component-pill-edge-to-text-75:12px; - --spectrum-component-pill-edge-to-text-100:16px; - --spectrum-component-pill-edge-to-text-200:20px; - --spectrum-component-pill-edge-to-text-300:24px; - --spectrum-component-edge-to-visual-50:6px; - --spectrum-component-edge-to-visual-75:7px; - --spectrum-component-edge-to-visual-100:10px; - --spectrum-component-edge-to-visual-200:13px; - --spectrum-component-edge-to-visual-300:15px; - --spectrum-component-edge-to-visual-only-50:3px; - --spectrum-component-edge-to-visual-only-75:4px; - --spectrum-component-edge-to-visual-only-100:7px; - --spectrum-component-edge-to-visual-only-200:10px; - --spectrum-component-edge-to-visual-only-300:13px; - --spectrum-component-edge-to-text-50:8px; - --spectrum-component-edge-to-text-75:9px; - --spectrum-component-edge-to-text-100:12px; - --spectrum-component-edge-to-text-200:15px; - --spectrum-component-edge-to-text-300:18px; - --spectrum-component-top-to-workflow-icon-50:3px; - --spectrum-component-top-to-workflow-icon-75:4px; - --spectrum-component-top-to-workflow-icon-100:7px; - --spectrum-component-top-to-workflow-icon-200:10px; - --spectrum-component-top-to-workflow-icon-300:13px; - --spectrum-component-top-to-text-50:3px; - --spectrum-component-top-to-text-75:4px; - --spectrum-component-top-to-text-100:6px; - --spectrum-component-top-to-text-200:9px; - --spectrum-component-top-to-text-300:12px; - --spectrum-component-bottom-to-text-50:3px; - --spectrum-component-bottom-to-text-75:5px; - --spectrum-component-bottom-to-text-100:9px; - --spectrum-component-bottom-to-text-200:11px; - --spectrum-component-bottom-to-text-300:14px; - --spectrum-component-to-menu-small:6px; - --spectrum-component-to-menu-medium:6px; - --spectrum-component-to-menu-large:7px; - --spectrum-component-to-menu-extra-large:8px; - --spectrum-field-edge-to-disclosure-icon-75:7px; - --spectrum-field-edge-to-disclosure-icon-100:11px; - --spectrum-field-edge-to-disclosure-icon-200:14px; - --spectrum-field-edge-to-disclosure-icon-300:17px; - --spectrum-field-end-edge-to-disclosure-icon-75:7px; - --spectrum-field-end-edge-to-disclosure-icon-100:11px; - --spectrum-field-end-edge-to-disclosure-icon-200:14px; - --spectrum-field-end-edge-to-disclosure-icon-300:17px; - --spectrum-field-top-to-disclosure-icon-75:7px; - --spectrum-field-top-to-disclosure-icon-100:11px; - --spectrum-field-top-to-disclosure-icon-200:14px; - --spectrum-field-top-to-disclosure-icon-300:17px; - --spectrum-field-top-to-alert-icon-small:4px; - --spectrum-field-top-to-alert-icon-medium:7px; - --spectrum-field-top-to-alert-icon-large:10px; - --spectrum-field-top-to-alert-icon-extra-large:13px; - --spectrum-field-top-to-validation-icon-small:7px; - --spectrum-field-top-to-validation-icon-medium:11px; - --spectrum-field-top-to-validation-icon-large:14px; - --spectrum-field-top-to-validation-icon-extra-large:17px; - --spectrum-field-top-to-progress-circle-small:4px; - --spectrum-field-top-to-progress-circle-medium:8px; - --spectrum-field-top-to-progress-circle-large:12px; - --spectrum-field-top-to-progress-circle-extra-large:16px; - --spectrum-field-edge-to-alert-icon-small:9px; - --spectrum-field-edge-to-alert-icon-medium:12px; - --spectrum-field-edge-to-alert-icon-large:15px; - --spectrum-field-edge-to-alert-icon-extra-large:18px; - --spectrum-field-edge-to-validation-icon-small:9px; - --spectrum-field-edge-to-validation-icon-medium:12px; - --spectrum-field-edge-to-validation-icon-large:15px; - --spectrum-field-edge-to-validation-icon-extra-large:18px; - --spectrum-field-text-to-alert-icon-small:8px; - --spectrum-field-text-to-alert-icon-medium:12px; - --spectrum-field-text-to-alert-icon-large:15px; - --spectrum-field-text-to-alert-icon-extra-large:18px; - --spectrum-field-text-to-validation-icon-small:8px; - --spectrum-field-text-to-validation-icon-medium:12px; - --spectrum-field-text-to-validation-icon-large:15px; - --spectrum-field-text-to-validation-icon-extra-large:18px; - --spectrum-field-width:192px; - --spectrum-character-count-to-field-quiet-small:-3px; - --spectrum-character-count-to-field-quiet-medium:-3px; - --spectrum-character-count-to-field-quiet-large:-3px; - --spectrum-character-count-to-field-quiet-extra-large:-4px; - --spectrum-side-label-character-count-to-field:12px; - --spectrum-side-label-character-count-top-margin-small:4px; - --spectrum-side-label-character-count-top-margin-medium:8px; - --spectrum-side-label-character-count-top-margin-large:11px; - --spectrum-side-label-character-count-top-margin-extra-large:14px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-small:7px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-medium:11px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-large:14px; - --spectrum-disclosure-indicator-top-to-disclosure-icon-extra-large:17px; - --spectrum-navigational-indicator-top-to-back-icon-small:6px; - --spectrum-navigational-indicator-top-to-back-icon-medium:9px; - --spectrum-navigational-indicator-top-to-back-icon-large:12px; - --spectrum-navigational-indicator-top-to-back-icon-extra-large:15px; - --spectrum-color-control-track-width:24px; - --spectrum-font-size-50:11px; - --spectrum-font-size-75:12px; - --spectrum-font-size-100:14px; - --spectrum-font-size-200:16px; - --spectrum-font-size-300:18px; - --spectrum-font-size-400:20px; - --spectrum-font-size-500:22px; - --spectrum-font-size-600:25px; - --spectrum-font-size-700:28px; - --spectrum-font-size-800:32px; - --spectrum-font-size-900:36px; - --spectrum-font-size-1000:40px; - --spectrum-font-size-1100:45px; - --spectrum-font-size-1200:50px; - --spectrum-font-size-1300:60px; -} diff --git a/tokens/dist/css/spectrum/custom-large-vars.css b/tokens/dist/css/spectrum/custom-large-vars.css deleted file mode 100644 index cf6f18c4c9d..00000000000 --- a/tokens/dist/css/spectrum/custom-large-vars.css +++ /dev/null @@ -1,119 +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 - * - * 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--large{ - --spectrum-slider-tick-mark-height:13px; - --spectrum-slider-ramp-track-height:20px; - - --spectrum-colorwheel-path:"M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - --spectrum-colorwheel-colorarea-container-size:182px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-secondary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:34px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:42px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:47px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:54px; - - --spectrum-menu-item-checkmark-height-small:12px; - --spectrum-menu-item-checkmark-height-medium:14px; - --spectrum-menu-item-checkmark-height-large:16px; - --spectrum-menu-item-checkmark-height-extra-large:16px; - - --spectrum-menu-item-checkmark-width-small:12px; - --spectrum-menu-item-checkmark-width-medium:14px; - --spectrum-menu-item-checkmark-width-large:16px; - --spectrum-menu-item-checkmark-width-extra-large:16px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-100); - - --spectrum-button-top-to-text-small:6px; - --spectrum-button-bottom-to-text-small:5px; - --spectrum-button-top-to-text-medium:9px; - --spectrum-button-bottom-to-text-medium:10px; - --spectrum-button-top-to-text-large:12px; - --spectrum-button-bottom-to-text-large:13px; - --spectrum-button-top-to-text-extra-large:16px; - --spectrum-button-bottom-to-text-extra-large:17px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-200); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-200); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-400); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-600); - - --spectrum-coach-indicator-gap:8px; - --spectrum-coach-indicator-ring-diameter:20px; - --spectrum-coach-indicator-quiet-ring-diameter:10px; - - --spectrum-coachmark-buttongroup-display:none; - --spectrum-coachmark-buttongroup-mobile-display:flex; - --spectrum-coachmark-menu-display:none; - --spectrum-coachmark-menu-mobile-display:inline-flex; - - --spectrum-well-padding:20px; - --spectrum-well-margin-top:5px; - --spectrum-well-min-width:300px; - --spectrum-well-border-radius:5px; - --spectrum-workflow-icon-size-xxl:40px; - --spectrum-workflow-icon-size-xxs:15px; - - --spectrum-treeview-item-indentation-medium:20px; - --spectrum-treeview-item-indentation-small:15px; - --spectrum-treeview-item-indentation-large:25px; - --spectrum-treeview-item-indentation-extra-large:30px; - --spectrum-treeview-indicator-inset-block-start:6px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:2px; - - --spectrum-dialog-confirm-entry-animation-distance:25px; - --spectrum-dialog-confirm-hero-height:160px; - --spectrum-dialog-confirm-border-radius:5px; - --spectrum-dialog-confirm-title-text-size:19px; - --spectrum-dialog-confirm-description-text-size:15px; - --spectrum-dialog-confirm-padding-grid:24px; - - --spectrum-datepicker-initial-width:160px; - --spectrum-datepicker-generic-padding:15px; - --spectrum-datepicker-dash-line-height:30px; - --spectrum-datepicker-width-quiet-first:90px; - --spectrum-datepicker-width-quiet-second:20px; - --spectrum-datepicker-datetime-width-first:45px; - --spectrum-datepicker-invalid-icon-to-button:10px; - --spectrum-datepicker-invalid-icon-to-button-quiet:9px; - --spectrum-datepicker-input-datetime-width:30px; - - --spectrum-pagination-textfield-width:60px; - --spectrum-pagination-item-inline-spacing:6px; - - --spectrum-dial-border-radius:20px; - --spectrum-dial-handle-position:10px; - --spectrum-dial-handle-block-margin:20px; - --spectrum-dial-handle-inline-margin:20px; - --spectrum-dial-controls-margin:10px; - --spectrum-dial-label-gap-y:6px; - --spectrum-dial-label-container-top-to-text:5px; - - --spectrum-assetcard-focus-ring-border-radius:9px; - --spectrum-assetcard-selectionindicator-margin:15px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-xs); - - --spectrum-tooltip-animation-distance:5px; - - --spectrum-ui-icon-medium-display:none; - --spectrum-ui-icon-large-display:block; -} diff --git a/tokens/dist/css/spectrum/custom-medium-vars.css b/tokens/dist/css/spectrum/custom-medium-vars.css deleted file mode 100644 index 0889ba56350..00000000000 --- a/tokens/dist/css/spectrum/custom-medium-vars.css +++ /dev/null @@ -1,118 +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 - * - * 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--medium{ - --spectrum-slider-tick-mark-height:10px; - --spectrum-slider-ramp-track-height:16px; - - --spectrum-colorwheel-path:"M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - --spectrum-colorwheel-colorarea-container-size:144px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-primary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:28px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:32px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:38px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:45px; - - --spectrum-menu-item-checkmark-height-small:10px; - --spectrum-menu-item-checkmark-height-medium:10px; - --spectrum-menu-item-checkmark-height-large:12px; - --spectrum-menu-item-checkmark-height-extra-large:14px; - - --spectrum-menu-item-checkmark-width-small:10px; - --spectrum-menu-item-checkmark-width-medium:10px; - --spectrum-menu-item-checkmark-width-large:12px; - --spectrum-menu-item-checkmark-width-extra-large:14px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-75); - - --spectrum-button-top-to-text-small:5px; - --spectrum-button-bottom-to-text-small:4px; - --spectrum-button-top-to-text-medium:7px; - --spectrum-button-bottom-to-text-medium:8px; - --spectrum-button-top-to-text-large:10px; - --spectrum-button-bottom-to-text-large:10px; - --spectrum-button-top-to-text-extra-large:13px; - --spectrum-button-bottom-to-text-extra-large:13px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-100); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-100); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-500); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-700); - - --spectrum-coach-indicator-gap:6px; - --spectrum-coach-indicator-ring-diameter:var(--spectrum-spacing-300); - --spectrum-coach-indicator-quiet-ring-diameter:var(--spectrum-spacing-100); - - --spectrum-coachmark-buttongroup-display:flex; - --spectrum-coachmark-buttongroup-mobile-display:none; - --spectrum-coachmark-menu-display:inline-flex; - --spectrum-coachmark-menu-mobile-display:none; - --spectrum-well-padding:var(--spectrum-spacing-300); - --spectrum-well-margin-top:var(--spectrum-spacing-75); - --spectrum-well-min-width:240px; - --spectrum-well-border-radius:var(--spectrum-spacing-75); - --spectrum-workflow-icon-size-xxl:32px; - --spectrum-workflow-icon-size-xxs:12px; - - --spectrum-treeview-item-indentation-medium:var(--spectrum-spacing-300); - --spectrum-treeview-item-indentation-small:var(--spectrum-spacing-200); - --spectrum-treeview-item-indentation-large:20px; - --spectrum-treeview-item-indentation-extra-large:var(--spectrum-spacing-400); - --spectrum-treeview-indicator-inset-block-start:5px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:0px; - - --spectrum-dialog-confirm-entry-animation-distance:20px; - --spectrum-dialog-confirm-hero-height:128px; - --spectrum-dialog-confirm-border-radius:4px; - --spectrum-dialog-confirm-title-text-size:18px; - --spectrum-dialog-confirm-description-text-size:14px; - --spectrum-dialog-confirm-padding-grid:40px; - - --spectrum-datepicker-initial-width:128px; - --spectrum-datepicker-generic-padding:var(--spectrum-spacing-200); - --spectrum-datepicker-dash-line-height:24px; - --spectrum-datepicker-width-quiet-first:72px; - --spectrum-datepicker-width-quiet-second:16px; - --spectrum-datepicker-datetime-width-first:36px; - --spectrum-datepicker-invalid-icon-to-button:8px; - --spectrum-datepicker-invalid-icon-to-button-quiet:7px; - --spectrum-datepicker-input-datetime-width:var(--spectrum-spacing-400); - - --spectrum-pagination-textfield-width:var(--spectrum-spacing-700); - --spectrum-pagination-item-inline-spacing:5px; - - --spectrum-dial-border-radius:16px; - --spectrum-dial-handle-position:8px; - --spectrum-dial-handle-block-margin:16px; - --spectrum-dial-handle-inline-margin:16px; - --spectrum-dial-controls-margin:8px; - --spectrum-dial-label-gap-y:5px; - --spectrum-dial-label-container-top-to-text:4px; - - --spectrum-assetcard-focus-ring-border-radius:8px; - --spectrum-assetcard-selectionindicator-margin:12px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-s); - - --spectrum-tooltip-animation-distance:var(--spectrum-spacing-75); - - --spectrum-ui-icon-medium-display:block; - --spectrum-ui-icon-large-display:none; -} diff --git a/tokens/dist/css/spectrum/custom-vars.css b/tokens/dist/css/spectrum/custom-vars.css deleted file mode 100644 index 3657e8f4731..00000000000 --- a/tokens/dist/css/spectrum/custom-vars.css +++ /dev/null @@ -1,51 +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 - * - * 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{ - --system:spectrum; - --spectrum-animation-linear:cubic-bezier(0, 0, 1, 1); - --spectrum-animation-duration-0:0ms; - --spectrum-animation-duration-100:130ms; - --spectrum-animation-duration-200:160ms; - --spectrum-animation-duration-300:190ms; - --spectrum-animation-duration-400:220ms; - --spectrum-animation-duration-500:250ms; - --spectrum-animation-duration-600:300ms; - --spectrum-animation-duration-700:350ms; - --spectrum-animation-duration-800:400ms; - --spectrum-animation-duration-900:450ms; - --spectrum-animation-duration-1000:500ms; - --spectrum-animation-duration-2000:1000ms; - --spectrum-animation-duration-4000:2000ms; - --spectrum-animation-duration-6000:3000ms; - --spectrum-animation-ease-in-out:cubic-bezier(.45, 0, .40, 1); - --spectrum-animation-ease-in:cubic-bezier(.50, 0, 1, 1); - --spectrum-animation-ease-out:cubic-bezier(0, 0, 0.40, 1); - --spectrum-animation-ease-linear:cubic-bezier(0, 0, 1, 1); - - - --spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - --spectrum-sans-serif-font:var(--spectrum-sans-font-family-stack); - - --spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif; - --spectrum-serif-font:var(--spectrum-serif-font-family-stack); - - --spectrum-code-font-family-stack:"Source Code Pro", Monaco, monospace; - - --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); - --spectrum-docs-static-white-background-color-rgb:15, 121, 125; - --spectrum-docs-static-white-background-color:rgba(var(--spectrum-docs-static-white-background-color-rgb)); - --spectrum-docs-static-black-background-color-rgb:181, 209, 211; - --spectrum-docs-static-black-background-color:rgba(var(--spectrum-docs-static-black-background-color-rgb)); -} diff --git a/tokens/dist/css/spectrum/dark-vars.css b/tokens/dist/css/spectrum/dark-vars.css deleted file mode 100644 index 395cdc614be..00000000000 --- a/tokens/dist/css/spectrum/dark-vars.css +++ /dev/null @@ -1,65 +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 - * - * 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--dark{ - --spectrum-menu-item-background-color-default-rgb:255, 255, 255; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb:var( --spectrum-blue-900-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.07); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-700); -} diff --git a/tokens/dist/css/spectrum/darkest-vars.css b/tokens/dist/css/spectrum/darkest-vars.css deleted file mode 100644 index ca341211f6a..00000000000 --- a/tokens/dist/css/spectrum/darkest-vars.css +++ /dev/null @@ -1,65 +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 - * - * 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--darkest{ - --spectrum-menu-item-background-color-default-rgb:255, 255, 255; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb:var( --spectrum-blue-900-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-down:rgba(var(--spectrum-white-rgb), 0.15); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.08); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-700); -} diff --git a/tokens/dist/css/spectrum/global-vars.css b/tokens/dist/css/spectrum/global-vars.css deleted file mode 100644 index 8680696832c..00000000000 --- a/tokens/dist/css/spectrum/global-vars.css +++ /dev/null @@ -1,90 +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 - * - * 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{ - --spectrum-neutral-background-color-selected-default:var(--spectrum-gray-700); - --spectrum-neutral-background-color-selected-hover:var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-down:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus:var(--spectrum-gray-800); - --spectrum-slider-track-thickness:2px; - --spectrum-slider-handle-gap:4px; - --spectrum-picker-border-width:var(--spectrum-border-width-100); - --spectrum-in-field-button-fill-stacked-inner-border-rounding:0px; - --spectrum-in-field-button-edge-to-fill:0px; - --spectrum-in-field-button-stacked-inner-edge-to-fill:0px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium:3px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large:4px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large:5px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); - --spectrum-corner-radius-75:2px; - --spectrum-drop-shadow-x:0px; - --spectrum-border-width-100:1px; - --spectrum-accent-color-100:var(--spectrum-blue-100); - --spectrum-accent-color-200:var(--spectrum-blue-200); - --spectrum-accent-color-300:var(--spectrum-blue-300); - --spectrum-accent-color-400:var(--spectrum-blue-400); - --spectrum-accent-color-500:var(--spectrum-blue-500); - --spectrum-accent-color-600:var(--spectrum-blue-600); - --spectrum-accent-color-700:var(--spectrum-blue-700); - --spectrum-accent-color-800:var(--spectrum-blue-800); - --spectrum-accent-color-900:var(--spectrum-blue-900); - --spectrum-accent-color-1000:var(--spectrum-blue-1000); - --spectrum-accent-color-1100:var(--spectrum-blue-1100); - --spectrum-accent-color-1200:var(--spectrum-blue-1200); - --spectrum-accent-color-1300:var(--spectrum-blue-1300); - --spectrum-accent-color-1400:var(--spectrum-blue-1400); - --spectrum-heading-sans-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-cjk-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --system:spectrum; - --spectrum-animation-linear:cubic-bezier(0, 0, 1, 1); - --spectrum-animation-duration-0:0ms; - --spectrum-animation-duration-100:130ms; - --spectrum-animation-duration-200:160ms; - --spectrum-animation-duration-300:190ms; - --spectrum-animation-duration-400:220ms; - --spectrum-animation-duration-500:250ms; - --spectrum-animation-duration-600:300ms; - --spectrum-animation-duration-700:350ms; - --spectrum-animation-duration-800:400ms; - --spectrum-animation-duration-900:450ms; - --spectrum-animation-duration-1000:500ms; - --spectrum-animation-duration-2000:1000ms; - --spectrum-animation-duration-4000:2000ms; - --spectrum-animation-duration-6000:3000ms; - --spectrum-animation-ease-in-out:cubic-bezier(.45, 0, .40, 1); - --spectrum-animation-ease-in:cubic-bezier(.50, 0, 1, 1); - --spectrum-animation-ease-out:cubic-bezier(0, 0, 0.40, 1); - --spectrum-animation-ease-linear:cubic-bezier(0, 0, 1, 1); - - - --spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - --spectrum-sans-serif-font:var(--spectrum-sans-font-family-stack); - - --spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif; - --spectrum-serif-font:var(--spectrum-serif-font-family-stack); - - --spectrum-code-font-family-stack:"Source Code Pro", Monaco, monospace; - - --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); - --spectrum-docs-static-white-background-color-rgb:15, 121, 125; - --spectrum-docs-static-white-background-color:rgba(var(--spectrum-docs-static-white-background-color-rgb)); - --spectrum-docs-static-black-background-color-rgb:181, 209, 211; - --spectrum-docs-static-black-background-color:rgba(var(--spectrum-docs-static-black-background-color-rgb)); -} diff --git a/tokens/dist/css/spectrum/index.css b/tokens/dist/css/spectrum/index.css deleted file mode 100644 index cfa9095354c..00000000000 --- a/tokens/dist/css/spectrum/index.css +++ /dev/null @@ -1,557 +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 - * - * 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--dark{ - --spectrum-menu-item-background-color-default-rgb:255, 255, 255; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb:var(--spectrum-blue-900-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.07); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-700); -} - -.spectrum--darkest{ - --spectrum-menu-item-background-color-default-rgb:255, 255, 255; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb:var(--spectrum-blue-900-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-down:rgba(var(--spectrum-white-rgb), 0.15); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.08); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-700); -} - -.spectrum{ - --spectrum-neutral-background-color-selected-default:var(--spectrum-gray-700); - --spectrum-neutral-background-color-selected-hover:var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-down:var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus:var(--spectrum-gray-800); - --spectrum-slider-track-thickness:2px; - --spectrum-slider-handle-gap:4px; - --spectrum-picker-border-width:var(--spectrum-border-width-100); - --spectrum-in-field-button-fill-stacked-inner-border-rounding:0px; - --spectrum-in-field-button-edge-to-fill:0px; - --spectrum-in-field-button-stacked-inner-edge-to-fill:0px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium:3px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large:4px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large:5px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large:var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); - --spectrum-corner-radius-75:2px; - --spectrum-drop-shadow-x:0px; - --spectrum-border-width-100:1px; - --spectrum-accent-color-100:var(--spectrum-blue-100); - --spectrum-accent-color-200:var(--spectrum-blue-200); - --spectrum-accent-color-300:var(--spectrum-blue-300); - --spectrum-accent-color-400:var(--spectrum-blue-400); - --spectrum-accent-color-500:var(--spectrum-blue-500); - --spectrum-accent-color-600:var(--spectrum-blue-600); - --spectrum-accent-color-700:var(--spectrum-blue-700); - --spectrum-accent-color-800:var(--spectrum-blue-800); - --spectrum-accent-color-900:var(--spectrum-blue-900); - --spectrum-accent-color-1000:var(--spectrum-blue-1000); - --spectrum-accent-color-1100:var(--spectrum-blue-1100); - --spectrum-accent-color-1200:var(--spectrum-blue-1200); - --spectrum-accent-color-1300:var(--spectrum-blue-1300); - --spectrum-accent-color-1400:var(--spectrum-blue-1400); - --spectrum-heading-sans-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-cjk-font-weight:var(--spectrum-extra-bold-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --spectrum-heading-serif-emphasized-font-weight:var(--spectrum-bold-font-weight); - --system:spectrum; - --spectrum-animation-linear:cubic-bezier(0, 0, 1, 1); - --spectrum-animation-duration-0:0ms; - --spectrum-animation-duration-100:130ms; - --spectrum-animation-duration-200:160ms; - --spectrum-animation-duration-300:190ms; - --spectrum-animation-duration-400:220ms; - --spectrum-animation-duration-500:250ms; - --spectrum-animation-duration-600:300ms; - --spectrum-animation-duration-700:350ms; - --spectrum-animation-duration-800:400ms; - --spectrum-animation-duration-900:450ms; - --spectrum-animation-duration-1000:500ms; - --spectrum-animation-duration-2000:1000ms; - --spectrum-animation-duration-4000:2000ms; - --spectrum-animation-duration-6000:3000ms; - --spectrum-animation-ease-in-out:cubic-bezier(0.45, 0, 0.4, 1); - --spectrum-animation-ease-in:cubic-bezier(0.5, 0, 1, 1); - --spectrum-animation-ease-out:cubic-bezier(0, 0, 0.4, 1); - --spectrum-animation-ease-linear:cubic-bezier(0, 0, 1, 1); - - --spectrum-sans-font-family-stack:adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - --spectrum-sans-serif-font:var(--spectrum-sans-font-family-stack); - - --spectrum-serif-font-family-stack:adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif; - --spectrum-serif-font:var(--spectrum-serif-font-family-stack); - - --spectrum-code-font-family-stack:"Source Code Pro", Monaco, monospace; - - --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); - --spectrum-docs-static-white-background-color-rgb:15, 121, 125; - --spectrum-docs-static-white-background-color:rgba(var(--spectrum-docs-static-white-background-color-rgb)); - --spectrum-docs-static-black-background-color-rgb:181, 209, 211; - --spectrum-docs-static-black-background-color:rgba(var(--spectrum-docs-static-black-background-color-rgb)); -} - -.spectrum--large{ - --spectrum-checkbox-control-size-small:16px; - --spectrum-checkbox-control-size-medium:18px; - --spectrum-checkbox-control-size-large:20px; - --spectrum-checkbox-control-size-extra-large:22px; - --spectrum-checkbox-top-to-control-small:7px; - --spectrum-checkbox-top-to-control-medium:11px; - --spectrum-checkbox-top-to-control-large:15px; - --spectrum-checkbox-top-to-control-extra-large:19px; - --spectrum-switch-control-width-small:32px; - --spectrum-switch-control-width-medium:36px; - --spectrum-switch-control-width-large:41px; - --spectrum-switch-control-width-extra-large:46px; - --spectrum-switch-control-height-small:16px; - --spectrum-switch-control-height-medium:18px; - --spectrum-switch-control-height-large:20px; - --spectrum-switch-control-height-extra-large:22px; - --spectrum-switch-top-to-control-small:7px; - --spectrum-switch-top-to-control-medium:11px; - --spectrum-switch-top-to-control-large:15px; - --spectrum-switch-top-to-control-extra-large:19px; - --spectrum-radio-button-control-size-small:16px; - --spectrum-radio-button-control-size-medium:18px; - --spectrum-radio-button-control-size-large:20px; - --spectrum-radio-button-control-size-extra-large:22px; - --spectrum-radio-button-top-to-control-small:7px; - --spectrum-radio-button-top-to-control-medium:11px; - --spectrum-radio-button-top-to-control-large:15px; - --spectrum-radio-button-top-to-control-extra-large:19px; - --spectrum-slider-control-height-small:18px; - --spectrum-slider-control-height-medium:20px; - --spectrum-slider-control-height-large:22px; - --spectrum-slider-control-height-extra-large:26px; - --spectrum-slider-handle-size-small:18px; - --spectrum-slider-handle-size-medium:20px; - --spectrum-slider-handle-size-large:22px; - --spectrum-slider-handle-size-extra-large:26px; - --spectrum-slider-handle-border-width-down-small:7px; - --spectrum-slider-handle-border-width-down-medium:8px; - --spectrum-slider-handle-border-width-down-large:9px; - --spectrum-slider-handle-border-width-down-extra-large:11px; - --spectrum-slider-bottom-to-handle-small:6px; - --spectrum-slider-bottom-to-handle-medium:10px; - --spectrum-slider-bottom-to-handle-large:14px; - --spectrum-slider-bottom-to-handle-extra-large:17px; - --spectrum-corner-radius-100:5px; - --spectrum-corner-radius-200:10px; - --spectrum-drop-shadow-y:2px; - --spectrum-drop-shadow-blur:6px; - --spectrum-slider-tick-mark-height:13px; - --spectrum-slider-ramp-track-height:20px; - - --spectrum-colorwheel-path:"M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - --spectrum-colorwheel-colorarea-container-size:182px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-secondary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:34px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:42px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:47px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:54px; - - --spectrum-menu-item-checkmark-height-small:12px; - --spectrum-menu-item-checkmark-height-medium:14px; - --spectrum-menu-item-checkmark-height-large:16px; - --spectrum-menu-item-checkmark-height-extra-large:16px; - - --spectrum-menu-item-checkmark-width-small:12px; - --spectrum-menu-item-checkmark-width-medium:14px; - --spectrum-menu-item-checkmark-width-large:16px; - --spectrum-menu-item-checkmark-width-extra-large:16px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-100); - - --spectrum-button-top-to-text-small:6px; - --spectrum-button-bottom-to-text-small:5px; - --spectrum-button-top-to-text-medium:9px; - --spectrum-button-bottom-to-text-medium:10px; - --spectrum-button-top-to-text-large:12px; - --spectrum-button-bottom-to-text-large:13px; - --spectrum-button-top-to-text-extra-large:16px; - --spectrum-button-bottom-to-text-extra-large:17px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-200); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-200); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-400); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-600); - - --spectrum-coach-indicator-gap:8px; - --spectrum-coach-indicator-ring-diameter:20px; - --spectrum-coach-indicator-quiet-ring-diameter:10px; - - --spectrum-coachmark-buttongroup-display:none; - --spectrum-coachmark-buttongroup-mobile-display:flex; - --spectrum-coachmark-menu-display:none; - --spectrum-coachmark-menu-mobile-display:inline-flex; - - --spectrum-well-padding:20px; - --spectrum-well-margin-top:5px; - --spectrum-well-min-width:300px; - --spectrum-well-border-radius:5px; - --spectrum-workflow-icon-size-xxl:40px; - --spectrum-workflow-icon-size-xxs:15px; - - --spectrum-treeview-item-indentation-medium:20px; - --spectrum-treeview-item-indentation-small:15px; - --spectrum-treeview-item-indentation-large:25px; - --spectrum-treeview-item-indentation-extra-large:30px; - --spectrum-treeview-indicator-inset-block-start:6px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:2px; - - --spectrum-dialog-confirm-entry-animation-distance:25px; - --spectrum-dialog-confirm-hero-height:160px; - --spectrum-dialog-confirm-border-radius:5px; - --spectrum-dialog-confirm-title-text-size:19px; - --spectrum-dialog-confirm-description-text-size:15px; - --spectrum-dialog-confirm-padding-grid:24px; - - --spectrum-datepicker-initial-width:160px; - --spectrum-datepicker-generic-padding:15px; - --spectrum-datepicker-dash-line-height:30px; - --spectrum-datepicker-width-quiet-first:90px; - --spectrum-datepicker-width-quiet-second:20px; - --spectrum-datepicker-datetime-width-first:45px; - --spectrum-datepicker-invalid-icon-to-button:10px; - --spectrum-datepicker-invalid-icon-to-button-quiet:9px; - --spectrum-datepicker-input-datetime-width:30px; - - --spectrum-pagination-textfield-width:60px; - --spectrum-pagination-item-inline-spacing:6px; - - --spectrum-dial-border-radius:20px; - --spectrum-dial-handle-position:10px; - --spectrum-dial-handle-block-margin:20px; - --spectrum-dial-handle-inline-margin:20px; - --spectrum-dial-controls-margin:10px; - --spectrum-dial-label-gap-y:6px; - --spectrum-dial-label-container-top-to-text:5px; - - --spectrum-assetcard-focus-ring-border-radius:9px; - --spectrum-assetcard-selectionindicator-margin:15px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-xs); - - --spectrum-tooltip-animation-distance:5px; - - --spectrum-ui-icon-medium-display:none; - --spectrum-ui-icon-large-display:block; -} - -.spectrum--light,.spectrum--lightest{ - --spectrum-menu-item-background-color-default-rgb:0, 0, 0; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-black-200); - --spectrum-drop-zone-background-color-rgb:var(--spectrum-blue-800-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-800); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-down:var(--spectrum-transparent-black-200); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-800); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-white); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-800); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:var(--spectrum-black); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-800); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.06); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-900-rgb), 0.1); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-900); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-900); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1100); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1100); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-900); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-1100); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-1100); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-900); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-800); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-800); -} - -.spectrum--medium{ - --spectrum-checkbox-control-size-small:12px; - --spectrum-checkbox-control-size-medium:14px; - --spectrum-checkbox-control-size-large:16px; - --spectrum-checkbox-control-size-extra-large:18px; - --spectrum-checkbox-top-to-control-small:6px; - --spectrum-checkbox-top-to-control-medium:9px; - --spectrum-checkbox-top-to-control-large:12px; - --spectrum-checkbox-top-to-control-extra-large:15px; - --spectrum-switch-control-width-small:23px; - --spectrum-switch-control-width-medium:26px; - --spectrum-switch-control-width-large:29px; - --spectrum-switch-control-width-extra-large:33px; - --spectrum-switch-control-height-small:12px; - --spectrum-switch-control-height-medium:14px; - --spectrum-switch-control-height-large:16px; - --spectrum-switch-control-height-extra-large:18px; - --spectrum-switch-top-to-control-small:6px; - --spectrum-switch-top-to-control-medium:9px; - --spectrum-switch-top-to-control-large:12px; - --spectrum-switch-top-to-control-extra-large:15px; - --spectrum-radio-button-control-size-small:12px; - --spectrum-radio-button-control-size-medium:14px; - --spectrum-radio-button-control-size-large:16px; - --spectrum-radio-button-control-size-extra-large:18px; - --spectrum-radio-button-top-to-control-small:6px; - --spectrum-radio-button-top-to-control-medium:9px; - --spectrum-radio-button-top-to-control-large:12px; - --spectrum-radio-button-top-to-control-extra-large:15px; - --spectrum-slider-control-height-small:14px; - --spectrum-slider-control-height-medium:16px; - --spectrum-slider-control-height-large:18px; - --spectrum-slider-control-height-extra-large:20px; - --spectrum-slider-handle-size-small:14px; - --spectrum-slider-handle-size-medium:16px; - --spectrum-slider-handle-size-large:18px; - --spectrum-slider-handle-size-extra-large:20px; - --spectrum-slider-handle-border-width-down-small:5px; - --spectrum-slider-handle-border-width-down-medium:6px; - --spectrum-slider-handle-border-width-down-large:7px; - --spectrum-slider-handle-border-width-down-extra-large:8px; - --spectrum-slider-bottom-to-handle-small:5px; - --spectrum-slider-bottom-to-handle-medium:8px; - --spectrum-slider-bottom-to-handle-large:11px; - --spectrum-slider-bottom-to-handle-extra-large:14px; - --spectrum-corner-radius-100:4px; - --spectrum-corner-radius-200:8px; - --spectrum-drop-shadow-y:1px; - --spectrum-drop-shadow-blur:4px; - --spectrum-slider-tick-mark-height:10px; - --spectrum-slider-ramp-track-height:16px; - - --spectrum-colorwheel-path:"M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - --spectrum-colorwheel-colorarea-container-size:144px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-primary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:28px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:32px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:38px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:45px; - - --spectrum-menu-item-checkmark-height-small:10px; - --spectrum-menu-item-checkmark-height-medium:10px; - --spectrum-menu-item-checkmark-height-large:12px; - --spectrum-menu-item-checkmark-height-extra-large:14px; - - --spectrum-menu-item-checkmark-width-small:10px; - --spectrum-menu-item-checkmark-width-medium:10px; - --spectrum-menu-item-checkmark-width-large:12px; - --spectrum-menu-item-checkmark-width-extra-large:14px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-75); - - --spectrum-button-top-to-text-small:5px; - --spectrum-button-bottom-to-text-small:4px; - --spectrum-button-top-to-text-medium:7px; - --spectrum-button-bottom-to-text-medium:8px; - --spectrum-button-top-to-text-large:10px; - --spectrum-button-bottom-to-text-large:10px; - --spectrum-button-top-to-text-extra-large:13px; - --spectrum-button-bottom-to-text-extra-large:13px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-100); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-100); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-500); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-700); - - --spectrum-coach-indicator-gap:6px; - --spectrum-coach-indicator-ring-diameter:var(--spectrum-spacing-300); - --spectrum-coach-indicator-quiet-ring-diameter:var(--spectrum-spacing-100); - - --spectrum-coachmark-buttongroup-display:flex; - --spectrum-coachmark-buttongroup-mobile-display:none; - --spectrum-coachmark-menu-display:inline-flex; - --spectrum-coachmark-menu-mobile-display:none; - --spectrum-well-padding:var(--spectrum-spacing-300); - --spectrum-well-margin-top:var(--spectrum-spacing-75); - --spectrum-well-min-width:240px; - --spectrum-well-border-radius:var(--spectrum-spacing-75); - --spectrum-workflow-icon-size-xxl:32px; - --spectrum-workflow-icon-size-xxs:12px; - - --spectrum-treeview-item-indentation-medium:var(--spectrum-spacing-300); - --spectrum-treeview-item-indentation-small:var(--spectrum-spacing-200); - --spectrum-treeview-item-indentation-large:20px; - --spectrum-treeview-item-indentation-extra-large:var(--spectrum-spacing-400); - --spectrum-treeview-indicator-inset-block-start:5px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:0px; - - --spectrum-dialog-confirm-entry-animation-distance:20px; - --spectrum-dialog-confirm-hero-height:128px; - --spectrum-dialog-confirm-border-radius:4px; - --spectrum-dialog-confirm-title-text-size:18px; - --spectrum-dialog-confirm-description-text-size:14px; - --spectrum-dialog-confirm-padding-grid:40px; - - --spectrum-datepicker-initial-width:128px; - --spectrum-datepicker-generic-padding:var(--spectrum-spacing-200); - --spectrum-datepicker-dash-line-height:24px; - --spectrum-datepicker-width-quiet-first:72px; - --spectrum-datepicker-width-quiet-second:16px; - --spectrum-datepicker-datetime-width-first:36px; - --spectrum-datepicker-invalid-icon-to-button:8px; - --spectrum-datepicker-invalid-icon-to-button-quiet:7px; - --spectrum-datepicker-input-datetime-width:var(--spectrum-spacing-400); - - --spectrum-pagination-textfield-width:var(--spectrum-spacing-700); - --spectrum-pagination-item-inline-spacing:5px; - - --spectrum-dial-border-radius:16px; - --spectrum-dial-handle-position:8px; - --spectrum-dial-handle-block-margin:16px; - --spectrum-dial-handle-inline-margin:16px; - --spectrum-dial-controls-margin:8px; - --spectrum-dial-label-gap-y:5px; - --spectrum-dial-label-container-top-to-text:4px; - - --spectrum-assetcard-focus-ring-border-radius:8px; - --spectrum-assetcard-selectionindicator-margin:12px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-s); - - --spectrum-tooltip-animation-distance:var(--spectrum-spacing-75); - - --spectrum-ui-icon-medium-display:block; - --spectrum-ui-icon-large-display:none; -} diff --git a/tokens/dist/css/spectrum/large-vars.css b/tokens/dist/css/spectrum/large-vars.css deleted file mode 100644 index b92debf3cc8..00000000000 --- a/tokens/dist/css/spectrum/large-vars.css +++ /dev/null @@ -1,167 +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 - * - * 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--large{ - --spectrum-checkbox-control-size-small:16px; - --spectrum-checkbox-control-size-medium:18px; - --spectrum-checkbox-control-size-large:20px; - --spectrum-checkbox-control-size-extra-large:22px; - --spectrum-checkbox-top-to-control-small:7px; - --spectrum-checkbox-top-to-control-medium:11px; - --spectrum-checkbox-top-to-control-large:15px; - --spectrum-checkbox-top-to-control-extra-large:19px; - --spectrum-switch-control-width-small:32px; - --spectrum-switch-control-width-medium:36px; - --spectrum-switch-control-width-large:41px; - --spectrum-switch-control-width-extra-large:46px; - --spectrum-switch-control-height-small:16px; - --spectrum-switch-control-height-medium:18px; - --spectrum-switch-control-height-large:20px; - --spectrum-switch-control-height-extra-large:22px; - --spectrum-switch-top-to-control-small:7px; - --spectrum-switch-top-to-control-medium:11px; - --spectrum-switch-top-to-control-large:15px; - --spectrum-switch-top-to-control-extra-large:19px; - --spectrum-radio-button-control-size-small:16px; - --spectrum-radio-button-control-size-medium:18px; - --spectrum-radio-button-control-size-large:20px; - --spectrum-radio-button-control-size-extra-large:22px; - --spectrum-radio-button-top-to-control-small:7px; - --spectrum-radio-button-top-to-control-medium:11px; - --spectrum-radio-button-top-to-control-large:15px; - --spectrum-radio-button-top-to-control-extra-large:19px; - --spectrum-slider-control-height-small:18px; - --spectrum-slider-control-height-medium:20px; - --spectrum-slider-control-height-large:22px; - --spectrum-slider-control-height-extra-large:26px; - --spectrum-slider-handle-size-small:18px; - --spectrum-slider-handle-size-medium:20px; - --spectrum-slider-handle-size-large:22px; - --spectrum-slider-handle-size-extra-large:26px; - --spectrum-slider-handle-border-width-down-small:7px; - --spectrum-slider-handle-border-width-down-medium:8px; - --spectrum-slider-handle-border-width-down-large:9px; - --spectrum-slider-handle-border-width-down-extra-large:11px; - --spectrum-slider-bottom-to-handle-small:6px; - --spectrum-slider-bottom-to-handle-medium:10px; - --spectrum-slider-bottom-to-handle-large:14px; - --spectrum-slider-bottom-to-handle-extra-large:17px; - --spectrum-corner-radius-100:5px; - --spectrum-corner-radius-200:10px; - --spectrum-drop-shadow-y:2px; - --spectrum-drop-shadow-blur:6px; - --spectrum-slider-tick-mark-height:13px; - --spectrum-slider-ramp-track-height:20px; - - --spectrum-colorwheel-path:"M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; - --spectrum-colorwheel-path-borders:"M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - --spectrum-colorwheel-colorarea-container-size:182px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-secondary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:34px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:42px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:47px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:54px; - - --spectrum-menu-item-checkmark-height-small:12px; - --spectrum-menu-item-checkmark-height-medium:14px; - --spectrum-menu-item-checkmark-height-large:16px; - --spectrum-menu-item-checkmark-height-extra-large:16px; - - --spectrum-menu-item-checkmark-width-small:12px; - --spectrum-menu-item-checkmark-width-medium:14px; - --spectrum-menu-item-checkmark-width-large:16px; - --spectrum-menu-item-checkmark-width-extra-large:16px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-100); - - --spectrum-button-top-to-text-small:6px; - --spectrum-button-bottom-to-text-small:5px; - --spectrum-button-top-to-text-medium:9px; - --spectrum-button-bottom-to-text-medium:10px; - --spectrum-button-top-to-text-large:12px; - --spectrum-button-bottom-to-text-large:13px; - --spectrum-button-top-to-text-extra-large:16px; - --spectrum-button-bottom-to-text-extra-large:17px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-200); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-200); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-400); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-600); - - --spectrum-coach-indicator-gap:8px; - --spectrum-coach-indicator-ring-diameter:20px; - --spectrum-coach-indicator-quiet-ring-diameter:10px; - - --spectrum-coachmark-buttongroup-display:none; - --spectrum-coachmark-buttongroup-mobile-display:flex; - --spectrum-coachmark-menu-display:none; - --spectrum-coachmark-menu-mobile-display:inline-flex; - - --spectrum-well-padding:20px; - --spectrum-well-margin-top:5px; - --spectrum-well-min-width:300px; - --spectrum-well-border-radius:5px; - --spectrum-workflow-icon-size-xxl:40px; - --spectrum-workflow-icon-size-xxs:15px; - - --spectrum-treeview-item-indentation-medium:20px; - --spectrum-treeview-item-indentation-small:15px; - --spectrum-treeview-item-indentation-large:25px; - --spectrum-treeview-item-indentation-extra-large:30px; - --spectrum-treeview-indicator-inset-block-start:6px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:2px; - - --spectrum-dialog-confirm-entry-animation-distance:25px; - --spectrum-dialog-confirm-hero-height:160px; - --spectrum-dialog-confirm-border-radius:5px; - --spectrum-dialog-confirm-title-text-size:19px; - --spectrum-dialog-confirm-description-text-size:15px; - --spectrum-dialog-confirm-padding-grid:24px; - - --spectrum-datepicker-initial-width:160px; - --spectrum-datepicker-generic-padding:15px; - --spectrum-datepicker-dash-line-height:30px; - --spectrum-datepicker-width-quiet-first:90px; - --spectrum-datepicker-width-quiet-second:20px; - --spectrum-datepicker-datetime-width-first:45px; - --spectrum-datepicker-invalid-icon-to-button:10px; - --spectrum-datepicker-invalid-icon-to-button-quiet:9px; - --spectrum-datepicker-input-datetime-width:30px; - - --spectrum-pagination-textfield-width:60px; - --spectrum-pagination-item-inline-spacing:6px; - - --spectrum-dial-border-radius:20px; - --spectrum-dial-handle-position:10px; - --spectrum-dial-handle-block-margin:20px; - --spectrum-dial-handle-inline-margin:20px; - --spectrum-dial-controls-margin:10px; - --spectrum-dial-label-gap-y:6px; - --spectrum-dial-label-container-top-to-text:5px; - - --spectrum-assetcard-focus-ring-border-radius:9px; - --spectrum-assetcard-selectionindicator-margin:15px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xxs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-xs); - - --spectrum-tooltip-animation-distance:5px; - - --spectrum-ui-icon-medium-display:none; - --spectrum-ui-icon-large-display:block; -} diff --git a/tokens/dist/css/spectrum/light-vars.css b/tokens/dist/css/spectrum/light-vars.css deleted file mode 100644 index 89939a133ef..00000000000 --- a/tokens/dist/css/spectrum/light-vars.css +++ /dev/null @@ -1,65 +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 - * - * 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--light,.spectrum--lightest{ - --spectrum-menu-item-background-color-default-rgb:0, 0, 0; - --spectrum-menu-item-background-color-default-opacity:0; - --spectrum-menu-item-background-color-default:rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover:var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-down:var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-key-focus:var(--spectrum-transparent-black-200); - --spectrum-drop-zone-background-color-rgb:var(--spectrum-blue-800-rgb); - --spectrum-dropindicator-color:var(--spectrum-blue-800); - - --spectrum-calendar-day-background-color-selected:rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-calendar-day-background-color-hover:rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-today-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-down:var(--spectrum-transparent-black-200); - --spectrum-calendar-day-background-color-cap-selected:rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-key-focus:rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-border-color-key-focus:var(--spectrum-blue-800); - - --spectrum-badge-label-icon-color-primary:var(--spectrum-white); - - --spectrum-coach-indicator-ring-default-color:var(--spectrum-blue-800); - --spectrum-coach-indicator-ring-dark-color:var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color:var(--spectrum-gray-50); - - --spectrum-well-border-color:var(--spectrum-black); - - --spectrum-steplist-current-marker-color-key-focus:var(--spectrum-blue-800); - - --spectrum-treeview-item-background-color-quiet-selected:rgba(var(--spectrum-gray-900-rgb), 0.06); - --spectrum-treeview-item-background-color-selected:rgba(var(--spectrum-blue-900-rgb), 0.1); - - --spectrum-logic-button-and-background-color:var(--spectrum-blue-900); - --spectrum-logic-button-and-border-color:var(--spectrum-blue-900); - --spectrum-logic-button-and-background-color-hover:var(--spectrum-blue-1100); - --spectrum-logic-button-and-border-color-hover:var(--spectrum-blue-1100); - - --spectrum-logic-button-or-background-color:var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color:var(--spectrum-magenta-900); - --spectrum-logic-button-or-background-color-hover:var(--spectrum-magenta-1100); - --spectrum-logic-button-or-border-color-hover:var(--spectrum-magenta-1100); - - --spectrum-assetcard-border-color-selected:var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-hover:var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-down:var(--spectrum-blue-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered:var(--spectrum-blue-900); - --spectrum-assestcard-focus-indicator-color:var(--spectrum-blue-800); - - --spectrum-assetlist-item-background-color-selected-hover:rgba(var(--spectrum-blue-900-rgb),0.2); - --spectrum-assetlist-item-background-color-selected:rgba(var(--spectrum-blue-900-rgb),0.1); - --spectrum-assetlist-border-color-key-focus:var(--spectrum-blue-800); -} diff --git a/tokens/dist/css/spectrum/medium-vars.css b/tokens/dist/css/spectrum/medium-vars.css deleted file mode 100644 index b2caff63055..00000000000 --- a/tokens/dist/css/spectrum/medium-vars.css +++ /dev/null @@ -1,166 +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 - * - * 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--medium{ - --spectrum-checkbox-control-size-small:12px; - --spectrum-checkbox-control-size-medium:14px; - --spectrum-checkbox-control-size-large:16px; - --spectrum-checkbox-control-size-extra-large:18px; - --spectrum-checkbox-top-to-control-small:6px; - --spectrum-checkbox-top-to-control-medium:9px; - --spectrum-checkbox-top-to-control-large:12px; - --spectrum-checkbox-top-to-control-extra-large:15px; - --spectrum-switch-control-width-small:23px; - --spectrum-switch-control-width-medium:26px; - --spectrum-switch-control-width-large:29px; - --spectrum-switch-control-width-extra-large:33px; - --spectrum-switch-control-height-small:12px; - --spectrum-switch-control-height-medium:14px; - --spectrum-switch-control-height-large:16px; - --spectrum-switch-control-height-extra-large:18px; - --spectrum-switch-top-to-control-small:6px; - --spectrum-switch-top-to-control-medium:9px; - --spectrum-switch-top-to-control-large:12px; - --spectrum-switch-top-to-control-extra-large:15px; - --spectrum-radio-button-control-size-small:12px; - --spectrum-radio-button-control-size-medium:14px; - --spectrum-radio-button-control-size-large:16px; - --spectrum-radio-button-control-size-extra-large:18px; - --spectrum-radio-button-top-to-control-small:6px; - --spectrum-radio-button-top-to-control-medium:9px; - --spectrum-radio-button-top-to-control-large:12px; - --spectrum-radio-button-top-to-control-extra-large:15px; - --spectrum-slider-control-height-small:14px; - --spectrum-slider-control-height-medium:16px; - --spectrum-slider-control-height-large:18px; - --spectrum-slider-control-height-extra-large:20px; - --spectrum-slider-handle-size-small:14px; - --spectrum-slider-handle-size-medium:16px; - --spectrum-slider-handle-size-large:18px; - --spectrum-slider-handle-size-extra-large:20px; - --spectrum-slider-handle-border-width-down-small:5px; - --spectrum-slider-handle-border-width-down-medium:6px; - --spectrum-slider-handle-border-width-down-large:7px; - --spectrum-slider-handle-border-width-down-extra-large:8px; - --spectrum-slider-bottom-to-handle-small:5px; - --spectrum-slider-bottom-to-handle-medium:8px; - --spectrum-slider-bottom-to-handle-large:11px; - --spectrum-slider-bottom-to-handle-extra-large:14px; - --spectrum-corner-radius-100:4px; - --spectrum-corner-radius-200:8px; - --spectrum-drop-shadow-y:1px; - --spectrum-drop-shadow-blur:4px; - --spectrum-slider-tick-mark-height:10px; - --spectrum-slider-ramp-track-height:16px; - - --spectrum-colorwheel-path:"M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; - --spectrum-colorwheel-path-borders:"M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - --spectrum-colorwheel-colorarea-container-size:144px; - - --spectrum-colorloupe-checkerboard-fill:url(#checkerboard-primary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small:28px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium:32px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large:38px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large:45px; - - --spectrum-menu-item-checkmark-height-small:10px; - --spectrum-menu-item-checkmark-height-medium:10px; - --spectrum-menu-item-checkmark-height-large:12px; - --spectrum-menu-item-checkmark-height-extra-large:14px; - - --spectrum-menu-item-checkmark-width-small:10px; - --spectrum-menu-item-checkmark-width-medium:10px; - --spectrum-menu-item-checkmark-width-large:12px; - --spectrum-menu-item-checkmark-width-extra-large:14px; - - --spectrum-rating-icon-spacing:var(--spectrum-spacing-75); - - --spectrum-button-top-to-text-small:5px; - --spectrum-button-bottom-to-text-small:4px; - --spectrum-button-top-to-text-medium:7px; - --spectrum-button-bottom-to-text-medium:8px; - --spectrum-button-top-to-text-large:10px; - --spectrum-button-bottom-to-text-large:10px; - --spectrum-button-top-to-text-extra-large:13px; - --spectrum-button-bottom-to-text-extra-large:13px; - - --spectrum-alert-banner-close-button-spacing:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-divider:var(--spectrum-spacing-100); - --spectrum-alert-banner-edge-to-button:var(--spectrum-spacing-100); - --spectrum-alert-banner-text-to-button-vertical:var(--spectrum-spacing-100); - - --spectrum-alert-dialog-padding:var(--spectrum-spacing-500); - --spectrum-alert-dialog-description-to-buttons:var(--spectrum-spacing-700); - - --spectrum-coach-indicator-gap:6px; - --spectrum-coach-indicator-ring-diameter:var(--spectrum-spacing-300); - --spectrum-coach-indicator-quiet-ring-diameter:var(--spectrum-spacing-100); - - --spectrum-coachmark-buttongroup-display:flex; - --spectrum-coachmark-buttongroup-mobile-display:none; - --spectrum-coachmark-menu-display:inline-flex; - --spectrum-coachmark-menu-mobile-display:none; - --spectrum-well-padding:var(--spectrum-spacing-300); - --spectrum-well-margin-top:var(--spectrum-spacing-75); - --spectrum-well-min-width:240px; - --spectrum-well-border-radius:var(--spectrum-spacing-75); - --spectrum-workflow-icon-size-xxl:32px; - --spectrum-workflow-icon-size-xxs:12px; - - --spectrum-treeview-item-indentation-medium:var(--spectrum-spacing-300); - --spectrum-treeview-item-indentation-small:var(--spectrum-spacing-200); - --spectrum-treeview-item-indentation-large:20px; - --spectrum-treeview-item-indentation-extra-large:var(--spectrum-spacing-400); - --spectrum-treeview-indicator-inset-block-start:5px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium:0px; - - --spectrum-dialog-confirm-entry-animation-distance:20px; - --spectrum-dialog-confirm-hero-height:128px; - --spectrum-dialog-confirm-border-radius:4px; - --spectrum-dialog-confirm-title-text-size:18px; - --spectrum-dialog-confirm-description-text-size:14px; - --spectrum-dialog-confirm-padding-grid:40px; - - --spectrum-datepicker-initial-width:128px; - --spectrum-datepicker-generic-padding:var(--spectrum-spacing-200); - --spectrum-datepicker-dash-line-height:24px; - --spectrum-datepicker-width-quiet-first:72px; - --spectrum-datepicker-width-quiet-second:16px; - --spectrum-datepicker-datetime-width-first:36px; - --spectrum-datepicker-invalid-icon-to-button:8px; - --spectrum-datepicker-invalid-icon-to-button-quiet:7px; - --spectrum-datepicker-input-datetime-width:var(--spectrum-spacing-400); - - --spectrum-pagination-textfield-width:var(--spectrum-spacing-700); - --spectrum-pagination-item-inline-spacing:5px; - - --spectrum-dial-border-radius:16px; - --spectrum-dial-handle-position:8px; - --spectrum-dial-handle-block-margin:16px; - --spectrum-dial-handle-inline-margin:16px; - --spectrum-dial-controls-margin:8px; - --spectrum-dial-label-gap-y:5px; - --spectrum-dial-label-container-top-to-text:4px; - - --spectrum-assetcard-focus-ring-border-radius:8px; - --spectrum-assetcard-selectionindicator-margin:12px; - --spectrum-assetcard-title-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-header-content-font-size:var(--spectrum-heading-size-xs); - --spectrum-assetcard-content-font-size:var(--spectrum-body-size-s); - - --spectrum-tooltip-animation-distance:var(--spectrum-spacing-75); - - --spectrum-ui-icon-medium-display:block; - --spectrum-ui-icon-large-display:none; -} diff --git a/tokens/dist/index.css b/tokens/dist/index.css index bddfb14e6df..b66234ac9f3 100644 --- a/tokens/dist/index.css +++ b/tokens/dist/index.css @@ -12,503 +12,35 @@ */ .spectrum--dark { - --spectrum-overlay-opacity: 0.5; - --spectrum-drop-shadow-color-rgb: 0, 0, 0; - --spectrum-drop-shadow-color-opacity: 0.5; - --spectrum-drop-shadow-color: rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color: var(--spectrum-gray-50); - --spectrum-background-layer-1-color: var(--spectrum-gray-75); - --spectrum-background-layer-2-color: var(--spectrum-gray-100); - --spectrum-neutral-background-color-default: var(--spectrum-gray-400); - --spectrum-neutral-background-color-hover: var(--spectrum-gray-300); - --spectrum-neutral-background-color-down: var(--spectrum-gray-200); - --spectrum-neutral-background-color-key-focus: var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-400); - --spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-200); - --spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-300); - --spectrum-accent-background-color-default: var(--spectrum-accent-color-500); - --spectrum-accent-background-color-hover: var(--spectrum-accent-color-400); - --spectrum-accent-background-color-down: var(--spectrum-accent-color-300); - --spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-400); - --spectrum-informative-background-color-default: var(--spectrum-informative-color-500); - --spectrum-informative-background-color-hover: var(--spectrum-informative-color-400); - --spectrum-informative-background-color-down: var(--spectrum-informative-color-300); - --spectrum-informative-background-color-key-focus: var(--spectrum-informative-color-400); - --spectrum-negative-background-color-default: var(--spectrum-negative-color-500); - --spectrum-negative-background-color-hover: var(--spectrum-negative-color-400); - --spectrum-negative-background-color-down: var(--spectrum-negative-color-300); - --spectrum-negative-background-color-key-focus: var(--spectrum-negative-color-400); - --spectrum-positive-background-color-default: var(--spectrum-positive-color-500); - --spectrum-positive-background-color-hover: var(--spectrum-positive-color-400); - --spectrum-positive-background-color-down: var(--spectrum-positive-color-300); - --spectrum-positive-background-color-key-focus: var(--spectrum-positive-color-400); - --spectrum-notice-background-color-default: var(--spectrum-notice-color-800); - --spectrum-gray-background-color-default: var(--spectrum-gray-700); - --spectrum-red-background-color-default: var(--spectrum-red-700); - --spectrum-orange-background-color-default: var(--spectrum-orange-800); - --spectrum-yellow-background-color-default: var(--spectrum-yellow-1000); - --spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-900); - --spectrum-celery-background-color-default: var(--spectrum-celery-800); - --spectrum-green-background-color-default: var(--spectrum-green-700); - --spectrum-seafoam-background-color-default: var(--spectrum-seafoam-700); - --spectrum-cyan-background-color-default: var(--spectrum-cyan-700); - --spectrum-blue-background-color-default: var(--spectrum-blue-700); - --spectrum-indigo-background-color-default: var(--spectrum-indigo-700); - --spectrum-purple-background-color-default: var(--spectrum-purple-700); - --spectrum-fuchsia-background-color-default: var(--spectrum-fuchsia-700); - --spectrum-magenta-background-color-default: var(--spectrum-magenta-700); - --spectrum-neutral-visual-color: var(--spectrum-gray-600); - --spectrum-accent-visual-color: var(--spectrum-accent-color-900); - --spectrum-informative-visual-color: var(--spectrum-informative-color-900); - --spectrum-negative-visual-color: var(--spectrum-negative-color-700); - --spectrum-notice-visual-color: var(--spectrum-notice-color-900); - --spectrum-positive-visual-color: var(--spectrum-positive-color-800); - --spectrum-gray-visual-color: var(--spectrum-gray-600); - --spectrum-red-visual-color: var(--spectrum-red-700); - --spectrum-orange-visual-color: var(--spectrum-orange-900); - --spectrum-yellow-visual-color: var(--spectrum-yellow-1100); - --spectrum-chartreuse-visual-color: var(--spectrum-chartreuse-900); - --spectrum-celery-visual-color: var(--spectrum-celery-800); - --spectrum-green-visual-color: var(--spectrum-green-800); - --spectrum-seafoam-visual-color: var(--spectrum-seafoam-800); - --spectrum-cyan-visual-color: var(--spectrum-cyan-900); - --spectrum-blue-visual-color: var(--spectrum-blue-900); - --spectrum-indigo-visual-color: var(--spectrum-indigo-900); - --spectrum-purple-visual-color: var(--spectrum-purple-900); - --spectrum-fuchsia-visual-color: var(--spectrum-fuchsia-900); - --spectrum-magenta-visual-color: var(--spectrum-magenta-900); - --spectrum-opacity-checkerboard-square-dark: var(--spectrum-gray-800); - --spectrum-gray-50-rgb: 29, 29, 29; - --spectrum-gray-50: rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb: 38, 38, 38; - --spectrum-gray-75: rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb: 50, 50, 50; - --spectrum-gray-100: rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb: 63, 63, 63; - --spectrum-gray-200: rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb: 84, 84, 84; - --spectrum-gray-300: rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb: 112, 112, 112; - --spectrum-gray-400: rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb: 144, 144, 144; - --spectrum-gray-500: rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb: 178, 178, 178; - --spectrum-gray-600: rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb: 209, 209, 209; - --spectrum-gray-700: rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb: 235, 235, 235; - --spectrum-gray-800: rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb: 255, 255, 255; - --spectrum-gray-900: rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb: 0, 56, 119; - --spectrum-blue-100: rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb: 0, 65, 138; - --spectrum-blue-200: rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb: 0, 77, 163; - --spectrum-blue-300: rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb: 0, 89, 194; - --spectrum-blue-400: rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb: 3, 103, 224; - --spectrum-blue-500: rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb: 19, 121, 243; - --spectrum-blue-600: rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb: 52, 143, 244; - --spectrum-blue-700: rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb: 84, 163, 246; - --spectrum-blue-800: rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb: 114, 183, 249; - --spectrum-blue-900: rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb: 143, 202, 252; - --spectrum-blue-1000: rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb: 174, 219, 254; - --spectrum-blue-1100: rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb: 204, 233, 255; - --spectrum-blue-1200: rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb: 232, 246, 255; - --spectrum-blue-1300: rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb: 255, 255, 255; - --spectrum-blue-1400: rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb: 123, 0, 0; - --spectrum-red-100: rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb: 141, 0, 0; - --spectrum-red-200: rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb: 165, 0, 0; - --spectrum-red-300: rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb: 190, 4, 3; - --spectrum-red-400: rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb: 215, 25, 19; - --spectrum-red-500: rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb: 234, 56, 41; - --spectrum-red-600: rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb: 246, 88, 67; - --spectrum-red-700: rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb: 255, 117, 94; - --spectrum-red-800: rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb: 255, 149, 129; - --spectrum-red-900: rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb: 255, 176, 161; - --spectrum-red-1000: rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb: 255, 201, 189; - --spectrum-red-1100: rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb: 255, 222, 216; - --spectrum-red-1200: rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb: 255, 241, 238; - --spectrum-red-1300: rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb: 255, 255, 255; - --spectrum-red-1400: rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb: 102, 37, 0; - --spectrum-orange-100: rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb: 117, 45, 0; - --spectrum-orange-200: rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb: 137, 55, 0; - --spectrum-orange-300: rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb: 158, 66, 0; - --spectrum-orange-400: rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb: 180, 78, 0; - --spectrum-orange-500: rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb: 202, 93, 0; - --spectrum-orange-600: rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb: 225, 109, 0; - --spectrum-orange-700: rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb: 244, 129, 12; - --spectrum-orange-800: rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb: 254, 154, 46; - --spectrum-orange-900: rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb: 255, 181, 88; - --spectrum-orange-1000: rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb: 253, 206, 136; - --spectrum-orange-1100: rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb: 255, 225, 179; - --spectrum-orange-1200: rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb: 255, 242, 221; - --spectrum-orange-1300: rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb: 255, 253, 249; - --spectrum-orange-1400: rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb: 76, 54, 0; - --spectrum-yellow-100: rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb: 88, 64, 0; - --spectrum-yellow-200: rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb: 103, 76, 0; - --spectrum-yellow-300: rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb: 119, 89, 0; - --spectrum-yellow-400: rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb: 136, 104, 0; - --spectrum-yellow-500: rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb: 155, 120, 0; - --spectrum-yellow-600: rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb: 174, 137, 0; - --spectrum-yellow-700: rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb: 192, 156, 0; - --spectrum-yellow-800: rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb: 211, 174, 0; - --spectrum-yellow-900: rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb: 228, 194, 0; - --spectrum-yellow-1000: rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb: 244, 213, 0; - --spectrum-yellow-1100: rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb: 249, 232, 92; - --spectrum-yellow-1200: rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb: 252, 246, 187; - --spectrum-yellow-1300: rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb: 255, 255, 255; - --spectrum-yellow-1400: rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb: 48, 64, 0; - --spectrum-chartreuse-100: rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb: 55, 74, 0; - --spectrum-chartreuse-200: rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb: 65, 87, 0; - --spectrum-chartreuse-300: rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb: 76, 102, 0; - --spectrum-chartreuse-400: rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb: 89, 118, 0; - --spectrum-chartreuse-500: rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb: 102, 136, 0; - --spectrum-chartreuse-600: rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb: 117, 154, 0; - --spectrum-chartreuse-700: rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb: 132, 173, 1; - --spectrum-chartreuse-800: rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb: 148, 192, 8; - --spectrum-chartreuse-900: rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb: 166, 211, 18; - --spectrum-chartreuse-1000: rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb: 184, 229, 37; - --spectrum-chartreuse-1100: rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb: 205, 245, 71; - --spectrum-chartreuse-1200: rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb: 231, 254, 154; - --spectrum-chartreuse-1300: rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb: 255, 255, 255; - --spectrum-chartreuse-1400: rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb: 0, 69, 10; - --spectrum-celery-100: rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb: 0, 80, 12; - --spectrum-celery-200: rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb: 0, 94, 14; - --spectrum-celery-300: rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb: 0, 109, 15; - --spectrum-celery-400: rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb: 0, 127, 15; - --spectrum-celery-500: rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb: 0, 145, 18; - --spectrum-celery-600: rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb: 4, 165, 30; - --spectrum-celery-700: rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb: 34, 184, 51; - --spectrum-celery-800: rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb: 68, 202, 73; - --spectrum-celery-900: rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb: 105, 220, 99; - --spectrum-celery-1000: rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb: 142, 235, 127; - --spectrum-celery-1100: rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb: 180, 247, 162; - --spectrum-celery-1200: rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb: 221, 253, 211; - --spectrum-celery-1300: rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb: 255, 255, 255; - --spectrum-celery-1400: rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb: 4, 67, 41; - --spectrum-green-100: rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb: 0, 78, 47; - --spectrum-green-200: rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb: 0, 92, 56; - --spectrum-green-300: rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb: 0, 108, 67; - --spectrum-green-400: rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb: 0, 125, 78; - --spectrum-green-500: rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb: 0, 143, 93; - --spectrum-green-600: rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb: 18, 162, 108; - --spectrum-green-700: rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb: 43, 180, 125; - --spectrum-green-800: rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb: 67, 199, 143; - --spectrum-green-900: rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb: 94, 217, 162; - --spectrum-green-1000: rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb: 129, 233, 184; - --spectrum-green-1100: rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb: 177, 244, 209; - --spectrum-green-1200: rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb: 223, 250, 234; - --spectrum-green-1300: rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb: 254, 255, 252; - --spectrum-green-1400: rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb: 18, 65, 63; - --spectrum-seafoam-100: rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb: 14, 76, 73; - --spectrum-seafoam-200: rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb: 4, 90, 87; - --spectrum-seafoam-300: rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb: 0, 105, 101; - --spectrum-seafoam-400: rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb: 0, 122, 117; - --spectrum-seafoam-500: rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb: 0, 140, 135; - --spectrum-seafoam-600: rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb: 0, 158, 152; - --spectrum-seafoam-700: rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb: 3, 178, 171; - --spectrum-seafoam-800: rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb: 54, 197, 189; - --spectrum-seafoam-900: rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb: 93, 214, 207; - --spectrum-seafoam-1000: rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb: 132, 230, 223; - --spectrum-seafoam-1100: rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb: 176, 242, 236; - --spectrum-seafoam-1200: rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb: 223, 249, 246; - --spectrum-seafoam-1300: rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb: 254, 255, 254; - --spectrum-seafoam-1400: rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb: 0, 61, 98; - --spectrum-cyan-100: rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb: 0, 71, 111; - --spectrum-cyan-200: rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb: 0, 85, 127; - --spectrum-cyan-300: rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb: 0, 100, 145; - --spectrum-cyan-400: rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb: 0, 116, 162; - --spectrum-cyan-500: rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb: 0, 134, 180; - --spectrum-cyan-600: rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb: 0, 153, 198; - --spectrum-cyan-700: rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb: 14, 173, 215; - --spectrum-cyan-800: rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb: 44, 193, 230; - --spectrum-cyan-900: rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb: 84, 211, 241; - --spectrum-cyan-1000: rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb: 127, 228, 249; - --spectrum-cyan-1100: rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb: 167, 241, 255; - --spectrum-cyan-1200: rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb: 215, 250, 255; - --spectrum-cyan-1300: rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb: 255, 255, 255; - --spectrum-cyan-1400: rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb: 40, 44, 140; - --spectrum-indigo-100: rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb: 47, 52, 163; - --spectrum-indigo-200: rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb: 57, 63, 187; - --spectrum-indigo-300: rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb: 70, 75, 211; - --spectrum-indigo-400: rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb: 85, 91, 231; - --spectrum-indigo-500: rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb: 104, 109, 244; - --spectrum-indigo-600: rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb: 124, 129, 251; - --spectrum-indigo-700: rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb: 145, 149, 255; - --spectrum-indigo-800: rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb: 167, 170, 255; - --spectrum-indigo-900: rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb: 188, 190, 255; - --spectrum-indigo-1000: rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb: 208, 210, 255; - --spectrum-indigo-1100: rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb: 226, 228, 255; - --spectrum-indigo-1200: rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb: 243, 243, 254; - --spectrum-indigo-1300: rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb: 255, 255, 255; - --spectrum-indigo-1400: rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb: 76, 13, 157; - --spectrum-purple-100: rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb: 89, 17, 177; - --spectrum-purple-200: rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb: 105, 28, 200; - --spectrum-purple-300: rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb: 122, 45, 218; - --spectrum-purple-400: rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb: 140, 65, 233; - --spectrum-purple-500: rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb: 157, 87, 243; - --spectrum-purple-600: rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb: 172, 111, 249; - --spectrum-purple-700: rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb: 187, 135, 251; - --spectrum-purple-800: rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb: 202, 159, 252; - --spectrum-purple-900: rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb: 215, 182, 254; - --spectrum-purple-1000: rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb: 228, 204, 254; - --spectrum-purple-1100: rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb: 239, 223, 255; - --spectrum-purple-1200: rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb: 249, 240, 255; - --spectrum-purple-1300: rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb: 255, 253, 255; - --spectrum-purple-1400: rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb: 107, 3, 106; - --spectrum-fuchsia-100: rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb: 123, 0, 123; - --spectrum-fuchsia-200: rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb: 144, 0, 145; - --spectrum-fuchsia-300: rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb: 165, 13, 166; - --spectrum-fuchsia-400: rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb: 185, 37, 185; - --spectrum-fuchsia-500: rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb: 205, 57, 206; - --spectrum-fuchsia-600: rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb: 223, 81, 224; - --spectrum-fuchsia-700: rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb: 235, 110, 236; - --spectrum-fuchsia-800: rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb: 244, 140, 242; - --spectrum-fuchsia-900: rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb: 250, 168, 245; - --spectrum-fuchsia-1000: rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb: 254, 194, 248; - --spectrum-fuchsia-1100: rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb: 255, 219, 250; - --spectrum-fuchsia-1200: rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb: 255, 239, 252; - --spectrum-fuchsia-1300: rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb: 255, 253, 255; - --spectrum-fuchsia-1400: rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb: 118, 0, 58; - --spectrum-magenta-100: rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb: 137, 0, 66; - --spectrum-magenta-200: rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb: 160, 0, 77; - --spectrum-magenta-300: rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb: 182, 18, 90; - --spectrum-magenta-400: rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb: 203, 38, 109; - --spectrum-magenta-500: rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb: 222, 61, 130; - --spectrum-magenta-600: rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb: 237, 87, 149; - --spectrum-magenta-700: rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb: 249, 114, 167; - --spectrum-magenta-800: rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb: 255, 143, 185; - --spectrum-magenta-900: rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb: 255, 172, 202; - --spectrum-magenta-1000: rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb: 255, 198, 218; - --spectrum-magenta-1100: rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb: 255, 221, 233; - --spectrum-magenta-1200: rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb: 255, 240, 245; - --spectrum-magenta-1300: rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb: 255, 252, 253; - --spectrum-magenta-1400: rgba(var(--spectrum-magenta-1400-rgb)); - --spectrum-icon-color-blue-primary-default: var(--spectrum-blue-800); - --spectrum-icon-color-green-primary-default: var(--spectrum-green-800); - --spectrum-icon-color-red-primary-default: var(--spectrum-red-700); - --spectrum-icon-color-yellow-primary-default: var(--spectrum-yellow-1000); -} -.spectrum--darkest { --spectrum-overlay-opacity: 0.6; - --spectrum-drop-shadow-color-rgb: 0, 0, 0; - --spectrum-drop-shadow-color-opacity: 0.8; - --spectrum-drop-shadow-color: rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color: var(--spectrum-gray-50); - --spectrum-background-layer-1-color: var(--spectrum-gray-75); - --spectrum-background-layer-2-color: var(--spectrum-gray-100); - --spectrum-neutral-background-color-default: var(--spectrum-gray-400); - --spectrum-neutral-background-color-hover: var(--spectrum-gray-300); - --spectrum-neutral-background-color-down: var(--spectrum-gray-200); - --spectrum-neutral-background-color-key-focus: var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-400); - --spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-300); - --spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-200); - --spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-300); - --spectrum-accent-background-color-default: var(--spectrum-accent-color-600); - --spectrum-accent-background-color-hover: var(--spectrum-accent-color-500); - --spectrum-accent-background-color-down: var(--spectrum-accent-color-400); - --spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-500); - --spectrum-informative-background-color-default: var(--spectrum-informative-color-600); - --spectrum-informative-background-color-hover: var(--spectrum-informative-color-500); - --spectrum-informative-background-color-down: var(--spectrum-informative-color-400); - --spectrum-informative-background-color-key-focus: var(--spectrum-informative-color-500); - --spectrum-negative-background-color-default: var(--spectrum-negative-color-600); - --spectrum-negative-background-color-hover: var(--spectrum-negative-color-500); - --spectrum-negative-background-color-down: var(--spectrum-negative-color-400); - --spectrum-negative-background-color-key-focus: var(--spectrum-negative-color-500); - --spectrum-positive-background-color-default: var(--spectrum-positive-color-600); - --spectrum-positive-background-color-hover: var(--spectrum-positive-color-500); - --spectrum-positive-background-color-down: var(--spectrum-positive-color-400); - --spectrum-positive-background-color-key-focus: var(--spectrum-positive-color-500); - --spectrum-notice-background-color-default: var(--spectrum-notice-color-800); - --spectrum-gray-background-color-default: var(--spectrum-gray-700); + --spectrum-background-layer-2-color: var(--spectrum-gray-75); + --spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-500); + --spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-400); + --spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-400); + --spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-400); + --spectrum-accent-background-color-default: var(--spectrum-accent-color-700); + --spectrum-accent-background-color-hover: var(--spectrum-accent-color-600); + --spectrum-accent-background-color-down: var(--spectrum-accent-color-600); + --spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-600); + --spectrum-informative-background-color-default: var(--spectrum-informative-color-700); + --spectrum-informative-background-color-hover: var(--spectrum-informative-color-600); + --spectrum-informative-background-color-down: var(--spectrum-informative-color-600); + --spectrum-informative-background-color-key-focus: var(--spectrum-informative-color-600); + --spectrum-negative-background-color-default: var(--spectrum-negative-color-700); + --spectrum-negative-background-color-hover: var(--spectrum-negative-color-600); + --spectrum-negative-background-color-down: var(--spectrum-negative-color-600); + --spectrum-negative-background-color-key-focus: var(--spectrum-negative-color-600); + --spectrum-positive-background-color-default: var(--spectrum-positive-color-700); + --spectrum-positive-background-color-hover: var(--spectrum-positive-color-600); + --spectrum-positive-background-color-down: var(--spectrum-positive-color-600); + --spectrum-positive-background-color-key-focus: var(--spectrum-positive-color-600); + --spectrum-notice-background-color-default: var(--spectrum-notice-color-900); + --spectrum-gray-background-color-default: var(--spectrum-gray-500); --spectrum-red-background-color-default: var(--spectrum-red-700); - --spectrum-orange-background-color-default: var(--spectrum-orange-800); - --spectrum-yellow-background-color-default: var(--spectrum-yellow-1000); - --spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-900); - --spectrum-celery-background-color-default: var(--spectrum-celery-800); + --spectrum-orange-background-color-default: var(--spectrum-orange-900); + --spectrum-yellow-background-color-default: var(--spectrum-yellow-1100); + --spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-1000); + --spectrum-celery-background-color-default: var(--spectrum-celery-900); --spectrum-green-background-color-default: var(--spectrum-green-700); --spectrum-seafoam-background-color-default: var(--spectrum-seafoam-700); --spectrum-cyan-background-color-default: var(--spectrum-cyan-700); @@ -537,434 +69,721 @@ --spectrum-purple-visual-color: var(--spectrum-purple-900); --spectrum-fuchsia-visual-color: var(--spectrum-fuchsia-900); --spectrum-magenta-visual-color: var(--spectrum-magenta-900); + --spectrum-background-elevated-color: var(--spectrum-gray-75); + --spectrum-background-pasteboard-color: var(--spectrum-gray-25); + --spectrum-brown-visual-color: var(--spectrum-brown-900); + --spectrum-cinnamon-visual-color: var(--spectrum-cinnamon-900); + --spectrum-pink-visual-color: var(--spectrum-pink-900); + --spectrum-silver-visual-color: var(--spectrum-silver-900); + --spectrum-turquoise-visual-color: var(--spectrum-turquoise-900); + --spectrum-brown-background-color-default: var(--spectrum-brown-700); + --spectrum-cinnamon-background-color-default: var(--spectrum-cinnamon-700); + --spectrum-pink-background-color-default: var(--spectrum-pink-700); + --spectrum-silver-background-color-default: var(--spectrum-silver-700); + --spectrum-turquoise-background-color-default: var(--spectrum-turquoise-700); + --spectrum-drop-shadow-color-100-rgb: 0, 0, 0; + --spectrum-drop-shadow-color-100-opacity: 0.36; + --spectrum-drop-shadow-color-100: rgba(var(--spectrum-drop-shadow-color-100-rgb), var(--spectrum-drop-shadow-color-100-opacity)); + --spectrum-drop-shadow-color-200-rgb: 0, 0, 0; + --spectrum-drop-shadow-color-200-opacity: 0.48; + --spectrum-drop-shadow-color-200: rgba(var(--spectrum-drop-shadow-color-200-rgb), var(--spectrum-drop-shadow-color-200-opacity)); --spectrum-opacity-checkerboard-square-dark: var(--spectrum-gray-800); - --spectrum-gray-50-rgb: 0, 0, 0; + --spectrum-gray-25-rgb: 17, 17, 17; + --spectrum-gray-25: rgba(var(--spectrum-gray-25-rgb)); + --spectrum-gray-50-rgb: 27, 27, 27; --spectrum-gray-50: rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb: 14, 14, 14; + --spectrum-gray-75-rgb: 34, 34, 34; --spectrum-gray-75: rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb: 29, 29, 29; + --spectrum-gray-100-rgb: 44, 44, 44; --spectrum-gray-100: rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb: 48, 48, 48; + --spectrum-gray-200-rgb: 50, 50, 50; --spectrum-gray-200: rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb: 75, 75, 75; + --spectrum-gray-300-rgb: 57, 57, 57; --spectrum-gray-300: rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb: 106, 106, 106; + --spectrum-gray-400-rgb: 68, 68, 68; --spectrum-gray-400: rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb: 141, 141, 141; + --spectrum-gray-500-rgb: 109, 109, 109; --spectrum-gray-500: rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb: 176, 176, 176; + --spectrum-gray-600-rgb: 138, 138, 138; --spectrum-gray-600: rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb: 208, 208, 208; + --spectrum-gray-700-rgb: 175, 175, 175; --spectrum-gray-700: rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb: 235, 235, 235; + --spectrum-gray-800-rgb: 219, 219, 219; --spectrum-gray-800: rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb: 255, 255, 255; + --spectrum-gray-900-rgb: 242, 242, 242; --spectrum-gray-900: rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb: 0, 38, 81; + --spectrum-gray-1000-rgb: 255, 255, 255; + --spectrum-gray-1000: rgba(var(--spectrum-gray-1000-rgb)); + --spectrum-blue-100-rgb: 14, 23, 63; --spectrum-blue-100: rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb: 0, 50, 106; + --spectrum-blue-200-rgb: 15, 28, 82; --spectrum-blue-200: rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb: 0, 64, 135; + --spectrum-blue-300-rgb: 12, 33, 117; --spectrum-blue-300: rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb: 0, 78, 166; + --spectrum-blue-400-rgb: 18, 45, 154; --spectrum-blue-400: rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb: 0, 92, 200; + --spectrum-blue-500-rgb: 26, 58, 195; --spectrum-blue-500: rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb: 6, 108, 231; + --spectrum-blue-600-rgb: 37, 73, 229; --spectrum-blue-600: rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb: 29, 128, 245; + --spectrum-blue-700-rgb: 52, 91, 248; --spectrum-blue-700: rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb: 64, 150, 243; + --spectrum-blue-800-rgb: 69, 110, 254; --spectrum-blue-800: rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb: 94, 170, 247; + --spectrum-blue-900-rgb: 86, 129, 255; --spectrum-blue-900: rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb: 124, 189, 250; + --spectrum-blue-1000-rgb: 105, 149, 254; --spectrum-blue-1000: rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb: 152, 206, 253; + --spectrum-blue-1100-rgb: 124, 169, 252; --spectrum-blue-1100: rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb: 179, 222, 254; + --spectrum-blue-1200-rgb: 152, 192, 252; --spectrum-blue-1200: rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb: 206, 234, 255; + --spectrum-blue-1300-rgb: 181, 213, 253; --spectrum-blue-1300: rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb: 227, 243, 255; + --spectrum-blue-1400-rgb: 213, 231, 254; --spectrum-blue-1400: rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb: 87, 0, 0; + --spectrum-blue-1500-rgb: 238, 245, 255; + --spectrum-blue-1500: rgba(var(--spectrum-blue-1500-rgb)); + --spectrum-blue-1600-rgb: 255, 255, 255; + --spectrum-blue-1600: rgba(var(--spectrum-blue-1600-rgb)); + --spectrum-red-100-rgb: 54, 10, 3; --spectrum-red-100: rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb: 110, 0, 0; + --spectrum-red-200-rgb: 68, 13, 5; --spectrum-red-200: rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb: 138, 0, 0; + --spectrum-red-300-rgb: 87, 17, 7; --spectrum-red-300: rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb: 167, 0, 0; + --spectrum-red-400-rgb: 115, 24, 11; --spectrum-red-400: rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb: 196, 7, 6; + --spectrum-red-500-rgb: 147, 31, 17; --spectrum-red-500: rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb: 221, 33, 24; + --spectrum-red-600-rgb: 177, 38, 23; --spectrum-red-600: rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb: 238, 67, 49; + --spectrum-red-700-rgb: 205, 46, 29; --spectrum-red-700: rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb: 249, 99, 76; + --spectrum-red-800-rgb: 230, 54, 35; --spectrum-red-800: rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb: 255, 129, 107; + --spectrum-red-900-rgb: 252, 67, 46; --spectrum-red-900: rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb: 255, 158, 140; + --spectrum-red-1000-rgb: 255, 103, 86; --spectrum-red-1000: rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb: 255, 183, 169; + --spectrum-red-1100-rgb: 255, 134, 120; --spectrum-red-1100: rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb: 255, 205, 195; + --spectrum-red-1200-rgb: 255, 167, 157; --spectrum-red-1200: rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb: 255, 223, 217; + --spectrum-red-1300-rgb: 255, 196, 189; --spectrum-red-1300: rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb: 255, 237, 234; + --spectrum-red-1400-rgb: 255, 222, 219; --spectrum-red-1400: rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb: 72, 24, 1; + --spectrum-red-1500-rgb: 255, 242, 240; + --spectrum-red-1500: rgba(var(--spectrum-red-1500-rgb)); + --spectrum-red-1600-rgb: 255, 255, 255; + --spectrum-red-1600: rgba(var(--spectrum-red-1600-rgb)); + --spectrum-orange-100-rgb: 49, 16, 0; --spectrum-orange-100: rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb: 92, 32, 0; + --spectrum-orange-200-rgb: 61, 21, 0; --spectrum-orange-200: rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb: 115, 43, 0; + --spectrum-orange-300-rgb: 80, 27, 0; --spectrum-orange-300: rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb: 138, 55, 0; + --spectrum-orange-400-rgb: 106, 36, 0; --spectrum-orange-400: rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb: 162, 68, 0; + --spectrum-orange-500-rgb: 135, 47, 0; --spectrum-orange-500: rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb: 186, 82, 0; + --spectrum-orange-600-rgb: 162, 59, 0; --spectrum-orange-600: rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb: 210, 98, 0; + --spectrum-orange-700-rgb: 185, 73, 0; --spectrum-orange-700: rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb: 232, 116, 0; + --spectrum-orange-800-rgb: 205, 86, 0; --spectrum-orange-800: rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb: 249, 137, 23; + --spectrum-orange-900-rgb: 224, 100, 0; --spectrum-orange-900: rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb: 255, 162, 59; + --spectrum-orange-1000-rgb: 243, 117, 0; --spectrum-orange-1000: rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb: 255, 188, 102; + --spectrum-orange-1100-rgb: 255, 137, 0; --spectrum-orange-1100: rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb: 253, 210, 145; + --spectrum-orange-1200-rgb: 255, 173, 45; --spectrum-orange-1200: rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb: 255, 226, 181; + --spectrum-orange-1300-rgb: 255, 201, 116; --spectrum-orange-1300: rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb: 255, 239, 213; + --spectrum-orange-1400-rgb: 255, 225, 178; --spectrum-orange-1400: rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb: 53, 36, 0; + --spectrum-orange-1500-rgb: 255, 243, 225; + --spectrum-orange-1500: rgba(var(--spectrum-orange-1500-rgb)); + --spectrum-orange-1600-rgb: 255, 255, 255; + --spectrum-orange-1600: rgba(var(--spectrum-orange-1600-rgb)); + --spectrum-yellow-100-rgb: 37, 23, 0; --spectrum-yellow-100: rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb: 68, 47, 0; + --spectrum-yellow-200-rgb: 47, 29, 0; --spectrum-yellow-200: rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb: 86, 62, 0; + --spectrum-yellow-300-rgb: 61, 39, 0; --spectrum-yellow-300: rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb: 103, 77, 0; + --spectrum-yellow-400-rgb: 83, 52, 0; --spectrum-yellow-400: rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb: 122, 92, 0; + --spectrum-yellow-500-rgb: 107, 67, 0; --spectrum-yellow-500: rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb: 141, 108, 0; + --spectrum-yellow-600-rgb: 130, 82, 0; --spectrum-yellow-600: rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb: 161, 126, 0; + --spectrum-yellow-700-rgb: 151, 97, 0; --spectrum-yellow-700: rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb: 180, 144, 0; + --spectrum-yellow-800-rgb: 169, 110, 0; --spectrum-yellow-800: rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb: 199, 162, 0; + --spectrum-yellow-900-rgb: 186, 124, 0; --spectrum-yellow-900: rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb: 216, 181, 0; + --spectrum-yellow-1000-rgb: 203, 141, 0; --spectrum-yellow-1000: rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb: 233, 199, 0; + --spectrum-yellow-1100-rgb: 218, 159, 0; --spectrum-yellow-1100: rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb: 247, 216, 4; + --spectrum-yellow-1200-rgb: 235, 183, 0; --spectrum-yellow-1200: rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb: 249, 233, 97; + --spectrum-yellow-1300-rgb: 249, 206, 0; --spectrum-yellow-1300: rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb: 252, 243, 170; + --spectrum-yellow-1400-rgb: 255, 230, 86; --spectrum-yellow-1400: rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb: 32, 43, 0; + --spectrum-yellow-1500-rgb: 255, 246, 195; + --spectrum-yellow-1500: rgba(var(--spectrum-yellow-1500-rgb)); + --spectrum-yellow-1600-rgb: 255, 255, 255; + --spectrum-yellow-1600: rgba(var(--spectrum-yellow-1600-rgb)); + --spectrum-chartreuse-100-rgb: 23, 28, 0; --spectrum-chartreuse-100: rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb: 42, 56, 0; + --spectrum-chartreuse-200-rgb: 30, 36, 0; --spectrum-chartreuse-200: rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb: 54, 72, 0; + --spectrum-chartreuse-300-rgb: 39, 47, 0; --spectrum-chartreuse-300: rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb: 66, 88, 0; + --spectrum-chartreuse-400-rgb: 53, 63, 0; --spectrum-chartreuse-400: rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb: 79, 105, 0; + --spectrum-chartreuse-500-rgb: 68, 82, 0; --spectrum-chartreuse-500: rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb: 93, 123, 0; + --spectrum-chartreuse-600-rgb: 83, 100, 0; --spectrum-chartreuse-600: rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb: 107, 142, 0; + --spectrum-chartreuse-700-rgb: 97, 116, 0; --spectrum-chartreuse-700: rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb: 122, 161, 0; + --spectrum-chartreuse-800-rgb: 109, 131, 0; --spectrum-chartreuse-800: rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb: 138, 180, 3; + --spectrum-chartreuse-900-rgb: 122, 147, 0; --spectrum-chartreuse-900: rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb: 154, 198, 11; + --spectrum-chartreuse-1000-rgb: 136, 164, 0; --spectrum-chartreuse-1000: rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb: 170, 216, 22; + --spectrum-chartreuse-1100-rgb: 151, 181, 0; --spectrum-chartreuse-1100: rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb: 187, 232, 41; + --spectrum-chartreuse-1200-rgb: 169, 203, 0; --spectrum-chartreuse-1200: rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb: 205, 246, 72; + --spectrum-chartreuse-1300-rgb: 187, 225, 0; --spectrum-chartreuse-1300: rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb: 225, 253, 132; + --spectrum-chartreuse-1400-rgb: 219, 240, 117; --spectrum-chartreuse-1400: rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb: 0, 47, 7; + --spectrum-chartreuse-1500-rgb: 242, 249, 206; + --spectrum-chartreuse-1500: rgba(var(--spectrum-chartreuse-1500-rgb)); + --spectrum-chartreuse-1600-rgb: 255, 255, 255; + --spectrum-chartreuse-1600: rgba(var(--spectrum-chartreuse-1600-rgb)); + --spectrum-celery-100-rgb: 11, 31, 0; --spectrum-celery-100: rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb: 0, 61, 9; + --spectrum-celery-200-rgb: 15, 38, 0; --spectrum-celery-200: rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb: 0, 77, 12; + --spectrum-celery-300-rgb: 21, 51, 1; --spectrum-celery-300: rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb: 0, 95, 15; + --spectrum-celery-400-rgb: 31, 67, 4; --spectrum-celery-400: rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb: 0, 113, 15; + --spectrum-celery-500-rgb: 41, 86, 8; --spectrum-celery-500: rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb: 0, 132, 15; + --spectrum-celery-600-rgb: 50, 105, 11; --spectrum-celery-600: rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb: 0, 151, 20; + --spectrum-celery-700-rgb: 60, 122, 15; --spectrum-celery-700: rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb: 13, 171, 37; + --spectrum-celery-800-rgb: 69, 138, 19; --spectrum-celery-800: rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb: 45, 191, 58; + --spectrum-celery-900-rgb: 78, 154, 23; --spectrum-celery-900: rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb: 80, 208, 82; + --spectrum-celery-1000-rgb: 88, 172, 28; --spectrum-celery-1000: rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb: 115, 224, 107; + --spectrum-celery-1100-rgb: 100, 190, 35; --spectrum-celery-1100: rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb: 147, 237, 131; + --spectrum-celery-1200-rgb: 116, 213, 46; --spectrum-celery-1200: rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb: 180, 247, 162; + --spectrum-celery-1300-rgb: 136, 234, 65; --spectrum-celery-1300: rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb: 213, 252, 202; + --spectrum-celery-1400-rgb: 170, 251, 112; --spectrum-celery-1400: rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb: 10, 44, 28; + --spectrum-celery-1500-rgb: 222, 255, 198; + --spectrum-celery-1500: rgba(var(--spectrum-celery-1500-rgb)); + --spectrum-celery-1600-rgb: 255, 255, 255; + --spectrum-celery-1600: rgba(var(--spectrum-celery-1600-rgb)); + --spectrum-green-100-rgb: 0, 30, 23; --spectrum-green-100: rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb: 7, 59, 36; + --spectrum-green-200-rgb: 0, 38, 29; --spectrum-green-200: rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb: 0, 76, 46; + --spectrum-green-300-rgb: 0, 51, 38; --spectrum-green-300: rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb: 0, 93, 57; + --spectrum-green-400-rgb: 0, 68, 48; --spectrum-green-400: rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb: 0, 111, 69; + --spectrum-green-500-rgb: 2, 87, 58; --spectrum-green-500: rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb: 0, 130, 82; + --spectrum-green-600-rgb: 3, 106, 67; --spectrum-green-600: rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb: 0, 149, 98; + --spectrum-green-700-rgb: 4, 124, 75; --spectrum-green-700: rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb: 28, 168, 114; + --spectrum-green-800-rgb: 6, 140, 82; --spectrum-green-800: rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb: 52, 187, 132; + --spectrum-green-900-rgb: 9, 157, 89; --spectrum-green-900: rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb: 75, 205, 149; + --spectrum-green-1000-rgb: 14, 175, 98; --spectrum-green-1000: rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb: 103, 222, 168; + --spectrum-green-1100-rgb: 24, 193, 110; --spectrum-green-1100: rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb: 137, 236, 188; + --spectrum-green-1200-rgb: 57, 215, 134; --spectrum-green-1200: rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb: 177, 244, 209; + --spectrum-green-1300-rgb: 126, 231, 172; --spectrum-green-1300: rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb: 214, 249, 228; + --spectrum-green-1400-rgb: 189, 241, 208; --spectrum-green-1400: rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb: 18, 43, 42; + --spectrum-green-1500-rgb: 229, 250, 236; + --spectrum-green-1500: rgba(var(--spectrum-green-1500-rgb)); + --spectrum-green-1600-rgb: 255, 255, 255; + --spectrum-green-1600: rgba(var(--spectrum-green-1600-rgb)); + --spectrum-seafoam-100-rgb: 0, 30, 27; --spectrum-seafoam-100: rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb: 19, 57, 55; + --spectrum-seafoam-200-rgb: 0, 39, 35; --spectrum-seafoam-200: rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb: 16, 73, 70; + --spectrum-seafoam-300-rgb: 0, 50, 44; --spectrum-seafoam-300: rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb: 3, 91, 88; + --spectrum-seafoam-400-rgb: 0, 67, 59; --spectrum-seafoam-400: rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb: 0, 108, 104; + --spectrum-seafoam-500-rgb: 2, 86, 75; --spectrum-seafoam-500: rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb: 0, 127, 121; + --spectrum-seafoam-600-rgb: 4, 105, 89; --spectrum-seafoam-600: rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb: 0, 146, 140; + --spectrum-seafoam-700-rgb: 6, 122, 103; --spectrum-seafoam-700: rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb: 0, 165, 159; + --spectrum-seafoam-800-rgb: 8, 138, 116; --spectrum-seafoam-800: rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb: 26, 185, 178; + --spectrum-seafoam-900-rgb: 10, 154, 128; --spectrum-seafoam-900: rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb: 66, 202, 195; + --spectrum-seafoam-1000-rgb: 12, 173, 142; --spectrum-seafoam-1000: rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb: 102, 218, 211; + --spectrum-seafoam-1100-rgb: 14, 190, 156; --spectrum-seafoam-1100: rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb: 139, 232, 225; + --spectrum-seafoam-1200-rgb: 29, 214, 176; --spectrum-seafoam-1200: rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb: 179, 242, 237; + --spectrum-seafoam-1300-rgb: 122, 229, 203; --spectrum-seafoam-1300: rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb: 215, 248, 244; + --spectrum-seafoam-1400-rgb: 186, 241, 222; --spectrum-seafoam-1400: rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb: 0, 41, 68; + --spectrum-seafoam-1500-rgb: 229, 249, 243; + --spectrum-seafoam-1500: rgba(var(--spectrum-seafoam-1500-rgb)); + --spectrum-seafoam-1600-rgb: 255, 255, 255; + --spectrum-seafoam-1600: rgba(var(--spectrum-seafoam-1600-rgb)); + --spectrum-cyan-100-rgb: 0, 29, 39; --spectrum-cyan-100: rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb: 0, 54, 88; + --spectrum-cyan-200-rgb: 0, 36, 49; --spectrum-cyan-200: rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb: 0, 69, 108; + --spectrum-cyan-300-rgb: 0, 48, 65; --spectrum-cyan-300: rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb: 0, 86, 128; + --spectrum-cyan-400-rgb: 0, 64, 88; --spectrum-cyan-400: rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb: 0, 103, 147; + --spectrum-cyan-500-rgb: 0, 82, 113; --spectrum-cyan-500: rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb: 0, 121, 167; + --spectrum-cyan-600-rgb: 3, 99, 140; --spectrum-cyan-600: rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb: 0, 140, 186; + --spectrum-cyan-700-rgb: 8, 115, 168; --spectrum-cyan-700: rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb: 4, 160, 205; + --spectrum-cyan-800-rgb: 15, 128, 194; --spectrum-cyan-800: rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb: 23, 180, 221; + --spectrum-cyan-900-rgb: 24, 142, 220; --spectrum-cyan-900: rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb: 57, 199, 234; + --spectrum-cyan-1000-rgb: 38, 159, 244; --spectrum-cyan-1000: rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb: 96, 216, 243; + --spectrum-cyan-1100-rgb: 63, 177, 255; --spectrum-cyan-1100: rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb: 134, 230, 250; + --spectrum-cyan-1200-rgb: 107, 199, 255; --spectrum-cyan-1200: rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb: 170, 242, 255; + --spectrum-cyan-1300-rgb: 152, 219, 255; --spectrum-cyan-1300: rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb: 206, 249, 255; + --spectrum-cyan-1400-rgb: 195, 236, 252; --spectrum-cyan-1400: rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb: 26, 29, 97; + --spectrum-cyan-1500-rgb: 230, 248, 253; + --spectrum-cyan-1500: rgba(var(--spectrum-cyan-1500-rgb)); + --spectrum-cyan-1600-rgb: 255, 255, 255; + --spectrum-cyan-1600: rgba(var(--spectrum-cyan-1600-rgb)); + --spectrum-indigo-100-rgb: 30, 0, 93; --spectrum-indigo-100: rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb: 35, 39, 125; + --spectrum-indigo-200-rgb: 35, 0, 110; --spectrum-indigo-200: rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb: 46, 50, 158; + --spectrum-indigo-300-rgb: 47, 0, 140; --spectrum-indigo-300: rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb: 58, 63, 189; + --spectrum-indigo-400-rgb: 62, 12, 174; --spectrum-indigo-400: rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb: 73, 78, 216; + --spectrum-indigo-500-rgb: 79, 30, 209; --spectrum-indigo-500: rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb: 90, 96, 235; + --spectrum-indigo-600-rgb: 95, 52, 235; --spectrum-indigo-600: rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb: 110, 115, 246; + --spectrum-indigo-700-rgb: 109, 75, 248; --spectrum-indigo-700: rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb: 132, 136, 253; + --spectrum-indigo-800-rgb: 119, 97, 252; --spectrum-indigo-800: rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb: 153, 157, 255; + --spectrum-indigo-900-rgb: 128, 119, 254; --spectrum-indigo-900: rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb: 174, 177, 255; + --spectrum-indigo-1000-rgb: 139, 141, 254; --spectrum-indigo-1000: rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb: 194, 196, 255; + --spectrum-indigo-1100-rgb: 153, 161, 255; --spectrum-indigo-1100: rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb: 212, 213, 255; + --spectrum-indigo-1200-rgb: 176, 186, 255; --spectrum-indigo-1200: rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb: 227, 228, 255; + --spectrum-indigo-1300-rgb: 199, 208, 255; --spectrum-indigo-1300: rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb: 240, 240, 255; + --spectrum-indigo-1400-rgb: 223, 228, 255; --spectrum-indigo-1400: rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb: 50, 16, 104; + --spectrum-indigo-1500-rgb: 243, 244, 255; + --spectrum-indigo-1500: rgba(var(--spectrum-indigo-1500-rgb)); + --spectrum-indigo-1600-rgb: 255, 255, 255; + --spectrum-indigo-1600: rgba(var(--spectrum-indigo-1600-rgb)); + --spectrum-purple-100-rgb: 41, 0, 79; --spectrum-purple-100: rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb: 67, 13, 140; + --spectrum-purple-200-rgb: 50, 0, 96; --spectrum-purple-200: rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb: 86, 16, 173; + --spectrum-purple-300-rgb: 64, 0, 122; --spectrum-purple-300: rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb: 106, 29, 200; + --spectrum-purple-400-rgb: 83, 0, 159; --spectrum-purple-400: rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb: 126, 49, 222; + --spectrum-purple-500-rgb: 107, 6, 195; --spectrum-purple-500: rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb: 145, 70, 236; + --spectrum-purple-600-rgb: 130, 34, 215; --spectrum-purple-600: rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb: 162, 94, 246; + --spectrum-purple-700-rgb: 148, 62, 224; --spectrum-purple-700: rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb: 178, 119, 250; + --spectrum-purple-800-rgb: 161, 84, 229; --spectrum-purple-800: rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb: 192, 143, 252; + --spectrum-purple-900-rgb: 173, 105, 233; --spectrum-purple-900: rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb: 206, 166, 253; + --spectrum-purple-1000-rgb: 186, 127, 237; --spectrum-purple-1000: rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb: 219, 188, 254; + --spectrum-purple-1100-rgb: 197, 149, 240; --spectrum-purple-1100: rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb: 230, 207, 255; + --spectrum-purple-1200-rgb: 212, 176, 244; --spectrum-purple-1200: rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb: 240, 224, 255; + --spectrum-purple-1300-rgb: 225, 201, 247; --spectrum-purple-1300: rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb: 248, 237, 255; + --spectrum-purple-1400-rgb: 238, 224, 250; --spectrum-purple-1400: rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb: 70, 14, 68; + --spectrum-purple-1500-rgb: 248, 243, 253; + --spectrum-purple-1500: rgba(var(--spectrum-purple-1500-rgb)); + --spectrum-purple-1600-rgb: 255, 255, 255; + --spectrum-purple-1600: rgba(var(--spectrum-purple-1600-rgb)); + --spectrum-fuchsia-100-rgb: 50, 0, 61; --spectrum-fuchsia-100: rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb: 93, 9, 92; + --spectrum-fuchsia-200-rgb: 61, 0, 74; --spectrum-fuchsia-200: rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb: 120, 0, 120; + --spectrum-fuchsia-300-rgb: 79, 0, 95; --spectrum-fuchsia-300: rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb: 146, 0, 147; + --spectrum-fuchsia-400-rgb: 102, 9, 120; --spectrum-fuchsia-400: rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb: 169, 19, 170; + --spectrum-fuchsia-500-rgb: 127, 23, 146; --spectrum-fuchsia-500: rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb: 191, 43, 191; + --spectrum-fuchsia-600-rgb: 151, 38, 170; --spectrum-fuchsia-600: rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb: 211, 65, 213; + --spectrum-fuchsia-700-rgb: 173, 51, 192; --spectrum-fuchsia-700: rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb: 228, 91, 229; + --spectrum-fuchsia-800-rgb: 192, 64, 212; --spectrum-fuchsia-800: rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb: 239, 120, 238; + --spectrum-fuchsia-900-rgb: 213, 73, 235; --spectrum-fuchsia-900: rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb: 246, 149, 243; + --spectrum-fuchsia-1000-rgb: 232, 91, 253; --spectrum-fuchsia-1000: rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb: 251, 175, 246; + --spectrum-fuchsia-1100-rgb: 240, 122, 255; --spectrum-fuchsia-1100: rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb: 254, 199, 248; + --spectrum-fuchsia-1200-rgb: 245, 159, 255; --spectrum-fuchsia-1200: rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb: 255, 220, 250; + --spectrum-fuchsia-1300-rgb: 248, 191, 255; --spectrum-fuchsia-1300: rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb: 255, 235, 252; + --spectrum-fuchsia-1400-rgb: 251, 219, 255; --spectrum-fuchsia-1400: rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb: 83, 3, 41; + --spectrum-fuchsia-1500-rgb: 253, 241, 255; + --spectrum-fuchsia-1500: rgba(var(--spectrum-fuchsia-1500-rgb)); + --spectrum-fuchsia-1600-rgb: 255, 255, 255; + --spectrum-fuchsia-1600: rgba(var(--spectrum-fuchsia-1600-rgb)); + --spectrum-magenta-100-rgb: 59, 0, 22; --spectrum-magenta-100: rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb: 106, 0, 52; + --spectrum-magenta-200-rgb: 74, 0, 27; --spectrum-magenta-200: rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb: 133, 0, 65; + --spectrum-magenta-300-rgb: 93, 0, 34; --spectrum-magenta-300: rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb: 161, 0, 78; + --spectrum-magenta-400-rgb: 123, 0, 45; --spectrum-magenta-400: rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb: 186, 22, 93; + --spectrum-magenta-500-rgb: 152, 7, 60; --spectrum-magenta-500: rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb: 209, 43, 114; + --spectrum-magenta-600-rgb: 181, 19, 76; --spectrum-magenta-600: rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb: 227, 69, 137; + --spectrum-magenta-700-rgb: 207, 31, 92; --spectrum-magenta-700: rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb: 241, 97, 156; + --spectrum-magenta-800-rgb: 231, 41, 105; --spectrum-magenta-800: rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb: 252, 124, 173; + --spectrum-magenta-900-rgb: 255, 51, 119; --spectrum-magenta-900: rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb: 255, 152, 191; + --spectrum-magenta-1000-rgb: 255, 96, 149; --spectrum-magenta-1000: rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb: 255, 179, 207; + --spectrum-magenta-1100-rgb: 255, 128, 171; --spectrum-magenta-1100: rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb: 255, 202, 221; + --spectrum-magenta-1200-rgb: 255, 163, 194; --spectrum-magenta-1200: rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb: 255, 221, 233; + --spectrum-magenta-1300-rgb: 255, 193, 214; --spectrum-magenta-1300: rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb: 255, 236, 243; + --spectrum-magenta-1400-rgb: 255, 220, 232; --spectrum-magenta-1400: rgba(var(--spectrum-magenta-1400-rgb)); + --spectrum-magenta-1500-rgb: 255, 241, 246; + --spectrum-magenta-1500: rgba(var(--spectrum-magenta-1500-rgb)); + --spectrum-magenta-1600-rgb: 255, 255, 255; + --spectrum-magenta-1600: rgba(var(--spectrum-magenta-1600-rgb)); + --spectrum-pink-100-rgb: 58, 0, 37; + --spectrum-pink-100: rgba(var(--spectrum-pink-100-rgb)); + --spectrum-pink-200-rgb: 71, 0, 44; + --spectrum-pink-200: rgba(var(--spectrum-pink-200-rgb)); + --spectrum-pink-300-rgb: 90, 0, 57; + --spectrum-pink-300: rgba(var(--spectrum-pink-300-rgb)); + --spectrum-pink-400-rgb: 115, 7, 75; + --spectrum-pink-400: rgba(var(--spectrum-pink-400-rgb)); + --spectrum-pink-500-rgb: 143, 18, 97; + --spectrum-pink-500: rgba(var(--spectrum-pink-500-rgb)); + --spectrum-pink-600-rgb: 171, 29, 119; + --spectrum-pink-600: rgba(var(--spectrum-pink-600-rgb)); + --spectrum-pink-700-rgb: 196, 39, 138; + --spectrum-pink-700: rgba(var(--spectrum-pink-700-rgb)); + --spectrum-pink-800-rgb: 220, 47, 156; + --spectrum-pink-800: rgba(var(--spectrum-pink-800-rgb)); + --spectrum-pink-900-rgb: 236, 67, 175; + --spectrum-pink-900: rgba(var(--spectrum-pink-900-rgb)); + --spectrum-pink-1000-rgb: 251, 90, 196; + --spectrum-pink-1000: rgba(var(--spectrum-pink-1000-rgb)); + --spectrum-pink-1100-rgb: 255, 122, 210; + --spectrum-pink-1100: rgba(var(--spectrum-pink-1100-rgb)); + --spectrum-pink-1200-rgb: 255, 159, 223; + --spectrum-pink-1200: rgba(var(--spectrum-pink-1200-rgb)); + --spectrum-pink-1300-rgb: 255, 191, 234; + --spectrum-pink-1300: rgba(var(--spectrum-pink-1300-rgb)); + --spectrum-pink-1400-rgb: 255, 219, 243; + --spectrum-pink-1400: rgba(var(--spectrum-pink-1400-rgb)); + --spectrum-pink-1500-rgb: 255, 241, 250; + --spectrum-pink-1500: rgba(var(--spectrum-pink-1500-rgb)); + --spectrum-pink-1600-rgb: 255, 255, 255; + --spectrum-pink-1600: rgba(var(--spectrum-pink-1600-rgb)); + --spectrum-turquoise-100-rgb: 0, 30, 33; + --spectrum-turquoise-100: rgba(var(--spectrum-turquoise-100-rgb)); + --spectrum-turquoise-200-rgb: 0, 37, 41; + --spectrum-turquoise-200: rgba(var(--spectrum-turquoise-200-rgb)); + --spectrum-turquoise-300-rgb: 0, 49, 54; + --spectrum-turquoise-300: rgba(var(--spectrum-turquoise-300-rgb)); + --spectrum-turquoise-400-rgb: 0, 66, 72; + --spectrum-turquoise-400: rgba(var(--spectrum-turquoise-400-rgb)); + --spectrum-turquoise-500-rgb: 3, 84, 92; + --spectrum-turquoise-500: rgba(var(--spectrum-turquoise-500-rgb)); + --spectrum-turquoise-600-rgb: 5, 103, 112; + --spectrum-turquoise-600: rgba(var(--spectrum-turquoise-600-rgb)); + --spectrum-turquoise-700-rgb: 7, 120, 131; + --spectrum-turquoise-700: rgba(var(--spectrum-turquoise-700-rgb)); + --spectrum-turquoise-800-rgb: 9, 135, 147; + --spectrum-turquoise-800: rgba(var(--spectrum-turquoise-800-rgb)); + --spectrum-turquoise-900-rgb: 11, 151, 164; + --spectrum-turquoise-900: rgba(var(--spectrum-turquoise-900-rgb)); + --spectrum-turquoise-1000-rgb: 13, 168, 182; + --spectrum-turquoise-1000: rgba(var(--spectrum-turquoise-1000-rgb)); + --spectrum-turquoise-1100-rgb: 16, 186, 202; + --spectrum-turquoise-1100: rgba(var(--spectrum-turquoise-1100-rgb)); + --spectrum-turquoise-1200-rgb: 64, 208, 220; + --spectrum-turquoise-1200: rgba(var(--spectrum-turquoise-1200-rgb)); + --spectrum-turquoise-1300-rgb: 128, 225, 231; + --spectrum-turquoise-1300: rgba(var(--spectrum-turquoise-1300-rgb)); + --spectrum-turquoise-1400-rgb: 183, 240, 240; + --spectrum-turquoise-1400: rgba(var(--spectrum-turquoise-1400-rgb)); + --spectrum-turquoise-1500-rgb: 228, 249, 249; + --spectrum-turquoise-1500: rgba(var(--spectrum-turquoise-1500-rgb)); + --spectrum-turquoise-1600-rgb: 255, 255, 255; + --spectrum-turquoise-1600: rgba(var(--spectrum-turquoise-1600-rgb)); + --spectrum-brown-100-rgb: 35, 24, 8; + --spectrum-brown-100: rgba(var(--spectrum-brown-100-rgb)); + --spectrum-brown-200-rgb: 44, 31, 11; + --spectrum-brown-200: rgba(var(--spectrum-brown-200-rgb)); + --spectrum-brown-300-rgb: 58, 40, 14; + --spectrum-brown-300: rgba(var(--spectrum-brown-300-rgb)); + --spectrum-brown-400-rgb: 78, 55, 19; + --spectrum-brown-400: rgba(var(--spectrum-brown-400-rgb)); + --spectrum-brown-500-rgb: 98, 71, 30; + --spectrum-brown-500: rgba(var(--spectrum-brown-500-rgb)); + --spectrum-brown-600-rgb: 115, 88, 47; + --spectrum-brown-600: rgba(var(--spectrum-brown-600-rgb)); + --spectrum-brown-700-rgb: 132, 104, 61; + --spectrum-brown-700: rgba(var(--spectrum-brown-700-rgb)); + --spectrum-brown-800-rgb: 148, 118, 73; + --spectrum-brown-800: rgba(var(--spectrum-brown-800-rgb)); + --spectrum-brown-900-rgb: 163, 132, 84; + --spectrum-brown-900: rgba(var(--spectrum-brown-900-rgb)); + --spectrum-brown-1000-rgb: 181, 147, 98; + --spectrum-brown-1000: rgba(var(--spectrum-brown-1000-rgb)); + --spectrum-brown-1100-rgb: 199, 163, 112; + --spectrum-brown-1100: rgba(var(--spectrum-brown-1100-rgb)); + --spectrum-brown-1200-rgb: 222, 185, 130; + --spectrum-brown-1200: rgba(var(--spectrum-brown-1200-rgb)); + --spectrum-brown-1300-rgb: 232, 207, 169; + --spectrum-brown-1300: rgba(var(--spectrum-brown-1300-rgb)); + --spectrum-brown-1400-rgb: 242, 227, 206; + --spectrum-brown-1400: rgba(var(--spectrum-brown-1400-rgb)); + --spectrum-brown-1500-rgb: 250, 244, 236; + --spectrum-brown-1500: rgba(var(--spectrum-brown-1500-rgb)); + --spectrum-brown-1600-rgb: 255, 255, 255; + --spectrum-brown-1600: rgba(var(--spectrum-brown-1600-rgb)); + --spectrum-silver-100-rgb: 26, 26, 26; + --spectrum-silver-100: rgba(var(--spectrum-silver-100-rgb)); + --spectrum-silver-200-rgb: 33, 33, 33; + --spectrum-silver-200: rgba(var(--spectrum-silver-200-rgb)); + --spectrum-silver-300-rgb: 44, 44, 44; + --spectrum-silver-300: rgba(var(--spectrum-silver-300-rgb)); + --spectrum-silver-400-rgb: 59, 59, 59; + --spectrum-silver-400: rgba(var(--spectrum-silver-400-rgb)); + --spectrum-silver-500-rgb: 76, 76, 76; + --spectrum-silver-500: rgba(var(--spectrum-silver-500-rgb)); + --spectrum-silver-600-rgb: 92, 92, 92; + --spectrum-silver-600: rgba(var(--spectrum-silver-600-rgb)); + --spectrum-silver-700-rgb: 108, 108, 108; + --spectrum-silver-700: rgba(var(--spectrum-silver-700-rgb)); + --spectrum-silver-800-rgb: 123, 123, 123; + --spectrum-silver-800: rgba(var(--spectrum-silver-800-rgb)); + --spectrum-silver-900-rgb: 137, 137, 137; + --spectrum-silver-900: rgba(var(--spectrum-silver-900-rgb)); + --spectrum-silver-1000-rgb: 152, 152, 152; + --spectrum-silver-1000: rgba(var(--spectrum-silver-1000-rgb)); + --spectrum-silver-1100-rgb: 169, 169, 169; + --spectrum-silver-1100: rgba(var(--spectrum-silver-1100-rgb)); + --spectrum-silver-1200-rgb: 190, 190, 190; + --spectrum-silver-1200: rgba(var(--spectrum-silver-1200-rgb)); + --spectrum-silver-1300-rgb: 211, 211, 211; + --spectrum-silver-1300: rgba(var(--spectrum-silver-1300-rgb)); + --spectrum-silver-1400-rgb: 229, 229, 229; + --spectrum-silver-1400: rgba(var(--spectrum-silver-1400-rgb)); + --spectrum-silver-1500-rgb: 244, 244, 244; + --spectrum-silver-1500: rgba(var(--spectrum-silver-1500-rgb)); + --spectrum-silver-1600-rgb: 255, 255, 255; + --spectrum-silver-1600: rgba(var(--spectrum-silver-1600-rgb)); + --spectrum-cinnamon-100-rgb: 48, 17, 4; + --spectrum-cinnamon-100: rgba(var(--spectrum-cinnamon-100-rgb)); + --spectrum-cinnamon-200-rgb: 59, 21, 5; + --spectrum-cinnamon-200: rgba(var(--spectrum-cinnamon-200-rgb)); + --spectrum-cinnamon-300-rgb: 79, 28, 7; + --spectrum-cinnamon-300: rgba(var(--spectrum-cinnamon-300-rgb)); + --spectrum-cinnamon-400-rgb: 100, 41, 15; + --spectrum-cinnamon-400: rgba(var(--spectrum-cinnamon-400-rgb)); + --spectrum-cinnamon-500-rgb: 122, 57, 28; + --spectrum-cinnamon-500: rgba(var(--spectrum-cinnamon-500-rgb)); + --spectrum-cinnamon-600-rgb: 143, 74, 40; + --spectrum-cinnamon-600: rgba(var(--spectrum-cinnamon-600-rgb)); + --spectrum-cinnamon-700-rgb: 163, 88, 52; + --spectrum-cinnamon-700: rgba(var(--spectrum-cinnamon-700-rgb)); + --spectrum-cinnamon-800-rgb: 179, 103, 64; + --spectrum-cinnamon-800: rgba(var(--spectrum-cinnamon-800-rgb)); + --spectrum-cinnamon-900-rgb: 192, 119, 80; + --spectrum-cinnamon-900: rgba(var(--spectrum-cinnamon-900-rgb)); + --spectrum-cinnamon-1000-rgb: 206, 136, 99; + --spectrum-cinnamon-1000: rgba(var(--spectrum-cinnamon-1000-rgb)); + --spectrum-cinnamon-1100-rgb: 220, 154, 118; + --spectrum-cinnamon-1100: rgba(var(--spectrum-cinnamon-1100-rgb)); + --spectrum-cinnamon-1200-rgb: 232, 179, 149; + --spectrum-cinnamon-1200: rgba(var(--spectrum-cinnamon-1200-rgb)); + --spectrum-cinnamon-1300-rgb: 239, 203, 183; + --spectrum-cinnamon-1300: rgba(var(--spectrum-cinnamon-1300-rgb)); + --spectrum-cinnamon-1400-rgb: 246, 225, 214; + --spectrum-cinnamon-1400: rgba(var(--spectrum-cinnamon-1400-rgb)); + --spectrum-cinnamon-1500-rgb: 252, 244, 239; + --spectrum-cinnamon-1500: rgba(var(--spectrum-cinnamon-1500-rgb)); + --spectrum-cinnamon-1600-rgb: 255, 255, 255; + --spectrum-cinnamon-1600: rgba(var(--spectrum-cinnamon-1600-rgb)); --spectrum-icon-color-blue-primary-default: var(--spectrum-blue-800); --spectrum-icon-color-green-primary-default: var(--spectrum-green-800); --spectrum-icon-color-red-primary-default: var(--spectrum-red-700); --spectrum-icon-color-yellow-primary-default: var(--spectrum-yellow-1000); -} -.spectrum { - --spectrum-focus-indicator-color: var(--spectrum-blue-800); - --spectrum-static-white-focus-indicator-color: var(--spectrum-white); - --spectrum-static-black-focus-indicator-color: var(--spectrum-black); - --spectrum-overlay-color: var(--spectrum-black); - --spectrum-opacity-disabled: 0.3; - --spectrum-neutral-subdued-content-color-selected: var(--spectrum-neutral-subdued-content-color-down); - --spectrum-accent-content-color-selected: var(--spectrum-accent-content-color-down); - --spectrum-disabled-background-color: var(--spectrum-gray-200); - --spectrum-disabled-static-white-background-color: var(--spectrum-transparent-white-200); - --spectrum-disabled-static-black-background-color: var(--spectrum-transparent-black-200); - --spectrum-background-opacity-default: 0; - --spectrum-background-opacity-hover: 0.1; - --spectrum-background-opacity-down: 0.1; - --spectrum-background-opacity-key-focus: 0.1; - --spectrum-neutral-content-color-default: var(--spectrum-gray-800); - --spectrum-neutral-content-color-hover: var(--spectrum-gray-900); - --spectrum-neutral-content-color-down: var(--spectrum-gray-900); - --spectrum-neutral-content-color-focus-hover: var(--spectrum-neutral-content-color-down); - --spectrum-neutral-content-color-focus: var(--spectrum-neutral-content-color-down); - --spectrum-neutral-content-color-key-focus: var(--spectrum-gray-900); - --spectrum-neutral-subdued-content-color-default: var(--spectrum-gray-700); - --spectrum-neutral-subdued-content-color-hover: var(--spectrum-gray-800); - --spectrum-neutral-subdued-content-color-down: var(--spectrum-gray-900); - --spectrum-neutral-subdued-content-color-key-focus: var(--spectrum-gray-800); - --spectrum-accent-content-color-default: var(--spectrum-accent-color-900); - --spectrum-accent-content-color-hover: var(--spectrum-accent-color-1000); - --spectrum-accent-content-color-down: var(--spectrum-accent-color-1100); - --spectrum-accent-content-color-key-focus: var(--spectrum-accent-color-1000); - --spectrum-negative-content-color-default: var(--spectrum-negative-color-900); + --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-900-rgb); + --spectrum-dropindicator-color: var(--spectrum-blue-700); + + --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.07); + --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-white-200); + --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.07); + --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); + + --spectrum-badge-label-icon-color-primary: var(--spectrum-black); + + --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); + + --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); + + --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.07); + --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + + --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); + --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); + --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); + --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); + + --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); + --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); + --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); + --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); + + --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); + --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); + --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); + --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); + --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); + + --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); + --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); + --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); + + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-500-rgb); +} +.spectrum { + --spectrum-focus-indicator-color: var(--spectrum-blue-800); + --spectrum-static-white-focus-indicator-color: var(--spectrum-white); + --spectrum-static-black-focus-indicator-color: var(--spectrum-black); + --spectrum-overlay-color: var(--spectrum-black); + --spectrum-drop-shadow-color: var(--spectrum-drop-shadow-color-100); + --spectrum-opacity-disabled: 0.3; + --spectrum-background-base-color: var(--spectrum-gray-25); + --spectrum-background-layer-1-color: var(--spectrum-gray-50); + --spectrum-neutral-background-color-default: var(--spectrum-gray-800); + --spectrum-neutral-background-color-hover: var(--spectrum-gray-900); + --spectrum-neutral-background-color-down: var(--spectrum-gray-900); + --spectrum-neutral-background-color-key-focus: var(--spectrum-gray-900); + --spectrum-neutral-background-color-selected-default: var(--spectrum-gray-800); + --spectrum-neutral-background-color-selected-hover: var(--spectrum-gray-900); + --spectrum-neutral-background-color-selected-down: var(--spectrum-gray-900); + --spectrum-neutral-background-color-selected-key-focus: var(--spectrum-gray-900); + --spectrum-neutral-subdued-content-color-selected: var(--spectrum-neutral-subdued-content-color-down); + --spectrum-accent-content-color-selected: var(--spectrum-accent-content-color-down); + --spectrum-disabled-background-color: var(--spectrum-gray-100); + --spectrum-disabled-static-white-background-color: var(--spectrum-transparent-white-100); + --spectrum-disabled-static-black-background-color: var(--spectrum-transparent-black-100); + --spectrum-background-opacity-default: 0; + --spectrum-background-opacity-hover: 0.1; + --spectrum-background-opacity-down: 0.1; + --spectrum-background-opacity-key-focus: 0.1; + --spectrum-neutral-content-color-default: var(--spectrum-gray-800); + --spectrum-neutral-content-color-hover: var(--spectrum-gray-900); + --spectrum-neutral-content-color-down: var(--spectrum-gray-900); + --spectrum-neutral-content-color-focus-hover: var(--spectrum-neutral-content-color-down); + --spectrum-neutral-content-color-focus: var(--spectrum-neutral-content-color-down); + --spectrum-neutral-content-color-key-focus: var(--spectrum-gray-900); + --spectrum-neutral-subdued-content-color-default: var(--spectrum-gray-700); + --spectrum-neutral-subdued-content-color-hover: var(--spectrum-gray-800); + --spectrum-neutral-subdued-content-color-down: var(--spectrum-gray-800); + --spectrum-neutral-subdued-content-color-key-focus: var(--spectrum-gray-800); + --spectrum-accent-content-color-default: var(--spectrum-accent-color-900); + --spectrum-accent-content-color-hover: var(--spectrum-accent-color-1000); + --spectrum-accent-content-color-down: var(--spectrum-accent-color-1000); + --spectrum-accent-content-color-key-focus: var(--spectrum-accent-color-1000); + --spectrum-negative-content-color-default: var(--spectrum-negative-color-900); --spectrum-negative-content-color-hover: var(--spectrum-negative-color-1000); - --spectrum-negative-content-color-down: var(--spectrum-negative-color-1100); + --spectrum-negative-content-color-down: var(--spectrum-negative-color-1000); --spectrum-negative-content-color-key-focus: var(--spectrum-negative-color-1000); --spectrum-disabled-content-color: var(--spectrum-gray-400); - --spectrum-disabled-static-white-content-color: var(--spectrum-transparent-white-500); - --spectrum-disabled-static-black-content-color: var(--spectrum-transparent-black-500); + --spectrum-disabled-static-white-content-color: var(--spectrum-transparent-white-400); + --spectrum-disabled-static-black-content-color: var(--spectrum-transparent-black-400); --spectrum-disabled-border-color: var(--spectrum-gray-300); --spectrum-disabled-static-white-border-color: var(--spectrum-transparent-white-300); --spectrum-disabled-static-black-border-color: var(--spectrum-transparent-black-300); @@ -974,6 +793,10 @@ --spectrum-negative-border-color-focus-hover: var(--spectrum-negative-border-color-down); --spectrum-negative-border-color-focus: var(--spectrum-negative-color-1000); --spectrum-negative-border-color-key-focus: var(--spectrum-negative-color-1000); + --spectrum-title-color: var(--spectrum-gray-900); + --spectrum-drop-shadow-emphasized-default-color: var(--spectrum-drop-shadow-color-100); + --spectrum-drop-shadow-emphasized-hover-color: var(--spectrum-drop-shadow-color-200); + --spectrum-drop-shadow-elevated-color: var(--spectrum-drop-shadow-color-200); --spectrum-swatch-border-color: var(--spectrum-gray-900); --spectrum-swatch-border-opacity: 0.51; --spectrum-swatch-disabled-icon-border-color: var(--spectrum-black); @@ -1014,60 +837,84 @@ --spectrum-table-selected-row-background-opacity-non-emphasized-hover: 0.15; --spectrum-white-rgb: 255, 255, 255; --spectrum-white: rgba(var(--spectrum-white-rgb)); + --spectrum-transparent-white-25-rgb: 255, 255, 255; + --spectrum-transparent-white-25-opacity: 0; + --spectrum-transparent-white-25: rgba(var(--spectrum-transparent-white-25-rgb), var(--spectrum-transparent-white-25-opacity)); + --spectrum-transparent-white-50-rgb: 255, 255, 255; + --spectrum-transparent-white-50-opacity: 0.04; + --spectrum-transparent-white-50: rgba(var(--spectrum-transparent-white-50-rgb), var(--spectrum-transparent-white-50-opacity)); + --spectrum-transparent-white-75-rgb: 255, 255, 255; + --spectrum-transparent-white-75-opacity: 0.07; + --spectrum-transparent-white-75: rgba(var(--spectrum-transparent-white-75-rgb), var(--spectrum-transparent-white-75-opacity)); --spectrum-transparent-white-100-rgb: 255, 255, 255; - --spectrum-transparent-white-100-opacity: 0; + --spectrum-transparent-white-100-opacity: 0.11; --spectrum-transparent-white-100: rgba(var(--spectrum-transparent-white-100-rgb), var(--spectrum-transparent-white-100-opacity)); --spectrum-transparent-white-200-rgb: 255, 255, 255; - --spectrum-transparent-white-200-opacity: 0.1; + --spectrum-transparent-white-200-opacity: 0.14; --spectrum-transparent-white-200: rgba(var(--spectrum-transparent-white-200-rgb), var(--spectrum-transparent-white-200-opacity)); --spectrum-transparent-white-300-rgb: 255, 255, 255; - --spectrum-transparent-white-300-opacity: 0.25; + --spectrum-transparent-white-300-opacity: 0.17; --spectrum-transparent-white-300: rgba(var(--spectrum-transparent-white-300-rgb), var(--spectrum-transparent-white-300-opacity)); --spectrum-transparent-white-400-rgb: 255, 255, 255; - --spectrum-transparent-white-400-opacity: 0.4; + --spectrum-transparent-white-400-opacity: 0.21; --spectrum-transparent-white-400: rgba(var(--spectrum-transparent-white-400-rgb), var(--spectrum-transparent-white-400-opacity)); --spectrum-transparent-white-500-rgb: 255, 255, 255; - --spectrum-transparent-white-500-opacity: 0.55; + --spectrum-transparent-white-500-opacity: 0.39; --spectrum-transparent-white-500: rgba(var(--spectrum-transparent-white-500-rgb), var(--spectrum-transparent-white-500-opacity)); --spectrum-transparent-white-600-rgb: 255, 255, 255; - --spectrum-transparent-white-600-opacity: 0.7; + --spectrum-transparent-white-600-opacity: 0.51; --spectrum-transparent-white-600: rgba(var(--spectrum-transparent-white-600-rgb), var(--spectrum-transparent-white-600-opacity)); --spectrum-transparent-white-700-rgb: 255, 255, 255; - --spectrum-transparent-white-700-opacity: 0.8; + --spectrum-transparent-white-700-opacity: 0.66; --spectrum-transparent-white-700: rgba(var(--spectrum-transparent-white-700-rgb), var(--spectrum-transparent-white-700-opacity)); --spectrum-transparent-white-800-rgb: 255, 255, 255; - --spectrum-transparent-white-800-opacity: 0.9; + --spectrum-transparent-white-800-opacity: 0.85; --spectrum-transparent-white-800: rgba(var(--spectrum-transparent-white-800-rgb), var(--spectrum-transparent-white-800-opacity)); --spectrum-transparent-white-900-rgb: 255, 255, 255; - --spectrum-transparent-white-900: rgba(var(--spectrum-transparent-white-900-rgb)); + --spectrum-transparent-white-900-opacity: 0.94; + --spectrum-transparent-white-900: rgba(var(--spectrum-transparent-white-900-rgb), var(--spectrum-transparent-white-900-opacity)); + --spectrum-transparent-white-1000-rgb: 255, 255, 255; + --spectrum-transparent-white-1000: rgba(var(--spectrum-transparent-white-1000-rgb)); --spectrum-black-rgb: 0, 0, 0; --spectrum-black: rgba(var(--spectrum-black-rgb)); + --spectrum-transparent-black-25-rgb: 0, 0, 0; + --spectrum-transparent-black-25-opacity: 0; + --spectrum-transparent-black-25: rgba(var(--spectrum-transparent-black-25-rgb), var(--spectrum-transparent-black-25-opacity)); + --spectrum-transparent-black-50-rgb: 0, 0, 0; + --spectrum-transparent-black-50-opacity: 0.03; + --spectrum-transparent-black-50: rgba(var(--spectrum-transparent-black-50-rgb), var(--spectrum-transparent-black-50-opacity)); + --spectrum-transparent-black-75-rgb: 0, 0, 0; + --spectrum-transparent-black-75-opacity: 0.05; + --spectrum-transparent-black-75: rgba(var(--spectrum-transparent-black-75-rgb), var(--spectrum-transparent-black-75-opacity)); --spectrum-transparent-black-100-rgb: 0, 0, 0; - --spectrum-transparent-black-100-opacity: 0; + --spectrum-transparent-black-100-opacity: 0.09; --spectrum-transparent-black-100: rgba(var(--spectrum-transparent-black-100-rgb), var(--spectrum-transparent-black-100-opacity)); --spectrum-transparent-black-200-rgb: 0, 0, 0; - --spectrum-transparent-black-200-opacity: 0.1; + --spectrum-transparent-black-200-opacity: 0.12; --spectrum-transparent-black-200: rgba(var(--spectrum-transparent-black-200-rgb), var(--spectrum-transparent-black-200-opacity)); --spectrum-transparent-black-300-rgb: 0, 0, 0; - --spectrum-transparent-black-300-opacity: 0.25; + --spectrum-transparent-black-300-opacity: 0.15; --spectrum-transparent-black-300: rgba(var(--spectrum-transparent-black-300-rgb), var(--spectrum-transparent-black-300-opacity)); --spectrum-transparent-black-400-rgb: 0, 0, 0; - --spectrum-transparent-black-400-opacity: 0.4; + --spectrum-transparent-black-400-opacity: 0.22; --spectrum-transparent-black-400: rgba(var(--spectrum-transparent-black-400-rgb), var(--spectrum-transparent-black-400-opacity)); --spectrum-transparent-black-500-rgb: 0, 0, 0; - --spectrum-transparent-black-500-opacity: 0.55; + --spectrum-transparent-black-500-opacity: 0.44; --spectrum-transparent-black-500: rgba(var(--spectrum-transparent-black-500-rgb), var(--spectrum-transparent-black-500-opacity)); --spectrum-transparent-black-600-rgb: 0, 0, 0; - --spectrum-transparent-black-600-opacity: 0.7; + --spectrum-transparent-black-600-opacity: 0.56; --spectrum-transparent-black-600: rgba(var(--spectrum-transparent-black-600-rgb), var(--spectrum-transparent-black-600-opacity)); --spectrum-transparent-black-700-rgb: 0, 0, 0; - --spectrum-transparent-black-700-opacity: 0.8; + --spectrum-transparent-black-700-opacity: 0.69; --spectrum-transparent-black-700: rgba(var(--spectrum-transparent-black-700-rgb), var(--spectrum-transparent-black-700-opacity)); --spectrum-transparent-black-800-rgb: 0, 0, 0; - --spectrum-transparent-black-800-opacity: 0.9; + --spectrum-transparent-black-800-opacity: 0.84; --spectrum-transparent-black-800: rgba(var(--spectrum-transparent-black-800-rgb), var(--spectrum-transparent-black-800-opacity)); --spectrum-transparent-black-900-rgb: 0, 0, 0; - --spectrum-transparent-black-900: rgba(var(--spectrum-transparent-black-900-rgb)); + --spectrum-transparent-black-900-opacity: 0.93; + --spectrum-transparent-black-900: rgba(var(--spectrum-transparent-black-900-rgb), var(--spectrum-transparent-black-900-opacity)); + --spectrum-transparent-black-1000-rgb: 0, 0, 0; + --spectrum-transparent-black-1000: rgba(var(--spectrum-transparent-black-1000-rgb)); --spectrum-icon-color-inverse: var(--spectrum-gray-50); --spectrum-icon-color-primary-default: var(--spectrum-neutral-content-color-default); --spectrum-asterisk-icon-size-75: 8px; @@ -1097,7 +944,10 @@ --spectrum-popover-tip-height: 8px; --spectrum-menu-item-label-to-description: 1px; --spectrum-menu-item-section-divider-height: 8px; + --spectrum-slider-track-thickness: 2px; + --spectrum-slider-handle-gap: 4px; --spectrum-picker-minimum-width-multiplier: 2; + --spectrum-picker-border-width: var(--spectrum-border-width-100); --spectrum-picker-end-edge-to-disclousure-icon-quiet: var(--spectrum-picker-end-edge-to-disclosure-icon-quiet); --spectrum-picker-end-edge-to-disclosure-icon-quiet: 0px; --spectrum-text-field-minimum-width-multiplier: 1.5; @@ -1181,11 +1031,23 @@ --spectrum-in-field-button-width-stacked-medium: 28px; --spectrum-in-field-button-width-stacked-large: 36px; --spectrum-in-field-button-width-stacked-extra-large: 44px; + --spectrum-in-field-button-fill-stacked-inner-border-rounding: 0px; + --spectrum-in-field-button-edge-to-fill: 0px; + --spectrum-in-field-button-stacked-inner-edge-to-fill: 0px; --spectrum-in-field-button-edge-to-disclosure-icon-stacked-small: 7px; --spectrum-in-field-button-edge-to-disclosure-icon-stacked-medium: 9px; --spectrum-in-field-button-edge-to-disclosure-icon-stacked-large: 13px; --spectrum-in-field-button-edge-to-disclosure-icon-stacked-extra-large: 16px; --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small: 3px; + --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium: 3px; + --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large: 4px; + --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large: 5px; + --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); + --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); + --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); + --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); + --spectrum-corner-radius-75: 2px; + --spectrum-drop-shadow-x: 0px; --spectrum-android-elevation: 2dp; --spectrum-spacing-50: 2px; --spectrum-spacing-75: 4px; @@ -1201,6 +1063,7 @@ --spectrum-spacing-1000: 96px; --spectrum-focus-indicator-thickness: 2px; --spectrum-focus-indicator-gap: 2px; + --spectrum-border-width-100: 1px; --spectrum-border-width-200: 2px; --spectrum-border-width-400: 4px; --spectrum-field-edge-to-text-quiet: 0px; @@ -1210,6 +1073,22 @@ --spectrum-field-edge-to-validation-icon-quiet: 0px; --spectrum-text-underline-thickness: 1px; --spectrum-text-underline-gap: 1px; + --spectrum-accent-color-100: var(--spectrum-blue-100); + --spectrum-accent-color-200: var(--spectrum-blue-200); + --spectrum-accent-color-300: var(--spectrum-blue-300); + --spectrum-accent-color-400: var(--spectrum-blue-400); + --spectrum-accent-color-500: var(--spectrum-blue-500); + --spectrum-accent-color-600: var(--spectrum-blue-600); + --spectrum-accent-color-700: var(--spectrum-blue-700); + --spectrum-accent-color-800: var(--spectrum-blue-800); + --spectrum-accent-color-900: var(--spectrum-blue-900); + --spectrum-accent-color-1000: var(--spectrum-blue-1000); + --spectrum-accent-color-1100: var(--spectrum-blue-1100); + --spectrum-accent-color-1200: var(--spectrum-blue-1200); + --spectrum-accent-color-1300: var(--spectrum-blue-1300); + --spectrum-accent-color-1400: var(--spectrum-blue-1400); + --spectrum-accent-color-1500: var(--spectrum-blue-1500); + --spectrum-accent-color-1600: var(--spectrum-blue-1600); --spectrum-informative-color-100: var(--spectrum-blue-100); --spectrum-informative-color-200: var(--spectrum-blue-200); --spectrum-informative-color-300: var(--spectrum-blue-300); @@ -1224,6 +1103,8 @@ --spectrum-informative-color-1200: var(--spectrum-blue-1200); --spectrum-informative-color-1300: var(--spectrum-blue-1300); --spectrum-informative-color-1400: var(--spectrum-blue-1400); + --spectrum-informative-color-1500: var(--spectrum-blue-1500); + --spectrum-informative-color-1600: var(--spectrum-blue-1600); --spectrum-negative-color-100: var(--spectrum-red-100); --spectrum-negative-color-200: var(--spectrum-red-200); --spectrum-negative-color-300: var(--spectrum-red-300); @@ -1238,6 +1119,8 @@ --spectrum-negative-color-1200: var(--spectrum-red-1200); --spectrum-negative-color-1300: var(--spectrum-red-1300); --spectrum-negative-color-1400: var(--spectrum-red-1400); + --spectrum-negative-color-1500: var(--spectrum-red-1500); + --spectrum-negative-color-1600: var(--spectrum-red-1600); --spectrum-notice-color-100: var(--spectrum-orange-100); --spectrum-notice-color-200: var(--spectrum-orange-200); --spectrum-notice-color-300: var(--spectrum-orange-300); @@ -1252,6 +1135,8 @@ --spectrum-notice-color-1200: var(--spectrum-orange-1200); --spectrum-notice-color-1300: var(--spectrum-orange-1300); --spectrum-notice-color-1400: var(--spectrum-orange-1400); + --spectrum-notice-color-1500: var(--spectrum-orange-1500); + --spectrum-notice-color-1600: var(--spectrum-orange-1600); --spectrum-positive-color-100: var(--spectrum-green-100); --spectrum-positive-color-200: var(--spectrum-green-200); --spectrum-positive-color-300: var(--spectrum-green-300); @@ -1266,10 +1151,16 @@ --spectrum-positive-color-1200: var(--spectrum-green-1200); --spectrum-positive-color-1300: var(--spectrum-green-1300); --spectrum-positive-color-1400: var(--spectrum-green-1400); + --spectrum-positive-color-1500: var(--spectrum-green-1500); + --spectrum-positive-color-1600: var(--spectrum-green-1600); + --spectrum-negative-subdued-background-color-default: var(--spectrum-negative-color-200); + --spectrum-negative-subdued-background-color-hover: var(--spectrum-negative-color-300); + --spectrum-negative-subdued-background-color-down: var(--spectrum-negative-color-300); + --spectrum-negative-subdued-background-color-key-focus: var(--spectrum-negative-color-300); --spectrum-default-font-family: var(--spectrum-sans-serif-font-family); - --spectrum-sans-serif-font-family: Adobe Clean; - --spectrum-serif-font-family: Adobe Clean Serif; - --spectrum-cjk-font-family: Adobe Clean Han; + --spectrum-sans-serif-font-family: adobe clean; + --spectrum-serif-font-family: adobe clean serif; + --spectrum-cjk-font-family: adobe clean han; --spectrum-light-font-weight: 300; --spectrum-regular-font-weight: 400; --spectrum-medium-font-weight: 500; @@ -1292,8 +1183,11 @@ --spectrum-heading-serif-light-font-style: var(--spectrum-default-font-style); --spectrum-heading-cjk-light-font-weight: var(--spectrum-light-font-weight); --spectrum-heading-cjk-light-font-style: var(--spectrum-default-font-style); + --spectrum-heading-sans-serif-font-weight: var(--spectrum-bold-font-weight); --spectrum-heading-sans-serif-font-style: var(--spectrum-default-font-style); + --spectrum-heading-serif-font-weight: var(--spectrum-bold-font-weight); --spectrum-heading-serif-font-style: var(--spectrum-default-font-style); + --spectrum-heading-cjk-font-weight: var(--spectrum-extra-bold-font-weight); --spectrum-heading-cjk-font-style: var(--spectrum-default-font-style); --spectrum-heading-sans-serif-heavy-font-weight: var(--spectrum-black-font-weight); --spectrum-heading-sans-serif-heavy-font-style: var(--spectrum-default-font-style); @@ -1325,7 +1219,9 @@ --spectrum-heading-serif-light-emphasized-font-style: var(--spectrum-italic-font-style); --spectrum-heading-cjk-light-emphasized-font-weight: var(--spectrum-regular-font-weight); --spectrum-heading-cjk-light-emphasized-font-style: var(--spectrum-default-font-style); + --spectrum-heading-sans-serif-emphasized-font-weight: var(--spectrum-bold-font-weight); --spectrum-heading-sans-serif-emphasized-font-style: var(--spectrum-italic-font-style); + --spectrum-heading-serif-emphasized-font-weight: var(--spectrum-bold-font-weight); --spectrum-heading-serif-emphasized-font-style: var(--spectrum-italic-font-style); --spectrum-heading-cjk-emphasized-font-weight: var(--spectrum-black-font-weight); --spectrum-heading-cjk-emphasized-font-style: var(--spectrum-default-font-style); @@ -1475,7 +1371,7 @@ --spectrum-detail-sans-serif-text-transform: uppercase; --spectrum-detail-serif-text-transform: uppercase; --spectrum-detail-color: var(--spectrum-gray-900); - --spectrum-code-font-family: Source Code Pro; + --spectrum-code-font-family: source code pro; --spectrum-code-cjk-font-family: var(--spectrum-code-font-family); --spectrum-code-font-weight: var(--spectrum-regular-font-weight); --spectrum-code-font-style: var(--spectrum-default-font-style); @@ -1501,6 +1397,42 @@ --spectrum-code-line-height: var(--spectrum-line-height-200); --spectrum-code-cjk-line-height: var(--spectrum-cjk-line-height-200); --spectrum-code-color: var(--spectrum-gray-800); + --system: spectrum; + + --spectrum-animation-linear: cubic-bezier(0, 0, 1, 1); + --spectrum-animation-duration-0: 0ms; + --spectrum-animation-duration-100: 130ms; + --spectrum-animation-duration-200: 160ms; + --spectrum-animation-duration-300: 190ms; + --spectrum-animation-duration-400: 220ms; + --spectrum-animation-duration-500: 250ms; + --spectrum-animation-duration-600: 300ms; + --spectrum-animation-duration-700: 350ms; + --spectrum-animation-duration-800: 400ms; + --spectrum-animation-duration-900: 450ms; + --spectrum-animation-duration-1000: 500ms; + --spectrum-animation-duration-2000: 1000ms; + --spectrum-animation-duration-4000: 2000ms; + --spectrum-animation-duration-6000: 3000ms; + --spectrum-animation-ease-in-out: cubic-bezier(0.45, 0, 0.4, 1); + --spectrum-animation-ease-in: cubic-bezier(0.5, 0, 1, 1); + --spectrum-animation-ease-out: cubic-bezier(0, 0, 0.4, 1); + --spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1); + + --spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; + --spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack); + + --spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", georgia, serif; + --spectrum-serif-font: var(--spectrum-serif-font-family-stack); + + --spectrum-code-font-family-stack: "Source Code Pro", monaco, monospace; + + --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); + --spectrum-docs-static-white-background-color-rgb: 15, 121, 125; + --spectrum-docs-static-white-background-color: rgba(var(--spectrum-docs-static-white-background-color-rgb)); + --spectrum-docs-static-black-background-color-rgb: 181, 209, 211; + --spectrum-docs-static-black-background-color: rgba(var(--spectrum-docs-static-black-background-color-rgb)); } .spectrum--large { --spectrum-workflow-icon-size-50: 18px; @@ -1553,6 +1485,34 @@ --spectrum-dash-icon-size-400: 18px; --spectrum-dash-icon-size-500: 20px; --spectrum-dash-icon-size-600: 22px; + --spectrum-checkbox-control-size-small: 16px; + --spectrum-checkbox-control-size-medium: 18px; + --spectrum-checkbox-control-size-large: 20px; + --spectrum-checkbox-control-size-extra-large: 22px; + --spectrum-checkbox-top-to-control-small: 7px; + --spectrum-checkbox-top-to-control-medium: 11px; + --spectrum-checkbox-top-to-control-large: 15px; + --spectrum-checkbox-top-to-control-extra-large: 19px; + --spectrum-switch-control-width-small: 32px; + --spectrum-switch-control-width-medium: 36px; + --spectrum-switch-control-width-large: 41px; + --spectrum-switch-control-width-extra-large: 46px; + --spectrum-switch-control-height-small: 16px; + --spectrum-switch-control-height-medium: 18px; + --spectrum-switch-control-height-large: 20px; + --spectrum-switch-control-height-extra-large: 22px; + --spectrum-switch-top-to-control-small: 7px; + --spectrum-switch-top-to-control-medium: 11px; + --spectrum-switch-top-to-control-large: 15px; + --spectrum-switch-top-to-control-extra-large: 19px; + --spectrum-radio-button-control-size-small: 16px; + --spectrum-radio-button-control-size-medium: 18px; + --spectrum-radio-button-control-size-large: 20px; + --spectrum-radio-button-control-size-extra-large: 22px; + --spectrum-radio-button-top-to-control-small: 7px; + --spectrum-radio-button-top-to-control-medium: 11px; + --spectrum-radio-button-top-to-control-large: 15px; + --spectrum-radio-button-top-to-control-extra-large: 19px; --spectrum-field-label-text-to-asterisk-small: 5px; --spectrum-field-label-text-to-asterisk-medium: 5px; --spectrum-field-label-text-to-asterisk-large: 6px; @@ -1628,6 +1588,22 @@ --spectrum-menu-item-top-to-selected-icon-medium: 13px; --spectrum-menu-item-top-to-selected-icon-large: 17px; --spectrum-menu-item-top-to-selected-icon-extra-large: 22px; + --spectrum-slider-control-height-small: 18px; + --spectrum-slider-control-height-medium: 20px; + --spectrum-slider-control-height-large: 22px; + --spectrum-slider-control-height-extra-large: 26px; + --spectrum-slider-handle-size-small: 18px; + --spectrum-slider-handle-size-medium: 20px; + --spectrum-slider-handle-size-large: 22px; + --spectrum-slider-handle-size-extra-large: 26px; + --spectrum-slider-handle-border-width-down-small: 7px; + --spectrum-slider-handle-border-width-down-medium: 8px; + --spectrum-slider-handle-border-width-down-large: 9px; + --spectrum-slider-handle-border-width-down-extra-large: 11px; + --spectrum-slider-bottom-to-handle-small: 6px; + --spectrum-slider-bottom-to-handle-medium: 10px; + --spectrum-slider-bottom-to-handle-large: 14px; + --spectrum-slider-bottom-to-handle-extra-large: 17px; --spectrum-slider-control-to-field-label-small: 6px; --spectrum-slider-control-to-field-label-medium: 10px; --spectrum-slider-control-to-field-label-large: 14px; @@ -1856,6 +1832,10 @@ --spectrum-side-navigation-bottom-to-text: 10px; --spectrum-tray-top-to-content-area: 5px; --spectrum-accordion-top-to-text-spacious-small: 12px; + --spectrum-corner-radius-100: 5px; + --spectrum-corner-radius-200: 10px; + --spectrum-drop-shadow-y: 2px; + --spectrum-drop-shadow-blur: 6px; --spectrum-text-to-visual-50: 8px; --spectrum-text-to-visual-75: 9px; --spectrum-text-to-visual-100: 10px; @@ -1992,466 +1972,833 @@ --spectrum-font-size-1100: 55px; --spectrum-font-size-1200: 62px; --spectrum-font-size-1300: 70px; -} -.spectrum--light, -.spectrum--lightest { - --spectrum-overlay-opacity: 0.4; - --spectrum-drop-shadow-color-rgb: 0, 0, 0; - --spectrum-drop-shadow-color-opacity: 0.15; - --spectrum-drop-shadow-color: rgba(var(--spectrum-drop-shadow-color-rgb), var(--spectrum-drop-shadow-color-opacity)); - --spectrum-background-base-color: var(--spectrum-gray-200); - --spectrum-background-layer-1-color: var(--spectrum-gray-100); - --spectrum-background-layer-2-color: var(--spectrum-gray-50); - --spectrum-neutral-background-color-default: var(--spectrum-gray-800); - --spectrum-neutral-background-color-hover: var(--spectrum-gray-900); - --spectrum-neutral-background-color-down: var(--spectrum-gray-900); - --spectrum-neutral-background-color-key-focus: var(--spectrum-gray-900); - --spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-600); - --spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-700); - --spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-800); - --spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-700); - --spectrum-accent-background-color-default: var(--spectrum-accent-color-900); - --spectrum-accent-background-color-hover: var(--spectrum-accent-color-1000); - --spectrum-accent-background-color-down: var(--spectrum-accent-color-1100); - --spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-1000); - --spectrum-informative-background-color-default: var(--spectrum-informative-color-900); - --spectrum-informative-background-color-hover: var(--spectrum-informative-color-1000); - --spectrum-informative-background-color-down: var(--spectrum-informative-color-1100); - --spectrum-informative-background-color-key-focus: var(--spectrum-informative-color-1000); - --spectrum-negative-background-color-default: var(--spectrum-negative-color-900); - --spectrum-negative-background-color-hover: var(--spectrum-negative-color-1000); - --spectrum-negative-background-color-down: var(--spectrum-negative-color-1100); - --spectrum-negative-background-color-key-focus: var(--spectrum-negative-color-1000); - --spectrum-positive-background-color-default: var(--spectrum-positive-color-900); - --spectrum-positive-background-color-hover: var(--spectrum-positive-color-1000); - --spectrum-positive-background-color-down: var(--spectrum-positive-color-1100); - --spectrum-positive-background-color-key-focus: var(--spectrum-positive-color-1000); - --spectrum-notice-background-color-default: var(--spectrum-notice-color-600); - --spectrum-gray-background-color-default: var(--spectrum-gray-700); - --spectrum-red-background-color-default: var(--spectrum-red-900); - --spectrum-orange-background-color-default: var(--spectrum-orange-600); - --spectrum-yellow-background-color-default: var(--spectrum-yellow-400); - --spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-500); - --spectrum-celery-background-color-default: var(--spectrum-celery-600); - --spectrum-green-background-color-default: var(--spectrum-green-900); - --spectrum-seafoam-background-color-default: var(--spectrum-seafoam-900); - --spectrum-cyan-background-color-default: var(--spectrum-cyan-900); - --spectrum-blue-background-color-default: var(--spectrum-blue-900); - --spectrum-indigo-background-color-default: var(--spectrum-indigo-900); - --spectrum-purple-background-color-default: var(--spectrum-purple-900); - --spectrum-fuchsia-background-color-default: var(--spectrum-fuchsia-900); - --spectrum-magenta-background-color-default: var(--spectrum-magenta-900); - --spectrum-neutral-visual-color: var(--spectrum-gray-500); - --spectrum-accent-visual-color: var(--spectrum-accent-color-800); - --spectrum-informative-visual-color: var(--spectrum-informative-color-800); - --spectrum-negative-visual-color: var(--spectrum-negative-color-800); - --spectrum-notice-visual-color: var(--spectrum-notice-color-700); - --spectrum-positive-visual-color: var(--spectrum-positive-color-700); - --spectrum-gray-visual-color: var(--spectrum-gray-500); - --spectrum-red-visual-color: var(--spectrum-red-800); - --spectrum-orange-visual-color: var(--spectrum-orange-700); - --spectrum-yellow-visual-color: var(--spectrum-yellow-600); - --spectrum-chartreuse-visual-color: var(--spectrum-chartreuse-600); - --spectrum-celery-visual-color: var(--spectrum-celery-700); - --spectrum-green-visual-color: var(--spectrum-green-700); - --spectrum-seafoam-visual-color: var(--spectrum-seafoam-700); - --spectrum-cyan-visual-color: var(--spectrum-cyan-600); - --spectrum-blue-visual-color: var(--spectrum-blue-800); - --spectrum-indigo-visual-color: var(--spectrum-indigo-800); - --spectrum-purple-visual-color: var(--spectrum-purple-800); - --spectrum-fuchsia-visual-color: var(--spectrum-fuchsia-800); - --spectrum-magenta-visual-color: var(--spectrum-magenta-800); - --spectrum-opacity-checkerboard-square-dark: var(--spectrum-gray-200); - --spectrum-gray-50-rgb: 255, 255, 255; - --spectrum-gray-50: rgba(var(--spectrum-gray-50-rgb)); - --spectrum-gray-75-rgb: 253, 253, 253; - --spectrum-gray-75: rgba(var(--spectrum-gray-75-rgb)); - --spectrum-gray-100-rgb: 248, 248, 248; - --spectrum-gray-100: rgba(var(--spectrum-gray-100-rgb)); - --spectrum-gray-200-rgb: 230, 230, 230; - --spectrum-gray-200: rgba(var(--spectrum-gray-200-rgb)); - --spectrum-gray-300-rgb: 213, 213, 213; - --spectrum-gray-300: rgba(var(--spectrum-gray-300-rgb)); - --spectrum-gray-400-rgb: 177, 177, 177; - --spectrum-gray-400: rgba(var(--spectrum-gray-400-rgb)); - --spectrum-gray-500-rgb: 144, 144, 144; - --spectrum-gray-500: rgba(var(--spectrum-gray-500-rgb)); - --spectrum-gray-600-rgb: 109, 109, 109; - --spectrum-gray-600: rgba(var(--spectrum-gray-600-rgb)); - --spectrum-gray-700-rgb: 70, 70, 70; - --spectrum-gray-700: rgba(var(--spectrum-gray-700-rgb)); - --spectrum-gray-800-rgb: 34, 34, 34; - --spectrum-gray-800: rgba(var(--spectrum-gray-800-rgb)); - --spectrum-gray-900-rgb: 0, 0, 0; + --spectrum-slider-tick-mark-height: 13px; + --spectrum-slider-ramp-track-height: 20px; + + --spectrum-colorwheel-path: "M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; + --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; + --spectrum-colorwheel-colorarea-container-size: 182px; + + --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-secondary); + + --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 34px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 42px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 47px; + --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 54px; + + --spectrum-menu-item-checkmark-height-small: 12px; + --spectrum-menu-item-checkmark-height-medium: 14px; + --spectrum-menu-item-checkmark-height-large: 16px; + --spectrum-menu-item-checkmark-height-extra-large: 16px; + + --spectrum-menu-item-checkmark-width-small: 12px; + --spectrum-menu-item-checkmark-width-medium: 14px; + --spectrum-menu-item-checkmark-width-large: 16px; + --spectrum-menu-item-checkmark-width-extra-large: 16px; + + --spectrum-rating-icon-spacing: var(--spectrum-spacing-100); + + --spectrum-button-top-to-text-small: 6px; + --spectrum-button-bottom-to-text-small: 5px; + --spectrum-button-top-to-text-medium: 9px; + --spectrum-button-bottom-to-text-medium: 10px; + --spectrum-button-top-to-text-large: 12px; + --spectrum-button-bottom-to-text-large: 13px; + --spectrum-button-top-to-text-extra-large: 16px; + --spectrum-button-bottom-to-text-extra-large: 17px; + + --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-200); + --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-200); + --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-200); + --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-200); + + --spectrum-alert-dialog-padding: var(--spectrum-spacing-400); + --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-600); + + --spectrum-coach-indicator-gap: 8px; + --spectrum-coach-indicator-ring-diameter: 20px; + --spectrum-coach-indicator-quiet-ring-diameter: 10px; + + --spectrum-coachmark-buttongroup-display: none; + --spectrum-coachmark-buttongroup-mobile-display: flex; + --spectrum-coachmark-menu-display: none; + --spectrum-coachmark-menu-mobile-display: inline-flex; + --spectrum-workflow-icon-size-xxl: 40px; + --spectrum-workflow-icon-size-xxs: 15px; + + --spectrum-treeview-item-indentation-medium: 20px; + --spectrum-treeview-item-indentation-small: 15px; + --spectrum-treeview-item-indentation-large: 25px; + --spectrum-treeview-item-indentation-extra-large: 30px; + --spectrum-treeview-indicator-inset-block-start: 6px; + --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 2px; + + --spectrum-dialog-confirm-entry-animation-distance: 25px; + --spectrum-dialog-confirm-hero-height: 160px; + --spectrum-dialog-confirm-border-radius: 5px; + --spectrum-dialog-confirm-title-text-size: 19px; + --spectrum-dialog-confirm-description-text-size: 15px; + --spectrum-dialog-confirm-padding-grid: 24px; + + --spectrum-datepicker-initial-width: 160px; + --spectrum-datepicker-generic-padding: 15px; + --spectrum-datepicker-dash-line-height: 30px; + --spectrum-datepicker-width-quiet-first: 90px; + --spectrum-datepicker-width-quiet-second: 20px; + --spectrum-datepicker-datetime-width-first: 45px; + --spectrum-datepicker-invalid-icon-to-button: 10px; + --spectrum-datepicker-invalid-icon-to-button-quiet: 9px; + --spectrum-datepicker-input-datetime-width: 30px; + + --spectrum-pagination-textfield-width: 60px; + --spectrum-pagination-item-inline-spacing: 6px; + + --spectrum-dial-border-radius: 20px; + --spectrum-dial-handle-position: 10px; + --spectrum-dial-handle-block-margin: 20px; + --spectrum-dial-handle-inline-margin: 20px; + --spectrum-dial-controls-margin: 10px; + --spectrum-dial-label-gap-y: 6px; + --spectrum-dial-label-container-top-to-text: 5px; + + --spectrum-assetcard-focus-ring-border-radius: 9px; + --spectrum-assetcard-selectionindicator-margin: 15px; + --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xxs); + --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xxs); + --spectrum-assetcard-content-font-size: var(--spectrum-body-size-xs); + + --spectrum-tooltip-animation-distance: 5px; + + --spectrum-ui-icon-medium-display: none; + --spectrum-ui-icon-large-display: block; + + --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-200); +} +.spectrum--light { + --spectrum-overlay-opacity: 0.4; + --spectrum-background-layer-2-color: var(--spectrum-gray-25); + --spectrum-neutral-subdued-background-color-default: var(--spectrum-gray-700); + --spectrum-neutral-subdued-background-color-hover: var(--spectrum-gray-800); + --spectrum-neutral-subdued-background-color-down: var(--spectrum-gray-800); + --spectrum-neutral-subdued-background-color-key-focus: var(--spectrum-gray-800); + --spectrum-accent-background-color-default: var(--spectrum-accent-color-900); + --spectrum-accent-background-color-hover: var(--spectrum-accent-color-1000); + --spectrum-accent-background-color-down: var(--spectrum-accent-color-1000); + --spectrum-accent-background-color-key-focus: var(--spectrum-accent-color-1000); + --spectrum-informative-background-color-default: var(--spectrum-informative-color-900); + --spectrum-informative-background-color-hover: var(--spectrum-informative-color-1000); + --spectrum-informative-background-color-down: var(--spectrum-informative-color-1000); + --spectrum-informative-background-color-key-focus: var(--spectrum-informative-color-1000); + --spectrum-negative-background-color-default: var(--spectrum-negative-color-900); + --spectrum-negative-background-color-hover: var(--spectrum-negative-color-1000); + --spectrum-negative-background-color-down: var(--spectrum-negative-color-1000); + --spectrum-negative-background-color-key-focus: var(--spectrum-negative-color-1000); + --spectrum-positive-background-color-default: var(--spectrum-positive-color-900); + --spectrum-positive-background-color-hover: var(--spectrum-positive-color-1000); + --spectrum-positive-background-color-down: var(--spectrum-positive-color-1000); + --spectrum-positive-background-color-key-focus: var(--spectrum-positive-color-1000); + --spectrum-notice-background-color-default: var(--spectrum-notice-color-600); + --spectrum-gray-background-color-default: var(--spectrum-gray-700); + --spectrum-red-background-color-default: var(--spectrum-red-900); + --spectrum-orange-background-color-default: var(--spectrum-orange-600); + --spectrum-yellow-background-color-default: var(--spectrum-yellow-400); + --spectrum-chartreuse-background-color-default: var(--spectrum-chartreuse-500); + --spectrum-celery-background-color-default: var(--spectrum-celery-600); + --spectrum-green-background-color-default: var(--spectrum-green-900); + --spectrum-seafoam-background-color-default: var(--spectrum-seafoam-900); + --spectrum-cyan-background-color-default: var(--spectrum-cyan-900); + --spectrum-blue-background-color-default: var(--spectrum-blue-900); + --spectrum-indigo-background-color-default: var(--spectrum-indigo-900); + --spectrum-purple-background-color-default: var(--spectrum-purple-900); + --spectrum-fuchsia-background-color-default: var(--spectrum-fuchsia-900); + --spectrum-magenta-background-color-default: var(--spectrum-magenta-900); + --spectrum-neutral-visual-color: var(--spectrum-gray-500); + --spectrum-accent-visual-color: var(--spectrum-accent-color-800); + --spectrum-informative-visual-color: var(--spectrum-informative-color-800); + --spectrum-negative-visual-color: var(--spectrum-negative-color-800); + --spectrum-notice-visual-color: var(--spectrum-notice-color-700); + --spectrum-positive-visual-color: var(--spectrum-positive-color-700); + --spectrum-gray-visual-color: var(--spectrum-gray-500); + --spectrum-red-visual-color: var(--spectrum-red-800); + --spectrum-orange-visual-color: var(--spectrum-orange-700); + --spectrum-yellow-visual-color: var(--spectrum-yellow-600); + --spectrum-chartreuse-visual-color: var(--spectrum-chartreuse-600); + --spectrum-celery-visual-color: var(--spectrum-celery-700); + --spectrum-green-visual-color: var(--spectrum-green-700); + --spectrum-seafoam-visual-color: var(--spectrum-seafoam-700); + --spectrum-cyan-visual-color: var(--spectrum-cyan-600); + --spectrum-blue-visual-color: var(--spectrum-blue-800); + --spectrum-indigo-visual-color: var(--spectrum-indigo-800); + --spectrum-purple-visual-color: var(--spectrum-purple-800); + --spectrum-fuchsia-visual-color: var(--spectrum-fuchsia-800); + --spectrum-magenta-visual-color: var(--spectrum-magenta-800); + --spectrum-background-elevated-color: var(--spectrum-gray-25); + --spectrum-background-pasteboard-color: var(--spectrum-gray-100); + --spectrum-brown-visual-color: var(--spectrum-brown-800); + --spectrum-cinnamon-visual-color: var(--spectrum-cinnamon-800); + --spectrum-pink-visual-color: var(--spectrum-pink-800); + --spectrum-silver-visual-color: var(--spectrum-silver-800); + --spectrum-turquoise-visual-color: var(--spectrum-turquoise-800); + --spectrum-brown-background-color-default: var(--spectrum-brown-900); + --spectrum-cinnamon-background-color-default: var(--spectrum-cinnamon-900); + --spectrum-pink-background-color-default: var(--spectrum-pink-900); + --spectrum-silver-background-color-default: var(--spectrum-silver-900); + --spectrum-turquoise-background-color-default: var(--spectrum-turquoise-900); + --spectrum-drop-shadow-color-100-rgb: 0, 0, 0; + --spectrum-drop-shadow-color-100-opacity: 0.12; + --spectrum-drop-shadow-color-100: rgba(var(--spectrum-drop-shadow-color-100-rgb), var(--spectrum-drop-shadow-color-100-opacity)); + --spectrum-drop-shadow-color-200-rgb: 0, 0, 0; + --spectrum-drop-shadow-color-200-opacity: 0.16; + --spectrum-drop-shadow-color-200: rgba(var(--spectrum-drop-shadow-color-200-rgb), var(--spectrum-drop-shadow-color-200-opacity)); + --spectrum-opacity-checkerboard-square-dark: var(--spectrum-gray-200); + --spectrum-gray-25-rgb: 255, 255, 255; + --spectrum-gray-25: rgba(var(--spectrum-gray-25-rgb)); + --spectrum-gray-50-rgb: 248, 248, 248; + --spectrum-gray-50: rgba(var(--spectrum-gray-50-rgb)); + --spectrum-gray-75-rgb: 243, 243, 243; + --spectrum-gray-75: rgba(var(--spectrum-gray-75-rgb)); + --spectrum-gray-100-rgb: 233, 233, 233; + --spectrum-gray-100: rgba(var(--spectrum-gray-100-rgb)); + --spectrum-gray-200-rgb: 225, 225, 225; + --spectrum-gray-200: rgba(var(--spectrum-gray-200-rgb)); + --spectrum-gray-300-rgb: 218, 218, 218; + --spectrum-gray-300: rgba(var(--spectrum-gray-300-rgb)); + --spectrum-gray-400-rgb: 198, 198, 198; + --spectrum-gray-400: rgba(var(--spectrum-gray-400-rgb)); + --spectrum-gray-500-rgb: 143, 143, 143; + --spectrum-gray-500: rgba(var(--spectrum-gray-500-rgb)); + --spectrum-gray-600-rgb: 113, 113, 113; + --spectrum-gray-600: rgba(var(--spectrum-gray-600-rgb)); + --spectrum-gray-700-rgb: 80, 80, 80; + --spectrum-gray-700: rgba(var(--spectrum-gray-700-rgb)); + --spectrum-gray-800-rgb: 41, 41, 41; + --spectrum-gray-800: rgba(var(--spectrum-gray-800-rgb)); + --spectrum-gray-900-rgb: 19, 19, 19; --spectrum-gray-900: rgba(var(--spectrum-gray-900-rgb)); - --spectrum-blue-100-rgb: 224, 242, 255; + --spectrum-gray-1000-rgb: 0, 0, 0; + --spectrum-gray-1000: rgba(var(--spectrum-gray-1000-rgb)); + --spectrum-blue-100-rgb: 245, 249, 255; --spectrum-blue-100: rgba(var(--spectrum-blue-100-rgb)); - --spectrum-blue-200-rgb: 202, 232, 255; + --spectrum-blue-200-rgb: 229, 240, 254; --spectrum-blue-200: rgba(var(--spectrum-blue-200-rgb)); - --spectrum-blue-300-rgb: 181, 222, 255; + --spectrum-blue-300-rgb: 203, 226, 254; --spectrum-blue-300: rgba(var(--spectrum-blue-300-rgb)); - --spectrum-blue-400-rgb: 150, 206, 253; + --spectrum-blue-400-rgb: 172, 207, 253; --spectrum-blue-400: rgba(var(--spectrum-blue-400-rgb)); - --spectrum-blue-500-rgb: 120, 187, 250; + --spectrum-blue-500-rgb: 142, 185, 252; --spectrum-blue-500: rgba(var(--spectrum-blue-500-rgb)); - --spectrum-blue-600-rgb: 89, 167, 246; + --spectrum-blue-600-rgb: 114, 158, 253; --spectrum-blue-600: rgba(var(--spectrum-blue-600-rgb)); - --spectrum-blue-700-rgb: 56, 146, 243; + --spectrum-blue-700-rgb: 93, 137, 255; --spectrum-blue-700: rgba(var(--spectrum-blue-700-rgb)); - --spectrum-blue-800-rgb: 20, 122, 243; + --spectrum-blue-800-rgb: 75, 117, 255; --spectrum-blue-800: rgba(var(--spectrum-blue-800-rgb)); - --spectrum-blue-900-rgb: 2, 101, 220; + --spectrum-blue-900-rgb: 59, 99, 251; --spectrum-blue-900: rgba(var(--spectrum-blue-900-rgb)); - --spectrum-blue-1000-rgb: 0, 84, 182; + --spectrum-blue-1000-rgb: 39, 77, 234; --spectrum-blue-1000: rgba(var(--spectrum-blue-1000-rgb)); - --spectrum-blue-1100-rgb: 0, 68, 145; + --spectrum-blue-1100-rgb: 29, 62, 207; --spectrum-blue-1100: rgba(var(--spectrum-blue-1100-rgb)); - --spectrum-blue-1200-rgb: 0, 53, 113; + --spectrum-blue-1200-rgb: 21, 50, 173; --spectrum-blue-1200: rgba(var(--spectrum-blue-1200-rgb)); - --spectrum-blue-1300-rgb: 0, 39, 84; + --spectrum-blue-1300-rgb: 16, 40, 140; --spectrum-blue-1300: rgba(var(--spectrum-blue-1300-rgb)); - --spectrum-blue-1400-rgb: 0, 28, 60; + --spectrum-blue-1400-rgb: 12, 31, 105; --spectrum-blue-1400: rgba(var(--spectrum-blue-1400-rgb)); - --spectrum-red-100-rgb: 255, 235, 231; + --spectrum-blue-1500-rgb: 14, 24, 67; + --spectrum-blue-1500: rgba(var(--spectrum-blue-1500-rgb)); + --spectrum-blue-1600-rgb: 7, 11, 30; + --spectrum-blue-1600: rgba(var(--spectrum-blue-1600-rgb)); + --spectrum-red-100-rgb: 255, 246, 245; --spectrum-red-100: rgba(var(--spectrum-red-100-rgb)); - --spectrum-red-200-rgb: 255, 221, 214; + --spectrum-red-200-rgb: 255, 235, 232; --spectrum-red-200: rgba(var(--spectrum-red-200-rgb)); - --spectrum-red-300-rgb: 255, 205, 195; + --spectrum-red-300-rgb: 255, 214, 209; --spectrum-red-300: rgba(var(--spectrum-red-300-rgb)); - --spectrum-red-400-rgb: 255, 183, 169; + --spectrum-red-400-rgb: 255, 188, 180; --spectrum-red-400: rgba(var(--spectrum-red-400-rgb)); - --spectrum-red-500-rgb: 255, 155, 136; + --spectrum-red-500-rgb: 255, 157, 145; --spectrum-red-500: rgba(var(--spectrum-red-500-rgb)); - --spectrum-red-600-rgb: 255, 124, 101; + --spectrum-red-600-rgb: 255, 118, 101; --spectrum-red-600: rgba(var(--spectrum-red-600-rgb)); - --spectrum-red-700-rgb: 247, 92, 70; + --spectrum-red-700-rgb: 255, 81, 61; --spectrum-red-700: rgba(var(--spectrum-red-700-rgb)); - --spectrum-red-800-rgb: 234, 56, 41; + --spectrum-red-800-rgb: 240, 56, 35; --spectrum-red-800: rgba(var(--spectrum-red-800-rgb)); - --spectrum-red-900-rgb: 211, 21, 16; + --spectrum-red-900-rgb: 215, 50, 32; --spectrum-red-900: rgba(var(--spectrum-red-900-rgb)); - --spectrum-red-1000-rgb: 180, 0, 0; + --spectrum-red-1000-rgb: 183, 40, 24; --spectrum-red-1000: rgba(var(--spectrum-red-1000-rgb)); - --spectrum-red-1100-rgb: 147, 0, 0; + --spectrum-red-1100-rgb: 156, 33, 19; --spectrum-red-1100: rgba(var(--spectrum-red-1100-rgb)); - --spectrum-red-1200-rgb: 116, 0, 0; + --spectrum-red-1200-rgb: 129, 27, 14; --spectrum-red-1200: rgba(var(--spectrum-red-1200-rgb)); - --spectrum-red-1300-rgb: 89, 0, 0; + --spectrum-red-1300-rgb: 104, 21, 10; --spectrum-red-1300: rgba(var(--spectrum-red-1300-rgb)); - --spectrum-red-1400-rgb: 67, 0, 0; + --spectrum-red-1400-rgb: 80, 16, 6; --spectrum-red-1400: rgba(var(--spectrum-red-1400-rgb)); - --spectrum-orange-100-rgb: 255, 236, 204; + --spectrum-red-1500-rgb: 59, 11, 4; + --spectrum-red-1500: rgba(var(--spectrum-red-1500-rgb)); + --spectrum-red-1600-rgb: 29, 5, 2; + --spectrum-red-1600: rgba(var(--spectrum-red-1600-rgb)); + --spectrum-orange-100-rgb: 255, 246, 231; --spectrum-orange-100: rgba(var(--spectrum-orange-100-rgb)); - --spectrum-orange-200-rgb: 255, 223, 173; + --spectrum-orange-200-rgb: 255, 236, 207; --spectrum-orange-200: rgba(var(--spectrum-orange-200-rgb)); - --spectrum-orange-300-rgb: 253, 210, 145; + --spectrum-orange-300-rgb: 255, 218, 158; --spectrum-orange-300: rgba(var(--spectrum-orange-300-rgb)); - --spectrum-orange-400-rgb: 255, 187, 99; + --spectrum-orange-400-rgb: 255, 193, 94; --spectrum-orange-400: rgba(var(--spectrum-orange-400-rgb)); - --spectrum-orange-500-rgb: 255, 160, 55; + --spectrum-orange-500-rgb: 255, 162, 19; --spectrum-orange-500: rgba(var(--spectrum-orange-500-rgb)); - --spectrum-orange-600-rgb: 246, 133, 17; + --spectrum-orange-600-rgb: 252, 125, 0; --spectrum-orange-600: rgba(var(--spectrum-orange-600-rgb)); - --spectrum-orange-700-rgb: 228, 111, 0; + --spectrum-orange-700-rgb: 232, 106, 0; --spectrum-orange-700: rgba(var(--spectrum-orange-700-rgb)); - --spectrum-orange-800-rgb: 203, 93, 0; + --spectrum-orange-800-rgb: 212, 91, 0; --spectrum-orange-800: rgba(var(--spectrum-orange-800-rgb)); - --spectrum-orange-900-rgb: 177, 76, 0; + --spectrum-orange-900-rgb: 194, 78, 0; --spectrum-orange-900: rgba(var(--spectrum-orange-900-rgb)); - --spectrum-orange-1000-rgb: 149, 61, 0; + --spectrum-orange-1000-rgb: 167, 62, 0; --spectrum-orange-1000: rgba(var(--spectrum-orange-1000-rgb)); - --spectrum-orange-1100-rgb: 122, 47, 0; + --spectrum-orange-1100-rgb: 144, 51, 0; --spectrum-orange-1100: rgba(var(--spectrum-orange-1100-rgb)); - --spectrum-orange-1200-rgb: 97, 35, 0; + --spectrum-orange-1200-rgb: 118, 41, 0; --spectrum-orange-1200: rgba(var(--spectrum-orange-1200-rgb)); - --spectrum-orange-1300-rgb: 73, 25, 1; + --spectrum-orange-1300-rgb: 95, 32, 0; --spectrum-orange-1300: rgba(var(--spectrum-orange-1300-rgb)); - --spectrum-orange-1400-rgb: 53, 18, 1; + --spectrum-orange-1400-rgb: 73, 24, 0; --spectrum-orange-1400: rgba(var(--spectrum-orange-1400-rgb)); - --spectrum-yellow-100-rgb: 251, 241, 152; + --spectrum-orange-1500-rgb: 52, 18, 0; + --spectrum-orange-1500: rgba(var(--spectrum-orange-1500-rgb)); + --spectrum-orange-1600-rgb: 25, 8, 0; + --spectrum-orange-1600: rgba(var(--spectrum-orange-1600-rgb)); + --spectrum-yellow-100-rgb: 255, 248, 204; --spectrum-yellow-100: rgba(var(--spectrum-yellow-100-rgb)); - --spectrum-yellow-200-rgb: 248, 231, 80; + --spectrum-yellow-200-rgb: 255, 241, 151; --spectrum-yellow-200: rgba(var(--spectrum-yellow-200-rgb)); - --spectrum-yellow-300-rgb: 248, 217, 4; + --spectrum-yellow-300-rgb: 255, 222, 44; --spectrum-yellow-300: rgba(var(--spectrum-yellow-300-rgb)); - --spectrum-yellow-400-rgb: 232, 198, 0; + --spectrum-yellow-400-rgb: 245, 199, 0; --spectrum-yellow-400: rgba(var(--spectrum-yellow-400-rgb)); - --spectrum-yellow-500-rgb: 215, 179, 0; + --spectrum-yellow-500-rgb: 230, 175, 0; --spectrum-yellow-500: rgba(var(--spectrum-yellow-500-rgb)); - --spectrum-yellow-600-rgb: 196, 159, 0; + --spectrum-yellow-600-rgb: 210, 149, 0; --spectrum-yellow-600: rgba(var(--spectrum-yellow-600-rgb)); - --spectrum-yellow-700-rgb: 176, 140, 0; + --spectrum-yellow-700-rgb: 193, 131, 0; --spectrum-yellow-700: rgba(var(--spectrum-yellow-700-rgb)); - --spectrum-yellow-800-rgb: 155, 120, 0; + --spectrum-yellow-800-rgb: 175, 116, 0; --spectrum-yellow-800: rgba(var(--spectrum-yellow-800-rgb)); - --spectrum-yellow-900-rgb: 133, 102, 0; + --spectrum-yellow-900-rgb: 158, 102, 0; --spectrum-yellow-900: rgba(var(--spectrum-yellow-900-rgb)); - --spectrum-yellow-1000-rgb: 112, 83, 0; + --spectrum-yellow-1000-rgb: 134, 85, 0; --spectrum-yellow-1000: rgba(var(--spectrum-yellow-1000-rgb)); - --spectrum-yellow-1100-rgb: 91, 67, 0; + --spectrum-yellow-1100-rgb: 114, 72, 0; --spectrum-yellow-1100: rgba(var(--spectrum-yellow-1100-rgb)); - --spectrum-yellow-1200-rgb: 72, 51, 0; + --spectrum-yellow-1200-rgb: 93, 59, 0; --spectrum-yellow-1200: rgba(var(--spectrum-yellow-1200-rgb)); - --spectrum-yellow-1300-rgb: 54, 37, 0; + --spectrum-yellow-1300-rgb: 75, 47, 0; --spectrum-yellow-1300: rgba(var(--spectrum-yellow-1300-rgb)); - --spectrum-yellow-1400-rgb: 40, 26, 0; + --spectrum-yellow-1400-rgb: 56, 35, 0; --spectrum-yellow-1400: rgba(var(--spectrum-yellow-1400-rgb)); - --spectrum-chartreuse-100-rgb: 219, 252, 110; + --spectrum-yellow-1500-rgb: 40, 25, 0; + --spectrum-yellow-1500: rgba(var(--spectrum-yellow-1500-rgb)); + --spectrum-yellow-1600-rgb: 18, 11, 0; + --spectrum-yellow-1600: rgba(var(--spectrum-yellow-1600-rgb)); + --spectrum-chartreuse-100-rgb: 246, 251, 222; --spectrum-chartreuse-100: rgba(var(--spectrum-chartreuse-100-rgb)); - --spectrum-chartreuse-200-rgb: 203, 244, 67; + --spectrum-chartreuse-200-rgb: 234, 246, 173; --spectrum-chartreuse-200: rgba(var(--spectrum-chartreuse-200-rgb)); - --spectrum-chartreuse-300-rgb: 188, 233, 42; + --spectrum-chartreuse-300-rgb: 208, 236, 70; --spectrum-chartreuse-300: rgba(var(--spectrum-chartreuse-300-rgb)); - --spectrum-chartreuse-400-rgb: 170, 216, 22; + --spectrum-chartreuse-400-rgb: 182, 219, 0; --spectrum-chartreuse-400: rgba(var(--spectrum-chartreuse-400-rgb)); - --spectrum-chartreuse-500-rgb: 152, 197, 10; + --spectrum-chartreuse-500-rgb: 163, 196, 0; --spectrum-chartreuse-500: rgba(var(--spectrum-chartreuse-500-rgb)); - --spectrum-chartreuse-600-rgb: 135, 177, 3; + --spectrum-chartreuse-600-rgb: 143, 172, 0; --spectrum-chartreuse-600: rgba(var(--spectrum-chartreuse-600-rgb)); - --spectrum-chartreuse-700-rgb: 118, 156, 0; + --spectrum-chartreuse-700-rgb: 128, 153, 0; --spectrum-chartreuse-700: rgba(var(--spectrum-chartreuse-700-rgb)); - --spectrum-chartreuse-800-rgb: 103, 136, 0; + --spectrum-chartreuse-800-rgb: 114, 137, 0; --spectrum-chartreuse-800: rgba(var(--spectrum-chartreuse-800-rgb)); - --spectrum-chartreuse-900-rgb: 87, 116, 0; + --spectrum-chartreuse-900-rgb: 102, 122, 0; --spectrum-chartreuse-900: rgba(var(--spectrum-chartreuse-900-rgb)); - --spectrum-chartreuse-1000-rgb: 72, 96, 0; + --spectrum-chartreuse-1000-rgb: 86, 103, 0; --spectrum-chartreuse-1000: rgba(var(--spectrum-chartreuse-1000-rgb)); - --spectrum-chartreuse-1100-rgb: 58, 77, 0; + --spectrum-chartreuse-1100-rgb: 73, 87, 0; --spectrum-chartreuse-1100: rgba(var(--spectrum-chartreuse-1100-rgb)); - --spectrum-chartreuse-1200-rgb: 44, 59, 0; + --spectrum-chartreuse-1200-rgb: 60, 71, 0; --spectrum-chartreuse-1200: rgba(var(--spectrum-chartreuse-1200-rgb)); - --spectrum-chartreuse-1300-rgb: 33, 44, 0; + --spectrum-chartreuse-1300-rgb: 47, 57, 0; --spectrum-chartreuse-1300: rgba(var(--spectrum-chartreuse-1300-rgb)); - --spectrum-chartreuse-1400-rgb: 24, 31, 0; + --spectrum-chartreuse-1400-rgb: 35, 43, 0; --spectrum-chartreuse-1400: rgba(var(--spectrum-chartreuse-1400-rgb)); - --spectrum-celery-100-rgb: 205, 252, 191; + --spectrum-chartreuse-1500-rgb: 25, 30, 0; + --spectrum-chartreuse-1500: rgba(var(--spectrum-chartreuse-1500-rgb)); + --spectrum-chartreuse-1600-rgb: 11, 14, 0; + --spectrum-chartreuse-1600: rgba(var(--spectrum-chartreuse-1600-rgb)); + --spectrum-celery-100-rgb: 235, 255, 220; --spectrum-celery-100: rgba(var(--spectrum-celery-100-rgb)); - --spectrum-celery-200-rgb: 174, 246, 157; + --spectrum-celery-200-rgb: 197, 255, 156; --spectrum-celery-200: rgba(var(--spectrum-celery-200-rgb)); - --spectrum-celery-300-rgb: 150, 238, 133; + --spectrum-celery-300-rgb: 157, 247, 92; --spectrum-celery-300: rgba(var(--spectrum-celery-300-rgb)); - --spectrum-celery-400-rgb: 114, 224, 106; + --spectrum-celery-400-rgb: 129, 228, 58; --spectrum-celery-400: rgba(var(--spectrum-celery-400-rgb)); - --spectrum-celery-500-rgb: 78, 207, 80; + --spectrum-celery-500-rgb: 110, 206, 42; --spectrum-celery-500: rgba(var(--spectrum-celery-500-rgb)); - --spectrum-celery-600-rgb: 39, 187, 54; + --spectrum-celery-600-rgb: 93, 180, 31; --spectrum-celery-600: rgba(var(--spectrum-celery-600-rgb)); - --spectrum-celery-700-rgb: 7, 167, 33; + --spectrum-celery-700-rgb: 82, 161, 25; --spectrum-celery-700: rgba(var(--spectrum-celery-700-rgb)); - --spectrum-celery-800-rgb: 0, 145, 18; + --spectrum-celery-800-rgb: 72, 144, 20; --spectrum-celery-800: rgba(var(--spectrum-celery-800-rgb)); - --spectrum-celery-900-rgb: 0, 124, 15; + --spectrum-celery-900-rgb: 64, 129, 17; --spectrum-celery-900: rgba(var(--spectrum-celery-900-rgb)); - --spectrum-celery-1000-rgb: 0, 103, 15; + --spectrum-celery-1000-rgb: 52, 109, 12; --spectrum-celery-1000: rgba(var(--spectrum-celery-1000-rgb)); - --spectrum-celery-1100-rgb: 0, 83, 13; + --spectrum-celery-1100-rgb: 44, 92, 9; --spectrum-celery-1100: rgba(var(--spectrum-celery-1100-rgb)); - --spectrum-celery-1200-rgb: 0, 64, 10; + --spectrum-celery-1200-rgb: 35, 75, 6; --spectrum-celery-1200: rgba(var(--spectrum-celery-1200-rgb)); - --spectrum-celery-1300-rgb: 0, 48, 7; + --spectrum-celery-1300-rgb: 27, 60, 3; --spectrum-celery-1300: rgba(var(--spectrum-celery-1300-rgb)); - --spectrum-celery-1400-rgb: 0, 34, 5; + --spectrum-celery-1400-rgb: 19, 46, 0; --spectrum-celery-1400: rgba(var(--spectrum-celery-1400-rgb)); - --spectrum-green-100-rgb: 206, 248, 224; + --spectrum-celery-1500-rgb: 12, 33, 0; + --spectrum-celery-1500: rgba(var(--spectrum-celery-1500-rgb)); + --spectrum-celery-1600-rgb: 4, 15, 0; + --spectrum-celery-1600: rgba(var(--spectrum-celery-1600-rgb)); + --spectrum-green-100-rgb: 237, 252, 241; --spectrum-green-100: rgba(var(--spectrum-green-100-rgb)); - --spectrum-green-200-rgb: 173, 244, 206; + --spectrum-green-200-rgb: 215, 247, 225; --spectrum-green-200: rgba(var(--spectrum-green-200-rgb)); - --spectrum-green-300-rgb: 137, 236, 188; + --spectrum-green-300-rgb: 173, 238, 197; --spectrum-green-300: rgba(var(--spectrum-green-300-rgb)); - --spectrum-green-400-rgb: 103, 222, 168; + --spectrum-green-400-rgb: 107, 227, 162; --spectrum-green-400: rgba(var(--spectrum-green-400-rgb)); - --spectrum-green-500-rgb: 73, 204, 147; + --spectrum-green-500-rgb: 43, 209, 125; --spectrum-green-500: rgba(var(--spectrum-green-500-rgb)); - --spectrum-green-600-rgb: 47, 184, 128; + --spectrum-green-600-rgb: 18, 184, 103; --spectrum-green-600: rgba(var(--spectrum-green-600-rgb)); - --spectrum-green-700-rgb: 21, 164, 110; + --spectrum-green-700-rgb: 11, 164, 93; --spectrum-green-700: rgba(var(--spectrum-green-700-rgb)); - --spectrum-green-800-rgb: 0, 143, 93; + --spectrum-green-800-rgb: 7, 147, 85; --spectrum-green-800: rgba(var(--spectrum-green-800-rgb)); - --spectrum-green-900-rgb: 0, 122, 77; + --spectrum-green-900-rgb: 5, 131, 78; --spectrum-green-900: rgba(var(--spectrum-green-900-rgb)); - --spectrum-green-1000-rgb: 0, 101, 62; + --spectrum-green-1000-rgb: 3, 110, 69; --spectrum-green-1000: rgba(var(--spectrum-green-1000-rgb)); - --spectrum-green-1100-rgb: 0, 81, 50; + --spectrum-green-1100-rgb: 2, 93, 60; --spectrum-green-1100: rgba(var(--spectrum-green-1100-rgb)); - --spectrum-green-1200-rgb: 5, 63, 39; + --spectrum-green-1200-rgb: 1, 76, 52; --spectrum-green-1200: rgba(var(--spectrum-green-1200-rgb)); - --spectrum-green-1300-rgb: 10, 46, 29; + --spectrum-green-1300-rgb: 0, 61, 44; --spectrum-green-1300: rgba(var(--spectrum-green-1300-rgb)); - --spectrum-green-1400-rgb: 10, 32, 21; + --spectrum-green-1400-rgb: 0, 46, 34; --spectrum-green-1400: rgba(var(--spectrum-green-1400-rgb)); - --spectrum-seafoam-100-rgb: 206, 247, 243; + --spectrum-green-1500-rgb: 0, 33, 25; + --spectrum-green-1500: rgba(var(--spectrum-green-1500-rgb)); + --spectrum-green-1600-rgb: 0, 15, 12; + --spectrum-green-1600: rgba(var(--spectrum-green-1600-rgb)); + --spectrum-seafoam-100-rgb: 235, 251, 246; --spectrum-seafoam-100: rgba(var(--spectrum-seafoam-100-rgb)); - --spectrum-seafoam-200-rgb: 170, 241, 234; + --spectrum-seafoam-200-rgb: 211, 246, 234; --spectrum-seafoam-200: rgba(var(--spectrum-seafoam-200-rgb)); - --spectrum-seafoam-300-rgb: 140, 233, 226; + --spectrum-seafoam-300-rgb: 169, 237, 216; --spectrum-seafoam-300: rgba(var(--spectrum-seafoam-300-rgb)); - --spectrum-seafoam-400-rgb: 101, 218, 210; + --spectrum-seafoam-400-rgb: 92, 225, 194; --spectrum-seafoam-400: rgba(var(--spectrum-seafoam-400-rgb)); - --spectrum-seafoam-500-rgb: 63, 201, 193; + --spectrum-seafoam-500-rgb: 16, 207, 169; --spectrum-seafoam-500: rgba(var(--spectrum-seafoam-500-rgb)); - --spectrum-seafoam-600-rgb: 15, 181, 174; + --spectrum-seafoam-600-rgb: 13, 181, 149; --spectrum-seafoam-600: rgba(var(--spectrum-seafoam-600-rgb)); - --spectrum-seafoam-700-rgb: 0, 161, 154; + --spectrum-seafoam-700-rgb: 11, 162, 134; --spectrum-seafoam-700: rgba(var(--spectrum-seafoam-700-rgb)); - --spectrum-seafoam-800-rgb: 0, 140, 135; + --spectrum-seafoam-800-rgb: 9, 144, 120; --spectrum-seafoam-800: rgba(var(--spectrum-seafoam-800-rgb)); - --spectrum-seafoam-900-rgb: 0, 119, 114; + --spectrum-seafoam-900-rgb: 7, 129, 109; --spectrum-seafoam-900: rgba(var(--spectrum-seafoam-900-rgb)); - --spectrum-seafoam-1000-rgb: 0, 99, 95; + --spectrum-seafoam-1000-rgb: 5, 108, 92; --spectrum-seafoam-1000: rgba(var(--spectrum-seafoam-1000-rgb)); - --spectrum-seafoam-1100-rgb: 12, 79, 76; + --spectrum-seafoam-1100-rgb: 3, 92, 80; --spectrum-seafoam-1100: rgba(var(--spectrum-seafoam-1100-rgb)); - --spectrum-seafoam-1200-rgb: 18, 60, 58; + --spectrum-seafoam-1200-rgb: 1, 75, 67; --spectrum-seafoam-1200: rgba(var(--spectrum-seafoam-1200-rgb)); - --spectrum-seafoam-1300-rgb: 18, 44, 43; + --spectrum-seafoam-1300-rgb: 0, 60, 54; --spectrum-seafoam-1300: rgba(var(--spectrum-seafoam-1300-rgb)); - --spectrum-seafoam-1400-rgb: 15, 31, 30; + --spectrum-seafoam-1400-rgb: 0, 46, 40; --spectrum-seafoam-1400: rgba(var(--spectrum-seafoam-1400-rgb)); - --spectrum-cyan-100-rgb: 197, 248, 255; + --spectrum-seafoam-1500-rgb: 0, 33, 29; + --spectrum-seafoam-1500: rgba(var(--spectrum-seafoam-1500-rgb)); + --spectrum-seafoam-1600-rgb: 0, 15, 14; + --spectrum-seafoam-1600: rgba(var(--spectrum-seafoam-1600-rgb)); + --spectrum-cyan-100-rgb: 238, 250, 254; --spectrum-cyan-100: rgba(var(--spectrum-cyan-100-rgb)); - --spectrum-cyan-200-rgb: 164, 240, 255; + --spectrum-cyan-200-rgb: 217, 244, 253; --spectrum-cyan-200: rgba(var(--spectrum-cyan-200-rgb)); - --spectrum-cyan-300-rgb: 136, 231, 250; + --spectrum-cyan-300-rgb: 183, 231, 252; --spectrum-cyan-300: rgba(var(--spectrum-cyan-300-rgb)); - --spectrum-cyan-400-rgb: 96, 216, 243; + --spectrum-cyan-400-rgb: 138, 213, 255; --spectrum-cyan-400: rgba(var(--spectrum-cyan-400-rgb)); - --spectrum-cyan-500-rgb: 51, 197, 232; + --spectrum-cyan-500-rgb: 92, 192, 255; --spectrum-cyan-500: rgba(var(--spectrum-cyan-500-rgb)); - --spectrum-cyan-600-rgb: 18, 176, 218; + --spectrum-cyan-600-rgb: 48, 167, 254; --spectrum-cyan-600: rgba(var(--spectrum-cyan-600-rgb)); - --spectrum-cyan-700-rgb: 1, 156, 200; + --spectrum-cyan-700-rgb: 29, 149, 231; --spectrum-cyan-700: rgba(var(--spectrum-cyan-700-rgb)); - --spectrum-cyan-800-rgb: 0, 134, 180; + --spectrum-cyan-800-rgb: 18, 134, 205; --spectrum-cyan-800: rgba(var(--spectrum-cyan-800-rgb)); - --spectrum-cyan-900-rgb: 0, 113, 159; + --spectrum-cyan-900-rgb: 11, 120, 179; --spectrum-cyan-900: rgba(var(--spectrum-cyan-900-rgb)); - --spectrum-cyan-1000-rgb: 0, 93, 137; + --spectrum-cyan-1000-rgb: 4, 102, 145; --spectrum-cyan-1000: rgba(var(--spectrum-cyan-1000-rgb)); - --spectrum-cyan-1100-rgb: 0, 74, 115; + --spectrum-cyan-1100-rgb: 0, 87, 121; --spectrum-cyan-1100: rgba(var(--spectrum-cyan-1100-rgb)); - --spectrum-cyan-1200-rgb: 0, 57, 93; + --spectrum-cyan-1200-rgb: 0, 71, 98; --spectrum-cyan-1200: rgba(var(--spectrum-cyan-1200-rgb)); - --spectrum-cyan-1300-rgb: 0, 42, 70; + --spectrum-cyan-1300-rgb: 0, 57, 78; --spectrum-cyan-1300: rgba(var(--spectrum-cyan-1300-rgb)); - --spectrum-cyan-1400-rgb: 0, 30, 51; + --spectrum-cyan-1400-rgb: 0, 43, 59; --spectrum-cyan-1400: rgba(var(--spectrum-cyan-1400-rgb)); - --spectrum-indigo-100-rgb: 237, 238, 255; + --spectrum-cyan-1500-rgb: 0, 31, 43; + --spectrum-cyan-1500: rgba(var(--spectrum-cyan-1500-rgb)); + --spectrum-cyan-1600-rgb: 0, 14, 20; + --spectrum-cyan-1600: rgba(var(--spectrum-cyan-1600-rgb)); + --spectrum-indigo-100-rgb: 247, 248, 255; --spectrum-indigo-100: rgba(var(--spectrum-indigo-100-rgb)); - --spectrum-indigo-200-rgb: 224, 226, 255; + --spectrum-indigo-200-rgb: 235, 238, 255; --spectrum-indigo-200: rgba(var(--spectrum-indigo-200-rgb)); - --spectrum-indigo-300-rgb: 211, 213, 255; + --spectrum-indigo-300-rgb: 216, 222, 255; --spectrum-indigo-300: rgba(var(--spectrum-indigo-300-rgb)); - --spectrum-indigo-400-rgb: 193, 196, 255; + --spectrum-indigo-400-rgb: 192, 201, 255; --spectrum-indigo-400: rgba(var(--spectrum-indigo-400-rgb)); - --spectrum-indigo-500-rgb: 172, 175, 255; + --spectrum-indigo-500-rgb: 167, 178, 255; --spectrum-indigo-500: rgba(var(--spectrum-indigo-500-rgb)); - --spectrum-indigo-600-rgb: 149, 153, 255; + --spectrum-indigo-600-rgb: 145, 151, 254; --spectrum-indigo-600: rgba(var(--spectrum-indigo-600-rgb)); - --spectrum-indigo-700-rgb: 126, 132, 252; + --spectrum-indigo-700-rgb: 132, 128, 254; --spectrum-indigo-700: rgba(var(--spectrum-indigo-700-rgb)); - --spectrum-indigo-800-rgb: 104, 109, 244; + --spectrum-indigo-800-rgb: 122, 106, 253; --spectrum-indigo-800: rgba(var(--spectrum-indigo-800-rgb)); - --spectrum-indigo-900-rgb: 82, 88, 228; + --spectrum-indigo-900-rgb: 113, 85, 250; --spectrum-indigo-900: rgba(var(--spectrum-indigo-900-rgb)); - --spectrum-indigo-1000-rgb: 64, 70, 202; + --spectrum-indigo-1000-rgb: 99, 56, 238; --spectrum-indigo-1000: rgba(var(--spectrum-indigo-1000-rgb)); - --spectrum-indigo-1100-rgb: 50, 54, 168; + --spectrum-indigo-1100-rgb: 84, 36, 219; --spectrum-indigo-1100: rgba(var(--spectrum-indigo-1100-rgb)); - --spectrum-indigo-1200-rgb: 38, 41, 134; + --spectrum-indigo-1200-rgb: 69, 19, 191; --spectrum-indigo-1200: rgba(var(--spectrum-indigo-1200-rgb)); - --spectrum-indigo-1300-rgb: 27, 30, 100; + --spectrum-indigo-1300-rgb: 55, 6, 160; --spectrum-indigo-1300: rgba(var(--spectrum-indigo-1300-rgb)); - --spectrum-indigo-1400-rgb: 20, 22, 72; + --spectrum-indigo-1400-rgb: 42, 0, 129; --spectrum-indigo-1400: rgba(var(--spectrum-indigo-1400-rgb)); - --spectrum-purple-100-rgb: 246, 235, 255; + --spectrum-indigo-1500-rgb: 31, 0, 98; + --spectrum-indigo-1500: rgba(var(--spectrum-indigo-1500-rgb)); + --spectrum-indigo-1600-rgb: 17, 0, 54; + --spectrum-indigo-1600: rgba(var(--spectrum-indigo-1600-rgb)); + --spectrum-purple-100-rgb: 251, 247, 254; --spectrum-purple-100: rgba(var(--spectrum-purple-100-rgb)); - --spectrum-purple-200-rgb: 238, 221, 255; + --spectrum-purple-200-rgb: 244, 235, 252; --spectrum-purple-200: rgba(var(--spectrum-purple-200-rgb)); - --spectrum-purple-300-rgb: 230, 208, 255; + --spectrum-purple-300-rgb: 235, 218, 249; --spectrum-purple-300: rgba(var(--spectrum-purple-300-rgb)); - --spectrum-purple-400-rgb: 219, 187, 254; + --spectrum-purple-400-rgb: 221, 193, 246; --spectrum-purple-400: rgba(var(--spectrum-purple-400-rgb)); - --spectrum-purple-500-rgb: 204, 164, 253; + --spectrum-purple-500-rgb: 208, 167, 243; --spectrum-purple-500: rgba(var(--spectrum-purple-500-rgb)); - --spectrum-purple-600-rgb: 189, 139, 252; + --spectrum-purple-600-rgb: 191, 138, 238; --spectrum-purple-600: rgba(var(--spectrum-purple-600-rgb)); - --spectrum-purple-700-rgb: 174, 114, 249; + --spectrum-purple-700-rgb: 178, 114, 235; --spectrum-purple-700: rgba(var(--spectrum-purple-700-rgb)); - --spectrum-purple-800-rgb: 157, 87, 244; + --spectrum-purple-800-rgb: 166, 92, 231; --spectrum-purple-800: rgba(var(--spectrum-purple-800-rgb)); - --spectrum-purple-900-rgb: 137, 61, 231; + --spectrum-purple-900-rgb: 154, 71, 226; --spectrum-purple-900: rgba(var(--spectrum-purple-900-rgb)); - --spectrum-purple-1000-rgb: 115, 38, 211; + --spectrum-purple-1000-rgb: 134, 40, 217; --spectrum-purple-1000: rgba(var(--spectrum-purple-1000-rgb)); - --spectrum-purple-1100-rgb: 93, 19, 183; + --spectrum-purple-1100-rgb: 115, 13, 204; --spectrum-purple-1100: rgba(var(--spectrum-purple-1100-rgb)); - --spectrum-purple-1200-rgb: 71, 12, 148; + --spectrum-purple-1200-rgb: 93, 0, 177; --spectrum-purple-1200: rgba(var(--spectrum-purple-1200-rgb)); - --spectrum-purple-1300-rgb: 51, 16, 106; + --spectrum-purple-1300-rgb: 75, 0, 144; --spectrum-purple-1300: rgba(var(--spectrum-purple-1300-rgb)); - --spectrum-purple-1400-rgb: 35, 15, 73; + --spectrum-purple-1400-rgb: 59, 0, 111; --spectrum-purple-1400: rgba(var(--spectrum-purple-1400-rgb)); - --spectrum-fuchsia-100-rgb: 255, 233, 252; + --spectrum-purple-1500-rgb: 44, 0, 84; + --spectrum-purple-1500: rgba(var(--spectrum-purple-1500-rgb)); + --spectrum-purple-1600-rgb: 23, 0, 45; + --spectrum-purple-1600: rgba(var(--spectrum-purple-1600-rgb)); + --spectrum-fuchsia-100-rgb: 254, 246, 255; --spectrum-fuchsia-100: rgba(var(--spectrum-fuchsia-100-rgb)); - --spectrum-fuchsia-200-rgb: 255, 218, 250; + --spectrum-fuchsia-200-rgb: 253, 233, 255; --spectrum-fuchsia-200: rgba(var(--spectrum-fuchsia-200-rgb)); - --spectrum-fuchsia-300-rgb: 254, 199, 248; + --spectrum-fuchsia-300-rgb: 250, 211, 255; --spectrum-fuchsia-300: rgba(var(--spectrum-fuchsia-300-rgb)); - --spectrum-fuchsia-400-rgb: 251, 174, 246; + --spectrum-fuchsia-400-rgb: 247, 181, 255; --spectrum-fuchsia-400: rgba(var(--spectrum-fuchsia-400-rgb)); - --spectrum-fuchsia-500-rgb: 245, 146, 243; + --spectrum-fuchsia-500-rgb: 243, 147, 255; --spectrum-fuchsia-500: rgba(var(--spectrum-fuchsia-500-rgb)); - --spectrum-fuchsia-600-rgb: 237, 116, 237; + --spectrum-fuchsia-600-rgb: 236, 105, 255; --spectrum-fuchsia-600: rgba(var(--spectrum-fuchsia-600-rgb)); - --spectrum-fuchsia-700-rgb: 224, 85, 226; + --spectrum-fuchsia-700-rgb: 223, 77, 245; --spectrum-fuchsia-700: rgba(var(--spectrum-fuchsia-700-rgb)); - --spectrum-fuchsia-800-rgb: 205, 58, 206; + --spectrum-fuchsia-800-rgb: 200, 68, 220; --spectrum-fuchsia-800: rgba(var(--spectrum-fuchsia-800-rgb)); - --spectrum-fuchsia-900-rgb: 182, 34, 183; + --spectrum-fuchsia-900-rgb: 181, 57, 200; --spectrum-fuchsia-900: rgba(var(--spectrum-fuchsia-900-rgb)); - --spectrum-fuchsia-1000-rgb: 157, 3, 158; + --spectrum-fuchsia-1000-rgb: 156, 40, 175; --spectrum-fuchsia-1000: rgba(var(--spectrum-fuchsia-1000-rgb)); - --spectrum-fuchsia-1100-rgb: 128, 0, 129; + --spectrum-fuchsia-1100-rgb: 135, 27, 154; --spectrum-fuchsia-1100: rgba(var(--spectrum-fuchsia-1100-rgb)); - --spectrum-fuchsia-1200-rgb: 100, 6, 100; + --spectrum-fuchsia-1200-rgb: 113, 15, 131; --spectrum-fuchsia-1200: rgba(var(--spectrum-fuchsia-1200-rgb)); - --spectrum-fuchsia-1300-rgb: 71, 14, 70; + --spectrum-fuchsia-1300-rgb: 92, 4, 109; --spectrum-fuchsia-1300: rgba(var(--spectrum-fuchsia-1300-rgb)); - --spectrum-fuchsia-1400-rgb: 50, 13, 49; + --spectrum-fuchsia-1400-rgb: 72, 0, 88; --spectrum-fuchsia-1400: rgba(var(--spectrum-fuchsia-1400-rgb)); - --spectrum-magenta-100-rgb: 255, 234, 241; + --spectrum-fuchsia-1500-rgb: 54, 0, 66; + --spectrum-fuchsia-1500: rgba(var(--spectrum-fuchsia-1500-rgb)); + --spectrum-fuchsia-1600-rgb: 29, 0, 35; + --spectrum-fuchsia-1600: rgba(var(--spectrum-fuchsia-1600-rgb)); + --spectrum-magenta-100-rgb: 255, 245, 248; --spectrum-magenta-100: rgba(var(--spectrum-magenta-100-rgb)); - --spectrum-magenta-200-rgb: 255, 220, 232; + --spectrum-magenta-200-rgb: 255, 232, 240; --spectrum-magenta-200: rgba(var(--spectrum-magenta-200-rgb)); - --spectrum-magenta-300-rgb: 255, 202, 221; + --spectrum-magenta-300-rgb: 255, 213, 227; --spectrum-magenta-300: rgba(var(--spectrum-magenta-300-rgb)); - --spectrum-magenta-400-rgb: 255, 178, 206; + --spectrum-magenta-400-rgb: 255, 185, 208; --spectrum-magenta-400: rgba(var(--spectrum-magenta-400-rgb)); - --spectrum-magenta-500-rgb: 255, 149, 189; + --spectrum-magenta-500-rgb: 255, 152, 187; --spectrum-magenta-500: rgba(var(--spectrum-magenta-500-rgb)); - --spectrum-magenta-600-rgb: 250, 119, 170; + --spectrum-magenta-600-rgb: 255, 112, 159; --spectrum-magenta-600: rgba(var(--spectrum-magenta-600-rgb)); - --spectrum-magenta-700-rgb: 239, 90, 152; + --spectrum-magenta-700-rgb: 255, 72, 133; --spectrum-magenta-700: rgba(var(--spectrum-magenta-700-rgb)); - --spectrum-magenta-800-rgb: 222, 61, 130; + --spectrum-magenta-800-rgb: 240, 45, 110; --spectrum-magenta-800: rgba(var(--spectrum-magenta-800-rgb)); - --spectrum-magenta-900-rgb: 200, 34, 105; + --spectrum-magenta-900-rgb: 217, 35, 97; --spectrum-magenta-900: rgba(var(--spectrum-magenta-900-rgb)); - --spectrum-magenta-1000-rgb: 173, 9, 85; + --spectrum-magenta-1000-rgb: 186, 22, 80; --spectrum-magenta-1000: rgba(var(--spectrum-magenta-1000-rgb)); - --spectrum-magenta-1100-rgb: 142, 0, 69; + --spectrum-magenta-1100-rgb: 163, 5, 62; --spectrum-magenta-1100: rgba(var(--spectrum-magenta-1100-rgb)); - --spectrum-magenta-1200-rgb: 112, 0, 55; + --spectrum-magenta-1200-rgb: 136, 0, 51; --spectrum-magenta-1200: rgba(var(--spectrum-magenta-1200-rgb)); - --spectrum-magenta-1300-rgb: 84, 3, 42; + --spectrum-magenta-1300-rgb: 111, 0, 40; --spectrum-magenta-1300: rgba(var(--spectrum-magenta-1300-rgb)); - --spectrum-magenta-1400-rgb: 60, 6, 29; + --spectrum-magenta-1400-rgb: 86, 0, 30; --spectrum-magenta-1400: rgba(var(--spectrum-magenta-1400-rgb)); + --spectrum-magenta-1500-rgb: 64, 0, 22; + --spectrum-magenta-1500: rgba(var(--spectrum-magenta-1500-rgb)); + --spectrum-magenta-1600-rgb: 35, 0, 12; + --spectrum-magenta-1600: rgba(var(--spectrum-magenta-1600-rgb)); + --spectrum-pink-100-rgb: 255, 246, 252; + --spectrum-pink-100: rgba(var(--spectrum-pink-100-rgb)); + --spectrum-pink-200-rgb: 255, 232, 247; + --spectrum-pink-200: rgba(var(--spectrum-pink-200-rgb)); + --spectrum-pink-300-rgb: 255, 211, 240; + --spectrum-pink-300: rgba(var(--spectrum-pink-300-rgb)); + --spectrum-pink-400-rgb: 255, 181, 230; + --spectrum-pink-400: rgba(var(--spectrum-pink-400-rgb)); + --spectrum-pink-500-rgb: 255, 148, 219; + --spectrum-pink-500: rgba(var(--spectrum-pink-500-rgb)); + --spectrum-pink-600-rgb: 255, 103, 204; + --spectrum-pink-600: rgba(var(--spectrum-pink-600-rgb)); + --spectrum-pink-700-rgb: 242, 76, 184; + --spectrum-pink-700: rgba(var(--spectrum-pink-700-rgb)); + --spectrum-pink-800-rgb: 228, 52, 163; + --spectrum-pink-800: rgba(var(--spectrum-pink-800-rgb)); + --spectrum-pink-900-rgb: 206, 42, 146; + --spectrum-pink-900: rgba(var(--spectrum-pink-900-rgb)); + --spectrum-pink-1000-rgb: 176, 31, 123; + --spectrum-pink-1000: rgba(var(--spectrum-pink-1000-rgb)); + --spectrum-pink-1100-rgb: 152, 22, 104; + --spectrum-pink-1100: rgba(var(--spectrum-pink-1100-rgb)); + --spectrum-pink-1200-rgb: 128, 12, 85; + --spectrum-pink-1200: rgba(var(--spectrum-pink-1200-rgb)); + --spectrum-pink-1300-rgb: 105, 3, 68; + --spectrum-pink-1300: rgba(var(--spectrum-pink-1300-rgb)); + --spectrum-pink-1400-rgb: 83, 0, 53; + --spectrum-pink-1400: rgba(var(--spectrum-pink-1400-rgb)); + --spectrum-pink-1500-rgb: 62, 0, 39; + --spectrum-pink-1500: rgba(var(--spectrum-pink-1500-rgb)); + --spectrum-pink-1600-rgb: 33, 0, 21; + --spectrum-pink-1600: rgba(var(--spectrum-pink-1600-rgb)); + --spectrum-turquoise-100-rgb: 238, 251, 251; + --spectrum-turquoise-100: rgba(var(--spectrum-turquoise-100-rgb)); + --spectrum-turquoise-200-rgb: 209, 245, 245; + --spectrum-turquoise-200: rgba(var(--spectrum-turquoise-200-rgb)); + --spectrum-turquoise-300-rgb: 169, 236, 237; + --spectrum-turquoise-300: rgba(var(--spectrum-turquoise-300-rgb)); + --spectrum-turquoise-400-rgb: 111, 221, 228; + --spectrum-turquoise-400: rgba(var(--spectrum-turquoise-400-rgb)); + --spectrum-turquoise-500-rgb: 39, 202, 216; + --spectrum-turquoise-500: rgba(var(--spectrum-turquoise-500-rgb)); + --spectrum-turquoise-600-rgb: 15, 177, 192; + --spectrum-turquoise-600: rgba(var(--spectrum-turquoise-600-rgb)); + --spectrum-turquoise-700-rgb: 12, 158, 171; + --spectrum-turquoise-700: rgba(var(--spectrum-turquoise-700-rgb)); + --spectrum-turquoise-800-rgb: 10, 141, 153; + --spectrum-turquoise-800: rgba(var(--spectrum-turquoise-800-rgb)); + --spectrum-turquoise-900-rgb: 8, 126, 137; + --spectrum-turquoise-900: rgba(var(--spectrum-turquoise-900-rgb)); + --spectrum-turquoise-1000-rgb: 5, 107, 116; + --spectrum-turquoise-1000: rgba(var(--spectrum-turquoise-1000-rgb)); + --spectrum-turquoise-1100-rgb: 3, 90, 98; + --spectrum-turquoise-1100: rgba(var(--spectrum-turquoise-1100-rgb)); + --spectrum-turquoise-1200-rgb: 1, 74, 81; + --spectrum-turquoise-1200: rgba(var(--spectrum-turquoise-1200-rgb)); + --spectrum-turquoise-1300-rgb: 0, 59, 65; + --spectrum-turquoise-1300: rgba(var(--spectrum-turquoise-1300-rgb)); + --spectrum-turquoise-1400-rgb: 0, 44, 49; + --spectrum-turquoise-1400: rgba(var(--spectrum-turquoise-1400-rgb)); + --spectrum-turquoise-1500-rgb: 0, 32, 35; + --spectrum-turquoise-1500: rgba(var(--spectrum-turquoise-1500-rgb)); + --spectrum-turquoise-1600-rgb: 0, 15, 17; + --spectrum-turquoise-1600: rgba(var(--spectrum-turquoise-1600-rgb)); + --spectrum-brown-100-rgb: 252, 247, 242; + --spectrum-brown-100: rgba(var(--spectrum-brown-100-rgb)); + --spectrum-brown-200-rgb: 247, 238, 225; + --spectrum-brown-200: rgba(var(--spectrum-brown-200-rgb)); + --spectrum-brown-300-rgb: 239, 221, 195; + --spectrum-brown-300: rgba(var(--spectrum-brown-300-rgb)); + --spectrum-brown-400-rgb: 229, 200, 157; + --spectrum-brown-400: rgba(var(--spectrum-brown-400-rgb)); + --spectrum-brown-500-rgb: 214, 177, 123; + --spectrum-brown-500: rgba(var(--spectrum-brown-500-rgb)); + --spectrum-brown-600-rgb: 190, 155, 104; + --spectrum-brown-600: rgba(var(--spectrum-brown-600-rgb)); + --spectrum-brown-700-rgb: 171, 138, 90; + --spectrum-brown-700: rgba(var(--spectrum-brown-700-rgb)); + --spectrum-brown-800-rgb: 154, 123, 77; + --spectrum-brown-800: rgba(var(--spectrum-brown-800-rgb)); + --spectrum-brown-900-rgb: 139, 109, 66; + --spectrum-brown-900: rgba(var(--spectrum-brown-900-rgb)); + --spectrum-brown-1000-rgb: 119, 91, 50; + --spectrum-brown-1000: rgba(var(--spectrum-brown-1000-rgb)); + --spectrum-brown-1100-rgb: 103, 76, 35; + --spectrum-brown-1100: rgba(var(--spectrum-brown-1100-rgb)); + --spectrum-brown-1200-rgb: 88, 61, 21; + --spectrum-brown-1200: rgba(var(--spectrum-brown-1200-rgb)); + --spectrum-brown-1300-rgb: 70, 49, 17; + --spectrum-brown-1300: rgba(var(--spectrum-brown-1300-rgb)); + --spectrum-brown-1400-rgb: 52, 37, 13; + --spectrum-brown-1400: rgba(var(--spectrum-brown-1400-rgb)); + --spectrum-brown-1500-rgb: 38, 26, 9; + --spectrum-brown-1500: rgba(var(--spectrum-brown-1500-rgb)); + --spectrum-brown-1600-rgb: 16, 12, 4; + --spectrum-brown-1600: rgba(var(--spectrum-brown-1600-rgb)); + --spectrum-silver-100-rgb: 247, 247, 247; + --spectrum-silver-100: rgba(var(--spectrum-silver-100-rgb)); + --spectrum-silver-200-rgb: 239, 239, 239; + --spectrum-silver-200: rgba(var(--spectrum-silver-200-rgb)); + --spectrum-silver-300-rgb: 223, 223, 223; + --spectrum-silver-300: rgba(var(--spectrum-silver-300-rgb)); + --spectrum-silver-400-rgb: 204, 204, 204; + --spectrum-silver-400: rgba(var(--spectrum-silver-400-rgb)); + --spectrum-silver-500-rgb: 183, 183, 183; + --spectrum-silver-500: rgba(var(--spectrum-silver-500-rgb)); + --spectrum-silver-600-rgb: 160, 160, 160; + --spectrum-silver-600: rgba(var(--spectrum-silver-600-rgb)); + --spectrum-silver-700-rgb: 143, 143, 143; + --spectrum-silver-700: rgba(var(--spectrum-silver-700-rgb)); + --spectrum-silver-800-rgb: 128, 128, 128; + --spectrum-silver-800: rgba(var(--spectrum-silver-800-rgb)); + --spectrum-silver-900-rgb: 114, 114, 114; + --spectrum-silver-900: rgba(var(--spectrum-silver-900-rgb)); + --spectrum-silver-1000-rgb: 96, 96, 96; + --spectrum-silver-1000: rgba(var(--spectrum-silver-1000-rgb)); + --spectrum-silver-1100-rgb: 81, 81, 81; + --spectrum-silver-1100: rgba(var(--spectrum-silver-1100-rgb)); + --spectrum-silver-1200-rgb: 66, 66, 66; + --spectrum-silver-1200: rgba(var(--spectrum-silver-1200-rgb)); + --spectrum-silver-1300-rgb: 52, 52, 52; + --spectrum-silver-1300: rgba(var(--spectrum-silver-1300-rgb)); + --spectrum-silver-1400-rgb: 39, 39, 39; + --spectrum-silver-1400: rgba(var(--spectrum-silver-1400-rgb)); + --spectrum-silver-1500-rgb: 28, 28, 28; + --spectrum-silver-1500: rgba(var(--spectrum-silver-1500-rgb)); + --spectrum-silver-1600-rgb: 12, 12, 12; + --spectrum-silver-1600: rgba(var(--spectrum-silver-1600-rgb)); + --spectrum-cinnamon-100-rgb: 253, 247, 243; + --spectrum-cinnamon-100: rgba(var(--spectrum-cinnamon-100-rgb)); + --spectrum-cinnamon-200-rgb: 249, 236, 229; + --spectrum-cinnamon-200: rgba(var(--spectrum-cinnamon-200-rgb)); + --spectrum-cinnamon-300-rgb: 244, 218, 203; + --spectrum-cinnamon-300: rgba(var(--spectrum-cinnamon-300-rgb)); + --spectrum-cinnamon-400-rgb: 237, 196, 172; + --spectrum-cinnamon-400: rgba(var(--spectrum-cinnamon-400-rgb)); + --spectrum-cinnamon-500-rgb: 229, 170, 136; + --spectrum-cinnamon-500: rgba(var(--spectrum-cinnamon-500-rgb)); + --spectrum-cinnamon-600-rgb: 212, 145, 108; + --spectrum-cinnamon-600: rgba(var(--spectrum-cinnamon-600-rgb)); + --spectrum-cinnamon-700-rgb: 198, 126, 88; + --spectrum-cinnamon-700: rgba(var(--spectrum-cinnamon-700-rgb)); + --spectrum-cinnamon-800-rgb: 184, 109, 70; + --spectrum-cinnamon-800: rgba(var(--spectrum-cinnamon-800-rgb)); + --spectrum-cinnamon-900-rgb: 170, 94, 56; + --spectrum-cinnamon-900: rgba(var(--spectrum-cinnamon-900-rgb)); + --spectrum-cinnamon-1000-rgb: 147, 77, 43; + --spectrum-cinnamon-1000: rgba(var(--spectrum-cinnamon-1000-rgb)); + --spectrum-cinnamon-1100-rgb: 128, 62, 32; + --spectrum-cinnamon-1100: rgba(var(--spectrum-cinnamon-1100-rgb)); + --spectrum-cinnamon-1200-rgb: 110, 48, 21; + --spectrum-cinnamon-1200: rgba(var(--spectrum-cinnamon-1200-rgb)); + --spectrum-cinnamon-1300-rgb: 92, 35, 11; + --spectrum-cinnamon-1300: rgba(var(--spectrum-cinnamon-1300-rgb)); + --spectrum-cinnamon-1400-rgb: 72, 25, 6; + --spectrum-cinnamon-1400: rgba(var(--spectrum-cinnamon-1400-rgb)); + --spectrum-cinnamon-1500-rgb: 52, 18, 4; + --spectrum-cinnamon-1500: rgba(var(--spectrum-cinnamon-1500-rgb)); + --spectrum-cinnamon-1600-rgb: 24, 8, 2; + --spectrum-cinnamon-1600: rgba(var(--spectrum-cinnamon-1600-rgb)); --spectrum-icon-color-blue-primary-default: var(--spectrum-blue-900); --spectrum-icon-color-green-primary-default: var(--spectrum-green-900); --spectrum-icon-color-red-primary-default: var(--spectrum-red-900); --spectrum-icon-color-yellow-primary-default: var(--spectrum-yellow-400); + --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-800-rgb); + --spectrum-dropindicator-color: var(--spectrum-blue-800); + + --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-black-rgb), 0.06); + --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-black-200); + --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-black-rgb), 0.06); + --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-800); + + --spectrum-badge-label-icon-color-primary: var(--spectrum-white); + + --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-800); + + --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-800); + + --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.06); + --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + + --spectrum-logic-button-and-background-color: var(--spectrum-blue-900); + --spectrum-logic-button-and-border-color: var(--spectrum-blue-900); + --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); + --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); + + --spectrum-logic-button-or-background-color: var(--spectrum-magenta-900); + --spectrum-logic-button-or-border-color: var(--spectrum-magenta-900); + --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-1100); + --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-1100); + + --spectrum-assetcard-border-color-selected: var(--spectrum-blue-900); + --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-900); + --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-1000); + --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-900); + --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-800); + + --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); + --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); + --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-800); + + --spectrum-card-selected-background-color-rgb: var(--spectrum-blue-900-rgb); } .spectrum--medium { --spectrum-workflow-icon-size-50: 14px; @@ -2504,6 +2851,34 @@ --spectrum-dash-icon-size-400: 14px; --spectrum-dash-icon-size-500: 16px; --spectrum-dash-icon-size-600: 18px; + --spectrum-checkbox-control-size-small: 12px; + --spectrum-checkbox-control-size-medium: 14px; + --spectrum-checkbox-control-size-large: 16px; + --spectrum-checkbox-control-size-extra-large: 18px; + --spectrum-checkbox-top-to-control-small: 6px; + --spectrum-checkbox-top-to-control-medium: 9px; + --spectrum-checkbox-top-to-control-large: 12px; + --spectrum-checkbox-top-to-control-extra-large: 15px; + --spectrum-switch-control-width-small: 23px; + --spectrum-switch-control-width-medium: 26px; + --spectrum-switch-control-width-large: 29px; + --spectrum-switch-control-width-extra-large: 33px; + --spectrum-switch-control-height-small: 12px; + --spectrum-switch-control-height-medium: 14px; + --spectrum-switch-control-height-large: 16px; + --spectrum-switch-control-height-extra-large: 18px; + --spectrum-switch-top-to-control-small: 6px; + --spectrum-switch-top-to-control-medium: 9px; + --spectrum-switch-top-to-control-large: 12px; + --spectrum-switch-top-to-control-extra-large: 15px; + --spectrum-radio-button-control-size-small: 12px; + --spectrum-radio-button-control-size-medium: 14px; + --spectrum-radio-button-control-size-large: 16px; + --spectrum-radio-button-control-size-extra-large: 18px; + --spectrum-radio-button-top-to-control-small: 6px; + --spectrum-radio-button-top-to-control-medium: 9px; + --spectrum-radio-button-top-to-control-large: 12px; + --spectrum-radio-button-top-to-control-extra-large: 15px; --spectrum-field-label-text-to-asterisk-small: 4px; --spectrum-field-label-text-to-asterisk-medium: 4px; --spectrum-field-label-text-to-asterisk-large: 5px; @@ -2579,6 +2954,22 @@ --spectrum-menu-item-top-to-selected-icon-medium: 11px; --spectrum-menu-item-top-to-selected-icon-large: 14px; --spectrum-menu-item-top-to-selected-icon-extra-large: 17px; + --spectrum-slider-control-height-small: 14px; + --spectrum-slider-control-height-medium: 16px; + --spectrum-slider-control-height-large: 18px; + --spectrum-slider-control-height-extra-large: 20px; + --spectrum-slider-handle-size-small: 14px; + --spectrum-slider-handle-size-medium: 16px; + --spectrum-slider-handle-size-large: 18px; + --spectrum-slider-handle-size-extra-large: 20px; + --spectrum-slider-handle-border-width-down-small: 5px; + --spectrum-slider-handle-border-width-down-medium: 6px; + --spectrum-slider-handle-border-width-down-large: 7px; + --spectrum-slider-handle-border-width-down-extra-large: 8px; + --spectrum-slider-bottom-to-handle-small: 5px; + --spectrum-slider-bottom-to-handle-medium: 8px; + --spectrum-slider-bottom-to-handle-large: 11px; + --spectrum-slider-bottom-to-handle-extra-large: 14px; --spectrum-slider-control-to-field-label-small: 5px; --spectrum-slider-control-to-field-label-medium: 8px; --spectrum-slider-control-to-field-label-large: 11px; @@ -2807,6 +3198,10 @@ --spectrum-side-navigation-bottom-to-text: 8px; --spectrum-tray-top-to-content-area: 4px; --spectrum-accordion-top-to-text-spacious-small: 9px; + --spectrum-corner-radius-100: 4px; + --spectrum-corner-radius-200: 8px; + --spectrum-drop-shadow-y: 1px; + --spectrum-drop-shadow-blur: 4px; --spectrum-text-to-visual-50: 6px; --spectrum-text-to-visual-75: 7px; --spectrum-text-to-visual-100: 8px; @@ -2943,445 +3338,8 @@ --spectrum-font-size-1100: 45px; --spectrum-font-size-1200: 50px; --spectrum-font-size-1300: 60px; -} -.spectrum--dark { - --spectrum-menu-item-background-color-default-rgb: 255, 255, 255; - --spectrum-menu-item-background-color-default-opacity: 0; - --spectrum-menu-item-background-color-default: rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-900-rgb); - --spectrum-dropindicator-color: var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.07); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.07); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.25); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.15); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); -} -.spectrum--darkest { - --spectrum-menu-item-background-color-default-rgb: 255, 255, 255; - --spectrum-menu-item-background-color-default-opacity: 0; - --spectrum-menu-item-background-color-default: rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-white-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-white-200); - --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-900-rgb); - --spectrum-dropindicator-color: var(--spectrum-blue-700); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-down: rgba(var(--spectrum-white-rgb), 0.15); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-white-rgb), 0.08); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-700); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-black); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-700); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-700); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.08); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-800); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1000); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1000); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-700); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-900); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-800); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-900); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-800); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-700); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-800-rgb), 0.3); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-800-rgb), 0.2); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-700); -} -.spectrum { - --spectrum-neutral-background-color-selected-default: var(--spectrum-gray-700); - --spectrum-neutral-background-color-selected-hover: var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-down: var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus: var(--spectrum-gray-800); - --spectrum-slider-track-thickness: 2px; - --spectrum-slider-handle-gap: 4px; - --spectrum-picker-border-width: var(--spectrum-border-width-100); - --spectrum-in-field-button-fill-stacked-inner-border-rounding: 0px; - --spectrum-in-field-button-edge-to-fill: 0px; - --spectrum-in-field-button-stacked-inner-edge-to-fill: 0px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium: 3px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large: 4px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large: 5px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-small); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large); - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large: var(--spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large); - --spectrum-corner-radius-75: 2px; - --spectrum-drop-shadow-x: 0px; - --spectrum-border-width-100: 1px; - --spectrum-accent-color-100: var(--spectrum-blue-100); - --spectrum-accent-color-200: var(--spectrum-blue-200); - --spectrum-accent-color-300: var(--spectrum-blue-300); - --spectrum-accent-color-400: var(--spectrum-blue-400); - --spectrum-accent-color-500: var(--spectrum-blue-500); - --spectrum-accent-color-600: var(--spectrum-blue-600); - --spectrum-accent-color-700: var(--spectrum-blue-700); - --spectrum-accent-color-800: var(--spectrum-blue-800); - --spectrum-accent-color-900: var(--spectrum-blue-900); - --spectrum-accent-color-1000: var(--spectrum-blue-1000); - --spectrum-accent-color-1100: var(--spectrum-blue-1100); - --spectrum-accent-color-1200: var(--spectrum-blue-1200); - --spectrum-accent-color-1300: var(--spectrum-blue-1300); - --spectrum-accent-color-1400: var(--spectrum-blue-1400); - --spectrum-heading-sans-serif-font-weight: var(--spectrum-bold-font-weight); - --spectrum-heading-serif-font-weight: var(--spectrum-bold-font-weight); - --spectrum-heading-cjk-font-weight: var(--spectrum-extra-bold-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight: var(--spectrum-bold-font-weight); - --spectrum-heading-serif-emphasized-font-weight: var(--spectrum-bold-font-weight); - --system: spectrum; - --spectrum-animation-linear: cubic-bezier(0, 0, 1, 1); - --spectrum-animation-duration-0: 0ms; - --spectrum-animation-duration-100: 130ms; - --spectrum-animation-duration-200: 160ms; - --spectrum-animation-duration-300: 190ms; - --spectrum-animation-duration-400: 220ms; - --spectrum-animation-duration-500: 250ms; - --spectrum-animation-duration-600: 300ms; - --spectrum-animation-duration-700: 350ms; - --spectrum-animation-duration-800: 400ms; - --spectrum-animation-duration-900: 450ms; - --spectrum-animation-duration-1000: 500ms; - --spectrum-animation-duration-2000: 1000ms; - --spectrum-animation-duration-4000: 2000ms; - --spectrum-animation-duration-6000: 3000ms; - --spectrum-animation-ease-in-out: cubic-bezier(0.45, 0, 0.4, 1); - --spectrum-animation-ease-in: cubic-bezier(0.5, 0, 1, 1); - --spectrum-animation-ease-out: cubic-bezier(0, 0, 0.4, 1); - --spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1); - - --spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif; - --spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack); - - --spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), "Source Serif Pro", Georgia, serif; - --spectrum-serif-font: var(--spectrum-serif-font-family-stack); - - --spectrum-code-font-family-stack: "Source Code Pro", Monaco, monospace; - - --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); - --spectrum-docs-static-white-background-color-rgb: 15, 121, 125; - --spectrum-docs-static-white-background-color: rgba(var(--spectrum-docs-static-white-background-color-rgb)); - --spectrum-docs-static-black-background-color-rgb: 181, 209, 211; - --spectrum-docs-static-black-background-color: rgba(var(--spectrum-docs-static-black-background-color-rgb)); -} -.spectrum--large { - --spectrum-checkbox-control-size-small: 16px; - --spectrum-checkbox-control-size-medium: 18px; - --spectrum-checkbox-control-size-large: 20px; - --spectrum-checkbox-control-size-extra-large: 22px; - --spectrum-checkbox-top-to-control-small: 7px; - --spectrum-checkbox-top-to-control-medium: 11px; - --spectrum-checkbox-top-to-control-large: 15px; - --spectrum-checkbox-top-to-control-extra-large: 19px; - --spectrum-switch-control-width-small: 32px; - --spectrum-switch-control-width-medium: 36px; - --spectrum-switch-control-width-large: 41px; - --spectrum-switch-control-width-extra-large: 46px; - --spectrum-switch-control-height-small: 16px; - --spectrum-switch-control-height-medium: 18px; - --spectrum-switch-control-height-large: 20px; - --spectrum-switch-control-height-extra-large: 22px; - --spectrum-switch-top-to-control-small: 7px; - --spectrum-switch-top-to-control-medium: 11px; - --spectrum-switch-top-to-control-large: 15px; - --spectrum-switch-top-to-control-extra-large: 19px; - --spectrum-radio-button-control-size-small: 16px; - --spectrum-radio-button-control-size-medium: 18px; - --spectrum-radio-button-control-size-large: 20px; - --spectrum-radio-button-control-size-extra-large: 22px; - --spectrum-radio-button-top-to-control-small: 7px; - --spectrum-radio-button-top-to-control-medium: 11px; - --spectrum-radio-button-top-to-control-large: 15px; - --spectrum-radio-button-top-to-control-extra-large: 19px; - --spectrum-slider-control-height-small: 18px; - --spectrum-slider-control-height-medium: 20px; - --spectrum-slider-control-height-large: 22px; - --spectrum-slider-control-height-extra-large: 26px; - --spectrum-slider-handle-size-small: 18px; - --spectrum-slider-handle-size-medium: 20px; - --spectrum-slider-handle-size-large: 22px; - --spectrum-slider-handle-size-extra-large: 26px; - --spectrum-slider-handle-border-width-down-small: 7px; - --spectrum-slider-handle-border-width-down-medium: 8px; - --spectrum-slider-handle-border-width-down-large: 9px; - --spectrum-slider-handle-border-width-down-extra-large: 11px; - --spectrum-slider-bottom-to-handle-small: 6px; - --spectrum-slider-bottom-to-handle-medium: 10px; - --spectrum-slider-bottom-to-handle-large: 14px; - --spectrum-slider-bottom-to-handle-extra-large: 17px; - --spectrum-corner-radius-100: 5px; - --spectrum-corner-radius-200: 10px; - --spectrum-drop-shadow-y: 2px; - --spectrum-drop-shadow-blur: 6px; - --spectrum-slider-tick-mark-height: 13px; - --spectrum-slider-ramp-track-height: 20px; - - --spectrum-colorwheel-path: "M 119 119 m -119 0 a 119 119 0 1 0 238 0 a 119 119 0 1 0 -238 0.2 M 119 119 m -91 0 a 91 91 0 1 0 182 0 a 91 91 0 1 0 -182 0"; - --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - --spectrum-colorwheel-colorarea-container-size: 182px; - - --spectrum-colorloupe-checkerboard-fill: url(#checkerboard-secondary); - - --spectrum-menu-item-selectable-edge-to-text-not-selected-small: 34px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-medium: 42px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-large: 47px; - --spectrum-menu-item-selectable-edge-to-text-not-selected-extra-large: 54px; - - --spectrum-menu-item-checkmark-height-small: 12px; - --spectrum-menu-item-checkmark-height-medium: 14px; - --spectrum-menu-item-checkmark-height-large: 16px; - --spectrum-menu-item-checkmark-height-extra-large: 16px; - - --spectrum-menu-item-checkmark-width-small: 12px; - --spectrum-menu-item-checkmark-width-medium: 14px; - --spectrum-menu-item-checkmark-width-large: 16px; - --spectrum-menu-item-checkmark-width-extra-large: 16px; - - --spectrum-rating-icon-spacing: var(--spectrum-spacing-100); - - --spectrum-button-top-to-text-small: 6px; - --spectrum-button-bottom-to-text-small: 5px; - --spectrum-button-top-to-text-medium: 9px; - --spectrum-button-bottom-to-text-medium: 10px; - --spectrum-button-top-to-text-large: 12px; - --spectrum-button-bottom-to-text-large: 13px; - --spectrum-button-top-to-text-extra-large: 16px; - --spectrum-button-bottom-to-text-extra-large: 17px; - - --spectrum-alert-banner-close-button-spacing: var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-divider: var(--spectrum-spacing-200); - --spectrum-alert-banner-edge-to-button: var(--spectrum-spacing-200); - --spectrum-alert-banner-text-to-button-vertical: var(--spectrum-spacing-200); - - --spectrum-alert-dialog-padding: var(--spectrum-spacing-400); - --spectrum-alert-dialog-description-to-buttons: var(--spectrum-spacing-600); - - --spectrum-coach-indicator-gap: 8px; - --spectrum-coach-indicator-ring-diameter: 20px; - --spectrum-coach-indicator-quiet-ring-diameter: 10px; - - --spectrum-coachmark-buttongroup-display: none; - --spectrum-coachmark-buttongroup-mobile-display: flex; - --spectrum-coachmark-menu-display: none; - --spectrum-coachmark-menu-mobile-display: inline-flex; - - --spectrum-well-padding: 20px; - --spectrum-well-margin-top: 5px; - --spectrum-well-min-width: 300px; - --spectrum-well-border-radius: 5px; - --spectrum-workflow-icon-size-xxl: 40px; - --spectrum-workflow-icon-size-xxs: 15px; - - --spectrum-treeview-item-indentation-medium: 20px; - --spectrum-treeview-item-indentation-small: 15px; - --spectrum-treeview-item-indentation-large: 25px; - --spectrum-treeview-item-indentation-extra-large: 30px; - --spectrum-treeview-indicator-inset-block-start: 6px; - --spectrum-treeview-item-min-block-size-thumbnail-offset-medium: 2px; - - --spectrum-dialog-confirm-entry-animation-distance: 25px; - --spectrum-dialog-confirm-hero-height: 160px; - --spectrum-dialog-confirm-border-radius: 5px; - --spectrum-dialog-confirm-title-text-size: 19px; - --spectrum-dialog-confirm-description-text-size: 15px; - --spectrum-dialog-confirm-padding-grid: 24px; - - --spectrum-datepicker-initial-width: 160px; - --spectrum-datepicker-generic-padding: 15px; - --spectrum-datepicker-dash-line-height: 30px; - --spectrum-datepicker-width-quiet-first: 90px; - --spectrum-datepicker-width-quiet-second: 20px; - --spectrum-datepicker-datetime-width-first: 45px; - --spectrum-datepicker-invalid-icon-to-button: 10px; - --spectrum-datepicker-invalid-icon-to-button-quiet: 9px; - --spectrum-datepicker-input-datetime-width: 30px; - - --spectrum-pagination-textfield-width: 60px; - --spectrum-pagination-item-inline-spacing: 6px; - - --spectrum-dial-border-radius: 20px; - --spectrum-dial-handle-position: 10px; - --spectrum-dial-handle-block-margin: 20px; - --spectrum-dial-handle-inline-margin: 20px; - --spectrum-dial-controls-margin: 10px; - --spectrum-dial-label-gap-y: 6px; - --spectrum-dial-label-container-top-to-text: 5px; - - --spectrum-assetcard-focus-ring-border-radius: 9px; - --spectrum-assetcard-selectionindicator-margin: 15px; - --spectrum-assetcard-title-font-size: var(--spectrum-heading-size-xxs); - --spectrum-assetcard-header-content-font-size: var(--spectrum-heading-size-xxs); - --spectrum-assetcard-content-font-size: var(--spectrum-body-size-xs); - - --spectrum-tooltip-animation-distance: 5px; - - --spectrum-ui-icon-medium-display: none; - --spectrum-ui-icon-large-display: block; -} -.spectrum--light, -.spectrum--lightest { - --spectrum-menu-item-background-color-default-rgb: 0, 0, 0; - --spectrum-menu-item-background-color-default-opacity: 0; - --spectrum-menu-item-background-color-default: rgba(var(--spectrum-menu-item-background-color-default-rgb), var(--spectrum-menu-item-background-color-default-opacity)); - --spectrum-menu-item-background-color-hover: var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-down: var(--spectrum-transparent-black-200); - --spectrum-menu-item-background-color-key-focus: var(--spectrum-transparent-black-200); - --spectrum-drop-zone-background-color-rgb: var(--spectrum-blue-800-rgb); - --spectrum-dropindicator-color: var(--spectrum-blue-800); - - --spectrum-calendar-day-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-calendar-day-background-color-hover: rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-today-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-down: var(--spectrum-transparent-black-200); - --spectrum-calendar-day-background-color-cap-selected: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-calendar-day-background-color-key-focus: rgba(var(--spectrum-black-rgb), 0.06); - --spectrum-calendar-day-border-color-key-focus: var(--spectrum-blue-800); - - --spectrum-badge-label-icon-color-primary: var(--spectrum-white); - - --spectrum-coach-indicator-ring-default-color: var(--spectrum-blue-800); - --spectrum-coach-indicator-ring-dark-color: var(--spectrum-gray-900); - --spectrum-coach-indicator-ring-light-color: var(--spectrum-gray-50); - - --spectrum-well-border-color: var(--spectrum-black); - - --spectrum-steplist-current-marker-color-key-focus: var(--spectrum-blue-800); - - --spectrum-treeview-item-background-color-quiet-selected: rgba(var(--spectrum-gray-900-rgb), 0.06); - --spectrum-treeview-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); - - --spectrum-logic-button-and-background-color: var(--spectrum-blue-900); - --spectrum-logic-button-and-border-color: var(--spectrum-blue-900); - --spectrum-logic-button-and-background-color-hover: var(--spectrum-blue-1100); - --spectrum-logic-button-and-border-color-hover: var(--spectrum-blue-1100); - - --spectrum-logic-button-or-background-color: var(--spectrum-magenta-900); - --spectrum-logic-button-or-border-color: var(--spectrum-magenta-900); - --spectrum-logic-button-or-background-color-hover: var(--spectrum-magenta-1100); - --spectrum-logic-button-or-border-color-hover: var(--spectrum-magenta-1100); - - --spectrum-assetcard-border-color-selected: var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-blue-900); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-blue-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-blue-900); - --spectrum-assestcard-focus-indicator-color: var(--spectrum-blue-800); - - --spectrum-assetlist-item-background-color-selected-hover: rgba(var(--spectrum-blue-900-rgb), 0.2); - --spectrum-assetlist-item-background-color-selected: rgba(var(--spectrum-blue-900-rgb), 0.1); - --spectrum-assetlist-border-color-key-focus: var(--spectrum-blue-800); -} -.spectrum--medium { - --spectrum-checkbox-control-size-small: 12px; - --spectrum-checkbox-control-size-medium: 14px; - --spectrum-checkbox-control-size-large: 16px; - --spectrum-checkbox-control-size-extra-large: 18px; - --spectrum-checkbox-top-to-control-small: 6px; - --spectrum-checkbox-top-to-control-medium: 9px; - --spectrum-checkbox-top-to-control-large: 12px; - --spectrum-checkbox-top-to-control-extra-large: 15px; - --spectrum-switch-control-width-small: 23px; - --spectrum-switch-control-width-medium: 26px; - --spectrum-switch-control-width-large: 29px; - --spectrum-switch-control-width-extra-large: 33px; - --spectrum-switch-control-height-small: 12px; - --spectrum-switch-control-height-medium: 14px; - --spectrum-switch-control-height-large: 16px; - --spectrum-switch-control-height-extra-large: 18px; - --spectrum-switch-top-to-control-small: 6px; - --spectrum-switch-top-to-control-medium: 9px; - --spectrum-switch-top-to-control-large: 12px; - --spectrum-switch-top-to-control-extra-large: 15px; - --spectrum-radio-button-control-size-small: 12px; - --spectrum-radio-button-control-size-medium: 14px; - --spectrum-radio-button-control-size-large: 16px; - --spectrum-radio-button-control-size-extra-large: 18px; - --spectrum-radio-button-top-to-control-small: 6px; - --spectrum-radio-button-top-to-control-medium: 9px; - --spectrum-radio-button-top-to-control-large: 12px; - --spectrum-radio-button-top-to-control-extra-large: 15px; - --spectrum-slider-control-height-small: 14px; - --spectrum-slider-control-height-medium: 16px; - --spectrum-slider-control-height-large: 18px; - --spectrum-slider-control-height-extra-large: 20px; - --spectrum-slider-handle-size-small: 14px; - --spectrum-slider-handle-size-medium: 16px; - --spectrum-slider-handle-size-large: 18px; - --spectrum-slider-handle-size-extra-large: 20px; - --spectrum-slider-handle-border-width-down-small: 5px; - --spectrum-slider-handle-border-width-down-medium: 6px; - --spectrum-slider-handle-border-width-down-large: 7px; - --spectrum-slider-handle-border-width-down-extra-large: 8px; - --spectrum-slider-bottom-to-handle-small: 5px; - --spectrum-slider-bottom-to-handle-medium: 8px; - --spectrum-slider-bottom-to-handle-large: 11px; - --spectrum-slider-bottom-to-handle-extra-large: 14px; - --spectrum-corner-radius-100: 4px; - --spectrum-corner-radius-200: 8px; - --spectrum-drop-shadow-y: 1px; - --spectrum-drop-shadow-blur: 4px; - --spectrum-slider-tick-mark-height: 10px; - --spectrum-slider-ramp-track-height: 16px; + --spectrum-slider-tick-mark-height: 10px; + --spectrum-slider-ramp-track-height: 16px; --spectrum-colorwheel-path: "M 95 95 m -95 0 a 95 95 0 1 0 190 0 a 95 95 0 1 0 -190 0.2 M 95 95 m -73 0 a 73 73 0 1 0 146 0 a 73 73 0 1 0 -146 0"; --spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; @@ -3431,10 +3389,6 @@ --spectrum-coachmark-buttongroup-mobile-display: none; --spectrum-coachmark-menu-display: inline-flex; --spectrum-coachmark-menu-mobile-display: none; - --spectrum-well-padding: var(--spectrum-spacing-300); - --spectrum-well-margin-top: var(--spectrum-spacing-75); - --spectrum-well-min-width: 240px; - --spectrum-well-border-radius: var(--spectrum-spacing-75); --spectrum-workflow-icon-size-xxl: 32px; --spectrum-workflow-icon-size-xxs: 12px; @@ -3483,184 +3437,6 @@ --spectrum-ui-icon-medium-display: block; --spectrum-ui-icon-large-display: none; -} -.spectrum--express.spectrum--dark, -.spectrum--express.spectrum--darkest { - --spectrum-drop-zone-background-color-rgb: var(--spectrum-indigo-900-rgb); - --spectrum-well-border-color: rgba(var(--spectrum-white-rgb), 0.05); - - --spectrum-assetcard-border-color-selected: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-indigo-700); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-indigo-800); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-indigo-700); -} -.spectrum--express { - --spectrum-neutral-background-color-selected-default: var(--spectrum-gray-800); - --spectrum-neutral-background-color-selected-hover: var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-down: var(--spectrum-gray-900); - --spectrum-neutral-background-color-selected-key-focus: var(--spectrum-gray-900); - --spectrum-slider-track-thickness: 4px; - --spectrum-slider-handle-gap: 0px; - --spectrum-picker-border-width: 0; - --spectrum-in-field-button-fill-stacked-inner-border-rounding: 1px; - --spectrum-in-field-button-edge-to-fill: 4px; - --spectrum-in-field-button-stacked-inner-edge-to-fill: 1px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-medium: 5px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-large: 7px; - --spectrum-in-field-button-outer-edge-to-disclosure-icon-stacked-extra-large: 8px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-small: 1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-medium: 1px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-large: 3px; - --spectrum-in-field-button-inner-edge-to-disclosure-icon-stacked-extra-large: 4px; - --spectrum-border-width-100: 2px; - --spectrum-accent-color-100: var(--spectrum-indigo-100); - --spectrum-accent-color-200: var(--spectrum-indigo-200); - --spectrum-accent-color-300: var(--spectrum-indigo-300); - --spectrum-accent-color-400: var(--spectrum-indigo-400); - --spectrum-accent-color-500: var(--spectrum-indigo-500); - --spectrum-accent-color-600: var(--spectrum-indigo-600); - --spectrum-accent-color-700: var(--spectrum-indigo-700); - --spectrum-accent-color-800: var(--spectrum-indigo-800); - --spectrum-accent-color-900: var(--spectrum-indigo-900); - --spectrum-accent-color-1000: var(--spectrum-indigo-1000); - --spectrum-accent-color-1100: var(--spectrum-indigo-1100); - --spectrum-accent-color-1200: var(--spectrum-indigo-1200); - --spectrum-accent-color-1300: var(--spectrum-indigo-1300); - --spectrum-accent-color-1400: var(--spectrum-indigo-1400); - --spectrum-heading-sans-serif-font-weight: var(--spectrum-black-font-weight); - --spectrum-heading-serif-font-weight: var(--spectrum-black-font-weight); - --spectrum-heading-cjk-font-weight: var(--spectrum-black-font-weight); - --spectrum-heading-sans-serif-emphasized-font-weight: var(--spectrum-black-font-weight); - --spectrum-heading-serif-emphasized-font-weight: var(--spectrum-black-font-weight); - --system: express; -} -.spectrum--express.spectrum--large { - --spectrum-checkbox-control-size-small: 18px; - --spectrum-checkbox-control-size-medium: 20px; - --spectrum-checkbox-control-size-large: 22px; - --spectrum-checkbox-control-size-extra-large: 26px; - --spectrum-checkbox-top-to-control-small: 6px; - --spectrum-checkbox-top-to-control-medium: 10px; - --spectrum-checkbox-top-to-control-large: 14px; - --spectrum-checkbox-top-to-control-extra-large: 17px; - --spectrum-switch-control-width-small: 32px; - --spectrum-switch-control-width-medium: 36px; - --spectrum-switch-control-width-large: 41px; - --spectrum-switch-control-width-extra-large: 46px; - --spectrum-switch-control-height-small: 18px; - --spectrum-switch-control-height-medium: 20px; - --spectrum-switch-control-height-large: 22px; - --spectrum-switch-control-height-extra-large: 26px; - --spectrum-switch-top-to-control-small: 6px; - --spectrum-switch-top-to-control-medium: 10px; - --spectrum-switch-top-to-control-large: 14px; - --spectrum-switch-top-to-control-extra-large: 17px; - --spectrum-radio-button-control-size-small: 18px; - --spectrum-radio-button-control-size-medium: 20px; - --spectrum-radio-button-control-size-large: 22px; - --spectrum-radio-button-control-size-extra-large: 26px; - --spectrum-radio-button-top-to-control-small: 6px; - --spectrum-radio-button-top-to-control-medium: 10px; - --spectrum-radio-button-top-to-control-large: 14px; - --spectrum-radio-button-top-to-control-extra-large: 17px; - --spectrum-slider-control-height-small: 22px; - --spectrum-slider-control-height-medium: 24px; - --spectrum-slider-control-height-large: 28px; - --spectrum-slider-control-height-extra-large: 30px; - --spectrum-slider-handle-size-small: 22px; - --spectrum-slider-handle-size-medium: 24px; - --spectrum-slider-handle-size-large: 28px; - --spectrum-slider-handle-size-extra-large: 30px; - --spectrum-slider-handle-border-width-down-small: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large: var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small: 4px; - --spectrum-slider-bottom-to-handle-medium: 8px; - --spectrum-slider-bottom-to-handle-large: 12px; - --spectrum-slider-bottom-to-handle-extra-large: 15px; - --spectrum-corner-radius-75: 4px; - --spectrum-corner-radius-100: 8px; - --spectrum-corner-radius-200: 16px; - --spectrum-drop-shadow-x: 0px; - --spectrum-drop-shadow-y: 4px; - --spectrum-drop-shadow-blur: 16px; - --spectrum-colorwheel-path: "M 118 118 m -118 0 a 118 118 0 1 0 236 0 a 118 118 0 1 0 -236 0.2 M 118 118 m -92 0 a 92 92 0 1 0 184 0 a 92 92 0 1 0 -184 0"; - --spectrum-colorwheel-path-borders: "M 120 120 m -120 0 a 120 120 0 1 0 240 0 a 120 120 0 1 0 -240 0.2 M 120 120 m -90 0 a 90 90 0 1 0 180 0 a 90 90 0 1 0 -180 0"; - - --spectrum-dialog-confirm-border-radius: 8px; - - --spectrum-dial-border-radius: 15px; - - --spectrum-assetcard-focus-ring-border-radius: 12px; -} -.spectrum--express.spectrum--light, -.spectrum--express.spectrum--lightest { - --spectrum-drop-zone-background-color-rgb: var(--spectrum-indigo-800-rgb); - --spectrum-well-border-color: rgba(var(--spectrum-black-rgb), 0.05); - - --spectrum-assetcard-border-color-selected: var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-hover: var(--spectrum-indigo-900); - --spectrum-assetcard-border-color-selected-down: var(--spectrum-indigo-1000); - --spectrum-assetcard-selectionindicator-background-color-ordered: var(--spectrum-indigo-900); -} -.spectrum--express.spectrum--medium { - --spectrum-checkbox-control-size-small: 14px; - --spectrum-checkbox-control-size-medium: 16px; - --spectrum-checkbox-control-size-large: 18px; - --spectrum-checkbox-control-size-extra-large: 20px; - --spectrum-checkbox-top-to-control-small: 5px; - --spectrum-checkbox-top-to-control-medium: 8px; - --spectrum-checkbox-top-to-control-large: 11px; - --spectrum-checkbox-top-to-control-extra-large: 14px; - --spectrum-switch-control-width-small: 25px; - --spectrum-switch-control-width-medium: 28px; - --spectrum-switch-control-width-large: 32px; - --spectrum-switch-control-width-extra-large: 35px; - --spectrum-switch-control-height-small: 14px; - --spectrum-switch-control-height-medium: 16px; - --spectrum-switch-control-height-large: 18px; - --spectrum-switch-control-height-extra-large: 20px; - --spectrum-switch-top-to-control-small: 5px; - --spectrum-switch-top-to-control-medium: 8px; - --spectrum-switch-top-to-control-large: 11px; - --spectrum-switch-top-to-control-extra-large: 14px; - --spectrum-radio-button-control-size-small: 14px; - --spectrum-radio-button-control-size-medium: 16px; - --spectrum-radio-button-control-size-large: 18px; - --spectrum-radio-button-control-size-extra-large: 20px; - --spectrum-radio-button-top-to-control-small: 5px; - --spectrum-radio-button-top-to-control-medium: 8px; - --spectrum-radio-button-top-to-control-large: 11px; - --spectrum-radio-button-top-to-control-extra-large: 14px; - --spectrum-slider-control-height-small: 18px; - --spectrum-slider-control-height-medium: 20px; - --spectrum-slider-control-height-large: 22px; - --spectrum-slider-control-height-extra-large: 24px; - --spectrum-slider-handle-size-small: 18px; - --spectrum-slider-handle-size-medium: 20px; - --spectrum-slider-handle-size-large: 22px; - --spectrum-slider-handle-size-extra-large: 24px; - --spectrum-slider-handle-border-width-down-small: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-medium: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-large: var(--spectrum-border-width-200); - --spectrum-slider-handle-border-width-down-extra-large: var(--spectrum-border-width-200); - --spectrum-slider-bottom-to-handle-small: 3px; - --spectrum-slider-bottom-to-handle-medium: 6px; - --spectrum-slider-bottom-to-handle-large: 9px; - --spectrum-slider-bottom-to-handle-extra-large: 12px; - --spectrum-corner-radius-75: 3px; - --spectrum-corner-radius-100: 6px; - --spectrum-corner-radius-200: 12px; - --spectrum-drop-shadow-x: 0px; - --spectrum-drop-shadow-y: 4px; - --spectrum-drop-shadow-blur: 16px; - --spectrum-colorwheel-path: "M 94 94 m -94 0 a 94 94 0 1 0 188 0 a 94 94 0 1 0 -188 0.2 M 94 94 m -74 0 a 74 74 0 1 0 148 0 a 74 74 0 1 0 -148 0"; - --spectrum-colorwheel-path-borders: "M 96 96 m -96 0 a 96 96 0 1 0 192 0 a 96 96 0 1 0 -192 0.2 M 96 96 m -72 0 a 72 72 0 1 0 144 0 a 72 72 0 1 0 -144 0"; - - --spectrum-dialog-confirm-border-radius: 6px; - - --spectrum-dial-border-radius: 12px; - --spectrum-assetcard-focus-ring-border-radius: 10px; + --spectrum-contextual-help-content-spacing: var(--spectrum-spacing-100); } diff --git a/tokens/package.json b/tokens/package.json index d27d10fd8c9..c2e1ff79f52 100644 --- a/tokens/package.json +++ b/tokens/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/tokens", - "version": "14.4.0", + "version": "15.0.0-s2-foundations.21", "description": "The Spectrum CSS tokens package", "license": "Apache-2.0", "author": "Adobe", @@ -13,6 +13,21 @@ "bugs": { "url": "https://github.com/adobe/spectrum-css/issues" }, + "exports": { + ".": "./dist/css/index.css", + "./*.md": "./*.md", + "./dist/css/*.css": "./dist/css/*.css", + "./dist/css/components/bridge": "./dist/components/bridge/index.css", + "./dist/css/components/bridge/*.css": "./dist/components/bridge/*.css", + "./dist/css/components/express": "./dist/components/express/index.css", + "./dist/css/components/express/*.css": "./dist/components/express/*.css", + "./dist/css/components/spectrum": "./dist/components/spectrum/index.css", + "./dist/css/components/spectrum-two": "./dist/components/spectrum-two/index.css", + "./dist/css/components/spectrum-two/*.css": "./dist/components/spectrum-two/*.css", + "./dist/css/components/spectrum/*.css": "./dist/components/spectrum/*.css", + "./dist/index.css": "./dist/css/index.css", + "./package.json": "./package.json" + }, "main": "dist/index.css", "files": [ "dist", @@ -21,16 +36,10 @@ "package.json" ], "devDependencies": { - "@adobe/spectrum-tokens": "12.25.0", + "@adobe/spectrum-tokens": "0.0.0-s2-foundations-colors-20240503210338", "@nxkit/style-dictionary": "^5.0.0", - "cssnano": "^7.0.3", - "cssnano-preset-advanced": "^7.0.6", "postcss": "^8.4.45", "postcss-cli": "^11.0.0", - "postcss-import": "^16.1.0", - "postcss-licensing": "^2.0.0", - "postcss-rgb-mapping": "workspace:^", - "postcss-sorting": "^8.0.2", "prettier": "^3.2.5", "style-dictionary": "^3.9.2", "style-dictionary-sets": "^2.3.0" diff --git a/tokens/postcss.config.js b/tokens/postcss.config.js index 350188d71db..e117b38812b 100644 --- a/tokens/postcss.config.js +++ b/tokens/postcss.config.js @@ -11,30 +11,21 @@ * governing permissions and limitations under the License. */ -module.exports = () => ({ - plugins: { - "postcss-import": {}, - "postcss-rgb-mapping": { +module.exports = ({ + resolveImports = true, + ...options +}) => require("../postcss.config.js")({ + ...options, + resolveImports, + env: "production", + map: false, + additionalPlugins: { + "@spectrum-tools/postcss-rgb-mapping": { colorFunctionalNotation: false, }, "postcss-sorting": { 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/style-dictionary.config.js b/tokens/style-dictionary.config.js index 4f8c67fdfe7..a2865c31f48 100644 --- a/tokens/style-dictionary.config.js +++ b/tokens/style-dictionary.config.js @@ -35,7 +35,6 @@ StyleDictionary.registerFormat(CSSSetsFormatter); */ const tokensPath = require.resolve("@adobe/spectrum-tokens/package.json"); const tokensDir = path.dirname(tokensPath); -const setNames = ["desktop", "mobile", "light", "dark", "darkest"]; module.exports = { source: [`${tokensDir}/src/*.json`], @@ -50,21 +49,8 @@ module.exports = { prefix: "spectrum", files: [ generateFileConfig(), - ...["spectrum", "express"].map((subSystemName) => - generateFileConfig({ subSystemName }) - ), - ...setNames.map((context) => generateFileConfig({ setName: context })), - ...setNames.map((context) => - generateFileConfig({ - setName: context, - subSystemName: "spectrum", - }) - ), - ...setNames.map((context) => - generateFileConfig({ - setName: context, - subSystemName: "express", - }) + ...["desktop", "mobile", "light", "dark"].map((context) => + generateFileConfig({ setName: context }), ), ], }, diff --git a/tokens/tasks/token-rollup.js b/tokens/tasks/token-rollup.js index ee08f7bda72..f7b60ab3537 100644 --- a/tokens/tasks/token-rollup.js +++ b/tokens/tasks/token-rollup.js @@ -115,28 +115,19 @@ async function componentTheming() { async function appendCustomOverrides({ cwd = process.cwd() } = {}) { const promises = []; - ["express", "spectrum"].forEach(async (theme) => { - // Add custom/*-vars.css to the end of the dist/css/*-vars.css files and run through postcss before writing back to the dist/css/*-vars.css file - const customFiles = await fg(["*-vars.css"], { cwd: path.join(cwd, `custom-${theme}`), onlyFiles: true }); - for (const file of customFiles) { - - let strippedFilename = file.replace(/^custom-/, ""); - if (strippedFilename === "vars.css") { - strippedFilename = "global-vars.css"; - } - - // Read in the custom file and the dist file and combine them into one file - const combinedContent = await fetchContent([ - path.join("dist", "css", theme, strippedFilename), - path.join(`custom-${theme}`, file) - ], { cwd, shouldCombine: true }); - - promises.push( - copy(path.join(`custom-${theme}`, file), path.join("dist", "css", theme, file), { cwd }), - combinedContent[0].content ? writeAndReport(combinedContent[0].content, path.join(cwd, "dist", "css", theme, strippedFilename), { cwd }) : Promise.resolve() - ); - } - }); + // Add custom/*-vars.css to the end of the dist/css/*-vars.css files and run through postcss before writing back to the dist/css/*-vars.css file + const customFiles = await fg(["*-vars.css"], { cwd: path.join(cwd, "custom"), onlyFiles: true }); + for (const file of customFiles) { + // Read in the custom file and the dist file and combine them into one file + const combinedContent = await fetchContent([ + path.join("dist", "css", file), + path.join("custom", file) + ], { cwd, shouldCombine: true }); + + promises.push( + combinedContent[0].content ? writeAndReport(combinedContent[0].content, path.join(cwd, "dist", "css", file)) : Promise.resolve() + ); + } return Promise.all(promises); } @@ -173,23 +164,18 @@ async function main({ path.join(compiledOutputPath, "css", "components", "bridge", "index.css"), { cwd, clean } ), - ...["spectrum", "express"].map(theme => Promise.all([ - index( - [`dist/css/components/${theme}/*.css`], - path.join(compiledOutputPath, "css", "components", theme, "index.css"), - { cwd, clean } - ), - index( - [`dist/css/${theme}/*-vars.css`, `!dist/css/${theme}/custom-*.css`], - path.join(compiledOutputPath, "css", theme, "index.css"), - { cwd, clean } - ), - ])), + ...["spectrum", "legacy", "express"].map(theme => index( + [`dist/css/components/${theme}/*.css`], + path.join(compiledOutputPath, "css", "components", theme, "index.css"), + { cwd, clean } + )), index( - ["dist/css/*-vars.css", "dist/css/spectrum/*-vars.css", "dist/css/express/*-vars.css", "!dist/css/spectrum/custom-*.css", "!dist/css/express/custom-*.css"], - path.join(compiledOutputPath, "index.css"), + ["dist/css/*-vars.css"], + path.join(compiledOutputPath, "css", "index.css"), { cwd, clean } - ), + ).then((reports) => + copy(path.join(compiledOutputPath, "css", "index.css"), path.join(cwd, "dist", "index.css"), { cwd, isDeprecated: false }) + .then((reps) => [reports, reps])) ]).then((reports) => { return [reports, r]; }); diff --git a/tokens/utilities/style-dictionary.utils.js b/tokens/utilities/style-dictionary.utils.js index 669b84cd42d..6e236031079 100644 --- a/tokens/utilities/style-dictionary.utils.js +++ b/tokens/utilities/style-dictionary.utils.js @@ -11,7 +11,9 @@ * governing permissions and limitations under the License. */ -module.exports = function ({ setName, subSystemName } = {}) { +module.exports = function ({ setName } = {}) { + let selector = ".spectrum"; + const baseConfig = { format: "css/sets", options: { @@ -20,29 +22,19 @@ module.exports = function ({ setName, subSystemName } = {}) { }, }; - const sets = [setName, subSystemName].filter(Boolean); - if (!sets.length) { + if (!setName) { return { ...baseConfig, destination: "global-vars.css", filter: (token) => !token.path.includes("sets"), options: { ...baseConfig.options, - selector: ".spectrum", + selector, }, }; } const isGlobal = !setName; - const isSpectrum = subSystemName && subSystemName === "spectrum"; - - let selector = ""; - if (isGlobal || (subSystemName && !isSpectrum)) { - // postfix the selector with the subsystem name - selector = `.spectrum${ - subSystemName && !isSpectrum ? `--${subSystemName}` : "" - }`; - } let scope = { @@ -51,16 +43,7 @@ module.exports = function ({ setName, subSystemName } = {}) { }[setName] ?? setName; if (isGlobal) scope = "global"; - else if (setName && scope) { - selector += `.spectrum--${scope}`; - } - - const selectors = [ - selector ?? null, - // Apply all light colors as lightest for backwards compat - // @todo does this need a deprecation notice? - setName === "light" ? selector.replace("light", "lightest") : null, - ].filter(Boolean); + selector = isGlobal ? ".spectrum" : `.spectrum--${scope}`; const getSets = (token) => token.path.filter((_, idx, array) => array[idx - 1] == "sets"); @@ -72,29 +55,13 @@ module.exports = function ({ setName, subSystemName } = {}) { if (tokenSets.includes("wireframe")) return false; if (!setName) { - if (!subSystemName && tokenSets.length === 0) { - return true; - } - - if ( - subSystemName && - tokenSets.length === 1 && - tokenSets.includes(subSystemName) - ) { + if (tokenSets.length === 0) { return true; } } else { if (!tokenSets.includes(setName)) return false; - if (!subSystemName && tokenSets.length === 1) { - return true; - } - - if ( - subSystemName && - tokenSets.length === 2 && - tokenSets.includes(subSystemName) - ) { + if (tokenSets.length === 1) { return true; } } @@ -104,12 +71,12 @@ module.exports = function ({ setName, subSystemName } = {}) { return { ...baseConfig, - destination: `${subSystemName ? `${subSystemName}/` : ""}${scope}-vars.css`, + destination: `${scope}-vars.css`, filter, options: { ...baseConfig.options, - selector: selectors.join(", "), - sets, + selector, + sets: setName ? [setName] : [], }, }; }; diff --git a/ui-icons/CHANGELOG.md b/ui-icons/CHANGELOG.md index 64067e196e1..934a93f1850 100644 --- a/ui-icons/CHANGELOG.md +++ b/ui-icons/CHANGELOG.md @@ -1,24 +1,100 @@ # Change Log +## 2.0.0-s2-foundations.9 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`11a0032`](https://github.com/adobe/spectrum-css/commit/11a00323addbf28b9430d27d9cbc5f30bc851b65) Thanks [@pfulton](https://github.com/pfulton)! - Bug fixes to S1 & Express theming across all components + +## 2.0.0-s2-foundations.8 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5546ec6`](https://github.com/adobe/spectrum-css/commit/5546ec6a508eb249ede78031db22ddf5972e5c05) Thanks [@pfulton](https://github.com/pfulton)! - - Accordion: Flatten sizing variables in theme layer + - ActionButton: Fix typo in variable name "\*-defaul-selectedt" + - Move out rtl logical transform from theme to index.css for: calendar, pagination, treeview + +## 2.0.0-s2-foundations.7 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b0862e1`](https://github.com/adobe/spectrum-css/commit/b0862e1a5b95c19443fd919c6baf4b4ea9ba79c1) Thanks [@pfulton](https://github.com/pfulton)! - Updated build to set cssnano to discardUnused: false + +## 2.0.0-s2-foundations.6 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0844aad`](https://github.com/adobe/spectrum-css/commit/0844aadba2fefb844a66370ff6e9b4704f6c1543) Thanks [@pfulton](https://github.com/pfulton)! - Fixes to index.css imports to ensure appropriate system mappings get loaded + +## 2.0.0-s2-foundations.5 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`84c8721`](https://github.com/adobe/spectrum-css/commit/84c87212ccb37c887225eaff28e84d9f8e608e09) Thanks [@pfulton](https://github.com/pfulton)! - Push out the latest release to the components + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`0a0dace`](https://github.com/adobe/spectrum-css/commit/0a0dacec163234bc73961ef17826cdc33765d9df) Thanks [@pfulton](https://github.com/pfulton)! - Across the board version update to latest build system state + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`681ba47`](https://github.com/adobe/spectrum-css/commit/681ba478c1259d0bbb183670f3188538ec3bee1d) Thanks [@pfulton](https://github.com/pfulton)! - Doing a widespread release on all packages to ensure the latest compiled CSS is published. + +## 2.0.0-s2-foundations.4 + +### Patch Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`485128c`](https://github.com/adobe/spectrum-css/commit/485128ca7947acb064f31e4118044a3f7e3f88b5) Thanks [@pfulton](https://github.com/pfulton)! - Corrects a faulty regex that was negatively affecting compilation of custom properties + +## 2.0.0-s2-foundations.3 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`6b12d37`](https://github.com/adobe/spectrum-css/commit/6b12d375c12b36f387b331fff42b24bc7c3845df) Thanks [@pfulton](https://github.com/pfulton)! - fixes a compilation issue in the tokens dist artifacts + +## 2.0.0-s2-foundations.2 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`b00388b`](https://github.com/adobe/spectrum-css/commit/b00388b3ab026989f261f7bcdd77699521f45d58) Thanks [@pfulton](https://github.com/pfulton)! - Preserves `themes` folder in `dist` artifacts for easier downstream consumption + +## 2.0.0-s2-foundations.1 + +### Minor Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`39bbd6c`](https://github.com/adobe/spectrum-css/commit/39bbd6cbb7eac7c71515ef2417554cb115eba00e) Thanks [@pfulton](https://github.com/pfulton)! - Fixes an issue where vars.css was not being populated with the correct values + +## 2.0.0-s2-foundations.0 + +### Major Changes + +- [#2786](https://github.com/adobe/spectrum-css/pull/2786) [`5e9953d`](https://github.com/adobe/spectrum-css/commit/5e9953d96806a5d1e769a343cd538e4af81916ce) Thanks [@pfulton](https://github.com/pfulton)! - S2 colors + grays foundation + All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + ## 1.1.2 + 🗓 2024-02-06 **Note:** Version bump only for package @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 + ## 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) @@ -27,7 +103,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline - **ui-icons:**graduate to 1.0 release ([#2366](https://github.com/adobe/spectrum-css/issues/2366))([afd369a](https://github.com/adobe/spectrum-css/commit/afd369a)) + ## 0.1.0 + 🗓 2023-12-12 diff --git a/ui-icons/package.json b/ui-icons/package.json index 4906b41c532..63804b9ba2f 100644 --- a/ui-icons/package.json +++ b/ui-icons/package.json @@ -1,6 +1,6 @@ { "name": "@spectrum-css/ui-icons", - "version": "1.1.2", + "version": "2.0.0-s2-foundations.9", "description": "The Spectrum CSS UI icons", "license": "Apache-2.0", "author": "Adobe", diff --git a/ui-icons/project.json b/ui-icons/project.json index 59726649bdd..1f05b7827bf 100644 --- a/ui-icons/project.json +++ b/ui-icons/project.json @@ -22,7 +22,7 @@ } ], "options": { - "commands": ["node --no-warnings ./index.js"], + "commands": ["cross-env NODE_OPTIONS=\"--no-warnings\" node ./index.js"], "cwd": "{projectRoot}" }, "outputs": [ diff --git a/yarn.lock b/yarn.lock index d60896feed0..50dd41b5611 100644 --- a/yarn.lock +++ b/yarn.lock @@ -100,13 +100,6 @@ __metadata: languageName: node linkType: hard -"@adobe/focus-ring-polyfill@npm:^0.1.5": - version: 0.1.5 - resolution: "@adobe/focus-ring-polyfill@npm:0.1.5" - checksum: 10c0/c57eb5b1fd03bc6bd7303c3268ee08fff9eab973d0360bc68467de89123a11fce50a263badb9390c3de934832ddbc63821aafc51f9065f5795fa7d675c152ecb - languageName: node - linkType: hard - "@adobe/spectrum-css-workflow-icons@npm:^1.5.4": version: 1.5.4 resolution: "@adobe/spectrum-css-workflow-icons@npm:1.5.4" @@ -114,10 +107,10 @@ __metadata: languageName: node linkType: hard -"@adobe/spectrum-tokens@npm:12.25.0": - version: 12.25.0 - resolution: "@adobe/spectrum-tokens@npm:12.25.0" - checksum: 10c0/783a4fb59cecc54b7a8157d998e690de82f3fb5a15934ed241256c998375aa38e699e81ddfb2d815be8b3281fe774acf33bed97eb9beabad9648fb9bd53ca322 +"@adobe/spectrum-tokens@npm:0.0.0-s2-foundations-colors-20240503210338": + version: 0.0.0-s2-foundations-colors-20240503210338 + resolution: "@adobe/spectrum-tokens@npm:0.0.0-s2-foundations-colors-20240503210338" + checksum: 10c0/4058fd50edfcab4171de6136d792db0040f89e46f22606338971dbb97f66529e45ddeecec6c34ccd1fe2c65c846b9a9035dc470f229fcc3e6619052307eaf0c0 languageName: node linkType: hard @@ -430,6 +423,13 @@ __metadata: languageName: node linkType: hard +"@babel/helper-string-parser@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/helper-string-parser@npm:7.24.7" + checksum: 10c0/47840c7004e735f3dc93939c77b099bb41a64bf3dda0cae62f60e6f74a5ff80b63e9b7cf77b5ec25a324516381fc994e1f62f922533236a8e3a6af57decb5e1e + languageName: node + linkType: hard + "@babel/helper-string-parser@npm:^7.24.8": version: 7.24.8 resolution: "@babel/helper-string-parser@npm:7.24.8" @@ -473,7 +473,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.24.7, @babel/parser@npm:^7.24.8, @babel/parser@npm:^7.6.0, @babel/parser@npm:^7.9.6": +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.24.8": version: 7.24.8 resolution: "@babel/parser@npm:7.24.8" bin: @@ -482,6 +482,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/parser@npm:7.24.7" + bin: + parser: ./bin/babel-parser.js + checksum: 10c0/8b244756872185a1c6f14b979b3535e682ff08cb5a2a5fd97cc36c017c7ef431ba76439e95e419d43000c5b07720495b00cf29a7f0d9a483643d08802b58819b + languageName: node + linkType: hard + "@babel/parser@npm:^7.25.0, @babel/parser@npm:^7.25.3": version: 7.25.3 resolution: "@babel/parser@npm:7.25.3" @@ -566,7 +575,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.24.8, @babel/types@npm:^7.24.9, @babel/types@npm:^7.6.1, @babel/types@npm:^7.8.3, @babel/types@npm:^7.9.6": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.8, @babel/types@npm:^7.24.9, @babel/types@npm:^7.8.3": version: 7.24.9 resolution: "@babel/types@npm:7.24.9" dependencies: @@ -577,6 +586,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.24.7": + version: 7.24.7 + resolution: "@babel/types@npm:7.24.7" + dependencies: + "@babel/helper-string-parser": "npm:^7.24.7" + "@babel/helper-validator-identifier": "npm:^7.24.7" + to-fast-properties: "npm:^2.0.0" + checksum: 10c0/d9ecbfc3eb2b05fb1e6eeea546836ac30d990f395ef3fe3f75ced777a222c3cfc4489492f72e0ce3d9a5a28860a1ce5f81e66b88cf5088909068b3ff4fab72c1 + languageName: node + linkType: hard + "@babel/types@npm:^7.25.0, @babel/types@npm:^7.25.2": version: 7.25.2 resolution: "@babel/types@npm:7.25.2" @@ -2959,13 +2979,6 @@ __metadata: languageName: node linkType: hard -"@socket.io/component-emitter@npm:~3.1.0": - version: 3.1.2 - resolution: "@socket.io/component-emitter@npm:3.1.2" - checksum: 10c0/c4242bad66f67e6f7b712733d25b43cbb9e19a595c8701c3ad99cbeb5901555f78b095e24852f862fffb43e96f1d8552e62def885ca82ae1bb05da3668fd87d7 - languageName: node - linkType: hard - "@spectrum-css/accordion@workspace:components/accordion": version: 0.0.0-use.local resolution: "@spectrum-css/accordion@workspace:components/accordion" @@ -3228,7 +3241,6 @@ __metadata: "@spectrum-css/asset": "workspace:^" "@spectrum-css/checkbox": "workspace:^" "@spectrum-css/icon": "workspace:^" - "@spectrum-css/quickaction": "npm:^3.1.1" "@spectrum-css/tokens": "workspace:^" "@spectrum-css/typography": "workspace:^" peerDependencies: @@ -3236,7 +3248,6 @@ __metadata: "@spectrum-css/asset": ">=5" "@spectrum-css/checkbox": ">=9" "@spectrum-css/icon": ">=7" - "@spectrum-css/quickaction": ">=3" "@spectrum-css/tokens": ">=14" "@spectrum-css/typography": ">=6" peerDependenciesMeta: @@ -3248,8 +3259,6 @@ __metadata: optional: true "@spectrum-css/icon": optional: true - "@spectrum-css/quickaction": - optional: true "@spectrum-css/typography": optional: true languageName: unknown @@ -3453,16 +3462,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/cyclebutton@npm:^3.1.3": - version: 3.1.3 - resolution: "@spectrum-css/cyclebutton@npm:3.1.3" - peerDependencies: - "@spectrum-css/actionbutton": ">=5" - "@spectrum-css/vars": ">=9" - checksum: 10c0/92eacba8788911201a46a418354e6281037b97e6913bd056c62328848f53c745a3f1c722b7be1cf8900ba86bf6996149d2653d998b2ccf2fee5f955c89a24c00 - languageName: node - linkType: hard - "@spectrum-css/datepicker@workspace:components/datepicker": version: 0.0.0-use.local resolution: "@spectrum-css/datepicker@workspace:components/datepicker" @@ -3768,16 +3767,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/page@workspace:components/page": - version: 0.0.0-use.local - resolution: "@spectrum-css/page@workspace:components/page" - dependencies: - "@spectrum-css/tokens": "workspace:^" - peerDependencies: - "@spectrum-css/tokens": ">=14" - languageName: unknown - linkType: soft - "@spectrum-css/pagination@workspace:components/pagination": version: 0.0.0-use.local resolution: "@spectrum-css/pagination@workspace:components/pagination" @@ -3785,14 +3774,12 @@ __metadata: "@spectrum-css/actionbutton": "workspace:^" "@spectrum-css/button": "workspace:^" "@spectrum-css/icon": "workspace:^" - "@spectrum-css/splitbutton": "npm:^8.1.2" "@spectrum-css/textfield": "workspace:^" "@spectrum-css/tokens": "workspace:^" peerDependencies: "@spectrum-css/actionbutton": ">=6" "@spectrum-css/button": ">=13" "@spectrum-css/icon": ">=7" - "@spectrum-css/splitbutton": ">=8" "@spectrum-css/textfield": ">=7" "@spectrum-css/tokens": ">=14" languageName: unknown @@ -3869,10 +3856,12 @@ __metadata: resolution: "@spectrum-css/preview@workspace:.storybook" dependencies: "@adobe/spectrum-css-workflow-icons": "npm:^1.5.4" + "@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-colors-20240503210338" "@babel/core": "npm:^7.25.2" "@chromaui/addon-visual-tests": "npm:^1.0.0" "@etchteam/storybook-addon-status": "npm:^5.0.0" "@spectrum-css/tokens": "workspace:^" + "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.3.1" "@spectrum-css/typography": "workspace:^" "@spectrum-css/ui-icons": "workspace:^" "@storybook/addon-a11y": "npm:^8.3.2" @@ -3901,6 +3890,7 @@ __metadata: react: "npm:^18.3.1" react-dom: "npm:^18.3.1" react-syntax-highlighter: "npm:^15.5.0" + remark-gfm: "npm:^4.0.0" rollup-plugin-postcss-lit: "npm:^2.1.0" storybook: "npm:^8.3.2" vite: "npm:^5.4.6" @@ -3932,17 +3922,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/quickaction@npm:^3.1.1": - version: 3.1.1 - resolution: "@spectrum-css/quickaction@npm:3.1.1" - peerDependencies: - "@spectrum-css/actionbutton": ">=5" - "@spectrum-css/checkbox": ">=8" - "@spectrum-css/vars": ">=9" - checksum: 10c0/5c57f78b2715d5b143e2abfeb07129511b5fd242be9a109b0b62db7708923f9aa2f4c709b1e4fd26d1b17436a18f4dec8d6923fd16799d9bdbed3a1348a41e0a - languageName: node - linkType: hard - "@spectrum-css/radio@workspace:^, @spectrum-css/radio@workspace:components/radio": version: 0.0.0-use.local resolution: "@spectrum-css/radio@workspace:components/radio" @@ -3983,19 +3962,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/searchwithin@npm:^5.1.3": - version: 5.1.3 - resolution: "@spectrum-css/searchwithin@npm:5.1.3" - peerDependencies: - "@spectrum-css/clearbutton": ">=5" - "@spectrum-css/icon": ">=4" - "@spectrum-css/picker": ">=3" - "@spectrum-css/textfield": ">=5" - "@spectrum-css/vars": ">=9" - checksum: 10c0/5b5aba2d300e41d37895c071f6ed9f771cc1650ff3643ac53721052cd413fcc8cafa47761e5c9f12d22ec3cbf7ea9990c895b0747ce2bd2a1f8adfa722609726 - languageName: node - linkType: hard - "@spectrum-css/sidenav@workspace:components/sidenav": version: 0.0.0-use.local resolution: "@spectrum-css/sidenav@workspace:components/sidenav" @@ -4011,16 +3977,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/site@workspace:components/site": - version: 0.0.0-use.local - resolution: "@spectrum-css/site@workspace:components/site" - dependencies: - "@spectrum-css/tokens": "workspace:^" - peerDependencies: - "@spectrum-css/tokens": ">=14" - languageName: unknown - linkType: soft - "@spectrum-css/slider@workspace:components/slider": version: 0.0.0-use.local resolution: "@spectrum-css/slider@workspace:components/slider" @@ -4033,20 +3989,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-css/splitbutton@npm:^8.1.2": - version: 8.1.2 - resolution: "@spectrum-css/splitbutton@npm:8.1.2" - peerDependencies: - "@spectrum-css/button": ">=11" - "@spectrum-css/icon": ">=4" - "@spectrum-css/vars": ">=9" - peerDependenciesMeta: - "@spectrum-css/icon": - optional: true - checksum: 10c0/4ca2ec3541b6d5a5224d1a92ecb9156519b12731bbae13261a31827e638c1266141f66b8f615f92bafada3729b7893c0839db6dc0d6e0d698603e782925e7335 - languageName: node - linkType: hard - "@spectrum-css/splitview@workspace:components/splitview": version: 0.0.0-use.local resolution: "@spectrum-css/splitview@workspace:components/splitview" @@ -4259,20 +4201,21 @@ __metadata: languageName: unknown linkType: soft +"@spectrum-css/tokens-legacy@npm:@spectrum-css/tokens@^14.3.1": + version: 14.3.1 + resolution: "@spectrum-css/tokens@npm:14.3.1" + checksum: 10c0/b98034c2b7a22f263b31ae1259b1bccf67b43f78c26cd30564a3da7cba84fb68b4fab81e87d4104d72fb3325db0bedc3099dfdf2889556df559995cd7f454b51 + languageName: node + linkType: hard + "@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:12.25.0" + "@adobe/spectrum-tokens": "npm:0.0.0-s2-foundations-colors-20240503210338" "@nxkit/style-dictionary": "npm:^5.0.0" - cssnano: "npm:^7.0.3" - cssnano-preset-advanced: "npm:^7.0.6" postcss: "npm:^8.4.45" postcss-cli: "npm:^11.0.0" - postcss-import: "npm:^16.1.0" - postcss-licensing: "npm:^2.0.0" - postcss-rgb-mapping: "workspace:^" - postcss-sorting: "npm:^8.0.2" prettier: "npm:^3.2.5" style-dictionary: "npm:^3.9.2" style-dictionary-sets: "npm:^2.3.0" @@ -4375,34 +4318,6 @@ __metadata: languageName: unknown linkType: soft -"@spectrum-tools/documentation@workspace:site": - version: 0.0.0-use.local - resolution: "@spectrum-tools/documentation@workspace:site" - dependencies: - "@adobe/focus-ring-polyfill": "npm:^0.1.5" - "@adobe/spectrum-css-workflow-icons": "npm:^1.5.4" - "@spectrum-css/tokens": "workspace:^" - "@spectrum-css/ui-icons": "workspace:^" - browser-sync: "npm:^3.0.2" - colors: "npm:^1.4.0" - dependency-solver: "npm:^1.0.6" - fast-glob: "npm:^3.3.2" - js-yaml: "npm:^4.1.0" - loadicons: "npm:^1.0.0" - lodash: "npm:^4.17.21" - lunr: "npm:^2.3.9" - markdown-it: "npm:^14.1.0" - markdown-it-anchor: "npm:^8.6.7" - markdown-it-attrs: "npm:^4.1.6" - markdown-it-prism: "npm:^2.3.0" - npm-registry-fetch: "npm:^17.0.1" - prismjs: "npm:^1.29.0" - pug: "npm:^3.0.2" - rimraf: "npm:^6.0.1" - yargs: "npm:^17.7.2" - languageName: unknown - linkType: soft - "@spectrum-tools/gh-action-file-diff@workspace:.github/actions/file-diff": version: 0.0.0-use.local resolution: "@spectrum-tools/gh-action-file-diff@workspace:.github/actions/file-diff" @@ -4416,6 +4331,45 @@ __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.1.3" + c8: "npm:^10.1.2" + postcss: "npm:^8.4.45" + 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.1.3" + c8: "npm:^10.1.2" + postcss: "npm:^8.4.45" + peerDependencies: + postcss: ">=8" + languageName: unknown + linkType: soft + +"@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: + ava: "npm:^6.1.3" + c8: "npm:^10.1.2" + postcss: "npm:^8.4.45" + postcss-values-parser: "npm:^6.0.2" + peerDependencies: + postcss: ">=8" + languageName: unknown + linkType: soft + "@spectrum-tools/stylelint-no-missing-var@workspace:plugins/stylelint-no-missing-var": version: 0.0.0-use.local resolution: "@spectrum-tools/stylelint-no-missing-var@workspace:plugins/stylelint-no-missing-var" @@ -4468,7 +4422,7 @@ __metadata: postcss-values-parser: "npm:^6.0.2" stylelint: "npm:^16.9.0" peerDependencies: - stylelint: ">=16.0.0" + stylelint: ">=16" languageName: unknown linkType: soft @@ -5209,19 +5163,12 @@ __metadata: languageName: node linkType: hard -"@types/cookie@npm:^0.4.1": - version: 0.4.1 - resolution: "@types/cookie@npm:0.4.1" - checksum: 10c0/f96afe12bd51be1ec61410b0641243d93fa3a494702407c787a4c872b5c8bcd39b224471452055e44a9ce42af1a636e87d161994226eaf4c2be9c30f60418409 - languageName: node - linkType: hard - -"@types/cors@npm:^2.8.12": - version: 2.8.17 - resolution: "@types/cors@npm:2.8.17" +"@types/debug@npm:^4.0.0": + version: 4.1.12 + resolution: "@types/debug@npm:4.1.12" dependencies: - "@types/node": "npm:*" - checksum: 10c0/457364c28c89f3d9ed34800e1de5c6eaaf344d1bb39af122f013322a50bc606eb2aa6f63de4e41a7a08ba7ef454473926c94a830636723da45bf786df032696d + "@types/ms": "npm:*" + checksum: 10c0/5dcd465edbb5a7f226e9a5efd1f399c6172407ef5840686b73e3608ce135eeca54ae8037dcd9f16bdb2768ac74925b820a8b9ecc588a58ca09eca6acabe33e2f languageName: node linkType: hard @@ -5329,6 +5276,15 @@ __metadata: languageName: node linkType: hard +"@types/mdast@npm:^4.0.0": + version: 4.0.4 + resolution: "@types/mdast@npm:4.0.4" + dependencies: + "@types/unist": "npm:*" + checksum: 10c0/84f403dbe582ee508fd9c7643ac781ad8597fcbfc9ccb8d4715a2c92e4545e5772cbd0dbdf18eda65789386d81b009967fdef01b24faf6640f817287f54d9c82 + languageName: node + linkType: hard + "@types/mdx@npm:^2.0.0": version: 2.0.13 resolution: "@types/mdx@npm:2.0.13" @@ -5343,7 +5299,14 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>=10.0.0": +"@types/ms@npm:*": + version: 0.7.34 + resolution: "@types/ms@npm:0.7.34" + checksum: 10c0/ac80bd90012116ceb2d188fde62d96830ca847823e8ca71255616bc73991aa7d9f057b8bfab79e8ee44ffefb031ddd1bcce63ea82f9e66f7c31ec02d2d823ccc + languageName: node + linkType: hard + +"@types/node@npm:*": version: 20.14.11 resolution: "@types/node@npm:20.14.11" dependencies: @@ -5688,7 +5651,7 @@ __metadata: languageName: node linkType: hard -"accepts@npm:~1.3.4, accepts@npm:~1.3.8": +"accepts@npm:~1.3.8": version: 1.3.8 resolution: "accepts@npm:1.3.8" dependencies: @@ -5743,7 +5706,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^7.0.0, acorn@npm:^7.1.1": +"acorn@npm:^7.0.0": version: 7.4.1 resolution: "acorn@npm:7.4.1" bin: @@ -6206,20 +6169,13 @@ __metadata: languageName: node linkType: hard -"asap@npm:^2.0.3, asap@npm:~2.0.3": +"asap@npm:^2.0.3": version: 2.0.6 resolution: "asap@npm:2.0.6" checksum: 10c0/c6d5e39fe1f15e4b87677460bd66b66050cd14c772269cee6688824c1410a08ab20254bb6784f9afb75af9144a9f9a7692d49547f4d19d715aeb7c0318f3136d languageName: node linkType: hard -"assert-never@npm:^1.2.1": - version: 1.3.0 - resolution: "assert-never@npm:1.3.0" - checksum: 10c0/5dbd4fb93bca5c5639c04b5216feebe00e44005b2967e35490cb3154b0ffa48637f796fdb48141b40ffd5b32bd669eb675ba876e112f269fc4bf5a70e70374a8 - languageName: node - linkType: hard - "assert-plus@npm:^1.0.0": version: 1.0.0 resolution: "assert-plus@npm:1.0.0" @@ -6250,13 +6206,6 @@ __metadata: languageName: node linkType: hard -"async-each-series@npm:0.1.1": - version: 0.1.1 - resolution: "async-each-series@npm:0.1.1" - checksum: 10c0/38d30fd162e6b1a6abe44ac6518cd0ae6f5ead587005b052a74dcd56494cc29fd2575845e34f24a6cc8e91d51a7060302bff3e8f605e8f359fcaea8072ceb4b9 - languageName: node - linkType: hard - "async-sema@npm:^3.1.1": version: 3.1.1 resolution: "async-sema@npm:3.1.1" @@ -6264,15 +6213,6 @@ __metadata: languageName: node linkType: hard -"async@npm:^2.6.0": - version: 2.6.4 - resolution: "async@npm:2.6.4" - dependencies: - lodash: "npm:^4.17.14" - checksum: 10c0/0ebb3273ef96513389520adc88e0d3c45e523d03653cc9b66f5c46f4239444294899bfd13d2b569e7dbfde7da2235c35cf5fd3ece9524f935d41bbe4efccdad0 - languageName: node - linkType: hard - "async@npm:^3.2.3, async@npm:^3.2.4": version: 3.2.5 resolution: "async@npm:3.2.5" @@ -6421,12 +6361,10 @@ __metadata: languageName: node linkType: hard -"babel-walk@npm:3.0.0-canary-5": - version: 3.0.0-canary-5 - resolution: "babel-walk@npm:3.0.0-canary-5" - dependencies: - "@babel/types": "npm:^7.9.6" - checksum: 10c0/17b689874d15c37714cedf6797dd9321dcb998d8e0dda9a8fe8c8bbbf128bbdeb8935cf56e8630d6b67eae76d2a0bc1e470751e082c3b0e30b80d58beafb5e64 +"bail@npm:^2.0.0": + version: 2.0.2 + resolution: "bail@npm:2.0.2" + checksum: 10c0/25cbea309ef6a1f56214187004e8f34014eb015713ea01fa5b9b7e9e776ca88d0fdffd64143ac42dc91966c915a4b7b683411b56e14929fad16153fc026ffb8b languageName: node linkType: hard @@ -6458,20 +6396,6 @@ __metadata: languageName: node linkType: hard -"base64id@npm:2.0.0, base64id@npm:~2.0.0": - version: 2.0.0 - resolution: "base64id@npm:2.0.0" - checksum: 10c0/6919efd237ed44b9988cbfc33eca6f173a10e810ce50292b271a1a421aac7748ef232a64d1e6032b08f19aae48dce6ee8f66c5ae2c9e5066c82b884861d4d453 - languageName: node - linkType: hard - -"batch@npm:0.6.1": - version: 0.6.1 - resolution: "batch@npm:0.6.1" - checksum: 10c0/925a13897b4db80d4211082fe287bcf96d297af38e26448c857cee3e095c9792e3b8f26b37d268812e7f38a589f694609de8534a018b1937d7dc9f84e6b387c5 - languageName: node - linkType: hard - "before-after-hook@npm:^2.2.0": version: 2.2.3 resolution: "before-after-hook@npm:2.2.3" @@ -6617,70 +6541,6 @@ __metadata: languageName: node linkType: hard -"browser-sync-client@npm:^3.0.2": - version: 3.0.2 - resolution: "browser-sync-client@npm:3.0.2" - dependencies: - etag: "npm:1.8.1" - fresh: "npm:0.5.2" - mitt: "npm:^1.1.3" - checksum: 10c0/b92204b82a6a2016b977971acbc34fac5d6e93278a1c5da6bb15b975e45e0c7bc04cb21efb020d48bcc604c5d484214df121aae8093739b8282543c4e60a31a0 - languageName: node - linkType: hard - -"browser-sync-ui@npm:^3.0.2": - version: 3.0.2 - resolution: "browser-sync-ui@npm:3.0.2" - dependencies: - async-each-series: "npm:0.1.1" - chalk: "npm:4.1.2" - connect-history-api-fallback: "npm:^1" - immutable: "npm:^3" - server-destroy: "npm:1.0.1" - socket.io-client: "npm:^4.4.1" - stream-throttle: "npm:^0.1.3" - checksum: 10c0/b4f9571b37f4a0e7614c9402baac0cc44efcebfb68c09851cd663d6233923db48535bea3ca6a6f3aa69fc7e2395069da1f3798af92213902d02f60e485feac95 - languageName: node - linkType: hard - -"browser-sync@npm:^3.0.2": - version: 3.0.2 - resolution: "browser-sync@npm:3.0.2" - dependencies: - browser-sync-client: "npm:^3.0.2" - browser-sync-ui: "npm:^3.0.2" - bs-recipes: "npm:1.3.4" - chalk: "npm:4.1.2" - chokidar: "npm:^3.5.1" - connect: "npm:3.6.6" - connect-history-api-fallback: "npm:^1" - dev-ip: "npm:^1.0.1" - easy-extender: "npm:^2.3.4" - eazy-logger: "npm:^4.0.1" - etag: "npm:^1.8.1" - fresh: "npm:^0.5.2" - fs-extra: "npm:3.0.1" - http-proxy: "npm:^1.18.1" - immutable: "npm:^3" - micromatch: "npm:^4.0.2" - opn: "npm:5.3.0" - portscanner: "npm:2.2.0" - raw-body: "npm:^2.3.2" - resp-modifier: "npm:6.0.2" - rx: "npm:4.1.0" - send: "npm:0.16.2" - serve-index: "npm:1.9.1" - serve-static: "npm:1.13.2" - server-destroy: "npm:1.0.1" - socket.io: "npm:^4.4.1" - ua-parser-js: "npm:^1.0.33" - yargs: "npm:^17.3.1" - bin: - browser-sync: dist/bin.js - checksum: 10c0/b840a50763235c0f9df4eb77bfbe2bf1031ce9e9f58f74a664174a0b6c2c0e7c701bfe920ef2d2e30e5c173a87f0406e79d120ad9dd247f4d2bbfbabba3d5454 - languageName: node - linkType: hard - "browserslist@npm:^4.0.0, browserslist@npm:^4.23.0": version: 4.23.2 resolution: "browserslist@npm:4.23.2" @@ -6723,13 +6583,6 @@ __metadata: languageName: node linkType: hard -"bs-recipes@npm:1.3.4": - version: 1.3.4 - resolution: "bs-recipes@npm:1.3.4" - checksum: 10c0/40946a0802dbeef3386b0a96003b7adbf2f20877c4de5fe3ba37c87a273238b6eec2a18b7f57d86fc46101e1b717815f6428d73d0263cc9de574cd30f25e6ceb - languageName: node - linkType: hard - "buffer-crc32@npm:^1.0.0": version: 1.0.0 resolution: "buffer-crc32@npm:1.0.0" @@ -6806,27 +6659,6 @@ __metadata: languageName: node linkType: hard -"c8@npm:^9.1.0": - version: 9.1.0 - resolution: "c8@npm:9.1.0" - dependencies: - "@bcoe/v8-coverage": "npm:^0.2.3" - "@istanbuljs/schema": "npm:^0.1.3" - find-up: "npm:^5.0.0" - foreground-child: "npm:^3.1.1" - istanbul-lib-coverage: "npm:^3.2.0" - istanbul-lib-report: "npm:^3.0.1" - istanbul-reports: "npm:^3.1.6" - test-exclude: "npm:^6.0.0" - v8-to-istanbul: "npm:^9.0.0" - yargs: "npm:^17.7.2" - yargs-parser: "npm:^21.1.1" - bin: - c8: bin/c8.js - checksum: 10c0/f09d8650497f919eb974365f8079d9b6096edad116a7d538e95df66adee430a5503ea5307e7fcdc5d58dffac04329c151e839cd4c587ac48d68ffbfa1986907d - languageName: node - linkType: hard - "cacache@npm:^18.0.0": version: 18.0.4 resolution: "cacache@npm:18.0.4" @@ -6937,6 +6769,13 @@ __metadata: languageName: node linkType: hard +"ccount@npm:^2.0.0": + version: 2.0.1 + resolution: "ccount@npm:2.0.1" + checksum: 10c0/3939b1664390174484322bc3f45b798462e6c07ee6384cb3d645e0aa2f318502d174845198c1561930e1d431087f74cf1fe291ae9a4722821a9f4ba67e574350 + languageName: node + linkType: hard + "cfb@npm:~0.11.0": version: 0.11.1 resolution: "cfb@npm:0.11.1" @@ -6982,16 +6821,6 @@ __metadata: languageName: node linkType: hard -"chalk@npm:4.1.2, chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.0": - version: 4.1.2 - resolution: "chalk@npm:4.1.2" - dependencies: - ansi-styles: "npm:^4.1.0" - supports-color: "npm:^7.1.0" - checksum: 10c0/4a3fef5cc34975c898ffe77141450f679721df9dde00f6c304353fa9c8b571929123b26a0e4617bde5018977eb655b31970c297b91b63ee83bb82aeb04666880 - languageName: node - linkType: hard - "chalk@npm:^1.1.3": version: 1.1.3 resolution: "chalk@npm:1.1.3" @@ -7026,6 +6855,16 @@ __metadata: languageName: node linkType: hard +"chalk@npm:^4.0.0, chalk@npm:^4.0.2, chalk@npm:^4.1.0": + version: 4.1.2 + resolution: "chalk@npm:4.1.2" + dependencies: + ansi-styles: "npm:^4.1.0" + supports-color: "npm:^7.1.0" + checksum: 10c0/4a3fef5cc34975c898ffe77141450f679721df9dde00f6c304353fa9c8b571929123b26a0e4617bde5018977eb655b31970c297b91b63ee83bb82aeb04666880 + languageName: node + linkType: hard + "chalk@npm:^5.3.0, chalk@npm:~5.3.0": version: 5.3.0 resolution: "chalk@npm:5.3.0" @@ -7067,12 +6906,10 @@ __metadata: languageName: node linkType: hard -"character-parser@npm:^2.2.0": - version: 2.2.0 - resolution: "character-parser@npm:2.2.0" - dependencies: - is-regex: "npm:^1.0.3" - checksum: 10c0/5a8d3eff2c912a6878c84e2ebf9d42524e858aa7e1a1c7e8bb79ab54da109ad008fe9057a9d2b3230541d7ff858eda98983a2ae15db57ba01af2e989d29e932e +"character-entities@npm:^2.0.0": + version: 2.0.2 + resolution: "character-entities@npm:2.0.2" + checksum: 10c0/b0c645a45bcc90ff24f0e0140f4875a8436b8ef13b6bcd31ec02cfb2ca502b680362aa95386f7815bdc04b6464d48cf191210b3840d7c04241a149ede591a308 languageName: node linkType: hard @@ -7154,7 +6991,7 @@ __metadata: languageName: node linkType: hard -"chokidar@npm:^3.3.0, chokidar@npm:^3.5.1, chokidar@npm:^3.6.0": +"chokidar@npm:^3.3.0, chokidar@npm:^3.6.0": version: 3.6.0 resolution: "chokidar@npm:3.6.0" dependencies: @@ -7489,7 +7326,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^2.14.1, commander@npm:^2.2.0": +"commander@npm:^2.14.1": version: 2.20.3 resolution: "commander@npm:2.20.3" checksum: 10c0/74c781a5248c2402a0a3e966a0a2bba3c054aad144f5c023364be83265e796b20565aa9feff624132ff629aa64e16999fa40a743c10c12f7c61e96a794b99288 @@ -7598,25 +7435,6 @@ __metadata: languageName: node linkType: hard -"connect-history-api-fallback@npm:^1": - version: 1.6.0 - resolution: "connect-history-api-fallback@npm:1.6.0" - checksum: 10c0/6d59c68070fcb2f6d981992f88d050d7544e8e1af6600c23ad680d955e316216794a742a1669d1f14ed5171fc628b916f8a4e15c5a1e55bffc8ccc60bfeb0b2c - languageName: node - linkType: hard - -"connect@npm:3.6.6": - version: 3.6.6 - resolution: "connect@npm:3.6.6" - dependencies: - debug: "npm:2.6.9" - finalhandler: "npm:1.1.0" - parseurl: "npm:~1.3.2" - utils-merge: "npm:1.0.1" - checksum: 10c0/62bc03bfa8f0ed122b7cbc86b3145ecf581ca1b79ccd4d0755e10645b5dc9ba2dee39cc13b8372b5fcf532e6f7ef7a17eb920e934f9934c4ffd40adc0616c423 - languageName: node - linkType: hard - "console-control-strings@npm:^1.0.0, console-control-strings@npm:^1.1.0": version: 1.1.0 resolution: "console-control-strings@npm:1.1.0" @@ -7635,16 +7453,6 @@ __metadata: languageName: node linkType: hard -"constantinople@npm:^4.0.1": - version: 4.0.1 - resolution: "constantinople@npm:4.0.1" - dependencies: - "@babel/parser": "npm:^7.6.0" - "@babel/types": "npm:^7.6.1" - checksum: 10c0/15129adef19b1af2c3ade8bd38f97c34781bf461472a30ab414384b28d072be83070c8d2175787c045ef7c222c415101ae609936e7903427796a0c0eca8449fd - languageName: node - linkType: hard - "content-disposition@npm:0.5.4": version: 0.5.4 resolution: "content-disposition@npm:0.5.4" @@ -7728,13 +7536,6 @@ __metadata: languageName: node linkType: hard -"cookie@npm:~0.4.1": - version: 0.4.2 - resolution: "cookie@npm:0.4.2" - checksum: 10c0/beab41fbd7c20175e3a2799ba948c1dcc71ef69f23fe14eeeff59fc09f50c517b0f77098db87dbb4c55da802f9d86ee86cdc1cd3efd87760341551838d53fca2 - languageName: node - linkType: hard - "copy-to-clipboard@npm:^3.3.1": version: 3.3.3 resolution: "copy-to-clipboard@npm:3.3.3" @@ -7751,16 +7552,6 @@ __metadata: languageName: node linkType: hard -"cors@npm:~2.8.5": - version: 2.8.5 - resolution: "cors@npm:2.8.5" - dependencies: - object-assign: "npm:^4" - vary: "npm:^1" - checksum: 10c0/373702b7999409922da80de4a61938aabba6929aea5b6fd9096fefb9e8342f626c0ebd7507b0e8b0b311380744cc985f27edebc0a26e0ddb784b54e1085de761 - languageName: node - linkType: hard - "cosmiconfig-typescript-loader@npm:^5.0.0": version: 5.0.0 resolution: "cosmiconfig-typescript-loader@npm:5.0.0" @@ -8262,7 +8053,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:2.6.9, debug@npm:^2.2.0": +"debug@npm:2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" dependencies: @@ -8271,7 +8062,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:~4.3.1, debug@npm:~4.3.2, debug@npm:~4.3.4": +"debug@npm:4, debug@npm:^4.1.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -8283,6 +8074,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.0.0": + version: 4.3.7 + resolution: "debug@npm:4.3.7" + dependencies: + ms: "npm:^2.1.3" + peerDependenciesMeta: + supports-color: + optional: true + checksum: 10c0/1471db19c3b06d485a622d62f65947a19a23fbd0dd73f7fd3eafb697eec5360cde447fb075919987899b1a2096e85d35d4eb5a4de09a57600ac9cf7e6c8e768b + languageName: node + linkType: hard + "debug@npm:^4.3.6, debug@npm:~4.3.6": version: 4.3.6 resolution: "debug@npm:4.3.6" @@ -8302,6 +8105,15 @@ __metadata: languageName: node linkType: hard +"decode-named-character-reference@npm:^1.0.0": + version: 1.0.2 + resolution: "decode-named-character-reference@npm:1.0.2" + dependencies: + character-entities: "npm:^2.0.0" + checksum: 10c0/66a9fc5d9b5385a2b3675c69ba0d8e893393d64057f7dbbb585265bb4fc05ec513d76943b8e5aac7d8016d20eea4499322cbf4cd6d54b466976b78f3a7587a4c + languageName: node + linkType: hard + "deep-eql@npm:^5.0.1": version: 5.0.2 resolution: "deep-eql@npm:5.0.2" @@ -8462,13 +8274,6 @@ __metadata: languageName: node linkType: hard -"depd@npm:~1.1.2": - version: 1.1.2 - resolution: "depd@npm:1.1.2" - checksum: 10c0/acb24aaf936ef9a227b6be6d495f0d2eb20108a9a6ad40585c5bda1a897031512fef6484e4fdbb80bd249fdaa82841fa1039f416ece03188e677ba11bcfda249 - languageName: node - linkType: hard - "dependency-graph@npm:^0.11.0": version: 0.11.0 resolution: "dependency-graph@npm:0.11.0" @@ -8476,13 +8281,6 @@ __metadata: languageName: node linkType: hard -"dependency-solver@npm:^1.0.6": - version: 1.0.6 - resolution: "dependency-solver@npm:1.0.6" - checksum: 10c0/b6d5334f43e2ec97962ba448a98a2c8844d00a08f99372683fe45799fa023d1dff50af2a8793b3296eb393b12d617759a0a1bf065795c8000c4a187798b47655 - languageName: node - linkType: hard - "deprecation@npm:^2.0.0, deprecation@npm:^2.3.1": version: 2.3.1 resolution: "deprecation@npm:2.3.1" @@ -8490,7 +8288,7 @@ __metadata: languageName: node linkType: hard -"dequal@npm:^2.0.2, dequal@npm:^2.0.3": +"dequal@npm:^2.0.0, dequal@npm:^2.0.2, dequal@npm:^2.0.3": version: 2.0.3 resolution: "dequal@npm:2.0.3" checksum: 10c0/f98860cdf58b64991ae10205137c0e97d384c3a4edc7f807603887b7c4b850af1224a33d88012009f150861cbee4fa2d322c4cc04b9313bee312e47f6ecaa888 @@ -8504,13 +8302,6 @@ __metadata: languageName: node linkType: hard -"destroy@npm:~1.0.4": - version: 1.0.4 - resolution: "destroy@npm:1.0.4" - checksum: 10c0/eab493808ba17a1fa22c71ef1a4e68d2c4c5222a38040606c966d2ab09117f3a7f3e05c39bffbe41a697f9de552039e43c30e46f0c3eab3faa9f82e800e172a0 - languageName: node - linkType: hard - "detect-file@npm:^1.0.0": version: 1.0.0 resolution: "detect-file@npm:1.0.0" @@ -8532,12 +8323,12 @@ __metadata: languageName: node linkType: hard -"dev-ip@npm:^1.0.1": - version: 1.0.1 - resolution: "dev-ip@npm:1.0.1" - bin: - dev-ip: lib/dev-ip.js - checksum: 10c0/c5f1f890a97e4aead98081d3d8e95d71f456423b5c047a286a07a5793ef58022e028a2bded40b671853fc53d95c5bffd64c18e31932ef670db60ada764ce0d82 +"devlop@npm:^1.0.0, devlop@npm:^1.1.0": + version: 1.1.0 + resolution: "devlop@npm:1.1.0" + dependencies: + dequal: "npm:^2.0.0" + checksum: 10c0/e0928ab8f94c59417a2b8389c45c55ce0a02d9ac7fd74ef62d01ba48060129e1d594501b77de01f3eeafc7cb00773819b0df74d96251cf20b31c5b3071f45c0e languageName: node linkType: hard @@ -8601,13 +8392,6 @@ __metadata: languageName: node linkType: hard -"doctypes@npm:^1.1.0": - version: 1.1.0 - resolution: "doctypes@npm:1.1.0" - checksum: 10c0/b3f9d597ad8b9ac6aeba9d64df61f0098174f7570e3d34f7ee245ebc736c7bee122d9738a18e22010b98983fd9a340d63043d3841f02d8a7742a2d96d2c72610 - languageName: node - linkType: hard - "dom-accessibility-api@npm:^0.5.9": version: 0.5.16 resolution: "dom-accessibility-api@npm:0.5.16" @@ -8769,24 +8553,6 @@ __metadata: languageName: node linkType: hard -"easy-extender@npm:^2.3.4": - version: 2.3.4 - resolution: "easy-extender@npm:2.3.4" - dependencies: - lodash: "npm:^4.17.10" - checksum: 10c0/0919927df255f5ad01dde06ce1b6da0665fda5b55dcc9bff8962fa96f443ce8a288bc2288e43cbf940804f250183f9e2f4ee841f2de4392a1c234d692291d705 - languageName: node - linkType: hard - -"eazy-logger@npm:^4.0.1": - version: 4.0.1 - resolution: "eazy-logger@npm:4.0.1" - dependencies: - chalk: "npm:4.1.2" - checksum: 10c0/e562265e7c49bd5a4535c66a61749b22e55b4978c48223f0f5b84ed1c5b59397510d655e24b764c0f4b0209f45c7e70a02cb00eaa748d5f44f6d58a4caaac971 - languageName: node - linkType: hard - "editions@npm:^2.2.0": version: 2.3.1 resolution: "editions@npm:2.3.1" @@ -8871,7 +8637,7 @@ __metadata: languageName: node linkType: hard -"encodeurl@npm:~1.0.1, encodeurl@npm:~1.0.2": +"encodeurl@npm:~1.0.2": version: 1.0.2 resolution: "encodeurl@npm:1.0.2" checksum: 10c0/f6c2387379a9e7c1156c1c3d4f9cb7bb11cf16dd4c1682e1f6746512564b053df5781029b6061296832b59fb22f459dbe250386d217c2f6e203601abb2ee0bec @@ -8903,44 +8669,6 @@ __metadata: languageName: node linkType: hard -"engine.io-client@npm:~6.5.2": - version: 6.5.4 - resolution: "engine.io-client@npm:6.5.4" - dependencies: - "@socket.io/component-emitter": "npm:~3.1.0" - debug: "npm:~4.3.1" - engine.io-parser: "npm:~5.2.1" - ws: "npm:~8.17.1" - xmlhttprequest-ssl: "npm:~2.0.0" - checksum: 10c0/ef220f9875d6a43bade906bd9b61118e812474bbe46e80f38c92dca238484170daf92d51e58bbade6433c29ffb5ba329f4864c5609f2e33c5e31041b1f8ad672 - languageName: node - linkType: hard - -"engine.io-parser@npm:~5.2.1": - version: 5.2.3 - resolution: "engine.io-parser@npm:5.2.3" - checksum: 10c0/ed4900d8dbef470ab3839ccf3bfa79ee518ea8277c7f1f2759e8c22a48f64e687ea5e474291394d0c94f84054749fd93f3ef0acb51fa2f5f234cc9d9d8e7c536 - languageName: node - linkType: hard - -"engine.io@npm:~6.5.2": - version: 6.5.5 - resolution: "engine.io@npm:6.5.5" - dependencies: - "@types/cookie": "npm:^0.4.1" - "@types/cors": "npm:^2.8.12" - "@types/node": "npm:>=10.0.0" - accepts: "npm:~1.3.4" - base64id: "npm:2.0.0" - cookie: "npm:~0.4.1" - cors: "npm:~2.8.5" - debug: "npm:~4.3.1" - engine.io-parser: "npm:~5.2.1" - ws: "npm:~8.17.1" - checksum: 10c0/b0994134917c5d3649fd7aea283492eaf092131e572a8d379c7c9081548b42cff756730b4641edd0d1598148dd3be253c4d634cea2ba5c59622d175d9e567469 - languageName: node - linkType: hard - "enquirer@npm:^2.3.0": version: 2.4.1 resolution: "enquirer@npm:2.4.1" @@ -9541,7 +9269,7 @@ __metadata: languageName: node linkType: hard -"etag@npm:1.8.1, etag@npm:^1.8.1, etag@npm:~1.8.1": +"etag@npm:~1.8.1": version: 1.8.1 resolution: "etag@npm:1.8.1" checksum: 10c0/12be11ef62fb9817314d790089a0a49fae4e1b50594135dcb8076312b7d7e470884b5100d249b28c18581b7fd52f8b485689ffae22a11ed9ec17377a33a08f84 @@ -9555,13 +9283,6 @@ __metadata: languageName: node linkType: hard -"eventemitter3@npm:^4.0.0": - version: 4.0.7 - resolution: "eventemitter3@npm:4.0.7" - checksum: 10c0/5f6d97cbcbac47be798e6355e3a7639a84ee1f7d9b199a07017f1d2f1e2fe236004d14fa5dfaeba661f94ea57805385e326236a6debbc7145c8877fbc0297c6b - languageName: node - linkType: hard - "eventemitter3@npm:^5.0.1": version: 5.0.1 resolution: "eventemitter3@npm:5.0.1" @@ -9662,7 +9383,7 @@ __metadata: languageName: node linkType: hard -"extend@npm:^3.0.2": +"extend@npm:^3.0.0, extend@npm:^3.0.2": version: 3.0.2 resolution: "extend@npm:3.0.2" checksum: 10c0/73bf6e27406e80aa3e85b0d1c4fd987261e628064e170ca781125c0b635a3dabad5e05adbf07595ea0cf1e6c5396cacb214af933da7cbaf24fe75ff14818e8f9 @@ -9940,21 +9661,6 @@ __metadata: languageName: node linkType: hard -"finalhandler@npm:1.1.0": - version: 1.1.0 - resolution: "finalhandler@npm:1.1.0" - dependencies: - debug: "npm:2.6.9" - encodeurl: "npm:~1.0.1" - escape-html: "npm:~1.0.3" - on-finished: "npm:~2.3.0" - parseurl: "npm:~1.3.2" - statuses: "npm:~1.3.1" - unpipe: "npm:~1.0.0" - checksum: 10c0/ed28bf6b7cf423dec9ab3a0016bbc2d21898e315b663f5a989a4b078537858bf3f0a2edb241bce54f66f3b5f233456c9f1dd03318ca745cd70405517aa6954cd - languageName: node - linkType: hard - "finalhandler@npm:1.2.0": version: 1.2.0 resolution: "finalhandler@npm:1.2.0" @@ -10088,7 +9794,7 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.15.6": +"follow-redirects@npm:^1.15.6": version: 1.15.6 resolution: "follow-redirects@npm:1.15.6" peerDependenciesMeta: @@ -10186,7 +9892,7 @@ __metadata: languageName: node linkType: hard -"fresh@npm:0.5.2, fresh@npm:^0.5.2": +"fresh@npm:0.5.2": version: 0.5.2 resolution: "fresh@npm:0.5.2" checksum: 10c0/c6d27f3ed86cc5b601404822f31c900dd165ba63fff8152a3ef714e2012e7535027063bc67ded4cb5b3a49fa596495d46cacd9f47d6328459cf570f08b7d9e5a @@ -10220,17 +9926,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:3.0.1": - version: 3.0.1 - resolution: "fs-extra@npm:3.0.1" - dependencies: - graceful-fs: "npm:^4.1.2" - jsonfile: "npm:^3.0.0" - universalify: "npm:^0.1.0" - checksum: 10c0/ac3a17c9355f80aa250e102dbc4939c50ec83fca49a144bdd432f43deb0a3c07f74ec313feb2b938d6b0c1de9bfb02c2358bc602efeed5174fca692b7d4694f1 - languageName: node - linkType: hard - "fs-extra@npm:^10.0.0": version: 10.1.0 resolution: "fs-extra@npm:10.1.0" @@ -10523,7 +10218,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.0.3, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6": +"glob@npm:^7.0.3, glob@npm:^7.1.3, glob@npm:^7.1.6": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -10978,18 +10673,6 @@ __metadata: languageName: node linkType: hard -"http-errors@npm:~1.6.2": - version: 1.6.3 - resolution: "http-errors@npm:1.6.3" - dependencies: - depd: "npm:~1.1.2" - inherits: "npm:2.0.3" - setprototypeof: "npm:1.1.0" - statuses: "npm:>= 1.4.0 < 2" - checksum: 10c0/17ec4046ee974477778bfdd525936c254b872054703ec2caa4d6f099566b8adade636ae6aeeacb39302c5cd6e28fb407ebd937f500f5010d0b6850750414ff78 - languageName: node - linkType: hard - "http-proxy-agent@npm:^7.0.0": version: 7.0.2 resolution: "http-proxy-agent@npm:7.0.2" @@ -11000,17 +10683,6 @@ __metadata: languageName: node linkType: hard -"http-proxy@npm:^1.18.1": - version: 1.18.1 - resolution: "http-proxy@npm:1.18.1" - dependencies: - eventemitter3: "npm:^4.0.0" - follow-redirects: "npm:^1.0.0" - requires-port: "npm:^1.0.0" - checksum: 10c0/148dfa700a03fb421e383aaaf88ac1d94521dfc34072f6c59770528c65250983c2e4ec996f2f03aa9f3fe46cd1270a593126068319311e3e8d9e610a37533e94 - languageName: node - linkType: hard - "https-proxy-agent@npm:^5.0.0": version: 5.0.1 resolution: "https-proxy-agent@npm:5.0.1" @@ -11117,13 +10789,6 @@ __metadata: languageName: node linkType: hard -"immutable@npm:^3": - version: 3.8.2 - resolution: "immutable@npm:3.8.2" - checksum: 10c0/fb6a2999ad3bda9e51741721e42547076dd492635ee4df9241224055fe953ec843583a700088cc4915f23dc326e5084f4e17f1bbd7388c3e872ef5a242e0ac5e - languageName: node - linkType: hard - "import-fresh@npm:^3.2.1, import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" @@ -11179,13 +10844,6 @@ __metadata: languageName: node linkType: hard -"inherits@npm:2.0.3": - version: 2.0.3 - resolution: "inherits@npm:2.0.3" - checksum: 10c0/6e56402373149ea076a434072671f9982f5fad030c7662be0332122fe6c0fa490acb3cc1010d90b6eff8d640b1167d77674add52dfd1bb85d545cf29e80e73e7 - languageName: node - linkType: hard - "ini@npm:4.1.1": version: 4.1.1 resolution: "ini@npm:4.1.1" @@ -11455,16 +11113,6 @@ __metadata: languageName: node linkType: hard -"is-expression@npm:^4.0.0": - version: 4.0.0 - resolution: "is-expression@npm:4.0.0" - dependencies: - acorn: "npm:^7.1.1" - object-assign: "npm:^4.1.1" - checksum: 10c0/541831d39d3e7bfc8cecd966d6b0f3c0e6d9055342f17b634fb23e74f51ce90f1bfc3cf231c722fe003a61e8d4f0b9e07244fdaba57f4fc70a163c74006fd5a0 - languageName: node - linkType: hard - "is-extended@npm:0.0.10, is-extended@npm:~0.0.3, is-extended@npm:~0.0.8": version: 0.0.10 resolution: "is-extended@npm:0.0.10" @@ -11575,15 +11223,6 @@ __metadata: languageName: node linkType: hard -"is-number-like@npm:^1.0.3": - version: 1.0.8 - resolution: "is-number-like@npm:1.0.8" - dependencies: - lodash.isfinite: "npm:^3.3.2" - checksum: 10c0/082f407c5f463b3618b5941f7f54541f6cb58bd6af1a80e42daaba7f81ed49785bb11f7ef3010051f6916cc3f97ed6cb40e7e87d15cea81f95306d34a1926ead - languageName: node - linkType: hard - "is-number-object@npm:^1.0.4": version: 1.0.7 resolution: "is-number-object@npm:1.0.7" @@ -11628,6 +11267,13 @@ __metadata: languageName: node linkType: hard +"is-plain-obj@npm:^4.0.0": + version: 4.1.0 + resolution: "is-plain-obj@npm:4.1.0" + checksum: 10c0/32130d651d71d9564dc88ba7e6fda0e91a1010a3694648e9f4f47bb6080438140696d3e3e15c741411d712e47ac9edc1a8a9de1fe76f3487b0d90be06ac9975e + languageName: node + linkType: hard + "is-plain-object@npm:^5.0.0": version: 5.0.0 resolution: "is-plain-object@npm:5.0.0" @@ -11635,13 +11281,6 @@ __metadata: languageName: node linkType: hard -"is-promise@npm:^2.0.0": - version: 2.2.2 - resolution: "is-promise@npm:2.2.2" - checksum: 10c0/2dba959812380e45b3df0fb12e7cb4d4528c989c7abb03ececb1d1fd6ab1cbfee956ca9daa587b9db1d8ac3c1e5738cf217bdb3dfd99df8c691be4c00ae09069 - languageName: node - linkType: hard - "is-promise@npm:^4.0.0": version: 4.0.0 resolution: "is-promise@npm:4.0.0" @@ -11649,7 +11288,7 @@ __metadata: languageName: node linkType: hard -"is-regex@npm:^1.0.3, is-regex@npm:^1.1.4": +"is-regex@npm:^1.1.4": version: 1.1.4 resolution: "is-regex@npm:1.1.4" dependencies: @@ -11813,13 +11452,6 @@ __metadata: languageName: node linkType: hard -"is-wsl@npm:^1.1.0": - version: 1.1.0 - resolution: "is-wsl@npm:1.1.0" - checksum: 10c0/7ad0012f21092d6f586c7faad84755a8ef0da9b9ec295e4dc82313cce4e1a93a3da3c217265016461f9b141503fe55fa6eb1fd5457d3f05e8d1bdbb48e50c13a - languageName: node - linkType: hard - "is-wsl@npm:^2.2.0": version: 2.2.0 resolution: "is-wsl@npm:2.2.0" @@ -11990,13 +11622,6 @@ __metadata: languageName: node linkType: hard -"js-stringify@npm:^1.0.2": - version: 1.0.2 - resolution: "js-stringify@npm:1.0.2" - checksum: 10c0/a450c04fde3a7e1c27f1c3c4300433f8d79322f9e3c2e76266843cef8c0b5a69b5f11b5f173212b2f15f2df09e068ef7ddf46ef775e2486f3006a6f4e912578d - languageName: node - linkType: hard - "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -12136,18 +11761,6 @@ __metadata: languageName: node linkType: hard -"jsonfile@npm:^3.0.0": - version: 3.0.1 - resolution: "jsonfile@npm:3.0.1" - dependencies: - graceful-fs: "npm:^4.1.6" - dependenciesMeta: - graceful-fs: - optional: true - checksum: 10c0/159ec98712d5a0f77ddb96ddbde0ecc5fb1108fadab5b85cea18f508be78eabf03a3370b3769112fce1d8772b4e396f81d7c0d378ac5d7955bee5f1330cf1b19 - languageName: node - linkType: hard - "jsonfile@npm:^4.0.0": version: 4.0.0 resolution: "jsonfile@npm:4.0.0" @@ -12180,16 +11793,6 @@ __metadata: languageName: node linkType: hard -"jstransformer@npm:1.0.0": - version: 1.0.0 - resolution: "jstransformer@npm:1.0.0" - dependencies: - is-promise: "npm:^2.0.0" - promise: "npm:^7.0.1" - checksum: 10c0/11f9b4f368a55878dd7973154cd83b0adca27f974d21217728652530775b2bec281e92109de66f0c9e37c76af796d5b76b33f3e38363214a83d102d523a7285b - languageName: node - linkType: hard - "jwt-decode@npm:^3.1.2": version: 3.1.2 resolution: "jwt-decode@npm:3.1.2" @@ -12262,13 +11865,6 @@ __metadata: languageName: node linkType: hard -"limiter@npm:^1.0.5": - version: 1.1.5 - resolution: "limiter@npm:1.1.5" - checksum: 10c0/ebe2b20a820d1f67b8e1724051246434c419b2da041a7e9cd943f6daf113b8d17a52a1bd88fb79be5b624c10283ecb737f50edb5c1c88c71f4cd367108c97300 - languageName: node - linkType: hard - "lines-and-columns@npm:2.0.3": version: 2.0.3 resolution: "lines-and-columns@npm:2.0.3" @@ -12283,15 +11879,6 @@ __metadata: languageName: node linkType: hard -"linkify-it@npm:^5.0.0": - version: 5.0.0 - resolution: "linkify-it@npm:5.0.0" - dependencies: - uc.micro: "npm:^2.0.0" - checksum: 10c0/ff4abbcdfa2003472fc3eb4b8e60905ec97718e11e33cca52059919a4c80cc0e0c2a14d23e23d8c00e5402bc5a885cdba8ca053a11483ab3cc8b3c7a52f88e2d - languageName: node - linkType: hard - "lint-staged@npm:^15.2.10": version: 15.2.10 resolution: "lint-staged@npm:15.2.10" @@ -12395,13 +11982,6 @@ __metadata: languageName: node linkType: hard -"loadicons@npm:^1.0.0": - version: 1.0.0 - resolution: "loadicons@npm:1.0.0" - checksum: 10c0/b868b993df4f93b53ac0f4b6142709acee260887205b50f595d5976ab02eb8a45b3a7c11d9f474b23d37f8b8e71214e6ebb71b825b02b08f569f533bdd90ed66 - languageName: node - linkType: hard - "locate-path@npm:^5.0.0": version: 5.0.0 resolution: "locate-path@npm:5.0.0" @@ -12450,13 +12030,6 @@ __metadata: languageName: node linkType: hard -"lodash.isfinite@npm:^3.3.2": - version: 3.3.2 - resolution: "lodash.isfinite@npm:3.3.2" - checksum: 10c0/997f5f2e96daf3f9f7e27a46cf5b409097d6426e137357f95b1aa357b3abfdf6c61225d451aab40be58941a87df5d5ca85617e85960f6fe50ee09aba41a974de - languageName: node - linkType: hard - "lodash.isplainobject@npm:^4.0.6": version: 4.0.6 resolution: "lodash.isplainobject@npm:4.0.6" @@ -12527,7 +12100,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:>=4.17.21, lodash@npm:^4.0.0, lodash@npm:^4.17.10, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.21": +"lodash@npm:>=4.17.21, lodash@npm:^4.0.0, lodash@npm:^4.17.15, lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c @@ -12567,6 +12140,13 @@ __metadata: languageName: node linkType: hard +"longest-streak@npm:^3.0.0": + version: 3.1.0 + resolution: "longest-streak@npm:3.1.0" + checksum: 10c0/7c2f02d0454b52834d1bcedef79c557bd295ee71fdabb02d041ff3aa9da48a90b5df7c0409156dedbc4df9b65da18742652aaea4759d6ece01f08971af6a7eaa + languageName: node + linkType: hard + "loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" @@ -12648,13 +12228,6 @@ __metadata: languageName: node linkType: hard -"lunr@npm:^2.3.9": - version: 2.3.9 - resolution: "lunr@npm:2.3.9" - checksum: 10c0/77d7dbb4fbd602aac161e2b50887d8eda28c0fa3b799159cee380fbb311f1e614219126ecbbd2c3a9c685f1720a8109b3c1ca85cc893c39b6c9cc6a62a1d8a8b - languageName: node - linkType: hard - "lz-string@npm:^1.5.0": version: 1.5.0 resolution: "lz-string@npm:1.5.0" @@ -12750,47 +12323,10 @@ __metadata: languageName: node linkType: hard -"markdown-it-anchor@npm:^8.6.7": - version: 8.6.7 - resolution: "markdown-it-anchor@npm:8.6.7" - peerDependencies: - "@types/markdown-it": "*" - markdown-it: "*" - checksum: 10c0/f117866488013b7e4085a6b59d12bf62879181aef65ea2851f01ed1b763b8c052580c2c27fa8bd009421886220c6beeb373a65af9e885ce63a36ee9f8dcd0e89 - languageName: node - linkType: hard - -"markdown-it-attrs@npm:^4.1.6": - version: 4.1.6 - resolution: "markdown-it-attrs@npm:4.1.6" - peerDependencies: - markdown-it: ">= 9.0.0" - checksum: 10c0/8d36fb333953fd65b042fa4c2f2b0469d457f7341469f56be68f0772813fce5867bc475eeed5ab25753603e9c35aeca2ac9dcdfe3ab92cba3a7178342a83367e - languageName: node - linkType: hard - -"markdown-it-prism@npm:^2.3.0": - version: 2.3.0 - resolution: "markdown-it-prism@npm:2.3.0" - dependencies: - prismjs: "npm:1.29.0" - checksum: 10c0/81332bfc0b93529089e59d8f276948fe55fb714610bdd7fdcc6060133c172608cf45c76dd166b91209eb51cef3e57da24c82c4d2f3b873c52e0b6bd45d793a2d - languageName: node - linkType: hard - -"markdown-it@npm:^14.1.0": - version: 14.1.0 - resolution: "markdown-it@npm:14.1.0" - dependencies: - argparse: "npm:^2.0.1" - entities: "npm:^4.4.0" - linkify-it: "npm:^5.0.0" - mdurl: "npm:^2.0.0" - punycode.js: "npm:^2.3.1" - uc.micro: "npm:^2.1.0" - bin: - markdown-it: bin/markdown-it.mjs - checksum: 10c0/9a6bb444181d2db7016a4173ae56a95a62c84d4cbfb6916a399b11d3e6581bf1cc2e4e1d07a2f022ae72c25f56db90fbe1e529fca16fbf9541659dc53480d4b4 +"markdown-table@npm:^3.0.0": + version: 3.0.3 + resolution: "markdown-table@npm:3.0.3" + checksum: 10c0/47433a3f31e4637a184e38e873ab1d2fadfb0106a683d466fec329e99a2d8dfa09f091fa42202c6f13ec94aef0199f449a684b28042c636f2edbc1b7e1811dcd languageName: node linkType: hard @@ -12828,6 +12364,150 @@ __metadata: languageName: node linkType: hard +"mdast-util-find-and-replace@npm:^3.0.0": + version: 3.0.1 + resolution: "mdast-util-find-and-replace@npm:3.0.1" + dependencies: + "@types/mdast": "npm:^4.0.0" + escape-string-regexp: "npm:^5.0.0" + unist-util-is: "npm:^6.0.0" + unist-util-visit-parents: "npm:^6.0.0" + checksum: 10c0/1faca98c4ee10a919f23b8cc6d818e5bb6953216a71dfd35f51066ed5d51ef86e5063b43dcfdc6061cd946e016a9f0d44a1dccadd58452cf4ed14e39377f00cb + languageName: node + linkType: hard + +"mdast-util-from-markdown@npm:^2.0.0": + version: 2.0.1 + resolution: "mdast-util-from-markdown@npm:2.0.1" + dependencies: + "@types/mdast": "npm:^4.0.0" + "@types/unist": "npm:^3.0.0" + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + mdast-util-to-string: "npm:^4.0.0" + micromark: "npm:^4.0.0" + micromark-util-decode-numeric-character-reference: "npm:^2.0.0" + micromark-util-decode-string: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + unist-util-stringify-position: "npm:^4.0.0" + checksum: 10c0/496596bc6419200ff6258531a0ebcaee576a5c169695f5aa296a79a85f2a221bb9247d565827c709a7c2acfb56ae3c3754bf483d86206617bd299a9658c8121c + languageName: node + linkType: hard + +"mdast-util-gfm-autolink-literal@npm:^2.0.0": + version: 2.0.1 + resolution: "mdast-util-gfm-autolink-literal@npm:2.0.1" + dependencies: + "@types/mdast": "npm:^4.0.0" + ccount: "npm:^2.0.0" + devlop: "npm:^1.0.0" + mdast-util-find-and-replace: "npm:^3.0.0" + micromark-util-character: "npm:^2.0.0" + checksum: 10c0/963cd22bd42aebdec7bdd0a527c9494d024d1ad0739c43dc040fee35bdfb5e29c22564330a7418a72b5eab51d47a6eff32bc0255ef3ccb5cebfe8970e91b81b6 + languageName: node + linkType: hard + +"mdast-util-gfm-footnote@npm:^2.0.0": + version: 2.0.0 + resolution: "mdast-util-gfm-footnote@npm:2.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.1.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + checksum: 10c0/c673b22bea24740235e74cfd66765b41a2fa540334f7043fa934b94938b06b7d3c93f2d3b33671910c5492b922c0cc98be833be3b04cfed540e0679650a6d2de + languageName: node + linkType: hard + +"mdast-util-gfm-strikethrough@npm:^2.0.0": + version: 2.0.0 + resolution: "mdast-util-gfm-strikethrough@npm:2.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + checksum: 10c0/b053e93d62c7545019bd914271ea9e5667ad3b3b57d16dbf68e56fea39a7e19b4a345e781312714eb3d43fdd069ff7ee22a3ca7f6149dfa774554f19ce3ac056 + languageName: node + linkType: hard + +"mdast-util-gfm-table@npm:^2.0.0": + version: 2.0.0 + resolution: "mdast-util-gfm-table@npm:2.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + markdown-table: "npm:^3.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + checksum: 10c0/128af47c503a53bd1c79f20642561e54a510ad5e2db1e418d28fefaf1294ab839e6c838e341aef5d7e404f9170b9ca3d1d89605f234efafde93ee51174a6e31e + languageName: node + linkType: hard + +"mdast-util-gfm-task-list-item@npm:^2.0.0": + version: 2.0.0 + resolution: "mdast-util-gfm-task-list-item@npm:2.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + devlop: "npm:^1.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + checksum: 10c0/258d725288482b636c0a376c296431390c14b4f29588675297cb6580a8598ed311fc73ebc312acfca12cc8546f07a3a285a53a3b082712e2cbf5c190d677d834 + languageName: node + linkType: hard + +"mdast-util-gfm@npm:^3.0.0": + version: 3.0.0 + resolution: "mdast-util-gfm@npm:3.0.0" + dependencies: + mdast-util-from-markdown: "npm:^2.0.0" + mdast-util-gfm-autolink-literal: "npm:^2.0.0" + mdast-util-gfm-footnote: "npm:^2.0.0" + mdast-util-gfm-strikethrough: "npm:^2.0.0" + mdast-util-gfm-table: "npm:^2.0.0" + mdast-util-gfm-task-list-item: "npm:^2.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + checksum: 10c0/91596fe9bf3e4a0c546d0c57f88106c17956d9afbe88ceb08308e4da2388aff64489d649ddad599caecfdf755fc3ae4c9b82c219b85281bc0586b67599881fca + languageName: node + linkType: hard + +"mdast-util-phrasing@npm:^4.0.0": + version: 4.1.0 + resolution: "mdast-util-phrasing@npm:4.1.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + unist-util-is: "npm:^6.0.0" + checksum: 10c0/bf6c31d51349aa3d74603d5e5a312f59f3f65662ed16c58017169a5fb0f84ca98578f626c5ee9e4aa3e0a81c996db8717096705521bddb4a0185f98c12c9b42f + languageName: node + linkType: hard + +"mdast-util-to-markdown@npm:^2.0.0": + version: 2.1.0 + resolution: "mdast-util-to-markdown@npm:2.1.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + "@types/unist": "npm:^3.0.0" + longest-streak: "npm:^3.0.0" + mdast-util-phrasing: "npm:^4.0.0" + mdast-util-to-string: "npm:^4.0.0" + micromark-util-decode-string: "npm:^2.0.0" + unist-util-visit: "npm:^5.0.0" + zwitch: "npm:^2.0.0" + checksum: 10c0/8bd37a9627a438ef6418d6642661904d0cc03c5c732b8b018a8e238ef5cc82fe8aef1940b19c6f563245e58b9659f35e527209bd3fe145f3c723ba14d18fc3e6 + languageName: node + linkType: hard + +"mdast-util-to-string@npm:^4.0.0": + version: 4.0.0 + resolution: "mdast-util-to-string@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + checksum: 10c0/2d3c1af29bf3fe9c20f552ee9685af308002488f3b04b12fa66652c9718f66f41a32f8362aa2d770c3ff464c034860b41715902ada2306bb0a055146cef064d7 + languageName: node + linkType: hard + "mdn-data@npm:2.0.28": version: 2.0.28 resolution: "mdn-data@npm:2.0.28" @@ -12842,13 +12522,6 @@ __metadata: languageName: node linkType: hard -"mdurl@npm:^2.0.0": - version: 2.0.0 - resolution: "mdurl@npm:2.0.0" - checksum: 10c0/633db522272f75ce4788440669137c77540d74a83e9015666a9557a152c02e245b192edc20bc90ae953bbab727503994a53b236b4d9c99bdaee594d0e7dd2ce0 - languageName: node - linkType: hard - "media-typer@npm:0.3.0": version: 0.3.0 resolution: "media-typer@npm:0.3.0" @@ -12925,6 +12598,335 @@ __metadata: languageName: node linkType: hard +"micromark-core-commonmark@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-core-commonmark@npm:2.0.1" + dependencies: + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-factory-destination: "npm:^2.0.0" + micromark-factory-label: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-factory-title: "npm:^2.0.0" + micromark-factory-whitespace: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-classify-character: "npm:^2.0.0" + micromark-util-html-tag-name: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/a0b280b1b6132f600518e72cb29a4dd1b2175b85f5ed5b25d2c5695e42b876b045971370daacbcfc6b4ce8cf7acbf78dd3a0284528fb422b450144f4b3bebe19 + languageName: node + linkType: hard + +"micromark-extension-gfm-autolink-literal@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-autolink-literal@npm:2.1.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/84e6fbb84ea7c161dfa179665dc90d51116de4c28f3e958260c0423e5a745372b7dcbc87d3cde98213b532e6812f847eef5ae561c9397d7f7da1e59872ef3efe + languageName: node + linkType: hard + +"micromark-extension-gfm-footnote@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-footnote@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-core-commonmark: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/d172e4218968b7371b9321af5cde8c77423f73b233b2b0fcf3ff6fd6f61d2e0d52c49123a9b7910612478bf1f0d5e88c75a3990dd68f70f3933fe812b9f77edc + languageName: node + linkType: hard + +"micromark-extension-gfm-strikethrough@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-strikethrough@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-classify-character: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/ef4f248b865bdda71303b494671b7487808a340b25552b11ca6814dff3fcfaab9be8d294643060bbdb50f79313e4a686ab18b99cbe4d3ee8a4170fcd134234fb + languageName: node + linkType: hard + +"micromark-extension-gfm-table@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-table@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/c1b564ab68576406046d825b9574f5b4dbedbb5c44bede49b5babc4db92f015d9057dd79d8e0530f2fecc8970a695c40ac2e5e1d4435ccf3ef161038d0d1463b + languageName: node + linkType: hard + +"micromark-extension-gfm-tagfilter@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-extension-gfm-tagfilter@npm:2.0.0" + dependencies: + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/995558843fff137ae4e46aecb878d8a4691cdf23527dcf1e2f0157d66786be9f7bea0109c52a8ef70e68e3f930af811828ba912239438e31a9cfb9981f44d34d + languageName: node + linkType: hard + +"micromark-extension-gfm-task-list-item@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-extension-gfm-task-list-item@npm:2.1.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/78aa537d929e9309f076ba41e5edc99f78d6decd754b6734519ccbbfca8abd52e1c62df68d41a6ae64d2a3fc1646cea955893c79680b0b4385ced4c52296181f + languageName: node + linkType: hard + +"micromark-extension-gfm@npm:^3.0.0": + version: 3.0.0 + resolution: "micromark-extension-gfm@npm:3.0.0" + dependencies: + micromark-extension-gfm-autolink-literal: "npm:^2.0.0" + micromark-extension-gfm-footnote: "npm:^2.0.0" + micromark-extension-gfm-strikethrough: "npm:^2.0.0" + micromark-extension-gfm-table: "npm:^2.0.0" + micromark-extension-gfm-tagfilter: "npm:^2.0.0" + micromark-extension-gfm-task-list-item: "npm:^2.0.0" + micromark-util-combine-extensions: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/970e28df6ebdd7c7249f52a0dda56e0566fbfa9ae56c8eeeb2445d77b6b89d44096880cd57a1c01e7821b1f4e31009109fbaca4e89731bff7b83b8519690e5d9 + languageName: node + linkType: hard + +"micromark-factory-destination@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-factory-destination@npm:2.0.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/b73492f687d41a6a379159c2f3acbf813042346bcea523d9041d0cc6124e6715f0779dbb2a0b3422719e9764c3b09f9707880aa159557e3cb4aeb03b9d274915 + languageName: node + linkType: hard + +"micromark-factory-label@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-factory-label@npm:2.0.0" + dependencies: + devlop: "npm:^1.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/8ffad00487a7891941b1d1f51d53a33c7a659dcf48617edb7a4008dad7aff67ec316baa16d55ca98ae3d75ce1d81628dbf72fedc7c6f108f740dec0d5d21c8ee + languageName: node + linkType: hard + +"micromark-factory-space@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-factory-space@npm:2.0.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/103ca954dade963d4ff1d2f27d397833fe855ddc72590205022832ef68b775acdea67949000cee221708e376530b1de78c745267b0bf8366740840783eb37122 + languageName: node + linkType: hard + +"micromark-factory-title@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-factory-title@npm:2.0.0" + dependencies: + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/2b2188e7a011b1b001faf8c860286d246d5c3485ef8819270c60a5808f4c7613e49d4e481dbdff62600ef7acdba0f5100be2d125cbd2a15e236c26b3668a8ebd + languageName: node + linkType: hard + +"micromark-factory-whitespace@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-factory-whitespace@npm:2.0.0" + dependencies: + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/4e91baab0cc71873095134bd0e225d01d9786cde352701402d71b72d317973954754e8f9f1849901f165530e6421202209f4d97c460a27bb0808ec5a3fc3148c + languageName: node + linkType: hard + +"micromark-util-character@npm:^2.0.0": + version: 2.1.0 + resolution: "micromark-util-character@npm:2.1.0" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/fc37a76aaa5a5138191ba2bef1ac50c36b3bcb476522e98b1a42304ab4ec76f5b036a746ddf795d3de3e7004b2c09f21dd1bad42d161f39b8cfc0acd067e6373 + languageName: node + linkType: hard + +"micromark-util-chunked@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-chunked@npm:2.0.0" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/043b5f2abc8c13a1e2e4c378ead191d1a47ed9e0cd6d0fa5a0a430b2df9e17ada9d5de5a20688a000bbc5932507e746144acec60a9589d9a79fa60918e029203 + languageName: node + linkType: hard + +"micromark-util-classify-character@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-classify-character@npm:2.0.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/2bf5fa5050faa9b69f6c7e51dbaaf02329ab70fabad8229984381b356afbbf69db90f4617bec36d814a7d285fb7cad8e3c4e38d1daf4387dc9e240aa7f9a292a + languageName: node + linkType: hard + +"micromark-util-combine-extensions@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-combine-extensions@npm:2.0.0" + dependencies: + micromark-util-chunked: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/cd4c8d1a85255527facb419ff3b3cc3d7b7f27005c5ef5fa7ef2c4d0e57a9129534fc292a188ec2d467c2c458642d369c5f894bc8a9e142aed6696cc7989d3ea + languageName: node + linkType: hard + +"micromark-util-decode-numeric-character-reference@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-decode-numeric-character-reference@npm:2.0.1" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/3f6d684ee8f317c67806e19b3e761956256cb936a2e0533aad6d49ac5604c6536b2041769c6febdd387ab7175b7b7e551851bf2c1f78da943e7a3671ca7635ac + languageName: node + linkType: hard + +"micromark-util-decode-string@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-decode-string@npm:2.0.0" + dependencies: + decode-named-character-reference: "npm:^1.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-decode-numeric-character-reference: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/f5413bebb21bdb686cfa1bcfa7e9c93093a523d1b42443ead303b062d2d680a94e5e8424549f57b8ba9d786a758e5a26a97f56068991bbdbca5d1885b3aa7227 + languageName: node + linkType: hard + +"micromark-util-encode@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-encode@npm:2.0.0" + checksum: 10c0/ebdaafff23100bbf4c74e63b4b1612a9ddf94cd7211d6a076bc6fb0bc32c1b48d6fb615aa0953e607c62c97d849f97f1042260d3eb135259d63d372f401bbbb2 + languageName: node + linkType: hard + +"micromark-util-html-tag-name@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-html-tag-name@npm:2.0.0" + checksum: 10c0/988aa26367449bd345b627ae32cf605076daabe2dc1db71b578a8a511a47123e14af466bcd6dcbdacec60142f07bc2723ec5f7a0eed0f5319ce83b5e04825429 + languageName: node + linkType: hard + +"micromark-util-normalize-identifier@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-normalize-identifier@npm:2.0.0" + dependencies: + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/93bf8789b8449538f22cf82ac9b196363a5f3b2f26efd98aef87c4c1b1f8c05be3ef6391ff38316ff9b03c1a6fd077342567598019ddd12b9bd923dacc556333 + languageName: node + linkType: hard + +"micromark-util-resolve-all@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-resolve-all@npm:2.0.0" + dependencies: + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/3b912e88453dcefe728a9080c8934a75ac4732056d6576ceecbcaf97f42c5d6fa2df66db8abdc8427eb167c5ffddefe26713728cfe500bc0e314ed260d6e2746 + languageName: node + linkType: hard + +"micromark-util-sanitize-uri@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-sanitize-uri@npm:2.0.0" + dependencies: + micromark-util-character: "npm:^2.0.0" + micromark-util-encode: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + checksum: 10c0/74763ca1c927dd520d3ab8fd9856a19740acf76fc091f0a1f5d4e99c8cd5f1b81c5a0be3efb564941a071fb6d85fd951103f2760eb6cff77b5ab3abe08341309 + languageName: node + linkType: hard + +"micromark-util-subtokenize@npm:^2.0.0": + version: 2.0.1 + resolution: "micromark-util-subtokenize@npm:2.0.1" + dependencies: + devlop: "npm:^1.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/000cefde827db129f4ed92b8fbdeb4866c5f9c93068c0115485564b0426abcb9058080aa257df9035e12ca7fa92259d66623ea750b9eb3bcdd8325d3fb6fc237 + languageName: node + linkType: hard + +"micromark-util-symbol@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-symbol@npm:2.0.0" + checksum: 10c0/4e76186c185ce4cefb9cea8584213d9ffacd77099d1da30c0beb09fa21f46f66f6de4c84c781d7e34ff763fe3a06b530e132fa9004882afab9e825238d0aa8b3 + languageName: node + linkType: hard + +"micromark-util-types@npm:^2.0.0": + version: 2.0.0 + resolution: "micromark-util-types@npm:2.0.0" + checksum: 10c0/d74e913b9b61268e0d6939f4209e3abe9dada640d1ee782419b04fd153711112cfaaa3c4d5f37225c9aee1e23c3bb91a1f5223e1e33ba92d33e83956a53e61de + languageName: node + linkType: hard + +"micromark@npm:^4.0.0": + version: 4.0.0 + resolution: "micromark@npm:4.0.0" + dependencies: + "@types/debug": "npm:^4.0.0" + debug: "npm:^4.0.0" + decode-named-character-reference: "npm:^1.0.0" + devlop: "npm:^1.0.0" + micromark-core-commonmark: "npm:^2.0.0" + micromark-factory-space: "npm:^2.0.0" + micromark-util-character: "npm:^2.0.0" + micromark-util-chunked: "npm:^2.0.0" + micromark-util-combine-extensions: "npm:^2.0.0" + micromark-util-decode-numeric-character-reference: "npm:^2.0.0" + micromark-util-encode: "npm:^2.0.0" + micromark-util-normalize-identifier: "npm:^2.0.0" + micromark-util-resolve-all: "npm:^2.0.0" + micromark-util-sanitize-uri: "npm:^2.0.0" + micromark-util-subtokenize: "npm:^2.0.0" + micromark-util-symbol: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + checksum: 10c0/7e91c8d19ff27bc52964100853f1b3b32bb5b2ece57470a34ba1b2f09f4e2a183d90106c4ae585c9f2046969ee088576fed79b2f7061cba60d16652ccc2c64fd + languageName: node + linkType: hard + "micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.8, micromatch@npm:~4.0.8": version: 4.0.8 resolution: "micromatch@npm:4.0.8" @@ -12942,7 +12944,7 @@ __metadata: languageName: node linkType: hard -"mime-types@npm:^2.1.12, mime-types@npm:~2.1.17, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": +"mime-types@npm:^2.1.12, mime-types@npm:~2.1.24, mime-types@npm:~2.1.34": version: 2.1.35 resolution: "mime-types@npm:2.1.35" dependencies: @@ -12951,15 +12953,6 @@ __metadata: languageName: node linkType: hard -"mime@npm:1.4.1": - version: 1.4.1 - resolution: "mime@npm:1.4.1" - bin: - mime: cli.js - checksum: 10c0/ba9db9f7eb3eaae61c072cf06d744db99c091b5c9fa49f68e44ada7c6cccc89568c7a830f9ae0a11f37c88ca3851cb59a138e4703895e01d55dbff274feb74be - languageName: node - linkType: hard - "mime@npm:1.6.0": version: 1.6.0 resolution: "mime@npm:1.6.0" @@ -13015,7 +13008,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -13143,13 +13136,6 @@ __metadata: languageName: node linkType: hard -"mitt@npm:^1.1.3": - version: 1.2.0 - resolution: "mitt@npm:1.2.0" - checksum: 10c0/81a0f22b7ac1a0ab5f17489e811641ad589b5e9d2a46a25adac19c8c0ba9c3b50bef7b287582357de25eaa0a47e5d4ced63ea8b8641ba6ca1d1f39d3ec47bb11 - languageName: node - linkType: hard - "mkdirp@npm:0.3.0": version: 0.3.0 resolution: "mkdirp@npm:0.3.0" @@ -13598,7 +13584,7 @@ __metadata: languageName: node linkType: hard -"object-assign@npm:^4, object-assign@npm:^4.0.1, object-assign@npm:^4.1.1": +"object-assign@npm:^4.0.1, object-assign@npm:^4.1.1": version: 4.1.1 resolution: "object-assign@npm:4.1.1" checksum: 10c0/1f4df9945120325d041ccf7b86f31e8bcc14e73d29171e37a7903050e96b81323784ec59f93f102ec635bcf6fa8034ba3ea0a8c7e69fa202b87ae3b6cec5a414 @@ -13707,15 +13693,6 @@ __metadata: languageName: node linkType: hard -"on-finished@npm:~2.3.0": - version: 2.3.0 - resolution: "on-finished@npm:2.3.0" - dependencies: - ee-first: "npm:1.1.1" - checksum: 10c0/c904f9e518b11941eb60279a3cbfaf1289bd0001f600a950255b1dede9fe3df8cd74f38483550b3bb9485165166acb5db500c3b4c4337aec2815c88c96fcc2ea - languageName: node - linkType: hard - "once@npm:^1.3.0, once@npm:^1.4.0": version: 1.4.0 resolution: "once@npm:1.4.0" @@ -13775,15 +13752,6 @@ __metadata: languageName: node linkType: hard -"opn@npm:5.3.0": - version: 5.3.0 - resolution: "opn@npm:5.3.0" - dependencies: - is-wsl: "npm:^1.1.0" - checksum: 10c0/ac1c7a4176296c1f1190ab226a629535b9a9ef748b6c821fd6cc4353ef11d259dabdbafd610b2a46d53cfe8abd500396305eaffc1d4dffbc70dc931cd517a5b1 - languageName: node - linkType: hard - "optionator@npm:^0.9.3": version: 0.9.4 resolution: "optionator@npm:0.9.4" @@ -14111,7 +14079,7 @@ __metadata: languageName: node linkType: hard -"parseurl@npm:~1.3.2, parseurl@npm:~1.3.3": +"parseurl@npm:~1.3.3": version: 1.3.3 resolution: "parseurl@npm:1.3.3" checksum: 10c0/90dd4760d6f6174adb9f20cf0965ae12e23879b5f5464f38e92fce8073354341e4b3b76fa3d878351efe7d01e617121955284cfd002ab087fba1a0726ec0b4f5 @@ -14386,16 +14354,6 @@ __metadata: languageName: node linkType: hard -"portscanner@npm:2.2.0": - version: 2.2.0 - resolution: "portscanner@npm:2.2.0" - dependencies: - async: "npm:^2.6.0" - is-number-like: "npm:^1.0.3" - checksum: 10c0/d61af2143af13b27be0be767f40a34801e203d811c81c637828e6b07f78e667f175df276832638eeefb4ecf88aad78777061cea101fdae15f2f1c4939a6bc14a - languageName: node - linkType: hard - "possible-typed-array-names@npm:^1.0.0": version: 1.0.0 resolution: "possible-typed-array-names@npm:1.0.0" @@ -14547,22 +14505,10 @@ __metadata: colord: "npm:^2.9.3" postcss-value-parser: "npm:^4.2.0" peerDependencies: - postcss: ^8.4.31 - checksum: 10c0/76d09fb7e0218698e622a7c2cfc9087985f48f3a7e44f2655d5eefac4ae9c04198ae9d408dc7ace15d3aa5bde80e7031e462b0cb9b5bd50cfa76bbb1503c755b - languageName: node - linkType: hard - -"postcss-combininator@workspace:^, postcss-combininator@workspace:plugins/postcss-combininator": - version: 0.0.0-use.local - resolution: "postcss-combininator@workspace:plugins/postcss-combininator" - dependencies: - ava: "npm:^6.1.3" - c8: "npm:^9.1.0" - postcss: "npm:^8.4.45" - peerDependencies: - postcss: ">=8" - languageName: unknown - linkType: soft + postcss: ^8.4.31 + checksum: 10c0/76d09fb7e0218698e622a7c2cfc9087985f48f3a7e44f2655d5eefac4ae9c04198ae9d408dc7ace15d3aa5bde80e7031e462b0cb9b5bd50cfa76bbb1503c755b + languageName: node + linkType: hard "postcss-convert-values@npm:^7.0.2": version: 7.0.2 @@ -15350,19 +15296,6 @@ __metadata: languageName: node linkType: hard -"postcss-rgb-mapping@workspace:^, postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping": - version: 0.0.0-use.local - resolution: "postcss-rgb-mapping@workspace:plugins/postcss-rgb-mapping" - dependencies: - ava: "npm:^6.1.3" - c8: "npm:^9.1.0" - postcss: "npm:^8.4.45" - postcss-value-parser: "npm:^4.2.0" - peerDependencies: - postcss: ">=8" - languageName: unknown - linkType: soft - "postcss-safe-parser@npm:^7.0.0": version: 7.0.0 resolution: "postcss-safe-parser@npm:7.0.0" @@ -15383,7 +15316,7 @@ __metadata: languageName: node linkType: hard -"postcss-selector-parser@npm:^6.0.13, postcss-selector-parser@npm:^6.0.16, postcss-selector-parser@npm:^6.0.4": +"postcss-selector-parser@npm:^6.0.13, postcss-selector-parser@npm:^6.0.16, postcss-selector-parser@npm:^6.0.4, postcss-selector-parser@npm:^6.1.1": version: 6.1.1 resolution: "postcss-selector-parser@npm:6.1.1" dependencies: @@ -15431,18 +15364,6 @@ __metadata: languageName: node linkType: hard -"postcss-splitinator@workspace:^, postcss-splitinator@workspace:plugins/postcss-splitinator": - version: 0.0.0-use.local - resolution: "postcss-splitinator@workspace:plugins/postcss-splitinator" - dependencies: - ava: "npm:^6.1.3" - c8: "npm:^9.1.0" - postcss: "npm:^8.4.45" - peerDependencies: - postcss: ">=8.0.0" - languageName: unknown - linkType: soft - "postcss-svgo@npm:^7.0.1": version: 7.0.1 resolution: "postcss-svgo@npm:7.0.1" @@ -15661,7 +15582,7 @@ __metadata: languageName: node linkType: hard -"prismjs@npm:1.29.0, prismjs@npm:^1.27.0, prismjs@npm:^1.29.0": +"prismjs@npm:^1.27.0": version: 1.29.0 resolution: "prismjs@npm:1.29.0" checksum: 10c0/d906c4c4d01b446db549b4f57f72d5d7e6ccaca04ecc670fb85cea4d4b1acc1283e945a9cbc3d81819084a699b382f970e02f9d1378e14af9808d366d9ed7ec6 @@ -15706,15 +15627,6 @@ __metadata: languageName: node linkType: hard -"promise@npm:^7.0.1": - version: 7.3.1 - resolution: "promise@npm:7.3.1" - dependencies: - asap: "npm:~2.0.3" - checksum: 10c0/742e5c0cc646af1f0746963b8776299701ad561ce2c70b49365d62c8db8ea3681b0a1bf0d4e2fe07910bf72f02d39e51e8e73dc8d7503c3501206ac908be107f - languageName: node - linkType: hard - "prop-types@npm:^15.5.10, prop-types@npm:^15.6.1, prop-types@npm:^15.7.2": version: 15.8.1 resolution: "prop-types@npm:15.8.1" @@ -15759,140 +15671,6 @@ __metadata: languageName: node linkType: hard -"pug-attrs@npm:^3.0.0": - version: 3.0.0 - resolution: "pug-attrs@npm:3.0.0" - dependencies: - constantinople: "npm:^4.0.1" - js-stringify: "npm:^1.0.2" - pug-runtime: "npm:^3.0.0" - checksum: 10c0/28178e91c05e8eb9130861c78dccc61eae3e1610931346065bd32ad0b08b023a8dcf2470c3b2409ba45a5098d6d7ed15687717e91cf77770c6381a18626e5194 - languageName: node - linkType: hard - -"pug-code-gen@npm:^3.0.3": - version: 3.0.3 - resolution: "pug-code-gen@npm:3.0.3" - dependencies: - constantinople: "npm:^4.0.1" - doctypes: "npm:^1.1.0" - js-stringify: "npm:^1.0.2" - pug-attrs: "npm:^3.0.0" - pug-error: "npm:^2.1.0" - pug-runtime: "npm:^3.0.1" - void-elements: "npm:^3.1.0" - with: "npm:^7.0.0" - checksum: 10c0/517a93930dbc80bc7fa5f60ff324229a07cc5ab70ed9d344ce105e2fe24de68db5121c8457a9ba99cdc8d48dd18779dd34956ebfcab009b3c1c6843a3cade109 - languageName: node - linkType: hard - -"pug-error@npm:^2.0.0, pug-error@npm:^2.1.0": - version: 2.1.0 - resolution: "pug-error@npm:2.1.0" - checksum: 10c0/bbce339b17fab9890de84975c0cd8723a847bf65f35653d3ebcf77018e8ad91529d56e978ab80f4c64c9f4f07ef9e56e7a9fda3be44249c344a93ba11fccff79 - languageName: node - linkType: hard - -"pug-filters@npm:^4.0.0": - version: 4.0.0 - resolution: "pug-filters@npm:4.0.0" - dependencies: - constantinople: "npm:^4.0.1" - jstransformer: "npm:1.0.0" - pug-error: "npm:^2.0.0" - pug-walk: "npm:^2.0.0" - resolve: "npm:^1.15.1" - checksum: 10c0/7ddd62f5eb97f5242858bd56d93ffed387fef3742210a53770c980020cf91a34384b84b7fc8f0de185b43dfa77de2c4d0f63f575a4c5b3887fdef4e64b8d559d - languageName: node - linkType: hard - -"pug-lexer@npm:^5.0.1": - version: 5.0.1 - resolution: "pug-lexer@npm:5.0.1" - dependencies: - character-parser: "npm:^2.2.0" - is-expression: "npm:^4.0.0" - pug-error: "npm:^2.0.0" - checksum: 10c0/24195a5681953ab91c6a3ccd80a643f760dddb65e2f266bf8ccba145018ba0271536efe1572de2c2224163eb00873c2f1df0ad7ea7aa8bcbf79a66b586ca8435 - languageName: node - linkType: hard - -"pug-linker@npm:^4.0.0": - version: 4.0.0 - resolution: "pug-linker@npm:4.0.0" - dependencies: - pug-error: "npm:^2.0.0" - pug-walk: "npm:^2.0.0" - checksum: 10c0/db754ff34cdd4ba9d9e2d9535cce2a74178f2172e848a5fa6381907cb5bfaa0d39d4cc3eb29893d35fc1c417e83ae3cfd434640ba7d3b635c63199104fae976c - languageName: node - linkType: hard - -"pug-load@npm:^3.0.0": - version: 3.0.0 - resolution: "pug-load@npm:3.0.0" - dependencies: - object-assign: "npm:^4.1.1" - pug-walk: "npm:^2.0.0" - checksum: 10c0/2a7659dfaf9872dd25d851f85e4c27fa447d907b1db3540030cd844614159ff181e067d8f2bedf90eb6b5b1ff03747253859ecbbb822e40f4834b15591d4e108 - languageName: node - linkType: hard - -"pug-parser@npm:^6.0.0": - version: 6.0.0 - resolution: "pug-parser@npm:6.0.0" - dependencies: - pug-error: "npm:^2.0.0" - token-stream: "npm:1.0.0" - checksum: 10c0/faa6cec43afdeb2705eb8c68dfdb2e65836238df8043ae55295ffb72450b8c7a990ea1be60adbde19f58988b9e1d18a84ea42453e2c4f104d0031f78fda737b2 - languageName: node - linkType: hard - -"pug-runtime@npm:^3.0.0, pug-runtime@npm:^3.0.1": - version: 3.0.1 - resolution: "pug-runtime@npm:3.0.1" - checksum: 10c0/0db8166d2e17695a6941d1de81dcb21c8a52921299b1e03bf6a0a3d2b0036b51cf98101b3937b731c745e8d3e0268cb0b728c02f61a80a25fcfaa15c594fb1be - languageName: node - linkType: hard - -"pug-strip-comments@npm:^2.0.0": - version: 2.0.0 - resolution: "pug-strip-comments@npm:2.0.0" - dependencies: - pug-error: "npm:^2.0.0" - checksum: 10c0/ca498adedaeba51dd836b20129bbd161e2d5a397a2baaa553b1e74e888caa2258dcd7326396fc6f8fed8c7b7f906cfebc4c386ccbee8888a27b2ca0d4d86d206 - languageName: node - linkType: hard - -"pug-walk@npm:^2.0.0": - version: 2.0.0 - resolution: "pug-walk@npm:2.0.0" - checksum: 10c0/005d63177bcf057f5a618b182f6d4600afb039200b07a381a0d89288a2b3126e763a0a6c40b758eab0731c8e63cad1bbcb46d96803b9ae9cfc879f6ef5a0f8f4 - languageName: node - linkType: hard - -"pug@npm:^3.0.2": - version: 3.0.3 - resolution: "pug@npm:3.0.3" - dependencies: - pug-code-gen: "npm:^3.0.3" - pug-filters: "npm:^4.0.0" - pug-lexer: "npm:^5.0.1" - pug-linker: "npm:^4.0.0" - pug-load: "npm:^3.0.0" - pug-parser: "npm:^6.0.0" - pug-runtime: "npm:^3.0.1" - pug-strip-comments: "npm:^2.0.0" - checksum: 10c0/bda53d3a6deea1d348cd5ab17427c77f3d74165510ad16f4fd182cc63618ad09388ecda317d17122ee890c8a68f9a54b96221fce7f44a332e463fdbb10a9d1e2 - languageName: node - linkType: hard - -"punycode.js@npm:^2.3.1": - version: 2.3.1 - resolution: "punycode.js@npm:2.3.1" - checksum: 10c0/1d12c1c0e06127fa5db56bd7fdf698daf9a78104456a6b67326877afc21feaa821257b171539caedd2f0524027fa38e67b13dd094159c8d70b6d26d2bea4dfdb - languageName: node - linkType: hard - "punycode@npm:^2.1.0": version: 2.3.1 resolution: "punycode@npm:2.3.1" @@ -15955,14 +15733,14 @@ __metadata: languageName: node linkType: hard -"range-parser@npm:~1.2.0, range-parser@npm:~1.2.1": +"range-parser@npm:~1.2.1": version: 1.2.1 resolution: "range-parser@npm:1.2.1" checksum: 10c0/96c032ac2475c8027b7a4e9fe22dc0dfe0f6d90b85e496e0f016fbdb99d6d066de0112e680805075bd989905e2123b3b3d002765149294dce0c1f7f01fcc2ea0 languageName: node linkType: hard -"raw-body@npm:2.5.2, raw-body@npm:^2.3.2": +"raw-body@npm:2.5.2": version: 2.5.2 resolution: "raw-body@npm:2.5.2" dependencies: @@ -16269,6 +16047,43 @@ __metadata: languageName: node linkType: hard +"remark-gfm@npm:^4.0.0": + version: 4.0.0 + resolution: "remark-gfm@npm:4.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-gfm: "npm:^3.0.0" + micromark-extension-gfm: "npm:^3.0.0" + remark-parse: "npm:^11.0.0" + remark-stringify: "npm:^11.0.0" + unified: "npm:^11.0.0" + checksum: 10c0/db0aa85ab718d475c2596e27c95be9255d3b0fc730a4eda9af076b919f7dd812f7be3ac020611a8dbe5253fd29671d7b12750b56e529fdc32dfebad6dbf77403 + languageName: node + linkType: hard + +"remark-parse@npm:^11.0.0": + version: 11.0.0 + resolution: "remark-parse@npm:11.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-from-markdown: "npm:^2.0.0" + micromark-util-types: "npm:^2.0.0" + unified: "npm:^11.0.0" + checksum: 10c0/6eed15ddb8680eca93e04fcb2d1b8db65a743dcc0023f5007265dda558b09db595a087f622062ccad2630953cd5cddc1055ce491d25a81f3317c858348a8dd38 + languageName: node + linkType: hard + +"remark-stringify@npm:^11.0.0": + version: 11.0.0 + resolution: "remark-stringify@npm:11.0.0" + dependencies: + "@types/mdast": "npm:^4.0.0" + mdast-util-to-markdown: "npm:^2.0.0" + unified: "npm:^11.0.0" + checksum: 10c0/0cdb37ce1217578f6f847c7ec9f50cbab35df5b9e3903d543e74b405404e67c07defcb23cd260a567b41b769400f6de03c2c3d9cd6ae7a6707d5c8d89ead489f + languageName: node + linkType: hard + "require-directory@npm:^2.1.1": version: 2.1.1 resolution: "require-directory@npm:2.1.1" @@ -16292,13 +16107,6 @@ __metadata: languageName: node linkType: hard -"requires-port@npm:^1.0.0": - version: 1.0.0 - resolution: "requires-port@npm:1.0.0" - checksum: 10c0/b2bfdd09db16c082c4326e573a82c0771daaf7b53b9ce8ad60ea46aa6e30aaf475fe9b164800b89f93b748d2c234d8abff945d2551ba47bf5698e04cd7713267 - languageName: node - linkType: hard - "resolve-cwd@npm:^3.0.0": version: 3.0.0 resolution: "resolve-cwd@npm:3.0.0" @@ -16332,7 +16140,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.7, resolve@npm:^1.15.1, resolve@npm:^1.20.0, resolve@npm:^1.22.4": +"resolve@npm:^1.1.7, resolve@npm:^1.20.0, resolve@npm:^1.22.4": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -16345,7 +16153,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.15.1#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -16358,16 +16166,6 @@ __metadata: languageName: node linkType: hard -"resp-modifier@npm:6.0.2": - version: 6.0.2 - resolution: "resp-modifier@npm:6.0.2" - dependencies: - debug: "npm:^2.2.0" - minimatch: "npm:^3.0.2" - checksum: 10c0/670703c372c83cc5821698ef92d7e4399d8c8e20c5d693eb28a4acbe82a5020c4cbedd166fb5946e83f605639803c780793e467bfa6f649148510983cfb17c99 - languageName: node - linkType: hard - "restore-cursor@npm:^3.1.0": version: 3.1.0 resolution: "restore-cursor@npm:3.1.0" @@ -16556,13 +16354,6 @@ __metadata: languageName: node linkType: hard -"rx@npm:4.1.0": - version: 4.1.0 - resolution: "rx@npm:4.1.0" - checksum: 10c0/c2a2cf8cb350f38b5396f8ee6af1bc359c5ed5a409d710111a2da215bfb3fe77f75b5f0a0dd6fe6b57c5bdadf3b128ad1f8ad99de27da2c13ae9ba908a642cee - languageName: node - linkType: hard - "rxjs@npm:^7.2.0, rxjs@npm:^7.5.6, rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" @@ -16671,27 +16462,6 @@ __metadata: languageName: node linkType: hard -"send@npm:0.16.2": - version: 0.16.2 - resolution: "send@npm:0.16.2" - dependencies: - debug: "npm:2.6.9" - depd: "npm:~1.1.2" - destroy: "npm:~1.0.4" - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - etag: "npm:~1.8.1" - fresh: "npm:0.5.2" - http-errors: "npm:~1.6.2" - mime: "npm:1.4.1" - ms: "npm:2.0.0" - on-finished: "npm:~2.3.0" - range-parser: "npm:~1.2.0" - statuses: "npm:~1.4.0" - checksum: 10c0/64681de4068c53aa7792d977d8c5b548966ea4aec018850ebf8516cc8bd5547c6e7189ec599907e6a41216058347f0e4fc72d3b37a5f38bf07d5cda168b2b84d - languageName: node - linkType: hard - "send@npm:0.18.0": version: 0.18.0 resolution: "send@npm:0.18.0" @@ -16754,33 +16524,6 @@ __metadata: languageName: node linkType: hard -"serve-index@npm:1.9.1": - version: 1.9.1 - resolution: "serve-index@npm:1.9.1" - dependencies: - accepts: "npm:~1.3.4" - batch: "npm:0.6.1" - debug: "npm:2.6.9" - escape-html: "npm:~1.0.3" - http-errors: "npm:~1.6.2" - mime-types: "npm:~2.1.17" - parseurl: "npm:~1.3.2" - checksum: 10c0/a666471a24196f74371edf2c3c7bcdd82adbac52f600804508754b5296c3567588bf694258b19e0cb23a567acfa20d9721bfdaed3286007b81f9741ada8a3a9c - languageName: node - linkType: hard - -"serve-static@npm:1.13.2": - version: 1.13.2 - resolution: "serve-static@npm:1.13.2" - dependencies: - encodeurl: "npm:~1.0.2" - escape-html: "npm:~1.0.3" - parseurl: "npm:~1.3.2" - send: "npm:0.16.2" - checksum: 10c0/7d277284091ed3902ae1020149b45559b0af5ccc64dcb66331ae771756afb10da56275b363ec2e8fa40607eaa2a7e90c84a40b28ff18083a0f5e78b215aaa634 - languageName: node - linkType: hard - "serve-static@npm:1.16.0": version: 1.16.0 resolution: "serve-static@npm:1.16.0" @@ -16793,13 +16536,6 @@ __metadata: languageName: node linkType: hard -"server-destroy@npm:1.0.1": - version: 1.0.1 - resolution: "server-destroy@npm:1.0.1" - checksum: 10c0/ab771f12b24cde1bc622cce0c14a1365f3ab0685937c641c762916fb43aa7a03d6c577cc4375ea5361d6bc1bb20ab689ec5723086e5798c6781edb61287e24b8 - languageName: node - linkType: hard - "set-blocking@npm:^2.0.0": version: 2.0.0 resolution: "set-blocking@npm:2.0.0" @@ -16833,13 +16569,6 @@ __metadata: languageName: node linkType: hard -"setprototypeof@npm:1.1.0": - version: 1.1.0 - resolution: "setprototypeof@npm:1.1.0" - checksum: 10c0/a77b20876689c6a89c3b42f0c3596a9cae02f90fc902570cbd97198e9e8240382086c9303ad043e88cee10f61eae19f1004e51d885395a1e9bf49f9ebed12872 - languageName: node - linkType: hard - "setprototypeof@npm:1.2.0": version: 1.2.0 resolution: "setprototypeof@npm:1.2.0" @@ -16974,53 +16703,6 @@ __metadata: languageName: node linkType: hard -"socket.io-adapter@npm:~2.5.2": - version: 2.5.5 - resolution: "socket.io-adapter@npm:2.5.5" - dependencies: - debug: "npm:~4.3.4" - ws: "npm:~8.17.1" - checksum: 10c0/04a5a2a9c4399d1b6597c2afc4492ab1e73430cc124ab02b09e948eabf341180b3866e2b61b5084cb899beb68a4db7c328c29bda5efb9207671b5cb0bc6de44e - languageName: node - linkType: hard - -"socket.io-client@npm:^4.4.1": - version: 4.7.5 - resolution: "socket.io-client@npm:4.7.5" - dependencies: - "@socket.io/component-emitter": "npm:~3.1.0" - debug: "npm:~4.3.2" - engine.io-client: "npm:~6.5.2" - socket.io-parser: "npm:~4.2.4" - checksum: 10c0/d5dc90ee63755fbbb0a1cb3faf575c9ce20d98e809a43a4c9c3ce03a56b8810335ae38e678ceb0650ac434d55e72ea6449c2e5d6db8bc7258f7c529148fac99d - languageName: node - linkType: hard - -"socket.io-parser@npm:~4.2.4": - version: 4.2.4 - resolution: "socket.io-parser@npm:4.2.4" - dependencies: - "@socket.io/component-emitter": "npm:~3.1.0" - debug: "npm:~4.3.1" - checksum: 10c0/9383b30358fde4a801ea4ec5e6860915c0389a091321f1c1f41506618b5cf7cd685d0a31c587467a0c4ee99ef98c2b99fb87911f9dfb329716c43b587f29ca48 - languageName: node - linkType: hard - -"socket.io@npm:^4.4.1": - version: 4.7.5 - resolution: "socket.io@npm:4.7.5" - dependencies: - accepts: "npm:~1.3.4" - base64id: "npm:~2.0.0" - cors: "npm:~2.8.5" - debug: "npm:~4.3.2" - engine.io: "npm:~6.5.2" - socket.io-adapter: "npm:~2.5.2" - socket.io-parser: "npm:~4.2.4" - checksum: 10c0/221a2cd25f6077d6672cb8b19921336e1acf06788d4bade74953dc96dbfd8b788a5f721b051341a34ee81ef8e1b2028d39ad5257516776400a3f8f3f01255c5e - languageName: node - linkType: hard - "socks-proxy-agent@npm:^8.0.3": version: 8.0.4 resolution: "socks-proxy-agent@npm:8.0.4" @@ -17110,10 +16792,10 @@ __metadata: "@commitlint/cli": "npm:^19.5.0" "@commitlint/config-conventional": "npm:^19.5.0" "@nx/devkit": "npm:^19.8.0" - "@spectrum-css/cyclebutton": "npm:^3.1.3" - "@spectrum-css/quickaction": "npm:^3.1.1" - "@spectrum-css/searchwithin": "npm:^5.1.3" - "@spectrum-css/splitbutton": "npm:^8.1.2" + "@spectrum-css/tokens-legacy": "npm:@spectrum-css/tokens@^14.3.1" + "@spectrum-tools/postcss-add-theming-layer": "workspace:^" + "@spectrum-tools/postcss-property-rollup": "workspace:^" + "@spectrum-tools/postcss-rgb-mapping": "workspace:^" at-rule-packer: "npm:^0.4.2" autoprefixer: "npm:^10.4.19" colors: "npm:^1.4.0" @@ -17138,7 +16820,6 @@ __metadata: open: "npm:^10.1.0" pajv: "npm:^1.2.0" postcss: "npm:^8.4.45" - postcss-combininator: "workspace:^" postcss-extend: "npm:^1.0.5" postcss-hover-media-feature: "npm:^1.0.2" postcss-import: "npm:^16.1.0" @@ -17147,10 +16828,8 @@ __metadata: postcss-preset-env: "npm:^9.5.13" postcss-pseudo-classes: "npm:^0.4.0" postcss-reporter: "npm:^7.1.0" - postcss-rgb-mapping: "workspace:^" postcss-selector-replace: "npm:^1.0.2" postcss-sorting: "npm:^8.0.2" - postcss-splitinator: "workspace:^" postcss-values-parser: "npm:^6.0.2" prettier: "npm:^3.2.5" rimraf: "npm:^6.0.1" @@ -17236,27 +16915,6 @@ __metadata: languageName: node linkType: hard -"statuses@npm:>= 1.4.0 < 2": - version: 1.5.0 - resolution: "statuses@npm:1.5.0" - checksum: 10c0/e433900956357b3efd79b1c547da4d291799ac836960c016d10a98f6a810b1b5c0dcc13b5a7aa609a58239b5190e1ea176ad9221c2157d2fd1c747393e6b2940 - languageName: node - linkType: hard - -"statuses@npm:~1.3.1": - version: 1.3.1 - resolution: "statuses@npm:1.3.1" - checksum: 10c0/cdeccf298416555abe1a5ff632a1bf9d27a3546e013b5a456987a6a0c4fb4f277d138f14940a537ca05039be7fbc0734689331e697ef8d063928014a58ce1bdd - languageName: node - linkType: hard - -"statuses@npm:~1.4.0": - version: 1.4.0 - resolution: "statuses@npm:1.4.0" - checksum: 10c0/2877ece71af9f8dcefe6cdf0cc0d96d3cab20cef33594991396346e683923d36add1b08312450e9f8dfb9f1e6718d9e57482157bb190f8ea4fc5c7bc441f3f25 - languageName: node - linkType: hard - "stdin-discarder@npm:^0.2.1": version: 0.2.2 resolution: "stdin-discarder@npm:0.2.2" @@ -17286,18 +16944,6 @@ __metadata: languageName: node linkType: hard -"stream-throttle@npm:^0.1.3": - version: 0.1.3 - resolution: "stream-throttle@npm:0.1.3" - dependencies: - commander: "npm:^2.2.0" - limiter: "npm:^1.0.5" - bin: - throttleproxy: ./bin/throttleproxy.js - checksum: 10c0/34c418038b66f651b59250eae30afe2939b65a924d7493d43e249fef278069988706b61a3babc1da8af74061fef995aa88b2925949b46ceb7f737a71b2b9dce0 - languageName: node - linkType: hard - "streamx@npm:^2.15.0": version: 2.18.0 resolution: "streamx@npm:2.18.0" @@ -17906,17 +17552,6 @@ __metadata: languageName: node linkType: hard -"test-exclude@npm:^6.0.0": - version: 6.0.0 - resolution: "test-exclude@npm:6.0.0" - dependencies: - "@istanbuljs/schema": "npm:^0.1.2" - glob: "npm:^7.1.4" - minimatch: "npm:^3.0.4" - checksum: 10c0/019d33d81adff3f9f1bfcff18125fb2d3c65564f437d9be539270ee74b994986abb8260c7c2ce90e8f30162178b09dbbce33c6389273afac4f36069c48521f57 - languageName: node - linkType: hard - "test-exclude@npm:^7.0.1": version: 7.0.1 resolution: "test-exclude@npm:7.0.1" @@ -18062,13 +17697,6 @@ __metadata: languageName: node linkType: hard -"token-stream@npm:1.0.0": - version: 1.0.0 - resolution: "token-stream@npm:1.0.0" - checksum: 10c0/c1924a89686fc035d579cbe856da12306571d5fe7408eeeebe80df7c25c5cc644b8ae102d5cbc0f085d0e105f391d1a48dc0e568520434c5b444ea6c7de2b822 - languageName: node - linkType: hard - "toml-j0.4@npm:^1.0.10": version: 1.1.1 resolution: "toml-j0.4@npm:1.1.1" @@ -18121,6 +17749,13 @@ __metadata: languageName: node linkType: hard +"trough@npm:^2.0.0": + version: 2.2.0 + resolution: "trough@npm:2.2.0" + checksum: 10c0/58b671fc970e7867a48514168894396dd94e6d9d6456aca427cc299c004fe67f35ed7172a36449086b2edde10e78a71a284ec0076809add6834fb8f857ccb9b0 + languageName: node + linkType: hard + "ts-dedent@npm:^2.0.0, ts-dedent@npm:^2.2.0": version: 2.2.0 resolution: "ts-dedent@npm:2.2.0" @@ -18380,20 +18015,6 @@ __metadata: languageName: node linkType: hard -"ua-parser-js@npm:^1.0.33": - version: 1.0.38 - resolution: "ua-parser-js@npm:1.0.38" - checksum: 10c0/b1dd11b87e1784c79f7129e9aec679753fccf8a9b22f5202b79b19492635b5b46b779607a3cfae0270999a0d48da223bf94015642d2abee69d83c9069ab37bd0 - languageName: node - linkType: hard - -"uc.micro@npm:^2.0.0, uc.micro@npm:^2.1.0": - version: 2.1.0 - resolution: "uc.micro@npm:2.1.0" - checksum: 10c0/8862eddb412dda76f15db8ad1c640ccc2f47cdf8252a4a30be908d535602c8d33f9855dfcccb8b8837855c1ce1eaa563f7fa7ebe3c98fd0794351aab9b9c55fa - languageName: node - linkType: hard - "uglify-js@npm:^3.1.4": version: 3.19.0 resolution: "uglify-js@npm:3.19.0" @@ -18445,6 +18066,21 @@ __metadata: languageName: node linkType: hard +"unified@npm:^11.0.0": + version: 11.0.5 + resolution: "unified@npm:11.0.5" + dependencies: + "@types/unist": "npm:^3.0.0" + bail: "npm:^2.0.0" + devlop: "npm:^1.0.0" + extend: "npm:^3.0.0" + is-plain-obj: "npm:^4.0.0" + trough: "npm:^2.0.0" + vfile: "npm:^6.0.0" + checksum: 10c0/53c8e685f56d11d9d458a43e0e74328a4d6386af51c8ac37a3dcabec74ce5026da21250590d4aff6733ccd7dc203116aae2b0769abc18cdf9639a54ae528dfc9 + languageName: node + linkType: hard + "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0" @@ -18472,6 +18108,15 @@ __metadata: languageName: node linkType: hard +"unist-util-stringify-position@npm:^4.0.0": + version: 4.0.0 + resolution: "unist-util-stringify-position@npm:4.0.0" + dependencies: + "@types/unist": "npm:^3.0.0" + checksum: 10c0/dfe1dbe79ba31f589108cb35e523f14029b6675d741a79dea7e5f3d098785045d556d5650ec6a8338af11e9e78d2a30df12b1ee86529cded1098da3f17ee999e + languageName: node + linkType: hard + "unist-util-visit-parents@npm:^6.0.0": version: 6.0.1 resolution: "unist-util-visit-parents@npm:6.0.1" @@ -18712,13 +18357,33 @@ __metadata: languageName: node linkType: hard -"vary@npm:^1, vary@npm:~1.1.2": +"vary@npm:~1.1.2": version: 1.1.2 resolution: "vary@npm:1.1.2" checksum: 10c0/f15d588d79f3675135ba783c91a4083dcd290a2a5be9fcb6514220a1634e23df116847b1cc51f66bfb0644cf9353b2abb7815ae499bab06e46dd33c1a6bf1f4f languageName: node linkType: hard +"vfile-message@npm:^4.0.0": + version: 4.0.2 + resolution: "vfile-message@npm:4.0.2" + dependencies: + "@types/unist": "npm:^3.0.0" + unist-util-stringify-position: "npm:^4.0.0" + checksum: 10c0/07671d239a075f888b78f318bc1d54de02799db4e9dce322474e67c35d75ac4a5ac0aaf37b18801d91c9f8152974ea39678aa72d7198758b07f3ba04fb7d7514 + languageName: node + linkType: hard + +"vfile@npm:^6.0.0": + version: 6.0.3 + resolution: "vfile@npm:6.0.3" + dependencies: + "@types/unist": "npm:^3.0.0" + vfile-message: "npm:^4.0.0" + checksum: 10c0/e5d9eb4810623f23758cfc2205323e33552fb5972e5c2e6587babe08fe4d24859866277404fb9e2a20afb71013860d96ec806cb257536ae463c87d70022ab9ef + languageName: node + linkType: hard + "vite@npm:^5.4.6": version: 5.4.6 resolution: "vite@npm:5.4.6" @@ -18771,13 +18436,6 @@ __metadata: languageName: node linkType: hard -"void-elements@npm:^3.1.0": - version: 3.1.0 - resolution: "void-elements@npm:3.1.0" - checksum: 10c0/0b8686f9f9aa44012e9bd5eabf287ae0cde409b9a2854c5a2335cb83920c957668ac5876e3f0d158dd424744ac411a7270e64128556b451ed3bec875ef18534d - languageName: node - linkType: hard - "warning@npm:^4.0.2, warning@npm:^4.0.3": version: 4.0.3 resolution: "warning@npm:4.0.3" @@ -18914,18 +18572,6 @@ __metadata: languageName: node linkType: hard -"with@npm:^7.0.0": - version: 7.0.2 - resolution: "with@npm:7.0.2" - dependencies: - "@babel/parser": "npm:^7.9.6" - "@babel/types": "npm:^7.9.6" - assert-never: "npm:^1.2.1" - babel-walk: "npm:3.0.0-canary-5" - checksum: 10c0/99289e49afc4b1776afae0ef85e84cfa775e8e07464d2b9853a31b0822347031d1cf77f287d25adc8c3f81e4fa68f4ee31526a9c95d4981ba08a1fe24dee111a - languageName: node - linkType: hard - "wonka@npm:^6.3.2": version: 6.3.4 resolution: "wonka@npm:6.3.4" @@ -19023,21 +18669,6 @@ __metadata: languageName: node linkType: hard -"ws@npm:~8.17.1": - version: 8.17.1 - resolution: "ws@npm:8.17.1" - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ">=5.0.2" - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - checksum: 10c0/f4a49064afae4500be772abdc2211c8518f39e1c959640457dcee15d4488628620625c783902a52af2dd02f68558da2868fd06e6fd0e67ebcd09e6881b1b5bfe - languageName: node - linkType: hard - "xlsjs@npm:^0.7.5": version: 0.7.6 resolution: "xlsjs@npm:0.7.6" @@ -19089,13 +18720,6 @@ __metadata: languageName: node linkType: hard -"xmlhttprequest-ssl@npm:~2.0.0": - version: 2.0.0 - resolution: "xmlhttprequest-ssl@npm:2.0.0" - checksum: 10c0/b64ab371459bd5e3a4827e3c7535759047d285fd310aea6fd028973d547133f3be0d473c1fdae9f14d89bf509267759198ae1fbe89802079a7e217ddd990d734 - languageName: node - linkType: hard - "xtend@npm:^4.0.0, xtend@npm:^4.0.2": version: 4.0.2 resolution: "xtend@npm:4.0.2" @@ -19170,7 +18794,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:^17.0.0, yargs@npm:^17.3.1, yargs@npm:^17.6.2, yargs@npm:^17.7.2": +"yargs@npm:^17.0.0, yargs@npm:^17.6.2, yargs@npm:^17.7.2": version: 17.7.2 resolution: "yargs@npm:17.7.2" dependencies: @@ -19230,3 +18854,10 @@ __metadata: checksum: 10c0/8f14c87d6b1b53c944c25ce7a28616896319d95bc46a9660fe441adc0ed0a81253b02b5abdaeffedbeb23bdd25a0bf1c29d2c12dd919aef6447652dd295e3e69 languageName: node linkType: hard + +"zwitch@npm:^2.0.0": + version: 2.0.4 + resolution: "zwitch@npm:2.0.4" + checksum: 10c0/3c7830cdd3378667e058ffdb4cf2bb78ac5711214e2725900873accb23f3dfe5f9e7e5a06dcdc5f29605da976fc45c26d9a13ca334d6eea2245a15e77b8fc06e + languageName: node + linkType: hard