@nectary/components 5.42.4 → 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 +14159 -9183
- 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.js +7 -8
- package/time-picker/types.d.js +1 -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 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-tabs-option");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../index.d.js";
|
package/tabs-option/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { isAttrEqual, updateExplicitBooleanAttribute, updateBooleanAttribute, isAttrTrue, updateAttribute, getAttribute, getBooleanAttribute } from "../
|
|
3
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
4
|
-
import { isActivationKey } from "../
|
|
1
|
+
import "../index.d.js";
|
|
2
|
+
import { s as isAttrEqual, A as updateExplicitBooleanAttribute, z as updateBooleanAttribute, t as isAttrTrue, y as updateAttribute, i as getAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
3
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
4
|
+
import { i as isActivationKey } from "../control-keyboard-navigation.js";
|
|
5
5
|
const templateHTML = '<style>:host{display:block;outline:0}#button{all:initial;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 16px;box-sizing:border-box;cursor:pointer;background-color:var(--sinch-comp-tab-color-default-background-initial);border-top-left-radius:var(--sinch-comp-tab-shape-radius);border-top-right-radius:var(--sinch-comp-tab-shape-radius);height:39px;--sinch-global-color-text:var(--sinch-comp-tab-color-default-text-initial);--sinch-global-color-icon:var(--sinch-comp-tab-color-default-icon-initial);--sinch-global-size-icon:var(--sinch-comp-tab-size-icon)}:host([disabled]) #button{cursor:unset;pointer-events:none;--sinch-global-color-text:var(--sinch-comp-tab-color-disabled-text-initial);--sinch-global-color-icon:var(--sinch-comp-tab-color-disabled-icon-initial)}:host([data-checked]) #button{--sinch-global-color-text:var(--sinch-comp-tab-color-checked-text-initial);--sinch-global-color-icon:var(--sinch-comp-tab-color-checked-icon-initial)}:host([data-checked]) #button::before{content:"";position:absolute;left:0;right:0;bottom:-1px;pointer-events:none;border-top:2px solid var(--sinch-comp-tab-color-checked-border-initial)}:host(:hover:not([disabled])) #button{background-color:var(--sinch-comp-tab-color-default-background-hover)}:host(:focus-visible) #button::after{content:"";position:absolute;inset:0;bottom:-3px;border:2px solid var(--sinch-comp-tab-color-default-outline-focus);border-top-left-radius:var(--sinch-comp-tab-shape-radius);border-top-right-radius:var(--sinch-comp-tab-shape-radius);pointer-events:none}#text{flex-shrink:1;flex-basis:auto;min-width:0;--sinch-comp-text-font:var(--sinch-comp-tab-font-label)}::slotted(*){display:block;pointer-events:none}</style><div id="button"><slot name="icon"></slot><sinch-text id="text" type="m" ellipsis></sinch-text></div>';
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/tag/colors.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/tag/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-tag");
|
package/tag/index.d.js
ADDED
package/tag/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { getAttribute, updateAttribute, getBooleanAttribute, updateBooleanAttribute, isAttrEqual, isAttrTrue } from "../
|
|
4
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
5
|
-
import { getTagColorBg, getTagColorFg } from "
|
|
1
|
+
import "../index.d.js";
|
|
2
|
+
import "../index.d6.js";
|
|
3
|
+
import { i as getAttribute, y as updateAttribute, j as getBooleanAttribute, z as updateBooleanAttribute, s as isAttrEqual, t as isAttrTrue } from "../dom.js";
|
|
4
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
5
|
+
import { g as getTagColorBg, a as getTagColorFg } from "../utils24.js";
|
|
6
6
|
const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}:host([ellipsis]){display:inline}#wrapper{display:flex;flex-direction:row;align-items:center;gap:4px;width:100%;height:var(--sinch-comp-tag-size-container-m);padding:0 9px;border:1px solid var(--sinch-comp-tag-border);border-radius:var(--sinch-comp-tag-shape-radius);background-color:var(--sinch-comp-tag-color-default-background);box-sizing:border-box;user-select:none;--sinch-global-color-text:var(--sinch-comp-tag-color-default-foreground);--sinch-global-color-icon:var(--sinch-comp-tag-color-default-foreground);--sinch-global-size-icon:var(--sinch-comp-tag-size-icon-m)}:host([small]) #wrapper{height:var(--sinch-comp-tag-size-container-s);padding:0 8px;--sinch-global-size-icon:var(--sinch-comp-tag-size-icon-s)}#text{flex:1;--sinch-comp-text-font:var(--sinch-comp-tag-font-size-m-label)}:host([small]) #text{--sinch-comp-text-font:var(--sinch-comp-tag-font-size-s-label)}::slotted(*){margin-left:-4px}</style><sinch-tooltip id="tooltip" type="fast"><div id="wrapper"><slot name="icon"></slot><sinch-text id="text" type="s" ellipsis></sinch-text></div></sinch-tooltip>';
|
|
7
7
|
const template = document.createElement("template");
|
|
8
8
|
template.innerHTML = templateHTML;
|
package/tag/types.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/tag/utils.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/text/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-text");
|
package/text/index.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/text/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isAttrEqual, updateBooleanAttribute, getLiteralAttribute, updateLiteralAttribute, getBooleanAttribute
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { typeValues } from "
|
|
1
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, o as getLiteralAttribute, C as updateLiteralAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { t as typeValues } from "../utils27.js";
|
|
4
4
|
const templateHTML = '<style>:host{text-align:var(--sinch-comp-text-align);display:block;font:var(--sinch-comp-text-font);color:var(--sinch-global-color-text,var(--sinch-sys-color-text-default));--sinch-comp-text-font:var(--sinch-sys-font-body-m);--sinch-comp-text-align:unset}:host([inline]){display:inline}:host([type="s"]){--sinch-comp-text-font:var(--sinch-sys-font-body-s)}:host([type=xs]){--sinch-comp-text-font:var(--sinch-sys-font-body-xs)}:host([type=xxs]){--sinch-comp-text-font:var(--sinch-sys-font-body-xxs)}:host([type="m"][emphasized]){--sinch-comp-text-font:var(--sinch-sys-font-body-emphasize)}:host([type="s"][emphasized]){--sinch-comp-text-font:var(--sinch-sys-font-body-emphasize-s)}:host([type=xs][emphasized]){--sinch-comp-text-font:var(--sinch-sys-font-body-emphasize-xs)}:host([ellipsis]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--sinch-global-text-white-space:nowrap}</style><slot></slot>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
package/text/types.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/text/utils.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/textarea/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-textarea");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/textarea/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Context } from "../
|
|
2
|
-
import { getBooleanAttribute, isAttrEqual, updateBooleanAttribute, hasClass, setClass, updateAttribute, isAttrTrue, getAttribute, getIntegerAttribute } from "../
|
|
3
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
4
|
-
import { getRect } from "../
|
|
5
|
-
import { getReactEventHandler } from "../
|
|
6
|
-
import { setFormValue } from "../
|
|
7
|
-
import { DEFAULT_SIZE } from "../
|
|
1
|
+
import { C as Context } from "../context.js";
|
|
2
|
+
import { j as getBooleanAttribute, s as isAttrEqual, z as updateBooleanAttribute, r as hasClass, w as setClass, y as updateAttribute, t as isAttrTrue, i as getAttribute, n as getIntegerAttribute } from "../dom.js";
|
|
3
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
4
|
+
import { g as getRect } from "../rect.js";
|
|
5
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
6
|
+
import { s as setFormValue } from "../form.js";
|
|
7
|
+
import { D as DEFAULT_SIZE } from "../size.js";
|
|
8
8
|
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);padding-right:2px;overflow:hidden;--sinch-local-shape-radius:var(--sinch-comp-textarea-shape-radius)}#input{all:initial;display:block;font:var(--sinch-comp-textarea-font-input);color:var(--sinch-comp-textarea-color-default-text-initial);resize:none;white-space:pre-wrap;overflow-wrap:break-word;padding:8px 10px 8px 12px;border:none;box-sizing:border-box}#input::placeholder{color:var(--sinch-comp-textarea-color-default-text-placeholder);opacity:1}#input:disabled{color:var(--sinch-comp-textarea-color-disabled-text-initial);-webkit-text-fill-color:var(--sinch-comp-textarea-color-disabled-text-initial)}#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)}#input:focus+#border{border-color:var(--sinch-comp-textarea-color-default-border-focus);border-width:2px}#input:disabled+#border{border-color:var(--sinch-comp-textarea-color-disabled-border-initial)}#bottom{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 4px 4px}#bottom.empty{display:none}:host([resizable]) #bottom{padding-right:calc(var(--sinch-comp-textarea-size-resize-handle) + 4px)}#resize-handle{display:none;position:absolute;width:var(--sinch-comp-textarea-size-resize-handle);height:var(--sinch-comp-textarea-size-resize-handle);bottom:0;right:0;cursor:ns-resize}:host([resizable]) #resize-handle{display:block}#resize-icon{display:block;pointer-events:none;fill:var(--sinch-comp-textarea-color-default-border-initial)}</style><div id="wrapper"><textarea id="input"></textarea><div id="border"></div><div id="bottom"><slot name="bottom"></slot><div id="resize-handle"><svg id="resize-icon" width="16" height="16"><path d="m14.833 4.724-9.61 9.61-.942-.944 9.61-9.609.942.943ZM15.443 10 10.5 14.943 9.557 14 14.5 9.057l.943.943Z"/></svg></div></div></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-time-picker");
|
package/time-picker/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { stringifyHourFace, stringifyMinute, parseTime, hourToIndex, stringifyHour, getNeedleRotationDeg, getShortestCssDeg, stringifyTime } from "./utils.js";
|
|
1
|
+
import "../index.d3.js";
|
|
2
|
+
import "../index.d18.js";
|
|
3
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, y as updateAttribute, i as getAttribute, j as getBooleanAttribute, w as setClass, t as isAttrTrue } from "../dom.js";
|
|
4
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
5
|
+
import { g as getRect } from "../rect.js";
|
|
6
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
7
|
+
import { s as stringifyHourFace, a as stringifyMinute, p as parseTime, h as hourToIndex, b as stringifyHour, g as getNeedleRotationDeg, c as getShortestCssDeg, d as stringifyTime } from "../utils28.js";
|
|
9
8
|
const templateHTML = '<style>:host{display:block;outline:0}#wrapper{display:flex;flex-direction:column;width:248px;padding:16px;box-sizing:border-box;gap:16px}#header{position:relative;width:100%;height:48px;font:var(--sinch-comp-time-picker-header-font);line-height:48px;user-select:none;color:var(--sinch-comp-time-picker-header-color-default-text-initial)}#footer{display:flex;justify-content:center;width:100%;height:32px}#picker{position:relative;width:216px;height:216px;border-radius:50%;box-sizing:border-box;border:1px solid var(--sinch-comp-time-picker-watch-face-color-default-border-initial);background-color:var(--sinch-comp-time-picker-watch-face-color-default-background-initial)}#picker-hours,#picker-minutes{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:50%;pointer-events:none;user-select:none}.digit-hour-12,.digit-hour-24,.digit-minute{position:absolute;width:28px;height:28px;text-align:center;top:calc(50% - 14px);left:calc(50% - 14px);z-index:1;cursor:pointer}.digit-hour-12{font:var(--sinch-comp-time-picker-digit-font-default-h12);color:var(--sinch-comp-time-picker-digit-color-default-h12-initial);line-height:28px}.digit-hour-12.selected{font:var(--sinch-comp-time-picker-digit-font-checked-h12);color:var(--sinch-comp-time-picker-digit-color-checked-h12-default)}.digit-hour-24{font:var(--sinch-comp-time-picker-digit-font-default-h24);color:var(--sinch-comp-time-picker-digit-color-default-h24-initial);line-height:28px}.digit-hour-24.selected{font:var(--sinch-comp-time-picker-digit-font-checked-h24);color:var(--sinch-comp-time-picker-digit-color-checked-h24-initial)}.digit-minute{font:var(--sinch-comp-time-picker-digit-font-default-minutes);color:var(--sinch-comp-time-picker-digit-color-default-minute-initial);line-height:28px}.digit-minute.selected{font:var(--sinch-comp-time-picker-digit-font-checked-minutes);color:var(--sinch-comp-time-picker-digit-color-checked-minute-initial)}#picker-touch{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;border-radius:50%}#needle-hour,#needle-minute,#picker-touch::after{background-color:var(--sinch-comp-time-picker-needle-color-default-background-initial)}#needle-hour,#needle-minute{position:absolute;transform-origin:bottom center;transform:rotate(0);bottom:50%;height:50px;transition-duration:.25s;transition-timing-function:ease-in-out;transition-property:transform height;z-index:2;outline:0}@media (prefers-reduced-motion){#needle-hour,#needle-minute{transition:none}}#needle-hour{width:4px;left:calc(50% - 2px);border-radius:2px}#needle-minute{width:2px;left:calc(50% - 1px);border-radius:1px}#needle-hour:focus-visible,#needle-minute:focus-visible{background-color:var(--sinch-comp-time-picker-needle-color-default-background-focus)}#needle-minute:not(.selected)::after{content:"";position:absolute;transform:translateX(-50%);left:0;top:-16px;width:4px;height:4px;border-radius:50%;background-color:var(--sinch-comp-time-picker-digit-color-checked-minute-initial)}#picker-touch::after{content:"";position:absolute;top:50%;left:50%;width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%)}#header-hours,#header-minutes{position:absolute;padding:0 4px;width:50px;outline:0}#header-hours{right:calc(50% + 8px);text-align:right}#header-minutes{left:calc(50% + 8px)}#header-colon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}#submit{position:absolute;right:0;top:50%;transform:translateY(-50%)}#submit-icon{--sinch-global-color-icon:var(--sinch-comp-time-picker-header-color-default-icon-initial)}:host([ampm]) .digit-hour-24{display:none}:host(:not([ampm])) #footer{display:none}</style><div id="wrapper"><div id="header"><div id="header-hours" role="meter" aria-valuemin="0" aria-valuemax="23" aria-valuenow="0" aria-valuetext="0"><span>00</span></div><div id="header-colon">:</div><div id="header-minutes" role="meter" aria-valuemin="0" aria-valuemax="59" aria-valuenow="0" aria-valuetext="0"><span>00</span></div><sinch-button id="submit" size="s" aria-label="Submit"><sinch-icon icons-version="2" name="fa-check" id="icon-submit" slot="icon"></sinch-icon></sinch-button></div><div id="picker" role="group" aria-label="Time picker clock face"><div id="picker-hours"></div><div id="picker-minutes"></div><div id="picker-touch"><div id="needle-hour" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="23" aria-valuenow="0"></div><div id="needle-minute" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="59" aria-valuenow="0"></div></div></div><div id="footer"><sinch-segmented-control id="ampm"><sinch-segmented-control-option value="am" text="AM" aria-label="AM"></sinch-segmented-control-option><sinch-segmented-control-option value="pm" text="PM" aria-label="PM"></sinch-segmented-control-option></sinch-segmented-control></div></div>';
|
|
10
9
|
const template = document.createElement("template");
|
|
11
10
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/title/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-title");
|
package/title/index.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/title/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isAttrEqual, updateBooleanAttribute, isAttrTrue, updateAttribute, getAttribute, updateLiteralAttribute, getLiteralAttribute, getBooleanAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { typeValues } from "
|
|
1
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, y as updateAttribute, i as getAttribute, C as updateLiteralAttribute, o as getLiteralAttribute, j as getBooleanAttribute } from "../dom.js";
|
|
2
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
3
|
+
import { t as typeValues } from "../utils4.js";
|
|
4
4
|
const templateHTML = '<style>:host{display:block;--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-m)}:host([type=xl]){--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-xl)}:host([type="l"]){--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-l)}:host([type="m"]){--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-m)}:host([type="s"]){--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-s)}:host([type=xs]){--sinch-comp-title-font:var(--sinch-sys-font-desktop-title-xs)}#text{letter-spacing:-2%;color:var(--sinch-global-color-text,var(--sinch-sys-color-text-default));font:var(--sinch-comp-title-font)}:host([ellipsis]) #text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}</style><span id="text"></span>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
package/title/types.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/title/utils.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/toast/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-toast");
|
package/toast/index.d.js
ADDED
package/toast/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { updateAttribute, getLiteralAttribute, updateLiteralAttribute, getAttribute, getBooleanAttribute, updateBooleanAttribute } from "../
|
|
4
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
5
|
-
import { getReactEventHandler } from "../
|
|
6
|
-
import { typeValues } from "
|
|
7
|
-
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:row;align-items:center;gap:8px;width:328px;max-width:90vw;padding:16px;box-sizing:border-box;border-radius:var(--sinch-comp-toast-shape-radius);box-shadow:var(--sinch-comp-toast-shadow)}:host([type=success]) #wrapper{background-color:var(--sinch-comp-toast-color-success-default-background)}:host([type=warn]) #wrapper{background-color:var(--sinch-comp-toast-color-warning-default-background)}:host([type=error]) #wrapper{background-color:var(--sinch-comp-toast-color-error-default-background)}:host([type=info]) #wrapper{background-color:var(--sinch-comp-toast-color-info-default-background)}#text{padding:4px 0 4px 4px;flex:1;min-width:0;word-wrap:break-word;--sinch-comp-text-font:var(--sinch-comp-toast-font-body)}:host([type=success]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-success-default-text)}:host([type=warn]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-warning-default-text)}:host([type=error]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-error-default-text)}:host([type=info]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-info-default-text)}#icon{align-self:flex-start;margin:4px 0}#icon-error,#icon-info,#icon-success,#icon-warn{display:none}#icon-success{--sinch-global-color-icon:var(--sinch-comp-toast-color-success-default-icon)}#icon-warn{--sinch-global-color-icon:var(--sinch-comp-toast-color-warning-default-icon)}#icon-error{--sinch-global-color-icon:var(--sinch-comp-toast-color-error-default-icon)}#icon-info{--sinch-global-color-icon:var(--sinch-comp-toast-color-info-default-icon)}:host([type=error]) #icon-error,:host([type=info]) #icon-info,:host([type=success]) #icon-success,:host([type=warn]) #icon-warn{display:block}</style><div id="wrapper"><sinch-icon icons-version="2" name="circle-info" id="icon-info"></sinch-icon><sinch-icon icons-version="2" name="circle-check" id="icon-success"></sinch-icon><sinch-icon icons-version="2" name="triangle-exclamation" id="icon-warn"></sinch-icon><sinch-icon icons-version="2" name="octagon-exclamation" id="icon-error"></sinch-icon><sinch-rich-text id="text" size="m"></sinch-rich-text><slot name="action"></slot><slot name="close"></slot></div>';
|
|
1
|
+
import "../index.d3.js";
|
|
2
|
+
import "../index.d5.js";
|
|
3
|
+
import { y as updateAttribute, o as getLiteralAttribute, C as updateLiteralAttribute, i as getAttribute, j as getBooleanAttribute, z as updateBooleanAttribute } from "../dom.js";
|
|
4
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
5
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
6
|
+
import { t as typeValues } from "../utils29.js";
|
|
7
|
+
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:row;align-items:center;gap:8px;width:var(--sinch-comp-toast-width,328px);max-width:var(--sinch-comp-toast-max-width,90vw);padding:16px;box-sizing:border-box;border-radius:var(--sinch-comp-toast-shape-radius);box-shadow:var(--sinch-comp-toast-shadow)}:host([type=success]) #wrapper{background-color:var(--sinch-comp-toast-color-success-default-background)}:host([type=warn]) #wrapper{background-color:var(--sinch-comp-toast-color-warning-default-background)}:host([type=error]) #wrapper{background-color:var(--sinch-comp-toast-color-error-default-background)}:host([type=info]) #wrapper{background-color:var(--sinch-comp-toast-color-info-default-background)}#text{padding:4px 0 4px 4px;flex:1;min-width:0;word-wrap:break-word;--sinch-comp-text-font:var(--sinch-comp-toast-font-body)}:host([type=success]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-success-default-text)}:host([type=warn]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-warning-default-text)}:host([type=error]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-error-default-text)}:host([type=info]) #text{--sinch-global-color-text:var(--sinch-comp-toast-color-info-default-text)}#icon{align-self:flex-start;margin:4px 0}#icon-error,#icon-info,#icon-success,#icon-warn{display:none}#icon-success{--sinch-global-color-icon:var(--sinch-comp-toast-color-success-default-icon)}#icon-warn{--sinch-global-color-icon:var(--sinch-comp-toast-color-warning-default-icon)}#icon-error{--sinch-global-color-icon:var(--sinch-comp-toast-color-error-default-icon)}#icon-info{--sinch-global-color-icon:var(--sinch-comp-toast-color-info-default-icon)}:host([type=error]) #icon-error,:host([type=info]) #icon-info,:host([type=success]) #icon-success,:host([type=warn]) #icon-warn{display:block}</style><div id="wrapper"><sinch-icon icons-version="2" name="circle-info" id="icon-info"></sinch-icon><sinch-icon icons-version="2" name="circle-check" id="icon-success"></sinch-icon><sinch-icon icons-version="2" name="triangle-exclamation" id="icon-warn"></sinch-icon><sinch-icon icons-version="2" name="octagon-exclamation" id="icon-error"></sinch-icon><sinch-rich-text id="text" size="m"></sinch-rich-text><slot name="action"></slot><slot name="close"></slot></div>';
|
|
8
8
|
const TIMEOUT = 5e3;
|
|
9
9
|
const template = document.createElement("template");
|
|
10
10
|
template.innerHTML = templateHTML;
|
package/toast/types.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/toast/types.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export type TSinchToastEvents = {
|
|
|
13
13
|
'-timeout'?: (e: CustomEvent<void>) => void;
|
|
14
14
|
};
|
|
15
15
|
export type TSinchToastStyle = {
|
|
16
|
+
'--sinch-comp-toast-width'?: string;
|
|
17
|
+
'--sinch-comp-toast-max-width'?: string;
|
|
16
18
|
'--sinch-comp-toast-shape-radius'?: string;
|
|
17
19
|
'--sinch-comp-toast-font-body'?: string;
|
|
18
20
|
'--sinch-comp-toast-shadow'?: string;
|
package/toast/utils.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-toast-manager");
|
package/toast-manager/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { Toast } from "../
|
|
4
|
-
import { shouldReduceMotion, getLiteralAttribute, updateLiteralAttribute, cloneNode } from "../
|
|
5
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
6
|
-
import { getRect } from "../
|
|
7
|
-
import { originValues } from "./utils.js";
|
|
1
|
+
import "../index.js";
|
|
2
|
+
import "../index.d.js";
|
|
3
|
+
import { o as originValues, T as Toast } from "../utils.js";
|
|
4
|
+
import { x as shouldReduceMotion, o as getLiteralAttribute, C as updateLiteralAttribute, f as cloneNode } from "../dom.js";
|
|
5
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
6
|
+
import { g as getRect } from "../rect.js";
|
|
8
7
|
const templateHTML = '<style>:host{display:block}#items{display:block;width:0;height:0;visibility:hidden;overflow:hidden}#list{display:flex;flex-direction:column;position:fixed;z-index:1;bottom:0;right:16px}:host([origin=top-right]) #list{flex-direction:column-reverse;bottom:unset;top:16px}.item-wrapper{height:0;opacity:0;position:relative}.item-wrapper[data-deleting]::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0}</style><slot id="items"></slot><div id="list" role="status" aria-live="polite" aria-atomic="false"></div>';
|
|
9
8
|
const DURATION_ADD = 250;
|
|
10
9
|
const DURATION_REMOVE = 250;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/toggle/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-toggle");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/toggle/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isAttrEqual, updateBooleanAttribute, isAttrTrue, updateExplicitBooleanAttribute, getBooleanAttribute, updateAttribute, getAttribute } from "../
|
|
2
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
3
|
-
import { getReactEventHandler } from "../
|
|
1
|
+
import { s as isAttrEqual, z as updateBooleanAttribute, t as isAttrTrue, A as updateExplicitBooleanAttribute, j as getBooleanAttribute, y as updateAttribute, i as getAttribute } 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:inline-block;vertical-align:middle;outline:0}#wrapper{position:relative;display:flex;flex-direction:row;gap:8px;width:100%;height:var(--sinch-local-size);cursor:pointer;user-select:none;--sinch-local-size:20px}:host([small]) #wrapper{--sinch-local-size:16px}:host([disabled]) #wrapper{cursor:initial}#knob-container{position:relative;width:40px;height:var(--sinch-local-size);border-radius:calc(var(--sinch-local-size) * .5);background-color:var(--sinch-comp-toggle-color-default-background-initial);pointer-events:none;transition:background-color .15s ease-in-out}:host([small]) #knob-container{width:32px;height:var(--sinch-local-size)}:host([checked]) #knob-container{background-color:var(--sinch-comp-toggle-color-checked-background-initial)}:host([disabled]) #knob-container{background-color:var(--sinch-comp-toggle-color-disabled-background-initial)}:host([checked][disabled]) #knob-container{background-color:var(--sinch-comp-toggle-color-checked-disabled-background-initial)}#knob{position:relative;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background-color:var(--sinch-comp-toggle-color-default-knob-background-initial);box-shadow:var(--sinch-comp-toggle-shadow-knob-default);transform:translateX(0);transition:transform .15s ease-in-out;will-change:transform}:host([small]) #knob{width:12px;height:12px}:host([disabled]) #knob-container>#knob{box-shadow:var(--sinch-comp-toggle-shadow-knob-disabled)}:host([checked]) #knob-container>#knob{transform:translateX(20px)}:host([small][checked]) #knob-container>#knob{transform:translateX(16px)}#knob::after,#knob::before{font:var(--sinch-comp-toggle-font-size-m-inside-text);color:var(--sinch-comp-toggle-color-default-text-inside-initial);text-transform:uppercase;position:absolute;top:0;padding:0 1px;opacity:0;transition:opacity .15s ease-in-out;user-select:none}#knob::before{content:"on";right:100%}#knob::after{content:"off";left:100%}:host([labeled]:not([small]):not([checked])) #knob::after{opacity:1}:host([labeled]:not([small])[checked]) #knob::before{opacity:1}@media (prefers-reduced-motion){#knob,#knob-container,#knob::after,#knob::before{transition:none}}#outline{display:none;position:absolute;left:-3px;top:-3px;right:-3px;bottom:-3px;border:2px solid var(--sinch-comp-toggle-color-default-outline-focus);border-radius:17px;pointer-events:none}:host(:focus-visible) #outline{display:block}#label{flex:1;min-width:0;align-self:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--sinch-comp-toggle-font-size-m-label);color:var(--sinch-comp-toggle-color-default-label-initial)}#label:empty{display:none}:host([small]) #label{font:var(--sinch-comp-toggle-font-size-s-label)}:host([disabled]) #label{color:var(--sinch-comp-toggle-color-disabled-label-initial)}</style><div id="wrapper"><div id="knob-container"><div id="outline"></div><div id="knob"></div></div><span id="label"></span></div>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/tooltip/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { defineCustomElement } from "../../
|
|
1
|
+
import { d as defineCustomElement } from "../../element.js";
|
|
2
2
|
defineCustomElement("sinch-tooltip");
|
package/tooltip/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class Tooltip extends NectaryElement {
|
|
|
12
12
|
static get observedAttributes(): string[];
|
|
13
13
|
attributeChangedCallback(name: string, _: string | null, newVal: string | null): void;
|
|
14
14
|
get isOpenedControlled(): boolean | undefined;
|
|
15
|
-
get showOutsideViewport():
|
|
15
|
+
get showOutsideViewport(): any;
|
|
16
16
|
get text(): string;
|
|
17
17
|
set text(value: string);
|
|
18
18
|
get orientation(): TSinchTooltipOrientation;
|
package/tooltip/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { shouldReduceMotion, updateAttribute, updateBooleanAttribute, getAttribute, getBooleanAttribute, getLiteralAttribute, updateLiteralAttribute, getDeepActiveElement, composedContains, setClass } from "../
|
|
4
|
-
import { defineCustomElement, NectaryElement } from "../
|
|
5
|
-
import { rectOverlap } from "../
|
|
6
|
-
import { getReactEventHandler } from "../
|
|
7
|
-
import { getPlacementContext, toLocalRect } from "../
|
|
8
|
-
import { TooltipState } from "
|
|
9
|
-
import { getPopOrientation, orientationValues, textAlignValues, typeValues } from "./utils.js";
|
|
1
|
+
import "../index.d.js";
|
|
2
|
+
import "../index.d2.js";
|
|
3
|
+
import { x as shouldReduceMotion, y as updateAttribute, z as updateBooleanAttribute, i as getAttribute, j as getBooleanAttribute, o as getLiteralAttribute, C as updateLiteralAttribute, m as getDeepActiveElement, g as composedContains, w as setClass } from "../dom.js";
|
|
4
|
+
import { d as defineCustomElement, N as NectaryElement } from "../element.js";
|
|
5
|
+
import { r as rectOverlap } from "../rect.js";
|
|
6
|
+
import { g as getReactEventHandler } from "../get-react-event-handler.js";
|
|
7
|
+
import { g as getPlacementContext, t as toLocalRect } from "../utils31.js";
|
|
8
|
+
import { T as TooltipState, g as getPopOrientation, o as orientationValues, t as textAlignValues, a as typeValues } from "../utils32.js";
|
|
10
9
|
const templateHTML = '<style>:host{display:contents}#content-wrapper{padding-bottom:8px;filter:drop-shadow(var(--sinch-comp-tooltip-shadow))}:host([orientation=left]) #content-wrapper{padding-bottom:0;padding-right:8px}:host([orientation=right]) #content-wrapper{padding-bottom:0;padding-left:8px}:host([orientation^=bottom]) #content-wrapper{padding-bottom:0;padding-top:8px}#content{position:relative;display:block;max-width:300px;padding:2px 6px;box-sizing:border-box;background-color:var(--sinch-local-color-background);border-radius:var(--sinch-comp-tooltip-shape-radius);pointer-events:none;opacity:0;--sinch-local-color-background:var(--sinch-comp-tooltip-color-background);--sinch-global-color-text:var(--sinch-comp-tooltip-color-text)}#text{word-break:break-word;pointer-events:none;--sinch-comp-text-font:var(--sinch-comp-tooltip-font-body)}#tip{position:absolute;left:50%;top:100%;transform:translateX(-50%) rotate(0);transform-origin:top center;fill:var(--sinch-local-color-background);pointer-events:none}#tip.hidden{display:none}:host([orientation=left]) #tip{transform:translateX(-50%) rotate(270deg);top:50%;left:100%}:host([orientation=right]) #tip{transform:translateX(-50%) rotate(90deg);top:50%;left:0}:host([orientation^=bottom]) #tip{transform:translateX(-50%) rotate(180deg);top:0}:host([text-align=right]) #text{--sinch-comp-text-align:right}:host([text-align=center]) #text{--sinch-comp-text-align:center}:host([text-align=left]) #text{--sinch-comp-text-align:left}</style><sinch-pop id="pop"><slot id="target" slot="target"></slot><div id="content-wrapper" slot="content"><div id="content"><sinch-text id="text" type="s"></sinch-text><svg id="tip" width="8" height="4" aria-hidden="true"><path d="m4 4 4-4h-8l4 4Z"/></svg></div></div></sinch-pop>';
|
|
11
10
|
const TIP_SIZE = 8;
|
|
12
11
|
const SHOW_DELAY_SLOW = 1e3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const BASE_COMPONENT_NAMES_LIST: readonly ["accordion-item", "accordion", "action-menu-option", "action-menu", "alert", "avatar", "badge", "button-group-item", "button-group", "button", "card-container", "card-v2-title", "card-v2", "checkbox", "chip", "code-tag", "color-menu-option", "color-menu", "color-swatch", "date-picker", "dialog", "emoji-picker", "emoji", "field", "field-v2", "file-drop", "file-picker", "file-status", "flag", "floating-panel", "floating-panel-button", "floating-panel-icon-button", "grid-item", "grid", "help-tooltip", "icon", "inline-alert", "input", "link", "list-item", "list", "pagination", "persistent-overlay", "pop", "popover", "progress-stepper-item-v2", "progress-stepper-item", "progress-stepper-v2", "progress-stepper", "progress", "radio-option", "radio", "rich-text", "rich-textarea", "rich-textarea-chip", "segment-collapse", "segmented-control-option", "segmented-control", "segmented-icon-control-option", "segmented-icon-control", "select-button", "select-menu-option", "select-menu", "sheet", "sheet-title", "skeleton-item", "skeleton", "spinner", "stop-events", "table-body", "table-cell", "table-head-cell", "table-head", "table-row", "table", "tabs-icon-option", "tabs-option", "tabs", "tag", "text", "textarea", "time-picker", "title", "toast-manager", "toast", "toggle", "tooltip"];
|
|
2
|
-
export declare const BASE_COMPONENT_NAMES: Set<"
|
|
2
|
+
export declare const BASE_COMPONENT_NAMES: Set<"chip" | "flag" | "link" | "tag" | "input" | "progress" | "toggle" | "title" | "popover" | "button" | "dialog" | "table" | "textarea" | "text" | "icon" | "emoji" | "alert" | "checkbox" | "tooltip" | "pop" | "radio" | "accordion" | "list" | "radio-option" | "accordion-item" | "action-menu-option" | "action-menu" | "avatar" | "badge" | "button-group-item" | "button-group" | "card-container" | "card-v2-title" | "card-v2" | "code-tag" | "color-menu-option" | "color-menu" | "color-swatch" | "date-picker" | "emoji-picker" | "field" | "field-v2" | "file-drop" | "file-picker" | "file-status" | "floating-panel" | "floating-panel-button" | "floating-panel-icon-button" | "grid-item" | "grid" | "help-tooltip" | "inline-alert" | "list-item" | "pagination" | "persistent-overlay" | "progress-stepper-item-v2" | "progress-stepper-item" | "progress-stepper-v2" | "progress-stepper" | "rich-text" | "rich-textarea" | "rich-textarea-chip" | "segment-collapse" | "segmented-control-option" | "segmented-control" | "segmented-icon-control-option" | "segmented-icon-control" | "select-button" | "select-menu-option" | "select-menu" | "sheet" | "sheet-title" | "skeleton-item" | "skeleton" | "spinner" | "stop-events" | "table-body" | "table-cell" | "table-head-cell" | "table-head" | "table-row" | "tabs-icon-option" | "tabs-option" | "tabs" | "time-picker" | "toast-manager" | "toast">;
|
|
3
3
|
export type ComponentName = `sinch-${typeof BASE_COMPONENT_NAMES_LIST[number]}`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const isActivationKey: (key: string) => key is "
|
|
1
|
+
export declare const isActivationKey: (key: string) => key is "Enter" | " ";
|
|
2
2
|
export declare function createKeyboardNavigation(): {
|
|
3
3
|
navigateToNextOption(enabledOptions: Element[], forward: boolean): void;
|
|
4
4
|
navigateToOption(enabledOptions: Element[], index: number): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDeepActiveElement } from "
|
|
2
|
-
import { getTargetByAttribute } from "
|
|
1
|
+
import { m as getDeepActiveElement } from "../dom.js";
|
|
2
|
+
import { a as getTargetByAttribute } from "../event-target.js";
|
|
3
3
|
const isActivationKey = (key) => key === "Enter" || key === " ";
|
|
4
4
|
function createKeyboardNavigation() {
|
|
5
5
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/utils/csv.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/utils/dom.d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|