@nectary/components 3.3.1 → 3.3.3
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/{lib/esm/dialog → dialog}/index.js +0 -2
- package/{lib/esm/input → input}/index.js +8 -0
- package/{lib/cjs/input → input}/types.d.ts +5 -0
- package/{lib/esm/input → input}/utils.d.ts +1 -1
- package/package.json +11 -38
- package/{lib/esm/persistent-overlay → persistent-overlay}/index.d.ts +0 -1
- package/{lib/esm/persistent-overlay → persistent-overlay}/index.js +0 -1
- package/standalone.ts +89 -0
- package/{lib/esm/utils → utils}/element.js +1 -1
- package/lib/cjs/accordion/index.js +0 -88
- package/lib/cjs/accordion/types.js +0 -1
- package/lib/cjs/accordion-item/index.js +0 -97
- package/lib/cjs/accordion-item/types.js +0 -1
- package/lib/cjs/accordion-item/utils.js +0 -7
- package/lib/cjs/action-menu/index.js +0 -197
- package/lib/cjs/action-menu/types.js +0 -1
- package/lib/cjs/action-menu-option/index.js +0 -84
- package/lib/cjs/action-menu-option/types.js +0 -1
- package/lib/cjs/action-menu-option/utils.js +0 -10
- package/lib/cjs/alert/index.js +0 -50
- package/lib/cjs/alert/types.js +0 -1
- package/lib/cjs/alert/utils.js +0 -7
- package/lib/cjs/avatar/index.js +0 -96
- package/lib/cjs/avatar/types.js +0 -1
- package/lib/cjs/avatar/utils.js +0 -15
- package/lib/cjs/badge/index.js +0 -116
- package/lib/cjs/badge/types.js +0 -1
- package/lib/cjs/badge/utils.js +0 -7
- package/lib/cjs/button/index.js +0 -184
- package/lib/cjs/button/types.js +0 -1
- package/lib/cjs/button/utils.js +0 -7
- package/lib/cjs/button-group/index.js +0 -51
- package/lib/cjs/button-group/types.js +0 -1
- package/lib/cjs/button-group-item/index.js +0 -81
- package/lib/cjs/button-group-item/types.js +0 -1
- package/lib/cjs/card/index.js +0 -135
- package/lib/cjs/card/types.js +0 -1
- package/lib/cjs/card-container/index.js +0 -13
- package/lib/cjs/card-container/types.js +0 -1
- package/lib/cjs/checkbox/index.js +0 -128
- package/lib/cjs/checkbox/types.js +0 -1
- package/lib/cjs/chip/index.js +0 -146
- package/lib/cjs/chip/types.js +0 -1
- package/lib/cjs/chip/utils.js +0 -14
- package/lib/cjs/code-tag/index.js +0 -33
- package/lib/cjs/code-tag/types.js +0 -1
- package/lib/cjs/color-menu/index.js +0 -310
- package/lib/cjs/color-menu/types.js +0 -1
- package/lib/cjs/color-menu/utils.js +0 -18
- package/lib/cjs/color-menu-option/index.js +0 -50
- package/lib/cjs/color-menu-option/types.js +0 -1
- package/lib/cjs/color-menu-option/utils.js +0 -18
- package/lib/cjs/color-swatch/index.js +0 -56
- package/lib/cjs/color-swatch/types.js +0 -1
- package/lib/cjs/color-swatch/utils.js +0 -14
- package/lib/cjs/date-picker/index.js +0 -382
- package/lib/cjs/date-picker/types.js +0 -1
- package/lib/cjs/date-picker/utils.js +0 -171
- package/lib/cjs/dialog/index.js +0 -152
- package/lib/cjs/dialog/types.js +0 -1
- package/lib/cjs/dialog/utils.js +0 -26
- package/lib/cjs/emoji/index.js +0 -48
- package/lib/cjs/emoji/types.js +0 -1
- package/lib/cjs/emoji/utils.js +0 -56
- package/lib/cjs/emoji-picker/index.js +0 -310
- package/lib/cjs/emoji-picker/types.js +0 -1
- package/lib/cjs/field/index.js +0 -122
- package/lib/cjs/field/types.js +0 -1
- package/lib/cjs/file-drop/index.js +0 -207
- package/lib/cjs/file-drop/types.js +0 -1
- package/lib/cjs/file-drop/utils.js +0 -39
- package/lib/cjs/file-picker/index.js +0 -105
- package/lib/cjs/file-picker/types.js +0 -1
- package/lib/cjs/file-picker/utils.js +0 -15
- package/lib/cjs/file-status/index.js +0 -63
- package/lib/cjs/file-status/types.js +0 -1
- package/lib/cjs/file-status/utils.js +0 -7
- package/lib/cjs/flag/index.js +0 -48
- package/lib/cjs/flag/types.js +0 -1
- package/lib/cjs/flag/utils.js +0 -24
- package/lib/cjs/grid/index.js +0 -13
- package/lib/cjs/grid/types.js +0 -1
- package/lib/cjs/grid-item/index.js +0 -37
- package/lib/cjs/grid-item/types.js +0 -1
- package/lib/cjs/help-tooltip/index.js +0 -76
- package/lib/cjs/help-tooltip/types.js +0 -1
- package/lib/cjs/horizontal-stepper/index.js +0 -63
- package/lib/cjs/horizontal-stepper/types.js +0 -1
- package/lib/cjs/horizontal-stepper-item/index.js +0 -63
- package/lib/cjs/horizontal-stepper-item/types.js +0 -1
- package/lib/cjs/horizontal-stepper-item/utils.js +0 -7
- package/lib/cjs/icon/index.js +0 -34
- package/lib/cjs/icon/types.js +0 -1
- package/lib/cjs/imports.d.js +0 -1
- package/lib/cjs/imports.d.ts +0 -9
- package/lib/cjs/inline-alert/index.js +0 -85
- package/lib/cjs/inline-alert/types.js +0 -1
- package/lib/cjs/inline-alert/utils.js +0 -7
- package/lib/cjs/input/index.js +0 -644
- package/lib/cjs/input/types.js +0 -1
- package/lib/cjs/input/utils.d.ts +0 -26
- package/lib/cjs/input/utils.js +0 -317
- package/lib/cjs/link/index.js +0 -152
- package/lib/cjs/link/types.js +0 -1
- package/lib/cjs/list/index.js +0 -16
- package/lib/cjs/list/types.js +0 -1
- package/lib/cjs/list-item/index.js +0 -16
- package/lib/cjs/list-item/types.js +0 -1
- package/lib/cjs/pagination/index.js +0 -149
- package/lib/cjs/pagination/types.js +0 -1
- package/lib/cjs/persistent-overlay/index.d.ts +0 -15
- package/lib/cjs/persistent-overlay/index.js +0 -106
- package/lib/cjs/persistent-overlay/types.js +0 -1
- package/lib/cjs/pop/index.js +0 -427
- package/lib/cjs/pop/types.js +0 -1
- package/lib/cjs/pop/utils.js +0 -24
- package/lib/cjs/popover/index.js +0 -148
- package/lib/cjs/popover/types.js +0 -1
- package/lib/cjs/popover/utils.js +0 -17
- package/lib/cjs/progress/index.js +0 -60
- package/lib/cjs/progress/types.js +0 -1
- package/lib/cjs/progress-stepper/index.js +0 -208
- package/lib/cjs/progress-stepper/types.js +0 -1
- package/lib/cjs/progress-stepper-item/index.js +0 -84
- package/lib/cjs/progress-stepper-item/types.js +0 -1
- package/lib/cjs/progress-stepper-item/utils.js +0 -25
- package/lib/cjs/radio/index.js +0 -156
- package/lib/cjs/radio/types.js +0 -1
- package/lib/cjs/radio-option/index.js +0 -81
- package/lib/cjs/radio-option/types.js +0 -1
- package/lib/cjs/rich-text/index.js +0 -77
- package/lib/cjs/rich-text/types.js +0 -1
- package/lib/cjs/rich-text/utils.js +0 -117
- package/lib/cjs/rich-textarea/index.js +0 -466
- package/lib/cjs/rich-textarea/types.js +0 -1
- package/lib/cjs/rich-textarea/utils.js +0 -1754
- package/lib/cjs/segment/index.js +0 -111
- package/lib/cjs/segment/types.js +0 -1
- package/lib/cjs/segment/utils.js +0 -23
- package/lib/cjs/segment-collapse/index.js +0 -61
- package/lib/cjs/segment-collapse/types.js +0 -1
- package/lib/cjs/segmented-control/index.js +0 -87
- package/lib/cjs/segmented-control/types.js +0 -1
- package/lib/cjs/segmented-control-option/index.js +0 -97
- package/lib/cjs/segmented-control-option/types.js +0 -1
- package/lib/cjs/segmented-icon-control/index.js +0 -103
- package/lib/cjs/segmented-icon-control/types.js +0 -1
- package/lib/cjs/segmented-icon-control-option/index.js +0 -84
- package/lib/cjs/segmented-icon-control-option/types.js +0 -1
- package/lib/cjs/select-button/index.js +0 -204
- package/lib/cjs/select-button/types.js +0 -1
- package/lib/cjs/select-menu/index.js +0 -366
- package/lib/cjs/select-menu/types.js +0 -1
- package/lib/cjs/select-menu-option/index.js +0 -72
- package/lib/cjs/select-menu-option/types.js +0 -1
- package/lib/cjs/skeleton/index.js +0 -110
- package/lib/cjs/skeleton/types.js +0 -1
- package/lib/cjs/skeleton-item/index.js +0 -13
- package/lib/cjs/skeleton-item/types.js +0 -1
- package/lib/cjs/spinner/index.js +0 -60
- package/lib/cjs/spinner/types.js +0 -1
- package/lib/cjs/standalone.js +0 -85
- package/lib/cjs/stop-events/index.js +0 -29
- package/lib/cjs/table/index.js +0 -16
- package/lib/cjs/table/types.js +0 -1
- package/lib/cjs/table-body/index.js +0 -16
- package/lib/cjs/table-body/types.js +0 -1
- package/lib/cjs/table-cell/index.js +0 -23
- package/lib/cjs/table-cell/types.js +0 -1
- package/lib/cjs/table-cell/utils.js +0 -7
- package/lib/cjs/table-head/index.js +0 -16
- package/lib/cjs/table-head/types.js +0 -1
- package/lib/cjs/table-head-cell/index.js +0 -59
- package/lib/cjs/table-head-cell/types.js +0 -1
- package/lib/cjs/table-row/index.js +0 -44
- package/lib/cjs/table-row/types.js +0 -1
- package/lib/cjs/tabs/index.js +0 -82
- package/lib/cjs/tabs/types.js +0 -1
- package/lib/cjs/tabs-icon-option/index.js +0 -81
- package/lib/cjs/tabs-icon-option/types.js +0 -1
- package/lib/cjs/tabs-option/index.js +0 -88
- package/lib/cjs/tabs-option/types.js +0 -1
- package/lib/cjs/tag/index.js +0 -86
- package/lib/cjs/tag/types.js +0 -1
- package/lib/cjs/tag/utils.js +0 -14
- package/lib/cjs/text/index.js +0 -66
- package/lib/cjs/text/types.js +0 -1
- package/lib/cjs/text/utils.js +0 -7
- package/lib/cjs/textarea/index.js +0 -324
- package/lib/cjs/textarea/types.js +0 -1
- package/lib/cjs/tile-control/index.js +0 -112
- package/lib/cjs/tile-control/types.js +0 -1
- package/lib/cjs/tile-control-option/index.js +0 -100
- package/lib/cjs/tile-control-option/types.js +0 -1
- package/lib/cjs/time-picker/index.js +0 -338
- package/lib/cjs/time-picker/types.js +0 -1
- package/lib/cjs/time-picker/utils.js +0 -89
- package/lib/cjs/title/index.js +0 -62
- package/lib/cjs/title/types.js +0 -1
- package/lib/cjs/title/utils.js +0 -24
- package/lib/cjs/toast/index.js +0 -88
- package/lib/cjs/toast/types.js +0 -1
- package/lib/cjs/toast/utils.js +0 -7
- package/lib/cjs/toast-manager/index.js +0 -172
- package/lib/cjs/toast-manager/types.js +0 -1
- package/lib/cjs/toast-manager/utils.js +0 -7
- package/lib/cjs/toggle/index.js +0 -143
- package/lib/cjs/toggle/types.js +0 -1
- package/lib/cjs/tooltip/index.js +0 -277
- package/lib/cjs/tooltip/tooltip-state.js +0 -133
- package/lib/cjs/tooltip/types.js +0 -1
- package/lib/cjs/tooltip/utils.js +0 -25
- package/lib/cjs/types.d.js +0 -1
- package/lib/cjs/utils/context.js +0 -92
- package/lib/cjs/utils/countries.js +0 -9
- package/lib/cjs/utils/csv.js +0 -32
- package/lib/cjs/utils/debounce.js +0 -29
- package/lib/cjs/utils/dom.js +0 -183
- package/lib/cjs/utils/element.js +0 -58
- package/lib/cjs/utils/event-target.js +0 -36
- package/lib/cjs/utils/get-react-event-handler.js +0 -15
- package/lib/cjs/utils/index.js +0 -137
- package/lib/cjs/utils/markdown.js +0 -151
- package/lib/cjs/utils/rect.js +0 -37
- package/lib/cjs/utils/size.js +0 -9
- package/lib/cjs/utils/slot.js +0 -47
- package/lib/cjs/utils/throttle.js +0 -26
- package/lib/cjs/utils/uid.js +0 -20
- package/lib/cjs/vertical-stepper/index.js +0 -59
- package/lib/cjs/vertical-stepper/types.js +0 -1
- package/lib/cjs/vertical-stepper-item/index.js +0 -63
- package/lib/cjs/vertical-stepper-item/types.js +0 -1
- package/lib/cjs/vertical-stepper-item/utils.js +0 -7
- package/lib/esm/accordion/index.d.ts +0 -11
- package/lib/esm/accordion/types.d.ts +0 -21
- package/lib/esm/accordion-item/index.d.ts +0 -14
- package/lib/esm/accordion-item/types.d.ts +0 -36
- package/lib/esm/accordion-item/utils.d.ts +0 -2
- package/lib/esm/action-menu/index.d.ts +0 -11
- package/lib/esm/action-menu/types.d.ts +0 -13
- package/lib/esm/action-menu-option/index.d.ts +0 -12
- package/lib/esm/action-menu-option/types.d.ts +0 -23
- package/lib/esm/action-menu-option/utils.d.ts +0 -2
- package/lib/esm/alert/index.d.ts +0 -14
- package/lib/esm/alert/types.d.ts +0 -18
- package/lib/esm/alert/utils.d.ts +0 -2
- package/lib/esm/avatar/index.d.ts +0 -11
- package/lib/esm/avatar/types.d.ts +0 -37
- package/lib/esm/avatar/utils.d.ts +0 -4
- package/lib/esm/badge/index.d.ts +0 -11
- package/lib/esm/badge/types.d.ts +0 -34
- package/lib/esm/badge/utils.d.ts +0 -2
- package/lib/esm/button/index.d.ts +0 -11
- package/lib/esm/button/types.d.ts +0 -53
- package/lib/esm/button/utils.d.ts +0 -2
- package/lib/esm/button-group/index.d.ts +0 -11
- package/lib/esm/button-group/types.d.ts +0 -11
- package/lib/esm/button-group-item/index.d.ts +0 -11
- package/lib/esm/button-group-item/types.d.ts +0 -18
- package/lib/esm/card/index.d.ts +0 -13
- package/lib/esm/card/types.d.ts +0 -28
- package/lib/esm/card-container/index.d.ts +0 -11
- package/lib/esm/card-container/types.d.ts +0 -3
- package/lib/esm/checkbox/index.d.ts +0 -11
- package/lib/esm/checkbox/types.d.ts +0 -49
- package/lib/esm/chip/index.d.ts +0 -13
- package/lib/esm/chip/types.d.ts +0 -37
- package/lib/esm/chip/utils.d.ts +0 -2
- package/lib/esm/code-tag/index.d.ts +0 -11
- package/lib/esm/code-tag/types.d.ts +0 -11
- package/lib/esm/color-menu/index.d.ts +0 -11
- package/lib/esm/color-menu/types.d.ts +0 -32
- package/lib/esm/color-menu/utils.d.ts +0 -1
- package/lib/esm/color-menu-option/index.d.ts +0 -13
- package/lib/esm/color-menu-option/types.d.ts +0 -11
- package/lib/esm/color-menu-option/utils.d.ts +0 -1
- package/lib/esm/color-swatch/index.d.ts +0 -12
- package/lib/esm/color-swatch/types.d.ts +0 -11
- package/lib/esm/color-swatch/utils.d.ts +0 -2
- package/lib/esm/colors.json +0 -88
- package/lib/esm/date-picker/index.d.ts +0 -13
- package/lib/esm/date-picker/types.d.ts +0 -70
- package/lib/esm/date-picker/utils.d.ts +0 -28
- package/lib/esm/dialog/index.d.ts +0 -14
- package/lib/esm/dialog/types.d.ts +0 -28
- package/lib/esm/dialog/utils.d.ts +0 -2
- package/lib/esm/emoji/index.d.ts +0 -11
- package/lib/esm/emoji/types.d.ts +0 -11
- package/lib/esm/emoji/utils.d.ts +0 -3
- package/lib/esm/emoji-picker/data.json +0 -1
- package/lib/esm/emoji-picker/index.d.ts +0 -21
- package/lib/esm/emoji-picker/types.d.ts +0 -26
- package/lib/esm/field/index.d.ts +0 -11
- package/lib/esm/field/types.d.ts +0 -35
- package/lib/esm/file-drop/index.d.ts +0 -13
- package/lib/esm/file-drop/types.d.ts +0 -50
- package/lib/esm/file-drop/utils.d.ts +0 -2
- package/lib/esm/file-picker/index.d.ts +0 -11
- package/lib/esm/file-picker/types.d.ts +0 -32
- package/lib/esm/file-picker/utils.d.ts +0 -1
- package/lib/esm/file-status/index.d.ts +0 -14
- package/lib/esm/file-status/types.d.ts +0 -18
- package/lib/esm/file-status/utils.d.ts +0 -2
- package/lib/esm/flag/index.d.ts +0 -11
- package/lib/esm/flag/types.d.ts +0 -11
- package/lib/esm/flag/utils.d.ts +0 -1
- package/lib/esm/grid/index.d.ts +0 -11
- package/lib/esm/grid/types.d.ts +0 -3
- package/lib/esm/grid-item/index.d.ts +0 -11
- package/lib/esm/grid-item/types.d.ts +0 -17
- package/lib/esm/help-tooltip/index.d.ts +0 -13
- package/lib/esm/help-tooltip/types.d.ts +0 -3
- package/lib/esm/horizontal-stepper/index.d.ts +0 -11
- package/lib/esm/horizontal-stepper/types.d.ts +0 -13
- package/lib/esm/horizontal-stepper-item/index.d.ts +0 -14
- package/lib/esm/horizontal-stepper-item/types.d.ts +0 -24
- package/lib/esm/horizontal-stepper-item/utils.d.ts +0 -2
- package/lib/esm/icon/index.d.ts +0 -11
- package/lib/esm/icon/types.d.ts +0 -11
- package/lib/esm/imports.d.js +0 -0
- package/lib/esm/imports.d.ts +0 -9
- package/lib/esm/inline-alert/index.d.ts +0 -15
- package/lib/esm/inline-alert/types.d.ts +0 -15
- package/lib/esm/inline-alert/utils.d.ts +0 -2
- package/lib/esm/input/index.d.ts +0 -11
- package/lib/esm/input/types.d.ts +0 -86
- package/lib/esm/link/index.d.ts +0 -12
- package/lib/esm/link/types.d.ts +0 -59
- package/lib/esm/list/index.d.ts +0 -11
- package/lib/esm/list/types.d.ts +0 -3
- package/lib/esm/list-item/index.d.ts +0 -11
- package/lib/esm/list-item/types.d.ts +0 -3
- package/lib/esm/pagination/index.d.ts +0 -12
- package/lib/esm/pagination/types.d.ts +0 -16
- package/lib/esm/persistent-overlay/types.d.ts +0 -22
- package/lib/esm/pop/index.d.ts +0 -11
- package/lib/esm/pop/types.d.ts +0 -35
- package/lib/esm/pop/utils.d.ts +0 -4
- package/lib/esm/popover/index.d.ts +0 -12
- package/lib/esm/popover/types.d.ts +0 -38
- package/lib/esm/popover/utils.d.ts +0 -4
- package/lib/esm/progress/index.d.ts +0 -12
- package/lib/esm/progress/types.d.ts +0 -12
- package/lib/esm/progress-stepper/index.d.ts +0 -11
- package/lib/esm/progress-stepper/types.d.ts +0 -22
- package/lib/esm/progress-stepper-item/index.d.ts +0 -12
- package/lib/esm/progress-stepper-item/types.d.ts +0 -23
- package/lib/esm/progress-stepper-item/utils.d.ts +0 -11
- package/lib/esm/radio/index.d.ts +0 -11
- package/lib/esm/radio/types.d.ts +0 -14
- package/lib/esm/radio-option/index.d.ts +0 -11
- package/lib/esm/radio-option/types.d.ts +0 -18
- package/lib/esm/rich-text/index.d.ts +0 -14
- package/lib/esm/rich-text/types.d.ts +0 -12
- package/lib/esm/rich-text/utils.d.ts +0 -7
- package/lib/esm/rich-textarea/index.d.ts +0 -11
- package/lib/esm/rich-textarea/types.d.ts +0 -48
- package/lib/esm/rich-textarea/utils.d.ts +0 -39
- package/lib/esm/segment/index.d.ts +0 -12
- package/lib/esm/segment/types.d.ts +0 -16
- package/lib/esm/segment/utils.d.ts +0 -3
- package/lib/esm/segment-collapse/index.d.ts +0 -12
- package/lib/esm/segment-collapse/types.d.ts +0 -11
- package/lib/esm/segmented-control/index.d.ts +0 -11
- package/lib/esm/segmented-control/types.d.ts +0 -11
- package/lib/esm/segmented-control-option/index.d.ts +0 -11
- package/lib/esm/segmented-control-option/types.d.ts +0 -19
- package/lib/esm/segmented-icon-control/index.d.ts +0 -11
- package/lib/esm/segmented-icon-control/types.d.ts +0 -14
- package/lib/esm/segmented-icon-control-option/index.d.ts +0 -11
- package/lib/esm/segmented-icon-control-option/types.d.ts +0 -16
- package/lib/esm/select-button/index.d.ts +0 -13
- package/lib/esm/select-button/types.d.ts +0 -50
- package/lib/esm/select-menu/index.d.ts +0 -14
- package/lib/esm/select-menu/types.d.ts +0 -45
- package/lib/esm/select-menu-option/index.d.ts +0 -28
- package/lib/esm/select-menu-option/types.d.ts +0 -26
- package/lib/esm/skeleton/index.d.ts +0 -11
- package/lib/esm/skeleton/types.d.ts +0 -9
- package/lib/esm/skeleton-item/index.d.ts +0 -11
- package/lib/esm/skeleton-item/types.d.ts +0 -13
- package/lib/esm/spinner/index.d.ts +0 -11
- package/lib/esm/spinner/types.d.ts +0 -12
- package/lib/esm/standalone.d.ts +0 -81
- package/lib/esm/stop-events/index.d.ts +0 -1
- package/lib/esm/table/index.d.ts +0 -11
- package/lib/esm/table/types.d.ts +0 -3
- package/lib/esm/table-body/index.d.ts +0 -11
- package/lib/esm/table-body/types.d.ts +0 -3
- package/lib/esm/table-cell/index.d.ts +0 -11
- package/lib/esm/table-cell/types.d.ts +0 -9
- package/lib/esm/table-cell/utils.d.ts +0 -2
- package/lib/esm/table-head/index.d.ts +0 -11
- package/lib/esm/table-head/types.d.ts +0 -3
- package/lib/esm/table-head-cell/index.d.ts +0 -12
- package/lib/esm/table-head-cell/types.d.ts +0 -15
- package/lib/esm/table-row/index.d.ts +0 -11
- package/lib/esm/table-row/types.d.ts +0 -11
- package/lib/esm/tabs/index.d.ts +0 -11
- package/lib/esm/tabs/types.d.ts +0 -18
- package/lib/esm/tabs-icon-option/index.d.ts +0 -11
- package/lib/esm/tabs-icon-option/types.d.ts +0 -19
- package/lib/esm/tabs-option/index.d.ts +0 -12
- package/lib/esm/tabs-option/types.d.ts +0 -25
- package/lib/esm/tag/index.d.ts +0 -12
- package/lib/esm/tag/types.d.ts +0 -23
- package/lib/esm/tag/utils.d.ts +0 -2
- package/lib/esm/text/index.d.ts +0 -11
- package/lib/esm/text/types.d.ts +0 -30
- package/lib/esm/text/utils.d.ts +0 -2
- package/lib/esm/textarea/index.d.ts +0 -11
- package/lib/esm/textarea/types.d.ts +0 -60
- package/lib/esm/tile-control/index.d.ts +0 -11
- package/lib/esm/tile-control/types.d.ts +0 -37
- package/lib/esm/tile-control-option/index.d.ts +0 -11
- package/lib/esm/tile-control-option/types.d.ts +0 -37
- package/lib/esm/time-picker/index.d.ts +0 -14
- package/lib/esm/time-picker/types.d.ts +0 -34
- package/lib/esm/time-picker/utils.d.ts +0 -11
- package/lib/esm/title/index.d.ts +0 -11
- package/lib/esm/title/types.d.ts +0 -31
- package/lib/esm/title/utils.d.ts +0 -3
- package/lib/esm/toast/index.d.ts +0 -13
- package/lib/esm/toast/types.d.ts +0 -28
- package/lib/esm/toast/utils.d.ts +0 -2
- package/lib/esm/toast-manager/index.d.ts +0 -13
- package/lib/esm/toast-manager/types.d.ts +0 -13
- package/lib/esm/toast-manager/utils.d.ts +0 -2
- package/lib/esm/toggle/index.d.ts +0 -11
- package/lib/esm/toggle/types.d.ts +0 -23
- package/lib/esm/tooltip/index.d.ts +0 -13
- package/lib/esm/tooltip/tooltip-state.d.ts +0 -19
- package/lib/esm/tooltip/types.d.ts +0 -42
- package/lib/esm/tooltip/utils.d.ts +0 -6
- package/lib/esm/types.d.js +0 -1
- package/lib/esm/types.d.ts +0 -14
- package/lib/esm/utils/context.d.ts +0 -20
- package/lib/esm/utils/countries.d.ts +0 -6
- package/lib/esm/utils/countries.json +0 -1217
- package/lib/esm/utils/csv.d.ts +0 -5
- package/lib/esm/utils/debounce.d.ts +0 -8
- package/lib/esm/utils/dom.d.ts +0 -34
- package/lib/esm/utils/element.d.ts +0 -16
- package/lib/esm/utils/event-target.d.ts +0 -4
- package/lib/esm/utils/get-react-event-handler.d.ts +0 -1
- package/lib/esm/utils/index.d.ts +0 -12
- package/lib/esm/utils/markdown.d.ts +0 -19
- package/lib/esm/utils/rect.d.ts +0 -4
- package/lib/esm/utils/size.d.ts +0 -5
- package/lib/esm/utils/slot.d.ts +0 -4
- package/lib/esm/utils/throttle.d.ts +0 -4
- package/lib/esm/utils/uid.d.ts +0 -1
- package/lib/esm/vertical-stepper/index.d.ts +0 -11
- package/lib/esm/vertical-stepper/types.d.ts +0 -13
- package/lib/esm/vertical-stepper-item/index.d.ts +0 -14
- package/lib/esm/vertical-stepper-item/types.d.ts +0 -24
- package/lib/esm/vertical-stepper-item/utils.d.ts +0 -2
- package/lib/package.json +0 -1
- /package/{lib/cjs/accordion → accordion}/index.d.ts +0 -0
- /package/{lib/esm/accordion → accordion}/index.js +0 -0
- /package/{lib/cjs/accordion → accordion}/types.d.ts +0 -0
- /package/{lib/esm/accordion → accordion}/types.js +0 -0
- /package/{lib/cjs/accordion-item → accordion-item}/index.d.ts +0 -0
- /package/{lib/esm/accordion-item → accordion-item}/index.js +0 -0
- /package/{lib/cjs/accordion-item → accordion-item}/types.d.ts +0 -0
- /package/{lib/esm/accordion-item → accordion-item}/types.js +0 -0
- /package/{lib/cjs/accordion-item → accordion-item}/utils.d.ts +0 -0
- /package/{lib/esm/accordion-item → accordion-item}/utils.js +0 -0
- /package/{lib/cjs/action-menu → action-menu}/index.d.ts +0 -0
- /package/{lib/esm/action-menu → action-menu}/index.js +0 -0
- /package/{lib/cjs/action-menu → action-menu}/types.d.ts +0 -0
- /package/{lib/esm/action-menu → action-menu}/types.js +0 -0
- /package/{lib/cjs/action-menu-option → action-menu-option}/index.d.ts +0 -0
- /package/{lib/esm/action-menu-option → action-menu-option}/index.js +0 -0
- /package/{lib/cjs/action-menu-option → action-menu-option}/types.d.ts +0 -0
- /package/{lib/esm/action-menu-option → action-menu-option}/types.js +0 -0
- /package/{lib/cjs/action-menu-option → action-menu-option}/utils.d.ts +0 -0
- /package/{lib/esm/action-menu-option → action-menu-option}/utils.js +0 -0
- /package/{lib/cjs/alert → alert}/index.d.ts +0 -0
- /package/{lib/esm/alert → alert}/index.js +0 -0
- /package/{lib/cjs/alert → alert}/types.d.ts +0 -0
- /package/{lib/esm/alert → alert}/types.js +0 -0
- /package/{lib/cjs/alert → alert}/utils.d.ts +0 -0
- /package/{lib/esm/alert → alert}/utils.js +0 -0
- /package/{lib/cjs/avatar → avatar}/index.d.ts +0 -0
- /package/{lib/esm/avatar → avatar}/index.js +0 -0
- /package/{lib/cjs/avatar → avatar}/types.d.ts +0 -0
- /package/{lib/esm/avatar → avatar}/types.js +0 -0
- /package/{lib/cjs/avatar → avatar}/utils.d.ts +0 -0
- /package/{lib/esm/avatar → avatar}/utils.js +0 -0
- /package/{lib/cjs/badge → badge}/index.d.ts +0 -0
- /package/{lib/esm/badge → badge}/index.js +0 -0
- /package/{lib/cjs/badge → badge}/types.d.ts +0 -0
- /package/{lib/esm/badge → badge}/types.js +0 -0
- /package/{lib/cjs/badge → badge}/utils.d.ts +0 -0
- /package/{lib/esm/badge → badge}/utils.js +0 -0
- /package/{lib/cjs/button → button}/index.d.ts +0 -0
- /package/{lib/esm/button → button}/index.js +0 -0
- /package/{lib/cjs/button → button}/types.d.ts +0 -0
- /package/{lib/esm/button → button}/types.js +0 -0
- /package/{lib/cjs/button → button}/utils.d.ts +0 -0
- /package/{lib/esm/button → button}/utils.js +0 -0
- /package/{lib/cjs/button-group → button-group}/index.d.ts +0 -0
- /package/{lib/esm/button-group → button-group}/index.js +0 -0
- /package/{lib/cjs/button-group → button-group}/types.d.ts +0 -0
- /package/{lib/esm/button-group → button-group}/types.js +0 -0
- /package/{lib/cjs/button-group-item → button-group-item}/index.d.ts +0 -0
- /package/{lib/esm/button-group-item → button-group-item}/index.js +0 -0
- /package/{lib/cjs/button-group-item → button-group-item}/types.d.ts +0 -0
- /package/{lib/esm/button-group-item → button-group-item}/types.js +0 -0
- /package/{lib/cjs/card → card}/index.d.ts +0 -0
- /package/{lib/esm/card → card}/index.js +0 -0
- /package/{lib/cjs/card → card}/types.d.ts +0 -0
- /package/{lib/esm/card → card}/types.js +0 -0
- /package/{lib/cjs/card-container → card-container}/index.d.ts +0 -0
- /package/{lib/esm/card-container → card-container}/index.js +0 -0
- /package/{lib/cjs/card-container → card-container}/types.d.ts +0 -0
- /package/{lib/esm/card-container → card-container}/types.js +0 -0
- /package/{lib/cjs/checkbox → checkbox}/index.d.ts +0 -0
- /package/{lib/esm/checkbox → checkbox}/index.js +0 -0
- /package/{lib/cjs/checkbox → checkbox}/types.d.ts +0 -0
- /package/{lib/esm/checkbox → checkbox}/types.js +0 -0
- /package/{lib/cjs/chip → chip}/index.d.ts +0 -0
- /package/{lib/esm/chip → chip}/index.js +0 -0
- /package/{lib/cjs/chip → chip}/types.d.ts +0 -0
- /package/{lib/esm/chip → chip}/types.js +0 -0
- /package/{lib/cjs/chip → chip}/utils.d.ts +0 -0
- /package/{lib/esm/chip → chip}/utils.js +0 -0
- /package/{lib/cjs/code-tag → code-tag}/index.d.ts +0 -0
- /package/{lib/esm/code-tag → code-tag}/index.js +0 -0
- /package/{lib/cjs/code-tag → code-tag}/types.d.ts +0 -0
- /package/{lib/esm/code-tag → code-tag}/types.js +0 -0
- /package/{lib/cjs/color-menu → color-menu}/index.d.ts +0 -0
- /package/{lib/esm/color-menu → color-menu}/index.js +0 -0
- /package/{lib/cjs/color-menu → color-menu}/types.d.ts +0 -0
- /package/{lib/esm/color-menu → color-menu}/types.js +0 -0
- /package/{lib/cjs/color-menu → color-menu}/utils.d.ts +0 -0
- /package/{lib/esm/color-menu → color-menu}/utils.js +0 -0
- /package/{lib/cjs/color-menu-option → color-menu-option}/index.d.ts +0 -0
- /package/{lib/esm/color-menu-option → color-menu-option}/index.js +0 -0
- /package/{lib/cjs/color-menu-option → color-menu-option}/types.d.ts +0 -0
- /package/{lib/esm/color-menu-option → color-menu-option}/types.js +0 -0
- /package/{lib/cjs/color-menu-option → color-menu-option}/utils.d.ts +0 -0
- /package/{lib/esm/color-menu-option → color-menu-option}/utils.js +0 -0
- /package/{lib/cjs/color-swatch → color-swatch}/index.d.ts +0 -0
- /package/{lib/esm/color-swatch → color-swatch}/index.js +0 -0
- /package/{lib/cjs/color-swatch → color-swatch}/types.d.ts +0 -0
- /package/{lib/esm/color-swatch → color-swatch}/types.js +0 -0
- /package/{lib/cjs/color-swatch → color-swatch}/utils.d.ts +0 -0
- /package/{lib/esm/color-swatch → color-swatch}/utils.js +0 -0
- /package/{lib/cjs/colors.json → colors.json} +0 -0
- /package/{lib/cjs/date-picker → date-picker}/index.d.ts +0 -0
- /package/{lib/esm/date-picker → date-picker}/index.js +0 -0
- /package/{lib/cjs/date-picker → date-picker}/types.d.ts +0 -0
- /package/{lib/esm/date-picker → date-picker}/types.js +0 -0
- /package/{lib/cjs/date-picker → date-picker}/utils.d.ts +0 -0
- /package/{lib/esm/date-picker → date-picker}/utils.js +0 -0
- /package/{lib/cjs/dialog → dialog}/index.d.ts +0 -0
- /package/{lib/cjs/dialog → dialog}/types.d.ts +0 -0
- /package/{lib/esm/dialog → dialog}/types.js +0 -0
- /package/{lib/cjs/dialog → dialog}/utils.d.ts +0 -0
- /package/{lib/esm/dialog → dialog}/utils.js +0 -0
- /package/{lib/cjs/emoji → emoji}/index.d.ts +0 -0
- /package/{lib/esm/emoji → emoji}/index.js +0 -0
- /package/{lib/cjs/emoji → emoji}/types.d.ts +0 -0
- /package/{lib/esm/emoji → emoji}/types.js +0 -0
- /package/{lib/cjs/emoji → emoji}/utils.d.ts +0 -0
- /package/{lib/esm/emoji → emoji}/utils.js +0 -0
- /package/{lib/cjs/emoji-picker → emoji-picker}/data.json +0 -0
- /package/{lib/cjs/emoji-picker → emoji-picker}/index.d.ts +0 -0
- /package/{lib/esm/emoji-picker → emoji-picker}/index.js +0 -0
- /package/{lib/cjs/emoji-picker → emoji-picker}/types.d.ts +0 -0
- /package/{lib/esm/emoji-picker → emoji-picker}/types.js +0 -0
- /package/{lib/cjs/field → field}/index.d.ts +0 -0
- /package/{lib/esm/field → field}/index.js +0 -0
- /package/{lib/cjs/field → field}/types.d.ts +0 -0
- /package/{lib/esm/field → field}/types.js +0 -0
- /package/{lib/cjs/file-drop → file-drop}/index.d.ts +0 -0
- /package/{lib/esm/file-drop → file-drop}/index.js +0 -0
- /package/{lib/cjs/file-drop → file-drop}/types.d.ts +0 -0
- /package/{lib/esm/file-drop → file-drop}/types.js +0 -0
- /package/{lib/cjs/file-drop → file-drop}/utils.d.ts +0 -0
- /package/{lib/esm/file-drop → file-drop}/utils.js +0 -0
- /package/{lib/cjs/file-picker → file-picker}/index.d.ts +0 -0
- /package/{lib/esm/file-picker → file-picker}/index.js +0 -0
- /package/{lib/cjs/file-picker → file-picker}/types.d.ts +0 -0
- /package/{lib/esm/file-picker → file-picker}/types.js +0 -0
- /package/{lib/cjs/file-picker → file-picker}/utils.d.ts +0 -0
- /package/{lib/esm/file-picker → file-picker}/utils.js +0 -0
- /package/{lib/cjs/file-status → file-status}/index.d.ts +0 -0
- /package/{lib/esm/file-status → file-status}/index.js +0 -0
- /package/{lib/cjs/file-status → file-status}/types.d.ts +0 -0
- /package/{lib/esm/file-status → file-status}/types.js +0 -0
- /package/{lib/cjs/file-status → file-status}/utils.d.ts +0 -0
- /package/{lib/esm/file-status → file-status}/utils.js +0 -0
- /package/{lib/cjs/flag → flag}/index.d.ts +0 -0
- /package/{lib/esm/flag → flag}/index.js +0 -0
- /package/{lib/cjs/flag → flag}/types.d.ts +0 -0
- /package/{lib/esm/flag → flag}/types.js +0 -0
- /package/{lib/cjs/flag → flag}/utils.d.ts +0 -0
- /package/{lib/esm/flag → flag}/utils.js +0 -0
- /package/{lib/cjs/grid → grid}/index.d.ts +0 -0
- /package/{lib/esm/grid → grid}/index.js +0 -0
- /package/{lib/cjs/grid → grid}/types.d.ts +0 -0
- /package/{lib/esm/grid → grid}/types.js +0 -0
- /package/{lib/cjs/grid-item → grid-item}/index.d.ts +0 -0
- /package/{lib/esm/grid-item → grid-item}/index.js +0 -0
- /package/{lib/cjs/grid-item → grid-item}/types.d.ts +0 -0
- /package/{lib/esm/grid-item → grid-item}/types.js +0 -0
- /package/{lib/cjs/help-tooltip → help-tooltip}/index.d.ts +0 -0
- /package/{lib/esm/help-tooltip → help-tooltip}/index.js +0 -0
- /package/{lib/cjs/help-tooltip → help-tooltip}/types.d.ts +0 -0
- /package/{lib/esm/help-tooltip → help-tooltip}/types.js +0 -0
- /package/{lib/cjs/horizontal-stepper → horizontal-stepper}/index.d.ts +0 -0
- /package/{lib/esm/horizontal-stepper → horizontal-stepper}/index.js +0 -0
- /package/{lib/cjs/horizontal-stepper → horizontal-stepper}/types.d.ts +0 -0
- /package/{lib/esm/horizontal-stepper → horizontal-stepper}/types.js +0 -0
- /package/{lib/cjs/horizontal-stepper-item → horizontal-stepper-item}/index.d.ts +0 -0
- /package/{lib/esm/horizontal-stepper-item → horizontal-stepper-item}/index.js +0 -0
- /package/{lib/cjs/horizontal-stepper-item → horizontal-stepper-item}/types.d.ts +0 -0
- /package/{lib/esm/horizontal-stepper-item → horizontal-stepper-item}/types.js +0 -0
- /package/{lib/cjs/horizontal-stepper-item → horizontal-stepper-item}/utils.d.ts +0 -0
- /package/{lib/esm/horizontal-stepper-item → horizontal-stepper-item}/utils.js +0 -0
- /package/{lib/cjs/icon → icon}/index.d.ts +0 -0
- /package/{lib/esm/icon → icon}/index.js +0 -0
- /package/{lib/cjs/icon → icon}/types.d.ts +0 -0
- /package/{lib/esm/icon → icon}/types.js +0 -0
- /package/{lib/cjs/inline-alert → inline-alert}/index.d.ts +0 -0
- /package/{lib/esm/inline-alert → inline-alert}/index.js +0 -0
- /package/{lib/cjs/inline-alert → inline-alert}/types.d.ts +0 -0
- /package/{lib/esm/inline-alert → inline-alert}/types.js +0 -0
- /package/{lib/cjs/inline-alert → inline-alert}/utils.d.ts +0 -0
- /package/{lib/esm/inline-alert → inline-alert}/utils.js +0 -0
- /package/{lib/cjs/input → input}/index.d.ts +0 -0
- /package/{lib/esm/input → input}/types.js +0 -0
- /package/{lib/esm/input → input}/utils.js +0 -0
- /package/{lib/cjs/link → link}/index.d.ts +0 -0
- /package/{lib/esm/link → link}/index.js +0 -0
- /package/{lib/cjs/link → link}/types.d.ts +0 -0
- /package/{lib/esm/link → link}/types.js +0 -0
- /package/{lib/cjs/list → list}/index.d.ts +0 -0
- /package/{lib/esm/list → list}/index.js +0 -0
- /package/{lib/cjs/list → list}/types.d.ts +0 -0
- /package/{lib/esm/list → list}/types.js +0 -0
- /package/{lib/cjs/list-item → list-item}/index.d.ts +0 -0
- /package/{lib/esm/list-item → list-item}/index.js +0 -0
- /package/{lib/cjs/list-item → list-item}/types.d.ts +0 -0
- /package/{lib/esm/list-item → list-item}/types.js +0 -0
- /package/{lib/cjs/pagination → pagination}/index.d.ts +0 -0
- /package/{lib/esm/pagination → pagination}/index.js +0 -0
- /package/{lib/cjs/pagination → pagination}/types.d.ts +0 -0
- /package/{lib/esm/pagination → pagination}/types.js +0 -0
- /package/{lib/cjs/persistent-overlay → persistent-overlay}/types.d.ts +0 -0
- /package/{lib/esm/persistent-overlay → persistent-overlay}/types.js +0 -0
- /package/{lib/cjs/pop → pop}/index.d.ts +0 -0
- /package/{lib/esm/pop → pop}/index.js +0 -0
- /package/{lib/cjs/pop → pop}/types.d.ts +0 -0
- /package/{lib/esm/pop → pop}/types.js +0 -0
- /package/{lib/cjs/pop → pop}/utils.d.ts +0 -0
- /package/{lib/esm/pop → pop}/utils.js +0 -0
- /package/{lib/cjs/popover → popover}/index.d.ts +0 -0
- /package/{lib/esm/popover → popover}/index.js +0 -0
- /package/{lib/cjs/popover → popover}/types.d.ts +0 -0
- /package/{lib/esm/popover → popover}/types.js +0 -0
- /package/{lib/cjs/popover → popover}/utils.d.ts +0 -0
- /package/{lib/esm/popover → popover}/utils.js +0 -0
- /package/{lib/cjs/progress → progress}/index.d.ts +0 -0
- /package/{lib/esm/progress → progress}/index.js +0 -0
- /package/{lib/cjs/progress → progress}/types.d.ts +0 -0
- /package/{lib/esm/progress → progress}/types.js +0 -0
- /package/{lib/cjs/progress-stepper → progress-stepper}/index.d.ts +0 -0
- /package/{lib/esm/progress-stepper → progress-stepper}/index.js +0 -0
- /package/{lib/cjs/progress-stepper → progress-stepper}/types.d.ts +0 -0
- /package/{lib/esm/progress-stepper → progress-stepper}/types.js +0 -0
- /package/{lib/cjs/progress-stepper-item → progress-stepper-item}/index.d.ts +0 -0
- /package/{lib/esm/progress-stepper-item → progress-stepper-item}/index.js +0 -0
- /package/{lib/cjs/progress-stepper-item → progress-stepper-item}/types.d.ts +0 -0
- /package/{lib/esm/progress-stepper-item → progress-stepper-item}/types.js +0 -0
- /package/{lib/cjs/progress-stepper-item → progress-stepper-item}/utils.d.ts +0 -0
- /package/{lib/esm/progress-stepper-item → progress-stepper-item}/utils.js +0 -0
- /package/{lib/cjs/radio → radio}/index.d.ts +0 -0
- /package/{lib/esm/radio → radio}/index.js +0 -0
- /package/{lib/cjs/radio → radio}/types.d.ts +0 -0
- /package/{lib/esm/radio → radio}/types.js +0 -0
- /package/{lib/cjs/radio-option → radio-option}/index.d.ts +0 -0
- /package/{lib/esm/radio-option → radio-option}/index.js +0 -0
- /package/{lib/cjs/radio-option → radio-option}/types.d.ts +0 -0
- /package/{lib/esm/radio-option → radio-option}/types.js +0 -0
- /package/{lib/cjs/rich-text → rich-text}/index.d.ts +0 -0
- /package/{lib/esm/rich-text → rich-text}/index.js +0 -0
- /package/{lib/cjs/rich-text → rich-text}/types.d.ts +0 -0
- /package/{lib/esm/rich-text → rich-text}/types.js +0 -0
- /package/{lib/cjs/rich-text → rich-text}/utils.d.ts +0 -0
- /package/{lib/esm/rich-text → rich-text}/utils.js +0 -0
- /package/{lib/cjs/rich-textarea → rich-textarea}/index.d.ts +0 -0
- /package/{lib/esm/rich-textarea → rich-textarea}/index.js +0 -0
- /package/{lib/cjs/rich-textarea → rich-textarea}/types.d.ts +0 -0
- /package/{lib/esm/rich-textarea → rich-textarea}/types.js +0 -0
- /package/{lib/cjs/rich-textarea → rich-textarea}/utils.d.ts +0 -0
- /package/{lib/esm/rich-textarea → rich-textarea}/utils.js +0 -0
- /package/{lib/cjs/segment → segment}/index.d.ts +0 -0
- /package/{lib/esm/segment → segment}/index.js +0 -0
- /package/{lib/cjs/segment → segment}/types.d.ts +0 -0
- /package/{lib/esm/segment → segment}/types.js +0 -0
- /package/{lib/cjs/segment → segment}/utils.d.ts +0 -0
- /package/{lib/esm/segment → segment}/utils.js +0 -0
- /package/{lib/cjs/segment-collapse → segment-collapse}/index.d.ts +0 -0
- /package/{lib/esm/segment-collapse → segment-collapse}/index.js +0 -0
- /package/{lib/cjs/segment-collapse → segment-collapse}/types.d.ts +0 -0
- /package/{lib/esm/segment-collapse → segment-collapse}/types.js +0 -0
- /package/{lib/cjs/segmented-control → segmented-control}/index.d.ts +0 -0
- /package/{lib/esm/segmented-control → segmented-control}/index.js +0 -0
- /package/{lib/cjs/segmented-control → segmented-control}/types.d.ts +0 -0
- /package/{lib/esm/segmented-control → segmented-control}/types.js +0 -0
- /package/{lib/cjs/segmented-control-option → segmented-control-option}/index.d.ts +0 -0
- /package/{lib/esm/segmented-control-option → segmented-control-option}/index.js +0 -0
- /package/{lib/cjs/segmented-control-option → segmented-control-option}/types.d.ts +0 -0
- /package/{lib/esm/segmented-control-option → segmented-control-option}/types.js +0 -0
- /package/{lib/cjs/segmented-icon-control → segmented-icon-control}/index.d.ts +0 -0
- /package/{lib/esm/segmented-icon-control → segmented-icon-control}/index.js +0 -0
- /package/{lib/cjs/segmented-icon-control → segmented-icon-control}/types.d.ts +0 -0
- /package/{lib/esm/segmented-icon-control → segmented-icon-control}/types.js +0 -0
- /package/{lib/cjs/segmented-icon-control-option → segmented-icon-control-option}/index.d.ts +0 -0
- /package/{lib/esm/segmented-icon-control-option → segmented-icon-control-option}/index.js +0 -0
- /package/{lib/cjs/segmented-icon-control-option → segmented-icon-control-option}/types.d.ts +0 -0
- /package/{lib/esm/segmented-icon-control-option → segmented-icon-control-option}/types.js +0 -0
- /package/{lib/cjs/select-button → select-button}/index.d.ts +0 -0
- /package/{lib/esm/select-button → select-button}/index.js +0 -0
- /package/{lib/cjs/select-button → select-button}/types.d.ts +0 -0
- /package/{lib/esm/select-button → select-button}/types.js +0 -0
- /package/{lib/cjs/select-menu → select-menu}/index.d.ts +0 -0
- /package/{lib/esm/select-menu → select-menu}/index.js +0 -0
- /package/{lib/cjs/select-menu → select-menu}/types.d.ts +0 -0
- /package/{lib/esm/select-menu → select-menu}/types.js +0 -0
- /package/{lib/cjs/select-menu-option → select-menu-option}/index.d.ts +0 -0
- /package/{lib/esm/select-menu-option → select-menu-option}/index.js +0 -0
- /package/{lib/cjs/select-menu-option → select-menu-option}/types.d.ts +0 -0
- /package/{lib/esm/select-menu-option → select-menu-option}/types.js +0 -0
- /package/{lib/cjs/skeleton → skeleton}/index.d.ts +0 -0
- /package/{lib/esm/skeleton → skeleton}/index.js +0 -0
- /package/{lib/cjs/skeleton → skeleton}/types.d.ts +0 -0
- /package/{lib/esm/skeleton → skeleton}/types.js +0 -0
- /package/{lib/cjs/skeleton-item → skeleton-item}/index.d.ts +0 -0
- /package/{lib/esm/skeleton-item → skeleton-item}/index.js +0 -0
- /package/{lib/cjs/skeleton-item → skeleton-item}/types.d.ts +0 -0
- /package/{lib/esm/skeleton-item → skeleton-item}/types.js +0 -0
- /package/{lib/cjs/spinner → spinner}/index.d.ts +0 -0
- /package/{lib/esm/spinner → spinner}/index.js +0 -0
- /package/{lib/cjs/spinner → spinner}/types.d.ts +0 -0
- /package/{lib/esm/spinner → spinner}/types.js +0 -0
- /package/{lib/cjs/standalone.d.ts → standalone.d.ts} +0 -0
- /package/{lib/esm/standalone.js → standalone.js} +0 -0
- /package/{lib/cjs/stop-events → stop-events}/index.d.ts +0 -0
- /package/{lib/esm/stop-events → stop-events}/index.js +0 -0
- /package/{lib/cjs/table → table}/index.d.ts +0 -0
- /package/{lib/esm/table → table}/index.js +0 -0
- /package/{lib/cjs/table → table}/types.d.ts +0 -0
- /package/{lib/esm/table → table}/types.js +0 -0
- /package/{lib/cjs/table-body → table-body}/index.d.ts +0 -0
- /package/{lib/esm/table-body → table-body}/index.js +0 -0
- /package/{lib/cjs/table-body → table-body}/types.d.ts +0 -0
- /package/{lib/esm/table-body → table-body}/types.js +0 -0
- /package/{lib/cjs/table-cell → table-cell}/index.d.ts +0 -0
- /package/{lib/esm/table-cell → table-cell}/index.js +0 -0
- /package/{lib/cjs/table-cell → table-cell}/types.d.ts +0 -0
- /package/{lib/esm/table-cell → table-cell}/types.js +0 -0
- /package/{lib/cjs/table-cell → table-cell}/utils.d.ts +0 -0
- /package/{lib/esm/table-cell → table-cell}/utils.js +0 -0
- /package/{lib/cjs/table-head → table-head}/index.d.ts +0 -0
- /package/{lib/esm/table-head → table-head}/index.js +0 -0
- /package/{lib/cjs/table-head → table-head}/types.d.ts +0 -0
- /package/{lib/esm/table-head → table-head}/types.js +0 -0
- /package/{lib/cjs/table-head-cell → table-head-cell}/index.d.ts +0 -0
- /package/{lib/esm/table-head-cell → table-head-cell}/index.js +0 -0
- /package/{lib/cjs/table-head-cell → table-head-cell}/types.d.ts +0 -0
- /package/{lib/esm/table-head-cell → table-head-cell}/types.js +0 -0
- /package/{lib/cjs/table-row → table-row}/index.d.ts +0 -0
- /package/{lib/esm/table-row → table-row}/index.js +0 -0
- /package/{lib/cjs/table-row → table-row}/types.d.ts +0 -0
- /package/{lib/esm/table-row → table-row}/types.js +0 -0
- /package/{lib/cjs/tabs → tabs}/index.d.ts +0 -0
- /package/{lib/esm/tabs → tabs}/index.js +0 -0
- /package/{lib/cjs/tabs → tabs}/types.d.ts +0 -0
- /package/{lib/esm/tabs → tabs}/types.js +0 -0
- /package/{lib/cjs/tabs-icon-option → tabs-icon-option}/index.d.ts +0 -0
- /package/{lib/esm/tabs-icon-option → tabs-icon-option}/index.js +0 -0
- /package/{lib/cjs/tabs-icon-option → tabs-icon-option}/types.d.ts +0 -0
- /package/{lib/esm/tabs-icon-option → tabs-icon-option}/types.js +0 -0
- /package/{lib/cjs/tabs-option → tabs-option}/index.d.ts +0 -0
- /package/{lib/esm/tabs-option → tabs-option}/index.js +0 -0
- /package/{lib/cjs/tabs-option → tabs-option}/types.d.ts +0 -0
- /package/{lib/esm/tabs-option → tabs-option}/types.js +0 -0
- /package/{lib/cjs/tag → tag}/index.d.ts +0 -0
- /package/{lib/esm/tag → tag}/index.js +0 -0
- /package/{lib/cjs/tag → tag}/types.d.ts +0 -0
- /package/{lib/esm/tag → tag}/types.js +0 -0
- /package/{lib/cjs/tag → tag}/utils.d.ts +0 -0
- /package/{lib/esm/tag → tag}/utils.js +0 -0
- /package/{lib/cjs/text → text}/index.d.ts +0 -0
- /package/{lib/esm/text → text}/index.js +0 -0
- /package/{lib/cjs/text → text}/types.d.ts +0 -0
- /package/{lib/esm/text → text}/types.js +0 -0
- /package/{lib/cjs/text → text}/utils.d.ts +0 -0
- /package/{lib/esm/text → text}/utils.js +0 -0
- /package/{lib/cjs/textarea → textarea}/index.d.ts +0 -0
- /package/{lib/esm/textarea → textarea}/index.js +0 -0
- /package/{lib/cjs/textarea → textarea}/types.d.ts +0 -0
- /package/{lib/esm/textarea → textarea}/types.js +0 -0
- /package/{lib/cjs/tile-control → tile-control}/index.d.ts +0 -0
- /package/{lib/esm/tile-control → tile-control}/index.js +0 -0
- /package/{lib/cjs/tile-control → tile-control}/types.d.ts +0 -0
- /package/{lib/esm/tile-control → tile-control}/types.js +0 -0
- /package/{lib/cjs/tile-control-option → tile-control-option}/index.d.ts +0 -0
- /package/{lib/esm/tile-control-option → tile-control-option}/index.js +0 -0
- /package/{lib/cjs/tile-control-option → tile-control-option}/types.d.ts +0 -0
- /package/{lib/esm/tile-control-option → tile-control-option}/types.js +0 -0
- /package/{lib/cjs/time-picker → time-picker}/index.d.ts +0 -0
- /package/{lib/esm/time-picker → time-picker}/index.js +0 -0
- /package/{lib/cjs/time-picker → time-picker}/types.d.ts +0 -0
- /package/{lib/esm/time-picker → time-picker}/types.js +0 -0
- /package/{lib/cjs/time-picker → time-picker}/utils.d.ts +0 -0
- /package/{lib/esm/time-picker → time-picker}/utils.js +0 -0
- /package/{lib/cjs/title → title}/index.d.ts +0 -0
- /package/{lib/esm/title → title}/index.js +0 -0
- /package/{lib/cjs/title → title}/types.d.ts +0 -0
- /package/{lib/esm/title → title}/types.js +0 -0
- /package/{lib/cjs/title → title}/utils.d.ts +0 -0
- /package/{lib/esm/title → title}/utils.js +0 -0
- /package/{lib/cjs/toast → toast}/index.d.ts +0 -0
- /package/{lib/esm/toast → toast}/index.js +0 -0
- /package/{lib/cjs/toast → toast}/types.d.ts +0 -0
- /package/{lib/esm/toast → toast}/types.js +0 -0
- /package/{lib/cjs/toast → toast}/utils.d.ts +0 -0
- /package/{lib/esm/toast → toast}/utils.js +0 -0
- /package/{lib/cjs/toast-manager → toast-manager}/index.d.ts +0 -0
- /package/{lib/esm/toast-manager → toast-manager}/index.js +0 -0
- /package/{lib/cjs/toast-manager → toast-manager}/types.d.ts +0 -0
- /package/{lib/esm/toast-manager → toast-manager}/types.js +0 -0
- /package/{lib/cjs/toast-manager → toast-manager}/utils.d.ts +0 -0
- /package/{lib/esm/toast-manager → toast-manager}/utils.js +0 -0
- /package/{lib/cjs/toggle → toggle}/index.d.ts +0 -0
- /package/{lib/esm/toggle → toggle}/index.js +0 -0
- /package/{lib/cjs/toggle → toggle}/types.d.ts +0 -0
- /package/{lib/esm/toggle → toggle}/types.js +0 -0
- /package/{lib/cjs/tooltip → tooltip}/index.d.ts +0 -0
- /package/{lib/esm/tooltip → tooltip}/index.js +0 -0
- /package/{lib/cjs/tooltip → tooltip}/tooltip-state.d.ts +0 -0
- /package/{lib/esm/tooltip → tooltip}/tooltip-state.js +0 -0
- /package/{lib/cjs/tooltip → tooltip}/types.d.ts +0 -0
- /package/{lib/esm/tooltip → tooltip}/types.js +0 -0
- /package/{lib/cjs/tooltip → tooltip}/utils.d.ts +0 -0
- /package/{lib/esm/tooltip → tooltip}/utils.js +0 -0
- /package/{lib/cjs/types.d.ts → types.d.ts} +0 -0
- /package/{lib/cjs/utils → utils}/context.d.ts +0 -0
- /package/{lib/esm/utils → utils}/context.js +0 -0
- /package/{lib/cjs/utils → utils}/countries.d.ts +0 -0
- /package/{lib/esm/utils → utils}/countries.js +0 -0
- /package/{lib/cjs/utils → utils}/countries.json +0 -0
- /package/{lib/cjs/utils → utils}/csv.d.ts +0 -0
- /package/{lib/esm/utils → utils}/csv.js +0 -0
- /package/{lib/cjs/utils → utils}/debounce.d.ts +0 -0
- /package/{lib/esm/utils → utils}/debounce.js +0 -0
- /package/{lib/cjs/utils → utils}/dom.d.ts +0 -0
- /package/{lib/esm/utils → utils}/dom.js +0 -0
- /package/{lib/cjs/utils → utils}/element.d.ts +0 -0
- /package/{lib/cjs/utils → utils}/event-target.d.ts +0 -0
- /package/{lib/esm/utils → utils}/event-target.js +0 -0
- /package/{lib/cjs/utils → utils}/get-react-event-handler.d.ts +0 -0
- /package/{lib/esm/utils → utils}/get-react-event-handler.js +0 -0
- /package/{lib/cjs/utils → utils}/index.d.ts +0 -0
- /package/{lib/esm/utils → utils}/index.js +0 -0
- /package/{lib/cjs/utils → utils}/markdown.d.ts +0 -0
- /package/{lib/esm/utils → utils}/markdown.js +0 -0
- /package/{lib/cjs/utils → utils}/rect.d.ts +0 -0
- /package/{lib/esm/utils → utils}/rect.js +0 -0
- /package/{lib/cjs/utils → utils}/size.d.ts +0 -0
- /package/{lib/esm/utils → utils}/size.js +0 -0
- /package/{lib/cjs/utils → utils}/slot.d.ts +0 -0
- /package/{lib/esm/utils → utils}/slot.js +0 -0
- /package/{lib/cjs/utils → utils}/throttle.d.ts +0 -0
- /package/{lib/esm/utils → utils}/throttle.js +0 -0
- /package/{lib/cjs/utils → utils}/uid.d.ts +0 -0
- /package/{lib/esm/utils → utils}/uid.js +0 -0
- /package/{lib/cjs/vertical-stepper → vertical-stepper}/index.d.ts +0 -0
- /package/{lib/esm/vertical-stepper → vertical-stepper}/index.js +0 -0
- /package/{lib/cjs/vertical-stepper → vertical-stepper}/types.d.ts +0 -0
- /package/{lib/esm/vertical-stepper → vertical-stepper}/types.js +0 -0
- /package/{lib/cjs/vertical-stepper-item → vertical-stepper-item}/index.d.ts +0 -0
- /package/{lib/esm/vertical-stepper-item → vertical-stepper-item}/index.js +0 -0
- /package/{lib/cjs/vertical-stepper-item → vertical-stepper-item}/types.d.ts +0 -0
- /package/{lib/esm/vertical-stepper-item → vertical-stepper-item}/types.js +0 -0
- /package/{lib/cjs/vertical-stepper-item → vertical-stepper-item}/utils.d.ts +0 -0
- /package/{lib/esm/vertical-stepper-item → vertical-stepper-item}/utils.js +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require('../icon');
|
|
4
|
-
require('../stop-events');
|
|
5
|
-
require('../title');
|
|
6
|
-
var _utils = require('../utils');
|
|
7
|
-
require('@nectary/components/dialog');
|
|
8
|
-
const templateHTML = '<style>#persisted-dialog{--sinch-dialog-close-button-display:none}::slotted(*){display:block}</style><sinch-dialog id="persisted-dialog"><div slot="icon"><slot id="icon" name="icon"></slot></div><div slot="content"><slot name="content"></slot></div><div slot="buttons"><slot name="buttons"></slot></div></sinch-dialog>';
|
|
9
|
-
const template = document.createElement('template');
|
|
10
|
-
template.innerHTML = templateHTML;
|
|
11
|
-
function isVisible(elementStyle) {
|
|
12
|
-
return elementStyle.visibility === 'visible' && elementStyle.display !== 'none';
|
|
13
|
-
}
|
|
14
|
-
const observeDialogVisibilityManipulation = function (sinchDialogElement, cb) {
|
|
15
|
-
let intervalLength = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000;
|
|
16
|
-
const checkInterval = setInterval(() => {
|
|
17
|
-
const dialogElement = sinchDialogElement.shadowRoot?.querySelector('dialog');
|
|
18
|
-
if (!isVisible(getComputedStyle(sinchDialogElement)) || sinchDialogElement.open !== true || dialogElement === null || dialogElement === undefined || !isVisible(getComputedStyle(dialogElement)) || dialogElement.open !== true) {
|
|
19
|
-
cb();
|
|
20
|
-
}
|
|
21
|
-
}, intervalLength);
|
|
22
|
-
return checkInterval;
|
|
23
|
-
};
|
|
24
|
-
(0, _utils.defineCustomElement)('sinch-persistent-overlay', class extends _utils.NectaryElement {
|
|
25
|
-
#$sinchDialog;
|
|
26
|
-
#visibilityObserverInterval;
|
|
27
|
-
#controller = null;
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
const shadowRoot = this.attachShadow();
|
|
31
|
-
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
32
|
-
this.#$sinchDialog = shadowRoot.querySelector('#persisted-dialog');
|
|
33
|
-
}
|
|
34
|
-
static get observedAttributes() {
|
|
35
|
-
return ['caption', 'open'];
|
|
36
|
-
}
|
|
37
|
-
attributeChangedCallback(name, oldVal, newVal) {
|
|
38
|
-
switch (name) {
|
|
39
|
-
case 'caption':
|
|
40
|
-
{
|
|
41
|
-
(0, _utils.updateAttribute)(this.#$sinchDialog, 'caption', newVal);
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
case 'open':
|
|
45
|
-
{
|
|
46
|
-
(0, _utils.updateAttribute)(this.#$sinchDialog, 'open', newVal);
|
|
47
|
-
const shouldOpen = (0, _utils.isAttrTrue)(newVal);
|
|
48
|
-
if (shouldOpen) {
|
|
49
|
-
requestAnimationFrame(() => {
|
|
50
|
-
this.#startObservingAlteration();
|
|
51
|
-
});
|
|
52
|
-
} else {
|
|
53
|
-
this.#stopObservingAlteration();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
connectedCallback() {
|
|
59
|
-
super.connectedCallback();
|
|
60
|
-
this.role = 'dialog';
|
|
61
|
-
this.#controller = new AbortController();
|
|
62
|
-
const {
|
|
63
|
-
signal
|
|
64
|
-
} = this.#controller;
|
|
65
|
-
this.addEventListener('-visibility-altered', this.#onVisibilityAlteredReactHandler, {
|
|
66
|
-
signal
|
|
67
|
-
});
|
|
68
|
-
if (this.open) {
|
|
69
|
-
this.#startObservingAlteration();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
disconnectedCallback() {
|
|
73
|
-
super.disconnectedCallback();
|
|
74
|
-
this.#controller.abort();
|
|
75
|
-
this.#controller = null;
|
|
76
|
-
if (this.open || this.#visibilityObserverInterval !== undefined) {
|
|
77
|
-
this.#onVisibilityAltered();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
set caption(caption) {
|
|
81
|
-
(0, _utils.updateAttribute)(this, 'caption', caption);
|
|
82
|
-
}
|
|
83
|
-
get caption() {
|
|
84
|
-
return (0, _utils.getAttribute)(this, 'caption', '');
|
|
85
|
-
}
|
|
86
|
-
set open(isOpen) {
|
|
87
|
-
(0, _utils.updateBooleanAttribute)(this, 'open', isOpen);
|
|
88
|
-
}
|
|
89
|
-
get open() {
|
|
90
|
-
return (0, _utils.getBooleanAttribute)(this, 'open');
|
|
91
|
-
}
|
|
92
|
-
#startObservingAlteration() {
|
|
93
|
-
this.#visibilityObserverInterval = observeDialogVisibilityManipulation(this.#$sinchDialog, () => {
|
|
94
|
-
this.#onVisibilityAltered();
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
#stopObservingAlteration() {
|
|
98
|
-
clearInterval(this.#visibilityObserverInterval);
|
|
99
|
-
}
|
|
100
|
-
#onVisibilityAltered() {
|
|
101
|
-
this.dispatchEvent(new CustomEvent('-visibility-altered'));
|
|
102
|
-
}
|
|
103
|
-
#onVisibilityAlteredReactHandler = e => {
|
|
104
|
-
(0, _utils.getReactEventHandler)(this, 'on-visibility-altered')?.(e);
|
|
105
|
-
};
|
|
106
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/lib/cjs/pop/index.js
DELETED
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _utils = require('../utils');
|
|
4
|
-
var _utils2 = require('./utils');
|
|
5
|
-
const templateHTML = '<style>:host{display:contents;position:relative}dialog{position:fixed;left:0;top:0;margin:0;outline:0;padding:0;border:none;box-sizing:border-box;max-width:unset;max-height:unset;z-index:1;background:0 0;overflow:visible}dialog:not([open]){display:none}dialog::backdrop{background-color:transparent}#content{position:relative;z-index:1}#target-open{display:flex;flex-direction:column;position:absolute;left:0;top:0}#focus{display:none;position:absolute;width:0;height:0}</style><slot id="target" name="target" aria-haspopup="dialog" aria-expanded="false"></slot><div id="focus"></div><dialog id="dialog"><div id="target-open"><slot name="target-open"></slot></div><div id="content"><slot name="content"></slot></div></dialog>';
|
|
6
|
-
const template = document.createElement('template');
|
|
7
|
-
template.innerHTML = templateHTML;
|
|
8
|
-
(0, _utils.defineCustomElement)('sinch-pop', class extends _utils.NectaryElement {
|
|
9
|
-
#$targetWrapper;
|
|
10
|
-
#$focus;
|
|
11
|
-
#$dialog;
|
|
12
|
-
#resizeThrottle;
|
|
13
|
-
#$targetSlot;
|
|
14
|
-
#$targetOpenSlot;
|
|
15
|
-
#$contentSlot;
|
|
16
|
-
#$targetOpenWrapper;
|
|
17
|
-
#targetActiveElement = null;
|
|
18
|
-
#controller;
|
|
19
|
-
#keydownContext;
|
|
20
|
-
#visibilityContext;
|
|
21
|
-
#targetStyleValue = null;
|
|
22
|
-
#modalWidth = 0;
|
|
23
|
-
#modalHeight = 0;
|
|
24
|
-
constructor() {
|
|
25
|
-
super();
|
|
26
|
-
const shadowRoot = this.attachShadow();
|
|
27
|
-
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
28
|
-
this.#$targetWrapper = shadowRoot.querySelector('#target');
|
|
29
|
-
this.#$focus = shadowRoot.querySelector('#focus');
|
|
30
|
-
this.#$dialog = shadowRoot.querySelector('#dialog');
|
|
31
|
-
this.#$targetSlot = shadowRoot.querySelector('slot[name="target"]');
|
|
32
|
-
this.#$targetOpenSlot = shadowRoot.querySelector('slot[name="target-open"]');
|
|
33
|
-
this.#$contentSlot = shadowRoot.querySelector('slot[name="content"]');
|
|
34
|
-
this.#$targetOpenWrapper = shadowRoot.querySelector('#target-open');
|
|
35
|
-
this.#resizeThrottle = (0, _utils.throttleAnimationFrame)(this.#updateOrientation);
|
|
36
|
-
this.#keydownContext = new _utils.Context(this.#$contentSlot, 'keydown');
|
|
37
|
-
this.#visibilityContext = new _utils.Context(this.#$contentSlot, 'visibility');
|
|
38
|
-
this.#controller = new AbortController();
|
|
39
|
-
}
|
|
40
|
-
connectedCallback() {
|
|
41
|
-
super.connectedCallback();
|
|
42
|
-
if (this.#controller === null) {
|
|
43
|
-
this.#controller = new AbortController();
|
|
44
|
-
}
|
|
45
|
-
const {
|
|
46
|
-
signal
|
|
47
|
-
} = this.#controller;
|
|
48
|
-
this.#keydownContext.listen(signal);
|
|
49
|
-
this.#visibilityContext.listen(signal);
|
|
50
|
-
this.role = 'dialog';
|
|
51
|
-
this.#$dialog.addEventListener('cancel', this.#onCancel, {
|
|
52
|
-
signal
|
|
53
|
-
});
|
|
54
|
-
this.#$dialog.addEventListener('mousedown', this.#onBackdropMouseDown, {
|
|
55
|
-
signal
|
|
56
|
-
});
|
|
57
|
-
this.addEventListener('-close', this.#onCloseReactHandler, {
|
|
58
|
-
signal
|
|
59
|
-
});
|
|
60
|
-
(0, _utils.subscribeContext)(this, 'visibility', this.#onContextVisibility, signal);
|
|
61
|
-
if ((0, _utils.getBooleanAttribute)(this, 'open')) {
|
|
62
|
-
this.#onExpand();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
disconnectedCallback() {
|
|
66
|
-
super.disconnectedCallback();
|
|
67
|
-
this.#controller.abort();
|
|
68
|
-
this.#controller = null;
|
|
69
|
-
this.#resizeThrottle.cancel();
|
|
70
|
-
this.#onCollapse();
|
|
71
|
-
}
|
|
72
|
-
static get observedAttributes() {
|
|
73
|
-
return ['orientation', 'open'];
|
|
74
|
-
}
|
|
75
|
-
set modal(isModal) {
|
|
76
|
-
(0, _utils.updateBooleanAttribute)(this, 'modal', isModal);
|
|
77
|
-
}
|
|
78
|
-
get modal() {
|
|
79
|
-
return (0, _utils.getBooleanAttribute)(this, 'modal');
|
|
80
|
-
}
|
|
81
|
-
set open(isOpen) {
|
|
82
|
-
(0, _utils.updateBooleanAttribute)(this, 'open', isOpen);
|
|
83
|
-
}
|
|
84
|
-
get open() {
|
|
85
|
-
return (0, _utils.getBooleanAttribute)(this, 'open');
|
|
86
|
-
}
|
|
87
|
-
get orientation() {
|
|
88
|
-
return (0, _utils.getLiteralAttribute)(this, _utils2.orientationValues, 'orientation');
|
|
89
|
-
}
|
|
90
|
-
set orientation(value) {
|
|
91
|
-
(0, _utils.updateLiteralAttribute)(this, _utils2.orientationValues, 'orientation', value);
|
|
92
|
-
}
|
|
93
|
-
set inset(inset) {
|
|
94
|
-
(0, _utils.updateIntegerAttribute)(this, 'inset', inset);
|
|
95
|
-
}
|
|
96
|
-
get inset() {
|
|
97
|
-
return (0, _utils.getIntegerAttribute)(this, 'inset', 0);
|
|
98
|
-
}
|
|
99
|
-
get footprintRect() {
|
|
100
|
-
return this.#getTargetRect();
|
|
101
|
-
}
|
|
102
|
-
get popoverRect() {
|
|
103
|
-
return (0, _utils.getRect)(this.#$dialog);
|
|
104
|
-
}
|
|
105
|
-
attributeChangedCallback(name, oldVal, newVal) {
|
|
106
|
-
if ((0, _utils.isAttrEqual)(oldVal, newVal)) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
switch (name) {
|
|
110
|
-
case 'open':
|
|
111
|
-
{
|
|
112
|
-
const shouldOpen = (0, _utils.isAttrTrue)(newVal);
|
|
113
|
-
if (shouldOpen) {
|
|
114
|
-
requestAnimationFrame(() => {
|
|
115
|
-
if (this.isDomConnected && (0, _utils.getBooleanAttribute)(this, 'open')) {
|
|
116
|
-
this.#onExpand();
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
} else {
|
|
120
|
-
this.#onCollapse();
|
|
121
|
-
}
|
|
122
|
-
(0, _utils.updateBooleanAttribute)(this, 'open', shouldOpen);
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
case 'orientation':
|
|
126
|
-
{
|
|
127
|
-
if (this.#$dialog.open) {
|
|
128
|
-
this.#updateOrientation();
|
|
129
|
-
}
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
#getTargetRect() {
|
|
135
|
-
let item = (0, _utils.getFirstSlotElement)(this.#$targetSlot, true);
|
|
136
|
-
if (item === null && this.#$dialog.open) {
|
|
137
|
-
item = (0, _utils.getFirstSlotElement)(this.#$targetOpenSlot, true);
|
|
138
|
-
}
|
|
139
|
-
if (item === null) {
|
|
140
|
-
return (0, _utils.getRect)(this.#$targetWrapper);
|
|
141
|
-
}
|
|
142
|
-
if (Reflect.has(item, 'footprintRect')) {
|
|
143
|
-
return item.footprintRect;
|
|
144
|
-
}
|
|
145
|
-
return (0, _utils.getRect)(item);
|
|
146
|
-
}
|
|
147
|
-
#getFirstTargetElement(slot) {
|
|
148
|
-
const item = (0, _utils.getFirstSlotElement)(slot, true);
|
|
149
|
-
if (item === null) {
|
|
150
|
-
return this.#$targetWrapper;
|
|
151
|
-
}
|
|
152
|
-
return item;
|
|
153
|
-
}
|
|
154
|
-
#onExpand() {
|
|
155
|
-
if (!this.isDomConnected || this.#$dialog.open) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
this.#$targetSlot.addEventListener('blur', this.#stopEventPropagation, true);
|
|
159
|
-
this.#$focus.setAttribute('tabindex', '-1');
|
|
160
|
-
this.#$focus.style.display = 'block';
|
|
161
|
-
this.#$focus.addEventListener('focus', this.#captureRelatedActiveElement);
|
|
162
|
-
this.#$focus.focus();
|
|
163
|
-
this.#$focus.removeEventListener('focus', this.#captureRelatedActiveElement);
|
|
164
|
-
this.#$targetSlot.removeEventListener('blur', this.#stopEventPropagation, true);
|
|
165
|
-
this.#$focus.removeAttribute('tabindex');
|
|
166
|
-
this.#$focus.removeAttribute('style');
|
|
167
|
-
this.#$dialog.showModal();
|
|
168
|
-
this.#$targetWrapper.setAttribute('aria-expanded', 'true');
|
|
169
|
-
this.#updateOrientation();
|
|
170
|
-
if (this.modal) {
|
|
171
|
-
(0, _utils.getFirstFocusableElement)(this.#$contentSlot)?.focus();
|
|
172
|
-
} else {
|
|
173
|
-
const $targetEl = this.#getFirstTargetElement(this.#$targetSlot);
|
|
174
|
-
const targetElComputedStyle = getComputedStyle($targetEl);
|
|
175
|
-
const marginLeft = parseInt(targetElComputedStyle.marginLeft);
|
|
176
|
-
const marginRight = parseInt(targetElComputedStyle.marginRight);
|
|
177
|
-
const marginTop = parseInt(targetElComputedStyle.marginTop);
|
|
178
|
-
const marginBottom = parseInt(targetElComputedStyle.marginBottom);
|
|
179
|
-
const targetRect = this.#getTargetRect();
|
|
180
|
-
this.#$targetWrapper.style.setProperty('display', 'block');
|
|
181
|
-
this.#$targetWrapper.style.setProperty('width', `${targetRect.width + marginLeft + marginRight}px`);
|
|
182
|
-
this.#$targetWrapper.style.setProperty('height', `${targetRect.height + marginTop + marginBottom}px`);
|
|
183
|
-
this.#$targetOpenWrapper.style.setProperty('width', `${targetRect.width}px`);
|
|
184
|
-
this.#$targetOpenWrapper.style.setProperty('height', `${targetRect.height}px`);
|
|
185
|
-
this.#targetStyleValue = $targetEl.getAttribute('style');
|
|
186
|
-
$targetEl.style.setProperty('margin', '0');
|
|
187
|
-
$targetEl.style.setProperty('position', 'static');
|
|
188
|
-
if (targetElComputedStyle.transform !== 'none') {
|
|
189
|
-
const matrix = new DOMMatrixReadOnly(targetElComputedStyle.transform);
|
|
190
|
-
$targetEl.style.setProperty('transform', matrix.translate(-matrix.e, -matrix.f).toString());
|
|
191
|
-
}
|
|
192
|
-
(0, _utils.getFirstSlotElement)(this.#$targetSlot)?.setAttribute('slot', 'target-open');
|
|
193
|
-
this.#$targetOpenSlot.addEventListener('keydown', this.#onTargetKeydown);
|
|
194
|
-
if (this.#targetActiveElement !== null) {
|
|
195
|
-
this.#$targetOpenSlot.addEventListener('focus', this.#stopEventPropagation, true);
|
|
196
|
-
this.#targetActiveElement.focus();
|
|
197
|
-
this.#$targetOpenSlot.removeEventListener('focus', this.#stopEventPropagation, true);
|
|
198
|
-
if (!(0, _utils.isElementFocused)(this.#targetActiveElement)) {
|
|
199
|
-
requestAnimationFrame(() => {
|
|
200
|
-
if (this.isDomConnected && this.#$dialog.open) {
|
|
201
|
-
this.#$targetOpenSlot.addEventListener('focus', this.#stopEventPropagation, true);
|
|
202
|
-
this.#targetActiveElement.focus();
|
|
203
|
-
this.#$targetOpenSlot.removeEventListener('focus', this.#stopEventPropagation, true);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
(0, _utils2.disableOverscroll)();
|
|
210
|
-
window.addEventListener('scroll', this.#updatePosition, {
|
|
211
|
-
passive: false
|
|
212
|
-
});
|
|
213
|
-
window.addEventListener('resize', this.#onResize);
|
|
214
|
-
requestAnimationFrame(() => {
|
|
215
|
-
if (this.isDomConnected && this.#$dialog.open) {
|
|
216
|
-
this.#$contentSlot.addEventListener('slotchange', this.#onContentSlotChange);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
this.#dispatchContentVisibility(true);
|
|
220
|
-
}
|
|
221
|
-
#onCollapse() {
|
|
222
|
-
if (!this.#$dialog.open) {
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const isNonModal = !this.modal;
|
|
226
|
-
this.#dispatchContentVisibility(false);
|
|
227
|
-
this.#$targetOpenSlot.removeEventListener('keydown', this.#onTargetKeydown);
|
|
228
|
-
if (isNonModal) {
|
|
229
|
-
this.#$targetOpenSlot.addEventListener('blur', this.#captureActiveElement, true);
|
|
230
|
-
}
|
|
231
|
-
this.#$dialog.close();
|
|
232
|
-
this.#$targetWrapper.setAttribute('aria-expanded', 'false');
|
|
233
|
-
if (isNonModal) {
|
|
234
|
-
this.#$targetOpenSlot.removeEventListener('blur', this.#captureActiveElement, true);
|
|
235
|
-
}
|
|
236
|
-
if (isNonModal) {
|
|
237
|
-
const targetEl = this.#getFirstTargetElement(this.#$targetOpenSlot);
|
|
238
|
-
targetEl.style.removeProperty('margin');
|
|
239
|
-
targetEl.style.removeProperty('position');
|
|
240
|
-
targetEl.style.removeProperty('transform');
|
|
241
|
-
if (this.#targetStyleValue !== null) {
|
|
242
|
-
targetEl.setAttribute('style', this.#targetStyleValue);
|
|
243
|
-
this.#targetStyleValue = null;
|
|
244
|
-
}
|
|
245
|
-
(0, _utils.getFirstSlotElement)(this.#$targetOpenSlot)?.setAttribute('slot', 'target');
|
|
246
|
-
this.#$targetWrapper.style.removeProperty('display');
|
|
247
|
-
this.#$targetWrapper.style.removeProperty('width');
|
|
248
|
-
this.#$targetWrapper.style.removeProperty('height');
|
|
249
|
-
}
|
|
250
|
-
if (this.#targetActiveElement !== null) {
|
|
251
|
-
if (!(0, _utils.isElementFocused)(this.#targetActiveElement)) {
|
|
252
|
-
this.#$targetSlot.addEventListener('focus', this.#stopEventPropagation, true);
|
|
253
|
-
this.#targetActiveElement.focus({
|
|
254
|
-
preventScroll: true
|
|
255
|
-
});
|
|
256
|
-
this.#$targetSlot.removeEventListener('focus', this.#stopEventPropagation, true);
|
|
257
|
-
if (!(0, _utils.isElementFocused)(this.#targetActiveElement)) {
|
|
258
|
-
const $targetEl = this.#targetActiveElement;
|
|
259
|
-
requestAnimationFrame(() => {
|
|
260
|
-
if (this.isDomConnected && !this.#$dialog.open) {
|
|
261
|
-
this.#$targetSlot.addEventListener('focus', this.#stopEventPropagation, true);
|
|
262
|
-
$targetEl.focus({
|
|
263
|
-
preventScroll: true
|
|
264
|
-
});
|
|
265
|
-
this.#$targetSlot.removeEventListener('focus', this.#stopEventPropagation, true);
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
this.#targetActiveElement = null;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
(0, _utils2.enableOverscroll)();
|
|
273
|
-
this.#resizeThrottle.cancel();
|
|
274
|
-
window.removeEventListener('resize', this.#onResize);
|
|
275
|
-
window.removeEventListener('scroll', this.#updatePosition);
|
|
276
|
-
this.#$contentSlot.removeEventListener('slotchange', this.#onContentSlotChange);
|
|
277
|
-
}
|
|
278
|
-
#onResize = () => {
|
|
279
|
-
this.#resizeThrottle.fn();
|
|
280
|
-
};
|
|
281
|
-
#updatePosition = () => {
|
|
282
|
-
const targetRect = this.modal ? this.#getTargetRect() : this.#$targetWrapper.getBoundingClientRect();
|
|
283
|
-
const orient = this.orientation;
|
|
284
|
-
const modalWidth = this.#modalWidth;
|
|
285
|
-
const modalHeight = this.#modalHeight;
|
|
286
|
-
const inset = this.inset;
|
|
287
|
-
let xPos = 0;
|
|
288
|
-
let yPos = 0;
|
|
289
|
-
if (orient === 'bottom-right' || orient === 'top-right' || orient === 'top-stretch' || orient === 'bottom-stretch') {
|
|
290
|
-
xPos = targetRect.x;
|
|
291
|
-
}
|
|
292
|
-
if (orient === 'bottom-left' || orient === 'top-left') {
|
|
293
|
-
xPos = targetRect.x + targetRect.width - modalWidth;
|
|
294
|
-
}
|
|
295
|
-
if (orient === 'bottom-center' || orient === 'top-center') {
|
|
296
|
-
xPos = targetRect.x + targetRect.width / 2 - modalWidth / 2;
|
|
297
|
-
}
|
|
298
|
-
if (orient === 'center-right') {
|
|
299
|
-
xPos = targetRect.x + targetRect.width;
|
|
300
|
-
}
|
|
301
|
-
if (orient === 'center-left') {
|
|
302
|
-
xPos = targetRect.x - modalWidth;
|
|
303
|
-
}
|
|
304
|
-
if (orient === 'bottom-left' || orient === 'bottom-right' || orient === 'bottom-stretch' || orient === 'bottom-center') {
|
|
305
|
-
yPos = targetRect.y + targetRect.height;
|
|
306
|
-
}
|
|
307
|
-
if (orient === 'top-left' || orient === 'top-right' || orient === 'top-stretch' || orient === 'top-center') {
|
|
308
|
-
yPos = targetRect.y - modalHeight;
|
|
309
|
-
}
|
|
310
|
-
if (orient === 'center-left' || orient === 'center-right') {
|
|
311
|
-
yPos = targetRect.y + targetRect.height / 2 - modalHeight / 2;
|
|
312
|
-
}
|
|
313
|
-
const clampedXPos = Math.max(inset, Math.min(xPos, window.innerWidth - modalWidth - inset));
|
|
314
|
-
const clampedYPos = Math.max(inset, Math.min(yPos, window.innerHeight - modalHeight - inset));
|
|
315
|
-
this.#$dialog.style.setProperty('left', `${clampedXPos}px`);
|
|
316
|
-
this.#$dialog.style.setProperty('top', `${clampedYPos}px`);
|
|
317
|
-
if (!this.modal) {
|
|
318
|
-
const targetLeftPos = targetRect.x - clampedXPos;
|
|
319
|
-
const targetTopPos = targetRect.y - clampedYPos;
|
|
320
|
-
this.#$targetOpenWrapper.style.setProperty('left', `${targetLeftPos}px`);
|
|
321
|
-
this.#$targetOpenWrapper.style.setProperty('top', `${targetTopPos}px`);
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
#updateOrientation = () => {
|
|
325
|
-
this.#$dialog.style.setProperty('width', 'max-content');
|
|
326
|
-
const targetRect = this.#getTargetRect();
|
|
327
|
-
const modalRect = this.#$dialog.getBoundingClientRect();
|
|
328
|
-
const orient = this.orientation;
|
|
329
|
-
const shouldSetWidthToTarget = orient === 'top-stretch' || orient === 'bottom-stretch';
|
|
330
|
-
const modalHeight = modalRect.height;
|
|
331
|
-
const modalWidth = shouldSetWidthToTarget ? targetRect.width : modalRect.width;
|
|
332
|
-
const inset = this.inset;
|
|
333
|
-
let xPos = 0;
|
|
334
|
-
let yPos = 0;
|
|
335
|
-
this.#modalHeight = modalHeight;
|
|
336
|
-
this.#modalWidth = modalWidth;
|
|
337
|
-
if (orient === 'bottom-right' || orient === 'top-right' || orient === 'top-stretch' || orient === 'bottom-stretch') {
|
|
338
|
-
xPos = targetRect.x;
|
|
339
|
-
}
|
|
340
|
-
if (orient === 'bottom-left' || orient === 'top-left') {
|
|
341
|
-
xPos = targetRect.x + targetRect.width - modalWidth;
|
|
342
|
-
}
|
|
343
|
-
if (orient === 'bottom-center' || orient === 'top-center') {
|
|
344
|
-
xPos = targetRect.x + targetRect.width / 2 - modalWidth / 2;
|
|
345
|
-
}
|
|
346
|
-
if (orient === 'center-right') {
|
|
347
|
-
xPos = targetRect.x + targetRect.width;
|
|
348
|
-
}
|
|
349
|
-
if (orient === 'center-left') {
|
|
350
|
-
xPos = targetRect.x - modalWidth;
|
|
351
|
-
}
|
|
352
|
-
if (orient === 'bottom-left' || orient === 'bottom-right' || orient === 'bottom-stretch' || orient === 'bottom-center') {
|
|
353
|
-
yPos = targetRect.y + targetRect.height;
|
|
354
|
-
}
|
|
355
|
-
if (orient === 'top-left' || orient === 'top-right' || orient === 'top-stretch' || orient === 'top-center') {
|
|
356
|
-
yPos = targetRect.y - modalHeight;
|
|
357
|
-
}
|
|
358
|
-
if (orient === 'center-left' || orient === 'center-right') {
|
|
359
|
-
yPos = targetRect.y + targetRect.height / 2 - modalHeight / 2;
|
|
360
|
-
}
|
|
361
|
-
xPos = Math.round(Math.max(inset, Math.min(xPos, window.innerWidth - modalWidth - inset)));
|
|
362
|
-
yPos = Math.round(Math.max(inset, Math.min(yPos, window.innerHeight - modalHeight - inset)));
|
|
363
|
-
this.#$dialog.style.setProperty('left', `${xPos}px`);
|
|
364
|
-
this.#$dialog.style.setProperty('top', `${yPos}px`);
|
|
365
|
-
this.#$dialog.style.setProperty('width', `${modalWidth}px`);
|
|
366
|
-
if (!this.modal) {
|
|
367
|
-
const targetLeftPos = targetRect.x - xPos;
|
|
368
|
-
const targetTopPos = targetRect.y - yPos;
|
|
369
|
-
this.#$targetOpenWrapper.style.setProperty('left', `${targetLeftPos}px`);
|
|
370
|
-
this.#$targetOpenWrapper.style.setProperty('top', `${targetTopPos}px`);
|
|
371
|
-
}
|
|
372
|
-
};
|
|
373
|
-
#onBackdropMouseDown = e => {
|
|
374
|
-
if ((0, _utils.isTargetEqual)(e, this.#$dialog)) {
|
|
375
|
-
const rect = this.popoverRect;
|
|
376
|
-
const isInside = e.x >= rect.x && e.x < rect.x + rect.width && e.y >= rect.y && e.y < rect.y + rect.height;
|
|
377
|
-
if (!isInside) {
|
|
378
|
-
e.stopPropagation();
|
|
379
|
-
this.#dispatchCloseEvent();
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
#onCancel = e => {
|
|
384
|
-
e.preventDefault();
|
|
385
|
-
e.stopPropagation();
|
|
386
|
-
this.#dispatchCloseEvent();
|
|
387
|
-
};
|
|
388
|
-
#onCloseReactHandler = e => {
|
|
389
|
-
(0, _utils.getReactEventHandler)(this, 'on-close')?.(e);
|
|
390
|
-
};
|
|
391
|
-
#dispatchCloseEvent() {
|
|
392
|
-
this.dispatchEvent(new CustomEvent('-close'));
|
|
393
|
-
}
|
|
394
|
-
#captureRelatedActiveElement = e => {
|
|
395
|
-
e.stopPropagation();
|
|
396
|
-
this.#targetActiveElement = e.relatedTarget;
|
|
397
|
-
};
|
|
398
|
-
#captureActiveElement = e => {
|
|
399
|
-
e.stopPropagation();
|
|
400
|
-
this.#targetActiveElement = e.target;
|
|
401
|
-
};
|
|
402
|
-
#stopEventPropagation = e => {
|
|
403
|
-
e.stopPropagation();
|
|
404
|
-
};
|
|
405
|
-
#dispatchContentVisibility(isVisible) {
|
|
406
|
-
this.#visibilityContext.dispatch(isVisible);
|
|
407
|
-
}
|
|
408
|
-
#onTargetKeydown = e => {
|
|
409
|
-
this.#keydownContext.dispatch({
|
|
410
|
-
code: e.code,
|
|
411
|
-
preventDefault: () => {
|
|
412
|
-
e.preventDefault();
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
};
|
|
416
|
-
#onContextVisibility = e => {
|
|
417
|
-
if (!e.detail) {
|
|
418
|
-
this.#dispatchCloseEvent();
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
#onContentSlotChange = e => {
|
|
422
|
-
e.stopPropagation();
|
|
423
|
-
if (this.#$dialog.open) {
|
|
424
|
-
this.#updateOrientation();
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
});
|
package/lib/cjs/pop/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/lib/cjs/pop/utils.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.orientationValues = exports.enableOverscroll = exports.disableOverscroll = void 0;
|
|
7
|
-
const orientationValues = exports.orientationValues = ['top-left', 'top-right', 'bottom-left', 'bottom-right', 'bottom-stretch', 'bottom-center', 'top-stretch', 'top-center', 'center-left', 'center-right'];
|
|
8
|
-
const bodyEl = document.body;
|
|
9
|
-
const disableOverscroll = () => {
|
|
10
|
-
bodyEl.__pop_counter__ = (bodyEl.__pop_counter__ ?? 0) + 1;
|
|
11
|
-
if (bodyEl.__pop_counter__ === 1) {
|
|
12
|
-
bodyEl.style.setProperty('overscroll-behavior', 'none');
|
|
13
|
-
document.documentElement.style.setProperty('overscroll-behavior', 'none');
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.disableOverscroll = disableOverscroll;
|
|
17
|
-
const enableOverscroll = () => {
|
|
18
|
-
bodyEl.__pop_counter__ = Math.max(0, (bodyEl.__pop_counter__ ?? 0) - 1);
|
|
19
|
-
if (bodyEl.__pop_counter__ === 0) {
|
|
20
|
-
bodyEl.style.removeProperty('overscroll-behavior');
|
|
21
|
-
document.documentElement.style.removeProperty('overscroll-behavior');
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.enableOverscroll = enableOverscroll;
|