@nectary/components 5.42.5-rc.0 → 5.43.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-item/global/index.js +1 -1
- package/accordion-item/index.js +6 -6
- package/action-menu/global/index.js +1 -1
- package/action-menu/index.js +4 -4
- package/action-menu-option/global/index.js +1 -1
- package/action-menu-option/index.js +4 -4
- package/alert/global/index.js +1 -1
- package/alert/index.js +6 -6
- package/avatar/global/index.js +1 -1
- package/avatar/index.js +4 -4
- package/badge/global/index.js +1 -1
- package/badge/index.js +5 -5
- package/bundle.js +8248 -13224
- package/button/global/index.js +1 -1
- package/button/index.js +7 -7
- package/button-group/global/index.js +1 -1
- package/button-group/index.js +4 -4
- package/button-group-item/global/index.js +1 -1
- package/button-group-item/index.js +3 -3
- package/card-container/global/index.js +1 -1
- package/card-container/index.js +1 -1
- package/card-v2/global/index.js +1 -1
- package/card-v2/index.js +3 -3
- package/card-v2-title/global/index.js +1 -1
- package/card-v2-title/index.js +2 -2
- package/checkbox/global/index.js +1 -1
- package/checkbox/index.js +5 -5
- package/chip/global/index.js +1 -1
- package/chip/index.js +6 -6
- package/code-tag/global/index.js +1 -1
- package/code-tag/index.js +2 -2
- package/color-menu/global/index.js +1 -1
- package/color-menu/index.js +6 -6
- package/color-menu-option/global/index.js +1 -1
- package/color-menu-option/index.js +5 -5
- package/color-swatch/global/index.js +2 -2
- package/color-swatch/index.js +5 -5
- package/color-swatch/utils.d.ts +2 -2
- package/color-swatch/utils.js +1 -1
- package/date-picker/global/index.js +1 -1
- package/date-picker/index.js +10 -10
- package/dialog/global/index.js +1 -1
- package/dialog/index.d.ts +2 -2
- package/dialog/index.js +9 -9
- package/emoji/global/index.js +1 -1
- package/emoji/index.js +3 -3
- package/emoji/utils.js +1 -1
- package/emoji-picker/global/index.js +1 -1
- package/emoji-picker/index.js +16 -13
- package/field/global/index.js +1 -1
- package/field/index.js +4 -4
- package/field-v2/global/index.js +1 -1
- package/field-v2/index.js +5 -5
- package/file-drop/global/index.js +1 -1
- package/file-drop/index.js +6 -6
- package/file-picker/global/index.js +1 -1
- package/file-picker/index.js +4 -4
- package/file-status/global/index.js +1 -1
- package/file-status/index.js +6 -6
- package/flag/global/index.js +1 -1
- package/flag/index.js +3 -3
- package/flag/utils.js +1 -1
- package/floating-panel/global/index.js +1 -1
- package/floating-panel/index.d.ts +3 -3
- package/floating-panel/index.js +12 -10
- package/floating-panel-button/index.js +3 -3
- package/floating-panel-icon-button/index.js +4 -4
- package/grid/global/index.js +1 -1
- package/grid/index.js +1 -1
- package/grid-item/global/index.js +1 -1
- package/grid-item/index.js +2 -2
- package/help-tooltip/global/index.js +1 -1
- package/help-tooltip/index.js +5 -5
- package/icon/generated-icon-type.d.ts +1 -1
- package/icon/global/index.js +1 -1
- package/icon/index.d.ts +1 -1
- package/icon/index.js +2 -2
- package/inline-alert/global/index.js +1 -1
- package/inline-alert/index.js +8 -8
- package/input/global/index.js +1 -1
- package/input/index.js +8 -8
- package/link/global/index.js +1 -1
- package/link/index.d.ts +2 -2
- package/link/index.js +10 -10
- package/link/types.d.ts +8 -8
- package/list/global/index.js +1 -1
- package/list/index.js +1 -1
- package/list-item/global/index.js +1 -1
- package/list-item/index.js +1 -1
- package/package.json +10 -10
- package/pagination/global/index.js +1 -1
- package/pagination/index.d.ts +2 -2
- package/pagination/index.js +6 -6
- package/persistent-overlay/global/index.js +1 -1
- package/persistent-overlay/index.js +4 -4
- package/pop/global/index.js +1 -1
- package/pop/index.d.ts +1 -1
- package/pop/index.js +10 -9
- package/popover/global/index.js +1 -1
- package/popover/index.js +7 -7
- package/progress/global/index.js +1 -1
- package/progress/index.js +3 -3
- package/progress-stepper/global/index.js +1 -1
- package/progress-stepper/index.js +6 -6
- package/progress-stepper-item/global/index.js +1 -1
- package/progress-stepper-item/index.js +5 -5
- package/progress-stepper-item/utils.d.ts +5 -5
- package/progress-stepper-item/utils.js +1 -1
- package/progress-stepper-item-v2/global/index.js +1 -1
- package/progress-stepper-item-v2/index.js +6 -5
- package/progress-stepper-item-v2/utils.d.ts +3 -3
- package/progress-stepper-item-v2/utils.js +1 -1
- package/progress-stepper-v2/compact.js +5 -4
- package/progress-stepper-v2/global/index.js +1 -1
- package/progress-stepper-v2/index.js +14 -11
- package/progress-stepper-v2/separators.js +1 -1
- package/progress-stepper-v2/step-chip.js +2 -2
- package/radio/global/index.js +1 -1
- package/radio/index.js +4 -4
- package/radio-option/global/index.js +1 -1
- package/radio-option/index.js +2 -2
- package/rich-text/global/index.js +1 -1
- package/rich-text/index.js +10 -10
- package/rich-text/utils.js +1 -1
- package/rich-textarea/global/index.js +1 -1
- package/rich-textarea/index.js +8 -8
- package/rich-textarea/utils.js +2 -2
- package/rich-textarea-chip/index.js +5 -5
- package/segment-collapse/global/index.js +1 -1
- package/segment-collapse/index.js +4 -4
- package/segmented-control/global/index.js +1 -1
- package/segmented-control/index.js +5 -5
- package/segmented-control-option/global/index.js +1 -1
- package/segmented-control-option/index.js +3 -3
- package/segmented-icon-control/global/index.js +1 -1
- package/segmented-icon-control/index.js +6 -6
- package/segmented-icon-control-option/global/index.js +1 -1
- package/segmented-icon-control-option/index.js +3 -3
- package/select-button/global/index.js +1 -1
- package/select-button/index.js +7 -7
- package/select-menu/global/index.js +1 -1
- package/select-menu/index.js +12 -12
- package/select-menu-option/global/index.js +1 -1
- package/select-menu-option/index.js +4 -4
- package/sheet/global/index.js +1 -1
- package/sheet/index.d.ts +1 -1
- package/sheet/index.js +7 -7
- package/sheet-title/global/index.js +1 -1
- package/sheet-title/index.d.ts +1 -1
- package/sheet-title/index.js +5 -5
- package/skeleton/global/index.js +1 -1
- package/skeleton/index.js +3 -3
- package/skeleton-item/global/index.js +1 -1
- package/skeleton-item/index.js +1 -1
- package/spinner/global/index.js +1 -1
- package/spinner/index.js +4 -4
- package/standalone.js +88 -25
- package/stop-events/index.js +2 -2
- package/table/global/index.js +1 -1
- package/table/index.js +1 -1
- package/table-body/global/index.js +1 -1
- package/table-body/index.js +1 -1
- package/table-cell/global/index.js +1 -1
- package/table-cell/index.js +3 -3
- package/table-head/global/index.js +1 -1
- package/table-head/index.js +1 -1
- package/table-head-cell/global/index.js +1 -1
- package/table-head-cell/index.js +4 -4
- package/table-row/global/index.js +1 -1
- package/table-row/index.js +2 -2
- package/tabs/global/index.js +1 -1
- package/tabs/index.js +6 -6
- package/tabs-icon-option/global/index.js +1 -1
- package/tabs-icon-option/index.js +3 -3
- package/tabs-option/global/index.js +1 -1
- package/tabs-option/index.js +4 -4
- package/tag/global/index.js +1 -1
- package/tag/index.js +5 -5
- package/text/global/index.js +1 -1
- package/text/index.js +3 -3
- package/textarea/global/index.js +1 -1
- package/textarea/index.js +7 -7
- package/time-picker/global/index.js +1 -1
- package/time-picker/index.js +8 -7
- package/title/global/index.js +1 -1
- package/title/index.js +3 -3
- package/toast/global/index.js +1 -1
- package/toast/index.js +7 -7
- package/toast/types.d.ts +0 -2
- package/toast-manager/global/index.js +1 -1
- package/toast-manager/index.js +7 -6
- package/toggle/global/index.js +1 -1
- package/toggle/index.js +3 -3
- package/tooltip/global/index.js +1 -1
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +9 -8
- package/utils/component-names.d.ts +1 -1
- package/utils/control-keyboard-navigation.d.ts +1 -1
- package/utils/control-keyboard-navigation.js +2 -2
- package/utils/element.d.ts +109 -16
- package/utils/element.js +2 -2
- package/utils/global-components-manager.d.ts +47 -4
- package/utils/global-components-manager.js +2 -91
- package/utils/index.js +73 -73
- package/utils/placement.js +1 -1
- package/utils/rect.js +1 -1
- package/utils/shared/cdn-loader.js +136 -0
- package/utils/shared/deferred-promise.js +10 -0
- package/utils/shared/global-elements-manager.js +150 -0
- package/utils/shared/global-elements-store.js +33 -0
- package/utils/shared/index.d.js +16 -0
- package/utils/shared/index.js +16 -0
- package/utils/shared/nectary-element-base.js +25 -0
- package/accordion/types.d.js +0 -1
- package/accordion-item/index.d.js +0 -3
- package/action-menu/global/index.d.js +0 -1
- package/action-menu/index.d.js +0 -1
- package/action-menu/types.d.js +0 -1
- package/action-menu-option/global/index.d.js +0 -1
- package/action-menu-option/index.d.js +0 -1
- package/action-menu-option/types.d.js +0 -1
- package/action-menu-option/utils.d.js +0 -1
- package/alert/global/index.d.js +0 -1
- package/alert/index.d.js +0 -3
- package/alert/types.d.js +0 -1
- package/alert/utils.d.js +0 -1
- package/avatar/colors.d.js +0 -1
- package/avatar/global/index.d.js +0 -1
- package/avatar/index.d.js +0 -1
- package/avatar/types.d.js +0 -1
- package/avatar/utils.d.js +0 -1
- package/badge/global/index.d.js +0 -1
- package/badge/index.d.js +0 -1
- package/badge/types.d.js +0 -1
- package/badge/utils.d.js +0 -1
- package/button/global/index.d.js +0 -1
- package/button/index.d.js +0 -1
- package/button/types.d.js +0 -1
- package/button/utils.d.js +0 -1
- package/button-group/global/index.d.js +0 -1
- package/button-group/index.d.js +0 -1
- package/button-group/types.d.js +0 -1
- package/button-group-item/global/index.d.js +0 -1
- package/button-group-item/index.d.js +0 -1
- package/button-group-item/types.d.js +0 -1
- package/card-container/global/index.d.js +0 -1
- package/card-container/index.d.js +0 -1
- package/card-container/types.d.js +0 -1
- package/card-v2/global/index.d.js +0 -1
- package/card-v2/index.d.js +0 -1
- package/card-v2/types.d.js +0 -1
- package/card-v2-title/global/index.d.js +0 -1
- package/card-v2-title/index.d.js +0 -1
- package/card-v2-title/types.d.js +0 -1
- package/checkbox/global/index.d.js +0 -1
- package/checkbox/index.d.js +0 -1
- package/checkbox/types.d.js +0 -1
- package/chip/colors.d.js +0 -1
- package/chip/global/index.d.js +0 -1
- package/chip/index.d.js +0 -2
- package/chip/types.d.js +0 -1
- package/chip/utils.d.js +0 -1
- package/code-tag/global/index.d.js +0 -1
- package/code-tag/index.d.js +0 -1
- package/code-tag/types.d.js +0 -1
- package/color-menu/global/index.d.js +0 -1
- package/color-menu/index.d.js +0 -1
- package/color-menu/types.d.js +0 -1
- package/color-menu/utils.d.js +0 -1
- package/color-menu-option/global/index.d.js +0 -1
- package/color-menu-option/index.d.js +0 -2
- package/color-menu-option/types.d.js +0 -1
- package/color-menu-option/utils.d.js +0 -1
- package/color-swatch/global/index.d.js +0 -40
- package/color-swatch/index.d.js +0 -6
- package/color-swatch/types.d.js +0 -1
- package/color-swatch/utils.d.js +0 -1
- package/date-picker/global/index.d.js +0 -1
- package/date-picker/index.d.js +0 -2
- package/date-picker/types.d.js +0 -1
- package/date-picker/utils.d.js +0 -1
- package/dialog/global/index.d.js +0 -1
- package/dialog/index.d.js +0 -3
- package/dialog/types.d.js +0 -1
- package/emoji/global/index.d.js +0 -1
- package/emoji/index.d.js +0 -1
- package/emoji/types.d.js +0 -1
- package/emoji/utils.d.js +0 -1
- package/emoji-picker/global/index.d.js +0 -1
- package/emoji-picker/index.d.js +0 -7
- package/emoji-picker/types.d.js +0 -1
- package/field/global/index.d.js +0 -1
- package/field/index.d.js +0 -1
- package/field/types.d.js +0 -1
- package/field-v2/global/index.d.js +0 -1
- package/field-v2/index.d.js +0 -1
- package/field-v2/types.d.js +0 -1
- package/file-drop/global/index.d.js +0 -1
- package/file-drop/index.d.js +0 -2
- package/file-drop/types.d.js +0 -1
- package/file-drop/utils.d.js +0 -1
- package/file-picker/global/index.d.js +0 -1
- package/file-picker/index.d.js +0 -1
- package/file-picker/types.d.js +0 -1
- package/file-picker/utils.d.js +0 -1
- package/file-status/global/index.d.js +0 -1
- package/file-status/index.d.js +0 -3
- package/file-status/types.d.js +0 -1
- package/file-status/utils.d.js +0 -1
- package/flag/global/index.d.js +0 -1
- package/flag/index.d.js +0 -1
- package/flag/types.d.js +0 -1
- package/flag/utils.d.js +0 -1
- package/floating-panel/global/index.d.js +0 -1
- package/floating-panel/index.d.js +0 -4
- package/floating-panel/types.d.js +0 -1
- package/floating-panel-button/index.d.js +0 -1
- package/floating-panel-button/types.d.js +0 -1
- package/floating-panel-icon-button/index.d.js +0 -2
- package/floating-panel-icon-button/types.d.js +0 -1
- package/grid/global/index.d.js +0 -1
- package/grid/index.d.js +0 -1
- package/grid/types.d.js +0 -1
- package/grid-item/global/index.d.js +0 -1
- package/grid-item/index.d.js +0 -1
- package/grid-item/types.d.js +0 -1
- package/help-tooltip/global/index.d.js +0 -1
- package/help-tooltip/index.d.js +0 -2
- package/help-tooltip/types.d.js +0 -1
- package/icon/generated-icon-type.d.js +0 -1
- package/icon/global/index.d.js +0 -1
- package/icon/index.d.js +0 -1
- package/icon/types.d.js +0 -1
- package/inline-alert/global/index.d.js +0 -1
- package/inline-alert/index.d.js +0 -5
- package/inline-alert/types.d.js +0 -1
- package/inline-alert/utils.d.js +0 -1
- package/input/global/index.d.js +0 -1
- package/input/index.d.js +0 -1
- package/input/types.d.js +0 -1
- package/input/utils.d.js +0 -1
- package/link/global/index.d.js +0 -1
- package/link/index.d.js +0 -2
- package/link/types.d.js +0 -1
- package/link/utils.d.js +0 -1
- package/list/global/index.d.js +0 -1
- package/list/index.d.js +0 -1
- package/list/types.d.js +0 -1
- package/list-item/global/index.d.js +0 -1
- package/list-item/index.d.js +0 -1
- package/list-item/types.d.js +0 -1
- package/pagination/global/index.d.js +0 -1
- package/pagination/index.d.js +0 -1
- package/pagination/types.d.js +0 -1
- package/persistent-overlay/global/index.d.js +0 -1
- package/persistent-overlay/index.d.js +0 -1
- package/persistent-overlay/types.d.js +0 -1
- package/pop/global/index.d.js +0 -1
- package/pop/index.d.js +0 -1
- package/pop/types.d.js +0 -1
- package/pop/utils.d.js +0 -1
- package/popover/global/index.d.js +0 -1
- package/popover/index.d.js +0 -1
- package/popover/types.d.js +0 -1
- package/popover/utils.d.js +0 -1
- package/progress/global/index.d.js +0 -1
- package/progress/index.d.js +0 -1
- package/progress/types.d.js +0 -1
- package/progress-stepper/global/index.d.js +0 -1
- package/progress-stepper/index.d.js +0 -1
- package/progress-stepper/types.d.js +0 -1
- package/progress-stepper-item/global/index.d.js +0 -1
- package/progress-stepper-item/index.d.js +0 -2
- package/progress-stepper-item/types.d.js +0 -1
- package/progress-stepper-item/utils.d.js +0 -1
- package/progress-stepper-item-v2/global/index.d.js +0 -1
- package/progress-stepper-item-v2/index.d.js +0 -2
- package/progress-stepper-item-v2/types.d.js +0 -1
- package/progress-stepper-item-v2/utils.d.js +0 -1
- package/progress-stepper-v2/compact-format.d.js +0 -1
- package/progress-stepper-v2/compact.d.js +0 -1
- package/progress-stepper-v2/global/index.d.js +0 -1
- package/progress-stepper-v2/index.d.js +0 -84
- package/progress-stepper-v2/model.d.js +0 -1
- package/progress-stepper-v2/orientation.d.js +0 -1
- package/progress-stepper-v2/separators.d.js +0 -1
- package/progress-stepper-v2/step-chip.d.js +0 -1
- package/progress-stepper-v2/types.d.js +0 -1
- package/radio/global/index.d.js +0 -1
- package/radio/index.d.js +0 -1
- package/radio/types.d.js +0 -1
- package/radio-option/global/index.d.js +0 -1
- package/radio-option/index.d.js +0 -1
- package/radio-option/types.d.js +0 -1
- package/rich-text/global/index.d.js +0 -1
- package/rich-text/index.d.js +0 -4
- package/rich-text/types.d.js +0 -1
- package/rich-text/utils.d.js +0 -1
- package/rich-textarea/global/index.d.js +0 -1
- package/rich-textarea/index.d.js +0 -1
- package/rich-textarea/types.d.js +0 -1
- package/rich-textarea/utils.d.js +0 -1
- package/rich-textarea-chip/index.d.js +0 -2
- package/rich-textarea-chip/types.d.js +0 -1
- package/segment-collapse/global/index.d.js +0 -1
- package/segment-collapse/index.d.js +0 -1
- package/segment-collapse/types.d.js +0 -1
- package/segmented-control/global/index.d.js +0 -1
- package/segmented-control/index.d.js +0 -1
- package/segmented-control/types.d.js +0 -1
- package/segmented-control-option/global/index.d.js +0 -1
- package/segmented-control-option/index.d.js +0 -1
- package/segmented-control-option/types.d.js +0 -1
- package/segmented-icon-control/global/index.d.js +0 -1
- package/segmented-icon-control/index.d.js +0 -1
- package/segmented-icon-control/types.d.js +0 -1
- package/segmented-icon-control-option/global/index.d.js +0 -1
- package/segmented-icon-control-option/index.d.js +0 -1
- package/segmented-icon-control-option/types.d.js +0 -1
- package/select-button/global/index.d.js +0 -1
- package/select-button/index.d.js +0 -2
- package/select-button/types.d.js +0 -1
- package/select-menu/global/index.d.js +0 -1
- package/select-menu/index.d.js +0 -3
- package/select-menu/types.d.js +0 -1
- package/select-menu-option/global/index.d.js +0 -1
- package/select-menu-option/index.d.js +0 -2
- package/select-menu-option/types.d.js +0 -1
- package/select-menu-option/utils.d.js +0 -1
- package/sheet/global/index.d.js +0 -1
- package/sheet/index.d.js +0 -1
- package/sheet/types.d.js +0 -1
- package/sheet-title/global/index.d.js +0 -1
- package/sheet-title/index.d.js +0 -2
- package/sheet-title/types.d.js +0 -1
- package/skeleton/global/index.d.js +0 -1
- package/skeleton/index.d.js +0 -1
- package/skeleton/types.d.js +0 -1
- package/skeleton-item/global/index.d.js +0 -1
- package/skeleton-item/index.d.js +0 -1
- package/skeleton-item/types.d.js +0 -1
- package/spinner/global/index.d.js +0 -1
- package/spinner/index.d.js +0 -1
- package/spinner/types.d.js +0 -1
- package/stop-events/index.d.js +0 -1
- package/table/global/index.d.js +0 -1
- package/table/index.d.js +0 -1
- package/table/types.d.js +0 -1
- package/table-body/global/index.d.js +0 -1
- package/table-body/index.d.js +0 -1
- package/table-body/types.d.js +0 -1
- package/table-cell/global/index.d.js +0 -1
- package/table-cell/index.d.js +0 -1
- package/table-cell/types.d.js +0 -1
- package/table-cell/utils.d.js +0 -1
- package/table-head/global/index.d.js +0 -1
- package/table-head/index.d.js +0 -1
- package/table-head/types.d.js +0 -1
- package/table-head-cell/global/index.d.js +0 -1
- package/table-head-cell/index.d.js +0 -1
- package/table-head-cell/types.d.js +0 -1
- package/table-row/global/index.d.js +0 -1
- package/table-row/index.d.js +0 -1
- package/table-row/types.d.js +0 -1
- package/tabs/global/index.d.js +0 -1
- package/tabs/index.d.js +0 -1
- package/tabs/types.d.js +0 -1
- package/tabs-icon-option/global/index.d.js +0 -1
- package/tabs-icon-option/index.d.js +0 -1
- package/tabs-icon-option/types.d.js +0 -1
- package/tabs-option/global/index.d.js +0 -1
- package/tabs-option/index.d.js +0 -1
- package/tabs-option/types.d.js +0 -1
- package/tag/colors.d.js +0 -1
- package/tag/global/index.d.js +0 -1
- package/tag/index.d.js +0 -2
- package/tag/types.d.js +0 -1
- package/tag/utils.d.js +0 -1
- package/text/global/index.d.js +0 -1
- package/text/index.d.js +0 -1
- package/text/types.d.js +0 -1
- package/text/utils.d.js +0 -1
- package/textarea/global/index.d.js +0 -1
- package/textarea/index.d.js +0 -1
- package/textarea/types.d.js +0 -1
- package/time-picker/global/index.d.js +0 -1
- package/time-picker/index.d.js +0 -2
- package/time-picker/types.d.js +0 -1
- package/time-picker/utils.d.js +0 -1
- package/title/global/index.d.js +0 -1
- package/title/index.d.js +0 -1
- package/title/types.d.js +0 -1
- package/title/utils.d.js +0 -1
- package/toast/global/index.d.js +0 -1
- package/toast/index.d.js +0 -2
- package/toast/types.d.js +0 -1
- package/toast/utils.d.js +0 -1
- package/toast-manager/global/index.d.js +0 -1
- package/toast-manager/index.d.js +0 -2
- package/toast-manager/types.d.js +0 -1
- package/toast-manager/utils.d.js +0 -1
- package/toggle/global/index.d.js +0 -1
- package/toggle/index.d.js +0 -1
- package/toggle/types.d.js +0 -1
- package/tooltip/global/index.d.js +0 -1
- package/tooltip/index.d.js +0 -2
- package/tooltip/tooltip-state.d.js +0 -1
- package/tooltip/types.d.js +0 -1
- package/tooltip/utils.d.js +0 -1
- package/utils/adapters.d.js +0 -1
- package/utils/component-names.d.js +0 -1
- package/utils/context.d.js +0 -1
- package/utils/control-keyboard-navigation.d.js +0 -1
- package/utils/countries.d.js +0 -1
- package/utils/csv.d.js +0 -1
- package/utils/debounce.d.js +0 -1
- package/utils/dom.d.js +0 -1
- package/utils/element.d.js +0 -1
- package/utils/event-target.d.js +0 -1
- package/utils/form.d.js +0 -1
- package/utils/get-react-event-handler.d.js +0 -1
- package/utils/global-components-constants.d.js +0 -1
- package/utils/global-components-manager.d.js +0 -1
- package/utils/index.d.js +0 -75
- package/utils/markdown.d.js +0 -1
- package/utils/placement.d.js +0 -1
- package/utils/rect.d.js +0 -1
- package/utils/scroll-lock.d.js +0 -1
- package/utils/size.d.js +0 -1
- package/utils/slot.d.js +0 -1
- package/utils/throttle.d.js +0 -1
- package/utils/uid.d.js +0 -1
- /package/{accordion-item/global/index.d.js → utils/shared/cdn-loader.d.js} +0 -0
- /package/{accordion-item/types.d.js → utils/shared/deferred-promise.d.js} +0 -0
- /package/{accordion-item/utils.d.js → utils/shared/global-elements-manager.d.js} +0 -0
- /package/{accordion/global/index.d.js → utils/shared/global-elements-store.d.js} +0 -0
- /package/{accordion/index.d.js → utils/shared/nectary-element-base.d.js} +0 -0
package/field/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-field");
|
package/field/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../index.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import "../tooltip/index.js";
|
|
2
|
+
import { getAttribute, setClass, isAttrEqual, updateBooleanAttribute, isAttrTrue, updateAttribute, getBooleanAttribute } from "../utils/dom.js";
|
|
3
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
4
|
+
import { getFirstSlotElement } from "../utils/slot.js";
|
|
5
5
|
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:column;width:100%}#bottom,#top{display:flex;align-items:baseline}#top{height:24px;margin-bottom:2px}#top.empty{display:none}#additional,#invalid,#label,#optional{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#label{font:var(--sinch-comp-field-font-label);color:var(--sinch-comp-field-color-default-label-initial)}#optional{flex:1;font:var(--sinch-comp-field-font-optional);color:var(--sinch-comp-field-color-default-optional-initial);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#optional:empty{display:none}#additional{flex:1;text-align:right;font:var(--sinch-comp-field-font-additional);color:var(--sinch-comp-field-color-default-additional-initial);line-height:20px;margin-top:2px}#additional:empty{display:none}#invalid{font:var(--sinch-comp-field-font-invalid);color:var(--sinch-comp-field-color-invalid-text-initial);line-height:20px;margin-top:2px}#invalid:empty{display:none}#tooltip{align-self:center;margin:0 8px;display:flex}#tooltip.empty{display:none}:host([disabled]) #label{color:var(--sinch-comp-field-color-disabled-label-initial)}:host([disabled]) #additional{color:var(--sinch-comp-field-color-disabled-additional-initial)}:host([disabled]) #optional{color:var(--sinch-comp-field-color-disabled-optional-initial)}</style><div id="wrapper"><div id="top"><label id="label" for="input"></label><div id="tooltip"><slot name="tooltip"></slot></div><sinch-tooltip id="optional-tooltip" allow-scroll><span id="optional"></span></sinch-tooltip></div><slot name="input"></slot><div id="bottom"><div id="invalid"></div><div id="additional"></div></div></div>';
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
package/field-v2/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-field-v2");
|
package/field-v2/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../index.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "../rich-text/index.js";
|
|
2
|
+
import { getAttribute, setClass, isAttrEqual, updateBooleanAttribute, isAttrTrue, updateAttribute, getBooleanAttribute } from "../utils/dom.js";
|
|
3
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
4
|
+
import { getFirstSlotElement } from "../utils/slot.js";
|
|
5
|
+
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
6
6
|
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:column;width:100%}#top{display:flex;align-items:baseline;height:24px;margin-bottom:2px}#bottom{display:flex;flex-direction:column;align-items:baseline;width:100%}#top.empty{display:none}#label,#optional{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#label{font:var(--sinch-comp-field-font-label);color:var(--sinch-comp-field-color-default-label-initial)}#optional{flex:1;font:var(--sinch-comp-field-font-optional);color:var(--sinch-comp-field-color-default-optional-initial);text-align:right}#additional{flex:1;text-align:left;line-height:20px;margin-top:2px;white-space:normal;overflow:visible;--sinch-comp-rich-text-font:var(--sinch-comp-field-font-additional);--sinch-global-color-text:var(--sinch-comp-field-color-default-additional-initial);--sinch-comp-link-color-default-text-initial:var(--sinch-comp-field-color-default-additional-initial);--sinch-comp-link-color-default-text-hover:var(--sinch-comp-field-color-default-additional-initial)}#additional:is([text=""],:not([text])){display:none}#invalid{font:var(--sinch-comp-field-font-invalid);color:var(--sinch-comp-field-color-invalid-text-initial);line-height:20px;margin-top:2px;white-space:normal;overflow:visible;--sinch-comp-rich-text-font:var(--sinch-comp-field-font-invalid);--sinch-global-color-text:var(--sinch-comp-field-color-invalid-text-initial);--sinch-comp-link-color-default-text-initial:var(--sinch-comp-field-color-invalid-text-initial);--sinch-comp-link-color-default-text-hover:var(--sinch-comp-field-color-invalid-text-initial)}#invalid:is([text=""],:not([text])){display:none}#tooltip{align-self:center;margin:0 8px;display:flex}#tooltip.empty{display:none}:host([disabled]) #label{color:var(--sinch-comp-field-color-disabled-label-initial)}:host([disabled]) #additional{--sinch-global-color-text:var(--sinch-comp-field-color-disabled-additional-initial);--sinch-comp-link-color-default-text-initial:var(--sinch-comp-field-color-disabled-additional-initial);--sinch-comp-link-color-default-text-hover:var(--sinch-comp-field-color-disabled-additional-initial)}:host([disabled]) #optional{color:var(--sinch-comp-field-color-disabled-optional-initial)}</style><div id="wrapper"><div id="top"><label id="label" for="input"></label><div id="tooltip"><slot name="tooltip"></slot></div><span id="optional"></span></div><slot name="input"></slot><div id="bottom"><sinch-rich-text id="additional"></sinch-rich-text><sinch-rich-text id="invalid"></sinch-rich-text></div></div>';
|
|
7
7
|
const template = document.createElement("template");
|
|
8
8
|
template.innerHTML = templateHTML;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-file-drop");
|
package/file-drop/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../index.
|
|
2
|
-
import "../index.
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "../text/index.js";
|
|
2
|
+
import "../file-picker/index.js";
|
|
3
|
+
import { isAttrEqual, updateAttribute, updateBooleanAttribute, isAttrTrue, getBooleanAttribute, getAttribute, getIntegerAttribute, setClass } from "../utils/dom.js";
|
|
4
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
5
|
+
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
6
|
+
import { areItemsAccepted, areFilesAccepted, doFilesSatisfySize } from "./utils.js";
|
|
7
7
|
const templateHTML = '<style>:host{display:block}#wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-content:center;gap:8px;min-height:148px;min-width:148px;box-sizing:border-box;padding:16px;border-radius:var(--sinch-comp-file-drop-shape-radius);background-color:var(--sinch-comp-file-drop-color-default-background-initial)}#wrapper::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:1px dashed var(--sinch-comp-file-drop-color-default-border-initial);border-radius:var(--sinch-comp-file-drop-shape-radius);pointer-events:none}#placeholder{align-self:center;text-align:center;--sinch-global-color-text:var(--sinch-comp-file-drop-color-default-placeholder-initial);--sinch-comp-text-font:var(--sinch-comp-file-drop-font-placeholder)}:host([invalid]) #wrapper{background-color:var(--sinch-comp-file-drop-color-invalid-background-initial)}:host([invalid]) #wrapper::after{border-color:var(--sinch-comp-file-drop-color-invalid-border-initial);border-width:1px}#wrapper.drop::after{pointer-events:all}#wrapper.drop.valid{background-color:var(--sinch-comp-file-drop-color-default-background-active)}#wrapper.drop.valid::after{border-color:var(--sinch-comp-file-drop-color-default-border-active);border-width:2px}#wrapper.drop.valid>#placeholder{--sinch-global-color-text:var(--sinch-comp-file-drop-color-default-placeholder-active)}#wrapper.drop.invalid{background-color:var(--sinch-comp-file-drop-color-invalid-background-active)}#wrapper.drop.invalid::after{border-color:var(--sinch-comp-file-drop-color-invalid-border-active);border-width:2px}#wrapper.drop.invalid>#placeholder{--sinch-global-color-text:var(--sinch-comp-file-drop-color-invalid-placeholder-active)}:host([disabled])>#wrapper>#placeholder{--sinch-global-color-text:var(--sinch-comp-file-drop-color-disabled-placeholder-initial)}:host([disabled])>#wrapper{background-color:var(--sinch-comp-file-drop-color-disabled-background-initial)}:host([disabled])>#wrapper::after{border-color:var(--sinch-comp-file-drop-color-disabled-border-initial);border-width:1px}</style><div id="wrapper"><sinch-text id="placeholder" type="m" aria-hidden="true"></sinch-text><sinch-file-picker id="file-picker"><slot></slot></sinch-file-picker></div>';
|
|
8
8
|
const template = document.createElement("template");
|
|
9
9
|
template.innerHTML = templateHTML;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-file-picker");
|
package/file-picker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { updateAttribute, isAttrEqual, updateBooleanAttribute, isAttrTrue, getBooleanAttribute, getAttribute, getIntegerAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
|
+
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
4
|
+
import { doFilesSatisfySize } from "./utils.js";
|
|
5
5
|
const templateHTML = "<style>:host{display:inline-block}::slotted(*){display:block}</style><slot></slot>";
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-file-status");
|
package/file-status/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../index.
|
|
2
|
-
import "../index.
|
|
3
|
-
import "../index.
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import "../spinner/index.js";
|
|
2
|
+
import "../icon/index.js";
|
|
3
|
+
import "../text/index.js";
|
|
4
|
+
import { getLiteralAttribute, updateLiteralAttribute, getAttribute, updateAttribute, updateBooleanAttribute } from "../utils/dom.js";
|
|
5
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
6
|
+
import { typeValues } from "./utils.js";
|
|
7
7
|
const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:12px 16px;box-sizing:border-box;min-height:48px;min-width:148px;border-radius:var(--sinch-comp-file-status-shape-radius)}:host([type=error]) #wrapper{background-color:var(--sinch-comp-file-status-color-error-background)}:host([type=success]) #wrapper{background-color:var(--sinch-comp-file-status-color-success-background)}:host([type=pending]) #wrapper{background-color:var(--sinch-comp-file-status-color-pending-background)}:host([type=progress]) #wrapper{background-color:var(--sinch-comp-file-status-color-progress-background)}:host([type=loading]) #wrapper{background-color:var(--sinch-comp-file-status-color-loading-background)}#content-wrapper{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0;min-height:24px;margin-left:16px}:host([type=error]) #filename{--sinch-global-color-text:var(--sinch-comp-file-status-color-error-text)}:host([type=success]) #filename{--sinch-global-color-text:var(--sinch-comp-file-status-color-success-text)}:host([type=pending]) #filename{--sinch-global-color-text:var(--sinch-comp-file-status-color-pending-text)}:host([type=progress]) #filename{--sinch-global-color-text:var(--sinch-comp-file-status-color-progress-text)}:host([type=loading]) #filename{--sinch-global-color-text:var(--sinch-comp-file-status-color-loading-text)}#action{display:flex;gap:4px;height:32px;margin-top:-4px;margin-bottom:-4px}#icon-error,#icon-loading,#icon-pending,#icon-progress,#icon-success{display:none}#icon-pending{--sinch-global-color-icon:var(--sinch-comp-file-status-color-pending-icon)}#icon-success{--sinch-global-color-icon:var(--sinch-comp-file-status-color-success-icon)}#icon-progress{--sinch-global-color-icon:var(--sinch-comp-file-status-color-progress-icon)}#icon-error{--sinch-global-color-icon:var(--sinch-comp-file-status-color-error-icon)}#icon-loading{--sinch-global-color-icon:var(--sinch-comp-file-status-color-loading-icon)}:host([type=error]) #icon-error,:host([type=loading]) #icon-loading,:host([type=pending]) #icon-pending,:host([type=progress]) #icon-progress,:host([type=success]) #icon-success{display:block}</style><div id="wrapper"><sinch-spinner id="icon-loading" size="m"></sinch-spinner><sinch-icon icons-version="2" name="fa-clipboard-question" id="icon-pending"></sinch-icon><sinch-icon icons-version="2" name="circle-check" id="icon-success"></sinch-icon><sinch-icon icons-version="2" name="fa-file-lines" id="icon-progress"></sinch-icon><sinch-icon icons-version="2" name="octagon-exclamation" id="icon-error"></sinch-icon><div id="content-wrapper"><sinch-text id="filename" type="m" ellipsis></sinch-text><slot name="content"></slot></div><div id="action"><slot name="action"></slot></div></div>';
|
|
8
8
|
const template = document.createElement("template");
|
|
9
9
|
template.innerHTML = templateHTML;
|
package/flag/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-flag");
|
package/flag/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { updateAttribute, getAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
|
+
import { getFlagUrl } from "./utils.js";
|
|
4
4
|
const templateHTML = '<style>:host{display:contents}#image{pointer-events:none;width:var(--sinch-global-size-icon,48px);height:var(--sinch-global-size-icon,48px);object-fit:contain}</style><img id="image" src="" alt="" loading="lazy">';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
package/flag/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-floating-panel");
|
|
@@ -13,9 +13,9 @@ export declare class FloatingPanel extends NectaryElement {
|
|
|
13
13
|
disconnectedCallback(): void;
|
|
14
14
|
static get observedAttributes(): string[];
|
|
15
15
|
attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
|
|
16
|
-
get panelRect():
|
|
17
|
-
get closeButtonRect():
|
|
18
|
-
get ctaButtonRect():
|
|
16
|
+
get panelRect(): import("../types").TRect;
|
|
17
|
+
get closeButtonRect(): import("../types").TRect;
|
|
18
|
+
get ctaButtonRect(): import("../types").TRect;
|
|
19
19
|
set open(value: boolean);
|
|
20
20
|
get open(): boolean;
|
|
21
21
|
set noOfItemsSelected(value: string | null);
|
package/floating-panel/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "../index.
|
|
9
|
-
import "../index.
|
|
10
|
-
import "../
|
|
1
|
+
import { isSinchActionMenuOption } from "../action-menu-option/utils.js";
|
|
2
|
+
import { isAttrEqual, getBooleanAttribute, getAttribute, shouldReduceMotion, updateBooleanAttribute, updateAttribute } from "../utils/dom.js";
|
|
3
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
4
|
+
import { getRect } from "../utils/rect.js";
|
|
5
|
+
import { throttleAnimationFrame } from "../utils/throttle.js";
|
|
6
|
+
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
7
|
+
import "../action-menu/index.js";
|
|
8
|
+
import "../action-menu-option/index.js";
|
|
9
|
+
import "../floating-panel-icon-button/index.js";
|
|
10
|
+
import "../floating-panel-button/index.js";
|
|
11
|
+
import "../icon/index.js";
|
|
12
|
+
import "../popover/index.js";
|
|
11
13
|
const templateHTML = '<style>:host{display:block;max-width:100%;min-width:0}@keyframes panel-slide-in{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes panel-slide-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}dialog{display:flex;align-items:center;box-sizing:border-box;height:40px;padding:0;overflow:visible;width:fit-content;max-width:100%;min-width:0;background-color:var(--sinch-comp-floating-panel-color-background,var(--sinch-sys-color-primary-default));border:none;border-radius:var(--sinch-comp-floating-panel-shape-radius);box-shadow:var(--sinch-comp-floating-panel-shadow);color:var(--sinch-comp-floating-panel-color-text,var(--sinch-sys-color-primary-foreground))}dialog.closing,dialog.opening{overflow:hidden}dialog:not([open]){display:none}dialog.opening{animation:panel-slide-in .2s ease-out forwards}dialog.closing{animation:panel-slide-out .2s ease-in forwards}#items-selected{display:flex;align-items:baseline;gap:10px;padding:0 8px;white-space:nowrap}#cta{display:flex}#no-of-items-selected{font:var(--sinch-comp-floating-panel-font-bold)}#items-selected-label{font:var(--sinch-comp-floating-panel-font-regular)}#left-actions{display:flex;align-items:center}#divider{width:1px;align-self:stretch;background-color:var(--sinch-comp-floating-panel-color-divider)}#actions-end{display:flex;align-items:center;flex-shrink:1;min-width:0}#right-actions{display:flex;align-items:center}#right-actions-overflow{display:none;align-items:center;flex-shrink:0}:host([data-density=compact]) #right-actions,:host([data-density=extra-compact]) #right-actions{display:none}:host([data-density=compact]) #right-actions-overflow,:host([data-density=extra-compact]) #right-actions-overflow{display:flex}#actions-popover{display:block;--sinch-comp-pop-z-index:2147483000}#overflow-trigger{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}#overflow-menu-surface{box-sizing:border-box;display:block;min-width:var(--sinch-comp-floating-panel-overflow-menu-min-width,220px);width:max-content;max-width:min(var(--sinch-comp-floating-panel-overflow-menu-max-width,288px),calc(100vw - 24px))}#overflow-menu-surface sinch-action-menu{display:block;width:100%}#right-actions sinch-floating-panel-icon-button:last-child:active,#right-actions sinch-floating-panel-icon-button:last-child:focus,#right-actions sinch-floating-panel-icon-button:last-child:hover{--sinch-button-shape-radius-top-right:var(--sinch-comp-floating-panel-shape-radius);--sinch-button-shape-radius-bottom-right:var(--sinch-comp-floating-panel-shape-radius)}@media (prefers-reduced-motion){dialog.closing,dialog.opening{animation:none}}</style><dialog id="wrapper" role="toolbar" aria-label="Bulk actions"><div id="left-actions"><sinch-floating-panel-icon-button id="close-btn" icon="fa-xmark" aria-label="Close selection" class="edge-start"></sinch-floating-panel-icon-button></div><div id="divider" role="separator" aria-orientation="vertical"></div><div id="items-selected" aria-live="polite" aria-atomic="true"><span id="no-of-items-selected"></span> <span id="items-selected-label"></span></div><div id="cta"><sinch-floating-panel-button id="cta-btn" text=""></sinch-floating-panel-button></div><div id="actions-end"><div id="right-actions" role="group" aria-label="Actions"></div><div id="right-actions-overflow"><sinch-popover id="actions-popover" orientation="bottom-right" allow-scroll aria-label="More actions"><sinch-floating-panel-icon-button slot="target" id="overflow-trigger" icon="fa-ellipsis" aria-label="More actions" class="edge-end"></sinch-floating-panel-icon-button><div id="overflow-menu-surface" slot="content"><sinch-action-menu id="overflow-menu" aria-label="Actions" rows="5"></sinch-action-menu></div></sinch-popover></div></div></dialog>';
|
|
12
14
|
const template = document.createElement("template");
|
|
13
15
|
template.innerHTML = templateHTML;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../index.
|
|
1
|
+
import { isAttrEqual, updateAttribute, getAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
|
+
import "../button/index.js";
|
|
4
4
|
const templateHTML = '<style>:host{display:flex;flex-shrink:0;height:100%;min-height:40px;color:var(--sinch-comp-floating-panel-color-text,var(--sinch-sys-color-primary-foreground))}sinch-button{height:100%;padding:0;white-space:nowrap;--sinch-button-shape-radius-base:0;--sinch-comp-button-color-subtle-secondary-default-border-initial:var(--sinch-sys-color-basic-transparent);--sinch-comp-button-color-subtle-secondary-disabled-border-initial:var(--sinch-sys-color-basic-transparent);--sinch-comp-button-spacing-padding-m:16px;--sinch-comp-button-color-subtle-secondary-default-text-initial:var(--sinch-comp-floating-panel-color-button-text-initial, var(--sinch-sys-color-primary-foreground));--sinch-comp-button-color-subtle-secondary-default-background-initial:var(--sinch-comp-floating-panel-color-button-background-initial, transparent);--sinch-comp-button-color-subtle-secondary-default-background-hover:var(--sinch-comp-floating-panel-color-button-background-hover);--sinch-comp-button-color-subtle-secondary-default-background-active:var(--sinch-comp-floating-panel-color-button-background-active);--sinch-comp-button-shadow-subtle-hover:none;--sinch-comp-button-shadow-subtle-active:none}sinch-button:focus-visible{--sinch-comp-button-color-subtle-secondary-default-background-initial:var(--sinch-comp-floating-panel-color-button-background-hover);--sinch-comp-button-shadow-subtle-focus:none}</style><sinch-button id="button" type="subtle-secondary"></sinch-button>';
|
|
5
5
|
const template = document.createElement("template");
|
|
6
6
|
template.innerHTML = templateHTML;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../index.
|
|
4
|
-
import "../index.
|
|
1
|
+
import { isAttrEqual, updateAttribute, getAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
|
+
import "../button/index.js";
|
|
4
|
+
import "../icon/index.js";
|
|
5
5
|
const templateHTML = '<style>:host{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;box-sizing:border-box;cursor:pointer}sinch-button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;--sinch-button-shape-radius-base:0;--sinch-comp-button-color-subtle-secondary-default-border-initial:var(--sinch-sys-color-basic-transparent);--sinch-comp-button-color-subtle-secondary-disabled-border-initial:var(--sinch-sys-color-basic-transparent);--sinch-comp-button-color-subtle-secondary-default-background-initial:transparent;--sinch-comp-button-color-subtle-secondary-default-icon-initial:var(--sinch-comp-floating-panel-color-text, var(--sinch-sys-color-primary-foreground));--sinch-comp-button-color-subtle-secondary-default-text-initial:var(--sinch-comp-floating-panel-color-text, var(--sinch-sys-color-primary-foreground));--sinch-comp-button-color-subtle-secondary-default-background-hover:var(--sinch-comp-floating-panel-color-button-background-hover);--sinch-comp-button-color-subtle-secondary-default-background-active:var(--sinch-comp-floating-panel-color-button-background-active);--sinch-comp-button-shadow-subtle-hover:none;--sinch-comp-button-shadow-subtle-active:none}sinch-button:focus-visible{--sinch-comp-button-color-subtle-secondary-default-background-initial:var(--sinch-comp-floating-panel-color-button-background-hover);--sinch-comp-button-shadow-subtle-focus:none}:host(.edge-start:active) sinch-button,:host(.edge-start:focus) sinch-button,:host(.edge-start:hover) sinch-button{--sinch-button-shape-radius-top-left:var(--sinch-comp-floating-panel-shape-radius);--sinch-button-shape-radius-bottom-left:var(--sinch-comp-floating-panel-shape-radius)}:host(.edge-end:active) sinch-button,:host(.edge-end:focus) sinch-button,:host(.edge-end:hover) sinch-button{--sinch-button-shape-radius-top-right:var(--sinch-comp-floating-panel-shape-radius);--sinch-button-shape-radius-bottom-right:var(--sinch-comp-floating-panel-shape-radius)}sinch-icon{--sinch-global-color-icon:var(--sinch-comp-floating-panel-color-text, var(--sinch-sys-color-primary-foreground));--sinch-global-size-icon:var(--sinch-comp-floating-panel-size-button-icon)}</style><sinch-button id="button" type="subtle-secondary"><sinch-icon id="icon" icons-version="2" slot="icon"></sinch-icon></sinch-button>';
|
|
6
6
|
const template = document.createElement("template");
|
|
7
7
|
template.innerHTML = templateHTML;
|
package/grid/global/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-grid");
|
package/grid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
2
2
|
const templateHTML = '<style>:host{display:grid;grid-template-columns:repeat(var(--sinch-comp-grid-columns-xl),minmax(0,1fr));grid-column-gap:var(--sinch-comp-grid-gutter-xl);grid-row-gap:var(--sinch-comp-grid-gutter-xl);padding:var(--sinch-comp-grid-margin-xl)}@media only screen and (max-width:1439px){:host{grid-template-columns:repeat(var(--sinch-comp-grid-columns-l),minmax(0,1fr));grid-column-gap:var(--sinch-comp-grid-gutter-l);grid-row-gap:var(--sinch-comp-grid-gutter-l);padding:var(--sinch-comp-grid-margin-l)}}@media only screen and (max-width:1023px){:host{grid-template-columns:repeat(var(--sinch-comp-grid-columns-m),minmax(0,1fr));grid-column-gap:var(--sinch-comp-grid-gutter-m);grid-row-gap:var(--sinch-comp-grid-gutter-m);padding:var(--sinch-comp-grid-margin-m)}}@media only screen and (max-width:767px){:host{grid-template-columns:repeat(var(--sinch-comp-grid-columns-s),minmax(0,1fr));grid-column-gap:var(--sinch-comp-grid-gutter-s);grid-row-gap:var(--sinch-comp-grid-gutter-s);padding:var(--sinch-comp-grid-margin-s)}}</style><slot name="item"></slot>';
|
|
3
3
|
const template = document.createElement("template");
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-grid-item");
|
package/grid-item/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getIntegerAttribute, updateIntegerAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
3
|
const templateHTML = '<style>:host{display:block;grid-column:span 12}:host([xl="2"]){grid-column:span 2}:host([xl="3"]){grid-column:span 3}:host([xl="4"]){grid-column:span 4}:host([xl="5"]){grid-column:span 5}:host([xl="6"]){grid-column:span 6}:host([xl="7"]){grid-column:span 7}:host([xl="8"]){grid-column:span 8}:host([xl="9"]){grid-column:span 9}:host([xl="10"]){grid-column:span 10}:host([xl="11"]){grid-column:span 11}:host([xl="12"]){grid-column:span 12}@media only screen and (max-width:1439px){:host{grid-column:span 12}:host([l="2"]){grid-column:span 2}:host([l="3"]){grid-column:span 3}:host([l="4"]){grid-column:span 4}:host([l="5"]){grid-column:span 5}:host([l="6"]){grid-column:span 6}:host([l="7"]){grid-column:span 7}:host([l="8"]){grid-column:span 8}:host([l="9"]){grid-column:span 9}:host([l="10"]){grid-column:span 10}:host([l="11"]){grid-column:span 11}:host([l="12"]){grid-column:span 12}}@media only screen and (max-width:1023px){:host{grid-column:span 8}:host([m="2"]){grid-column:span 2}:host([m="3"]){grid-column:span 3}:host([m="4"]){grid-column:span 4}:host([m="5"]){grid-column:span 5}:host([m="6"]){grid-column:span 6}:host([m="7"]){grid-column:span 7}:host([m="8"]){grid-column:span 8}}@media only screen and (max-width:767px){:host{grid-column:span 4}:host([s="2"]){grid-column:span 2}:host([s="3"]){grid-column:span 3}:host([s="4"]){grid-column:span 4}}</style><slot name="content"></slot>';
|
|
4
4
|
const template = document.createElement("template");
|
|
5
5
|
template.innerHTML = templateHTML;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineCustomElement } from "../../utils/element.js";
|
|
2
2
|
defineCustomElement("sinch-help-tooltip");
|
package/help-tooltip/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../index.
|
|
2
|
-
import "../index.
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "../tooltip/index.js";
|
|
2
|
+
import "../icon/index.js";
|
|
3
|
+
import { updateAttribute, getAttribute } from "../utils/dom.js";
|
|
4
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
5
|
+
import { getReactEventHandler } from "../utils/get-react-event-handler.js";
|
|
6
6
|
const templateHTML = '<style>:host{display:contents}#icon{--sinch-global-size-icon:18px}</style><sinch-tooltip type="fast"><sinch-icon icons-version="2" name="circle-question" id="icon"></sinch-icon></sinch-tooltip>';
|
|
7
7
|
const template = document.createElement("template");
|
|
8
8
|
template.innerHTML = templateHTML;
|