@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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fluentui/web-components",
|
|
3
3
|
"description": "A library of Fluent Web Components",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "3.0.0-alpha.1",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft",
|
|
8
8
|
"url": "https://discord.gg/FcSNfg4"
|
|
@@ -72,10 +72,18 @@
|
|
|
72
72
|
"mocha": "7.2.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@microsoft/fast-
|
|
76
|
-
"@microsoft/fast-
|
|
77
|
-
"@microsoft/fast-
|
|
78
|
-
"@
|
|
75
|
+
"@microsoft/fast-element": "^2.0.0-beta.17",
|
|
76
|
+
"@microsoft/fast-foundation": "^3.0.0-alpha.21",
|
|
77
|
+
"@microsoft/fast-web-utilities": "^6.0.0",
|
|
78
|
+
"@fluentui/tokens": "1.0.0-alpha.2",
|
|
79
79
|
"tslib": "^1.13.0"
|
|
80
|
+
},
|
|
81
|
+
"beachball": {
|
|
82
|
+
"disallowedChangeTypes": [
|
|
83
|
+
"major",
|
|
84
|
+
"minor",
|
|
85
|
+
"patch"
|
|
86
|
+
],
|
|
87
|
+
"tag": "alpha"
|
|
80
88
|
}
|
|
81
89
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { teamsDarkTheme, teamsLightTheme, webDarkTheme, webLightTheme } from '@fluentui/tokens';
|
|
2
|
+
import { setTheme } from '../src/theme';
|
|
3
|
+
|
|
4
|
+
const themes = {
|
|
5
|
+
'web-light': webLightTheme,
|
|
6
|
+
'web-dark': webDarkTheme,
|
|
7
|
+
'teams-light': teamsLightTheme,
|
|
8
|
+
'teams-dark': teamsDarkTheme,
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function switchTheme(themeName: keyof typeof themes) {
|
|
12
|
+
setTheme(themes[themeName]);
|
|
13
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { ComponentTypes } from './component-types';
|
|
3
|
-
export interface SwatchInfo {
|
|
4
|
-
index: number;
|
|
5
|
-
color: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class App extends FASTElement {
|
|
9
|
-
canvasElement: HTMLDivElement;
|
|
10
|
-
componentType: ComponentTypes;
|
|
11
|
-
neutralColor: string;
|
|
12
|
-
private neutralColorChanged;
|
|
13
|
-
neutralPalette: string[];
|
|
14
|
-
accentColor: string;
|
|
15
|
-
private accentColorChanged;
|
|
16
|
-
accentPalette: string[];
|
|
17
|
-
showOnlyLayerBackgrounds: boolean;
|
|
18
|
-
connectedCallback(): void;
|
|
19
|
-
backgrounds(): Array<SwatchInfo>;
|
|
20
|
-
private layerRecipes;
|
|
21
|
-
private resolveLayerRecipes;
|
|
22
|
-
private get lightModeLayers();
|
|
23
|
-
private get darkModeLayers();
|
|
24
|
-
controlPaneHandler(e: CustomEvent): void;
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum AccentColors {
|
|
2
|
-
black = "#000000",
|
|
3
|
-
white = "#FFFFFF",
|
|
4
|
-
magenta = "#DA1A5F",
|
|
5
|
-
blue = "#0078D4",
|
|
6
|
-
green = "#107C10",
|
|
7
|
-
purple = "#5C2D91",
|
|
8
|
-
orange = "#D83B01",
|
|
9
|
-
yellow = "#F2C812"
|
|
10
|
-
}
|
|
11
|
-
export declare const neutralColors: string[];
|
|
12
|
-
export declare const defaultAccentColor: string;
|
|
13
|
-
export declare const defaultNeutralColor: string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
-
import { ComponentTypes } from '../component-types';
|
|
3
|
-
export declare class AppColorBlock extends FASTElement {
|
|
4
|
-
index: number;
|
|
5
|
-
component: ComponentTypes;
|
|
6
|
-
color: string;
|
|
7
|
-
private colorChanged;
|
|
8
|
-
layerName?: string;
|
|
9
|
-
private updateColor;
|
|
10
|
-
}
|
package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.d.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { ColorHSV, ColorRGBA64 } from '@microsoft/fast-colors';
|
|
2
|
-
import { FormAssociatedColorPicker } from './color-picker.form-associated';
|
|
3
|
-
/**
|
|
4
|
-
* This is currently experimental, any use of the color picker must include the following
|
|
5
|
-
* imports and register with the DesignSystem
|
|
6
|
-
*
|
|
7
|
-
* import { fastTextField } from "@microsoft/fast-components";
|
|
8
|
-
* import { DesignSystem } from "@microsoft/fast-foundation";
|
|
9
|
-
* DesignSystem.getOrCreate().register(fastTextField());
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Simple class for storing all of the color picker UI observable values.
|
|
13
|
-
*/
|
|
14
|
-
declare class ColorPickerUI {
|
|
15
|
-
RGBColor: ColorRGBA64;
|
|
16
|
-
HSVColor: ColorHSV;
|
|
17
|
-
HueCSSColor: string;
|
|
18
|
-
HuePosition: number;
|
|
19
|
-
SatValTopPos: number;
|
|
20
|
-
SatValLeftPos: number;
|
|
21
|
-
AlphaPos: number;
|
|
22
|
-
constructor(rgbColor: ColorRGBA64, hsvColor: ColorHSV);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A Color Picker Custom HTML Element.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
export declare class ColorPicker extends FormAssociatedColorPicker {
|
|
30
|
-
/**
|
|
31
|
-
* When true, the control will be immutable by user interaction. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute} for more information.
|
|
32
|
-
* @public
|
|
33
|
-
* @remarks
|
|
34
|
-
* HTML Attribute: readonly
|
|
35
|
-
*/
|
|
36
|
-
readOnly: boolean;
|
|
37
|
-
private readOnlyChanged;
|
|
38
|
-
/**
|
|
39
|
-
* Indicates that this element should get focus after the page finishes loading. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefautofocus | autofocus HTML attribute} for more information.
|
|
40
|
-
* @public
|
|
41
|
-
* @remarks
|
|
42
|
-
* HTML Attribute: autofocus
|
|
43
|
-
*/
|
|
44
|
-
autofocus: boolean;
|
|
45
|
-
private autofocusChanged;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the placeholder value of the element, generally used to provide a hint to the user.
|
|
48
|
-
* @public
|
|
49
|
-
* @remarks
|
|
50
|
-
* HTML Attribute: placeholder
|
|
51
|
-
* Using this attribute does is not a valid substitute for a labeling element.
|
|
52
|
-
*/
|
|
53
|
-
placeholder: string;
|
|
54
|
-
private placeholderChanged;
|
|
55
|
-
/**
|
|
56
|
-
* Flag indicating that the color UI is visible.
|
|
57
|
-
*/
|
|
58
|
-
open: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Flag indicating that the color UI is activily listening for mouse move and up events.
|
|
61
|
-
*/
|
|
62
|
-
mouseActive: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Object containing all of the properties displayed in the color picker UI.
|
|
65
|
-
*/
|
|
66
|
-
uiValues: ColorPickerUI;
|
|
67
|
-
/**
|
|
68
|
-
* A reference to the internal input element
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
control: HTMLInputElement;
|
|
72
|
-
/**
|
|
73
|
-
* A reference to the HTMLElement that is the current target of mouse move events.
|
|
74
|
-
*/
|
|
75
|
-
private currentMouseTarget;
|
|
76
|
-
/**
|
|
77
|
-
* A string indicating which of the three graphical elements is the current mouse target. ['sv','h','a']
|
|
78
|
-
*/
|
|
79
|
-
private currentMouseParam;
|
|
80
|
-
/**
|
|
81
|
-
* The ColorRGBA64 representation of the current color value.
|
|
82
|
-
*/
|
|
83
|
-
private currentRGBColor;
|
|
84
|
-
/**
|
|
85
|
-
* The ColorHSV representation of the current color value.
|
|
86
|
-
*/
|
|
87
|
-
private currentHSVColor;
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
connectedCallback(): void;
|
|
92
|
-
/**
|
|
93
|
-
* Handles the focus event. When the template has focus the color UI will be visable.
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
handleFocus(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Handles the blur event. Hides the color UI when the template loses focus.
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
handleBlur(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Handles the internal control's `input` event. This event is fired whenever a user types directly into the primary text field.
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
handleTextInput(): void;
|
|
107
|
-
/**
|
|
108
|
-
* Handles the mouse down event on the Sat/Val square and Hue and Alpha sliders. Sets the current targeted element and begins listening for mouse move events.
|
|
109
|
-
* @param param ['sv','h','a'] - string specifying which color property is being modified with the mouse.
|
|
110
|
-
* @param e - A reference to the mouse event.
|
|
111
|
-
*/
|
|
112
|
-
handleMouseDown(param: string, e: MouseEvent): void;
|
|
113
|
-
/**
|
|
114
|
-
* Handles the mouse move event within the color UI. Is only called once the mouseActive is set to true.
|
|
115
|
-
* @param e - Reference to the Mouse Event
|
|
116
|
-
*/
|
|
117
|
-
handleMouseMove(e: MouseEvent): void;
|
|
118
|
-
/**
|
|
119
|
-
* Handles the mouse up event within the color UI. Disables listening for mouse move events.
|
|
120
|
-
* @param e - Reference to the Mouse Event
|
|
121
|
-
*/
|
|
122
|
-
handleMouseUp(e: MouseEvent): void;
|
|
123
|
-
/**
|
|
124
|
-
* Handles changes to any of the color property text inputs typed by the user.
|
|
125
|
-
* @param param ['r','g','b','a','h','s','v'] - String specifying which color value is being modified.
|
|
126
|
-
* @param e - Reference to the event.
|
|
127
|
-
*/
|
|
128
|
-
handleTextValueInput(param: string, e: Event): void;
|
|
129
|
-
/**
|
|
130
|
-
* Change event handler for inner control.
|
|
131
|
-
* @remarks
|
|
132
|
-
* "Change" events are not `composable` so they will not
|
|
133
|
-
* permeate the shadow DOM boundary. This fn effectively proxies
|
|
134
|
-
* the change event, emitting a `change` event whenever the internal
|
|
135
|
-
* control emits a `change` event
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
138
|
-
handleChange(): void;
|
|
139
|
-
/**
|
|
140
|
-
* Initialize internal color values based on input value and set the UI elements
|
|
141
|
-
* to the correct positions / values.
|
|
142
|
-
*/
|
|
143
|
-
private initColorValues;
|
|
144
|
-
/**
|
|
145
|
-
* Determines if a number value is within the valid range for an R, G, or B color channel.
|
|
146
|
-
* @param val - Number to be evaluated.
|
|
147
|
-
*/
|
|
148
|
-
private isValidRGB;
|
|
149
|
-
/**
|
|
150
|
-
* Determines if a number value is within the valid range for the alpha channel.
|
|
151
|
-
* @param val - Number to be evaluated.
|
|
152
|
-
*/
|
|
153
|
-
private isValidAlpha;
|
|
154
|
-
/**
|
|
155
|
-
* Determines if a number value is within the valid range for the saturation or value color channels.
|
|
156
|
-
* @param val - Number to be evaluated.
|
|
157
|
-
*/
|
|
158
|
-
private isValidSaturationValue;
|
|
159
|
-
/**
|
|
160
|
-
* Determines if a number value is within the valid range for the hue color channel.
|
|
161
|
-
* @param val - Number to be evaluated.
|
|
162
|
-
*/
|
|
163
|
-
private isValidHue;
|
|
164
|
-
/**
|
|
165
|
-
* Checks if input is a valid CSS color.
|
|
166
|
-
* After placing an invalid css color value into a color style property the value will be an empty string when read back.
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
private isValideCSSColor;
|
|
170
|
-
/**
|
|
171
|
-
* Update the current color values to a new HSV color.
|
|
172
|
-
* @param hue The new Hue value.
|
|
173
|
-
* @param sat The new saturation value.
|
|
174
|
-
* @param val The new Value value.
|
|
175
|
-
*/
|
|
176
|
-
private updateHSV;
|
|
177
|
-
/**
|
|
178
|
-
* Update the current color values based on the mouse position over one of the three UI elements (hue, saturation/value, or alpha).
|
|
179
|
-
* @param pageX The pageX position of the mouse.
|
|
180
|
-
* @param pageY The pageY position of the mouse.
|
|
181
|
-
*/
|
|
182
|
-
private updateFromMouseEvent;
|
|
183
|
-
/**
|
|
184
|
-
* Update the UI values with the current color. This updates the position of the indicators over the Sat/Val, Hue and Alpha elements
|
|
185
|
-
* and the values in all of the text fields at once.
|
|
186
|
-
* @param updateValue - Flag to trigger updating of the main text field value and emitting the change event.
|
|
187
|
-
*/
|
|
188
|
-
private updateUIValues;
|
|
189
|
-
}
|
|
190
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormAssociated, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
declare class _ColorPicker extends FoundationElement {
|
|
3
|
-
}
|
|
4
|
-
interface _ColorPicker extends FormAssociated {
|
|
5
|
-
}
|
|
6
|
-
declare const FormAssociatedColorPicker_base: typeof _ColorPicker;
|
|
7
|
-
/**
|
|
8
|
-
* A form-associated base class for the component.
|
|
9
|
-
*
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare class FormAssociatedColorPicker extends FormAssociatedColorPicker_base {
|
|
13
|
-
proxy: HTMLInputElement;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ElementStyles } from "@microsoft/fast-element";
|
|
2
|
-
import { ElementDefinitionContext, FoundationElementDefinition } from "@microsoft/fast-foundation";
|
|
3
|
-
export declare const colorPickerStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import { ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
3
|
-
import { ColorPicker } from './color-picker';
|
|
4
|
-
/**
|
|
5
|
-
* The template for the color picker component.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare const colorPickerTemplate: (context: ElementDefinitionContext) => ViewTemplate<ColorPicker>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ColorPicker } from './color-picker';
|
|
2
|
-
/**
|
|
3
|
-
* A web component used for updating color values.
|
|
4
|
-
*
|
|
5
|
-
* @alpha
|
|
6
|
-
* @remarks
|
|
7
|
-
* HTML Element: \<color-picker\>
|
|
8
|
-
*/
|
|
9
|
-
export declare const fastToolingColorPicker: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof ColorPicker>;
|
package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare class ControlPane extends FoundationElement {
|
|
3
|
-
componentType: string;
|
|
4
|
-
accentColor: string;
|
|
5
|
-
neutralColor: string;
|
|
6
|
-
showOnlyLayerBackgrounds: boolean;
|
|
7
|
-
updateFormValue(field: string, value: any): void;
|
|
8
|
-
}
|
package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const controlPaneStyles: import("@microsoft/fast-element").ElementStyles;
|
package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const gradientStyles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DesignToken, DesignTokenChangeRecord, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
export declare class LayerBackground extends FoundationElement {
|
|
3
|
-
baseLayerLuminance: number;
|
|
4
|
-
private baseLayerLuminanceChanged;
|
|
5
|
-
backgroundLayerRecipe: string;
|
|
6
|
-
private backgroundLayerRecipeChanged;
|
|
7
|
-
private updateBackgroundColor;
|
|
8
|
-
handleChange(record: DesignTokenChangeRecord<DesignToken<any>>): void;
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
}
|
|
11
|
-
export declare const layerBackgroundTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
12
|
-
export declare const layerBackgroundStyles: import("@microsoft/fast-element").ElementStyles;
|
|
13
|
-
export declare const layerBackground: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
14
|
-
baseName: string;
|
|
15
|
-
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
16
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
17
|
-
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
18
|
-
baseName: string;
|
|
19
|
-
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
20
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
21
|
-
}, typeof LayerBackground>;
|
package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sampleAppStyles: import("@microsoft/fast-element").ElementStyles;
|
package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.template.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sampleAppTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const samplePageStyles: import("@microsoft/fast-element").ElementStyles;
|
package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.template.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const samplePageTemplate: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DesignToken, FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import { Swatch } from '../../../../index-rollup';
|
|
3
|
-
export declare enum SwatchTypes {
|
|
4
|
-
fill = "fill",
|
|
5
|
-
foreground = "foreground",
|
|
6
|
-
outline = "outline"
|
|
7
|
-
}
|
|
8
|
-
export declare class AppSwatch extends FoundationElement {
|
|
9
|
-
type: SwatchTypes;
|
|
10
|
-
recipeName: string;
|
|
11
|
-
foregroundRecipe?: DesignToken<Swatch>;
|
|
12
|
-
foregroundRecipeChanged(): void;
|
|
13
|
-
fillRecipe?: DesignToken<Swatch>;
|
|
14
|
-
fillRecipeChanged(): void;
|
|
15
|
-
outlineRecipe?: DesignToken<Swatch>;
|
|
16
|
-
outlineRecipeChanged(): void;
|
|
17
|
-
iconStyle: string;
|
|
18
|
-
contrastMessage: string;
|
|
19
|
-
colorValue: string;
|
|
20
|
-
connectedCallback(): void;
|
|
21
|
-
private updateObservables;
|
|
22
|
-
private tokenCSS;
|
|
23
|
-
private evaluateToken;
|
|
24
|
-
private updateIconStyle;
|
|
25
|
-
private formatContrast;
|
|
26
|
-
private formatBackgroundContrast;
|
|
27
|
-
private formatForegroundContrast;
|
|
28
|
-
private updateContrastMessage;
|
|
29
|
-
private updateColorValue;
|
|
30
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { layerBackground } from './components/layer-background';
|
|
2
|
-
export { layerBackground };
|
|
3
|
-
export declare const appComponents: import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
4
|
-
baseName: string;
|
|
5
|
-
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
6
|
-
styles: import("@microsoft/fast-element").ElementStyles;
|
|
7
|
-
}, typeof import("./components/layer-background").LayerBackground>[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import { AccordionItemOptions, ElementDefinitionContext } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const accordionItemStyles: (context: ElementDefinitionContext, definition: AccordionItemOptions) => ElementStyles;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AccordionItem, AccordionItemOptions } from '@microsoft/fast-foundation';
|
|
2
|
-
/**
|
|
3
|
-
* The Fluent Accordion Item Element. Implements {@link @microsoft/fast-foundation#AccordionItem},
|
|
4
|
-
* {@link @microsoft/fast-foundation#accordionItemTemplate}
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
* @remarks
|
|
9
|
-
* HTML Element: \<fluent-accordion-item\>
|
|
10
|
-
*/
|
|
11
|
-
export declare const fluentAccordionItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<AccordionItemOptions> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<AccordionItemOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
12
|
-
/**
|
|
13
|
-
* Styles for AccordionItem
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare const accordionItemStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: AccordionItemOptions) => import("@microsoft/fast-element").ElementStyles;
|
|
17
|
-
export { AccordionItem };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("@microsoft/fast-foundation").Accordion>;
|
|
4
|
-
argTypes: {
|
|
5
|
-
expandMode: {
|
|
6
|
-
options: string[];
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
defaultValue: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
15
|
-
export declare const Accordion: any;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const accordionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Accordion } from '@microsoft/fast-foundation';
|
|
2
|
-
export * from './accordion-item/index';
|
|
3
|
-
/**
|
|
4
|
-
* The Fluent Accordion Element. Implements {@link @microsoft/fast-foundation#Accordion},
|
|
5
|
-
* {@link @microsoft/fast-foundation#accordionTemplate}
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
|
-
* @remarks
|
|
10
|
-
* HTML Element: \<fluent-accordion\>
|
|
11
|
-
*/
|
|
12
|
-
export declare const fluentAccordion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Accordion>;
|
|
13
|
-
/**
|
|
14
|
-
* Styles for Accordion
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export declare const accordionStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: import("@microsoft/fast-foundation").FoundationElementDefinition) => import("@microsoft/fast-element").ElementStyles;
|
|
18
|
-
/**
|
|
19
|
-
* Base class for Accordion
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export { Accordion };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./index").Anchor>;
|
|
4
|
-
argTypes: {
|
|
5
|
-
appearance: {
|
|
6
|
-
options: string[];
|
|
7
|
-
control: {
|
|
8
|
-
type: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const Anchor: any;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const anchorStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Anchor as FoundationAnchor } from '@microsoft/fast-foundation';
|
|
2
|
-
import { ButtonAppearance } from '../button';
|
|
3
|
-
/**
|
|
4
|
-
* Types of anchor appearance.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare type AnchorAppearance = ButtonAppearance | 'hypertext';
|
|
8
|
-
/**
|
|
9
|
-
* The Fluent version of Anchor
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export declare class Anchor extends FoundationAnchor {
|
|
13
|
-
/**
|
|
14
|
-
* The appearance the anchor should have.
|
|
15
|
-
*
|
|
16
|
-
* @public
|
|
17
|
-
* @remarks
|
|
18
|
-
* HTML Attribute: appearance
|
|
19
|
-
*/
|
|
20
|
-
appearance: AnchorAppearance;
|
|
21
|
-
appearanceChanged(oldValue: AnchorAppearance, newValue: AnchorAppearance): void;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
connectedCallback(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Applies 'icon-only' class when there is only an SVG in the default slot
|
|
28
|
-
*
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
defaultSlottedContentChanged(): void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Styles for Anchor
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare const anchorStyles: (context: import("@microsoft/fast-foundation").ElementDefinitionContext, definition: import("@microsoft/fast-foundation").FoundationElementDefinition) => import("@microsoft/fast-element").ElementStyles;
|
|
38
|
-
/**
|
|
39
|
-
* The Fluent Anchor Element. Implements {@link @microsoft/fast-foundation#Anchor},
|
|
40
|
-
* {@link @microsoft/fast-foundation#anchorTemplate}
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @public
|
|
44
|
-
* @remarks
|
|
45
|
-
* HTML Element: \<fluent-anchor\>
|
|
46
|
-
*
|
|
47
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/delegatesFocus | delegatesFocus}
|
|
48
|
-
*/
|
|
49
|
-
export declare const fluentAnchor: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof Anchor>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ElementStyles } from '@microsoft/fast-element';
|
|
2
|
-
import { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const anchoredRegionStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
|