@vonage/vivid 5.2.0 → 5.4.0
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/accordion-item/definition.cjs +2 -1
- package/accordion-item/definition.js +3 -2
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +2 -2
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +4 -2
- package/audio-player/definition.js +4 -2
- package/audio-player/index.cjs +5 -3
- package/audio-player/index.js +5 -3
- package/badge/definition.js +1 -1
- package/badge/index.cjs +2 -2
- package/badge/index.js +4 -4
- package/banner/definition.js +1 -1
- package/banner/index.cjs +3 -3
- package/banner/index.js +6 -6
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/bundled/affix.cjs +7 -7
- package/bundled/affix.js +5 -5
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +15 -13
- package/bundled/base-color-picker.cjs +13 -0
- package/bundled/base-color-picker.js +194 -0
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +2 -2
- package/bundled/calendar-picker.template.cjs +7 -7
- package/bundled/calendar-picker.template.js +118 -118
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +28 -20
- package/bundled/definition.cjs +3 -3
- package/bundled/definition.js +38 -38
- package/bundled/definition10.cjs +72 -18
- package/bundled/definition10.js +351 -65
- package/bundled/definition11.cjs +19 -10
- package/bundled/definition11.js +217 -36
- package/bundled/definition12.cjs +10 -1
- package/bundled/definition12.js +38 -14
- package/bundled/definition13.cjs +1 -73
- package/bundled/definition13.js +15 -354
- package/bundled/definition15.cjs +1 -1
- package/bundled/definition15.js +1 -1
- package/bundled/definition16.cjs +2 -2
- package/bundled/definition16.js +8 -8
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +17 -17
- package/bundled/definition19.cjs +23 -24
- package/bundled/definition19.js +151 -163
- package/bundled/definition2.cjs +9 -5
- package/bundled/definition2.js +21 -17
- package/bundled/definition22.cjs +9 -9
- package/bundled/definition22.js +31 -31
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -1
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +28 -28
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +6 -6
- package/bundled/definition8.cjs +2 -2
- package/bundled/definition8.js +4 -4
- package/bundled/definition9.cjs +5 -5
- package/bundled/definition9.js +394 -392
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +59 -46
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +3 -3
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +48 -34
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +82 -102
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +51 -36
- package/bundled/mixins.cjs +18 -18
- package/bundled/mixins.js +99 -93
- package/bundled/normalize.cjs +1 -0
- package/bundled/normalize.js +7 -0
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +4 -4
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +8 -25
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +459 -233
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +2 -2
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +62 -45
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +5 -5
- package/bundled/vivid-element.cjs +5 -1
- package/bundled/vivid-element.js +2159 -1162
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +8 -7
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +15 -15
- package/calendar-event/index.cjs +1 -1
- package/calendar-event/index.js +1 -1
- package/card/definition.cjs +11 -3
- package/card/definition.js +11 -3
- package/card/index.cjs +19 -11
- package/card/index.js +35 -27
- package/color-picker/definition.cjs +1079 -0
- package/color-picker/definition.js +1073 -0
- package/color-picker/index.cjs +127 -0
- package/color-picker/index.js +726 -0
- package/combobox/definition.cjs +8 -28
- package/combobox/definition.js +10 -30
- package/combobox/index.cjs +7 -7
- package/combobox/index.js +60 -74
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +1670 -163
- package/data-grid/definition.cjs +862 -27
- package/data-grid/definition.js +863 -28
- package/data-grid/index.cjs +25 -25
- package/data-grid/index.js +175 -168
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +4 -0
- package/dial-pad/definition.js +4 -0
- package/dial-pad/index.cjs +3 -3
- package/dial-pad/index.js +42 -39
- package/dialog/definition.cjs +6 -3
- package/dialog/definition.js +6 -3
- package/dialog/index.cjs +22 -19
- package/dialog/index.js +48 -45
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/empty-state/definition.cjs +7 -2
- package/empty-state/definition.js +7 -2
- package/empty-state/index.cjs +10 -5
- package/empty-state/index.js +18 -13
- package/fab/definition.js +1 -1
- package/fab/index.cjs +2 -2
- package/fab/index.js +4 -4
- package/file-picker/definition.cjs +2 -2
- package/file-picker/definition.js +3 -3
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +4 -4
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/icon/definition.cjs +10 -6
- package/icon/definition.js +10 -6
- package/index.cjs +7 -4
- package/index.js +3 -3
- package/lib/accordion/accordion.d.ts +1 -1
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/action-group/action-group.d.ts +2 -2
- package/lib/alert/alert.d.ts +4 -4
- package/lib/audio-player/audio-player.d.ts +3 -3
- package/lib/avatar/avatar.d.ts +2 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/banner/banner.d.ts +6 -6
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
- package/lib/button/button.d.ts +6 -6
- package/lib/button/button.template.d.ts +2 -1
- package/lib/calendar/calendar.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +2 -2
- package/lib/card/card.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +12 -12
- package/lib/color-picker/color-picker.d.ts +2420 -0
- package/lib/color-picker/color-picker.template.d.ts +3 -0
- package/lib/color-picker/definition.d.ts +4 -0
- package/lib/color-picker/locale.d.ts +9 -0
- package/lib/combobox/combobox.d.ts +15 -14
- package/lib/combobox/combobox.options.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +4 -4
- package/lib/data-grid/data-grid-row.d.ts +3 -4
- package/lib/data-grid/data-grid.d.ts +1 -2
- package/lib/date-picker/date-picker.d.ts +54 -54
- package/lib/date-range-picker/date-range-picker.d.ts +28 -28
- package/lib/date-time-picker/date-time-picker.d.ts +56 -56
- package/lib/dial-pad/dial-pad.d.ts +3 -2
- package/lib/dialog/dialog.d.ts +4 -4
- package/lib/divider/divider.d.ts +3 -3
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +14 -14
- package/lib/header/header.d.ts +2 -2
- package/lib/menu/menu.d.ts +4 -4
- package/lib/menu-item/menu-item-role.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +4 -4
- package/lib/nav/nav.d.ts +2 -2
- package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
- package/lib/nav-item/nav-item.d.ts +4 -4
- package/lib/note/note.d.ts +2 -2
- package/lib/number-field/number-field.d.ts +18 -18
- package/lib/option/option.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/popup/popup.d.ts +1 -1
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress-ring/progress-ring.d.ts +2 -2
- package/lib/radio/radio.d.ts +6 -6
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/range-slider/range-slider.d.ts +6 -6
- package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
- package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
- package/lib/searchable-select/locale.d.ts +4 -0
- package/lib/searchable-select/option-tag.d.ts +2 -2
- package/lib/searchable-select/searchable-select.d.ts +21 -18
- package/lib/select/select.d.ts +19 -17
- package/lib/selectable-box/selectable-box.d.ts +2 -2
- package/lib/simple-color-picker/locale.d.ts +0 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
- package/lib/slider/slider.d.ts +7 -7
- package/lib/split-button/split-button.d.ts +6 -6
- package/lib/switch/switch.d.ts +4 -4
- package/lib/tab/tab.d.ts +6 -6
- package/lib/tab-panel/tab-panel.d.ts +2 -2
- package/lib/tabs/tabs.d.ts +2 -2
- package/lib/tag/tag.d.ts +6 -6
- package/lib/tag-group/tag-group.d.ts +2 -2
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +17 -17
- package/lib/text-field/text-field.d.ts +19 -19
- package/lib/time-picker/time-picker.d.ts +28 -28
- package/lib/toggletip/toggletip.d.ts +4 -4
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +4 -4
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/lib/video-player/video-player.d.ts +2 -2
- package/locales/de-DE.cjs +17 -2
- package/locales/de-DE.js +17 -2
- package/locales/en-GB.cjs +17 -2
- package/locales/en-GB.js +17 -2
- package/locales/en-US.cjs +17 -2
- package/locales/en-US.js +17 -2
- package/locales/ja-JP.cjs +17 -2
- package/locales/ja-JP.js +17 -2
- package/locales/zh-CN.cjs +17 -2
- package/locales/zh-CN.js +17 -2
- package/menu/definition.cjs +6 -6
- package/menu/definition.js +7 -7
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.js +1 -1
- package/note/index.cjs +2 -2
- package/note/index.js +4 -4
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +3 -3
- package/number-field/index.cjs +5 -5
- package/number-field/index.js +21 -21
- package/option/definition.cjs +6 -77
- package/option/definition.js +3 -78
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +34 -8
- package/pagination/definition.cjs +2 -1
- package/pagination/definition.js +2 -1
- package/pagination/index.cjs +12 -12
- package/pagination/index.js +59 -59
- package/popup/definition.cjs +2 -2
- package/popup/definition.js +2 -2
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/radio/definition.cjs +9 -9
- package/radio/definition.js +10 -10
- package/radio-group/definition.cjs +2 -1
- package/radio-group/definition.js +2 -1
- package/radio-group/index.cjs +5 -5
- package/radio-group/index.js +80 -77
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +3 -4
- package/rich-text-editor/definition.js +3 -4
- package/rich-text-editor/index.cjs +27 -27
- package/rich-text-editor/index.js +1208 -1198
- package/searchable-select/definition.cjs +106 -14
- package/searchable-select/definition.js +107 -15
- package/searchable-select/index.cjs +81 -69
- package/searchable-select/index.js +362 -276
- package/select/definition.cjs +25 -42
- package/select/definition.js +26 -43
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +3 -3
- package/selectable-box/index.js +20 -20
- package/shared/aria/aria-change-subscription.d.ts +0 -1
- package/shared/aria/aria-mixin.d.ts +3 -3
- package/shared/aria/delegate-aria-behavior.d.ts +5 -10
- package/shared/aria/delegates-aria.d.ts +3 -3
- package/shared/aria/host-semantics-behavior.d.ts +5 -8
- package/shared/aria/host-semantics.d.ts +3 -3
- package/shared/color-picker/base-color-picker.d.ts +436 -0
- package/shared/color-picker/index.d.ts +1 -0
- package/shared/color-picker/locale.d.ts +3 -0
- package/shared/color-picker/utils.d.ts +1 -0
- package/shared/deprecation/replaced-props.d.ts +317 -2
- package/shared/design-system/defineVividComponent.d.ts +2 -2
- package/shared/feedback/feedback-message.d.ts +2 -2
- package/shared/feedback/mixins.d.ts +4 -4
- package/shared/foundation/button/button.d.ts +4 -4
- package/shared/foundation/form-associated/form-associated.d.ts +4 -4
- package/shared/foundation/listbox/listbox.d.ts +4 -0
- package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/patterns/affix.d.ts +4 -4
- package/shared/patterns/anchored.d.ts +4 -4
- package/shared/patterns/char-count/char-count.d.ts +2 -2
- package/shared/patterns/form-elements/form-element.d.ts +4 -4
- package/shared/patterns/form-elements/with-contextual-help.d.ts +6 -6
- package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
- package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
- package/shared/patterns/linkable.d.ts +2 -2
- package/shared/patterns/localized.d.ts +2 -2
- package/shared/patterns/trapped-focus.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.d.ts +14 -14
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +14 -14
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +28 -28
- package/shared/picker-field/mixins/single-date-picker.d.ts +40 -40
- package/shared/picker-field/mixins/single-value-picker.d.ts +12 -12
- package/shared/picker-field/mixins/time-selection-picker.d.ts +29 -29
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +28 -28
- package/shared/picker-field/picker-field.d.ts +14 -14
- package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
- package/shared/templating/render-in-light-dom.d.ts +13 -12
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/simple-color-picker/definition.cjs +29 -216
- package/simple-color-picker/definition.js +30 -217
- package/simple-color-picker/index.cjs +9 -21
- package/simple-color-picker/index.js +71 -185
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/split-button/definition.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +2 -2
- package/switch/index.js +4 -4
- package/tab/definition.js +1 -1
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +2 -2
- package/tabs/index.cjs +2 -2
- package/tabs/index.js +16 -16
- package/tag/definition.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text-area/index.cjs +3 -3
- package/text-area/index.js +8 -8
- package/text-field/definition.cjs +2 -2
- package/text-field/definition.js +4 -4
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +2 -2
- package/toggletip/definition.cjs +2 -2
- package/toggletip/definition.js +3 -3
- package/tooltip/definition.cjs +1 -1
- package/tooltip/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +2 -2
- package/tree-view/definition.js +3 -3
- package/tree-view/index.cjs +2 -2
- package/tree-view/index.js +6 -6
- package/unbundled/_commonjsHelpers.cjs +36 -0
- package/unbundled/_commonjsHelpers.js +32 -0
- package/unbundled/affix.cjs +1 -1
- package/unbundled/affix.js +2 -2
- package/unbundled/attribute-binding-behaviour.cjs +11 -10
- package/unbundled/attribute-binding-behaviour.js +11 -10
- package/unbundled/base-color-picker.cjs +278 -0
- package/unbundled/base-color-picker.js +275 -0
- package/unbundled/button.cjs +1 -1
- package/unbundled/button.js +2 -2
- package/unbundled/calendar-picker.template.cjs +4 -4
- package/unbundled/calendar-picker.template.js +5 -5
- package/unbundled/definition.js +1 -1
- package/unbundled/definition2.cjs +1 -1
- package/unbundled/definition2.js +3 -3
- package/unbundled/definition3.cjs +222 -140
- package/unbundled/definition3.js +220 -138
- package/unbundled/definition4.cjs +145 -235
- package/unbundled/definition4.js +143 -233
- package/unbundled/definition5.cjs +269 -27
- package/unbundled/definition5.js +267 -26
- package/unbundled/definition6.cjs +56 -0
- package/unbundled/definition6.js +52 -0
- package/unbundled/delegates-aria.cjs +67 -33
- package/unbundled/delegates-aria.js +69 -35
- package/unbundled/form-associated.cjs +2 -2
- package/unbundled/form-associated.js +3 -3
- package/unbundled/host-semantics.cjs +47 -22
- package/unbundled/host-semantics.js +48 -23
- package/unbundled/listbox.cjs +41 -63
- package/unbundled/listbox.js +39 -61
- package/unbundled/mixins.cjs +34 -27
- package/unbundled/mixins.js +35 -28
- package/unbundled/picker-field.template.cjs +3 -3
- package/unbundled/picker-field.template.js +4 -4
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +4 -4
- package/unbundled/time-selection-picker.template.js +5 -5
- package/unbundled/vivid-element.cjs +22 -15
- package/unbundled/vivid-element.js +23 -15
- package/video-player/definition.cjs +69047 -1
- package/video-player/definition.js +69047 -1
- package/video-player/index.cjs +36 -36
- package/video-player/index.js +1895 -1905
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +719 -224
- package/bundled/option.cjs +0 -1
- package/bundled/option.js +0 -158
- package/unbundled/option.cjs +0 -217
- package/unbundled/option.js +0 -214
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
${
|
|
1
|
+
"use strict";const s=require("../bundled/vivid-element.cjs"),l=require("../bundled/definition9.cjs"),p=require("../bundled/definition2.cjs"),h=require("../bundled/anchored.cjs"),u=require("../bundled/base-color-picker.cjs"),v=require("../bundled/index.cjs"),m=require("../bundled/repeat.cjs"),f=require("../bundled/class-names.cjs"),w=".palette{display:grid;grid-template-columns:repeat(var(--swatches-per-row, 7),var(--_color-swatch-size, 24px))}.swatch{position:relative;padding:0;border:none;border-radius:4px;background-color:var(--swatch-color);block-size:var(--_color-swatch-size, 24px);color:var(--vvd-color-canvas);cursor:pointer;inline-size:var(--_color-swatch-size, 24px)}.swatch.contrast{color:var(--vvd-color-canvas-text)}.swatch:focus-visible{outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;--focus-inset: -3px}:host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.palette{padding:var(--_color-palette-spacing, 16px);gap:var(--_color-palette-gap, 12px)}::part(popup-base){block-size:max-content;inline-size:max-content;max-block-size:100vh;max-inline-size:100vw;min-block-size:var(--_color-swatch-size, 24px);min-inline-size:var(--_color-swatch-size, 24px)}";var g=Object.defineProperty,d=(r,e,o,n)=>{for(var t=void 0,i=r.length-1,c;i>=0;i--)(c=r[i])&&(t=c(e,o,t)||t);return t&&g(e,o,t),t};class a extends h.Anchored(u.BaseColorPicker(s.VividElement)){constructor(){super(...arguments),this.placement="top-start",this.swatchesPerRow=7,this.#e=()=>{this.open||s.Updates.enqueue(()=>this.open=!0)},this.#t=e=>{(e.key==="Enter"||e.key===" ")&&(this.open||s.Updates.enqueue(()=>this.open=!0),e.preventDefault())},this._closeOnClickOutside=e=>{const o=!this.contains(e.target),n=this._anchorEl?.contains(e.target);(o||n)&&(this.open=!1)},this._closeOnEscape=e=>{e.key==="Escape"&&(this.open=!1)}}openChanged(){this._updateListeners(),this._anchorEl&&this.#o(this._anchorEl),this.open&&(this._refreshCanvasColor(),requestAnimationFrame(()=>{const e=this.swatches.findIndex(n=>n.value===this.value),o=e>=0?e:0;this._focusSwatchByIndex(o)}))}_getRowLength(){return this.swatchesPerRow}connectedCallback(){super.connectedCallback(),this._updateListeners()}disconnectedCallback(){super.disconnectedCallback(),this._updateListeners()}_updateListeners(){document.removeEventListener("click",this._closeOnClickOutside),document.removeEventListener("keydown",this._closeOnEscape),this.open&&this.isConnected&&(document.addEventListener("click",this._closeOnClickOutside),document.addEventListener("keydown",this._closeOnEscape))}_getFocusReturnEl(){return this._anchorEl??null}_anchorElChanged(e,o){e&&this.#r(e),o&&this.#s(o)}#o(e){e.setAttribute("aria-expanded",this.open.toString()),e.setAttribute("data-expanded",this.open.toString())}#s(e){this.#o(e),e.addEventListener("click",this.#e,!0),e.addEventListener("keydown",this.#t),e.setAttribute("aria-haspopup","true")}#r(e){e.removeEventListener("click",this.#e,!0),e.removeEventListener("keydown",this.#t),e.removeAttribute("aria-expanded"),e.removeAttribute("data-expanded"),e.removeAttribute("aria-haspopup")}#e;#t}d([s.attr({mode:"fromView"})],a.prototype,"placement");d([s.attr({attribute:"swatches-per-row",mode:"fromView",converter:s.nullableNumberConverter})],a.prototype,"swatchesPerRow");const _=r=>f.classNames("control"),k=r=>{const e=r.tagFor(l.Popup),o=r.tagFor(p.Icon),n=h.anchorSlotTemplateFactory();return s.html`
|
|
2
|
+
${n}
|
|
3
3
|
<${e}
|
|
4
|
-
class="${
|
|
4
|
+
class="${_}"
|
|
5
5
|
:anchor="${t=>t._anchorEl}"
|
|
6
6
|
:open="${t=>t.open}"
|
|
7
7
|
placement="${t=>t.placement}"
|
|
8
8
|
offset="4"
|
|
9
|
-
@keydown="${(t,{event:
|
|
9
|
+
@keydown="${(t,{event:i})=>!(t.open&&v.handleEscapeKeyAndStopPropogation(i))}"
|
|
10
10
|
>
|
|
11
11
|
<div class="palette" role="grid"
|
|
12
|
-
aria-rowcount="${t=>Math.ceil(t.swatches.length/t.
|
|
13
|
-
aria-colcount="${t=>t.
|
|
14
|
-
style="--swatches-per-row: ${t=>t.
|
|
12
|
+
aria-rowcount="${t=>Math.ceil(t.swatches.length/t._getRowLength())}"
|
|
13
|
+
aria-colcount="${t=>t._getRowLength()}"
|
|
14
|
+
style="--swatches-per-row: ${t=>t._getRowLength()};"
|
|
15
15
|
aria-label="${t=>t.locale.simpleColorPicker.colorPaletteLabel}">
|
|
16
|
-
${
|
|
17
|
-
<button
|
|
18
|
-
class="swatch ${(t,s)=>g.classNames(s.parent.value===t.value?"selected":"",s.parent._applyContrastClass(t.value)?"contrast":"")}"
|
|
19
|
-
role="gridcell"
|
|
20
|
-
style="--swatch-color: ${t=>t.value};"
|
|
21
|
-
tabindex="${(t,s)=>s.index===0?"0":"-1"}"
|
|
22
|
-
aria-label="${(t,s)=>s.parent.locale.simpleColorPicker.colorSwatchLabel(t.value,t.label,s.parent.value===t.value)}"
|
|
23
|
-
@click="${(t,s)=>s.parent._handleSwatchSelection(t)}"
|
|
24
|
-
@keydown="${(t,s)=>s.parent._handleSwatchKeydown(s.event,t,s.index)}"
|
|
25
|
-
>
|
|
26
|
-
${E.when((t,s)=>s.parent.value===t.value,a.html`<${r} size="-6" name="check-solid" aria-hidden="true"></${r}>`)}
|
|
27
|
-
</button>
|
|
28
|
-
`,{positioning:!0})}
|
|
16
|
+
${m.repeat(t=>t.swatches,t=>t._renderColorSwatch(o),{positioning:!0})}
|
|
29
17
|
</div>
|
|
30
18
|
</${e}>
|
|
31
|
-
`},
|
|
19
|
+
`},x=s.defineVividComponent("simple-color-picker",a,k,[l.popupDefinition,p.iconDefinition],{styles:w}),b=s.createRegisterFunction(x);b();
|
|
@@ -1,250 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { P as
|
|
3
|
-
import { I as
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (!a) return null;
|
|
15
|
-
const e = a.trim().replace(/^#/, "");
|
|
16
|
-
return /^[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() : null;
|
|
17
|
-
}
|
|
18
|
-
function v(a) {
|
|
19
|
-
const e = D(a);
|
|
20
|
-
if (!e) return 0;
|
|
21
|
-
const r = parseInt(e.slice(0, 2), 16) / 255, s = parseInt(e.slice(2, 4), 16) / 255, t = parseInt(e.slice(4, 6), 16) / 255, o = r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4), n = s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4), i = t <= 0.03928 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
|
|
22
|
-
return 0.2126 * o + 0.7152 * n + 0.0722 * i;
|
|
23
|
-
}
|
|
24
|
-
function O(a, e) {
|
|
25
|
-
const r = v(a), s = v(e), t = Math.max(r, s), o = Math.min(r, s);
|
|
26
|
-
return (t + 0.05) / (o + 0.05);
|
|
27
|
-
}
|
|
28
|
-
function T(a, e) {
|
|
29
|
-
return e || (e = document.querySelector(".vvd-root") || document.documentElement), getComputedStyle(e).getPropertyValue(a).trim();
|
|
30
|
-
}
|
|
31
|
-
var q = Object.defineProperty, h = (a, e, r, s) => {
|
|
32
|
-
for (var t = void 0, o = a.length - 1, n; o >= 0; o--)
|
|
33
|
-
(n = a[o]) && (t = n(e, r, t) || t);
|
|
34
|
-
return t && q(e, r, t), t;
|
|
1
|
+
import { U as c, V as h, a as l, n as d, h as u, c as m, d as v } from "../bundled/vivid-element.js";
|
|
2
|
+
import { P as f, p as w } from "../bundled/definition9.js";
|
|
3
|
+
import { I as g, i as _ } from "../bundled/definition2.js";
|
|
4
|
+
import { A as k, a as x } from "../bundled/anchored.js";
|
|
5
|
+
import { B as b } from "../bundled/base-color-picker.js";
|
|
6
|
+
import { h as C } from "../bundled/index.js";
|
|
7
|
+
import { r as E } from "../bundled/repeat.js";
|
|
8
|
+
import { c as y } from "../bundled/class-names.js";
|
|
9
|
+
const L = ".palette{display:grid;grid-template-columns:repeat(var(--swatches-per-row, 7),var(--_color-swatch-size, 24px))}.swatch{position:relative;padding:0;border:none;border-radius:4px;background-color:var(--swatch-color);block-size:var(--_color-swatch-size, 24px);color:var(--vvd-color-canvas);cursor:pointer;inline-size:var(--_color-swatch-size, 24px)}.swatch.contrast{color:var(--vvd-color-canvas-text)}.swatch:focus-visible{outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;--focus-inset: -3px}:host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.palette{padding:var(--_color-palette-spacing, 16px);gap:var(--_color-palette-gap, 12px)}::part(popup-base){block-size:max-content;inline-size:max-content;max-block-size:100vh;max-inline-size:100vw;min-block-size:var(--_color-swatch-size, 24px);min-inline-size:var(--_color-swatch-size, 24px)}";
|
|
10
|
+
var P = Object.defineProperty, p = (s, e, o, r) => {
|
|
11
|
+
for (var t = void 0, n = s.length - 1, a; n >= 0; n--)
|
|
12
|
+
(a = s[n]) && (t = a(e, o, t) || t);
|
|
13
|
+
return t && P(e, o, t), t;
|
|
35
14
|
};
|
|
36
|
-
class
|
|
37
|
-
$(z(P(g)))
|
|
38
|
-
) {
|
|
15
|
+
class i extends k(b(h)) {
|
|
39
16
|
constructor() {
|
|
40
|
-
super(...arguments), this.
|
|
41
|
-
this.open ||
|
|
42
|
-
}, this.#
|
|
43
|
-
(e.key === "Enter" || e.key === " ") && (this.open ||
|
|
44
|
-
}, this
|
|
45
|
-
const
|
|
46
|
-
(
|
|
47
|
-
}, this
|
|
17
|
+
super(...arguments), this.placement = "top-start", this.swatchesPerRow = 7, this.#e = () => {
|
|
18
|
+
this.open || c.enqueue(() => this.open = !0);
|
|
19
|
+
}, this.#t = (e) => {
|
|
20
|
+
(e.key === "Enter" || e.key === " ") && (this.open || c.enqueue(() => this.open = !0), e.preventDefault());
|
|
21
|
+
}, this._closeOnClickOutside = (e) => {
|
|
22
|
+
const o = !this.contains(e.target), r = this._anchorEl?.contains(e.target);
|
|
23
|
+
(o || r) && (this.open = !1);
|
|
24
|
+
}, this._closeOnEscape = (e) => {
|
|
48
25
|
e.key === "Escape" && (this.open = !1);
|
|
49
|
-
}, this._handleSwatchSelection = (e) => {
|
|
50
|
-
this.value === e.value ? this.value = "" : this.value = e.value, this.$emit("change"), this.open = !1;
|
|
51
|
-
}, this._handleSwatchKeydown = (e, r, s) => {
|
|
52
|
-
const t = this.swatchesPerRow, o = this.swatches.length, n = Math.floor(s / t), i = s % t, f = Math.ceil(o / t);
|
|
53
|
-
switch (e.key) {
|
|
54
|
-
case "ArrowRight":
|
|
55
|
-
return i < t - 1 && s + 1 < o && this.#e(s + 1), !1;
|
|
56
|
-
case "ArrowLeft":
|
|
57
|
-
return i > 0 && this.#e(s - 1), !1;
|
|
58
|
-
case "ArrowDown":
|
|
59
|
-
return n < f - 1 && s + t < o && this.#e(s + t), !1;
|
|
60
|
-
case "ArrowUp":
|
|
61
|
-
return n > 0 && this.#e(s - t), !1;
|
|
62
|
-
case "PageDown": {
|
|
63
|
-
const c = (f - 1) * t, m = Math.min(c + i, o - 1);
|
|
64
|
-
return s !== m && this.#e(m), !1;
|
|
65
|
-
}
|
|
66
|
-
case "PageUp": {
|
|
67
|
-
const c = Math.min(i, o - 1);
|
|
68
|
-
return s !== c && this.#e(c), !1;
|
|
69
|
-
}
|
|
70
|
-
case "Home":
|
|
71
|
-
return e.ctrlKey ? this.#e(0) : this.#e(n * t), !1;
|
|
72
|
-
case "End":
|
|
73
|
-
if (e.ctrlKey)
|
|
74
|
-
this.#e(o - 1);
|
|
75
|
-
else {
|
|
76
|
-
const c = Math.min(
|
|
77
|
-
(n + 1) * t - 1,
|
|
78
|
-
o - 1
|
|
79
|
-
);
|
|
80
|
-
this.#e(c);
|
|
81
|
-
}
|
|
82
|
-
return !1;
|
|
83
|
-
case "Enter":
|
|
84
|
-
case " ":
|
|
85
|
-
return this._handleSwatchSelection(r), this.#i(), !1;
|
|
86
|
-
case "Escape":
|
|
87
|
-
return this.open = !1, this.#i(), !1;
|
|
88
|
-
case "Tab":
|
|
89
|
-
return this.open = !1, !0;
|
|
90
|
-
default:
|
|
91
|
-
return !0;
|
|
92
|
-
}
|
|
93
26
|
};
|
|
94
27
|
}
|
|
95
28
|
/**
|
|
96
29
|
* @internal
|
|
97
30
|
*/
|
|
98
31
|
openChanged() {
|
|
99
|
-
this
|
|
32
|
+
this._updateListeners(), this._anchorEl && this.#o(this._anchorEl), this.open && (this._refreshCanvasColor(), requestAnimationFrame(() => {
|
|
100
33
|
const e = this.swatches.findIndex(
|
|
101
|
-
(
|
|
102
|
-
),
|
|
103
|
-
this
|
|
34
|
+
(r) => r.value === this.value
|
|
35
|
+
), o = e >= 0 ? e : 0;
|
|
36
|
+
this._focusSwatchByIndex(o);
|
|
104
37
|
}));
|
|
105
38
|
}
|
|
106
|
-
connectedCallback() {
|
|
107
|
-
super.connectedCallback(), this.#t(), this._refreshCanvasColor();
|
|
108
|
-
}
|
|
109
|
-
disconnectedCallback() {
|
|
110
|
-
super.disconnectedCallback(), this.#t();
|
|
111
|
-
}
|
|
112
39
|
/**
|
|
113
40
|
* @internal
|
|
114
41
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
42
|
+
_getRowLength() {
|
|
43
|
+
return this.swatchesPerRow;
|
|
117
44
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
*/
|
|
121
|
-
_refreshCanvasColor() {
|
|
122
|
-
this._canvasColor = T("--vvd-color-canvas", this);
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
super.connectedCallback(), this._updateListeners();
|
|
123
47
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
_applyContrastClass(e, r = 3) {
|
|
128
|
-
return !e || !this._canvasColor ? !1 : O(e, this._canvasColor) < r;
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
super.disconnectedCallback(), this._updateListeners();
|
|
129
50
|
}
|
|
130
51
|
/**
|
|
131
52
|
* @internal
|
|
132
53
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
54
|
+
_updateListeners() {
|
|
55
|
+
document.removeEventListener("click", this._closeOnClickOutside), document.removeEventListener("keydown", this._closeOnEscape), this.open && this.isConnected && (document.addEventListener("click", this._closeOnClickOutside), document.addEventListener("keydown", this._closeOnEscape));
|
|
135
56
|
}
|
|
136
57
|
/**
|
|
137
58
|
* @internal
|
|
138
59
|
*/
|
|
139
|
-
|
|
140
|
-
|
|
60
|
+
_getFocusReturnEl() {
|
|
61
|
+
return this._anchorEl ?? null;
|
|
141
62
|
}
|
|
142
63
|
/**
|
|
143
64
|
* @internal
|
|
144
65
|
*/
|
|
145
|
-
|
|
146
|
-
this.#
|
|
66
|
+
_anchorElChanged(e, o) {
|
|
67
|
+
e && this.#r(e), o && this.#s(o);
|
|
147
68
|
}
|
|
148
69
|
/**
|
|
149
70
|
* @internal
|
|
150
71
|
*/
|
|
151
|
-
#
|
|
152
|
-
e.
|
|
72
|
+
#o(e) {
|
|
73
|
+
e.setAttribute("aria-expanded", this.open.toString()), e.setAttribute("data-expanded", this.open.toString());
|
|
153
74
|
}
|
|
154
|
-
#o;
|
|
155
|
-
#s;
|
|
156
|
-
#r;
|
|
157
|
-
#a;
|
|
158
75
|
/**
|
|
159
76
|
* @internal
|
|
160
77
|
*/
|
|
161
|
-
#
|
|
162
|
-
|
|
163
|
-
this.shadowRoot?.querySelectorAll('[role="gridcell"]')?.[e]?.focus();
|
|
78
|
+
#s(e) {
|
|
79
|
+
this.#o(e), e.addEventListener("click", this.#e, !0), e.addEventListener("keydown", this.#t), e.setAttribute("aria-haspopup", "true");
|
|
164
80
|
}
|
|
165
81
|
/**
|
|
166
82
|
* @internal
|
|
167
83
|
*/
|
|
168
|
-
#
|
|
169
|
-
|
|
84
|
+
#r(e) {
|
|
85
|
+
e.removeEventListener("click", this.#e, !0), e.removeEventListener("keydown", this.#t), e.removeAttribute("aria-expanded"), e.removeAttribute("data-expanded"), e.removeAttribute("aria-haspopup");
|
|
170
86
|
}
|
|
87
|
+
#e;
|
|
88
|
+
#t;
|
|
171
89
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
],
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
], l.prototype, "placement");
|
|
178
|
-
h([
|
|
179
|
-
C
|
|
180
|
-
], l.prototype, "swatches");
|
|
181
|
-
h([
|
|
182
|
-
d({
|
|
90
|
+
p([
|
|
91
|
+
l({ mode: "fromView" })
|
|
92
|
+
], i.prototype, "placement");
|
|
93
|
+
p([
|
|
94
|
+
l({
|
|
183
95
|
attribute: "swatches-per-row",
|
|
184
96
|
mode: "fromView",
|
|
185
|
-
converter:
|
|
97
|
+
converter: d
|
|
186
98
|
})
|
|
187
|
-
],
|
|
188
|
-
const
|
|
189
|
-
const e =
|
|
99
|
+
], i.prototype, "swatchesPerRow");
|
|
100
|
+
const A = (s) => y("control"), z = (s) => {
|
|
101
|
+
const e = s.tagFor(f), o = s.tagFor(g), r = x();
|
|
190
102
|
return u`
|
|
191
|
-
${
|
|
103
|
+
${r}
|
|
192
104
|
<${e}
|
|
193
|
-
class="${
|
|
105
|
+
class="${A}"
|
|
194
106
|
:anchor="${(t) => t._anchorEl}"
|
|
195
107
|
:open="${(t) => t.open}"
|
|
196
108
|
placement="${(t) => t.placement}"
|
|
197
109
|
offset="4"
|
|
198
|
-
@keydown="${(t, { event:
|
|
110
|
+
@keydown="${(t, { event: n }) => !(t.open && C(n))}"
|
|
199
111
|
>
|
|
200
112
|
<div class="palette" role="grid"
|
|
201
|
-
aria-rowcount="${(t) => Math.ceil(t.swatches.length / t.
|
|
202
|
-
aria-colcount="${(t) => t.
|
|
203
|
-
style="--swatches-per-row: ${(t) => t.
|
|
113
|
+
aria-rowcount="${(t) => Math.ceil(t.swatches.length / t._getRowLength())}"
|
|
114
|
+
aria-colcount="${(t) => t._getRowLength()}"
|
|
115
|
+
style="--swatches-per-row: ${(t) => t._getRowLength()};"
|
|
204
116
|
aria-label="${(t) => t.locale.simpleColorPicker.colorPaletteLabel}">
|
|
205
|
-
${
|
|
117
|
+
${E(
|
|
206
118
|
(t) => t.swatches,
|
|
207
|
-
|
|
208
|
-
<button
|
|
209
|
-
class="swatch ${(t, o) => w(
|
|
210
|
-
o.parent.value === t.value ? "selected" : "",
|
|
211
|
-
o.parent._applyContrastClass(t.value) ? "contrast" : ""
|
|
212
|
-
)}"
|
|
213
|
-
role="gridcell"
|
|
214
|
-
style="--swatch-color: ${(t) => t.value};"
|
|
215
|
-
tabindex="${(t, o) => o.index === 0 ? "0" : "-1"}"
|
|
216
|
-
aria-label="${(t, o) => o.parent.locale.simpleColorPicker.colorSwatchLabel(
|
|
217
|
-
t.value,
|
|
218
|
-
t.label,
|
|
219
|
-
o.parent.value === t.value
|
|
220
|
-
)}"
|
|
221
|
-
@click="${(t, o) => o.parent._handleSwatchSelection(t)}"
|
|
222
|
-
@keydown="${(t, o) => o.parent._handleSwatchKeydown(
|
|
223
|
-
o.event,
|
|
224
|
-
t,
|
|
225
|
-
o.index
|
|
226
|
-
)}"
|
|
227
|
-
>
|
|
228
|
-
${F(
|
|
229
|
-
(t, o) => o.parent.value === t.value,
|
|
230
|
-
u`<${r} size="-6" name="check-solid" aria-hidden="true"></${r}>`
|
|
231
|
-
)}
|
|
232
|
-
</button>
|
|
233
|
-
`,
|
|
119
|
+
(t) => t._renderColorSwatch(o),
|
|
234
120
|
{ positioning: !0 }
|
|
235
121
|
)}
|
|
236
122
|
</div>
|
|
237
123
|
</${e}>
|
|
238
124
|
`;
|
|
239
|
-
},
|
|
125
|
+
}, $ = v(
|
|
240
126
|
"simple-color-picker",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
[
|
|
127
|
+
i,
|
|
128
|
+
z,
|
|
129
|
+
[w, _],
|
|
244
130
|
{
|
|
245
|
-
styles:
|
|
131
|
+
styles: L
|
|
246
132
|
}
|
|
247
|
-
),
|
|
248
|
-
|
|
133
|
+
), O = m(
|
|
134
|
+
$
|
|
249
135
|
);
|
|
250
|
-
|
|
136
|
+
O();
|
package/slider/definition.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const popup_definition = require('../unbundled/
|
|
5
|
+
const popup_definition = require('../unbundled/definition5.cjs');
|
|
6
6
|
const vividElement = require('../unbundled/vivid-element.cjs');
|
|
7
7
|
const fastElement = require('@microsoft/fast-element');
|
|
8
8
|
const fastWebUtilities = require('@microsoft/fast-web-utilities');
|
package/slider/definition.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as popupDefinition } from '../unbundled/
|
|
1
|
+
import { p as popupDefinition } from '../unbundled/definition5.js';
|
|
2
2
|
import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
3
3
|
import { attr, observable, nullableNumberConverter, volatile } from '@microsoft/fast-element';
|
|
4
4
|
import { Direction, Orientation, keyHome, keyEnd, keyArrowDown, keyArrowUp, limit } from '@microsoft/fast-web-utilities';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iconDefinition } from '../icon/definition.js';
|
|
2
2
|
import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
3
3
|
import { attr, html, ref } from '@microsoft/fast-element';
|
|
4
|
-
import {
|
|
4
|
+
import { A as AffixIcon, a as affixIconTemplateFactory, I as IconWrapper } from '../unbundled/affix.js';
|
|
5
5
|
import { D as DelegatesAria, d as delegateAria } from '../unbundled/delegates-aria.js';
|
|
6
6
|
import { L as Localized } from '../unbundled/localized.js';
|
|
7
7
|
import { classNames } from '@microsoft/fast-web-utilities';
|
package/styles/core/all.css
CHANGED
package/styles/core/theme.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Do not edit directly
|
|
11
|
-
* Generated on
|
|
11
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Do not edit directly
|
|
15
|
-
* Generated on
|
|
15
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
16
16
|
*/
|
|
17
17
|
@property --vvd-size-density {
|
|
18
18
|
syntax: "<integer>";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Do not edit directly
|
|
11
|
-
* Generated on
|
|
11
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Do not edit directly
|
|
15
|
-
* Generated on
|
|
15
|
+
* Generated on Tue, 28 Oct 2025 11:07:10 GMT
|
|
16
16
|
*/
|
|
17
17
|
@property --vvd-size-density {
|
|
18
18
|
syntax: "<integer>";
|
package/switch/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const d=require("../bundled/definition2.cjs"),e=require("../bundled/vivid-element.cjs"),s=require("../bundled/delegates-aria.cjs"),p=require("../bundled/form-associated.cjs"),v=require("../bundled/key-codes.cjs"),h=require("../bundled/
|
|
1
|
+
"use strict";const d=require("../bundled/definition2.cjs"),e=require("../bundled/vivid-element.cjs"),s=require("../bundled/delegates-aria.cjs"),p=require("../bundled/form-associated.cjs"),v=require("../bundled/key-codes.cjs"),h=require("../bundled/when.cjs"),u=require("../bundled/class-names.cjs"),m=':host(.disabled){cursor:not-allowed}.control.connotation-cta{--_connotation-color-primary-text: var(--vvd-switch-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-increment: var(--vvd-switch-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-switch-cta-firm, var(--vvd-color-cta-600));--_connotation-color-intermediate: var(--vvd-switch-cta-intermediate, var(--vvd-color-cta-500));--_connotation-color-fierce: var(--vvd-switch-cta-fierce, var(--vvd-color-cta-700))}.control.connotation-alert{--_connotation-color-primary-text: var(--vvd-switch-alert-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-alert-primary, var(--vvd-color-alert-500));--_connotation-color-primary-increment: var(--vvd-switch-alert-primary-increment, var(--vvd-color-alert-600));--_connotation-color-firm: var(--vvd-switch-alert-firm, var(--vvd-color-alert-600));--_connotation-color-intermediate: var(--vvd-switch-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-fierce: var(--vvd-switch-alert-fierce, var(--vvd-color-alert-700))}.control.connotation-success{--_connotation-color-primary-text: var(--vvd-switch-success-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-success-primary, var(--vvd-color-success-500));--_connotation-color-primary-increment: var(--vvd-switch-success-primary-increment, var(--vvd-color-success-600));--_connotation-color-firm: var(--vvd-switch-success-firm, var(--vvd-color-success-600));--_connotation-color-intermediate: var(--vvd-switch-success-intermediate, var(--vvd-color-success-500));--_connotation-color-fierce: var(--vvd-switch-success-fierce, var(--vvd-color-success-700))}.control.connotation-announcement{--_connotation-color-primary-text: var(--vvd-switch-announcement-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-announcement-primary, var(--vvd-color-announcement-500));--_connotation-color-primary-increment: var(--vvd-switch-announcement-primary-increment, var(--vvd-color-announcement-600));--_connotation-color-firm: var(--vvd-switch-announcement-firm, var(--vvd-color-announcement-600));--_connotation-color-intermediate: var(--vvd-switch-announcement-intermediate, var(--vvd-color-announcement-500));--_connotation-color-fierce: var(--vvd-switch-announcement-fierce, var(--vvd-color-announcement-700))}.control:not(.connotation-cta,.connotation-alert,.connotation-success,.connotation-announcement){--_connotation-color-primary-text: var(--vvd-switch-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-increment: var(--vvd-switch-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-switch-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-intermediate: var(--vvd-switch-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-fierce: var(--vvd-switch-accent-fierce, var(--vvd-color-neutral-700))}.control{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.control.appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}@media (hover: hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.control:hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.control.hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.control:disabled.appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.control.disabled.appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.control.readonly:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-800);--_appearance-color-fill: var(--vvd-color-neutral-500);--_appearance-color-outline: transparent}.control{display:inline-flex;border-radius:16px;gap:8px;outline:none}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.switch{--_switch-inline-size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*1.8) ;display:flex;box-sizing:border-box;flex-shrink:0;align-items:center;border-radius:40px;background-color:var(--_appearance-color-fill);block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);inline-size:var(--_switch-inline-size);transition:all .2s ease-in-out 0s}.control:focus-visible .switch{position:relative}.control:focus-visible .switch:after{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;display:block;border-radius:var(--focus-border-radius, inherit);block-size:calc(100% + var(--focus-block-size-addition, 4px));content:"";inline-size:calc(100% + var(--focus-block-size-addition, 4px));inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%);--focus-stroke-gap-color: transparent;--focus-block-size-addition: 6px}.checked-indicator{--_switch-checked-indicator-size: calc( calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) / 1.6667);--_switch-gutter: calc(var(--_switch-checked-indicator-size) / 3);border-radius:inherit;block-size:var(--_switch-checked-indicator-size);inline-size:var(--_switch-checked-indicator-size);margin-inline-start:auto;transition:all .2s ease-in-out 0s}.control:not(.appearance-filled) .checked-indicator{background-color:var(--_appearance-color-outline)}.control:not(.appearance-filled):where(.readonly) .checked-indicator{background-color:var(--vvd-color-neutral-600)}.control.appearance-filled .checked-indicator{background-color:var(--vvd-color-neutral-100)}.control:not(.checked) .checked-indicator{transform:translate(calc(-1 * var(--_switch-inline-size) + var(--_switch-checked-indicator-size) + var(--_switch-gutter)))}.control.checked .checked-indicator{transform:translate(calc(-1 * var(--_switch-gutter)))}.control.appearance-filled.disabled .checked-indicator{background-color:var(--_appearance-color-text)}.control.appearance-filled.readonly .checked-indicator{background-color:var(--vvd-color-neutral-50)}.label{color:var(--vvd-color-canvas-text);cursor:pointer;font:var(--vvd-typography-base)}';var _=Object.defineProperty,t=(o,r,i,x)=>{for(var a=void 0,n=o.length-1,l;n>=0;n--)(l=o[n])&&(a=l(r,i,a)||a);return a&&_(r,i,a),a};class c extends s.DelegatesAria(p.CheckableFormAssociated(e.VividElement)){constructor(){super(),this.proxy=document.createElement("input"),this.initialValue="on",this.keypressHandler=r=>{(r.key===v.keySpace||r.key===v.keyEnter)&&(this.checked=!this.checked)},this.clickHandler=()=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.checked=this.defaultChecked}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const r=this.checked?this.value:null;this.setFormValue(r,r)}}t([e.attr],c.prototype,"label");t([e.attr],c.prototype,"connotation");t([e.attr({attribute:"readonly",mode:"boolean"})],c.prototype,"readOnly");t([e.observable],c.prototype,"defaultSlottedNodes");const y=o=>u.classNames("control",["appearance-filled",o.checked],["checked",o.checked],["disabled",o.disabled],["readonly",o.readOnly],[`connotation-${o.connotation}`,!!o.checked&&!!o.connotation]),f=e.html`
|
|
2
2
|
<template>
|
|
3
3
|
<div
|
|
4
4
|
class="${y}"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="switch">
|
|
11
11
|
<span class="checked-indicator"></span>
|
|
12
12
|
</div>
|
|
13
|
-
${
|
|
13
|
+
${h.when(o=>o.label,e.html`<div class="label">${o=>o.label}</div>`)}
|
|
14
14
|
</div>
|
|
15
15
|
</template>
|
|
16
16
|
`,b=e.defineVividComponent("switch",c,f,[d.iconDefinition],{styles:m,shadowOptions:{delegatesFocus:!0}}),w=e.createRegisterFunction(b);w();
|
package/switch/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { V as d, a as n, o as p, h as v, c as h, d as u } from "../bundled/vivid
|
|
|
3
3
|
import { D as m, d as f } from "../bundled/delegates-aria.js";
|
|
4
4
|
import { C as _ } from "../bundled/form-associated.js";
|
|
5
5
|
import { l as y, f as b } from "../bundled/key-codes.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { w } from "../bundled/when.js";
|
|
7
|
+
import { c as x } from "../bundled/class-names.js";
|
|
8
8
|
const k = ':host(.disabled){cursor:not-allowed}.control.connotation-cta{--_connotation-color-primary-text: var(--vvd-switch-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-increment: var(--vvd-switch-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-firm: var(--vvd-switch-cta-firm, var(--vvd-color-cta-600));--_connotation-color-intermediate: var(--vvd-switch-cta-intermediate, var(--vvd-color-cta-500));--_connotation-color-fierce: var(--vvd-switch-cta-fierce, var(--vvd-color-cta-700))}.control.connotation-alert{--_connotation-color-primary-text: var(--vvd-switch-alert-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-alert-primary, var(--vvd-color-alert-500));--_connotation-color-primary-increment: var(--vvd-switch-alert-primary-increment, var(--vvd-color-alert-600));--_connotation-color-firm: var(--vvd-switch-alert-firm, var(--vvd-color-alert-600));--_connotation-color-intermediate: var(--vvd-switch-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-fierce: var(--vvd-switch-alert-fierce, var(--vvd-color-alert-700))}.control.connotation-success{--_connotation-color-primary-text: var(--vvd-switch-success-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-success-primary, var(--vvd-color-success-500));--_connotation-color-primary-increment: var(--vvd-switch-success-primary-increment, var(--vvd-color-success-600));--_connotation-color-firm: var(--vvd-switch-success-firm, var(--vvd-color-success-600));--_connotation-color-intermediate: var(--vvd-switch-success-intermediate, var(--vvd-color-success-500));--_connotation-color-fierce: var(--vvd-switch-success-fierce, var(--vvd-color-success-700))}.control.connotation-announcement{--_connotation-color-primary-text: var(--vvd-switch-announcement-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-announcement-primary, var(--vvd-color-announcement-500));--_connotation-color-primary-increment: var(--vvd-switch-announcement-primary-increment, var(--vvd-color-announcement-600));--_connotation-color-firm: var(--vvd-switch-announcement-firm, var(--vvd-color-announcement-600));--_connotation-color-intermediate: var(--vvd-switch-announcement-intermediate, var(--vvd-color-announcement-500));--_connotation-color-fierce: var(--vvd-switch-announcement-fierce, var(--vvd-color-announcement-700))}.control:not(.connotation-cta,.connotation-alert,.connotation-success,.connotation-announcement){--_connotation-color-primary-text: var(--vvd-switch-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary: var(--vvd-switch-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-increment: var(--vvd-switch-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-firm: var(--vvd-switch-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-intermediate: var(--vvd-switch-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-fierce: var(--vvd-switch-accent-fierce, var(--vvd-color-neutral-700))}.control{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.control.appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}@media (hover: hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.control:hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.control.hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.control:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.control:disabled.appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.control.disabled.appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: transparent}.control.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.control.readonly:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--vvd-color-neutral-800);--_appearance-color-fill: var(--vvd-color-neutral-500);--_appearance-color-outline: transparent}.control{display:inline-flex;border-radius:16px;gap:8px;outline:none}@supports (user-select: none){.control{user-select:none}}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.switch{--_switch-inline-size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*1.8) ;display:flex;box-sizing:border-box;flex-shrink:0;align-items:center;border-radius:40px;background-color:var(--_appearance-color-fill);block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);inline-size:var(--_switch-inline-size);transition:all .2s ease-in-out 0s}.control:focus-visible .switch{position:relative}.control:focus-visible .switch:after{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;display:block;border-radius:var(--focus-border-radius, inherit);block-size:calc(100% + var(--focus-block-size-addition, 4px));content:"";inline-size:calc(100% + var(--focus-block-size-addition, 4px));inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%);--focus-stroke-gap-color: transparent;--focus-block-size-addition: 6px}.checked-indicator{--_switch-checked-indicator-size: calc( calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) / 1.6667);--_switch-gutter: calc(var(--_switch-checked-indicator-size) / 3);border-radius:inherit;block-size:var(--_switch-checked-indicator-size);inline-size:var(--_switch-checked-indicator-size);margin-inline-start:auto;transition:all .2s ease-in-out 0s}.control:not(.appearance-filled) .checked-indicator{background-color:var(--_appearance-color-outline)}.control:not(.appearance-filled):where(.readonly) .checked-indicator{background-color:var(--vvd-color-neutral-600)}.control.appearance-filled .checked-indicator{background-color:var(--vvd-color-neutral-100)}.control:not(.checked) .checked-indicator{transform:translate(calc(-1 * var(--_switch-inline-size) + var(--_switch-checked-indicator-size) + var(--_switch-gutter)))}.control.checked .checked-indicator{transform:translate(calc(-1 * var(--_switch-gutter)))}.control.appearance-filled.disabled .checked-indicator{background-color:var(--_appearance-color-text)}.control.appearance-filled.readonly .checked-indicator{background-color:var(--vvd-color-neutral-50)}.label{color:var(--vvd-color-canvas-text);cursor:pointer;font:var(--vvd-typography-base)}';
|
|
9
9
|
var g = Object.defineProperty, c = (o, a, i, F) => {
|
|
10
10
|
for (var r = void 0, t = o.length - 1, l; t >= 0; t--)
|
|
@@ -54,7 +54,7 @@ c([
|
|
|
54
54
|
c([
|
|
55
55
|
p
|
|
56
56
|
], e.prototype, "defaultSlottedNodes");
|
|
57
|
-
const z = (o) =>
|
|
57
|
+
const z = (o) => x(
|
|
58
58
|
"control",
|
|
59
59
|
["appearance-filled", o.checked],
|
|
60
60
|
["checked", o.checked],
|
|
@@ -81,7 +81,7 @@ const z = (o) => w(
|
|
|
81
81
|
<div class="switch">
|
|
82
82
|
<span class="checked-indicator"></span>
|
|
83
83
|
</div>
|
|
84
|
-
${
|
|
84
|
+
${w(
|
|
85
85
|
(o) => o.label,
|
|
86
86
|
v`<div class="label">${(o) => o.label}</div>`
|
|
87
87
|
)}
|
package/tab/definition.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { iconDefinition } from '../icon/definition.js';
|
|
2
2
|
import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
|
|
3
3
|
import { attr, observable, html } from '@microsoft/fast-element';
|
|
4
|
-
import {
|
|
4
|
+
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from '../unbundled/affix.js';
|
|
5
5
|
import { H as HostSemantics, a as applyHostSemantics } from '../unbundled/host-semantics.js';
|
|
6
6
|
import { L as Localized } from '../unbundled/localized.js';
|
|
7
7
|
import { classNames } from '@microsoft/fast-web-utilities';
|