@fluentui/web-components 2.5.12 → 3.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +348 -1
- package/CHANGELOG.md +196 -100
- package/dist/dts/accordion/accordion.d.ts +7 -0
- package/dist/dts/accordion/accordion.definition.d.ts +11 -0
- package/dist/dts/accordion/accordion.styles.d.ts +1 -3
- package/dist/dts/accordion/accordion.template.d.ts +3 -0
- package/dist/dts/accordion/define.d.ts +1 -0
- package/dist/dts/accordion/index.d.ts +4 -22
- package/dist/dts/accordion-item/accordion-item.d.ts +33 -0
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +11 -0
- package/dist/dts/accordion-item/accordion-item.options.d.ts +27 -0
- package/dist/dts/accordion-item/accordion-item.styles.d.ts +1 -0
- package/dist/dts/accordion-item/accordion-item.template.d.ts +7 -0
- package/dist/dts/accordion-item/index.d.ts +5 -0
- package/dist/dts/avatar/avatar.d.ts +97 -0
- package/dist/dts/avatar/avatar.definition.d.ts +9 -0
- package/dist/dts/avatar/avatar.options.d.ts +142 -0
- package/dist/dts/avatar/avatar.styles.d.ts +4 -0
- package/dist/dts/avatar/avatar.template.d.ts +8 -0
- package/dist/dts/avatar/define.d.ts +1 -0
- package/dist/dts/avatar/index.d.ts +5 -0
- package/dist/dts/badge/badge.d.ts +49 -0
- package/dist/dts/badge/badge.definition.d.ts +11 -0
- package/dist/dts/badge/badge.options.d.ts +73 -0
- package/dist/dts/badge/badge.styles.d.ts +4 -3
- package/dist/dts/badge/badge.template.d.ts +9 -0
- package/dist/dts/badge/define.d.ts +1 -0
- package/dist/dts/badge/index.d.ts +5 -29
- package/dist/dts/counter-badge/counter-badge.d.ts +90 -0
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +11 -0
- package/dist/dts/counter-badge/counter-badge.options.d.ts +69 -0
- package/dist/dts/counter-badge/counter-badge.styles.d.ts +4 -0
- package/dist/dts/counter-badge/counter-badge.template.d.ts +7 -0
- package/dist/dts/counter-badge/define.d.ts +1 -0
- package/dist/dts/counter-badge/index.d.ts +5 -0
- package/dist/dts/divider/define.d.ts +1 -0
- package/dist/dts/divider/divider.d.ts +31 -0
- package/dist/dts/divider/divider.definition.d.ts +9 -0
- package/dist/dts/divider/divider.options.d.ts +40 -0
- package/dist/dts/divider/divider.styles.d.ts +4 -3
- package/dist/dts/divider/divider.template.d.ts +7 -0
- package/dist/dts/divider/index.d.ts +5 -21
- package/dist/dts/fluent-design-system.d.ts +5 -9
- package/dist/dts/image/define.d.ts +1 -0
- package/dist/dts/image/image.d.ts +48 -0
- package/dist/dts/image/image.definition.d.ts +9 -0
- package/dist/dts/image/image.options.d.ts +27 -0
- package/dist/dts/image/image.styles.d.ts +5 -0
- package/dist/dts/image/image.template.d.ts +7 -0
- package/dist/dts/image/index.d.ts +5 -0
- package/dist/dts/index-rollup.d.ts +1 -8
- package/dist/dts/index.d.ts +12 -49
- package/dist/dts/progress-bar/define.d.ts +1 -0
- package/dist/dts/progress-bar/index.d.ts +5 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +30 -0
- package/dist/dts/progress-bar/progress-bar.definition.d.ts +10 -0
- package/dist/dts/progress-bar/progress-bar.options.d.ts +41 -0
- package/dist/dts/progress-bar/progress-bar.styles.d.ts +4 -0
- package/dist/dts/progress-bar/progress-bar.template.d.ts +3 -0
- package/dist/dts/spinner/define.d.ts +1 -0
- package/dist/dts/spinner/index.d.ts +5 -0
- package/dist/dts/spinner/spinner.d.ts +25 -0
- package/dist/dts/spinner/spinner.definition.d.ts +11 -0
- package/dist/dts/spinner/spinner.options.d.ts +32 -0
- package/dist/dts/spinner/spinner.styles.d.ts +1 -0
- package/dist/dts/spinner/spinner.template.d.ts +3 -0
- package/dist/dts/styles/index.d.ts +1 -5
- package/dist/dts/styles/partials/badge.partials.d.ts +28 -0
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/switch/define.d.ts +1 -0
- package/dist/dts/switch/index.d.ts +5 -21
- package/dist/dts/switch/switch.d.ts +13 -0
- package/dist/dts/switch/switch.definition.d.ts +9 -0
- package/dist/dts/switch/switch.options.d.ts +15 -0
- package/dist/dts/switch/switch.styles.d.ts +1 -3
- package/dist/dts/switch/switch.template.d.ts +3 -0
- package/dist/dts/text/define.d.ts +1 -0
- package/dist/dts/text/index.d.ts +5 -0
- package/dist/dts/text/text.d.ts +91 -0
- package/dist/dts/text/text.definition.d.ts +10 -0
- package/dist/dts/text/text.options.d.ts +67 -0
- package/dist/dts/text/text.styles.d.ts +4 -0
- package/dist/dts/text/text.template.d.ts +6 -0
- package/dist/dts/theme/design-tokens.d.ts +384 -0
- package/dist/dts/theme/index.d.ts +2 -0
- package/dist/dts/theme/set-theme.d.ts +6 -0
- package/dist/dts/utils/get-initials.d.ts +18 -0
- package/dist/esm/accordion/accordion.definition.js +19 -0
- package/dist/esm/accordion/accordion.definition.js.map +1 -0
- package/dist/esm/accordion/accordion.js +8 -0
- package/dist/esm/accordion/accordion.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +9 -11
- package/dist/esm/accordion/accordion.styles.js.map +1 -0
- package/dist/esm/accordion/accordion.template.js +3 -0
- package/dist/esm/accordion/accordion.template.js.map +1 -0
- package/dist/esm/accordion/define.js +4 -0
- package/dist/esm/accordion/define.js.map +1 -0
- package/dist/esm/accordion/index.js +5 -27
- package/dist/esm/accordion/index.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +19 -0
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.js +29 -0
- package/dist/esm/accordion-item/accordion-item.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.options.js +17 -0
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.styles.js +197 -0
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.template.js +37 -0
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -0
- package/dist/esm/accordion-item/define.js +4 -0
- package/dist/esm/accordion-item/define.js.map +1 -0
- package/dist/esm/accordion-item/index.js +6 -0
- package/dist/esm/accordion-item/index.js.map +1 -0
- package/dist/esm/avatar/avatar.definition.js +17 -0
- package/dist/esm/avatar/avatar.definition.js.map +1 -0
- package/dist/esm/avatar/avatar.js +92 -0
- package/dist/esm/avatar/avatar.js.map +1 -0
- package/dist/esm/avatar/avatar.options.js +87 -0
- package/dist/esm/avatar/avatar.options.js.map +1 -0
- package/dist/esm/avatar/avatar.styles.js +476 -0
- package/dist/esm/avatar/avatar.styles.js.map +1 -0
- package/dist/esm/avatar/avatar.template.js +28 -0
- package/dist/esm/avatar/avatar.template.js.map +1 -0
- package/dist/esm/avatar/define.js +4 -0
- package/dist/esm/avatar/define.js.map +1 -0
- package/dist/esm/avatar/index.js +6 -0
- package/dist/esm/avatar/index.js.map +1 -0
- package/dist/esm/badge/badge.definition.js +19 -0
- package/dist/esm/badge/badge.definition.js.map +1 -0
- package/dist/esm/badge/badge.js +43 -0
- package/dist/esm/badge/badge.js.map +1 -0
- package/dist/esm/badge/badge.options.js +46 -0
- package/dist/esm/badge/badge.options.js.map +1 -0
- package/dist/esm/badge/badge.styles.js +26 -36
- package/dist/esm/badge/badge.styles.js.map +1 -0
- package/dist/esm/badge/badge.template.js +15 -0
- package/dist/esm/badge/badge.template.js.map +1 -0
- package/dist/esm/badge/define.js +4 -0
- package/dist/esm/badge/define.js.map +1 -0
- package/dist/esm/badge/index.js +6 -45
- package/dist/esm/badge/index.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +19 -0
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.js +90 -0
- package/dist/esm/counter-badge/counter-badge.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.options.js +43 -0
- package/dist/esm/counter-badge/counter-badge.options.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.styles.js +31 -0
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.template.js +13 -0
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -0
- package/dist/esm/counter-badge/define.js +4 -0
- package/dist/esm/counter-badge/define.js.map +1 -0
- package/dist/esm/counter-badge/index.js +6 -0
- package/dist/esm/counter-badge/index.js.map +1 -0
- package/dist/esm/divider/define.js +4 -0
- package/dist/esm/divider/define.js.map +1 -0
- package/dist/esm/divider/divider.definition.js +17 -0
- package/dist/esm/divider/divider.definition.js.map +1 -0
- package/dist/esm/divider/divider.js +21 -0
- package/dist/esm/divider/divider.js.map +1 -0
- package/dist/esm/divider/divider.options.js +31 -0
- package/dist/esm/divider/divider.options.js.map +1 -0
- package/dist/esm/divider/divider.styles.js +109 -9
- package/dist/esm/divider/divider.styles.js.map +1 -0
- package/dist/esm/divider/divider.template.js +7 -0
- package/dist/esm/divider/divider.template.js.map +1 -0
- package/dist/esm/divider/index.js +6 -26
- package/dist/esm/divider/index.js.map +1 -0
- package/dist/esm/fluent-design-system.js +6 -11
- package/dist/esm/fluent-design-system.js.map +1 -0
- package/dist/esm/image/define.js +4 -0
- package/dist/esm/image/define.js.map +1 -0
- package/dist/esm/image/image.definition.js +17 -0
- package/dist/esm/image/image.definition.js.map +1 -0
- package/dist/esm/image/image.js +24 -0
- package/dist/esm/image/image.js.map +1 -0
- package/dist/esm/image/image.options.js +21 -0
- package/dist/esm/image/image.options.js.map +1 -0
- package/dist/esm/image/image.styles.js +52 -0
- package/dist/esm/image/image.styles.js.map +1 -0
- package/dist/esm/image/image.template.js +7 -0
- package/dist/esm/image/image.template.js.map +1 -0
- package/dist/esm/image/index.js +6 -0
- package/dist/esm/image/index.js.map +1 -0
- package/dist/esm/index-rollup.js +2 -12
- package/dist/esm/index-rollup.js.map +1 -0
- package/dist/esm/index.js +13 -49
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/progress-bar/define.js +4 -0
- package/dist/esm/progress-bar/define.js.map +1 -0
- package/dist/esm/progress-bar/index.js +6 -0
- package/dist/esm/progress-bar/index.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.definition.js +18 -0
- package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +29 -0
- package/dist/esm/progress-bar/progress-bar.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.options.js +26 -0
- package/dist/esm/progress-bar/progress-bar.options.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.styles.js +156 -0
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.template.js +6 -0
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -0
- package/dist/esm/spinner/define.js +4 -0
- package/dist/esm/spinner/define.js.map +1 -0
- package/dist/esm/spinner/index.js +6 -0
- package/dist/esm/spinner/index.js.map +1 -0
- package/dist/esm/spinner/spinner.definition.js +19 -0
- package/dist/esm/spinner/spinner.definition.js.map +1 -0
- package/dist/esm/spinner/spinner.js +16 -0
- package/dist/esm/spinner/spinner.js.map +1 -0
- package/dist/esm/spinner/spinner.options.js +22 -0
- package/dist/esm/spinner/spinner.options.js.map +1 -0
- package/dist/esm/spinner/spinner.styles.js +96 -0
- package/dist/esm/spinner/spinner.styles.js.map +1 -0
- package/dist/esm/spinner/spinner.template.js +22 -0
- package/dist/esm/spinner/spinner.template.js.map +1 -0
- package/dist/esm/styles/index.js +2 -5
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/partials/badge.partials.js +273 -0
- package/dist/esm/styles/partials/badge.partials.js.map +1 -0
- package/dist/esm/styles/partials/index.js +2 -0
- package/dist/esm/styles/partials/index.js.map +1 -0
- package/dist/esm/switch/define.js +4 -0
- package/dist/esm/switch/define.js.map +1 -0
- package/dist/esm/switch/index.js +6 -31
- package/dist/esm/switch/index.js.map +1 -0
- package/dist/esm/switch/switch.definition.js +17 -0
- package/dist/esm/switch/switch.definition.js.map +1 -0
- package/dist/esm/switch/switch.js +9 -0
- package/dist/esm/switch/switch.js.map +1 -0
- package/dist/esm/switch/switch.options.js +10 -0
- package/dist/esm/switch/switch.options.js.map +1 -0
- package/dist/esm/switch/switch.styles.js +113 -212
- package/dist/esm/switch/switch.styles.js.map +1 -0
- package/dist/esm/switch/switch.template.js +5 -0
- package/dist/esm/switch/switch.template.js.map +1 -0
- package/dist/esm/text/define.js +4 -0
- package/dist/esm/text/define.js.map +1 -0
- package/dist/esm/text/index.js +6 -0
- package/dist/esm/text/index.js.map +1 -0
- package/dist/esm/text/text.definition.js +18 -0
- package/dist/esm/text/text.definition.js.map +1 -0
- package/dist/esm/text/text.js +92 -0
- package/dist/esm/text/text.js.map +1 -0
- package/dist/esm/text/text.options.js +46 -0
- package/dist/esm/text/text.options.js.map +1 -0
- package/dist/esm/text/text.styles.js +107 -0
- package/dist/esm/text/text.styles.js.map +1 -0
- package/dist/esm/text/text.template.js +6 -0
- package/dist/esm/text/text.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +387 -0
- package/dist/esm/theme/design-tokens.js.map +1 -0
- package/dist/esm/theme/index.js +3 -0
- package/dist/esm/theme/index.js.map +1 -0
- package/dist/esm/theme/set-theme.js +12 -0
- package/dist/esm/theme/set-theme.js.map +1 -0
- package/dist/esm/utils/get-initials.js +83 -0
- package/dist/esm/utils/get-initials.js.map +1 -0
- package/dist/fluent-web-components.api.json +8224 -11431
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/web-components.d.ts +1496 -2404
- package/dist/web-components.js +5585 -20170
- package/dist/web-components.min.js +287 -239
- package/docs/api-report.md +1118 -1032
- package/package.json +84 -23
- package/build/clean.js +0 -29
- package/build/transform-fragments.js +0 -29
- package/dist/dts/_docs/design-system/color-explorer/app.d.ts +0 -25
- package/dist/dts/_docs/design-system/color-explorer/colors.d.ts +0 -13
- package/dist/dts/_docs/design-system/color-explorer/component-types.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/color-block.d.ts +0 -10
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.d.ts +0 -190
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.d.ts +0 -15
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/color-picker.template.d.ts +0 -8
- package/dist/dts/_docs/design-system/color-explorer/components/color-picker/index.d.ts +0 -9
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.d.ts +0 -8
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/control-pane.template.d.ts +0 -2
- package/dist/dts/_docs/design-system/color-explorer/components/control-pane/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.d.ts +0 -5
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/gradient.template.d.ts +0 -2
- package/dist/dts/_docs/design-system/color-explorer/components/gradient/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/layer-background/index.d.ts +0 -21
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-app/sample-app.template.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/index.d.ts +0 -6
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.d.ts +0 -3
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/sample-page/sample-page.template.d.ts +0 -1
- package/dist/dts/_docs/design-system/color-explorer/components/swatch.d.ts +0 -30
- package/dist/dts/_docs/design-system/color-explorer/custom-elements.d.ts +0 -7
- package/dist/dts/_docs/design-system/color-explorer/index.d.ts +0 -2
- package/dist/dts/accordion/accordion-item/accordion-item.styles.d.ts +0 -3
- package/dist/dts/accordion/accordion-item/index.d.ts +0 -17
- package/dist/dts/accordion/accordion.stories.d.ts +0 -15
- package/dist/dts/anchor/anchor.stories.d.ts +0 -14
- package/dist/dts/anchor/anchor.styles.d.ts +0 -3
- package/dist/dts/anchor/index.d.ts +0 -49
- package/dist/dts/anchored-region/anchored-region.stories.d.ts +0 -6
- package/dist/dts/anchored-region/anchored-region.styles.d.ts +0 -3
- package/dist/dts/anchored-region/index.d.ts +0 -21
- package/dist/dts/badge/badge.stories.d.ts +0 -14
- package/dist/dts/breadcrumb/breadcrumb.stories.d.ts +0 -15
- package/dist/dts/breadcrumb/breadcrumb.styles.d.ts +0 -3
- package/dist/dts/breadcrumb/index.d.ts +0 -21
- package/dist/dts/breadcrumb-item/breadcrumb-item.stories.d.ts +0 -15
- package/dist/dts/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -3
- package/dist/dts/breadcrumb-item/index.d.ts +0 -21
- package/dist/dts/button/button.stories.d.ts +0 -21
- package/dist/dts/button/button.styles.d.ts +0 -3
- package/dist/dts/button/index.d.ts +0 -48
- package/dist/dts/calendar/calendar.stories.d.ts +0 -86
- package/dist/dts/calendar/calendar.styles.d.ts +0 -7
- package/dist/dts/calendar/index.d.ts +0 -18
- package/dist/dts/card/card.stories.d.ts +0 -15
- package/dist/dts/card/card.styles.d.ts +0 -3
- package/dist/dts/card/index.d.ts +0 -46
- package/dist/dts/checkbox/checkbox.stories.d.ts +0 -28
- package/dist/dts/checkbox/checkbox.styles.d.ts +0 -3
- package/dist/dts/checkbox/index.d.ts +0 -16
- package/dist/dts/color/palette.d.ts +0 -73
- package/dist/dts/color/recipe.d.ts +0 -20
- package/dist/dts/color/recipes/contrast-and-delta-swatch-set.d.ts +0 -11
- package/dist/dts/color/recipes/contrast-swatch.d.ts +0 -12
- package/dist/dts/color/recipes/delta-swatch-set.d.ts +0 -36
- package/dist/dts/color/recipes/delta-swatch.d.ts +0 -12
- package/dist/dts/color/recipes/focus-stroke.d.ts +0 -10
- package/dist/dts/color/recipes/foreground-on-accent.d.ts +0 -11
- package/dist/dts/color/recipes/gradient-shadow-stroke.d.ts +0 -7
- package/dist/dts/color/recipes/gradient-swatch.d.ts +0 -36
- package/dist/dts/color/recipes/neutral-layer-1.d.ts +0 -10
- package/dist/dts/color/recipes/neutral-layer-2.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-3.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-4.d.ts +0 -6
- package/dist/dts/color/recipes/neutral-layer-floating.d.ts +0 -6
- package/dist/dts/color/recipes/underline-stroke.d.ts +0 -7
- package/dist/dts/color/swatch.d.ts +0 -31
- package/dist/dts/color/utilities/base-layer-luminance.d.ts +0 -11
- package/dist/dts/color/utilities/binary-search.d.ts +0 -4
- package/dist/dts/color/utilities/color-constants.d.ts +0 -14
- package/dist/dts/color/utilities/direction-by-is-dark.d.ts +0 -5
- package/dist/dts/color/utilities/is-dark.d.ts +0 -9
- package/dist/dts/color/utilities/relative-luminance.d.ts +0 -13
- package/dist/dts/combobox/combobox.stories.d.ts +0 -36
- package/dist/dts/combobox/combobox.styles.d.ts +0 -3
- package/dist/dts/combobox/index.d.ts +0 -43
- package/dist/dts/component-definitions.d.ts +0 -43
- package/dist/dts/custom-elements.d.ts +0 -103
- package/dist/dts/data-grid/data-grid-cell.styles.d.ts +0 -3
- package/dist/dts/data-grid/data-grid-row.styles.d.ts +0 -3
- package/dist/dts/data-grid/data-grid.stories.d.ts +0 -15
- package/dist/dts/data-grid/data-grid.styles.d.ts +0 -3
- package/dist/dts/data-grid/index.d.ts +0 -45
- package/dist/dts/design-system-provider/index.d.ts +0 -582
- package/dist/dts/design-tokens.d.ts +0 -519
- package/dist/dts/dialog/dialog.stories.d.ts +0 -25
- package/dist/dts/dialog/dialog.styles.d.ts +0 -3
- package/dist/dts/dialog/index.d.ts +0 -21
- package/dist/dts/divider/divider.stories.d.ts +0 -6
- package/dist/dts/flipper/flipper.stories.d.ts +0 -17
- package/dist/dts/flipper/flipper.styles.d.ts +0 -3
- package/dist/dts/flipper/index.d.ts +0 -21
- package/dist/dts/horizontal-scroll/horizontal-scroll.stories.d.ts +0 -15
- package/dist/dts/horizontal-scroll/horizontal-scroll.styles.d.ts +0 -12
- package/dist/dts/horizontal-scroll/index.d.ts +0 -25
- package/dist/dts/listbox/index.d.ts +0 -19
- package/dist/dts/listbox/listbox.stories.d.ts +0 -6
- package/dist/dts/listbox/listbox.styles.d.ts +0 -3
- package/dist/dts/listbox-option/index.d.ts +0 -17
- package/dist/dts/listbox-option/listbox-option.stories.d.ts +0 -23
- package/dist/dts/listbox-option/listbox-option.styles.d.ts +0 -3
- package/dist/dts/menu/index.d.ts +0 -26
- package/dist/dts/menu/menu.stories.d.ts +0 -6
- package/dist/dts/menu/menu.styles.d.ts +0 -3
- package/dist/dts/menu-item/index.d.ts +0 -21
- package/dist/dts/menu-item/menu-item.stories.d.ts +0 -18
- package/dist/dts/menu-item/menu-item.styles.d.ts +0 -3
- package/dist/dts/number-field/index.d.ts +0 -41
- package/dist/dts/number-field/number-field.stories.d.ts +0 -71
- package/dist/dts/number-field/number-field.styles.d.ts +0 -3
- package/dist/dts/progress/index.d.ts +0 -2
- package/dist/dts/progress/progress/index.d.ts +0 -22
- package/dist/dts/progress/progress/progress.stories.d.ts +0 -15
- package/dist/dts/progress/progress/progress.styles.d.ts +0 -3
- package/dist/dts/progress/progress-ring/index.d.ts +0 -22
- package/dist/dts/progress/progress-ring/progress-ring.stories.d.ts +0 -15
- package/dist/dts/progress/progress-ring/progress-ring.styles.d.ts +0 -3
- package/dist/dts/radio/index.d.ts +0 -21
- package/dist/dts/radio/radio.stories.d.ts +0 -23
- package/dist/dts/radio/radio.styles.d.ts +0 -3
- package/dist/dts/radio-group/index.d.ts +0 -21
- package/dist/dts/radio-group/radio-group.stories.d.ts +0 -18
- package/dist/dts/radio-group/radio-group.styles.d.ts +0 -3
- package/dist/dts/search/index.d.ts +0 -38
- package/dist/dts/search/search.stories.d.ts +0 -75
- package/dist/dts/search/search.styles.d.ts +0 -3
- package/dist/dts/search/search.template.d.ts +0 -6
- package/dist/dts/select/index.d.ts +0 -44
- package/dist/dts/select/select.stories.d.ts +0 -28
- package/dist/dts/select/select.styles.d.ts +0 -13
- package/dist/dts/skeleton/index.d.ts +0 -21
- package/dist/dts/skeleton/skeleton.stories.d.ts +0 -20
- package/dist/dts/skeleton/skeleton.styles.d.ts +0 -3
- package/dist/dts/slider/index.d.ts +0 -21
- package/dist/dts/slider/slider.stories.d.ts +0 -14
- package/dist/dts/slider/slider.styles.d.ts +0 -3
- package/dist/dts/slider-label/index.d.ts +0 -21
- package/dist/dts/slider-label/slider-label.stories.d.ts +0 -23
- package/dist/dts/slider-label/slider-label.styles.d.ts +0 -3
- package/dist/dts/styles/direction.d.ts +0 -34
- package/dist/dts/styles/elevation.d.ts +0 -64
- package/dist/dts/styles/focus.d.ts +0 -13
- package/dist/dts/styles/patterns/button.styles.d.ts +0 -31
- package/dist/dts/styles/patterns/index.d.ts +0 -3
- package/dist/dts/styles/patterns/input.styles.d.ts +0 -30
- package/dist/dts/styles/patterns/type-ramp.d.ts +0 -18
- package/dist/dts/styles/size.d.ts +0 -7
- package/dist/dts/switch/switch.stories.d.ts +0 -18
- package/dist/dts/tabs/index.d.ts +0 -23
- package/dist/dts/tabs/tab/index.d.ts +0 -21
- package/dist/dts/tabs/tab/tab.styles.d.ts +0 -3
- package/dist/dts/tabs/tab-panel/index.d.ts +0 -21
- package/dist/dts/tabs/tab-panel/tab-panel.styles.d.ts +0 -3
- package/dist/dts/tabs/tabs.stories.d.ts +0 -19
- package/dist/dts/tabs/tabs.styles.d.ts +0 -3
- package/dist/dts/text-area/index.d.ts +0 -45
- package/dist/dts/text-area/text-area.stories.d.ts +0 -41
- package/dist/dts/text-area/text-area.styles.d.ts +0 -3
- package/dist/dts/text-field/index.d.ts +0 -45
- package/dist/dts/text-field/text-field.stories.d.ts +0 -81
- package/dist/dts/text-field/text-field.styles.d.ts +0 -3
- package/dist/dts/toolbar/index.d.ts +0 -17
- package/dist/dts/toolbar/toolbar.stories.d.ts +0 -9
- package/dist/dts/toolbar/toolbar.styles.d.ts +0 -3
- package/dist/dts/tooltip/index.d.ts +0 -21
- package/dist/dts/tooltip/tooltip.stories.d.ts +0 -14
- package/dist/dts/tooltip/tooltip.styles.d.ts +0 -3
- package/dist/dts/tree-item/index.d.ts +0 -22
- package/dist/dts/tree-item/tree-item.stories.d.ts +0 -18
- package/dist/dts/tree-item/tree-item.styles.d.ts +0 -4
- package/dist/dts/tree-view/index.d.ts +0 -22
- package/dist/dts/tree-view/tree-view.stories.d.ts +0 -13
- package/dist/dts/tree-view/tree-view.styles.d.ts +0 -3
- package/dist/dts/utilities/behaviors.d.ts +0 -12
- package/dist/dts/utilities/type-ramp.d.ts +0 -12
- package/dist/esm/_docs/design-system/color-explorer/app.js +0 -247
- package/dist/esm/_docs/design-system/color-explorer/colors.js +0 -24
- package/dist/esm/_docs/design-system/color-explorer/component-types.js +0 -7
- package/dist/esm/_docs/design-system/color-explorer/components/color-block.js +0 -408
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.form-associated.js +0 -16
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.js +0 -297
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.styles.js +0 -124
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/color-picker.template.js +0 -130
- package/dist/esm/_docs/design-system/color-explorer/components/color-picker/index.js +0 -15
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.js +0 -24
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.styles.js +0 -19
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/control-pane.template.js +0 -52
- package/dist/esm/_docs/design-system/color-explorer/components/control-pane/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.js +0 -11
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.styles.js +0 -31
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/gradient.template.js +0 -21
- package/dist/esm/_docs/design-system/color-explorer/components/gradient/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/layer-background/index.js +0 -70
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.styles.js +0 -166
- package/dist/esm/_docs/design-system/color-explorer/components/sample-app/sample-app.template.js +0 -97
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/index.js +0 -18
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.styles.js +0 -130
- package/dist/esm/_docs/design-system/color-explorer/components/sample-page/sample-page.template.js +0 -82
- package/dist/esm/_docs/design-system/color-explorer/components/swatch.js +0 -163
- package/dist/esm/_docs/design-system/color-explorer/custom-elements.js +0 -3
- package/dist/esm/_docs/design-system/color-explorer/index.js +0 -14
- package/dist/esm/accordion/accordion-item/accordion-item.styles.js +0 -154
- package/dist/esm/accordion/accordion-item/accordion-item.vscode.definition.json +0 -67
- package/dist/esm/accordion/accordion-item/index.js +0 -32
- package/dist/esm/accordion/accordion.stories.js +0 -66
- package/dist/esm/accordion/accordion.vscode.definition.json +0 -35
- package/dist/esm/anchor/anchor.stories.js +0 -34
- package/dist/esm/anchor/anchor.styles.js +0 -5
- package/dist/esm/anchor/anchor.vscode.definition.json +0 -138
- package/dist/esm/anchor/index.js +0 -67
- package/dist/esm/anchored-region/anchored-region.stories.js +0 -133
- package/dist/esm/anchored-region/anchored-region.styles.js +0 -7
- package/dist/esm/anchored-region/anchored-region.vscode.definition.json +0 -140
- package/dist/esm/anchored-region/index.js +0 -26
- package/dist/esm/badge/badge.stories.js +0 -27
- package/dist/esm/badge/badge.vscode.definition.json +0 -60
- package/dist/esm/breadcrumb/breadcrumb.stories.js +0 -20
- package/dist/esm/breadcrumb/breadcrumb.styles.js +0 -13
- package/dist/esm/breadcrumb/breadcrumb.vscode.definition.json +0 -18
- package/dist/esm/breadcrumb/index.js +0 -26
- package/dist/esm/breadcrumb-item/breadcrumb-item.stories.js +0 -16
- package/dist/esm/breadcrumb-item/breadcrumb-item.styles.js +0 -96
- package/dist/esm/breadcrumb-item/breadcrumb-item.vscode.definition.json +0 -50
- package/dist/esm/breadcrumb-item/index.js +0 -34
- package/dist/esm/button/button.stories.js +0 -40
- package/dist/esm/button/button.styles.js +0 -24
- package/dist/esm/button/button.vscode.definition.json +0 -158
- package/dist/esm/button/index.js +0 -67
- package/dist/esm/calendar/calendar.stories.js +0 -115
- package/dist/esm/calendar/calendar.styles.js +0 -132
- package/dist/esm/calendar/index.js +0 -31
- package/dist/esm/card/card.stories.js +0 -30
- package/dist/esm/card/card.styles.js +0 -28
- package/dist/esm/card/card.vscode.definition.json +0 -33
- package/dist/esm/card/index.js +0 -79
- package/dist/esm/checkbox/checkbox.stories.js +0 -43
- package/dist/esm/checkbox/checkbox.styles.js +0 -161
- package/dist/esm/checkbox/checkbox.vscode.definition.json +0 -69
- package/dist/esm/checkbox/index.js +0 -31
- package/dist/esm/color/palette.js +0 -250
- package/dist/esm/color/recipes/contrast-and-delta-swatch-set.js +0 -28
- package/dist/esm/color/recipes/contrast-swatch.js +0 -12
- package/dist/esm/color/recipes/delta-swatch-set.js +0 -53
- package/dist/esm/color/recipes/delta-swatch.js +0 -13
- package/dist/esm/color/recipes/focus-stroke.js +0 -14
- package/dist/esm/color/recipes/foreground-on-accent.js +0 -21
- package/dist/esm/color/recipes/gradient-shadow-stroke.js +0 -54
- package/dist/esm/color/recipes/gradient-swatch.js +0 -36
- package/dist/esm/color/recipes/neutral-layer-1.js +0 -13
- package/dist/esm/color/recipes/neutral-layer-2.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-3.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-4.js +0 -7
- package/dist/esm/color/recipes/neutral-layer-floating.js +0 -7
- package/dist/esm/color/recipes/underline-stroke.js +0 -31
- package/dist/esm/color/swatch.js +0 -53
- package/dist/esm/color/utilities/base-layer-luminance.js +0 -14
- package/dist/esm/color/utilities/binary-search.js +0 -15
- package/dist/esm/color/utilities/color-constants.js +0 -19
- package/dist/esm/color/utilities/direction-by-is-dark.js +0 -7
- package/dist/esm/color/utilities/is-dark.js +0 -17
- package/dist/esm/color/utilities/relative-luminance.js +0 -8
- package/dist/esm/combobox/combobox.stories.js +0 -84
- package/dist/esm/combobox/combobox.styles.js +0 -40
- package/dist/esm/combobox/combobox.vscode.definition.json +0 -121
- package/dist/esm/combobox/index.js +0 -63
- package/dist/esm/component-definitions.js +0 -84
- package/dist/esm/custom-elements.js +0 -102
- package/dist/esm/data-grid/data-grid-cell.styles.js +0 -36
- package/dist/esm/data-grid/data-grid-cell.vscode.definition.json +0 -34
- package/dist/esm/data-grid/data-grid-row.styles.js +0 -24
- package/dist/esm/data-grid/data-grid-row.vscode.definition.json +0 -34
- package/dist/esm/data-grid/data-grid.stories.js +0 -381
- package/dist/esm/data-grid/data-grid.styles.js +0 -8
- package/dist/esm/data-grid/data-grid.vscode.definition.json +0 -34
- package/dist/esm/data-grid/index.js +0 -60
- package/dist/esm/design-system-provider/design-system-provider.vscode.definition.json +0 -510
- package/dist/esm/design-system-provider/index.js +0 -518
- package/dist/esm/design-tokens.js +0 -685
- package/dist/esm/dialog/dialog.stories.js +0 -36
- package/dist/esm/dialog/dialog.styles.js +0 -47
- package/dist/esm/dialog/dialog.vscode.definition.json +0 -67
- package/dist/esm/dialog/index.js +0 -26
- package/dist/esm/divider/divider.stories.js +0 -17
- package/dist/esm/divider/divider.vscode.definition.json +0 -29
- package/dist/esm/flipper/flipper.stories.js +0 -31
- package/dist/esm/flipper/flipper.styles.js +0 -84
- package/dist/esm/flipper/flipper.vscode.definition.json +0 -56
- package/dist/esm/flipper/index.js +0 -36
- package/dist/esm/horizontal-scroll/horizontal-scroll.stories.js +0 -81
- package/dist/esm/horizontal-scroll/horizontal-scroll.styles.js +0 -138
- package/dist/esm/horizontal-scroll/horizontal-scroll.vscode.definition.json +0 -85
- package/dist/esm/horizontal-scroll/index.js +0 -47
- package/dist/esm/listbox/index.js +0 -24
- package/dist/esm/listbox/listbox.stories.js +0 -29
- package/dist/esm/listbox/listbox.styles.js +0 -21
- package/dist/esm/listbox/listbox.vscode.definition.json +0 -40
- package/dist/esm/listbox-option/index.js +0 -22
- package/dist/esm/listbox-option/listbox-option.stories.js +0 -38
- package/dist/esm/listbox-option/listbox-option.styles.js +0 -133
- package/dist/esm/listbox-option/listbox-option.vscode.definition.json +0 -45
- package/dist/esm/menu/index.js +0 -36
- package/dist/esm/menu/menu.stories.js +0 -56
- package/dist/esm/menu/menu.styles.js +0 -42
- package/dist/esm/menu/menu.vscode.definition.json +0 -18
- package/dist/esm/menu-item/index.js +0 -41
- package/dist/esm/menu-item/menu-item.stories.js +0 -34
- package/dist/esm/menu-item/menu-item.styles.js +0 -265
- package/dist/esm/menu-item/menu-item.vscode.definition.json +0 -82
- package/dist/esm/number-field/index.js +0 -57
- package/dist/esm/number-field/number-field.stories.js +0 -83
- package/dist/esm/number-field/number-field.styles.js +0 -71
- package/dist/esm/number-field/number-field.vscode.definition.json +0 -167
- package/dist/esm/progress/index.js +0 -2
- package/dist/esm/progress/progress/index.js +0 -33
- package/dist/esm/progress/progress/progress.stories.js +0 -59
- package/dist/esm/progress/progress/progress.styles.js +0 -119
- package/dist/esm/progress/progress/progress.vscode.definition.json +0 -56
- package/dist/esm/progress/progress-ring/index.js +0 -45
- package/dist/esm/progress/progress-ring/progress-ring.stories.js +0 -59
- package/dist/esm/progress/progress-ring/progress-ring.styles.js +0 -79
- package/dist/esm/progress/progress-ring/progress-ring.vscode.definition.json +0 -56
- package/dist/esm/radio/index.js +0 -31
- package/dist/esm/radio/radio.stories.js +0 -41
- package/dist/esm/radio/radio.styles.js +0 -152
- package/dist/esm/radio/radio.vscode.definition.json +0 -63
- package/dist/esm/radio-group/index.js +0 -26
- package/dist/esm/radio-group/radio-group.stories.js +0 -42
- package/dist/esm/radio-group/radio-group.styles.js +0 -21
- package/dist/esm/radio-group/radio-group.vscode.definition.json +0 -64
- package/dist/esm/search/index.js +0 -52
- package/dist/esm/search/search.stories.js +0 -83
- package/dist/esm/search/search.styles.js +0 -104
- package/dist/esm/search/search.template.js +0 -82
- package/dist/esm/search/search.vscode.definition.json +0 -145
- package/dist/esm/select/index.js +0 -61
- package/dist/esm/select/select.stories.js +0 -53
- package/dist/esm/select/select.styles.js +0 -139
- package/dist/esm/select/select.vscode.definition.json +0 -79
- package/dist/esm/skeleton/index.js +0 -26
- package/dist/esm/skeleton/skeleton.stories.js +0 -37
- package/dist/esm/skeleton/skeleton.styles.js +0 -77
- package/dist/esm/skeleton/skeleton.vscode.definition.json +0 -49
- package/dist/esm/slider/index.js +0 -29
- package/dist/esm/slider/slider.stories.js +0 -40
- package/dist/esm/slider/slider.styles.js +0 -162
- package/dist/esm/slider/slider.vscode.definition.json +0 -101
- package/dist/esm/slider-label/index.js +0 -26
- package/dist/esm/slider-label/slider-label.stories.js +0 -40
- package/dist/esm/slider-label/slider-label.styles.js +0 -77
- package/dist/esm/slider-label/slider-label.vscode.definition.json +0 -43
- package/dist/esm/styles/direction.js +0 -73
- package/dist/esm/styles/elevation.js +0 -74
- package/dist/esm/styles/focus.js +0 -21
- package/dist/esm/styles/patterns/button.styles.js +0 -427
- package/dist/esm/styles/patterns/index.js +0 -3
- package/dist/esm/styles/patterns/input.styles.js +0 -227
- package/dist/esm/styles/patterns/type-ramp.js +0 -74
- package/dist/esm/styles/size.js +0 -9
- package/dist/esm/switch/switch.stories.js +0 -42
- package/dist/esm/switch/switch.vscode.definition.json +0 -68
- package/dist/esm/tabs/index.js +0 -28
- package/dist/esm/tabs/tab/index.js +0 -26
- package/dist/esm/tabs/tab/tab.styles.js +0 -75
- package/dist/esm/tabs/tab/tab.vscode.definition.json +0 -17
- package/dist/esm/tabs/tab-panel/index.js +0 -26
- package/dist/esm/tabs/tab-panel/tab-panel.styles.js +0 -11
- package/dist/esm/tabs/tab-panel/tab-panel.vscode.definition.json +0 -17
- package/dist/esm/tabs/tabs.stories.js +0 -105
- package/dist/esm/tabs/tabs.styles.js +0 -98
- package/dist/esm/tabs/tabs.vscode.definition.json +0 -50
- package/dist/esm/text-area/index.js +0 -56
- package/dist/esm/text-area/text-area.stories.js +0 -56
- package/dist/esm/text-area/text-area.styles.js +0 -39
- package/dist/esm/text-area/text-area.vscode.definition.json +0 -141
- package/dist/esm/text-field/index.js +0 -56
- package/dist/esm/text-field/text-field.stories.js +0 -88
- package/dist/esm/text-field/text-field.styles.js +0 -48
- package/dist/esm/text-field/text-field.vscode.definition.json +0 -150
- package/dist/esm/toolbar/index.js +0 -23
- package/dist/esm/toolbar/toolbar.stories.js +0 -9
- package/dist/esm/toolbar/toolbar.styles.js +0 -73
- package/dist/esm/tooltip/index.js +0 -31
- package/dist/esm/tooltip/tooltip.stories.js +0 -34
- package/dist/esm/tooltip/tooltip.styles.js +0 -107
- package/dist/esm/tooltip/tooltip.vscode.definition.json +0 -56
- package/dist/esm/tree-item/index.js +0 -32
- package/dist/esm/tree-item/tree-item.stories.js +0 -34
- package/dist/esm/tree-item/tree-item.styles.js +0 -227
- package/dist/esm/tree-item/tree-item.vscode.definition.json +0 -63
- package/dist/esm/tree-view/index.js +0 -27
- package/dist/esm/tree-view/tree-view.stories.js +0 -99
- package/dist/esm/tree-view/tree-view.styles.js +0 -14
- package/dist/esm/tree-view/tree-view.vscode.definition.json +0 -26
- package/dist/esm/utilities/behaviors.js +0 -13
- package/dist/esm/utilities/type-ramp.js +0 -12
- package/karma.conf.js +0 -147
- package/public/SegoeUI-VF.ttf +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.png +0 -0
- package/public/switches.ts +0 -24
- package/rollup.config.js +0 -53
- package/storybook-typings.d.ts +0 -4
- /package/dist/{esm/color/recipe.js → dts/accordion-item/define.d.ts} +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { css } from "@microsoft/fast-element";
|
|
2
|
-
import { display, forcedColorsStylesheetBehavior } from '@microsoft/fast-foundation';
|
|
3
|
-
import { SystemColors } from '@microsoft/fast-web-utilities';
|
|
4
|
-
import { accentFillRest, baseHeightMultiplier, controlCornerRadius, density, designUnit, fillColor, foregroundOnAccentRest, neutralForegroundHint, neutralForegroundRest, strokeWidth, } from '../design-tokens';
|
|
5
|
-
import { DirectionalStyleSheetBehavior } from '../styles';
|
|
6
|
-
import { typeRampBase } from '../styles/patterns/type-ramp';
|
|
7
|
-
/**
|
|
8
|
-
* LTR styles for calendar
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
const ltrStyles = css `
|
|
12
|
-
.day.disabled::before {
|
|
13
|
-
transform: translate(-50%, 0) rotate(45deg);
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
/**
|
|
17
|
-
* RTL styles for calendar
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
const rtlStyles = css `
|
|
21
|
-
.day.disabled::before {
|
|
22
|
-
transform: translate(50%, 0) rotate(-45deg);
|
|
23
|
-
}
|
|
24
|
-
`;
|
|
25
|
-
/**
|
|
26
|
-
* Styles for calendar
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
export const calendarStyles = (context, definition) => css `
|
|
30
|
-
${display("inline-block")} :host {
|
|
31
|
-
--calendar-cell-size: calc((${baseHeightMultiplier} + 2 + ${density}) * ${designUnit} * 1px);
|
|
32
|
-
--calendar-gap: 2px;
|
|
33
|
-
${typeRampBase}
|
|
34
|
-
color: ${neutralForegroundRest};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.title {
|
|
38
|
-
padding: calc(${designUnit} * 2px);
|
|
39
|
-
font-weight: 600;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.days {
|
|
43
|
-
text-align: center;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.week-days,
|
|
47
|
-
.week {
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: repeat(7, 1fr);
|
|
50
|
-
grid-gap: var(--calendar-gap);
|
|
51
|
-
border: 0;
|
|
52
|
-
padding: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.day,
|
|
56
|
-
.week-day {
|
|
57
|
-
border: 0;
|
|
58
|
-
width: var(--calendar-cell-size);
|
|
59
|
-
height: var(--calendar-cell-size);
|
|
60
|
-
line-height: var(--calendar-cell-size);
|
|
61
|
-
padding: 0;
|
|
62
|
-
box-sizing: initial;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.week-day {
|
|
66
|
-
font-weight: 600;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.day {
|
|
70
|
-
border: calc(${strokeWidth} * 1px) solid transparent;
|
|
71
|
-
border-radius: calc(${controlCornerRadius} * 1px);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.interact .day {
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.date {
|
|
79
|
-
height: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.inactive .date,
|
|
83
|
-
.inactive.disabled::before {
|
|
84
|
-
color: ${neutralForegroundHint};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.disabled::before {
|
|
88
|
-
content: '';
|
|
89
|
-
display: inline-block;
|
|
90
|
-
width: calc(var(--calendar-cell-size) * .8);
|
|
91
|
-
height: calc(${strokeWidth} * 1px);
|
|
92
|
-
background: currentColor;
|
|
93
|
-
position: absolute;
|
|
94
|
-
margin-top: calc(var(--calendar-cell-size) / 2);
|
|
95
|
-
transform-origin: center;
|
|
96
|
-
z-index: 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.selected {
|
|
100
|
-
color: ${accentFillRest};
|
|
101
|
-
border: 1px solid ${accentFillRest};
|
|
102
|
-
background: ${fillColor};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.selected + .selected {
|
|
106
|
-
border-start-start-radius: 0;
|
|
107
|
-
border-end-start-radius: 0;
|
|
108
|
-
border-inline-start-width: 0;
|
|
109
|
-
padding-inline-start: calc(var(--calendar-gap) + (${strokeWidth} + ${controlCornerRadius}) * 1px);
|
|
110
|
-
margin-inline-start: calc((${controlCornerRadius} * -1px) - var(--calendar-gap));
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.today.disabled::before {
|
|
114
|
-
color: ${foregroundOnAccentRest};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.today .date {
|
|
118
|
-
color: ${foregroundOnAccentRest};
|
|
119
|
-
background: ${accentFillRest};
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
position: relative;
|
|
122
|
-
}
|
|
123
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
124
|
-
.day.selected {
|
|
125
|
-
color: ${SystemColors.Highlight};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.today .date {
|
|
129
|
-
background: ${SystemColors.Highlight};
|
|
130
|
-
color: ${SystemColors.HighlightText};
|
|
131
|
-
}
|
|
132
|
-
`), new DirectionalStyleSheetBehavior(ltrStyles, rtlStyles));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { attr, booleanConverter } from '@microsoft/fast-element';
|
|
3
|
-
import { CalendarTitleTemplate, Calendar as FoundationCalendar, calendarTemplate as template, } from '@microsoft/fast-foundation';
|
|
4
|
-
import { calendarStyles as styles } from './calendar.styles';
|
|
5
|
-
/**
|
|
6
|
-
* Updated Calendar class that is readonly by default
|
|
7
|
-
*/
|
|
8
|
-
export class Calendar extends FoundationCalendar {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.readonly = true;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
__decorate([
|
|
15
|
-
attr({ converter: booleanConverter })
|
|
16
|
-
], Calendar.prototype, "readonly", void 0);
|
|
17
|
-
/**
|
|
18
|
-
* The Fluent Calendar Element. Implements {@link @microsoft/fast-foundation#Calendar},
|
|
19
|
-
* {@link @microsoft/fast-foundation#calendarTemplate}
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
* @remarks
|
|
23
|
-
* HTML Element \<fluent-calendar\>
|
|
24
|
-
*/
|
|
25
|
-
export const fluentCalendar = Calendar.compose({
|
|
26
|
-
baseName: 'calendar',
|
|
27
|
-
template,
|
|
28
|
-
styles,
|
|
29
|
-
title: CalendarTitleTemplate,
|
|
30
|
-
});
|
|
31
|
-
export { styles as calendarStyles };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { addons } from '@storybook/addons';
|
|
2
|
-
import { DOCS_RENDERED } from '@storybook/core-events';
|
|
3
|
-
import { DesignSystemProvider, StandardLuminance } from '../index-rollup';
|
|
4
|
-
import CardTemplate from './fixtures/card.html';
|
|
5
|
-
import './index';
|
|
6
|
-
addons.getChannel().addListener(DOCS_RENDERED, name => {
|
|
7
|
-
if (name.toLowerCase().includes('card')) {
|
|
8
|
-
const els = document.getElementsByClassName('darkMode');
|
|
9
|
-
for (let i = 0; i < els.length; i++) {
|
|
10
|
-
const el = els[i];
|
|
11
|
-
if (el instanceof DesignSystemProvider) {
|
|
12
|
-
el.baseLayerLuminance = StandardLuminance.DarkMode;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export default {
|
|
18
|
-
title: 'Components/Card',
|
|
19
|
-
};
|
|
20
|
-
export const Card = () => CardTemplate;
|
|
21
|
-
const example = `
|
|
22
|
-
<fluent-card>Card content in default slot</fluent-card>
|
|
23
|
-
`;
|
|
24
|
-
Card.parameters = {
|
|
25
|
-
docs: {
|
|
26
|
-
source: {
|
|
27
|
-
code: example,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { display, forcedColorsStylesheetBehavior, } from '@microsoft/fast-foundation';
|
|
3
|
-
import { SystemColors } from '@microsoft/fast-web-utilities';
|
|
4
|
-
import { fillColor, layerCornerRadius, neutralForegroundRest, neutralStrokeLayerRest, strokeWidth, } from '../design-tokens';
|
|
5
|
-
import { elevationShadowCardRest } from '../styles';
|
|
6
|
-
export const cardStyles = (context, definition) => css `
|
|
7
|
-
${display('block')} :host {
|
|
8
|
-
display: block;
|
|
9
|
-
contain: content;
|
|
10
|
-
height: var(--card-height, 100%);
|
|
11
|
-
width: var(--card-width, 100%);
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
background: ${fillColor};
|
|
14
|
-
color: ${neutralForegroundRest};
|
|
15
|
-
border: calc(${strokeWidth} * 1px) solid ${neutralStrokeLayerRest};
|
|
16
|
-
border-radius: calc(${layerCornerRadius} * 1px);
|
|
17
|
-
box-shadow: ${elevationShadowCardRest};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host {
|
|
21
|
-
content-visibility: auto;
|
|
22
|
-
}
|
|
23
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
24
|
-
:host {
|
|
25
|
-
background: ${SystemColors.Canvas};
|
|
26
|
-
color: ${SystemColors.CanvasText};
|
|
27
|
-
}
|
|
28
|
-
`));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1.1,
|
|
3
|
-
"tags": [
|
|
4
|
-
{
|
|
5
|
-
"name": "fluent-card",
|
|
6
|
-
"title": "Card",
|
|
7
|
-
"description": "The Fluent UI card element",
|
|
8
|
-
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
"name": "card-fill-color",
|
|
11
|
-
"title": "Card fill color",
|
|
12
|
-
"description": "The fill color for the card, which also sets context for the design system.",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"required": false
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"name": "neutral-palette-source",
|
|
18
|
-
"title": "Neutral Palette Source",
|
|
19
|
-
"description": "The neutral palette source color for the card component to allow tinting, which also sets context for the design system",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"required": false
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"slots": [
|
|
25
|
-
{
|
|
26
|
-
"name": "",
|
|
27
|
-
"title": "Default slot",
|
|
28
|
-
"description": "The content of the card"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
package/dist/esm/card/index.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { composedParent, Card as FoundationCard, cardTemplate as template } from '@microsoft/fast-foundation';
|
|
3
|
-
import { attr, Observable } from '@microsoft/fast-element';
|
|
4
|
-
import { parseColorHexRGB } from '@microsoft/fast-colors';
|
|
5
|
-
import { fillColor, neutralFillLayerRecipe, neutralPalette } from '../design-tokens';
|
|
6
|
-
import { SwatchRGB } from '../color/swatch';
|
|
7
|
-
import { PaletteRGB } from '../color/palette';
|
|
8
|
-
import { cardStyles as styles } from './card.styles';
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export class Card extends FoundationCard {
|
|
13
|
-
cardFillColorChanged(prev, next) {
|
|
14
|
-
if (next) {
|
|
15
|
-
const parsedColor = parseColorHexRGB(next);
|
|
16
|
-
if (parsedColor !== null) {
|
|
17
|
-
this.neutralPaletteSource = next;
|
|
18
|
-
fillColor.setValueFor(this, SwatchRGB.create(parsedColor.r, parsedColor.g, parsedColor.b));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
neutralPaletteSourceChanged(prev, next) {
|
|
23
|
-
if (next) {
|
|
24
|
-
const color = parseColorHexRGB(next);
|
|
25
|
-
const swatch = SwatchRGB.create(color.r, color.g, color.b);
|
|
26
|
-
neutralPalette.setValueFor(this, PaletteRGB.create(swatch));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
handleChange(source, propertyName) {
|
|
33
|
-
if (!this.cardFillColor) {
|
|
34
|
-
fillColor.setValueFor(this, (target) => neutralFillLayerRecipe.getValueFor(target).evaluate(target, fillColor.getValueFor(source)).rest);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
connectedCallback() {
|
|
38
|
-
super.connectedCallback();
|
|
39
|
-
const parent = composedParent(this);
|
|
40
|
-
if (parent) {
|
|
41
|
-
const parentNotifier = Observable.getNotifier(parent);
|
|
42
|
-
parentNotifier.subscribe(this, 'fillColor');
|
|
43
|
-
parentNotifier.subscribe(this, 'neutralPalette');
|
|
44
|
-
this.handleChange(parent, 'fillColor');
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
__decorate([
|
|
49
|
-
attr({
|
|
50
|
-
attribute: 'card-fill-color',
|
|
51
|
-
mode: 'fromView',
|
|
52
|
-
})
|
|
53
|
-
], Card.prototype, "cardFillColor", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
attr({
|
|
56
|
-
attribute: 'neutral-palette-source',
|
|
57
|
-
mode: 'fromView',
|
|
58
|
-
})
|
|
59
|
-
], Card.prototype, "neutralPaletteSource", void 0);
|
|
60
|
-
/**
|
|
61
|
-
* The Fluent Card Element. Implements {@link @microsoft/fast-foundation#Card},
|
|
62
|
-
* {@link @microsoft/fast-foundation#CardTemplate}
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @public
|
|
66
|
-
* @remarks
|
|
67
|
-
* HTML Element: \<fluent-card\>
|
|
68
|
-
*/
|
|
69
|
-
export const fluentCard = Card.compose({
|
|
70
|
-
baseName: 'card',
|
|
71
|
-
baseClass: FoundationCard,
|
|
72
|
-
template,
|
|
73
|
-
styles,
|
|
74
|
-
});
|
|
75
|
-
/**
|
|
76
|
-
* Styles for Card
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
export const cardStyles = styles;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { fluentCheckbox } from './index';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Checkbox',
|
|
4
|
-
component: fluentCheckbox,
|
|
5
|
-
argTypes: {
|
|
6
|
-
checked: {
|
|
7
|
-
control: { type: 'boolean' },
|
|
8
|
-
},
|
|
9
|
-
disabled: {
|
|
10
|
-
control: { type: 'boolean' },
|
|
11
|
-
},
|
|
12
|
-
required: {
|
|
13
|
-
control: { type: 'boolean' },
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
parameters: {
|
|
17
|
-
actions: {
|
|
18
|
-
handles: ['mouseover', 'click'],
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
const CheckboxTemplate = ({ checked, disabled, label, required }) => `<fluent-checkbox
|
|
23
|
-
${checked ? 'checked' : ''}
|
|
24
|
-
${disabled ? 'disabled' : ''}
|
|
25
|
-
${required ? 'required' : ''}
|
|
26
|
-
>${label}</fluent-checkbox>`;
|
|
27
|
-
export const Checkbox = CheckboxTemplate.bind({});
|
|
28
|
-
Checkbox.args = {
|
|
29
|
-
label: 'Label string',
|
|
30
|
-
checked: false,
|
|
31
|
-
disabled: false,
|
|
32
|
-
required: false,
|
|
33
|
-
};
|
|
34
|
-
const example = `
|
|
35
|
-
<fluent-checkbox>Label string</fluent-checkbox>
|
|
36
|
-
`;
|
|
37
|
-
Checkbox.parameters = {
|
|
38
|
-
docs: {
|
|
39
|
-
source: {
|
|
40
|
-
code: example,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { css } from '@microsoft/fast-element';
|
|
2
|
-
import { disabledCursor, display, focusVisible, forcedColorsStylesheetBehavior, } from '@microsoft/fast-foundation';
|
|
3
|
-
import { SystemColors } from '@microsoft/fast-web-utilities';
|
|
4
|
-
import { heightNumber } from '../styles';
|
|
5
|
-
import { accentFillActive, accentFillHover, accentFillRest, controlCornerRadius, designUnit, disabledOpacity, foregroundOnAccentRest, neutralFillInputAltActive, neutralFillInputAltFocus, neutralFillInputAltHover, neutralFillInputAltRest, neutralForegroundRest, neutralStrokeStrongActive, neutralStrokeStrongHover, neutralStrokeStrongRest, strokeWidth, } from '../design-tokens';
|
|
6
|
-
import { typeRampBase } from '../styles/patterns/type-ramp';
|
|
7
|
-
import { focusTreatmentTight } from '../styles/focus';
|
|
8
|
-
export const checkboxStyles = (context, definition) => css `
|
|
9
|
-
${display('inline-flex')} :host {
|
|
10
|
-
align-items: center;
|
|
11
|
-
outline: none;
|
|
12
|
-
${
|
|
13
|
-
/*
|
|
14
|
-
* Chromium likes to select label text or the default slot when
|
|
15
|
-
* the checkbox is clicked. Maybe there is a better solution here?
|
|
16
|
-
*/ ''} user-select: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.control {
|
|
20
|
-
position: relative;
|
|
21
|
-
width: calc((${heightNumber} / 2 + ${designUnit}) * 1px);
|
|
22
|
-
height: calc((${heightNumber} / 2 + ${designUnit}) * 1px);
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
border-radius: calc(${controlCornerRadius} * 1px);
|
|
25
|
-
border: calc(${strokeWidth} * 1px) solid ${neutralStrokeStrongRest};
|
|
26
|
-
background: ${neutralFillInputAltRest};
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.label__hidden {
|
|
31
|
-
display: none;
|
|
32
|
-
visibility: hidden;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.label {
|
|
36
|
-
${typeRampBase}
|
|
37
|
-
color: ${neutralForegroundRest};
|
|
38
|
-
${
|
|
39
|
-
/* Need to discuss with Brian how HorizontalSpacingNumber can work. https://github.com/microsoft/fast/issues/2766 */ ''} padding-inline-start: calc(${designUnit} * 2px + 2px);
|
|
40
|
-
margin-inline-end: calc(${designUnit} * 2px + 2px);
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
slot[name='checked-indicator'],
|
|
45
|
-
slot[name='indeterminate-indicator'] {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
fill: ${neutralForegroundRest};
|
|
52
|
-
opacity: 0;
|
|
53
|
-
pointer-events: none;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
slot[name='indeterminate-indicator'] {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host(.checked) slot[name='checked-indicator'],
|
|
62
|
-
:host(.checked) slot[name='indeterminate-indicator'] {
|
|
63
|
-
fill: ${foregroundOnAccentRest};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:host(:not(.disabled):hover) .control {
|
|
67
|
-
background: ${neutralFillInputAltHover};
|
|
68
|
-
border-color: ${neutralStrokeStrongHover};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host(:not(.disabled):active) .control {
|
|
72
|
-
background: ${neutralFillInputAltActive};
|
|
73
|
-
border-color: ${neutralStrokeStrongActive};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:host(:${focusVisible}) .control {
|
|
77
|
-
background: ${neutralFillInputAltFocus};
|
|
78
|
-
${focusTreatmentTight}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host(.checked) .control {
|
|
82
|
-
background: ${accentFillRest};
|
|
83
|
-
border-color: transparent;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host(.checked:not(.disabled):hover) .control {
|
|
87
|
-
background: ${accentFillHover};
|
|
88
|
-
border-color: transparent;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host(.checked:not(.disabled):active) .control {
|
|
92
|
-
background: ${accentFillActive};
|
|
93
|
-
border-color: transparent;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:host(.disabled) .label,
|
|
97
|
-
:host(.readonly) .label,
|
|
98
|
-
:host(.readonly) .control,
|
|
99
|
-
:host(.disabled) .control {
|
|
100
|
-
cursor: ${disabledCursor};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:host(.checked:not(.indeterminate)) slot[name='checked-indicator'],
|
|
104
|
-
:host(.indeterminate) slot[name='indeterminate-indicator'] {
|
|
105
|
-
opacity: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host(.disabled) {
|
|
109
|
-
opacity: ${disabledOpacity};
|
|
110
|
-
}
|
|
111
|
-
`.withBehaviors(forcedColorsStylesheetBehavior(css `
|
|
112
|
-
.control {
|
|
113
|
-
border-color: ${SystemColors.FieldText};
|
|
114
|
-
background: ${SystemColors.Field};
|
|
115
|
-
}
|
|
116
|
-
:host(:not(.disabled):hover) .control,
|
|
117
|
-
:host(:not(.disabled):active) .control {
|
|
118
|
-
border-color: ${SystemColors.Highlight};
|
|
119
|
-
background: ${SystemColors.Field};
|
|
120
|
-
}
|
|
121
|
-
slot[name='checked-indicator'],
|
|
122
|
-
slot[name='indeterminate-indicator'] {
|
|
123
|
-
fill: ${SystemColors.FieldText};
|
|
124
|
-
}
|
|
125
|
-
:host(:${focusVisible}) .control {
|
|
126
|
-
forced-color-adjust: none;
|
|
127
|
-
outline-color: ${SystemColors.FieldText};
|
|
128
|
-
background: ${SystemColors.Field};
|
|
129
|
-
border-color: ${SystemColors.Highlight};
|
|
130
|
-
}
|
|
131
|
-
:host(.checked) .control {
|
|
132
|
-
background: ${SystemColors.Highlight};
|
|
133
|
-
border-color: ${SystemColors.Highlight};
|
|
134
|
-
}
|
|
135
|
-
:host(.checked:not(.disabled):hover) .control,
|
|
136
|
-
:host(.checked:not(.disabled):active) .control {
|
|
137
|
-
background: ${SystemColors.HighlightText};
|
|
138
|
-
border-color: ${SystemColors.Highlight};
|
|
139
|
-
}
|
|
140
|
-
:host(.checked) slot[name='checked-indicator'],
|
|
141
|
-
:host(.checked) slot[name='indeterminate-indicator'] {
|
|
142
|
-
fill: ${SystemColors.HighlightText};
|
|
143
|
-
}
|
|
144
|
-
:host(.checked:hover ) .control slot[name='checked-indicator'],
|
|
145
|
-
:host(.checked:hover ) .control slot[name='indeterminate-indicator'] {
|
|
146
|
-
fill: ${SystemColors.Highlight};
|
|
147
|
-
}
|
|
148
|
-
:host(.disabled) {
|
|
149
|
-
opacity: 1;
|
|
150
|
-
}
|
|
151
|
-
:host(.disabled) .control {
|
|
152
|
-
border-color: ${SystemColors.GrayText};
|
|
153
|
-
background: ${SystemColors.Field};
|
|
154
|
-
}
|
|
155
|
-
:host(.disabled) slot[name='checked-indicator'],
|
|
156
|
-
:host(.checked.disabled:hover) .control slot[name='checked-indicator'],
|
|
157
|
-
:host(.disabled) slot[name='indeterminate-indicator'],
|
|
158
|
-
:host(.checked.disabled:hover) .control slot[name='indeterminate-indicator'] {
|
|
159
|
-
fill: ${SystemColors.GrayText};
|
|
160
|
-
}
|
|
161
|
-
`));
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1.1,
|
|
3
|
-
"tags": [
|
|
4
|
-
{
|
|
5
|
-
"name": "fluent-checkbox",
|
|
6
|
-
"title": "Checkbox",
|
|
7
|
-
"description": "The Fluent UI checkbox element",
|
|
8
|
-
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
"name": "checked",
|
|
11
|
-
"title": "Checked",
|
|
12
|
-
"description": "Whether or not this checkbox is checked by default",
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"default": false,
|
|
15
|
-
"required": false
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "name",
|
|
19
|
-
"title": "Name",
|
|
20
|
-
"description": "This element's value will be surfaced during form submission under the provided name",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"default": "",
|
|
23
|
-
"required": false
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "required",
|
|
27
|
-
"title": "Required",
|
|
28
|
-
"description": "Require the field to be completed prior to form submission",
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"default": false,
|
|
31
|
-
"required": false
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "disabled",
|
|
35
|
-
"title": "Disabled",
|
|
36
|
-
"description": "Sets the disabled state of the checkbox",
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"default": false,
|
|
39
|
-
"required": false
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "readonly",
|
|
43
|
-
"title": "Readonly",
|
|
44
|
-
"description": "When true, the control will be immutable by user interaction",
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"default": false,
|
|
47
|
-
"required": false
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"slots": [
|
|
51
|
-
{
|
|
52
|
-
"name": "",
|
|
53
|
-
"title": "Default slot",
|
|
54
|
-
"description": "The content of the checkbox represents its visual label"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "indeterminate-indicator",
|
|
58
|
-
"title": "Indeterminate indicator slot",
|
|
59
|
-
"description": "Slot to provide a custom icon to represent the inditerminate state"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "checked-indicator",
|
|
63
|
-
"title": "Checked indicator slot",
|
|
64
|
-
"description": "Slot to provide a custom icon to represent the checked state"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Checkbox, checkboxTemplate as template } from '@microsoft/fast-foundation';
|
|
2
|
-
import { checkboxStyles as styles } from './checkbox.styles';
|
|
3
|
-
/**
|
|
4
|
-
* The Fluent Checkbox Element. Implements {@link @microsoft/fast-foundation#Checkbox},
|
|
5
|
-
* {@link @microsoft/fast-foundation#checkboxTemplate}
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
|
-
* @remarks
|
|
10
|
-
* HTML Element: \<fluent-checkbox\>
|
|
11
|
-
*/
|
|
12
|
-
export const fluentCheckbox = Checkbox.compose({
|
|
13
|
-
baseName: 'checkbox',
|
|
14
|
-
template,
|
|
15
|
-
styles,
|
|
16
|
-
checkedIndicator: `
|
|
17
|
-
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
18
|
-
<path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>
|
|
19
|
-
</svg>
|
|
20
|
-
`,
|
|
21
|
-
indeterminateIndicator: `
|
|
22
|
-
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
|
|
23
|
-
<path d="M3 8c0-.28.22-.5.5-.5h9a.5.5 0 010 1h-9A.5.5 0 013 8z"/>
|
|
24
|
-
</svg>
|
|
25
|
-
`,
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* Styles for Checkbox
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
export const checkboxStyles = styles;
|