@nectary/components 5.42.3 → 5.42.5-rc.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/global/index.js +1 -1
- package/accordion/index.js +5 -5
- package/accordion/types.d.js +1 -0
- package/accordion-item/global/index.js +1 -1
- package/accordion-item/index.d.js +3 -0
- package/accordion-item/index.js +6 -6
- package/action-menu/global/index.d.js +1 -0
- package/action-menu/global/index.js +1 -1
- package/action-menu/index.d.js +1 -0
- package/action-menu/index.js +4 -4
- package/action-menu/types.d.js +1 -0
- package/action-menu-option/global/index.d.js +1 -0
- package/action-menu-option/global/index.js +1 -1
- package/action-menu-option/index.d.js +1 -0
- package/action-menu-option/index.js +4 -4
- package/action-menu-option/types.d.js +1 -0
- package/action-menu-option/utils.d.js +1 -0
- package/alert/global/index.d.js +1 -0
- package/alert/global/index.js +1 -1
- package/alert/index.d.js +3 -0
- package/alert/index.js +6 -6
- package/alert/types.d.js +1 -0
- package/alert/utils.d.js +1 -0
- package/avatar/colors.d.js +1 -0
- package/avatar/global/index.d.js +1 -0
- package/avatar/global/index.js +1 -1
- package/avatar/index.d.js +1 -0
- package/avatar/index.js +4 -4
- package/avatar/types.d.js +1 -0
- package/avatar/utils.d.js +1 -0
- package/badge/global/index.d.js +1 -0
- package/badge/global/index.js +1 -1
- package/badge/index.d.js +1 -0
- package/badge/index.js +5 -5
- package/badge/types.d.js +1 -0
- package/badge/utils.d.js +1 -0
- package/bundle.js +14191 -9166
- package/button/global/index.d.js +1 -0
- package/button/global/index.js +1 -1
- package/button/index.d.js +1 -0
- package/button/index.js +7 -7
- package/button/types.d.js +1 -0
- package/button/utils.d.js +1 -0
- package/button-group/global/index.d.js +1 -0
- package/button-group/global/index.js +1 -1
- package/button-group/index.d.js +1 -0
- package/button-group/index.js +4 -4
- package/button-group/types.d.js +1 -0
- package/button-group-item/global/index.d.js +1 -0
- package/button-group-item/global/index.js +1 -1
- package/button-group-item/index.d.js +1 -0
- package/button-group-item/index.js +3 -3
- package/button-group-item/types.d.js +1 -0
- package/card-container/global/index.d.js +1 -0
- package/card-container/global/index.js +1 -1
- package/card-container/index.d.js +1 -0
- package/card-container/index.js +1 -1
- package/card-container/types.d.js +1 -0
- package/card-v2/global/index.d.js +1 -0
- package/card-v2/global/index.js +1 -1
- package/card-v2/index.d.js +1 -0
- package/card-v2/index.js +3 -3
- package/card-v2/types.d.js +1 -0
- package/card-v2-title/global/index.d.js +1 -0
- package/card-v2-title/global/index.js +1 -1
- package/card-v2-title/index.d.js +1 -0
- package/card-v2-title/index.js +2 -2
- package/card-v2-title/types.d.js +1 -0
- package/checkbox/global/index.d.js +1 -0
- package/checkbox/global/index.js +1 -1
- package/checkbox/index.d.js +1 -0
- package/checkbox/index.js +5 -5
- package/checkbox/types.d.js +1 -0
- package/chip/colors.d.js +1 -0
- package/chip/global/index.d.js +1 -0
- package/chip/global/index.js +1 -1
- package/chip/index.d.js +2 -0
- package/chip/index.js +6 -6
- package/chip/types.d.js +1 -0
- package/chip/utils.d.js +1 -0
- package/code-tag/global/index.d.js +1 -0
- package/code-tag/global/index.js +1 -1
- package/code-tag/index.d.js +1 -0
- package/code-tag/index.js +2 -2
- package/code-tag/types.d.js +1 -0
- package/color-menu/global/index.d.js +1 -0
- package/color-menu/global/index.js +1 -1
- package/color-menu/index.d.js +1 -0
- package/color-menu/index.js +6 -6
- package/color-menu/types.d.js +1 -0
- package/color-menu/utils.d.js +1 -0
- package/color-menu-option/global/index.d.js +1 -0
- package/color-menu-option/global/index.js +1 -1
- package/color-menu-option/index.d.js +2 -0
- package/color-menu-option/index.js +5 -5
- package/color-menu-option/types.d.js +1 -0
- package/color-menu-option/utils.d.js +1 -0
- package/color-swatch/global/index.d.js +40 -0
- package/color-swatch/global/index.js +2 -2
- package/color-swatch/index.d.js +6 -0
- package/color-swatch/index.js +5 -5
- package/color-swatch/types.d.js +1 -0
- package/color-swatch/utils.d.js +1 -0
- package/color-swatch/utils.d.ts +2 -2
- package/color-swatch/utils.js +1 -1
- package/date-picker/global/index.d.js +1 -0
- package/date-picker/global/index.js +1 -1
- package/date-picker/index.d.js +2 -0
- package/date-picker/index.js +10 -10
- package/date-picker/types.d.js +1 -0
- package/date-picker/utils.d.js +1 -0
- package/dialog/global/index.d.js +1 -0
- package/dialog/global/index.js +1 -1
- package/dialog/index.d.js +3 -0
- package/dialog/index.d.ts +2 -2
- package/dialog/index.js +9 -9
- package/dialog/types.d.js +1 -0
- package/emoji/global/index.d.js +1 -0
- package/emoji/global/index.js +1 -1
- package/emoji/index.d.js +1 -0
- package/emoji/index.js +3 -3
- package/emoji/types.d.js +1 -0
- package/emoji/utils.d.js +1 -0
- package/emoji/utils.js +1 -1
- package/emoji-picker/global/index.d.js +1 -0
- package/emoji-picker/global/index.js +1 -1
- package/emoji-picker/index.d.js +7 -0
- package/emoji-picker/index.js +13 -16
- package/emoji-picker/types.d.js +1 -0
- package/field/global/index.d.js +1 -0
- package/field/global/index.js +1 -1
- package/field/index.d.js +1 -0
- package/field/index.js +4 -4
- package/field/types.d.js +1 -0
- package/field-v2/global/index.d.js +1 -0
- package/field-v2/global/index.js +1 -1
- package/field-v2/index.d.js +1 -0
- package/field-v2/index.js +5 -5
- package/field-v2/types.d.js +1 -0
- package/file-drop/global/index.d.js +1 -0
- package/file-drop/global/index.js +1 -1
- package/file-drop/index.d.js +2 -0
- package/file-drop/index.js +6 -6
- package/file-drop/types.d.js +1 -0
- package/file-drop/utils.d.js +1 -0
- package/file-picker/global/index.d.js +1 -0
- package/file-picker/global/index.js +1 -1
- package/file-picker/index.d.js +1 -0
- package/file-picker/index.js +4 -4
- package/file-picker/types.d.js +1 -0
- package/file-picker/utils.d.js +1 -0
- package/file-status/global/index.d.js +1 -0
- package/file-status/global/index.js +1 -1
- package/file-status/index.d.js +3 -0
- package/file-status/index.js +6 -6
- package/file-status/types.d.js +1 -0
- package/file-status/utils.d.js +1 -0
- package/flag/global/index.d.js +1 -0
- package/flag/global/index.js +1 -1
- package/flag/index.d.js +1 -0
- package/flag/index.js +3 -3
- package/flag/types.d.js +1 -0
- package/flag/utils.d.js +1 -0
- package/flag/utils.js +1 -1
- package/floating-panel/global/index.d.js +1 -0
- package/floating-panel/global/index.js +1 -1
- package/floating-panel/index.d.js +4 -0
- package/floating-panel/index.d.ts +3 -3
- package/floating-panel/index.js +10 -12
- package/floating-panel/types.d.js +1 -0
- package/floating-panel-button/index.d.js +1 -0
- package/floating-panel-button/index.js +3 -3
- package/floating-panel-button/types.d.js +1 -0
- package/floating-panel-icon-button/index.d.js +2 -0
- package/floating-panel-icon-button/index.js +4 -4
- package/floating-panel-icon-button/types.d.js +1 -0
- package/grid/global/index.d.js +1 -0
- package/grid/global/index.js +1 -1
- package/grid/index.d.js +1 -0
- package/grid/index.js +1 -1
- package/grid/types.d.js +1 -0
- package/grid-item/global/index.d.js +1 -0
- package/grid-item/global/index.js +1 -1
- package/grid-item/index.d.js +1 -0
- package/grid-item/index.js +2 -2
- package/grid-item/types.d.js +1 -0
- package/help-tooltip/global/index.d.js +1 -0
- package/help-tooltip/global/index.js +1 -1
- package/help-tooltip/index.d.js +2 -0
- package/help-tooltip/index.js +5 -5
- package/help-tooltip/types.d.js +1 -0
- package/icon/generated-icon-type.d.js +1 -0
- package/icon/global/index.d.js +1 -0
- package/icon/global/index.js +1 -1
- package/icon/index.d.js +1 -0
- package/icon/index.d.ts +1 -1
- package/icon/index.js +2 -2
- package/icon/types.d.js +1 -0
- package/inline-alert/global/index.d.js +1 -0
- package/inline-alert/global/index.js +1 -1
- package/inline-alert/index.d.js +5 -0
- package/inline-alert/index.js +8 -8
- package/inline-alert/types.d.js +1 -0
- package/inline-alert/utils.d.js +1 -0
- package/input/global/index.d.js +1 -0
- package/input/global/index.js +1 -1
- package/input/index.d.js +1 -0
- package/input/index.js +8 -8
- package/input/types.d.js +1 -0
- package/input/utils.d.js +1 -0
- package/link/global/index.d.js +1 -0
- package/link/global/index.js +1 -1
- package/link/index.d.js +2 -0
- package/link/index.js +6 -6
- package/link/types.d.js +1 -0
- package/link/utils.d.js +1 -0
- package/list/global/index.d.js +1 -0
- package/list/global/index.js +1 -1
- package/list/index.d.js +1 -0
- package/list/index.js +1 -1
- package/list/types.d.js +1 -0
- package/list-item/global/index.d.js +1 -0
- package/list-item/global/index.js +1 -1
- package/list-item/index.d.js +1 -0
- package/list-item/index.js +1 -1
- package/list-item/types.d.js +1 -0
- package/package.json +10 -10
- package/pagination/global/index.d.js +1 -0
- package/pagination/global/index.js +1 -1
- package/pagination/index.d.js +1 -0
- package/pagination/index.d.ts +2 -2
- package/pagination/index.js +6 -6
- package/pagination/types.d.js +1 -0
- package/persistent-overlay/global/index.d.js +1 -0
- package/persistent-overlay/global/index.js +1 -1
- package/persistent-overlay/index.d.js +1 -0
- package/persistent-overlay/index.js +4 -4
- package/persistent-overlay/types.d.js +1 -0
- package/pop/global/index.d.js +1 -0
- package/pop/global/index.js +1 -1
- package/pop/index.d.js +1 -0
- package/pop/index.d.ts +1 -1
- package/pop/index.js +9 -10
- package/pop/types.d.js +1 -0
- package/pop/utils.d.js +1 -0
- package/popover/global/index.d.js +1 -0
- package/popover/global/index.js +1 -1
- package/popover/index.d.js +1 -0
- package/popover/index.js +7 -7
- package/popover/types.d.js +1 -0
- package/popover/utils.d.js +1 -0
- package/progress/global/index.d.js +1 -0
- package/progress/global/index.js +1 -1
- package/progress/index.d.js +1 -0
- package/progress/index.js +3 -3
- package/progress/types.d.js +1 -0
- package/progress-stepper/global/index.d.js +1 -0
- package/progress-stepper/global/index.js +1 -1
- package/progress-stepper/index.d.js +1 -0
- package/progress-stepper/index.js +6 -6
- package/progress-stepper/types.d.js +1 -0
- package/progress-stepper-item/global/index.d.js +1 -0
- package/progress-stepper-item/global/index.js +1 -1
- package/progress-stepper-item/index.d.js +2 -0
- package/progress-stepper-item/index.js +5 -5
- package/progress-stepper-item/types.d.js +1 -0
- package/progress-stepper-item/utils.d.js +1 -0
- package/progress-stepper-item/utils.d.ts +5 -5
- package/progress-stepper-item/utils.js +1 -1
- package/progress-stepper-item-v2/global/index.d.js +1 -0
- package/progress-stepper-item-v2/global/index.js +1 -1
- package/progress-stepper-item-v2/index.d.js +2 -0
- package/progress-stepper-item-v2/index.js +5 -6
- package/progress-stepper-item-v2/types.d.js +1 -0
- package/progress-stepper-item-v2/utils.d.js +1 -0
- package/progress-stepper-item-v2/utils.d.ts +3 -3
- package/progress-stepper-item-v2/utils.js +1 -1
- package/progress-stepper-v2/compact-format.d.js +1 -0
- package/progress-stepper-v2/compact.d.js +1 -0
- package/progress-stepper-v2/compact.js +4 -5
- package/progress-stepper-v2/global/index.d.js +1 -0
- package/progress-stepper-v2/global/index.js +1 -1
- package/progress-stepper-v2/index.d.js +84 -0
- package/progress-stepper-v2/index.js +11 -14
- package/progress-stepper-v2/model.d.js +1 -0
- package/progress-stepper-v2/orientation.d.js +1 -0
- package/progress-stepper-v2/separators.d.js +1 -0
- package/progress-stepper-v2/separators.js +1 -1
- package/progress-stepper-v2/step-chip.d.js +1 -0
- package/progress-stepper-v2/step-chip.js +2 -2
- package/progress-stepper-v2/types.d.js +1 -0
- package/radio/global/index.d.js +1 -0
- package/radio/global/index.js +1 -1
- package/radio/index.d.js +1 -0
- package/radio/index.js +4 -4
- package/radio/types.d.js +1 -0
- package/radio-option/global/index.d.js +1 -0
- package/radio-option/global/index.js +1 -1
- package/radio-option/index.d.js +1 -0
- package/radio-option/index.js +2 -2
- package/radio-option/types.d.js +1 -0
- package/rich-text/global/index.d.js +1 -0
- package/rich-text/global/index.js +1 -1
- package/rich-text/index.d.js +4 -0
- package/rich-text/index.js +10 -10
- package/rich-text/types.d.js +1 -0
- package/rich-text/utils.d.js +1 -0
- package/rich-text/utils.js +1 -1
- package/rich-textarea/global/index.d.js +1 -0
- package/rich-textarea/global/index.js +1 -1
- package/rich-textarea/index.d.js +1 -0
- package/rich-textarea/index.js +8 -8
- package/rich-textarea/types.d.js +1 -0
- package/rich-textarea/utils.d.js +1 -0
- package/rich-textarea/utils.js +2 -2
- package/rich-textarea-chip/index.d.js +2 -0
- package/rich-textarea-chip/index.js +5 -5
- package/rich-textarea-chip/types.d.js +1 -0
- package/segment-collapse/global/index.d.js +1 -0
- package/segment-collapse/global/index.js +1 -1
- package/segment-collapse/index.d.js +1 -0
- package/segment-collapse/index.js +4 -4
- package/segment-collapse/types.d.js +1 -0
- package/segmented-control/global/index.d.js +1 -0
- package/segmented-control/global/index.js +1 -1
- package/segmented-control/index.d.js +1 -0
- package/segmented-control/index.js +5 -5
- package/segmented-control/types.d.js +1 -0
- package/segmented-control-option/global/index.d.js +1 -0
- package/segmented-control-option/global/index.js +1 -1
- package/segmented-control-option/index.d.js +1 -0
- package/segmented-control-option/index.js +3 -3
- package/segmented-control-option/types.d.js +1 -0
- package/segmented-icon-control/global/index.d.js +1 -0
- package/segmented-icon-control/global/index.js +1 -1
- package/segmented-icon-control/index.d.js +1 -0
- package/segmented-icon-control/index.js +6 -6
- package/segmented-icon-control/types.d.js +1 -0
- package/segmented-icon-control-option/global/index.d.js +1 -0
- package/segmented-icon-control-option/global/index.js +1 -1
- package/segmented-icon-control-option/index.d.js +1 -0
- package/segmented-icon-control-option/index.js +3 -3
- package/segmented-icon-control-option/types.d.js +1 -0
- package/select-button/global/index.d.js +1 -0
- package/select-button/global/index.js +1 -1
- package/select-button/index.d.js +2 -0
- package/select-button/index.js +7 -7
- package/select-button/types.d.js +1 -0
- package/select-menu/global/index.d.js +1 -0
- package/select-menu/global/index.js +1 -1
- package/select-menu/index.d.js +3 -0
- package/select-menu/index.js +12 -12
- package/select-menu/types.d.js +1 -0
- package/select-menu-option/global/index.d.js +1 -0
- package/select-menu-option/global/index.js +1 -1
- package/select-menu-option/index.d.js +2 -0
- package/select-menu-option/index.js +4 -4
- package/select-menu-option/types.d.js +1 -0
- package/select-menu-option/utils.d.js +1 -0
- package/sheet/global/index.d.js +1 -0
- package/sheet/global/index.js +1 -1
- package/sheet/index.d.js +1 -0
- package/sheet/index.d.ts +1 -1
- package/sheet/index.js +7 -7
- package/sheet/types.d.js +1 -0
- package/sheet-title/global/index.d.js +1 -0
- package/sheet-title/global/index.js +1 -1
- package/sheet-title/index.d.js +2 -0
- package/sheet-title/index.d.ts +1 -1
- package/sheet-title/index.js +5 -5
- package/sheet-title/types.d.js +1 -0
- package/skeleton/global/index.d.js +1 -0
- package/skeleton/global/index.js +1 -1
- package/skeleton/index.d.js +1 -0
- package/skeleton/index.js +3 -3
- package/skeleton/types.d.js +1 -0
- package/skeleton-item/global/index.d.js +1 -0
- package/skeleton-item/global/index.js +1 -1
- package/skeleton-item/index.d.js +1 -0
- package/skeleton-item/index.js +1 -1
- package/skeleton-item/types.d.js +1 -0
- package/spinner/global/index.d.js +1 -0
- package/spinner/global/index.js +1 -1
- package/spinner/index.d.js +1 -0
- package/spinner/index.js +4 -4
- package/spinner/types.d.js +1 -0
- package/standalone.js +25 -88
- package/stop-events/index.d.js +1 -0
- package/stop-events/index.js +2 -2
- package/table/global/index.d.js +1 -0
- package/table/global/index.js +1 -1
- package/table/index.d.js +1 -0
- package/table/index.js +1 -1
- package/table/types.d.js +1 -0
- package/table-body/global/index.d.js +1 -0
- package/table-body/global/index.js +1 -1
- package/table-body/index.d.js +1 -0
- package/table-body/index.js +1 -1
- package/table-body/types.d.js +1 -0
- package/table-cell/global/index.d.js +1 -0
- package/table-cell/global/index.js +1 -1
- package/table-cell/index.d.js +1 -0
- package/table-cell/index.js +3 -3
- package/table-cell/types.d.js +1 -0
- package/table-cell/utils.d.js +1 -0
- package/table-head/global/index.d.js +1 -0
- package/table-head/global/index.js +1 -1
- package/table-head/index.d.js +1 -0
- package/table-head/index.js +1 -1
- package/table-head/types.d.js +1 -0
- package/table-head-cell/global/index.d.js +1 -0
- package/table-head-cell/global/index.js +1 -1
- package/table-head-cell/index.d.js +1 -0
- package/table-head-cell/index.js +4 -4
- package/table-head-cell/types.d.js +1 -0
- package/table-row/global/index.d.js +1 -0
- package/table-row/global/index.js +1 -1
- package/table-row/index.d.js +1 -0
- package/table-row/index.js +2 -2
- package/table-row/types.d.js +1 -0
- package/tabs/global/index.d.js +1 -0
- package/tabs/global/index.js +1 -1
- package/tabs/index.d.js +1 -0
- package/tabs/index.js +6 -6
- package/tabs/types.d.js +1 -0
- package/tabs-icon-option/global/index.d.js +1 -0
- package/tabs-icon-option/global/index.js +1 -1
- package/tabs-icon-option/index.d.js +1 -0
- package/tabs-icon-option/index.js +3 -3
- package/tabs-icon-option/types.d.js +1 -0
- package/tabs-option/global/index.d.js +1 -0
- package/tabs-option/global/index.js +1 -1
- package/tabs-option/index.d.js +1 -0
- package/tabs-option/index.js +4 -4
- package/tabs-option/types.d.js +1 -0
- package/tag/colors.d.js +1 -0
- package/tag/global/index.d.js +1 -0
- package/tag/global/index.js +1 -1
- package/tag/index.d.js +2 -0
- package/tag/index.js +5 -5
- package/tag/types.d.js +1 -0
- package/tag/utils.d.js +1 -0
- package/text/global/index.d.js +1 -0
- package/text/global/index.js +1 -1
- package/text/index.d.js +1 -0
- package/text/index.js +3 -3
- package/text/types.d.js +1 -0
- package/text/utils.d.js +1 -0
- package/textarea/global/index.d.js +1 -0
- package/textarea/global/index.js +1 -1
- package/textarea/index.d.js +1 -0
- package/textarea/index.js +7 -7
- package/textarea/types.d.js +1 -0
- package/time-picker/global/index.d.js +1 -0
- package/time-picker/global/index.js +1 -1
- package/time-picker/index.d.js +2 -0
- package/time-picker/index.d.ts +8 -0
- package/time-picker/index.js +58 -10
- package/time-picker/types.d.js +1 -0
- package/time-picker/types.d.ts +8 -0
- package/time-picker/utils.d.js +1 -0
- package/title/global/index.d.js +1 -0
- package/title/global/index.js +1 -1
- package/title/index.d.js +1 -0
- package/title/index.js +3 -3
- package/title/types.d.js +1 -0
- package/title/utils.d.js +1 -0
- package/toast/global/index.d.js +1 -0
- package/toast/global/index.js +1 -1
- package/toast/index.d.js +2 -0
- package/toast/index.js +7 -7
- package/toast/types.d.js +1 -0
- package/toast/types.d.ts +2 -0
- package/toast/utils.d.js +1 -0
- package/toast-manager/global/index.d.js +1 -0
- package/toast-manager/global/index.js +1 -1
- package/toast-manager/index.d.js +2 -0
- package/toast-manager/index.js +6 -7
- package/toast-manager/types.d.js +1 -0
- package/toast-manager/utils.d.js +1 -0
- package/toggle/global/index.d.js +1 -0
- package/toggle/global/index.js +1 -1
- package/toggle/index.d.js +1 -0
- package/toggle/index.js +3 -3
- package/toggle/types.d.js +1 -0
- package/tooltip/global/index.d.js +1 -0
- package/tooltip/global/index.js +1 -1
- package/tooltip/index.d.js +2 -0
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +8 -9
- package/tooltip/tooltip-state.d.js +1 -0
- package/tooltip/types.d.js +1 -0
- package/tooltip/utils.d.js +1 -0
- package/utils/adapters.d.js +1 -0
- package/utils/component-names.d.js +1 -0
- package/utils/component-names.d.ts +1 -1
- package/utils/context.d.js +1 -0
- package/utils/control-keyboard-navigation.d.js +1 -0
- package/utils/control-keyboard-navigation.d.ts +1 -1
- package/utils/control-keyboard-navigation.js +2 -2
- package/utils/countries.d.js +1 -0
- package/utils/csv.d.js +1 -0
- package/utils/debounce.d.js +1 -0
- package/utils/dom.d.js +1 -0
- package/utils/element.d.js +1 -0
- package/utils/element.d.ts +16 -109
- package/utils/element.js +2 -2
- package/utils/event-target.d.js +1 -0
- package/utils/form.d.js +1 -0
- package/utils/get-react-event-handler.d.js +1 -0
- package/utils/global-components-constants.d.js +1 -0
- package/utils/global-components-manager.d.js +1 -0
- package/utils/global-components-manager.d.ts +4 -47
- package/utils/global-components-manager.js +91 -2
- package/utils/index.d.js +75 -0
- package/utils/index.js +73 -73
- package/utils/markdown.d.js +1 -0
- package/utils/placement.d.js +1 -0
- package/utils/placement.js +1 -1
- package/utils/rect.d.js +1 -0
- package/utils/rect.js +1 -1
- package/utils/scroll-lock.d.js +1 -0
- package/utils/size.d.js +1 -0
- package/utils/slot.d.js +1 -0
- package/utils/throttle.d.js +1 -0
- package/utils/uid.d.js +1 -0
- package/utils/shared/cdn-loader.js +0 -136
- package/utils/shared/deferred-promise.js +0 -10
- package/utils/shared/global-elements-manager.js +0 -150
- package/utils/shared/global-elements-store.js +0 -33
- package/utils/shared/index.d.js +0 -16
- package/utils/shared/index.js +0 -16
- package/utils/shared/nectary-element-base.js +0 -25
- /package/{utils/shared/global-elements-store.d.js → accordion/global/index.d.js} +0 -0
- /package/{utils/shared/nectary-element-base.d.js → accordion/index.d.js} +0 -0
- /package/{utils/shared/cdn-loader.d.js → accordion-item/global/index.d.js} +0 -0
- /package/{utils/shared/deferred-promise.d.js → accordion-item/types.d.js} +0 -0
- /package/{utils/shared/global-elements-manager.d.js → accordion-item/utils.d.js} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import "../index2.js";
|
|
2
|
+
import "../index.d3.js";
|
|
3
|
+
import "../index.d2.js";
|
|
4
|
+
function deriveStepStatuses(items, params) {
|
|
5
|
+
const { noCompletionOrder, progressValue } = params;
|
|
6
|
+
if (noCompletionOrder) {
|
|
7
|
+
return items.map((item) => {
|
|
8
|
+
if (item.disabled) {
|
|
9
|
+
return "inactive";
|
|
10
|
+
}
|
|
11
|
+
if (item.complete) {
|
|
12
|
+
return "complete";
|
|
13
|
+
}
|
|
14
|
+
return "incomplete";
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
let progressIndex = items.findIndex((it) => it.value === progressValue);
|
|
18
|
+
if (progressIndex < 0 && items.length > 0) {
|
|
19
|
+
progressIndex = 0;
|
|
20
|
+
}
|
|
21
|
+
return items.map((_, i) => {
|
|
22
|
+
if (progressIndex < 0 || progressIndex < i) {
|
|
23
|
+
return "inactive";
|
|
24
|
+
}
|
|
25
|
+
if (progressIndex > i) {
|
|
26
|
+
return "complete";
|
|
27
|
+
}
|
|
28
|
+
return "incomplete";
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function computeOrientationLayout(params) {
|
|
32
|
+
const {
|
|
33
|
+
noAutoOrientation,
|
|
34
|
+
containerWidth,
|
|
35
|
+
wrapperScrollWidth
|
|
36
|
+
} = params;
|
|
37
|
+
if (noAutoOrientation) {
|
|
38
|
+
return {
|
|
39
|
+
isHorizontal: true,
|
|
40
|
+
dataOrientation: "horizontal",
|
|
41
|
+
mode: "horizontal"
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const safeWidth = Math.max(containerWidth, 1);
|
|
45
|
+
const isHorizontal = wrapperScrollWidth <= safeWidth;
|
|
46
|
+
if (isHorizontal) {
|
|
47
|
+
return {
|
|
48
|
+
isHorizontal: true,
|
|
49
|
+
dataOrientation: "horizontal",
|
|
50
|
+
mode: "horizontal"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
isHorizontal: false,
|
|
55
|
+
dataOrientation: "vertical",
|
|
56
|
+
mode: "compact"
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
class OrientationScheduler {
|
|
60
|
+
constructor(run) {
|
|
61
|
+
this.run = run;
|
|
62
|
+
}
|
|
63
|
+
#rafId = null;
|
|
64
|
+
schedule() {
|
|
65
|
+
if (this.#rafId !== null) {
|
|
66
|
+
cancelAnimationFrame(this.#rafId);
|
|
67
|
+
}
|
|
68
|
+
this.#rafId = requestAnimationFrame(() => {
|
|
69
|
+
this.#rafId = null;
|
|
70
|
+
this.run();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
cancel() {
|
|
74
|
+
if (this.#rafId !== null) {
|
|
75
|
+
cancelAnimationFrame(this.#rafId);
|
|
76
|
+
this.#rafId = null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
OrientationScheduler,
|
|
82
|
+
computeOrientationLayout,
|
|
83
|
+
deriveStepStatuses
|
|
84
|
+
};
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { computeOrientationLayout, deriveStepStatuses } from "./model.js";
|
|
13
|
-
import { OrientationScheduler } from "./orientation.js";
|
|
14
|
-
import { syncStepSeparators } from "./separators.js";
|
|
1
|
+
import "../index2.js";
|
|
2
|
+
import "../index.d3.js";
|
|
3
|
+
import "../index.d2.js";
|
|
4
|
+
import { T as TAG_PROGRESS_STEPPER, a as TAG_PROGRESS_STEPPER_ITEM, A as ATTR_PROGRESS_STEPPER_ITEM_STATUS, b as ATTR_PROGRESS_STEPPER_ITEM_LAYOUT, i as isProgressStepperItemActive, s as syncProgressStepperItemsRovingTabIndexes, c as setProgressStepperItemChecked, g as getProgressStepperFocusedItemIndex, d as setProgressStepperItemStatus, e as isProgressStepperItemChecked } from "../utils30.js";
|
|
5
|
+
import { y as updateAttribute, i as getAttribute, z as updateBooleanAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
6
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
7
|
+
import { g as getRect } from "../rect.js";
|
|
8
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
9
|
+
import { a as getTargetByAttribute } from "../event-target.js";
|
|
10
|
+
import { P as ProgressStepperCompactController, s as syncStepSeparators } from "../separators.js";
|
|
11
|
+
import { OrientationScheduler, computeOrientationLayout, deriveStepStatuses } from "./index.d.js";
|
|
15
12
|
const templateHTML = '<style>:host{display:block;position:relative}#wrapper{display:flex;width:100%;align-items:stretch}#wrapper[data-orientation=horizontal]{flex-direction:row}#wrapper[data-orientation=horizontal] ::slotted(sinch-progress-stepper-item-v2){flex:0 0 auto;align-self:stretch;min-width:0}#wrapper[data-orientation=horizontal] ::slotted(sinch-icon[data-nectary-progress-stepper-v2-separator]){display:flex;flex-shrink:0;align-items:center;align-self:center;box-sizing:border-box;min-inline-size:24px;padding-inline:4px;pointer-events:none;--sinch-global-size-icon:24px;--sinch-global-color-icon:var(--sinch-comp-progress-stepper-v2-step-color-chevron)}#wrapper[data-orientation=vertical] ::slotted(sinch-icon[data-nectary-progress-stepper-v2-separator]){display:none!important}:host(:dir(rtl)) #wrapper[data-orientation=horizontal] ::slotted(sinch-icon[data-nectary-progress-stepper-v2-separator]){transform:scaleX(-1)}#wrapper[data-orientation=vertical]{position:absolute;width:100%;max-width:100%;height:0;overflow:hidden;visibility:hidden;pointer-events:none;flex-direction:row;align-items:stretch}#wrapper[data-orientation=vertical] ::slotted(sinch-progress-stepper-item-v2){flex:0 0 auto}#menu-wrapper{display:none;width:100%}#menu-wrapper[data-visible=true]{display:block;width:100%}#menu-wrapper[data-visible=true] sinch-pop{width:100%}#menu-wrapper[data-visible=true] #compact-stepper-pop-panel-gap{position:relative;padding-top:0;width:fit-content;min-width:100%;box-sizing:border-box}#menu-wrapper[data-visible=true] #compact-stepper-pop-panel{background-color:var(--sinch-comp-progress-stepper-v2-step-color-compact-background);border:1px solid var(--sinch-comp-progress-stepper-v2-step-color-compact-border);border-radius:var(--sinch-comp-popover-shape-radius);box-shadow:var(--sinch-comp-popover-shadow);overflow:hidden}#menu-wrapper[data-visible=true] #compact-stepper-trigger{all:unset;display:flex;align-items:center;gap:8px;width:100%;max-width:100%;min-height:var(--sinch-comp-button-size-container-l);padding:8px 10px;box-sizing:border-box;border:1px solid var(--sinch-comp-progress-stepper-v2-step-color-compact-border);border-radius:var(--sinch-comp-popover-shape-radius);background-color:var(--sinch-comp-progress-stepper-v2-step-color-compact-background);cursor:pointer;user-select:none}#menu-wrapper[data-visible=true] #compact-stepper-trigger:focus-visible{outline:2px solid var(--sinch-sys-color-focus);outline-offset:2px}#menu-wrapper[data-visible=true] #compact-stepper-label{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:start;font:var(--sinch-comp-progress-stepper-v2-step-font-label-initial);color:var(--sinch-comp-progress-stepper-v2-step-color-complete-label-initial)}#menu-wrapper[data-visible=true] #compact-stepper-chevron{flex-shrink:0;color:var(--sinch-comp-progress-stepper-v2-step-color-compact-chevron);pointer-events:none;--sinch-global-color-icon:currentcolor;--sinch-global-size-icon:24px}#menu-wrapper[data-visible=true] #compact-stepper-counter{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;box-sizing:border-box;height:24px;min-height:24px;padding:2px 9px;border:none;border-radius:var(--sinch-comp-progress-stepper-v2-step-shape-radius-indicator);background-color:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-icon-container-initial);color:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-icon-initial);user-select:none;white-space:nowrap;font:var(--sinch-sys-font-body-s);line-height:1}#menu-wrapper[data-visible=true] #compact-stepper-trigger[data-step-invalid] #compact-stepper-counter{background-color:var(--sinch-comp-progress-stepper-v2-step-color-invalid-icon-container-initial);color:var(--sinch-comp-progress-stepper-v2-step-color-invalid-icon-initial)}#menu-wrapper[data-visible=true] #compact-stepper-trigger[data-step-status=complete]:not([data-step-invalid]) #compact-stepper-counter{background-color:var(--sinch-comp-progress-stepper-v2-step-color-complete-icon-container-initial);color:var(--sinch-comp-progress-stepper-v2-step-color-complete-icon-initial)}#menu-wrapper[data-visible=true] sinch-action-menu{display:block;width:100%;box-sizing:border-box}#menu-wrapper[data-visible=true] sinch-action-menu-option{width:100%;box-sizing:border-box;outline:0;-webkit-tap-highlight-color:transparent;--sinch-comp-text-align:start}#menu-wrapper[data-visible=true] sinch-action-menu-option:focus,#menu-wrapper[data-visible=true] sinch-action-menu-option:focus-visible{outline:0}#menu-wrapper[data-visible=true] sinch-action-menu-option:is([data-step-status=incomplete],[data-step-status=inactive]):not([data-step-invalid]){--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-initial);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-label-initial);--sinch-comp-action-menu-color-default-background-hover:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-background-hover);--sinch-comp-action-menu-color-disabled-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-label-initial)}#menu-wrapper[data-visible=true] sinch-action-menu-option:is([data-step-status=incomplete],[data-step-status=inactive]):not([data-step-invalid])[data-step-checked]{--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-current);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-incomplete-label-current)}#menu-wrapper[data-visible=true] sinch-action-menu-option[data-step-status=complete]:not([data-step-invalid]){--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-initial);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-complete-label-initial);--sinch-comp-action-menu-color-default-background-hover:var(--sinch-comp-progress-stepper-v2-step-color-complete-background-hover)}#menu-wrapper[data-visible=true] sinch-action-menu-option[data-step-status=complete]:not([data-step-invalid])[data-step-checked]{--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-current);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-complete-label-current)}#menu-wrapper[data-visible=true] sinch-action-menu-option[data-step-invalid]{--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-initial);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-invalid-label-initial);--sinch-comp-action-menu-color-default-background-hover:var(--sinch-comp-progress-stepper-v2-step-color-invalid-background-hover)}#menu-wrapper[data-visible=true] sinch-action-menu-option[data-step-invalid][data-step-checked]{--sinch-comp-action-menu-font-option:var(--sinch-comp-progress-stepper-v2-step-font-label-current);--sinch-comp-action-menu-color-default-text-initial:var(--sinch-comp-progress-stepper-v2-step-color-invalid-label-current)}</style><div id="wrapper" data-orientation="horizontal"><slot></slot></div><div id="menu-wrapper" data-visible="false"><sinch-pop id="compact-stepper-pop" inset="4" orientation="bottom-stretch" allow-scroll><button id="compact-stepper-trigger" slot="target" type="button" tabindex="0"><span id="compact-stepper-counter" aria-hidden="true"></span> <span id="compact-stepper-label"></span><sinch-icon id="compact-stepper-chevron" icons-version="2" name="fa-chevron-down" aria-hidden="true"></sinch-icon></button><div id="compact-stepper-pop-panel-gap" slot="content"><div id="compact-stepper-pop-panel"><sinch-action-menu></sinch-action-menu></div></div></sinch-pop></div>';
|
|
16
13
|
const template = document.createElement("template");
|
|
17
14
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../index.d3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { createScopedElement } from "../
|
|
1
|
+
import "../index.d3.js";
|
|
2
|
+
import { h as createScopedElement } from "../dom.js";
|
|
3
3
|
const STEP_CHIP_TOKEN = "--sinch-comp-progress-stepper-v2-step";
|
|
4
4
|
const chipStyles = new CSSStyleSheet();
|
|
5
5
|
chipStyles.replaceSync(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/radio/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-radio");
|
package/radio/index.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/radio/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getBooleanAttribute, updateAttribute, getAttribute, updateBooleanAttribute, isAttrTrue } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { getReactEventHandler } from "../
|
|
4
|
-
import { setFormValue } from "../
|
|
1
|
+
import { j as getBooleanAttribute, y as updateAttribute, i as getAttribute, z as updateBooleanAttribute, t as isAttrTrue } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
4
|
+
import { s as setFormValue } from "../form.js";
|
|
5
5
|
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:var(--sinch-comp-radio-direction,column);gap:var(--sinch-comp-radio-gap,8px);box-sizing:border-box;width:100%}</style><div id="wrapper"><slot></slot></div>';
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
package/radio/types.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-radio-option");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/radio-option/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getBooleanAttribute, isAttrEqual, updateBooleanAttribute, isAttrTrue, updateExplicitBooleanAttribute, updateAttribute, getAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
1
|
+
import { j as getBooleanAttribute, s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, A as updateExplicitBooleanAttribute, y as updateAttribute, i as getAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
3
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:row;box-sizing:border-box;width:100%;min-height:24px;--sinch-local-color-background:var(--sinch-comp-radio-color-default-background-initial);--sinch-local-color-background-hover:var(--sinch-comp-radio-color-default-background-hover);--sinch-local-color-background-active:var(--sinch-comp-radio-color-default-background-active);--sinch-local-color-border:var(--sinch-comp-radio-color-default-border-initial);--sinch-local-color-border-hover:var(--sinch-comp-radio-color-default-border-hover);--sinch-local-color-border-active:var(--sinch-comp-radio-color-default-border-active);--sinch-local-color-knob:var(--sinch-comp-radio-color-checked-knob-initial);--sinch-local-color-knob-hover:var(--sinch-comp-radio-color-checked-knob-hover);--sinch-local-color-knob-active:var(--sinch-comp-radio-color-checked-knob-active);--sinch-local-color-text:var(--sinch-comp-radio-color-default-label-initial)}:host([data-invalid])>#wrapper{--sinch-local-color-border:var(--sinch-comp-radio-color-invalid-border-initial);--sinch-local-color-border-hover:var(--sinch-comp-radio-color-invalid-border-hover);--sinch-local-color-border-active:var(--sinch-comp-radio-color-invalid-border-active);--sinch-local-color-text:var(--sinch-comp-radio-color-invalid-label-initial)}:host([checked])>#wrapper{--sinch-local-color-border:var(--sinch-comp-radio-color-checked-border-initial);--sinch-local-color-border-hover:var(--sinch-comp-radio-color-checked-border-hover);--sinch-local-color-border-active:var(--sinch-comp-radio-color-checked-border-active)}:host([disabled])>#wrapper{--sinch-local-color-background:var(--sinch-comp-radio-color-disabled-background-initial);--sinch-local-color-border:var(--sinch-comp-radio-color-disabled-border-initial);--sinch-local-color-text:var(--sinch-comp-radio-color-disabled-label-initial)}:host([disabled][checked])>#wrapper{--sinch-local-color-border:var(--sinch-comp-radio-color-checked-disabled-border-initial);--sinch-local-color-knob:var(--sinch-comp-radio-color-checked-disabled-knob-initial);--sinch-local-color-text:var(--sinch-comp-radio-color-checked-disabled-label-initial)}#input{all:initial;display:block;width:18px;height:18px;cursor:pointer}:host([disabled]) #input{cursor:initial}#input-wrapper{position:relative;width:18px;height:18px;align-self:flex-start;margin-top:3px}#input::before{content:"";position:absolute;inset:-3px;border:2px solid var(--sinch-comp-radio-color-default-outline-focus);border-radius:50%;transition:opacity .1s linear;opacity:0;box-sizing:border-box;pointer-events:none}:host(:focus-visible) #input::before{opacity:1}#input::after{content:"";position:absolute;width:18px;height:18px;inset:0;margin:auto;background-color:var(--sinch-local-color-background);border:1px solid var(--sinch-local-color-border);border-radius:50%;box-sizing:border-box;pointer-events:none}:host(:hover:not([disabled])) #input::after{background-color:var(--sinch-local-color-background-hover);border-color:var(--sinch-local-color-border-hover)}:host(:active:not([disabled])) #input::after{background-color:var(--sinch-local-color-background-active);border-color:var(--sinch-local-color-border-active)}#knob{position:absolute;width:10px;height:10px;inset:0;margin:auto;border-radius:50%;transition:opacity .1s linear;opacity:0;background-color:var(--sinch-local-color-knob);pointer-events:none}:host([checked]) #knob{opacity:1}:host(:hover:not([disabled])) #knob{background-color:var(--sinch-local-color-knob-hover)}:host(:active:not([disabled])) #knob{background-color:var(--sinch-local-color-knob-active)}@media (prefers-reduced-motion){#input::after,#input::before,#knob{transition:none}}#label{flex:1;align-self:center;padding-left:8px;font:var(--sinch-comp-radio-font-label);color:var(--sinch-local-color-text);cursor:pointer}#label:empty{display:none}:host([disabled]) #label{cursor:initial}</style><div id="wrapper"><div id="input-wrapper"><div id="input"></div><div id="knob"></div></div><span id="label"></span></div>';
|
|
4
4
|
const template = document.createElement("template");
|
|
5
5
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-rich-text");
|
package/rich-text/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getEmojiBaseUrl } from "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import { getLiteralAttribute, updateLiteralAttribute, getAttribute, updateAttribute } from "../
|
|
7
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
8
|
-
import { getReactEventHandler } from "../
|
|
9
|
-
import { parseMarkdown } from "../
|
|
10
|
-
import { createParseVisitor, sizeValues } from "
|
|
1
|
+
import { a as getEmojiBaseUrl } from "../utils2.js";
|
|
2
|
+
import "../index3.js";
|
|
3
|
+
import "../index.d9.js";
|
|
4
|
+
import "../index.d16.js";
|
|
5
|
+
import "../index.d17.js";
|
|
6
|
+
import { o as getLiteralAttribute, C as updateLiteralAttribute, i as getAttribute, y as updateAttribute } from "../dom.js";
|
|
7
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
8
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
9
|
+
import { p as parseMarkdown } from "../markdown.js";
|
|
10
|
+
import { c as createParseVisitor, s as sizeValues } from "../utils22.js";
|
|
11
11
|
const templateHTML = '<style>:host{display:block;--sinch-comp-rich-text-font:var(--sinch-sys-font-body-m)}:host([size="s"]){--sinch-comp-rich-text-font:var(--sinch-sys-font-body-s)}:host([size=xs]){--sinch-comp-rich-text-font:var(--sinch-sys-font-body-xs)}:host([size=xxs]){--sinch-comp-rich-text-font:var(--sinch-sys-font-body-xxs)}#wrapper{font:var(--sinch-comp-rich-text-font);color:var(--sinch-global-color-text,var(--sinch-sys-color-text-default))}.em1{font-style:italic}.em2{font-weight:var(--sinch-ref-typography-font-weight-700)}.strikethrough{text-decoration:line-through}.link{font:var(--sinch-comp-link-default-font-initial);color:var(--sinch-comp-link-color-default-text-initial);text-decoration:underline}.link:hover{color:var(--sinch-comp-link-color-default-text-hover);text-decoration:none}.code{font:var(--sinch-comp-code-tag-font-text);line-height:inherit;font-size:inherit;border:1px solid var(--sinch-comp-code-tag-color-default-border-initial);background-color:var(--sinch-comp-code-tag-color-default-background-initial);padding:0 .25em;border-radius:var(--sinch-comp-code-tag-shape-radius)}.emoji{--sinch-global-size-icon:1em;--sinch-comp-emoji-vertical-align:-0.2em}.ol,.p,.ul{margin:0}.ol,.ul{padding-left:1.5em}.ol+.p,.p+.ol,.p+.p,.p+.ul,.ul+.p{margin-top:.5em}.li>.p+.ol,.li>.p+.ul{margin-top:0}</style><div id="wrapper"></div>';
|
|
12
12
|
const template = document.createElement("template");
|
|
13
13
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/rich-text/utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-rich-textarea");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../index.d17.js";
|
package/rich-textarea/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getEmojiBaseUrl } from "../
|
|
2
|
-
import "../
|
|
3
|
-
import { updateAttribute, getAttribute, updateBooleanAttribute, getBooleanAttribute, getIntegerAttribute, setClass } from "../
|
|
4
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
5
|
-
import { isElementFocused } from "../
|
|
6
|
-
import { getReactEventHandler } from "../
|
|
7
|
-
import { parseMarkdown } from "../
|
|
8
|
-
import { createParseVisitor, getEndRange, formatList, handleEmojiMousedown, removeChip, setBrowserCaret, formatOutdent, formatIndent, formatInline, insertChip, insertLink, insertText, insertLineBreak, deleteContentBackward, serializeMarkdown, getSelectionInfo, isSelectionEqual, insertFromPaste, isEditorEmpty } from "
|
|
1
|
+
import { a as getEmojiBaseUrl } from "../utils2.js";
|
|
2
|
+
import "../index.d17.js";
|
|
3
|
+
import { y as updateAttribute, i as getAttribute, z as updateBooleanAttribute, j as getBooleanAttribute, n as getIntegerAttribute, w as setClass } from "../dom.js";
|
|
4
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
5
|
+
import { i as isElementFocused } from "../slot.js";
|
|
6
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
7
|
+
import { p as parseMarkdown } from "../markdown.js";
|
|
8
|
+
import { c as createParseVisitor, g as getEndRange, f as formatList, h as handleEmojiMousedown, r as removeChip, s as setBrowserCaret, a as formatOutdent, b as formatIndent, d as formatInline, i as insertChip, e as insertLink, j as insertText, k as insertLineBreak, l as deleteContentBackward, m as serializeMarkdown, n as getSelectionInfo, o as isSelectionEqual, p as insertFromPaste, q as isEditorEmpty } from "../utils23.js";
|
|
9
9
|
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:column;position:relative;width:100%;box-sizing:border-box;background-color:var(--sinch-comp-textarea-color-default-background-initial);border-radius:var(--sinch-local-shape-radius);overflow:hidden;--sinch-local-shape-radius:var(--sinch-comp-textarea-shape-radius)}#input-wrapper{position:relative;padding:8px 10px 8px 12px;box-sizing:border-box}#input{font:var(--sinch-comp-textarea-font-input);color:var(--sinch-comp-textarea-color-default-text-initial);caret-color:var(--sinch-comp-textarea-color-default-text-initial);white-space:pre-wrap;overflow-wrap:break-word;border:none;outline:0}#placeholder{display:none;position:absolute;left:0;top:0;font:var(--sinch-comp-textarea-font-input);color:var(--sinch-comp-textarea-color-default-text-placeholder);padding:8px 10px 8px 12px;pointer-events:none;user-select:none}#input.empty+#placeholder{display:block}#border{position:absolute;border:1px solid var(--sinch-comp-textarea-color-default-border-initial);border-radius:var(--sinch-local-shape-radius);inset:0;pointer-events:none}:host([invalid]) #border{border-color:var(--sinch-comp-textarea-color-invalid-border-initial)}:host([disabled]){color:var(--sinch-comp-textarea-color-disabled-text-initial);-webkit-text-fill-color:var(--sinch-comp-textarea-color-disabled-text-initial)}:host([disabled]) #border{border-color:var(--sinch-comp-textarea-color-disabled-border-initial)}:host(:not([disabled])) #input-wrapper:focus-within~#border{border-color:var(--sinch-comp-textarea-color-default-border-focus);border-width:2px}.oli,.p,.uli{margin:0}.oli.l0,.uli.l0{margin-left:6px}.oli.l1,.uli.l1{margin-left:36px}.oli.l2,.uli.l2{margin-left:64px}.oli.l3,.uli.l3{margin-left:92px}.oli.l4,.uli.l4{margin-left:120px}.uli.l0{counter-reset:list-0 list-1 list-2 list-3 list-4}.uli.l1{counter-reset:list-1 list-2 list-3 list-4}.uli.l2{counter-reset:list-2 list-3 list-4}.uli.l3{counter-reset:list-3 list-4}.uli.l4{counter-reset:list-4}.oli.l0{counter-reset:list-1 list-2 list-3 list-4}.oli.l1{counter-reset:list-2 list-3 list-4}.oli.l2{counter-reset:list-3 list-4}.oli.l3{counter-reset:list-4}.oli.l0::before{counter-increment:list-0;content:counter(list-0,decimal) ". "}.oli.l1::before{counter-increment:list-1;content:counter(list-1,lower-alpha) ". "}.oli.l2::before{counter-increment:list-2;content:counter(list-2,lower-roman) ". "}.oli.l3::before{counter-increment:list-3;content:counter(list-3,decimal) ". "}.oli.l4::before{counter-increment:list-4;content:counter(list-4,lower-alpha) ". "}.oli.block,.oli:first-of-type,.p+.oli{counter-reset:list-0 list-1 list-2 list-3 list-4}.uli::before{content:"\\25CF";display:inline-block;width:16px}.oli+.p,.oli.block,.p+.oli,.p+.uli,.uli+.p,.uli.block{margin-top:.5em}.c{font:var(--sinch-comp-code-tag-font-text);font-size:inherit;line-height:inherit;color:var(--sinch-comp-code-tag-color-default-text-initial);border:1px solid var(--sinch-comp-code-tag-color-default-border-initial);background-color:var(--sinch-comp-code-tag-color-default-background-initial);padding:0 .25em;border-radius:var(--sinch-comp-code-tag-shape-radius)}.l{font:var(--sinch-comp-link-default-font-initial);color:var(--sinch-comp-link-color-default-text-initial);text-decoration:underline}sinch-rich-textarea-chip{display:inline-flex;vertical-align:middle;user-select:none}.i{font-style:italic}.b{font-weight:700}.s{text-decoration:line-through}.e{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;width:1em;height:1em;vertical-align:-.2em}#top-wrapper{display:flex;flex-direction:row;align-items:center;gap:8px;padding:4px 4px 0}#top-wrapper.empty{display:none}#bottom-wrapper{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0 4px 4px}#bottom-wrapper.empty{display:none}</style><div id="wrapper"><div id="top-wrapper"><slot id="top" name="top"></slot></div><div id="input-wrapper"><div id="input" contenteditable="true" role="textbox" aria-multiline="true" suppresscontenteditablewarning autocapitalize="false" autocorrect="false" autosave="false" spellcheck="false"></div><div id="placeholder"></div></div><div id="border"></div><div id="bottom-wrapper"><slot id="bottom" name="bottom"></slot></div></div>';
|
|
10
10
|
const template = document.createElement("template");
|
|
11
11
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/rich-textarea/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isEmojiString, parseMarkdown } from "../
|
|
1
|
+
import { a as getEmojiBaseUrl, g as getEmojiUrl } from "../utils2.js";
|
|
2
|
+
import { i as isEmojiString, p as parseMarkdown } from "../markdown.js";
|
|
3
3
|
const TEXT_EMPTY_DATA = "";
|
|
4
4
|
const TEXT_WHITESPACE = " ";
|
|
5
5
|
const isTextNode = ($n) => $n !== null && $n.nodeType === Node.TEXT_NODE;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { getTagColorBg, getTagColorFg } from "../
|
|
4
|
-
import { isAttrEqual, updateBooleanAttribute, isAttrTrue, updateAttribute, getAttribute, getBooleanAttribute } from "../
|
|
5
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
1
|
+
import "../index.d3.js";
|
|
2
|
+
import "../index.d.js";
|
|
3
|
+
import { g as getTagColorBg, a as getTagColorFg } from "../utils24.js";
|
|
4
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, y as updateAttribute, i as getAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
5
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
6
6
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}#button{all:initial;position:relative;display:flex;flex-direction:row;align-items:center;gap:4px;width:100%;height:var(--sinch-comp-chip-size-container-m);padding:0 5px 0 9px;border-radius:var(--sinch-comp-chip-shape-radius);background-color:var(--sinch-comp-chip-color-neutral-default-background-initial);box-sizing:border-box;--sinch-global-color-text:var(--sinch-comp-chip-color-neutral-default-foreground-initial);--sinch-global-color-icon:var(--sinch-comp-chip-color-neutral-default-foreground-initial);--sinch-global-size-icon:var(--sinch-comp-chip-size-icon-m)}:host(:not([icon])) #icon-start{display:none}#text{flex:1;--sinch-comp-text-font:var(--sinch-comp-chip-font-size-m-label)}:host([readonly]) #button{padding-right:9px}#icon-close{cursor:pointer}:host([readonly]) #icon-close{display:none}</style><div id="button"><sinch-icon icons-version="2" id="icon-start"></sinch-icon><sinch-text id="text" type="xs" ellipsis></sinch-text><sinch-icon icons-version="2" name="circle-cross" id="icon-close"></sinch-icon></div>';
|
|
7
7
|
const template = document.createElement("template");
|
|
8
8
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-segment-collapse");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../index.d3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { updateExplicitBooleanAttribute, isAttrTrue, updateBooleanAttribute, getBooleanAttribute } from "../
|
|
3
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
4
|
-
import { getReactEventHandler } from "../
|
|
1
|
+
import "../index.d3.js";
|
|
2
|
+
import { A as updateExplicitBooleanAttribute, t as isAttrTrue, z as updateBooleanAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
3
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
4
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
5
5
|
const templateHTML = '<style>:host{display:block;--sinch-global-size-icon:32px}#icon-dropdown{display:block;will-change:transform;transform:rotate(180deg)}:host([value]:not([value=false])) #icon-dropdown{transform:rotate(0)}</style><sinch-button id="button" size="s"><sinch-icon icons-version="2" name="fa-chevron-down" id="icon-dropdown" slot="icon"></sinch-icon></sinch-button>';
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-segmented-control");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { updateAttribute, getAttribute, getBooleanAttribute, updateBooleanAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { getReactEventHandler } from "../
|
|
4
|
-
import { getTargetByAttribute } from "../
|
|
5
|
-
import { createKeyboardNavigation } from "../
|
|
1
|
+
import { y as updateAttribute, i as getAttribute, j as getBooleanAttribute, z as updateBooleanAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
4
|
+
import { a as getTargetByAttribute } from "../event-target.js";
|
|
5
|
+
import { c as createKeyboardNavigation } from "../control-keyboard-navigation.js";
|
|
6
6
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:row;width:100%;box-sizing:border-box;position:relative;z-index:0}</style><div id="wrapper"><slot></slot></div>';
|
|
7
7
|
const template = document.createElement("template");
|
|
8
8
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-segmented-control-option");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isAttrEqual, updateBooleanAttribute, isAttrTrue, updateExplicitBooleanAttribute, updateAttribute, getAttribute, getBooleanAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { getReactEventHandler } from "../
|
|
1
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, A as updateExplicitBooleanAttribute, y as updateAttribute, i as getAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
4
4
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;height:32px;padding:0 16px;box-sizing:border-box;color:var(--sinch-local-color-text);background-color:var(--sinch-local-color-background);cursor:pointer;--sinch-local-color-text:var(--sinch-comp-segmented-control-color-default-text-initial);--sinch-local-shape-radius:var(--sinch-comp-segmented-control-shape-radius);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-default-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-default-background-initial);--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-default-icon-initial);--sinch-global-size-icon:var(--sinch-comp-segmented-control-size-icon)}:host(:hover){--sinch-local-color-background:var(--sinch-comp-segmented-control-color-default-background-hover)}:host(:first-child) #wrapper{border-top-left-radius:var(--sinch-local-shape-radius);border-bottom-left-radius:var(--sinch-local-shape-radius)}:host(:last-child) #wrapper{border-top-right-radius:var(--sinch-local-shape-radius);border-bottom-right-radius:var(--sinch-local-shape-radius)}:host([data-checked]) #wrapper{--sinch-local-color-text:var(--sinch-comp-segmented-control-color-checked-text-initial);--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-checked-icon-initial);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-checked-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-checked-background-initial)}:host([disabled]) #wrapper{--sinch-local-color-text:var(--sinch-comp-segmented-control-color-disabled-text-initial);--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-disabled-icon-initial);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-disabled-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-disabled-background-initial)}#border{position:absolute;inset:0;border:1px solid var(--sinch-local-color-border);pointer-events:none;box-sizing:border-box}:host(:first-child) #border{border-top-left-radius:var(--sinch-local-shape-radius);border-bottom-left-radius:var(--sinch-local-shape-radius)}:host(:last-child) #border{border-top-right-radius:var(--sinch-local-shape-radius);border-bottom-right-radius:var(--sinch-local-shape-radius)}:host(:not(:first-child)) #border{border-left-width:0}:host([data-checked]) #border{border-width:2px}:host([data-checked]:not(:first-child)) #border{left:-1px}#outline{display:none;position:absolute;inset:-3px;border:2px solid var(--sinch-comp-segmented-control-color-default-outline-focus);pointer-events:none;box-sizing:border-box;z-index:1}:host(:focus-visible) #outline{display:block}:host(:first-child) #outline{border-top-left-radius:calc(var(--sinch-local-shape-radius) + 3px);border-bottom-left-radius:calc(var(--sinch-local-shape-radius) + 3px)}:host(:last-child) #outline{border-top-right-radius:calc(var(--sinch-local-shape-radius) + 3px);border-bottom-right-radius:calc(var(--sinch-local-shape-radius) + 3px)}:host(:not(:first-child)) #outline{left:-4px}#content{font:var(--sinch-comp-segmented-control-font-label);flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}::slotted(*){display:block;pointer-events:none}</style><div id="wrapper"><slot name="icon"></slot><span id="content"></span><div id="border"></div><div id="outline"></div></div>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-segmented-icon-control");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { updateCsv, unpackCsv, getFirstCsvValue } from "../
|
|
2
|
-
import { updateAttribute, getAttribute, updateBooleanAttribute, getBooleanAttribute } from "../
|
|
3
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
4
|
-
import { getReactEventHandler } from "../
|
|
5
|
-
import { getTargetByAttribute } from "../
|
|
6
|
-
import { createKeyboardNavigation } from "../
|
|
1
|
+
import { a as updateCsv, u as unpackCsv, g as getFirstCsvValue } from "../csv.js";
|
|
2
|
+
import { y as updateAttribute, i as getAttribute, z as updateBooleanAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
3
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
4
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
5
|
+
import { a as getTargetByAttribute } from "../event-target.js";
|
|
6
|
+
import { c as createKeyboardNavigation } from "../control-keyboard-navigation.js";
|
|
7
7
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:row;width:100%;box-sizing:border-box;position:relative;z-index:0}</style><div id="wrapper"><slot></slot></div>';
|
|
8
8
|
const template = document.createElement("template");
|
|
9
9
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-segmented-icon-control-option");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isAttrEqual, updateBooleanAttribute, isAttrTrue, updateExplicitBooleanAttribute, updateAttribute, getAttribute, getBooleanAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { getReactEventHandler } from "../
|
|
1
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, A as updateExplicitBooleanAttribute, y as updateAttribute, i as getAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
4
4
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{position:relative;width:56px;height:32px;padding:3px 16px;box-sizing:border-box;background-color:var(--sinch-local-color-background);cursor:pointer;--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-default-icon-initial);--sinch-global-size-icon:var(--sinch-comp-segmented-control-size-icon);--sinch-local-shape-radius:var(--sinch-comp-segmented-control-shape-radius);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-default-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-default-background-initial)}:host(:hover){--sinch-local-color-background:var(--sinch-comp-segmented-control-color-default-background-hover)}:host(:first-child) #wrapper{border-top-left-radius:var(--sinch-local-shape-radius);border-bottom-left-radius:var(--sinch-local-shape-radius)}:host(:last-child) #wrapper{border-top-right-radius:var(--sinch-local-shape-radius);border-bottom-right-radius:var(--sinch-local-shape-radius)}:host([data-checked]) #wrapper{--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-checked-icon-initial);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-checked-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-checked-background-initial)}:host([disabled]) #wrapper{--sinch-global-color-icon:var(--sinch-comp-segmented-control-color-disabled-icon-initial);--sinch-local-color-border:var(--sinch-comp-segmented-control-color-disabled-border-initial);--sinch-local-color-background:var(--sinch-comp-segmented-control-color-disabled-background-initial);cursor:initial}#border{position:absolute;inset:0;border:1px solid var(--sinch-local-color-border);pointer-events:none;box-sizing:border-box}:host(:first-child) #border{border-top-left-radius:var(--sinch-local-shape-radius);border-bottom-left-radius:var(--sinch-local-shape-radius)}:host(:last-child) #border{border-top-right-radius:var(--sinch-local-shape-radius);border-bottom-right-radius:var(--sinch-local-shape-radius)}:host(:not(:first-child)) #border{border-left-width:0}:host([data-checked]) #border{border-width:2px}:host([data-checked]:not(:first-child)) #border{left:-1px}#outline{display:none;position:absolute;inset:-3px;border:2px solid var(--sinch-comp-segmented-control-color-default-outline-focus);pointer-events:none;box-sizing:border-box;z-index:1}:host(:focus-visible) #outline{display:block}:host(:first-child) #outline{border-top-left-radius:calc(var(--sinch-local-shape-radius) + 3px);border-bottom-left-radius:calc(var(--sinch-local-shape-radius) + 3px)}:host(:last-child) #outline{border-top-right-radius:calc(var(--sinch-local-shape-radius) + 3px);border-bottom-right-radius:calc(var(--sinch-local-shape-radius) + 3px)}:host(:not(:first-child)) #outline{left:-4px}::slotted(*){display:block;pointer-events:none}</style><div id="wrapper"><slot name="icon"></slot><div id="border"></div><div id="outline"></div></div>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-select-button");
|
package/select-button/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { Context, subscribeContext } from "../
|
|
4
|
-
import { isAttrEqual, updateAttribute, isAttrTrue, updateBooleanAttribute, getAttribute, getBooleanAttribute, updateLiteralAttribute, getLiteralAttribute, setClass } from "../
|
|
5
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
6
|
-
import { getReactEventHandler } from "../
|
|
7
|
-
import { sizeValues, DEFAULT_SIZE } from "../
|
|
1
|
+
import "../index.d.js";
|
|
2
|
+
import "../index.d3.js";
|
|
3
|
+
import { C as Context, s as subscribeContext } from "../context.js";
|
|
4
|
+
import { s as isAttrEqual, y as updateAttribute, t as isAttrTrue, z as updateBooleanAttribute, i as getAttribute, j as getBooleanAttribute, C as updateLiteralAttribute, o as getLiteralAttribute, w as setClass } from "../dom.js";
|
|
5
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
6
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
7
|
+
import { s as sizeValues, D as DEFAULT_SIZE } from "../size.js";
|
|
8
8
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0;cursor:pointer}:host([disabled]){cursor:initial}#wrapper{position:relative;display:flex;flex-direction:row;align-items:center;gap:var(--sinch-local-gap);box-sizing:border-box;width:100%;height:var(--sinch-local-size);padding:0 var(--sinch-local-padding-end) 0 var(--sinch-local-padding-start);background-color:var(--sinch-comp-select-button-color-default-background-initial);border-radius:var(--sinch-local-shape-radius);--sinch-local-size:var(--sinch-comp-select-button-size-container-m);--sinch-local-padding-start:var(--sinch-comp-select-button-spacing-padding-left-m, 12px);--sinch-local-padding-end:var(--sinch-comp-select-button-spacing-padding-right-m, 8px);--sinch-local-gap:var(--sinch-comp-select-button-spacing-gap-m, 8px);--sinch-local-left-slot-gap:var(--sinch-comp-select-button-spacing-left-slot-gap-m, 4px);--sinch-local-left-slot-offset:var(--sinch-comp-select-button-spacing-left-slot-offset-m, -4px);--sinch-global-size-icon:var(--sinch-comp-select-button-size-icon-m);--sinch-local-shape-radius:var(--sinch-comp-select-button-shape-radius-size-m);--sinch-global-color-icon:var(--sinch-comp-select-button-color-default-icon-initial)}:host([data-size="l"])>#wrapper{--sinch-local-size:var(--sinch-comp-select-button-size-container-l);--sinch-local-padding-start:var(--sinch-comp-select-button-spacing-padding-left-l, 12px);--sinch-local-padding-end:var(--sinch-comp-select-button-spacing-padding-right-l, 12px);--sinch-local-gap:var(--sinch-comp-select-button-spacing-gap-l, 8px);--sinch-local-left-slot-gap:var(--sinch-comp-select-button-spacing-left-slot-gap-l, 4px);--sinch-local-left-slot-offset:var(--sinch-comp-select-button-spacing-left-slot-offset-l, -4px);--sinch-global-size-icon:var(--sinch-comp-select-button-size-icon-l);--sinch-local-shape-radius:var(--sinch-comp-select-button-shape-radius-size-l)}:host([data-size="m"])>#wrapper{--sinch-local-size:var(--sinch-comp-select-button-size-container-m);--sinch-local-padding-start:var(--sinch-comp-select-button-spacing-padding-left-m, 12px);--sinch-local-padding-end:var(--sinch-comp-select-button-spacing-padding-right-m, 8px);--sinch-local-gap:var(--sinch-comp-select-button-spacing-gap-m, 8px);--sinch-local-left-slot-gap:var(--sinch-comp-select-button-spacing-left-slot-gap-m, 4px);--sinch-local-left-slot-offset:var(--sinch-comp-select-button-spacing-left-slot-offset-m, -4px);--sinch-global-size-icon:var(--sinch-comp-select-button-size-icon-m);--sinch-local-shape-radius:var(--sinch-comp-select-button-shape-radius-size-m)}:host([data-size="s"])>#wrapper{--sinch-local-size:var(--sinch-comp-select-button-size-container-s);--sinch-local-padding-start:var(--sinch-comp-select-button-spacing-padding-left-s, 12px);--sinch-local-padding-end:var(--sinch-comp-select-button-spacing-padding-right-s, 4px);--sinch-local-gap:var(--sinch-comp-select-button-spacing-gap-s, 8px);--sinch-local-left-slot-gap:var(--sinch-comp-select-button-spacing-left-slot-gap-s, 4px);--sinch-local-left-slot-offset:var(--sinch-comp-select-button-spacing-left-slot-offset-s, -4px);--sinch-global-size-icon:var(--sinch-comp-select-button-size-icon-s);--sinch-local-shape-radius:var(--sinch-comp-select-button-shape-radius-size-s)}:host([disabled]) #wrapper{--sinch-global-color-icon:var(--sinch-comp-select-button-color-disabled-icon-initial)}#text{flex:1;min-width:0;--sinch-comp-text-font:var(--sinch-comp-select-button-font-input);--sinch-global-color-text:var(--sinch-comp-select-button-color-default-text-initial)}#text:empty{display:none}#placeholder{display:none;flex:1;min-width:0;--sinch-comp-text-font:var(--sinch-comp-select-button-font-placeholder);--sinch-global-color-text:var(--sinch-comp-select-button-color-default-placeholder-initial)}#text:empty+#placeholder{display:block}#border{position:absolute;border:1px solid var(--sinch-comp-select-button-color-default-border-initial);border-radius:var(--sinch-local-shape-radius);inset:0;pointer-events:none}:host(:focus-visible) #border{border-color:var(--sinch-comp-select-button-color-default-border-focus);border-width:2px}:host([invalid]) #border{border-color:var(--sinch-comp-select-button-color-invalid-border-initial)}:host([disabled]) #border{border-color:var(--sinch-comp-select-button-color-disabled-border-initial)}:host([disabled]) #text{--sinch-global-color-text:var(--sinch-comp-select-button-color-disabled-text-initial)}:host([disabled]) #placeholder{--sinch-global-color-text:var(--sinch-comp-select-button-color-disabled-placeholder-initial)}#left{display:flex;flex-direction:row;align-self:stretch;align-items:center;gap:var(--sinch-local-left-slot-gap);margin-left:var(--sinch-local-left-slot-offset)}#left.empty{display:none}</style><div id="wrapper" inert><div id="border"></div><div id="left"><slot name="left"></slot></div><slot name="icon"></slot><sinch-text id="text" type="m" ellipsis></sinch-text><sinch-text id="placeholder" type="m" ellipsis></sinch-text><sinch-icon icons-version="2" name="fa-angle-down" id="dropdown-icon"></sinch-icon></div>';
|
|
9
9
|
const template = document.createElement("template");
|
|
10
10
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-select-menu");
|