@fluentui/web-components 2.5.12 → 3.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +348 -1
- package/CHANGELOG.md +196 -100
- package/dist/dts/accordion/accordion.d.ts +7 -0
- package/dist/dts/accordion/accordion.definition.d.ts +11 -0
- package/dist/dts/accordion/accordion.styles.d.ts +1 -3
- package/dist/dts/accordion/accordion.template.d.ts +3 -0
- package/dist/dts/accordion/define.d.ts +1 -0
- package/dist/dts/accordion/index.d.ts +4 -22
- package/dist/dts/accordion-item/accordion-item.d.ts +33 -0
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +11 -0
- package/dist/dts/accordion-item/accordion-item.options.d.ts +27 -0
- package/dist/dts/accordion-item/accordion-item.styles.d.ts +1 -0
- package/dist/dts/accordion-item/accordion-item.template.d.ts +7 -0
- package/dist/dts/accordion-item/index.d.ts +5 -0
- package/dist/dts/avatar/avatar.d.ts +97 -0
- package/dist/dts/avatar/avatar.definition.d.ts +9 -0
- package/dist/dts/avatar/avatar.options.d.ts +142 -0
- package/dist/dts/avatar/avatar.styles.d.ts +4 -0
- package/dist/dts/avatar/avatar.template.d.ts +8 -0
- package/dist/dts/avatar/define.d.ts +1 -0
- package/dist/dts/avatar/index.d.ts +5 -0
- package/dist/dts/badge/badge.d.ts +49 -0
- package/dist/dts/badge/badge.definition.d.ts +11 -0
- package/dist/dts/badge/badge.options.d.ts +73 -0
- package/dist/dts/badge/badge.styles.d.ts +4 -3
- package/dist/dts/badge/badge.template.d.ts +9 -0
- package/dist/dts/badge/define.d.ts +1 -0
- package/dist/dts/badge/index.d.ts +5 -29
- package/dist/dts/counter-badge/counter-badge.d.ts +90 -0
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +11 -0
- package/dist/dts/counter-badge/counter-badge.options.d.ts +69 -0
- package/dist/dts/counter-badge/counter-badge.styles.d.ts +4 -0
- package/dist/dts/counter-badge/counter-badge.template.d.ts +7 -0
- package/dist/dts/counter-badge/define.d.ts +1 -0
- package/dist/dts/counter-badge/index.d.ts +5 -0
- package/dist/dts/divider/define.d.ts +1 -0
- package/dist/dts/divider/divider.d.ts +31 -0
- package/dist/dts/divider/divider.definition.d.ts +9 -0
- package/dist/dts/divider/divider.options.d.ts +40 -0
- package/dist/dts/divider/divider.styles.d.ts +4 -3
- package/dist/dts/divider/divider.template.d.ts +7 -0
- package/dist/dts/divider/index.d.ts +5 -21
- package/dist/dts/fluent-design-system.d.ts +5 -9
- package/dist/dts/image/define.d.ts +1 -0
- package/dist/dts/image/image.d.ts +48 -0
- package/dist/dts/image/image.definition.d.ts +9 -0
- package/dist/dts/image/image.options.d.ts +27 -0
- package/dist/dts/image/image.styles.d.ts +5 -0
- package/dist/dts/image/image.template.d.ts +7 -0
- package/dist/dts/image/index.d.ts +5 -0
- package/dist/dts/index-rollup.d.ts +1 -8
- package/dist/dts/index.d.ts +12 -49
- package/dist/dts/progress-bar/define.d.ts +1 -0
- package/dist/dts/progress-bar/index.d.ts +5 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +30 -0
- package/dist/dts/progress-bar/progress-bar.definition.d.ts +10 -0
- package/dist/dts/progress-bar/progress-bar.options.d.ts +41 -0
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +4 -0
- package/dist/dts/progress-bar/progress-bar.template.d.ts +3 -0
- package/dist/dts/spinner/define.d.ts +1 -0
- package/dist/dts/spinner/index.d.ts +5 -0
- package/dist/dts/spinner/spinner.d.ts +25 -0
- package/dist/dts/spinner/spinner.definition.d.ts +11 -0
- package/dist/dts/spinner/spinner.options.d.ts +32 -0
- package/dist/dts/spinner/spinner.styles.d.ts +1 -0
- package/dist/dts/spinner/spinner.template.d.ts +3 -0
- package/dist/dts/styles/index.d.ts +1 -5
- package/dist/dts/styles/partials/badge.partials.d.ts +28 -0
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/switch/define.d.ts +1 -0
- package/dist/dts/switch/index.d.ts +5 -21
- package/dist/dts/switch/switch.d.ts +13 -0
- package/dist/dts/switch/switch.definition.d.ts +9 -0
- package/dist/dts/switch/switch.options.d.ts +15 -0
- package/dist/dts/switch/switch.styles.d.ts +1 -3
- package/dist/dts/switch/switch.template.d.ts +3 -0
- package/dist/dts/text/define.d.ts +1 -0
- package/dist/dts/text/index.d.ts +5 -0
- package/dist/dts/text/text.d.ts +91 -0
- package/dist/dts/text/text.definition.d.ts +10 -0
- package/dist/dts/text/text.options.d.ts +67 -0
- package/dist/dts/text/text.styles.d.ts +4 -0
- package/dist/dts/text/text.template.d.ts +6 -0
- package/dist/dts/theme/design-tokens.d.ts +384 -0
- package/dist/dts/theme/index.d.ts +2 -0
- package/dist/dts/theme/set-theme.d.ts +6 -0
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/accordion/accordion.definition.js +19 -0
- package/dist/esm/accordion/accordion.definition.js.map +1 -0
- package/dist/esm/accordion/accordion.js +8 -0
- package/dist/esm/accordion/accordion.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +9 -11
- package/dist/esm/accordion/accordion.styles.js.map +1 -0
- package/dist/esm/accordion/accordion.template.js +3 -0
- package/dist/esm/accordion/accordion.template.js.map +1 -0
- package/dist/esm/accordion/define.js +4 -0
- package/dist/esm/accordion/define.js.map +1 -0
- package/dist/esm/accordion/index.js +5 -27
- package/dist/esm/accordion/index.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +19 -0
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +29 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.options.js +17 -0
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.js +197 -0
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.template.js +37 -0
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -0
- package/dist/esm/accordion-item/define.js +4 -0
- package/dist/esm/accordion-item/define.js.map +1 -0
- package/dist/esm/accordion-item/index.js +6 -0
- package/dist/esm/accordion-item/index.js.map +1 -0
- package/dist/esm/avatar/avatar.definition.js +17 -0
- package/dist/esm/avatar/avatar.definition.js.map +1 -0
- package/dist/esm/avatar/avatar.js +92 -0
- package/dist/esm/avatar/avatar.js.map +1 -0
- package/dist/esm/avatar/avatar.options.js +87 -0
- package/dist/esm/avatar/avatar.options.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.js +476 -0
- package/dist/esm/avatar/avatar.styles.js.map +1 -0
- package/dist/esm/avatar/avatar.template.js +28 -0
- package/dist/esm/avatar/avatar.template.js.map +1 -0
- package/dist/esm/avatar/define.js +4 -0
- package/dist/esm/avatar/define.js.map +1 -0
- package/dist/esm/avatar/index.js +6 -0
- package/dist/esm/avatar/index.js.map +1 -0
- package/dist/esm/badge/badge.definition.js +19 -0
- package/dist/esm/badge/badge.definition.js.map +1 -0
- package/dist/esm/badge/badge.js +43 -0
- package/dist/esm/badge/badge.js.map +1 -0
- package/dist/esm/badge/badge.options.js +46 -0
- package/dist/esm/badge/badge.options.js.map +1 -0
- package/dist/esm/badge/badge.styles.js +26 -36
- package/dist/esm/badge/badge.styles.js.map +1 -0
- package/dist/esm/badge/badge.template.js +15 -0
- package/dist/esm/badge/badge.template.js.map +1 -0
- package/dist/esm/badge/define.js +4 -0
- package/dist/esm/badge/define.js.map +1 -0
- package/dist/esm/badge/index.js +6 -45
- package/dist/esm/badge/index.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +19 -0
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.js +90 -0
- package/dist/esm/counter-badge/counter-badge.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.options.js +43 -0
- package/dist/esm/counter-badge/counter-badge.options.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.styles.js +31 -0
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.template.js +13 -0
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -0
- package/dist/esm/counter-badge/define.js +4 -0
- package/dist/esm/counter-badge/define.js.map +1 -0
- package/dist/esm/counter-badge/index.js +6 -0
- package/dist/esm/counter-badge/index.js.map +1 -0
- package/dist/esm/divider/define.js +4 -0
- package/dist/esm/divider/define.js.map +1 -0
- package/dist/esm/divider/divider.definition.js +17 -0
- package/dist/esm/divider/divider.definition.js.map +1 -0
- package/dist/esm/divider/divider.js +21 -0
- package/dist/esm/divider/divider.js.map +1 -0
- package/dist/esm/divider/divider.options.js +31 -0
- package/dist/esm/divider/divider.options.js.map +1 -0
- package/dist/esm/divider/divider.styles.js +109 -9
- package/dist/esm/divider/divider.styles.js.map +1 -0
- package/dist/esm/divider/divider.template.js +7 -0
- package/dist/esm/divider/divider.template.js.map +1 -0
- package/dist/esm/divider/index.js +6 -26
- package/dist/esm/divider/index.js.map +1 -0
- package/dist/esm/fluent-design-system.js +6 -11
- package/dist/esm/fluent-design-system.js.map +1 -0
- package/dist/esm/image/define.js +4 -0
- package/dist/esm/image/define.js.map +1 -0
- package/dist/esm/image/image.definition.js +17 -0
- package/dist/esm/image/image.definition.js.map +1 -0
- package/dist/esm/image/image.js +24 -0
- package/dist/esm/image/image.js.map +1 -0
- package/dist/esm/image/image.options.js +21 -0
- package/dist/esm/image/image.options.js.map +1 -0
- package/dist/esm/image/image.styles.js +52 -0
- package/dist/esm/image/image.styles.js.map +1 -0
- package/dist/esm/image/image.template.js +7 -0
- package/dist/esm/image/image.template.js.map +1 -0
- package/dist/esm/image/index.js +6 -0
- package/dist/esm/image/index.js.map +1 -0
- package/dist/esm/index-rollup.js +2 -12
- package/dist/esm/index-rollup.js.map +1 -0
- package/dist/esm/index.js +13 -49
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/progress-bar/define.js +4 -0
- package/dist/esm/progress-bar/define.js.map +1 -0
- package/dist/esm/progress-bar/index.js +6 -0
- package/dist/esm/progress-bar/index.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.definition.js +18 -0
- package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +29 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.options.js +26 -0
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.styles.js +156 -0
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.template.js +6 -0
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -0
- package/dist/esm/spinner/define.js +4 -0
- package/dist/esm/spinner/define.js.map +1 -0
- package/dist/esm/spinner/index.js +6 -0
- package/dist/esm/spinner/index.js.map +1 -0
- package/dist/esm/spinner/spinner.definition.js +19 -0
- package/dist/esm/spinner/spinner.definition.js.map +1 -0
- package/dist/esm/spinner/spinner.js +16 -0
- package/dist/esm/spinner/spinner.js.map +1 -0
- package/dist/esm/spinner/spinner.options.js +22 -0
- package/dist/esm/spinner/spinner.options.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.js +96 -0
- package/dist/esm/spinner/spinner.styles.js.map +1 -0
- package/dist/esm/spinner/spinner.template.js +22 -0
- package/dist/esm/spinner/spinner.template.js.map +1 -0
- package/dist/esm/styles/index.js +2 -5
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/partials/badge.partials.js +273 -0
- package/dist/esm/styles/partials/badge.partials.js.map +1 -0
- package/dist/esm/styles/partials/index.js +2 -0
- package/dist/esm/styles/partials/index.js.map +1 -0
- package/dist/esm/switch/define.js +4 -0
- package/dist/esm/switch/define.js.map +1 -0
- package/dist/esm/switch/index.js +6 -31
- package/dist/esm/switch/index.js.map +1 -0
- package/dist/esm/switch/switch.definition.js +17 -0
- package/dist/esm/switch/switch.definition.js.map +1 -0
- package/dist/esm/switch/switch.js +9 -0
- package/dist/esm/switch/switch.js.map +1 -0
- package/dist/esm/switch/switch.options.js +10 -0
- package/dist/esm/switch/switch.options.js.map +1 -0
- package/dist/esm/switch/switch.styles.js +113 -212
- package/dist/esm/switch/switch.styles.js.map +1 -0
- package/dist/esm/switch/switch.template.js +5 -0
- package/dist/esm/switch/switch.template.js.map +1 -0
- package/dist/esm/text/define.js +4 -0
- package/dist/esm/text/define.js.map +1 -0
- package/dist/esm/text/index.js +6 -0
- package/dist/esm/text/index.js.map +1 -0
- package/dist/esm/text/text.definition.js +18 -0
- package/dist/esm/text/text.definition.js.map +1 -0
- package/dist/esm/text/text.js +92 -0
- package/dist/esm/text/text.js.map +1 -0
- package/dist/esm/text/text.options.js +46 -0
- package/dist/esm/text/text.options.js.map +1 -0
- package/dist/esm/text/text.styles.js +107 -0
- package/dist/esm/text/text.styles.js.map +1 -0
- package/dist/esm/text/text.template.js +6 -0
- package/dist/esm/text/text.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +387 -0
- package/dist/esm/theme/design-tokens.js.map +1 -0
- package/dist/esm/theme/index.js +3 -0
- package/dist/esm/theme/index.js.map +1 -0
- package/dist/esm/theme/set-theme.js +12 -0
- package/dist/esm/theme/set-theme.js.map +1 -0
- package/dist/esm/utils/get-initials.js +83 -0
- package/dist/esm/utils/get-initials.js.map +1 -0
- package/dist/fluent-web-components.api.json +8224 -11431
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/web-components.d.ts +1496 -2404
- package/dist/web-components.js +5585 -20170
- package/dist/web-components.min.js +287 -239
- package/docs/api-report.md +1118 -1032
- package/package.json +84 -23
- package/build/clean.js +0 -29
- package/build/transform-fragments.js +0 -29
- package/dist/dts/_docs/design-system/color-explorer/app.d.ts +0 -25
- package/dist/dts/_docs/design-system/color-explorer/colors.d.ts +0 -13
- package/dist/dts/_docs/design-system/color-explorer/component-types.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/color-block.d.ts +0 -10
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.d.ts +0 -190
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.d.ts +0 -15
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.template.d.ts +0 -8
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/index.d.ts +0 -9
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.d.ts +0 -8
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.template.d.ts +0 -2
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.d.ts +0 -5
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.template.d.ts +0 -2
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/layer-background/index.d.ts +0 -21
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.template.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.template.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/swatch.d.ts +0 -30
- package/dist/dts/_docs/design-system/color-explorer/custom-elements.d.ts +0 -7
- package/dist/dts/_docs/design-system/color-explorer/index.d.ts +0 -2
- package/dist/dts/accordion/accordion-item/accordion-item.styles.d.ts +0 -3
- package/dist/dts/accordion/accordion-item/index.d.ts +0 -17
- package/dist/dts/accordion/accordion.stories.d.ts +0 -15
- package/dist/dts/anchor/anchor.stories.d.ts +0 -14
- package/dist/dts/anchor/anchor.styles.d.ts +0 -3
- package/dist/dts/anchor/index.d.ts +0 -49
- package/dist/dts/anchored-region/anchored-region.stories.d.ts +0 -6
- package/dist/dts/anchored-region/anchored-region.styles.d.ts +0 -3
- package/dist/dts/anchored-region/index.d.ts +0 -21
- package/dist/dts/badge/badge.stories.d.ts +0 -14
- package/dist/dts/breadcrumb/breadcrumb.stories.d.ts +0 -15
- package/dist/dts/breadcrumb/breadcrumb.styles.d.ts +0 -3
- package/dist/dts/breadcrumb/index.d.ts +0 -21
- package/dist/dts/breadcrumb-item/breadcrumb-item.stories.d.ts +0 -15
- package/dist/dts/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -3
- package/dist/dts/breadcrumb-item/index.d.ts +0 -21
- package/dist/dts/button/button.stories.d.ts +0 -21
- package/dist/dts/button/button.styles.d.ts +0 -3
- package/dist/dts/button/index.d.ts +0 -48
- package/dist/dts/calendar/calendar.stories.d.ts +0 -86
- package/dist/dts/calendar/calendar.styles.d.ts +0 -7
- package/dist/dts/calendar/index.d.ts +0 -18
- package/dist/dts/card/card.stories.d.ts +0 -15
- package/dist/dts/card/card.styles.d.ts +0 -3
- package/dist/dts/card/index.d.ts +0 -46
- package/dist/dts/checkbox/checkbox.stories.d.ts +0 -28
- package/dist/dts/checkbox/checkbox.styles.d.ts +0 -3
- package/dist/dts/checkbox/index.d.ts +0 -16
- package/dist/dts/color/palette.d.ts +0 -73
- package/dist/dts/color/recipe.d.ts +0 -20
- package/dist/dts/color/recipes/contrast-and-delta-swatch-set.d.ts +0 -11
- package/dist/dts/color/recipes/contrast-swatch.d.ts +0 -12
- package/dist/dts/color/recipes/delta-swatch-set.d.ts +0 -36
- package/dist/dts/color/recipes/delta-swatch.d.ts +0 -12
- package/dist/dts/color/recipes/focus-stroke.d.ts +0 -10
- package/dist/dts/color/recipes/foreground-on-accent.d.ts +0 -11
- package/dist/dts/color/recipes/gradient-shadow-stroke.d.ts +0 -7
- package/dist/dts/color/recipes/gradient-swatch.d.ts +0 -36
- package/dist/dts/color/recipes/neutral-layer-1.d.ts +0 -10
- package/dist/dts/color/recipes/neutral-layer-2.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-3.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-4.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-floating.d.ts +0 -6
- package/dist/dts/color/recipes/underline-stroke.d.ts +0 -7
- package/dist/dts/color/swatch.d.ts +0 -31
- package/dist/dts/color/utilities/base-layer-luminance.d.ts +0 -11
- package/dist/dts/color/utilities/binary-search.d.ts +0 -4
- package/dist/dts/color/utilities/color-constants.d.ts +0 -14
- package/dist/dts/color/utilities/direction-by-is-dark.d.ts +0 -5
- package/dist/dts/color/utilities/is-dark.d.ts +0 -9
- package/dist/dts/color/utilities/relative-luminance.d.ts +0 -13
- package/dist/dts/combobox/combobox.stories.d.ts +0 -36
- package/dist/dts/combobox/combobox.styles.d.ts +0 -3
- package/dist/dts/combobox/index.d.ts +0 -43
- package/dist/dts/component-definitions.d.ts +0 -43
- package/dist/dts/custom-elements.d.ts +0 -103
- package/dist/dts/data-grid/data-grid-cell.styles.d.ts +0 -3
- package/dist/dts/data-grid/data-grid-row.styles.d.ts +0 -3
- package/dist/dts/data-grid/data-grid.stories.d.ts +0 -15
- package/dist/dts/data-grid/data-grid.styles.d.ts +0 -3
- package/dist/dts/data-grid/index.d.ts +0 -45
- package/dist/dts/design-system-provider/index.d.ts +0 -582
- package/dist/dts/design-tokens.d.ts +0 -519
- package/dist/dts/dialog/dialog.stories.d.ts +0 -25
- package/dist/dts/dialog/dialog.styles.d.ts +0 -3
- package/dist/dts/dialog/index.d.ts +0 -21
- package/dist/dts/divider/divider.stories.d.ts +0 -6
- package/dist/dts/flipper/flipper.stories.d.ts +0 -17
- package/dist/dts/flipper/flipper.styles.d.ts +0 -3
- package/dist/dts/flipper/index.d.ts +0 -21
- package/dist/dts/horizontal-scroll/horizontal-scroll.stories.d.ts +0 -15
- package/dist/dts/horizontal-scroll/horizontal-scroll.styles.d.ts +0 -12
- package/dist/dts/horizontal-scroll/index.d.ts +0 -25
- package/dist/dts/listbox/index.d.ts +0 -19
- package/dist/dts/listbox/listbox.stories.d.ts +0 -6
- package/dist/dts/listbox/listbox.styles.d.ts +0 -3
- package/dist/dts/listbox-option/index.d.ts +0 -17
- package/dist/dts/listbox-option/listbox-option.stories.d.ts +0 -23
- package/dist/dts/listbox-option/listbox-option.styles.d.ts +0 -3
- package/dist/dts/menu/index.d.ts +0 -26
- package/dist/dts/menu/menu.stories.d.ts +0 -6
- package/dist/dts/menu/menu.styles.d.ts +0 -3
- package/dist/dts/menu-item/index.d.ts +0 -21
- package/dist/dts/menu-item/menu-item.stories.d.ts +0 -18
- package/dist/dts/menu-item/menu-item.styles.d.ts +0 -3
- package/dist/dts/number-field/index.d.ts +0 -41
- package/dist/dts/number-field/number-field.stories.d.ts +0 -71
- package/dist/dts/number-field/number-field.styles.d.ts +0 -3
- package/dist/dts/progress/index.d.ts +0 -2
- package/dist/dts/progress/progress/index.d.ts +0 -22
- package/dist/dts/progress/progress/progress.stories.d.ts +0 -15
- package/dist/dts/progress/progress/progress.styles.d.ts +0 -3
- package/dist/dts/progress/progress-ring/index.d.ts +0 -22
- package/dist/dts/progress/progress-ring/progress-ring.stories.d.ts +0 -15
- package/dist/dts/progress/progress-ring/progress-ring.styles.d.ts +0 -3
- package/dist/dts/radio/index.d.ts +0 -21
- package/dist/dts/radio/radio.stories.d.ts +0 -23
- package/dist/dts/radio/radio.styles.d.ts +0 -3
- package/dist/dts/radio-group/index.d.ts +0 -21
- package/dist/dts/radio-group/radio-group.stories.d.ts +0 -18
- package/dist/dts/radio-group/radio-group.styles.d.ts +0 -3
- package/dist/dts/search/index.d.ts +0 -38
- package/dist/dts/search/search.stories.d.ts +0 -75
- package/dist/dts/search/search.styles.d.ts +0 -3
- package/dist/dts/search/search.template.d.ts +0 -6
- package/dist/dts/select/index.d.ts +0 -44
- package/dist/dts/select/select.stories.d.ts +0 -28
- package/dist/dts/select/select.styles.d.ts +0 -13
- package/dist/dts/skeleton/index.d.ts +0 -21
- package/dist/dts/skeleton/skeleton.stories.d.ts +0 -20
- package/dist/dts/skeleton/skeleton.styles.d.ts +0 -3
- package/dist/dts/slider/index.d.ts +0 -21
- package/dist/dts/slider/slider.stories.d.ts +0 -14
- package/dist/dts/slider/slider.styles.d.ts +0 -3
- package/dist/dts/slider-label/index.d.ts +0 -21
- package/dist/dts/slider-label/slider-label.stories.d.ts +0 -23
- package/dist/dts/slider-label/slider-label.styles.d.ts +0 -3
- package/dist/dts/styles/direction.d.ts +0 -34
- package/dist/dts/styles/elevation.d.ts +0 -64
- package/dist/dts/styles/focus.d.ts +0 -13
- package/dist/dts/styles/patterns/button.styles.d.ts +0 -31
- package/dist/dts/styles/patterns/index.d.ts +0 -3
- package/dist/dts/styles/patterns/input.styles.d.ts +0 -30
- package/dist/dts/styles/patterns/type-ramp.d.ts +0 -18
- package/dist/dts/styles/size.d.ts +0 -7
- package/dist/dts/switch/switch.stories.d.ts +0 -18
- package/dist/dts/tabs/index.d.ts +0 -23
- package/dist/dts/tabs/tab/index.d.ts +0 -21
- package/dist/dts/tabs/tab/tab.styles.d.ts +0 -3
- package/dist/dts/tabs/tab-panel/index.d.ts +0 -21
- package/dist/dts/tabs/tab-panel/tab-panel.styles.d.ts +0 -3
- package/dist/dts/tabs/tabs.stories.d.ts +0 -19
- package/dist/dts/tabs/tabs.styles.d.ts +0 -3
- package/dist/dts/text-area/index.d.ts +0 -45
- package/dist/dts/text-area/text-area.stories.d.ts +0 -41
- package/dist/dts/text-area/text-area.styles.d.ts +0 -3
- package/dist/dts/text-field/index.d.ts +0 -45
- package/dist/dts/text-field/text-field.stories.d.ts +0 -81
- package/dist/dts/text-field/text-field.styles.d.ts +0 -3
- package/dist/dts/toolbar/index.d.ts +0 -17
- package/dist/dts/toolbar/toolbar.stories.d.ts +0 -9
- package/dist/dts/toolbar/toolbar.styles.d.ts +0 -3
- package/dist/dts/tooltip/index.d.ts +0 -21
- package/dist/dts/tooltip/tooltip.stories.d.ts +0 -14
- package/dist/dts/tooltip/tooltip.styles.d.ts +0 -3
- package/dist/dts/tree-item/index.d.ts +0 -22
- package/dist/dts/tree-item/tree-item.stories.d.ts +0 -18
- package/dist/dts/tree-item/tree-item.styles.d.ts +0 -4
- package/dist/dts/tree-view/index.d.ts +0 -22
- package/dist/dts/tree-view/tree-view.stories.d.ts +0 -13
- package/dist/dts/tree-view/tree-view.styles.d.ts +0 -3
- package/dist/dts/utilities/behaviors.d.ts +0 -12
- package/dist/dts/utilities/type-ramp.d.ts +0 -12
- package/dist/esm/_docs/design-system/color-explorer/app.js +0 -247
- package/dist/esm/_docs/design-system/color-explorer/colors.js +0 -24
- package/dist/esm/_docs/design-system/color-explorer/component-types.js +0 -7
- package/dist/esm/_docs/design-system/color-explorer/components/color-block.js +0 -408
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.js +0 -16
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.js +0 -297
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.js +0 -124
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.template.js +0 -130
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/index.js +0 -15
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.js +0 -24
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.js +0 -19
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.template.js +0 -52
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.js +0 -11
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.styles.js +0 -31
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.template.js +0 -21
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/layer-background/index.js +0 -70
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.js +0 -166
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.template.js +0 -97
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.js +0 -130
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.template.js +0 -82
- package/dist/esm/_docs/design-system/color-explorer/components/swatch.js +0 -163
- package/dist/esm/_docs/design-system/color-explorer/custom-elements.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/index.js +0 -14
- package/dist/esm/accordion/accordion-item/accordion-item.styles.js +0 -154
- package/dist/esm/accordion/accordion-item/accordion-item.vscode.definition.json +0 -67
- package/dist/esm/accordion/accordion-item/index.js +0 -32
- package/dist/esm/accordion/accordion.stories.js +0 -66
- package/dist/esm/accordion/accordion.vscode.definition.json +0 -35
- package/dist/esm/anchor/anchor.stories.js +0 -34
- package/dist/esm/anchor/anchor.styles.js +0 -5
- package/dist/esm/anchor/anchor.vscode.definition.json +0 -138
- package/dist/esm/anchor/index.js +0 -67
- package/dist/esm/anchored-region/anchored-region.stories.js +0 -133
- package/dist/esm/anchored-region/anchored-region.styles.js +0 -7
- package/dist/esm/anchored-region/anchored-region.vscode.definition.json +0 -140
- package/dist/esm/anchored-region/index.js +0 -26
- package/dist/esm/badge/badge.stories.js +0 -27
- package/dist/esm/badge/badge.vscode.definition.json +0 -60
- package/dist/esm/breadcrumb/breadcrumb.stories.js +0 -20
- package/dist/esm/breadcrumb/breadcrumb.styles.js +0 -13
- package/dist/esm/breadcrumb/breadcrumb.vscode.definition.json +0 -18
- package/dist/esm/breadcrumb/index.js +0 -26
- package/dist/esm/breadcrumb-item/breadcrumb-item.stories.js +0 -16
- package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +0 -96
- package/dist/esm/breadcrumb-item/breadcrumb-item.vscode.definition.json +0 -50
- package/dist/esm/breadcrumb-item/index.js +0 -34
- package/dist/esm/button/button.stories.js +0 -40
- package/dist/esm/button/button.styles.js +0 -24
- package/dist/esm/button/button.vscode.definition.json +0 -158
- package/dist/esm/button/index.js +0 -67
- package/dist/esm/calendar/calendar.stories.js +0 -115
- package/dist/esm/calendar/calendar.styles.js +0 -132
- package/dist/esm/calendar/index.js +0 -31
- package/dist/esm/card/card.stories.js +0 -30
- package/dist/esm/card/card.styles.js +0 -28
- package/dist/esm/card/card.vscode.definition.json +0 -33
- package/dist/esm/card/index.js +0 -79
- package/dist/esm/checkbox/checkbox.stories.js +0 -43
- package/dist/esm/checkbox/checkbox.styles.js +0 -161
- package/dist/esm/checkbox/checkbox.vscode.definition.json +0 -69
- package/dist/esm/checkbox/index.js +0 -31
- package/dist/esm/color/palette.js +0 -250
- package/dist/esm/color/recipes/contrast-and-delta-swatch-set.js +0 -28
- package/dist/esm/color/recipes/contrast-swatch.js +0 -12
- package/dist/esm/color/recipes/delta-swatch-set.js +0 -53
- package/dist/esm/color/recipes/delta-swatch.js +0 -13
- package/dist/esm/color/recipes/focus-stroke.js +0 -14
- package/dist/esm/color/recipes/foreground-on-accent.js +0 -21
- package/dist/esm/color/recipes/gradient-shadow-stroke.js +0 -54
- package/dist/esm/color/recipes/gradient-swatch.js +0 -36
- package/dist/esm/color/recipes/neutral-layer-1.js +0 -13
- package/dist/esm/color/recipes/neutral-layer-2.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-3.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-4.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-floating.js +0 -7
- package/dist/esm/color/recipes/underline-stroke.js +0 -31
- package/dist/esm/color/swatch.js +0 -53
- package/dist/esm/color/utilities/base-layer-luminance.js +0 -14
- package/dist/esm/color/utilities/binary-search.js +0 -15
- package/dist/esm/color/utilities/color-constants.js +0 -19
- package/dist/esm/color/utilities/direction-by-is-dark.js +0 -7
- package/dist/esm/color/utilities/is-dark.js +0 -17
- package/dist/esm/color/utilities/relative-luminance.js +0 -8
- package/dist/esm/combobox/combobox.stories.js +0 -84
- package/dist/esm/combobox/combobox.styles.js +0 -40
- package/dist/esm/combobox/combobox.vscode.definition.json +0 -121
- package/dist/esm/combobox/index.js +0 -63
- package/dist/esm/component-definitions.js +0 -84
- package/dist/esm/custom-elements.js +0 -102
- package/dist/esm/data-grid/data-grid-cell.styles.js +0 -36
- package/dist/esm/data-grid/data-grid-cell.vscode.definition.json +0 -34
- package/dist/esm/data-grid/data-grid-row.styles.js +0 -24
- package/dist/esm/data-grid/data-grid-row.vscode.definition.json +0 -34
- package/dist/esm/data-grid/data-grid.stories.js +0 -381
- package/dist/esm/data-grid/data-grid.styles.js +0 -8
- package/dist/esm/data-grid/data-grid.vscode.definition.json +0 -34
- package/dist/esm/data-grid/index.js +0 -60
- package/dist/esm/design-system-provider/design-system-provider.vscode.definition.json +0 -510
- package/dist/esm/design-system-provider/index.js +0 -518
- package/dist/esm/design-tokens.js +0 -685
- package/dist/esm/dialog/dialog.stories.js +0 -36
- package/dist/esm/dialog/dialog.styles.js +0 -47
- package/dist/esm/dialog/dialog.vscode.definition.json +0 -67
- package/dist/esm/dialog/index.js +0 -26
- package/dist/esm/divider/divider.stories.js +0 -17
- package/dist/esm/divider/divider.vscode.definition.json +0 -29
- package/dist/esm/flipper/flipper.stories.js +0 -31
- package/dist/esm/flipper/flipper.styles.js +0 -84
- package/dist/esm/flipper/flipper.vscode.definition.json +0 -56
- package/dist/esm/flipper/index.js +0 -36
- package/dist/esm/horizontal-scroll/horizontal-scroll.stories.js +0 -81
- package/dist/esm/horizontal-scroll/horizontal-scroll.styles.js +0 -138
- package/dist/esm/horizontal-scroll/horizontal-scroll.vscode.definition.json +0 -85
- package/dist/esm/horizontal-scroll/index.js +0 -47
- package/dist/esm/listbox/index.js +0 -24
- package/dist/esm/listbox/listbox.stories.js +0 -29
- package/dist/esm/listbox/listbox.styles.js +0 -21
- package/dist/esm/listbox/listbox.vscode.definition.json +0 -40
- package/dist/esm/listbox-option/index.js +0 -22
- package/dist/esm/listbox-option/listbox-option.stories.js +0 -38
- package/dist/esm/listbox-option/listbox-option.styles.js +0 -133
- package/dist/esm/listbox-option/listbox-option.vscode.definition.json +0 -45
- package/dist/esm/menu/index.js +0 -36
- package/dist/esm/menu/menu.stories.js +0 -56
- package/dist/esm/menu/menu.styles.js +0 -42
- package/dist/esm/menu/menu.vscode.definition.json +0 -18
- package/dist/esm/menu-item/index.js +0 -41
- package/dist/esm/menu-item/menu-item.stories.js +0 -34
- package/dist/esm/menu-item/menu-item.styles.js +0 -265
- package/dist/esm/menu-item/menu-item.vscode.definition.json +0 -82
- package/dist/esm/number-field/index.js +0 -57
- package/dist/esm/number-field/number-field.stories.js +0 -83
- package/dist/esm/number-field/number-field.styles.js +0 -71
- package/dist/esm/number-field/number-field.vscode.definition.json +0 -167
- package/dist/esm/progress/index.js +0 -2
- package/dist/esm/progress/progress/index.js +0 -33
- package/dist/esm/progress/progress/progress.stories.js +0 -59
- package/dist/esm/progress/progress/progress.styles.js +0 -119
- package/dist/esm/progress/progress/progress.vscode.definition.json +0 -56
- package/dist/esm/progress/progress-ring/index.js +0 -45
- package/dist/esm/progress/progress-ring/progress-ring.stories.js +0 -59
- package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -79
- package/dist/esm/progress/progress-ring/progress-ring.vscode.definition.json +0 -56
- package/dist/esm/radio/index.js +0 -31
- package/dist/esm/radio/radio.stories.js +0 -41
- package/dist/esm/radio/radio.styles.js +0 -152
- package/dist/esm/radio/radio.vscode.definition.json +0 -63
- package/dist/esm/radio-group/index.js +0 -26
- package/dist/esm/radio-group/radio-group.stories.js +0 -42
- package/dist/esm/radio-group/radio-group.styles.js +0 -21
- package/dist/esm/radio-group/radio-group.vscode.definition.json +0 -64
- package/dist/esm/search/index.js +0 -52
- package/dist/esm/search/search.stories.js +0 -83
- package/dist/esm/search/search.styles.js +0 -104
- package/dist/esm/search/search.template.js +0 -82
- package/dist/esm/search/search.vscode.definition.json +0 -145
- package/dist/esm/select/index.js +0 -61
- package/dist/esm/select/select.stories.js +0 -53
- package/dist/esm/select/select.styles.js +0 -139
- package/dist/esm/select/select.vscode.definition.json +0 -79
- package/dist/esm/skeleton/index.js +0 -26
- package/dist/esm/skeleton/skeleton.stories.js +0 -37
- package/dist/esm/skeleton/skeleton.styles.js +0 -77
- package/dist/esm/skeleton/skeleton.vscode.definition.json +0 -49
- package/dist/esm/slider/index.js +0 -29
- package/dist/esm/slider/slider.stories.js +0 -40
- package/dist/esm/slider/slider.styles.js +0 -162
- package/dist/esm/slider/slider.vscode.definition.json +0 -101
- package/dist/esm/slider-label/index.js +0 -26
- package/dist/esm/slider-label/slider-label.stories.js +0 -40
- package/dist/esm/slider-label/slider-label.styles.js +0 -77
- package/dist/esm/slider-label/slider-label.vscode.definition.json +0 -43
- package/dist/esm/styles/direction.js +0 -73
- package/dist/esm/styles/elevation.js +0 -74
- package/dist/esm/styles/focus.js +0 -21
- package/dist/esm/styles/patterns/button.styles.js +0 -427
- package/dist/esm/styles/patterns/index.js +0 -3
- package/dist/esm/styles/patterns/input.styles.js +0 -227
- package/dist/esm/styles/patterns/type-ramp.js +0 -74
- package/dist/esm/styles/size.js +0 -9
- package/dist/esm/switch/switch.stories.js +0 -42
- package/dist/esm/switch/switch.vscode.definition.json +0 -68
- package/dist/esm/tabs/index.js +0 -28
- package/dist/esm/tabs/tab/index.js +0 -26
- package/dist/esm/tabs/tab/tab.styles.js +0 -75
- package/dist/esm/tabs/tab/tab.vscode.definition.json +0 -17
- package/dist/esm/tabs/tab-panel/index.js +0 -26
- package/dist/esm/tabs/tab-panel/tab-panel.styles.js +0 -11
- package/dist/esm/tabs/tab-panel/tab-panel.vscode.definition.json +0 -17
- package/dist/esm/tabs/tabs.stories.js +0 -105
- package/dist/esm/tabs/tabs.styles.js +0 -98
- package/dist/esm/tabs/tabs.vscode.definition.json +0 -50
- package/dist/esm/text-area/index.js +0 -56
- package/dist/esm/text-area/text-area.stories.js +0 -56
- package/dist/esm/text-area/text-area.styles.js +0 -39
- package/dist/esm/text-area/text-area.vscode.definition.json +0 -141
- package/dist/esm/text-field/index.js +0 -56
- package/dist/esm/text-field/text-field.stories.js +0 -88
- package/dist/esm/text-field/text-field.styles.js +0 -48
- package/dist/esm/text-field/text-field.vscode.definition.json +0 -150
- package/dist/esm/toolbar/index.js +0 -23
- package/dist/esm/toolbar/toolbar.stories.js +0 -9
- package/dist/esm/toolbar/toolbar.styles.js +0 -73
- package/dist/esm/tooltip/index.js +0 -31
- package/dist/esm/tooltip/tooltip.stories.js +0 -34
- package/dist/esm/tooltip/tooltip.styles.js +0 -107
- package/dist/esm/tooltip/tooltip.vscode.definition.json +0 -56
- package/dist/esm/tree-item/index.js +0 -32
- package/dist/esm/tree-item/tree-item.stories.js +0 -34
- package/dist/esm/tree-item/tree-item.styles.js +0 -227
- package/dist/esm/tree-item/tree-item.vscode.definition.json +0 -63
- package/dist/esm/tree-view/index.js +0 -27
- package/dist/esm/tree-view/tree-view.stories.js +0 -99
- package/dist/esm/tree-view/tree-view.styles.js +0 -14
- package/dist/esm/tree-view/tree-view.vscode.definition.json +0 -26
- package/dist/esm/utilities/behaviors.js +0 -13
- package/dist/esm/utilities/type-ramp.js +0 -12
- package/karma.conf.js +0 -147
- package/public/SegoeUI-VF.ttf +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.png +0 -0
- package/public/switches.ts +0 -24
- package/rollup.config.js +0 -53
- package/storybook-typings.d.ts +0 -4
- /package/dist/{esm/color/recipe.js → dts/accordion-item/define.d.ts} +0 -0
|
@@ -1,685 +0,0 @@
|
|
|
1
|
-
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
|
-
import { Direction } from '@microsoft/fast-web-utilities';
|
|
3
|
-
import { PaletteRGB } from './color/palette';
|
|
4
|
-
import { foregroundOnAccentSet as foregroundOnAccentSetAlgorithm } from './color/recipes/foreground-on-accent';
|
|
5
|
-
import { gradientShadowStroke as gradientShadowStrokeAlgorithm } from './color/recipes/gradient-shadow-stroke';
|
|
6
|
-
import { underlineStroke as underlineStrokeAlgorithm } from './color/recipes/underline-stroke';
|
|
7
|
-
import { contrastSwatch } from './color/recipes/contrast-swatch';
|
|
8
|
-
import { contrastAndDeltaSwatchSet, contrastAndDeltaSwatchSetByLuminance, } from './color/recipes/contrast-and-delta-swatch-set';
|
|
9
|
-
import { deltaSwatch } from './color/recipes/delta-swatch';
|
|
10
|
-
import { deltaSwatchSet, deltaSwatchSetByLuminance } from './color/recipes/delta-swatch-set';
|
|
11
|
-
import { focusStrokeInner as focusStrokeInnerAlgorithm, focusStrokeOuter as focusStrokeOuterAlgorithm, } from './color/recipes/focus-stroke';
|
|
12
|
-
import { neutralLayerFloating as neutralLayerFloatingAlgorithm } from './color/recipes/neutral-layer-floating';
|
|
13
|
-
import { neutralLayer1 as neutralLayer1Algorithm } from './color/recipes/neutral-layer-1';
|
|
14
|
-
import { neutralLayer2 as neutralLayer2Algorithm } from './color/recipes/neutral-layer-2';
|
|
15
|
-
import { neutralLayer3 as neutralLayer3Algorithm } from './color/recipes/neutral-layer-3';
|
|
16
|
-
import { neutralLayer4 as neutralLayer4Algorithm } from './color/recipes/neutral-layer-4';
|
|
17
|
-
import { accentBase, middleGrey } from './color/utilities/color-constants';
|
|
18
|
-
import { StandardLuminance } from './color/utilities/base-layer-luminance';
|
|
19
|
-
import { directionByIsDark } from './color/utilities/direction-by-is-dark';
|
|
20
|
-
import { StandardFontWeight } from './utilities/type-ramp';
|
|
21
|
-
const { create } = DesignToken;
|
|
22
|
-
function createNonCss(name) {
|
|
23
|
-
return DesignToken.create({ name, cssCustomPropertyName: null });
|
|
24
|
-
}
|
|
25
|
-
// General tokens
|
|
26
|
-
/** @public */
|
|
27
|
-
export const direction = create('direction').withDefault(Direction.ltr);
|
|
28
|
-
/** @public */
|
|
29
|
-
export const disabledOpacity = create('disabled-opacity').withDefault(0.3);
|
|
30
|
-
// Density tokens
|
|
31
|
-
/** @public */
|
|
32
|
-
export const baseHeightMultiplier = create('base-height-multiplier').withDefault(8);
|
|
33
|
-
/** @public */
|
|
34
|
-
export const baseHorizontalSpacingMultiplier = create('base-horizontal-spacing-multiplier').withDefault(3);
|
|
35
|
-
/** @public */
|
|
36
|
-
export const density = create('density').withDefault(0);
|
|
37
|
-
/** @public */
|
|
38
|
-
export const designUnit = create('design-unit').withDefault(4);
|
|
39
|
-
// Appearance tokens
|
|
40
|
-
/** @public */
|
|
41
|
-
export const controlCornerRadius = create('control-corner-radius').withDefault(4);
|
|
42
|
-
/** @public */
|
|
43
|
-
export const layerCornerRadius = create('layer-corner-radius').withDefault(8);
|
|
44
|
-
/** @public */
|
|
45
|
-
export const strokeWidth = create('stroke-width').withDefault(1);
|
|
46
|
-
/** @public */
|
|
47
|
-
export const focusStrokeWidth = create('focus-stroke-width').withDefault(2);
|
|
48
|
-
// Typography values
|
|
49
|
-
/** @public */
|
|
50
|
-
export const bodyFont = create('body-font').withDefault('"Segoe UI Variable", "Segoe UI", sans-serif');
|
|
51
|
-
/** @public */
|
|
52
|
-
export const fontWeight = create('font-weight').withDefault(StandardFontWeight.Normal);
|
|
53
|
-
function fontVariations(sizeToken) {
|
|
54
|
-
return (element) => {
|
|
55
|
-
const size = sizeToken.getValueFor(element);
|
|
56
|
-
const weight = fontWeight.getValueFor(element);
|
|
57
|
-
if (size.endsWith('px')) {
|
|
58
|
-
const px = Number.parseFloat(size.replace('px', ''));
|
|
59
|
-
if (px <= 12) {
|
|
60
|
-
return `"wght" ${weight}, "opsz" 8`;
|
|
61
|
-
}
|
|
62
|
-
else if (px > 24) {
|
|
63
|
-
return `"wght" ${weight}, "opsz" 36`;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return `"wght" ${weight}, "opsz" 10.5`;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
/** @public */
|
|
70
|
-
export const typeRampBaseFontSize = create('type-ramp-base-font-size').withDefault('14px');
|
|
71
|
-
/** @public */
|
|
72
|
-
export const typeRampBaseLineHeight = create('type-ramp-base-line-height').withDefault('20px');
|
|
73
|
-
/** @public */
|
|
74
|
-
export const typeRampBaseFontVariations = create('type-ramp-base-font-variations').withDefault(fontVariations(typeRampBaseFontSize));
|
|
75
|
-
/** @public */
|
|
76
|
-
export const typeRampMinus1FontSize = create('type-ramp-minus-1-font-size').withDefault('12px');
|
|
77
|
-
/** @public */
|
|
78
|
-
export const typeRampMinus1LineHeight = create('type-ramp-minus-1-line-height').withDefault('16px');
|
|
79
|
-
/** @public */
|
|
80
|
-
export const typeRampMinus1FontVariations = create('type-ramp-minus-1-font-variations').withDefault(fontVariations(typeRampMinus1FontSize));
|
|
81
|
-
/** @public */
|
|
82
|
-
export const typeRampMinus2FontSize = create('type-ramp-minus-2-font-size').withDefault('10px');
|
|
83
|
-
/** @public */
|
|
84
|
-
export const typeRampMinus2LineHeight = create('type-ramp-minus-2-line-height').withDefault('14px');
|
|
85
|
-
/** @public */
|
|
86
|
-
export const typeRampMinus2FontVariations = create('type-ramp-minus-2-font-variations').withDefault(fontVariations(typeRampMinus2FontSize));
|
|
87
|
-
/** @public */
|
|
88
|
-
export const typeRampPlus1FontSize = create('type-ramp-plus-1-font-size').withDefault('16px');
|
|
89
|
-
/** @public */
|
|
90
|
-
export const typeRampPlus1LineHeight = create('type-ramp-plus-1-line-height').withDefault('22px');
|
|
91
|
-
/** @public */
|
|
92
|
-
export const typeRampPlus1FontVariations = create('type-ramp-plus-1-font-variations').withDefault(fontVariations(typeRampPlus1FontSize));
|
|
93
|
-
/** @public */
|
|
94
|
-
export const typeRampPlus2FontSize = create('type-ramp-plus-2-font-size').withDefault('20px');
|
|
95
|
-
/** @public */
|
|
96
|
-
export const typeRampPlus2LineHeight = create('type-ramp-plus-2-line-height').withDefault('26px');
|
|
97
|
-
/** @public */
|
|
98
|
-
export const typeRampPlus2FontVariations = create('type-ramp-plus-2-font-variations').withDefault(fontVariations(typeRampPlus2FontSize));
|
|
99
|
-
/** @public */
|
|
100
|
-
export const typeRampPlus3FontSize = create('type-ramp-plus-3-font-size').withDefault('24px');
|
|
101
|
-
/** @public */
|
|
102
|
-
export const typeRampPlus3LineHeight = create('type-ramp-plus-3-line-height').withDefault('32px');
|
|
103
|
-
/** @public */
|
|
104
|
-
export const typeRampPlus3FontVariations = create('type-ramp-plus-3-font-variations').withDefault(fontVariations(typeRampPlus3FontSize));
|
|
105
|
-
/** @public */
|
|
106
|
-
export const typeRampPlus4FontSize = create('type-ramp-plus-4-font-size').withDefault('28px');
|
|
107
|
-
/** @public */
|
|
108
|
-
export const typeRampPlus4LineHeight = create('type-ramp-plus-4-line-height').withDefault('36px');
|
|
109
|
-
/** @public */
|
|
110
|
-
export const typeRampPlus4FontVariations = create('type-ramp-plus-4-font-variations').withDefault(fontVariations(typeRampPlus4FontSize));
|
|
111
|
-
/** @public */
|
|
112
|
-
export const typeRampPlus5FontSize = create('type-ramp-plus-5-font-size').withDefault('32px');
|
|
113
|
-
/** @public */
|
|
114
|
-
export const typeRampPlus5LineHeight = create('type-ramp-plus-5-line-height').withDefault('40px');
|
|
115
|
-
/** @public */
|
|
116
|
-
export const typeRampPlus5FontVariations = create('type-ramp-plus-5-font-variations').withDefault(fontVariations(typeRampPlus5FontSize));
|
|
117
|
-
/** @public */
|
|
118
|
-
export const typeRampPlus6FontSize = create('type-ramp-plus-6-font-size').withDefault('40px');
|
|
119
|
-
/** @public */
|
|
120
|
-
export const typeRampPlus6LineHeight = create('type-ramp-plus-6-line-height').withDefault('52px');
|
|
121
|
-
/** @public */
|
|
122
|
-
export const typeRampPlus6FontVariations = create('type-ramp-plus-6-font-variations').withDefault(fontVariations(typeRampPlus6FontSize));
|
|
123
|
-
// Color recipe values
|
|
124
|
-
/** @public */
|
|
125
|
-
export const baseLayerLuminance = create('base-layer-luminance').withDefault(StandardLuminance.LightMode);
|
|
126
|
-
/** @public */
|
|
127
|
-
export const accentFillRestDelta = createNonCss('accent-fill-rest-delta').withDefault(0);
|
|
128
|
-
/** @public */
|
|
129
|
-
export const accentFillHoverDelta = createNonCss('accent-fill-hover-delta').withDefault(-2);
|
|
130
|
-
/** @public */
|
|
131
|
-
export const accentFillActiveDelta = createNonCss('accent-fill-active-delta').withDefault(-5);
|
|
132
|
-
/** @public */
|
|
133
|
-
export const accentFillFocusDelta = createNonCss('accent-fill-focus-delta').withDefault(0);
|
|
134
|
-
/** @public */
|
|
135
|
-
export const accentForegroundRestDelta = createNonCss('accent-foreground-rest-delta').withDefault(0);
|
|
136
|
-
/** @public */
|
|
137
|
-
export const accentForegroundHoverDelta = createNonCss('accent-foreground-hover-delta').withDefault(3);
|
|
138
|
-
/** @public */
|
|
139
|
-
export const accentForegroundActiveDelta = createNonCss('accent-foreground-active-delta').withDefault(-8);
|
|
140
|
-
/** @public */
|
|
141
|
-
export const accentForegroundFocusDelta = createNonCss('accent-foreground-focus-delta').withDefault(0);
|
|
142
|
-
/** @public */
|
|
143
|
-
export const neutralFillRestDelta = createNonCss('neutral-fill-rest-delta').withDefault(-1);
|
|
144
|
-
/** @public */
|
|
145
|
-
export const neutralFillHoverDelta = createNonCss('neutral-fill-hover-delta').withDefault(1);
|
|
146
|
-
/** @public */
|
|
147
|
-
export const neutralFillActiveDelta = createNonCss('neutral-fill-active-delta').withDefault(0);
|
|
148
|
-
/** @public */
|
|
149
|
-
export const neutralFillFocusDelta = createNonCss('neutral-fill-focus-delta').withDefault(0);
|
|
150
|
-
/** @public */
|
|
151
|
-
export const neutralFillInputRestDelta = createNonCss('neutral-fill-input-rest-delta').withDefault(-1);
|
|
152
|
-
/** @public */
|
|
153
|
-
export const neutralFillInputHoverDelta = createNonCss('neutral-fill-input-hover-delta').withDefault(1);
|
|
154
|
-
/** @public */
|
|
155
|
-
export const neutralFillInputActiveDelta = createNonCss('neutral-fill-input-active-delta').withDefault(0);
|
|
156
|
-
/** @public */
|
|
157
|
-
export const neutralFillInputFocusDelta = createNonCss('neutral-fill-input-focus-delta').withDefault(-2);
|
|
158
|
-
/** @public */
|
|
159
|
-
export const neutralFillInputAltRestDelta = createNonCss('neutral-fill-input-alt-rest-delta').withDefault(2);
|
|
160
|
-
/** @public */
|
|
161
|
-
export const neutralFillInputAltHoverDelta = createNonCss('neutral-fill-input-alt-hover-delta').withDefault(4);
|
|
162
|
-
/** @public */
|
|
163
|
-
export const neutralFillInputAltActiveDelta = createNonCss('neutral-fill-input-alt-active-delta').withDefault(6);
|
|
164
|
-
/** @public */
|
|
165
|
-
export const neutralFillInputAltFocusDelta = createNonCss('neutral-fill-input-alt-focus-delta').withDefault(2);
|
|
166
|
-
/** @public */
|
|
167
|
-
export const neutralFillLayerRestDelta = createNonCss('neutral-fill-layer-rest-delta').withDefault(-2);
|
|
168
|
-
/** @public */
|
|
169
|
-
export const neutralFillLayerHoverDelta = createNonCss('neutral-fill-layer-hover-delta').withDefault(-3);
|
|
170
|
-
/** @public */
|
|
171
|
-
export const neutralFillLayerActiveDelta = createNonCss('neutral-fill-layer-active-delta').withDefault(-3);
|
|
172
|
-
/** @public */
|
|
173
|
-
export const neutralFillLayerAltRestDelta = createNonCss('neutral-fill-layer-alt-rest-delta').withDefault(-1);
|
|
174
|
-
/** @public */
|
|
175
|
-
export const neutralFillSecondaryRestDelta = createNonCss('neutral-fill-secondary-rest-delta').withDefault(3);
|
|
176
|
-
/** @public */
|
|
177
|
-
export const neutralFillSecondaryHoverDelta = createNonCss('neutral-fill-secondary-hover-delta').withDefault(2);
|
|
178
|
-
/** @public */
|
|
179
|
-
export const neutralFillSecondaryActiveDelta = createNonCss('neutral-fill-secondary-active-delta').withDefault(1);
|
|
180
|
-
/** @public */
|
|
181
|
-
export const neutralFillSecondaryFocusDelta = createNonCss('neutral-fill-secondary-focus-delta').withDefault(3);
|
|
182
|
-
/** @public */
|
|
183
|
-
export const neutralFillStealthRestDelta = createNonCss('neutral-fill-stealth-rest-delta').withDefault(0);
|
|
184
|
-
/** @public */
|
|
185
|
-
export const neutralFillStealthHoverDelta = createNonCss('neutral-fill-stealth-hover-delta').withDefault(3);
|
|
186
|
-
/** @public */
|
|
187
|
-
export const neutralFillStealthActiveDelta = createNonCss('neutral-fill-stealth-active-delta').withDefault(2);
|
|
188
|
-
/** @public */
|
|
189
|
-
export const neutralFillStealthFocusDelta = createNonCss('neutral-fill-stealth-focus-delta').withDefault(0);
|
|
190
|
-
/** @public */
|
|
191
|
-
export const neutralFillStrongRestDelta = createNonCss('neutral-fill-strong-rest-delta').withDefault(0);
|
|
192
|
-
/** @public */
|
|
193
|
-
export const neutralFillStrongHoverDelta = createNonCss('neutral-fill-strong-hover-delta').withDefault(8);
|
|
194
|
-
/** @public */
|
|
195
|
-
export const neutralFillStrongActiveDelta = createNonCss('neutral-fill-strong-active-delta').withDefault(-5);
|
|
196
|
-
/** @public */
|
|
197
|
-
export const neutralFillStrongFocusDelta = createNonCss('neutral-fill-strong-focus-delta').withDefault(0);
|
|
198
|
-
/** @public */
|
|
199
|
-
export const neutralStrokeRestDelta = createNonCss('neutral-stroke-rest-delta').withDefault(8);
|
|
200
|
-
/** @public */
|
|
201
|
-
export const neutralStrokeHoverDelta = createNonCss('neutral-stroke-hover-delta').withDefault(12);
|
|
202
|
-
/** @public */
|
|
203
|
-
export const neutralStrokeActiveDelta = createNonCss('neutral-stroke-active-delta').withDefault(6);
|
|
204
|
-
/** @public */
|
|
205
|
-
export const neutralStrokeFocusDelta = createNonCss('neutral-stroke-focus-delta').withDefault(8);
|
|
206
|
-
/** @public */
|
|
207
|
-
export const neutralStrokeControlRestDelta = createNonCss('neutral-stroke-control-rest-delta').withDefault(3);
|
|
208
|
-
/** @public */
|
|
209
|
-
export const neutralStrokeControlHoverDelta = createNonCss('neutral-stroke-control-hover-delta').withDefault(5);
|
|
210
|
-
/** @public */
|
|
211
|
-
export const neutralStrokeControlActiveDelta = createNonCss('neutral-stroke-control-active-delta').withDefault(5);
|
|
212
|
-
/** @public */
|
|
213
|
-
export const neutralStrokeControlFocusDelta = createNonCss('neutral-stroke-control-focus-delta').withDefault(5);
|
|
214
|
-
/** @public */
|
|
215
|
-
export const neutralStrokeDividerRestDelta = createNonCss('neutral-stroke-divider-rest-delta').withDefault(4);
|
|
216
|
-
/** @public */
|
|
217
|
-
export const neutralStrokeLayerRestDelta = createNonCss('neutral-stroke-layer-rest-delta').withDefault(3);
|
|
218
|
-
/** @public */
|
|
219
|
-
export const neutralStrokeLayerHoverDelta = createNonCss('neutral-stroke-layer-hover-delta').withDefault(3);
|
|
220
|
-
/** @public */
|
|
221
|
-
export const neutralStrokeLayerActiveDelta = createNonCss('neutral-stroke-layer-active-delta').withDefault(3);
|
|
222
|
-
/** @public */
|
|
223
|
-
export const neutralStrokeStrongHoverDelta = createNonCss('neutral-stroke-strong-hover-delta').withDefault(0);
|
|
224
|
-
/** @public */
|
|
225
|
-
export const neutralStrokeStrongActiveDelta = createNonCss('neutral-stroke-strong-active-delta').withDefault(0);
|
|
226
|
-
/** @public */
|
|
227
|
-
export const neutralStrokeStrongFocusDelta = createNonCss('neutral-stroke-strong-focus-delta').withDefault(0);
|
|
228
|
-
// Color recipes
|
|
229
|
-
/** @public */
|
|
230
|
-
export const neutralBaseColor = create('neutral-base-color').withDefault(middleGrey);
|
|
231
|
-
/** @public */
|
|
232
|
-
export const neutralPalette = createNonCss('neutral-palette').withDefault((element) => PaletteRGB.from(neutralBaseColor.getValueFor(element)));
|
|
233
|
-
/** @public */
|
|
234
|
-
export const accentBaseColor = create('accent-base-color').withDefault(accentBase);
|
|
235
|
-
/** @public */
|
|
236
|
-
export const accentPalette = createNonCss('accent-palette').withDefault((element) => PaletteRGB.from(accentBaseColor.getValueFor(element)));
|
|
237
|
-
// Neutral Layer Card Container
|
|
238
|
-
/** @public */
|
|
239
|
-
export const neutralLayerCardContainerRecipe = createNonCss('neutral-layer-card-container-recipe').withDefault({
|
|
240
|
-
evaluate: (element) => neutralLayer2Algorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element)),
|
|
241
|
-
});
|
|
242
|
-
/** @public */
|
|
243
|
-
export const neutralLayerCardContainer = create('neutral-layer-card-container').withDefault((element) => neutralLayerCardContainerRecipe.getValueFor(element).evaluate(element));
|
|
244
|
-
// Neutral Layer Floating
|
|
245
|
-
/** @public */
|
|
246
|
-
export const neutralLayerFloatingRecipe = createNonCss('neutral-layer-floating-recipe').withDefault({
|
|
247
|
-
evaluate: (element) => neutralLayerFloatingAlgorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element)),
|
|
248
|
-
});
|
|
249
|
-
/** @public */
|
|
250
|
-
export const neutralLayerFloating = create('neutral-layer-floating').withDefault((element) => neutralLayerFloatingRecipe.getValueFor(element).evaluate(element));
|
|
251
|
-
// Neutral Layer 1
|
|
252
|
-
/** @public */
|
|
253
|
-
export const neutralLayer1Recipe = createNonCss('neutral-layer-1-recipe').withDefault({
|
|
254
|
-
evaluate: (element) => neutralLayer1Algorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element)),
|
|
255
|
-
});
|
|
256
|
-
/** @public */
|
|
257
|
-
export const neutralLayer1 = create('neutral-layer-1').withDefault((element) => neutralLayer1Recipe.getValueFor(element).evaluate(element));
|
|
258
|
-
// Neutral Layer 2
|
|
259
|
-
/** @public */
|
|
260
|
-
export const neutralLayer2Recipe = createNonCss('neutral-layer-2-recipe').withDefault({
|
|
261
|
-
evaluate: (element) => neutralLayer2Algorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element)),
|
|
262
|
-
});
|
|
263
|
-
/** @public */
|
|
264
|
-
export const neutralLayer2 = create('neutral-layer-2').withDefault((element) => neutralLayer2Recipe.getValueFor(element).evaluate(element));
|
|
265
|
-
// Neutral Layer 3
|
|
266
|
-
/** @public */
|
|
267
|
-
export const neutralLayer3Recipe = createNonCss('neutral-layer-3-recipe').withDefault({
|
|
268
|
-
evaluate: (element) => neutralLayer3Algorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element)),
|
|
269
|
-
});
|
|
270
|
-
/** @public */
|
|
271
|
-
export const neutralLayer3 = create('neutral-layer-3').withDefault((element) => neutralLayer3Recipe.getValueFor(element).evaluate(element));
|
|
272
|
-
// Neutral Layer 4
|
|
273
|
-
/** @public */
|
|
274
|
-
export const neutralLayer4Recipe = createNonCss('neutral-layer-4-recipe').withDefault({
|
|
275
|
-
evaluate: (element) => neutralLayer4Algorithm(neutralPalette.getValueFor(element), baseLayerLuminance.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element)),
|
|
276
|
-
});
|
|
277
|
-
/** @public */
|
|
278
|
-
export const neutralLayer4 = create('neutral-layer-4').withDefault((element) => neutralLayer4Recipe.getValueFor(element).evaluate(element));
|
|
279
|
-
/** @public */
|
|
280
|
-
export const fillColor = create('fill-color').withDefault(element => neutralLayer1.getValueFor(element));
|
|
281
|
-
var ContrastTarget;
|
|
282
|
-
(function (ContrastTarget) {
|
|
283
|
-
ContrastTarget[ContrastTarget["normal"] = 4.5] = "normal";
|
|
284
|
-
ContrastTarget[ContrastTarget["large"] = 3] = "large";
|
|
285
|
-
})(ContrastTarget || (ContrastTarget = {}));
|
|
286
|
-
// Accent Fill
|
|
287
|
-
/** @public */
|
|
288
|
-
export const accentFillRecipe = createNonCss('accent-fill-recipe').withDefault({
|
|
289
|
-
evaluate: (element, reference) => contrastAndDeltaSwatchSetByLuminance(accentPalette.getValueFor(element), reference || fillColor.getValueFor(element), 5, accentFillRestDelta.getValueFor(element), accentFillHoverDelta.getValueFor(element), accentFillActiveDelta.getValueFor(element), accentFillFocusDelta.getValueFor(element), undefined, 8, accentFillRestDelta.getValueFor(element), accentFillHoverDelta.getValueFor(element), accentFillActiveDelta.getValueFor(element), accentFillFocusDelta.getValueFor(element), undefined),
|
|
290
|
-
});
|
|
291
|
-
/** @public */
|
|
292
|
-
export const accentFillRest = create('accent-fill-rest').withDefault((element) => {
|
|
293
|
-
return accentFillRecipe.getValueFor(element).evaluate(element).rest;
|
|
294
|
-
});
|
|
295
|
-
/** @public */
|
|
296
|
-
export const accentFillHover = create('accent-fill-hover').withDefault((element) => {
|
|
297
|
-
return accentFillRecipe.getValueFor(element).evaluate(element).hover;
|
|
298
|
-
});
|
|
299
|
-
/** @public */
|
|
300
|
-
export const accentFillActive = create('accent-fill-active').withDefault((element) => {
|
|
301
|
-
return accentFillRecipe.getValueFor(element).evaluate(element).active;
|
|
302
|
-
});
|
|
303
|
-
/** @public */
|
|
304
|
-
export const accentFillFocus = create('accent-fill-focus').withDefault((element) => {
|
|
305
|
-
return accentFillRecipe.getValueFor(element).evaluate(element).focus;
|
|
306
|
-
});
|
|
307
|
-
// Foreground On Accent
|
|
308
|
-
/** @public */
|
|
309
|
-
export const foregroundOnAccentRecipe = createNonCss('foreground-on-accent-recipe').withDefault({
|
|
310
|
-
evaluate: (element) => foregroundOnAccentSetAlgorithm(accentFillRest.getValueFor(element), accentFillHover.getValueFor(element), accentFillActive.getValueFor(element), accentFillFocus.getValueFor(element), ContrastTarget.normal),
|
|
311
|
-
});
|
|
312
|
-
/** @public */
|
|
313
|
-
export const foregroundOnAccentRest = create('foreground-on-accent-rest').withDefault((element) => foregroundOnAccentRecipe.getValueFor(element).evaluate(element).rest);
|
|
314
|
-
/** @public */
|
|
315
|
-
export const foregroundOnAccentHover = create('foreground-on-accent-hover').withDefault((element) => foregroundOnAccentRecipe.getValueFor(element).evaluate(element).hover);
|
|
316
|
-
/** @public */
|
|
317
|
-
export const foregroundOnAccentActive = create('foreground-on-accent-active').withDefault((element) => foregroundOnAccentRecipe.getValueFor(element).evaluate(element).active);
|
|
318
|
-
/** @public */
|
|
319
|
-
export const foregroundOnAccentFocus = create('foreground-on-accent-focus').withDefault((element) => foregroundOnAccentRecipe.getValueFor(element).evaluate(element).focus);
|
|
320
|
-
// Accent Foreground
|
|
321
|
-
/** @public */
|
|
322
|
-
export const accentForegroundRecipe = createNonCss('accent-foreground-recipe').withDefault({
|
|
323
|
-
evaluate: (element, reference) => contrastAndDeltaSwatchSet(accentPalette.getValueFor(element), reference || fillColor.getValueFor(element), 9.5, accentForegroundRestDelta.getValueFor(element), accentForegroundHoverDelta.getValueFor(element), accentForegroundActiveDelta.getValueFor(element), accentForegroundFocusDelta.getValueFor(element)),
|
|
324
|
-
});
|
|
325
|
-
/** @public */
|
|
326
|
-
export const accentForegroundRest = create('accent-foreground-rest').withDefault((element) => accentForegroundRecipe.getValueFor(element).evaluate(element).rest);
|
|
327
|
-
/** @public */
|
|
328
|
-
export const accentForegroundHover = create('accent-foreground-hover').withDefault((element) => accentForegroundRecipe.getValueFor(element).evaluate(element).hover);
|
|
329
|
-
/** @public */
|
|
330
|
-
export const accentForegroundActive = create('accent-foreground-active').withDefault((element) => accentForegroundRecipe.getValueFor(element).evaluate(element).active);
|
|
331
|
-
/** @public */
|
|
332
|
-
export const accentForegroundFocus = create('accent-foreground-focus').withDefault((element) => accentForegroundRecipe.getValueFor(element).evaluate(element).focus);
|
|
333
|
-
// Accent Stroke Control
|
|
334
|
-
/** @public */
|
|
335
|
-
export const accentStrokeControlRecipe = createNonCss('accent-stroke-control-recipe').withDefault({
|
|
336
|
-
evaluate: (element, reference) => {
|
|
337
|
-
return gradientShadowStrokeAlgorithm(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), -3, -3, -3, -3, 10, 1, undefined, true);
|
|
338
|
-
},
|
|
339
|
-
});
|
|
340
|
-
/** @public */
|
|
341
|
-
export const accentStrokeControlRest = create('accent-stroke-control-rest').withDefault((element) => accentStrokeControlRecipe.getValueFor(element).evaluate(element, accentFillRest.getValueFor(element)).rest);
|
|
342
|
-
/** @public */
|
|
343
|
-
export const accentStrokeControlHover = create('accent-stroke-control-hover').withDefault((element) => accentStrokeControlRecipe.getValueFor(element).evaluate(element, accentFillHover.getValueFor(element)).hover);
|
|
344
|
-
/** @public */
|
|
345
|
-
export const accentStrokeControlActive = create('accent-stroke-control-active').withDefault((element) => accentStrokeControlRecipe.getValueFor(element).evaluate(element, accentFillActive.getValueFor(element)).active);
|
|
346
|
-
/** @public */
|
|
347
|
-
export const accentStrokeControlFocus = create('accent-stroke-control-focus').withDefault((element) => accentStrokeControlRecipe.getValueFor(element).evaluate(element, accentFillFocus.getValueFor(element)).focus);
|
|
348
|
-
// Neutral Fill
|
|
349
|
-
/** @public */
|
|
350
|
-
export const neutralFillRecipe = createNonCss('neutral-fill-recipe').withDefault({
|
|
351
|
-
evaluate: (element, reference) => deltaSwatchSetByLuminance(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillRestDelta.getValueFor(element), neutralFillHoverDelta.getValueFor(element), neutralFillActiveDelta.getValueFor(element), neutralFillFocusDelta.getValueFor(element), undefined, 2, 3, 1, 2, undefined),
|
|
352
|
-
});
|
|
353
|
-
/** @public */
|
|
354
|
-
export const neutralFillRest = create('neutral-fill-rest').withDefault((element) => neutralFillRecipe.getValueFor(element).evaluate(element).rest);
|
|
355
|
-
/** @public */
|
|
356
|
-
export const neutralFillHover = create('neutral-fill-hover').withDefault((element) => neutralFillRecipe.getValueFor(element).evaluate(element).hover);
|
|
357
|
-
/** @public */
|
|
358
|
-
export const neutralFillActive = create('neutral-fill-active').withDefault((element) => neutralFillRecipe.getValueFor(element).evaluate(element).active);
|
|
359
|
-
/** @public */
|
|
360
|
-
export const neutralFillFocus = create('neutral-fill-focus').withDefault((element) => neutralFillRecipe.getValueFor(element).evaluate(element).focus);
|
|
361
|
-
// Neutral Fill Input
|
|
362
|
-
/** @public */
|
|
363
|
-
export const neutralFillInputRecipe = createNonCss('neutral-fill-input-recipe').withDefault({
|
|
364
|
-
evaluate: (element, reference) => deltaSwatchSetByLuminance(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillInputRestDelta.getValueFor(element), neutralFillInputHoverDelta.getValueFor(element), neutralFillInputActiveDelta.getValueFor(element), neutralFillInputFocusDelta.getValueFor(element), undefined, 2, 3, 1, 0, undefined),
|
|
365
|
-
});
|
|
366
|
-
/** @public */
|
|
367
|
-
export const neutralFillInputRest = create('neutral-fill-input-rest').withDefault((element) => neutralFillInputRecipe.getValueFor(element).evaluate(element).rest);
|
|
368
|
-
/** @public */
|
|
369
|
-
export const neutralFillInputHover = create('neutral-fill-input-hover').withDefault((element) => neutralFillInputRecipe.getValueFor(element).evaluate(element).hover);
|
|
370
|
-
/** @public */
|
|
371
|
-
export const neutralFillInputActive = create('neutral-fill-input-active').withDefault((element) => neutralFillInputRecipe.getValueFor(element).evaluate(element).active);
|
|
372
|
-
/** @public */
|
|
373
|
-
export const neutralFillInputFocus = create('neutral-fill-input-focus').withDefault((element) => neutralFillInputRecipe.getValueFor(element).evaluate(element).focus);
|
|
374
|
-
// Neutral Fill Input Alt
|
|
375
|
-
/** @public */
|
|
376
|
-
export const neutralFillInputAltRecipe = createNonCss('neutral-fill-input-alt-recipe').withDefault({
|
|
377
|
-
evaluate: (element, reference) => deltaSwatchSetByLuminance(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillInputAltRestDelta.getValueFor(element), neutralFillInputAltHoverDelta.getValueFor(element), neutralFillInputAltActiveDelta.getValueFor(element), neutralFillInputAltFocusDelta.getValueFor(element), 1, neutralFillInputAltRestDelta.getValueFor(element), neutralFillInputAltRestDelta.getValueFor(element) - neutralFillInputAltHoverDelta.getValueFor(element), neutralFillInputAltRestDelta.getValueFor(element) - neutralFillInputAltActiveDelta.getValueFor(element), neutralFillInputAltFocusDelta.getValueFor(element), 1),
|
|
378
|
-
});
|
|
379
|
-
/** @public */
|
|
380
|
-
export const neutralFillInputAltRest = create('neutral-fill-input-alt-rest').withDefault((element) => neutralFillInputAltRecipe.getValueFor(element).evaluate(element).rest);
|
|
381
|
-
/** @public */
|
|
382
|
-
export const neutralFillInputAltHover = create('neutral-fill-input-alt-hover').withDefault((element) => neutralFillInputAltRecipe.getValueFor(element).evaluate(element).hover);
|
|
383
|
-
/** @public */
|
|
384
|
-
export const neutralFillInputAltActive = create('neutral-fill-input-alt-active').withDefault((element) => neutralFillInputAltRecipe.getValueFor(element).evaluate(element).active);
|
|
385
|
-
/** @public */
|
|
386
|
-
export const neutralFillInputAltFocus = create('neutral-fill-input-alt-focus').withDefault((element) => neutralFillInputAltRecipe.getValueFor(element).evaluate(element).focus);
|
|
387
|
-
// Neutral Fill Layer
|
|
388
|
-
/** @public */
|
|
389
|
-
export const neutralFillLayerRecipe = createNonCss('neutral-fill-layer-recipe').withDefault({
|
|
390
|
-
evaluate: (element, reference) => deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element), neutralFillLayerHoverDelta.getValueFor(element), neutralFillLayerActiveDelta.getValueFor(element), neutralFillLayerRestDelta.getValueFor(element), 1),
|
|
391
|
-
});
|
|
392
|
-
/** @public */
|
|
393
|
-
export const neutralFillLayerRest = create('neutral-fill-layer-rest').withDefault((element) => neutralFillLayerRecipe.getValueFor(element).evaluate(element).rest);
|
|
394
|
-
/** @public */
|
|
395
|
-
export const neutralFillLayerHover = create('neutral-fill-layer-hover').withDefault((element) => neutralFillLayerRecipe.getValueFor(element).evaluate(element).hover);
|
|
396
|
-
/** @public */
|
|
397
|
-
export const neutralFillLayerActive = create('neutral-fill-layer-active').withDefault((element) => neutralFillLayerRecipe.getValueFor(element).evaluate(element).active);
|
|
398
|
-
// Neutral Fill Layer Alt
|
|
399
|
-
/** @public */
|
|
400
|
-
export const neutralFillLayerAltRecipe = createNonCss('neutral-fill-layer-alt-recipe').withDefault({
|
|
401
|
-
evaluate: (element, reference) => deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillLayerAltRestDelta.getValueFor(element), neutralFillLayerAltRestDelta.getValueFor(element), neutralFillLayerAltRestDelta.getValueFor(element), neutralFillLayerAltRestDelta.getValueFor(element)),
|
|
402
|
-
});
|
|
403
|
-
/** @public */
|
|
404
|
-
export const neutralFillLayerAltRest = create('neutral-fill-layer-alt-rest').withDefault((element) => neutralFillLayerAltRecipe.getValueFor(element).evaluate(element).rest);
|
|
405
|
-
// Neutral Fill Secondary
|
|
406
|
-
/** @public */
|
|
407
|
-
export const neutralFillSecondaryRecipe = createNonCss('neutral-fill-secondary-recipe').withDefault({
|
|
408
|
-
evaluate: (element, reference) => deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillSecondaryRestDelta.getValueFor(element), neutralFillSecondaryHoverDelta.getValueFor(element), neutralFillSecondaryActiveDelta.getValueFor(element), neutralFillSecondaryFocusDelta.getValueFor(element)),
|
|
409
|
-
});
|
|
410
|
-
/** @public */
|
|
411
|
-
export const neutralFillSecondaryRest = create('neutral-fill-secondary-rest').withDefault((element) => neutralFillSecondaryRecipe.getValueFor(element).evaluate(element).rest);
|
|
412
|
-
/** @public */
|
|
413
|
-
export const neutralFillSecondaryHover = create('neutral-fill-secondary-hover').withDefault((element) => neutralFillSecondaryRecipe.getValueFor(element).evaluate(element).hover);
|
|
414
|
-
/** @public */
|
|
415
|
-
export const neutralFillSecondaryActive = create('neutral-fill-secondary-active').withDefault((element) => neutralFillSecondaryRecipe.getValueFor(element).evaluate(element).active);
|
|
416
|
-
/** @public */
|
|
417
|
-
export const neutralFillSecondaryFocus = create('neutral-fill-secondary-focus').withDefault((element) => neutralFillSecondaryRecipe.getValueFor(element).evaluate(element).focus);
|
|
418
|
-
// Neutral Fill Stealth
|
|
419
|
-
/** @public */
|
|
420
|
-
export const neutralFillStealthRecipe = createNonCss('neutral-fill-stealth-recipe').withDefault({
|
|
421
|
-
evaluate: (element, reference) => deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillStealthRestDelta.getValueFor(element), neutralFillStealthHoverDelta.getValueFor(element), neutralFillStealthActiveDelta.getValueFor(element), neutralFillStealthFocusDelta.getValueFor(element)),
|
|
422
|
-
});
|
|
423
|
-
/** @public */
|
|
424
|
-
export const neutralFillStealthRest = create('neutral-fill-stealth-rest').withDefault((element) => neutralFillStealthRecipe.getValueFor(element).evaluate(element).rest);
|
|
425
|
-
/** @public */
|
|
426
|
-
export const neutralFillStealthHover = create('neutral-fill-stealth-hover').withDefault((element) => neutralFillStealthRecipe.getValueFor(element).evaluate(element).hover);
|
|
427
|
-
/** @public */
|
|
428
|
-
export const neutralFillStealthActive = create('neutral-fill-stealth-active').withDefault((element) => neutralFillStealthRecipe.getValueFor(element).evaluate(element).active);
|
|
429
|
-
/** @public */
|
|
430
|
-
export const neutralFillStealthFocus = create('neutral-fill-stealth-focus').withDefault((element) => neutralFillStealthRecipe.getValueFor(element).evaluate(element).focus);
|
|
431
|
-
// Neutral Fill Strong
|
|
432
|
-
/** @public */
|
|
433
|
-
export const neutralFillStrongRecipe = createNonCss('neutral-fill-strong-recipe').withDefault({
|
|
434
|
-
evaluate: (element, reference) => contrastAndDeltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), 4.5, neutralFillStrongRestDelta.getValueFor(element), neutralFillStrongHoverDelta.getValueFor(element), neutralFillStrongActiveDelta.getValueFor(element), neutralFillStrongFocusDelta.getValueFor(element)),
|
|
435
|
-
});
|
|
436
|
-
/** @public */
|
|
437
|
-
export const neutralFillStrongRest = create('neutral-fill-strong-rest').withDefault((element) => neutralFillStrongRecipe.getValueFor(element).evaluate(element).rest);
|
|
438
|
-
/** @public */
|
|
439
|
-
export const neutralFillStrongHover = create('neutral-fill-strong-hover').withDefault((element) => neutralFillStrongRecipe.getValueFor(element).evaluate(element).hover);
|
|
440
|
-
/** @public */
|
|
441
|
-
export const neutralFillStrongActive = create('neutral-fill-strong-active').withDefault((element) => neutralFillStrongRecipe.getValueFor(element).evaluate(element).active);
|
|
442
|
-
/** @public */
|
|
443
|
-
export const neutralFillStrongFocus = create('neutral-fill-strong-focus').withDefault((element) => neutralFillStrongRecipe.getValueFor(element).evaluate(element).focus);
|
|
444
|
-
// Neutral Foreground
|
|
445
|
-
/** @public */
|
|
446
|
-
export const neutralForegroundRecipe = createNonCss('neutral-foreground-recipe').withDefault({
|
|
447
|
-
evaluate: (element, reference) => contrastAndDeltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), 16, 0, -19, -30, 0),
|
|
448
|
-
});
|
|
449
|
-
/** @public */
|
|
450
|
-
export const neutralForegroundRest = create('neutral-foreground-rest').withDefault((element) => neutralForegroundRecipe.getValueFor(element).evaluate(element).rest);
|
|
451
|
-
/** @public */
|
|
452
|
-
export const neutralForegroundHover = create('neutral-foreground-hover').withDefault((element) => neutralForegroundRecipe.getValueFor(element).evaluate(element).hover);
|
|
453
|
-
/** @public */
|
|
454
|
-
export const neutralForegroundActive = create('neutral-foreground-active').withDefault((element) => neutralForegroundRecipe.getValueFor(element).evaluate(element).active);
|
|
455
|
-
/** @public */
|
|
456
|
-
export const neutralForegroundFocus = create('neutral-foreground-focus').withDefault((element) => neutralForegroundRecipe.getValueFor(element).evaluate(element).focus);
|
|
457
|
-
// Neutral Foreground Hint
|
|
458
|
-
/** @public */
|
|
459
|
-
export const neutralForegroundHintRecipe = createNonCss('neutral-foreground-hint-recipe').withDefault({
|
|
460
|
-
evaluate: (element, reference) => contrastSwatch(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), 4.5),
|
|
461
|
-
});
|
|
462
|
-
/** @public */
|
|
463
|
-
export const neutralForegroundHint = create('neutral-foreground-hint').withDefault((element) => neutralForegroundHintRecipe.getValueFor(element).evaluate(element));
|
|
464
|
-
// Neutral Stroke
|
|
465
|
-
/** @public */
|
|
466
|
-
export const neutralStrokeRecipe = createNonCss('neutral-stroke-recipe').withDefault({
|
|
467
|
-
evaluate: (element, reference) => {
|
|
468
|
-
return deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralStrokeRestDelta.getValueFor(element), neutralStrokeHoverDelta.getValueFor(element), neutralStrokeActiveDelta.getValueFor(element), neutralStrokeFocusDelta.getValueFor(element));
|
|
469
|
-
},
|
|
470
|
-
});
|
|
471
|
-
/** @public */
|
|
472
|
-
export const neutralStrokeRest = create('neutral-stroke-rest').withDefault((element) => neutralStrokeRecipe.getValueFor(element).evaluate(element).rest);
|
|
473
|
-
/** @public */
|
|
474
|
-
export const neutralStrokeHover = create('neutral-stroke-hover').withDefault((element) => neutralStrokeRecipe.getValueFor(element).evaluate(element).hover);
|
|
475
|
-
/** @public */
|
|
476
|
-
export const neutralStrokeActive = create('neutral-stroke-active').withDefault((element) => neutralStrokeRecipe.getValueFor(element).evaluate(element).active);
|
|
477
|
-
/** @public */
|
|
478
|
-
export const neutralStrokeFocus = create('neutral-stroke-focus').withDefault((element) => neutralStrokeRecipe.getValueFor(element).evaluate(element).focus);
|
|
479
|
-
// Neutral Stroke Control
|
|
480
|
-
/** @public */
|
|
481
|
-
export const neutralStrokeControlRecipe = createNonCss('neutral-stroke-control-recipe').withDefault({
|
|
482
|
-
evaluate: (element, reference) => {
|
|
483
|
-
return gradientShadowStrokeAlgorithm(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralStrokeControlRestDelta.getValueFor(element), neutralStrokeControlHoverDelta.getValueFor(element), neutralStrokeControlActiveDelta.getValueFor(element), neutralStrokeControlFocusDelta.getValueFor(element), 5);
|
|
484
|
-
},
|
|
485
|
-
});
|
|
486
|
-
/** @public */
|
|
487
|
-
export const neutralStrokeControlRest = create('neutral-stroke-control-rest').withDefault((element) => neutralStrokeControlRecipe.getValueFor(element).evaluate(element).rest);
|
|
488
|
-
/** @public */
|
|
489
|
-
export const neutralStrokeControlHover = create('neutral-stroke-control-hover').withDefault((element) => neutralStrokeControlRecipe.getValueFor(element).evaluate(element).hover);
|
|
490
|
-
/** @public */
|
|
491
|
-
export const neutralStrokeControlActive = create('neutral-stroke-control-active').withDefault((element) => neutralStrokeControlRecipe.getValueFor(element).evaluate(element).active);
|
|
492
|
-
/** @public */
|
|
493
|
-
export const neutralStrokeControlFocus = create('neutral-stroke-control-focus').withDefault((element) => neutralStrokeControlRecipe.getValueFor(element).evaluate(element).focus);
|
|
494
|
-
// Neutral Stroke Divider
|
|
495
|
-
/** @public */
|
|
496
|
-
export const neutralStrokeDividerRecipe = createNonCss('neutral-stroke-divider-recipe').withDefault({
|
|
497
|
-
evaluate: (element, reference) => deltaSwatch(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralStrokeDividerRestDelta.getValueFor(element)),
|
|
498
|
-
});
|
|
499
|
-
/** @public */
|
|
500
|
-
export const neutralStrokeDividerRest = create('neutral-stroke-divider-rest').withDefault(element => neutralStrokeDividerRecipe.getValueFor(element).evaluate(element));
|
|
501
|
-
// Neutral Stroke Input
|
|
502
|
-
/** @public */
|
|
503
|
-
export const neutralStrokeInputRecipe = createNonCss('neutral-stroke-input-recipe').withDefault({
|
|
504
|
-
evaluate: (element, reference) => {
|
|
505
|
-
return underlineStrokeAlgorithm(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralStrokeControlRestDelta.getValueFor(element), neutralStrokeControlHoverDelta.getValueFor(element), neutralStrokeControlActiveDelta.getValueFor(element), neutralStrokeControlFocusDelta.getValueFor(element), 20, strokeWidth.getValueFor(element) + 'px');
|
|
506
|
-
},
|
|
507
|
-
});
|
|
508
|
-
/** @public */
|
|
509
|
-
export const neutralStrokeInputRest = create('neutral-stroke-input-rest').withDefault((element) => neutralStrokeInputRecipe.getValueFor(element).evaluate(element).rest);
|
|
510
|
-
/** @public */
|
|
511
|
-
export const neutralStrokeInputHover = create('neutral-stroke-input-hover').withDefault((element) => neutralStrokeInputRecipe.getValueFor(element).evaluate(element).hover);
|
|
512
|
-
/** @public */
|
|
513
|
-
export const neutralStrokeInputActive = create('neutral-stroke-input-active').withDefault((element) => neutralStrokeInputRecipe.getValueFor(element).evaluate(element).active);
|
|
514
|
-
/** @public */
|
|
515
|
-
export const neutralStrokeInputFocus = create('neutral-stroke-input-focus').withDefault((element) => neutralStrokeInputRecipe.getValueFor(element).evaluate(element).focus);
|
|
516
|
-
// Neutral Stroke Layer
|
|
517
|
-
/** @public */
|
|
518
|
-
export const neutralStrokeLayerRecipe = createNonCss('neutral-stroke-layer-recipe').withDefault({
|
|
519
|
-
evaluate: (element, reference) => {
|
|
520
|
-
return deltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralStrokeLayerRestDelta.getValueFor(element), neutralStrokeLayerHoverDelta.getValueFor(element), neutralStrokeLayerActiveDelta.getValueFor(element), neutralStrokeLayerRestDelta.getValueFor(element));
|
|
521
|
-
},
|
|
522
|
-
});
|
|
523
|
-
/** @public */
|
|
524
|
-
export const neutralStrokeLayerRest = create('neutral-stroke-layer-rest').withDefault((element) => neutralStrokeLayerRecipe.getValueFor(element).evaluate(element).rest);
|
|
525
|
-
/** @public */
|
|
526
|
-
export const neutralStrokeLayerHover = create('neutral-stroke-layer-hover').withDefault((element) => neutralStrokeLayerRecipe.getValueFor(element).evaluate(element).hover);
|
|
527
|
-
/** @public */
|
|
528
|
-
export const neutralStrokeLayerActive = create('neutral-stroke-layer-active').withDefault((element) => neutralStrokeLayerRecipe.getValueFor(element).evaluate(element).active);
|
|
529
|
-
// Neutral Stroke Strong
|
|
530
|
-
/** @public */
|
|
531
|
-
export const neutralStrokeStrongRecipe = createNonCss('neutral-stroke-strong-recipe').withDefault({
|
|
532
|
-
evaluate: (element, reference) => contrastAndDeltaSwatchSet(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), 5.5, 0, neutralStrokeStrongHoverDelta.getValueFor(element), neutralStrokeStrongActiveDelta.getValueFor(element), neutralStrokeStrongFocusDelta.getValueFor(element)),
|
|
533
|
-
});
|
|
534
|
-
/** @public */
|
|
535
|
-
export const neutralStrokeStrongRest = create('neutral-stroke-strong-rest').withDefault((element) => neutralStrokeStrongRecipe.getValueFor(element).evaluate(element).rest);
|
|
536
|
-
/** @public */
|
|
537
|
-
export const neutralStrokeStrongHover = create('neutral-stroke-strong-hover').withDefault((element) => neutralStrokeStrongRecipe.getValueFor(element).evaluate(element).hover);
|
|
538
|
-
/** @public */
|
|
539
|
-
export const neutralStrokeStrongActive = create('neutral-stroke-strong-active').withDefault((element) => neutralStrokeStrongRecipe.getValueFor(element).evaluate(element).active);
|
|
540
|
-
/** @public */
|
|
541
|
-
export const neutralStrokeStrongFocus = create('neutral-stroke-strong-focus').withDefault((element) => neutralStrokeStrongRecipe.getValueFor(element).evaluate(element).focus);
|
|
542
|
-
// Focus Stroke Outer
|
|
543
|
-
/** @public */
|
|
544
|
-
export const focusStrokeOuterRecipe = createNonCss('focus-stroke-outer-recipe').withDefault({
|
|
545
|
-
evaluate: (element) => focusStrokeOuterAlgorithm(neutralPalette.getValueFor(element), fillColor.getValueFor(element)),
|
|
546
|
-
});
|
|
547
|
-
/** @public */
|
|
548
|
-
export const focusStrokeOuter = create('focus-stroke-outer').withDefault((element) => focusStrokeOuterRecipe.getValueFor(element).evaluate(element));
|
|
549
|
-
// Focus Stroke Inner
|
|
550
|
-
/** @public */
|
|
551
|
-
export const focusStrokeInnerRecipe = createNonCss('focus-stroke-inner-recipe').withDefault({
|
|
552
|
-
evaluate: (element) => focusStrokeInnerAlgorithm(accentPalette.getValueFor(element), fillColor.getValueFor(element), focusStrokeOuter.getValueFor(element)),
|
|
553
|
-
});
|
|
554
|
-
/** @public */
|
|
555
|
-
export const focusStrokeInner = create('focus-stroke-inner').withDefault((element) => focusStrokeInnerRecipe.getValueFor(element).evaluate(element));
|
|
556
|
-
// Deprecated tokens
|
|
557
|
-
// Foreground On Accent
|
|
558
|
-
/** @public @deprecated Not used */
|
|
559
|
-
export const foregroundOnAccentLargeRecipe = createNonCss('foreground-on-accent-large-recipe').withDefault({
|
|
560
|
-
evaluate: (element) => foregroundOnAccentSetAlgorithm(accentFillRest.getValueFor(element), accentFillHover.getValueFor(element), accentFillActive.getValueFor(element), accentFillFocus.getValueFor(element), ContrastTarget.large),
|
|
561
|
-
});
|
|
562
|
-
/** @public @deprecated Not used */
|
|
563
|
-
export const foregroundOnAccentRestLarge = create('foreground-on-accent-rest-large').withDefault((element) => foregroundOnAccentLargeRecipe.getValueFor(element).evaluate(element).rest);
|
|
564
|
-
/** @public @deprecated Not used */
|
|
565
|
-
export const foregroundOnAccentHoverLarge = create('foreground-on-accent-hover-large').withDefault((element) => foregroundOnAccentLargeRecipe.getValueFor(element).evaluate(element, accentFillHover.getValueFor(element)).hover);
|
|
566
|
-
/** @public @deprecated Not used */
|
|
567
|
-
export const foregroundOnAccentActiveLarge = create('foreground-on-accent-active-large').withDefault((element) => foregroundOnAccentLargeRecipe.getValueFor(element).evaluate(element, accentFillActive.getValueFor(element)).active);
|
|
568
|
-
/** @public @deprecated Not used */
|
|
569
|
-
export const foregroundOnAccentFocusLarge = create('foreground-on-accent-focus-large').withDefault((element) => foregroundOnAccentLargeRecipe.getValueFor(element).evaluate(element, accentFillFocus.getValueFor(element)).focus);
|
|
570
|
-
// Neutral Fill Inverse
|
|
571
|
-
/** @public @deprecated Not used */
|
|
572
|
-
export const neutralFillInverseRestDelta = create('neutral-fill-inverse-rest-delta').withDefault(0);
|
|
573
|
-
/** @public @deprecated Not used */
|
|
574
|
-
export const neutralFillInverseHoverDelta = create('neutral-fill-inverse-hover-delta').withDefault(-3);
|
|
575
|
-
/** @public @deprecated Not used */
|
|
576
|
-
export const neutralFillInverseActiveDelta = create('neutral-fill-inverse-active-delta').withDefault(7);
|
|
577
|
-
/** @public @deprecated Not used */
|
|
578
|
-
export const neutralFillInverseFocusDelta = create('neutral-fill-inverse-focus-delta').withDefault(0);
|
|
579
|
-
/** @deprecated Not used */
|
|
580
|
-
function neutralFillInverse(palette, reference, restDelta, hoverDelta, activeDelta, focusDelta) {
|
|
581
|
-
const direction = directionByIsDark(reference);
|
|
582
|
-
const accessibleIndex = palette.closestIndexOf(palette.colorContrast(reference, 14));
|
|
583
|
-
const accessibleIndex2 = accessibleIndex + direction * Math.abs(restDelta - hoverDelta);
|
|
584
|
-
const indexOneIsRest = direction === 1 ? restDelta < hoverDelta : direction * restDelta > direction * hoverDelta;
|
|
585
|
-
let restIndex;
|
|
586
|
-
let hoverIndex;
|
|
587
|
-
if (indexOneIsRest) {
|
|
588
|
-
restIndex = accessibleIndex;
|
|
589
|
-
hoverIndex = accessibleIndex2;
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
restIndex = accessibleIndex2;
|
|
593
|
-
hoverIndex = accessibleIndex;
|
|
594
|
-
}
|
|
595
|
-
return {
|
|
596
|
-
rest: palette.get(restIndex),
|
|
597
|
-
hover: palette.get(hoverIndex),
|
|
598
|
-
active: palette.get(restIndex + direction * activeDelta),
|
|
599
|
-
focus: palette.get(restIndex + direction * focusDelta),
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
/** @public @deprecated Not used */
|
|
603
|
-
export const neutralFillInverseRecipe = createNonCss('neutral-fill-inverse-recipe').withDefault({
|
|
604
|
-
evaluate: (element, reference) => neutralFillInverse(neutralPalette.getValueFor(element), reference || fillColor.getValueFor(element), neutralFillInverseRestDelta.getValueFor(element), neutralFillInverseHoverDelta.getValueFor(element), neutralFillInverseActiveDelta.getValueFor(element), neutralFillInverseFocusDelta.getValueFor(element)),
|
|
605
|
-
});
|
|
606
|
-
/** @public @deprecated Not used */
|
|
607
|
-
export const neutralFillInverseRest = create('neutral-fill-inverse-rest').withDefault((element) => neutralFillInverseRecipe.getValueFor(element).evaluate(element).rest);
|
|
608
|
-
/** @public @deprecated Not used */
|
|
609
|
-
export const neutralFillInverseHover = create('neutral-fill-inverse-hover').withDefault((element) => neutralFillInverseRecipe.getValueFor(element).evaluate(element).hover);
|
|
610
|
-
/** @public @deprecated Not used */
|
|
611
|
-
export const neutralFillInverseActive = create('neutral-fill-inverse-active').withDefault((element) => neutralFillInverseRecipe.getValueFor(element).evaluate(element).active);
|
|
612
|
-
/** @public @deprecated Not used */
|
|
613
|
-
export const neutralFillInverseFocus = create('neutral-fill-inverse-focus').withDefault((element) => neutralFillInverseRecipe.getValueFor(element).evaluate(element).focus);
|
|
614
|
-
/** @public @deprecated Use controlCornerRadius */
|
|
615
|
-
export const cornerRadius = controlCornerRadius;
|
|
616
|
-
/** @public @deprecated Use layerCornerRadius */
|
|
617
|
-
export const elevatedCornerRadius = layerCornerRadius;
|
|
618
|
-
/** @public @deprecated Use strokeWidth */
|
|
619
|
-
export const outlineWidth = strokeWidth;
|
|
620
|
-
/** @public @deprecated Use focusStrokeWidth */
|
|
621
|
-
export const focusOutlineWidth = focusStrokeWidth;
|
|
622
|
-
/** @public @deprecated Use neutralFillInverseRestDelta */
|
|
623
|
-
export const neutralContrastFillRestDelta = neutralFillInverseRestDelta;
|
|
624
|
-
/** @public @deprecated Use neutralFillInverseHoverDelta */
|
|
625
|
-
export const neutralContrastFillHoverDelta = neutralFillInverseHoverDelta;
|
|
626
|
-
/** @public @deprecated Use neutralFillInverseActiveDelta */
|
|
627
|
-
export const neutralContrastFillActiveDelta = neutralFillInverseActiveDelta;
|
|
628
|
-
/** @public @deprecated Use neutralFillInverseFocusDelta */
|
|
629
|
-
export const neutralContrastFillFocusDelta = neutralFillInverseFocusDelta;
|
|
630
|
-
/** @public @deprecated Use neutralFillLayerRestDelta */
|
|
631
|
-
export const neutralFillCardDelta = neutralFillLayerRestDelta;
|
|
632
|
-
/** @public @deprecated Use neutralFillStrongRestDelta */
|
|
633
|
-
export const neutralFillToggleRestDelta = neutralFillStrongRestDelta;
|
|
634
|
-
/** @public @deprecated Use neutralFillStrongHoverDelta */
|
|
635
|
-
export const neutralFillToggleHoverDelta = neutralFillStrongHoverDelta;
|
|
636
|
-
/** @public @deprecated Use neutralFillStrongActiveDelta */
|
|
637
|
-
export const neutralFillToggleActiveDelta = neutralFillStrongActiveDelta;
|
|
638
|
-
/** @public @deprecated Use neutralFillStrongFocusDelta */
|
|
639
|
-
export const neutralFillToggleFocusDelta = neutralFillStrongFocusDelta;
|
|
640
|
-
/** @public @deprecated Use neutralStrokeDividerRestDelta */
|
|
641
|
-
export const neutralDividerRestDelta = neutralStrokeDividerRestDelta;
|
|
642
|
-
/** @public @deprecated Use neutralLayer1 */
|
|
643
|
-
export const neutralLayerL1 = neutralLayer1;
|
|
644
|
-
/** @public @deprecated Use neutralLayer2 */
|
|
645
|
-
export const neutralLayerL2 = neutralLayer2;
|
|
646
|
-
/** @public @deprecated Use neutralLayer3 */
|
|
647
|
-
export const neutralLayerL3 = neutralLayer3;
|
|
648
|
-
/** @public @deprecated Use neutralLayer4 */
|
|
649
|
-
export const neutralLayerL4 = neutralLayer4;
|
|
650
|
-
/** @public @deprecated Use foregroundOnAccentRest */
|
|
651
|
-
export const accentForegroundCut = foregroundOnAccentRest;
|
|
652
|
-
/** @public @deprecated Use foregroundOnAccentRestLarge */
|
|
653
|
-
export const accentForegroundCutLarge = foregroundOnAccentRestLarge;
|
|
654
|
-
/** @public @deprecated Use neutralStrokeDividerRest */
|
|
655
|
-
export const neutralDivider = neutralStrokeDividerRest;
|
|
656
|
-
/** @public @deprecated Use neutralFillLayerRest */
|
|
657
|
-
export const neutralFillCard = neutralFillLayerRest;
|
|
658
|
-
/** @public @deprecated Use neutralFillInverseRest */
|
|
659
|
-
export const neutralContrastFillRest = neutralFillInverseRest;
|
|
660
|
-
/** @public @deprecated Use neutralFillInverseHover */
|
|
661
|
-
export const neutralContrastFillHover = neutralFillInverseHover;
|
|
662
|
-
/** @public @deprecated Use neutralFillInverseActive */
|
|
663
|
-
export const neutralContrastFillActive = neutralFillInverseActive;
|
|
664
|
-
/** @public @deprecated Use neutralFillInverseFocus */
|
|
665
|
-
export const neutralContrastFillFocus = neutralFillInverseFocus;
|
|
666
|
-
/** @public @deprecated Use neutralFillStrongRest */
|
|
667
|
-
export const neutralFillToggleRest = neutralFillStrongRest;
|
|
668
|
-
/** @public @deprecated Use neutralFillStrongHover */
|
|
669
|
-
export const neutralFillToggleHover = neutralFillStrongHover;
|
|
670
|
-
/** @public @deprecated Use neutralFillStrongActive */
|
|
671
|
-
export const neutralFillToggleActive = neutralFillStrongActive;
|
|
672
|
-
/** @public @deprecated Use neutralFillStrongFocus */
|
|
673
|
-
export const neutralFillToggleFocus = neutralFillStrongFocus;
|
|
674
|
-
/** @public @deprecated Use focusStrokeOuter */
|
|
675
|
-
export const neutralFocus = focusStrokeOuter;
|
|
676
|
-
/** @public @deprecated Use focusStrokeInner */
|
|
677
|
-
export const neutralFocusInnerAccent = focusStrokeInner;
|
|
678
|
-
/** @public @deprecated Use neutralStrokeRest */
|
|
679
|
-
export const neutralOutlineRest = neutralStrokeRest;
|
|
680
|
-
/** @public @deprecated Use neutralStrokeHover */
|
|
681
|
-
export const neutralOutlineHover = neutralStrokeHover;
|
|
682
|
-
/** @public @deprecated Use neutralStrokeActive */
|
|
683
|
-
export const neutralOutlineActive = neutralStrokeActive;
|
|
684
|
-
/** @public @deprecated Use neutralStrokeFocus */
|
|
685
|
-
export const neutralOutlineFocus = neutralStrokeFocus;
|