@fluentui/web-components 2.5.10 → 3.0.0-alpha.1
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 +16 -32
- package/CHANGELOG.md +6 -15
- package/dist/dts/index-rollup.d.ts +0 -7
- package/dist/dts/index.d.ts +1 -49
- package/dist/dts/theme/design-tokens.d.ts +379 -0
- package/dist/dts/theme/index.d.ts +2 -0
- package/dist/dts/theme/set-theme.d.ts +6 -0
- package/dist/dts/{anchored-region/anchored-region.stories.d.ts → theme/theme.stories.d.ts} +1 -2
- package/dist/esm/index-rollup.js +0 -11
- package/dist/esm/index.js +1 -49
- package/dist/esm/theme/design-tokens.js +381 -0
- package/dist/esm/theme/index.js +2 -0
- package/dist/esm/theme/set-theme.js +11 -0
- package/dist/esm/theme/theme.stories.js +21 -0
- package/dist/fluent-web-components.api.json +6 -19807
- package/dist/web-components.d.ts +1 -2980
- package/dist/web-components.js +2 -21988
- package/dist/web-components.min.js +1 -254
- package/docs/api-report.md +1 -1723
- package/package.json +13 -5
- package/public/theme-switch.ts +13 -0
- 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/accordion/accordion.styles.d.ts +0 -3
- package/dist/dts/accordion/index.d.ts +0 -22
- 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.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/badge/badge.styles.d.ts +0 -3
- package/dist/dts/badge/index.d.ts +0 -29
- 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/divider/divider.styles.d.ts +0 -3
- package/dist/dts/divider/index.d.ts +0 -21
- 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/fluent-design-system.d.ts +0 -9
- 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/index.d.ts +0 -5
- 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/index.d.ts +0 -21
- package/dist/dts/switch/switch.stories.d.ts +0 -18
- package/dist/dts/switch/switch.styles.d.ts +0 -3
- 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.styles.js +0 -13
- package/dist/esm/accordion/accordion.vscode.definition.json +0 -35
- package/dist/esm/accordion/index.js +0 -27
- 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.styles.js +0 -40
- package/dist/esm/badge/badge.vscode.definition.json +0 -60
- package/dist/esm/badge/index.js +0 -45
- 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/recipe.js +0 -1
- 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.styles.js +0 -11
- package/dist/esm/divider/divider.vscode.definition.json +0 -29
- package/dist/esm/divider/index.js +0 -26
- 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/fluent-design-system.js +0 -11
- 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/index.js +0 -5
- 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/index.js +0 -31
- package/dist/esm/switch/switch.stories.js +0 -42
- package/dist/esm/switch/switch.styles.js +0 -213
- 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/public/switches.ts +0 -24
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1.1,
|
|
3
|
-
"tags": [
|
|
4
|
-
{
|
|
5
|
-
"name": "fluent-slider-label",
|
|
6
|
-
"title": "Slider label",
|
|
7
|
-
"description": "The Fluent UI slider-label element",
|
|
8
|
-
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
"name": "hide-mark",
|
|
11
|
-
"title": "Hide mark",
|
|
12
|
-
"description": "Hides the tick mark",
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"default": false,
|
|
15
|
-
"required": false
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "disabled",
|
|
19
|
-
"title": "Disabled",
|
|
20
|
-
"description": "Sets the disabled state of the label",
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false,
|
|
23
|
-
"required": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "position",
|
|
27
|
-
"title": "Position",
|
|
28
|
-
"description": "The position of the label relative to the min and max value of the parent",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"default": false,
|
|
31
|
-
"required": false
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"slots": [
|
|
35
|
-
{
|
|
36
|
-
"name": "",
|
|
37
|
-
"title": "Default slot",
|
|
38
|
-
"description": "The content of the slider label"
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { direction as directionDesignToken } from '../design-tokens';
|
|
2
|
-
/**
|
|
3
|
-
* Behavior to conditionally apply LTR and RTL stylesheets. To determine which to apply,
|
|
4
|
-
* the behavior will use the nearest DesignSystemProvider's 'direction' design system value.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { css } from "@microsoft/fast-element";
|
|
10
|
-
* import { DirectionalStyleSheetBehavior } from "@microsoft/fast-foundation";
|
|
11
|
-
*
|
|
12
|
-
* css`
|
|
13
|
-
* // ...
|
|
14
|
-
* `.withBehaviors(new DirectionalStyleSheetBehavior(
|
|
15
|
-
* css`:host { content: "ltr"}`),
|
|
16
|
-
* css`:host { content: "rtl"}`),
|
|
17
|
-
* )
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export class DirectionalStyleSheetBehavior {
|
|
21
|
-
constructor(ltr, rtl) {
|
|
22
|
-
this.cache = new WeakMap();
|
|
23
|
-
this.ltr = ltr;
|
|
24
|
-
this.rtl = rtl;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
bind(source) {
|
|
30
|
-
this.attach(source);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
unbind(source) {
|
|
36
|
-
const cache = this.cache.get(source);
|
|
37
|
-
if (cache) {
|
|
38
|
-
directionDesignToken.unsubscribe(cache);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
attach(source) {
|
|
42
|
-
const subscriber = this.cache.get(source) || new DirectionalStyleSheetBehaviorSubscription(this.ltr, this.rtl, source);
|
|
43
|
-
const value = directionDesignToken.getValueFor(source);
|
|
44
|
-
directionDesignToken.subscribe(subscriber);
|
|
45
|
-
subscriber.attach(value);
|
|
46
|
-
this.cache.set(source, subscriber);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Subscription for {@link DirectionalStyleSheetBehavior}
|
|
51
|
-
*/
|
|
52
|
-
class DirectionalStyleSheetBehaviorSubscription {
|
|
53
|
-
constructor(ltr, rtl, source) {
|
|
54
|
-
this.ltr = ltr;
|
|
55
|
-
this.rtl = rtl;
|
|
56
|
-
this.source = source;
|
|
57
|
-
this.attached = null;
|
|
58
|
-
}
|
|
59
|
-
handleChange({ target, token }) {
|
|
60
|
-
this.attach(token.getValueFor(this.source));
|
|
61
|
-
}
|
|
62
|
-
attach(direction) {
|
|
63
|
-
if (this.attached !== this[direction]) {
|
|
64
|
-
if (this.attached !== null) {
|
|
65
|
-
this.source.$fastController.removeStyles(this.attached);
|
|
66
|
-
}
|
|
67
|
-
this.attached = this[direction];
|
|
68
|
-
if (this.attached !== null) {
|
|
69
|
-
this.source.$fastController.addStyles(this.attached);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* Define shadow algorithms.
|
|
4
|
-
*
|
|
5
|
-
* TODO: The --background-luminance will need to be derived from JavaScript. For now
|
|
6
|
-
* this is hard-coded to a 1, the relative luminance of pure white.
|
|
7
|
-
* https://github.com/microsoft/fast/issues/2778
|
|
8
|
-
* opacity was `calc(.11 * (2 - var(--background-luminance, 1)))`
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
* @deprecated Use elevationShadow design token
|
|
12
|
-
*/
|
|
13
|
-
export const ambientShadow = '0 0 2px rgba(0, 0, 0, 0.14)';
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated Use elevationShadow design token
|
|
17
|
-
*/
|
|
18
|
-
export const directionalShadow = '0 calc(var(--elevation) * 0.5px) calc((var(--elevation) * 1px)) rgba(0, 0, 0, 0.2)';
|
|
19
|
-
/**
|
|
20
|
-
* Applies the box-shadow CSS rule set to the elevation formula.
|
|
21
|
-
* Control this formula with the --elevation CSS Custom Property
|
|
22
|
-
* by setting --elevation to a number.
|
|
23
|
-
*
|
|
24
|
-
* @public
|
|
25
|
-
* @deprecated Use elevationShadow design token
|
|
26
|
-
*/
|
|
27
|
-
export const elevation = `box-shadow: ${ambientShadow}, ${directionalShadow};`;
|
|
28
|
-
/**
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
export const elevationShadowRecipe = DesignToken.create({
|
|
32
|
-
name: 'elevation-shadow',
|
|
33
|
-
cssCustomPropertyName: null,
|
|
34
|
-
}).withDefault({
|
|
35
|
-
evaluate: (element, size, reference) => {
|
|
36
|
-
let ambientOpacity = 0.12;
|
|
37
|
-
let directionalOpacity = 0.14;
|
|
38
|
-
if (size > 16) {
|
|
39
|
-
ambientOpacity = 0.2;
|
|
40
|
-
directionalOpacity = 0.24;
|
|
41
|
-
}
|
|
42
|
-
const ambient = `0 0 2px rgba(0, 0, 0, ${ambientOpacity})`;
|
|
43
|
-
const directional = `0 calc(${size} * 0.5px) calc((${size} * 1px)) rgba(0, 0, 0, ${directionalOpacity})`;
|
|
44
|
-
return `${ambient}, ${directional}`;
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
/** @public */
|
|
48
|
-
export const elevationShadowCardRestSize = DesignToken.create('elevation-shadow-card-rest-size').withDefault(4);
|
|
49
|
-
/** @public */
|
|
50
|
-
export const elevationShadowCardHoverSize = DesignToken.create('elevation-shadow-card-hover-size').withDefault(8);
|
|
51
|
-
/** @public */
|
|
52
|
-
export const elevationShadowCardActiveSize = DesignToken.create('elevation-shadow-card-active-size').withDefault(0);
|
|
53
|
-
/** @public */
|
|
54
|
-
export const elevationShadowCardFocusSize = DesignToken.create('elevation-shadow-card-focus-size').withDefault(8);
|
|
55
|
-
/** @public */
|
|
56
|
-
export const elevationShadowCardRest = DesignToken.create('elevation-shadow-card-rest').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowCardRestSize.getValueFor(element)));
|
|
57
|
-
/** @public */
|
|
58
|
-
export const elevationShadowCardHover = DesignToken.create('elevation-shadow-card-hover').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowCardHoverSize.getValueFor(element)));
|
|
59
|
-
/** @public */
|
|
60
|
-
export const elevationShadowCardActive = DesignToken.create('elevation-shadow-card-active').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowCardActiveSize.getValueFor(element)));
|
|
61
|
-
/** @public */
|
|
62
|
-
export const elevationShadowCardFocus = DesignToken.create('elevation-shadow-card-focus').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowCardFocusSize.getValueFor(element)));
|
|
63
|
-
/** @public */
|
|
64
|
-
export const elevationShadowTooltipSize = DesignToken.create('elevation-shadow-tooltip-size').withDefault(16);
|
|
65
|
-
/** @public */
|
|
66
|
-
export const elevationShadowTooltip = DesignToken.create('elevation-shadow-tooltip').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowTooltipSize.getValueFor(element)));
|
|
67
|
-
/** @public */
|
|
68
|
-
export const elevationShadowFlyoutSize = DesignToken.create('elevation-shadow-flyout-size').withDefault(32);
|
|
69
|
-
/** @public */
|
|
70
|
-
export const elevationShadowFlyout = DesignToken.create('elevation-shadow-flyout').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowFlyoutSize.getValueFor(element)));
|
|
71
|
-
/** @public */
|
|
72
|
-
export const elevationShadowDialogSize = DesignToken.create('elevation-shadow-dialog-size').withDefault(128);
|
|
73
|
-
/** @public */
|
|
74
|
-
export const elevationShadowDialog = DesignToken.create('elevation-shadow-dialog').withDefault((element) => elevationShadowRecipe.getValueFor(element).evaluate(element, elevationShadowDialogSize.getValueFor(element)));
|
package/dist/esm/styles/focus.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { cssPartial } from '@microsoft/fast-element';
|
|
2
|
-
import { focusStrokeOuter, focusStrokeWidth, strokeWidth } from '../design-tokens';
|
|
3
|
-
/**
|
|
4
|
-
* Partial CSS for the focus treatment for most typical sized components like Button, Menu Item, etc.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export const focusTreatmentBase = cssPartial `
|
|
9
|
-
outline: calc(${focusStrokeWidth} * 1px) solid ${focusStrokeOuter};
|
|
10
|
-
outline-offset: calc(${focusStrokeWidth} * -1px);
|
|
11
|
-
`;
|
|
12
|
-
/**
|
|
13
|
-
* Partial CSS for the focus treatment for tighter components with spacing constraints, like Checkbox
|
|
14
|
-
* and Radio, or plain text like Hypertext appearance Anchor or Breadcrumb Item.
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
export const focusTreatmentTight = cssPartial `
|
|
19
|
-
outline: calc(${focusStrokeWidth} * 1px) solid ${focusStrokeOuter};
|
|
20
|
-
outline-offset: calc(${strokeWidth} * 1px);
|
|
21
|
-
`;
|
package/dist/esm/styles/index.js
DELETED
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { SystemColors } from '@microsoft/fast-web-utilities';
|
|
3
|
-
import { display, focusVisible, forcedColorsStylesheetBehavior, } from '@microsoft/fast-foundation';
|
|
4
|
-
import { heightNumber } from '../size';
|
|
5
|
-
import { accentFillActive, accentFillHover, accentFillRest, accentForegroundActive, accentForegroundHover, accentForegroundRest, accentStrokeControlActive, accentStrokeControlHover, accentStrokeControlRest, controlCornerRadius, density, designUnit, focusStrokeInner, focusStrokeWidth, foregroundOnAccentActive, foregroundOnAccentHover, foregroundOnAccentRest, neutralFillActive, neutralFillHover, neutralFillRest, neutralFillStealthActive, neutralFillStealthHover, neutralFillStealthRest, neutralForegroundRest, neutralStrokeActive, neutralStrokeControlActive, neutralStrokeControlHover, neutralStrokeControlRest, neutralStrokeHover, neutralStrokeRest, strokeWidth, } from '../../design-tokens';
|
|
6
|
-
import { typeRampBase } from '../../styles/patterns/type-ramp';
|
|
7
|
-
import { focusTreatmentBase, focusTreatmentTight } from '../focus';
|
|
8
|
-
/**
|
|
9
|
-
* The base styles for button controls, without `appearance` visual differences.
|
|
10
|
-
*
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export const baseButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
14
|
-
${display('inline-flex')}
|
|
15
|
-
|
|
16
|
-
:host {
|
|
17
|
-
position: relative;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
${typeRampBase}
|
|
20
|
-
height: calc(${heightNumber} * 1px);
|
|
21
|
-
min-width: calc(${heightNumber} * 1px);
|
|
22
|
-
color: ${neutralForegroundRest};
|
|
23
|
-
border-radius: calc(${controlCornerRadius} * 1px);
|
|
24
|
-
fill: currentcolor;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.control {
|
|
28
|
-
border: calc(${strokeWidth} * 1px) solid transparent;
|
|
29
|
-
flex-grow: 1;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
align-items: center;
|
|
34
|
-
padding: 0 calc((10 + (${designUnit} * 2 * ${density})) * 1px);
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
outline: none;
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
color: inherit;
|
|
39
|
-
border-radius: inherit;
|
|
40
|
-
fill: inherit;
|
|
41
|
-
font-family: inherit;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.control,
|
|
45
|
-
.end,
|
|
46
|
-
.start {
|
|
47
|
-
font: inherit;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.control.icon-only {
|
|
51
|
-
padding: 0;
|
|
52
|
-
line-height: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.control:${focusVisible} {
|
|
56
|
-
${focusTreatmentBase}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.control::-moz-focus-inner {
|
|
60
|
-
border: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.content {
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.start,
|
|
68
|
-
.end {
|
|
69
|
-
display: flex;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.start {
|
|
74
|
-
margin-inline-end: 11px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.end {
|
|
78
|
-
margin-inline-start: 11px;
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
export const NeutralButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
85
|
-
.control {
|
|
86
|
-
background: padding-box linear-gradient(${neutralFillRest}, ${neutralFillRest}),
|
|
87
|
-
border-box ${neutralStrokeControlRest};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:host(${interactivitySelector}:hover) .control {
|
|
91
|
-
background: padding-box linear-gradient(${neutralFillHover}, ${neutralFillHover}),
|
|
92
|
-
border-box ${neutralStrokeControlHover};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host(${interactivitySelector}:active) .control {
|
|
96
|
-
background: padding-box linear-gradient(${neutralFillActive}, ${neutralFillActive}),
|
|
97
|
-
border-box ${neutralStrokeControlActive};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:host(${nonInteractivitySelector}) .control {
|
|
101
|
-
background: padding-box linear-gradient(${neutralFillRest}, ${neutralFillRest}),
|
|
102
|
-
border-box ${neutralStrokeRest};
|
|
103
|
-
}
|
|
104
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
105
|
-
.control {
|
|
106
|
-
background: ${SystemColors.ButtonFace};
|
|
107
|
-
border-color: ${SystemColors.ButtonText};
|
|
108
|
-
color: ${SystemColors.ButtonText};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:host(${interactivitySelector}:hover) .control,
|
|
112
|
-
:host(${interactivitySelector}:active) .control {
|
|
113
|
-
forced-color-adjust: none;
|
|
114
|
-
background: ${SystemColors.HighlightText};
|
|
115
|
-
border-color: ${SystemColors.Highlight};
|
|
116
|
-
color: ${SystemColors.Highlight};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
:host(${nonInteractivitySelector}) .control {
|
|
120
|
-
background: transparent;
|
|
121
|
-
border-color: ${SystemColors.GrayText};
|
|
122
|
-
color: ${SystemColors.GrayText};
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.control:${focusVisible} {
|
|
126
|
-
outline-color: ${SystemColors.CanvasText};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:host([href]) .control {
|
|
130
|
-
background: transparent;
|
|
131
|
-
border-color: ${SystemColors.LinkText};
|
|
132
|
-
color: ${SystemColors.LinkText};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([href]:hover) .control,
|
|
136
|
-
:host([href]:active) .control {
|
|
137
|
-
background: transparent;
|
|
138
|
-
border-color: ${SystemColors.CanvasText};
|
|
139
|
-
color: ${SystemColors.CanvasText};
|
|
140
|
-
}
|
|
141
|
-
`));
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
|
-
export const AccentButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
146
|
-
.control {
|
|
147
|
-
background: padding-box linear-gradient(${accentFillRest}, ${accentFillRest}),
|
|
148
|
-
border-box ${accentStrokeControlRest};
|
|
149
|
-
color: ${foregroundOnAccentRest};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:host(${interactivitySelector}:hover) .control {
|
|
153
|
-
background: padding-box linear-gradient(${accentFillHover}, ${accentFillHover}),
|
|
154
|
-
border-box ${accentStrokeControlHover};
|
|
155
|
-
color: ${foregroundOnAccentHover};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host(${interactivitySelector}:active) .control {
|
|
159
|
-
background: padding-box linear-gradient(${accentFillActive}, ${accentFillActive}),
|
|
160
|
-
border-box ${accentStrokeControlActive};
|
|
161
|
-
color: ${foregroundOnAccentActive};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host(${nonInteractivitySelector}) .control {
|
|
165
|
-
background: ${accentFillRest};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.control:${focusVisible} {
|
|
169
|
-
box-shadow: 0 0 0 calc(${focusStrokeWidth} * 1px) ${focusStrokeInner} inset !important;
|
|
170
|
-
}
|
|
171
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
172
|
-
.control {
|
|
173
|
-
forced-color-adjust: none;
|
|
174
|
-
background: ${SystemColors.Highlight};
|
|
175
|
-
color: ${SystemColors.HighlightText};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
:host(${interactivitySelector}:hover) .control,
|
|
179
|
-
:host(${interactivitySelector}:active) .control {
|
|
180
|
-
background: ${SystemColors.HighlightText};
|
|
181
|
-
border-color: ${SystemColors.Highlight};
|
|
182
|
-
color: ${SystemColors.Highlight};
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host(${nonInteractivitySelector}) .control {
|
|
186
|
-
background: transparent;
|
|
187
|
-
border-color: ${SystemColors.GrayText};
|
|
188
|
-
color: ${SystemColors.GrayText};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.control:${focusVisible} {
|
|
192
|
-
outline-color: ${SystemColors.CanvasText};
|
|
193
|
-
box-shadow: 0 0 0 calc(${focusStrokeWidth} * 1px) ${SystemColors.HighlightText} inset !important;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
:host([href]) .control {
|
|
197
|
-
background: ${SystemColors.LinkText};
|
|
198
|
-
color: ${SystemColors.HighlightText};
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:host([href]:hover) .control,
|
|
202
|
-
:host([href]:active) .control {
|
|
203
|
-
background: ${SystemColors.ButtonFace};
|
|
204
|
-
border-color: ${SystemColors.LinkText};
|
|
205
|
-
color: ${SystemColors.LinkText};
|
|
206
|
-
}
|
|
207
|
-
`));
|
|
208
|
-
/**
|
|
209
|
-
* @internal
|
|
210
|
-
*/
|
|
211
|
-
export const HypertextStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
212
|
-
:host {
|
|
213
|
-
height: auto;
|
|
214
|
-
font-family: inherit;
|
|
215
|
-
font-size: inherit;
|
|
216
|
-
line-height: inherit;
|
|
217
|
-
min-width: 0;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.control {
|
|
221
|
-
display: inline;
|
|
222
|
-
padding: 0;
|
|
223
|
-
border: none;
|
|
224
|
-
box-shadow: none;
|
|
225
|
-
line-height: 1;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
:host(${interactivitySelector}) .control {
|
|
229
|
-
color: ${accentForegroundRest};
|
|
230
|
-
text-decoration: underline 1px;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
:host(${interactivitySelector}:hover) .control {
|
|
234
|
-
color: ${accentForegroundHover};
|
|
235
|
-
text-decoration: none;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
:host(${interactivitySelector}:active) .control {
|
|
239
|
-
color: ${accentForegroundActive};
|
|
240
|
-
text-decoration: none;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.control:${focusVisible} {
|
|
244
|
-
${focusTreatmentTight}
|
|
245
|
-
}
|
|
246
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
247
|
-
:host(${interactivitySelector}) .control {
|
|
248
|
-
color: ${SystemColors.LinkText};
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
:host(${interactivitySelector}:hover) .control,
|
|
252
|
-
:host(${interactivitySelector}:active) .control {
|
|
253
|
-
color: ${SystemColors.CanvasText};
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.control:${focusVisible} {
|
|
257
|
-
outline-color: ${SystemColors.CanvasText};
|
|
258
|
-
}
|
|
259
|
-
`));
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
export const LightweightButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
264
|
-
:host {
|
|
265
|
-
color: ${accentForegroundRest};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.control {
|
|
269
|
-
background: ${neutralFillStealthRest};
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
:host(${interactivitySelector}:hover) .control {
|
|
273
|
-
background: ${neutralFillStealthHover};
|
|
274
|
-
color: ${accentForegroundHover};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
:host(${interactivitySelector}:active) .control {
|
|
278
|
-
background: ${neutralFillStealthActive};
|
|
279
|
-
color: ${accentForegroundActive};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
:host(${nonInteractivitySelector}) .control {
|
|
283
|
-
background: ${neutralFillStealthRest};
|
|
284
|
-
}
|
|
285
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
286
|
-
:host {
|
|
287
|
-
color: ${SystemColors.ButtonText};
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.control {
|
|
291
|
-
forced-color-adjust: none;
|
|
292
|
-
background: transparent;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
:host(${interactivitySelector}:hover) .control,
|
|
296
|
-
:host(${interactivitySelector}:active) .control {
|
|
297
|
-
background: transparent;
|
|
298
|
-
border-color: ${SystemColors.ButtonText};
|
|
299
|
-
color: ${SystemColors.ButtonText};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
:host(${nonInteractivitySelector}) .control {
|
|
303
|
-
background: transparent;
|
|
304
|
-
color: ${SystemColors.GrayText};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.control:${focusVisible} {
|
|
308
|
-
outline-color: ${SystemColors.CanvasText};
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
:host([href]) .control {
|
|
312
|
-
color: ${SystemColors.LinkText};
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
:host([href]:hover) .control,
|
|
316
|
-
:host([href]:active) .control {
|
|
317
|
-
border-color: ${SystemColors.LinkText};
|
|
318
|
-
color: ${SystemColors.LinkText};
|
|
319
|
-
}
|
|
320
|
-
`));
|
|
321
|
-
/**
|
|
322
|
-
* @internal
|
|
323
|
-
*/
|
|
324
|
-
export const OutlineButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
325
|
-
.control {
|
|
326
|
-
background: transparent !important;
|
|
327
|
-
border-color: ${neutralStrokeRest};
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
:host(${interactivitySelector}:hover) .control {
|
|
331
|
-
border-color: ${neutralStrokeHover};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
:host(${interactivitySelector}:active) .control {
|
|
335
|
-
border-color: ${neutralStrokeActive};
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
:host(${nonInteractivitySelector}) .control {
|
|
339
|
-
background: transparent !important;
|
|
340
|
-
border-color: ${neutralStrokeRest};
|
|
341
|
-
}
|
|
342
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
343
|
-
.control {
|
|
344
|
-
border-color: ${SystemColors.ButtonText};
|
|
345
|
-
color: ${SystemColors.ButtonText};
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
:host(${interactivitySelector}:hover) .control,
|
|
349
|
-
:host(${interactivitySelector}:active) .control {
|
|
350
|
-
background: ${SystemColors.HighlightText};
|
|
351
|
-
border-color: ${SystemColors.Highlight};
|
|
352
|
-
color: ${SystemColors.Highlight};
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
:host(${nonInteractivitySelector}) .control {
|
|
356
|
-
border-color: ${SystemColors.GrayText};
|
|
357
|
-
color: ${SystemColors.GrayText};
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.control:${focusVisible} {
|
|
361
|
-
outline-color: ${SystemColors.CanvasText};
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
:host([href]) .control {
|
|
365
|
-
border-color: ${SystemColors.LinkText};
|
|
366
|
-
color: ${SystemColors.LinkText};
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
:host([href]:hover) .control,
|
|
370
|
-
:host([href]:active) .control {
|
|
371
|
-
border-color: ${SystemColors.CanvasText};
|
|
372
|
-
color: ${SystemColors.CanvasText};
|
|
373
|
-
}
|
|
374
|
-
`));
|
|
375
|
-
/**
|
|
376
|
-
* @internal
|
|
377
|
-
*/
|
|
378
|
-
export const StealthButtonStyles = (context, definition, interactivitySelector, nonInteractivitySelector = '[disabled]') => css `
|
|
379
|
-
.control {
|
|
380
|
-
background: ${neutralFillStealthRest};
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
:host(${interactivitySelector}:hover) .control {
|
|
384
|
-
background: ${neutralFillStealthHover};
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
:host(${interactivitySelector}:active) .control {
|
|
388
|
-
background: ${neutralFillStealthActive};
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
:host(${nonInteractivitySelector}) .control {
|
|
392
|
-
background: ${neutralFillStealthRest};
|
|
393
|
-
}
|
|
394
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
395
|
-
.control {
|
|
396
|
-
forced-color-adjust: none;
|
|
397
|
-
background: transparent;
|
|
398
|
-
color: ${SystemColors.ButtonText};
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
:host(${interactivitySelector}:hover) .control,
|
|
402
|
-
:host(${interactivitySelector}:active) .control {
|
|
403
|
-
background: transparent;
|
|
404
|
-
border-color: ${SystemColors.ButtonText};
|
|
405
|
-
color: ${SystemColors.ButtonText};
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
:host(${nonInteractivitySelector}) .control {
|
|
409
|
-
background: transparent;
|
|
410
|
-
color: ${SystemColors.GrayText};
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.control:${focusVisible} {
|
|
414
|
-
outline-color: ${SystemColors.CanvasText};
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
:host([href]) .control {
|
|
418
|
-
color: ${SystemColors.LinkText};
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
:host([href]:hover) .control,
|
|
422
|
-
:host([href]:active) .control {
|
|
423
|
-
background: transparent;
|
|
424
|
-
border-color: ${SystemColors.LinkText};
|
|
425
|
-
color: ${SystemColors.LinkText};
|
|
426
|
-
}
|
|
427
|
-
`));
|