@nectary/components 3.3.0 → 3.3.2
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 -3
- package/{lib/cjs/input → input}/types.d.ts +2 -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 -153
- 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}/index.js +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,382 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require('../icon');
|
|
4
|
-
require('../text');
|
|
5
|
-
var _utils = require('../utils');
|
|
6
|
-
var _utils2 = require('./utils');
|
|
7
|
-
const templateHTML = '<style>:host{display:block;outline:0}#content{width:fit-content;box-sizing:border-box;padding:16px;display:flex;flex-direction:column;gap:8px}#month{display:flex;flex-direction:column;row-gap:8px}.week{display:flex;flex-direction:row;column-gap:8px}.week.empty{display:none}.day{all:initial;font:var(--sinch-comp-date-picker-font-day);width:24px;height:24px;line-height:22px;color:var(--sinch-comp-date-picker-day-color-default-text-initial);background-color:var(--sinch-comp-date-picker-day-color-default-background-initial);border:1px solid var(--sinch-comp-date-picker-day-color-default-border-initial);border-radius:var(--sinch-comp-date-picker-day-shape-radius);text-align:center;box-sizing:border-box;user-select:none;cursor:pointer}.day:focus-visible{outline:1px solid var(--sinch-comp-date-picker-day-color-default-outline-focus);outline-offset:1px}.day:disabled{cursor:initial;color:var(--sinch-comp-date-picker-day-color-disabled-text-initial)}.day:enabled:hover{background-color:var(--sinch-comp-date-picker-day-color-default-background-hover)}.day:enabled.range{background-color:var(--sinch-comp-date-picker-day-color-default-range-background)}.day:enabled.selected{color:var(--sinch-comp-date-picker-day-color-checked-text-initial);background-color:var(--sinch-comp-date-picker-day-color-checked-background-initial);border-color:var(--sinch-comp-date-picker-day-color-checked-border-initial)}.day.today{font:var(--sinch-comp-date-picker-font-today);color:var(--sinch-comp-date-picker-today-color-default-text-initial);background-color:var(--sinch-comp-date-picker-today-color-default-background-initial);border-color:var(--sinch-comp-date-picker-today-color-default-border-initial)}.day.today:hover{background-color:var(--sinch-comp-date-picker-today-color-default-background-hover)}.day.today:disabled{color:var(--sinch-comp-date-picker-today-color-disabled-text-initial);border-color:var(--sinch-comp-date-picker-today-color-disabled-border-initial)}.day.today.selected{color:var(--sinch-comp-date-picker-today-color-checked-text-initial);background-color:var(--sinch-comp-date-picker-today-color-checked-background-initial);border-color:var(--sinch-comp-date-picker-today-color-checked-border-initial)}#week-day-names{display:flex;flex-direction:row;gap:8px;height:24px}.week-day-name{font:var(--sinch-comp-date-picker-font-weekday);color:var(--sinch-comp-date-picker-weekday-color-default-text-initial);text-align:center;width:24px;height:24px;line-height:24px;user-select:none;text-transform:uppercase}#content-header{display:flex;flex-direction:row;height:32px;align-items:center}#date{flex:1;text-align:center;text-transform:capitalize;--sinch-com-text-font:var(--sinch-comp-date-picker-font-header);--sinch-global-color-text:var(--sinch-comp-date-picker-header-color-default-text-initial)}#prev-year{margin-left:-4px}#next-year{margin-right:-4px}</style><div id="content"><div id="content-header"><sinch-button id="prev-year" size="s"><sinch-icon id="icon-prev-year" slot="icon" name="keyboard_double_arrow_left"></sinch-icon></sinch-button><sinch-button id="prev-month" size="s"><sinch-icon id="icon-prev-month" slot="icon" name="keyboard_arrow_left"></sinch-icon></sinch-button><sinch-text id="date" type="m" emphasized aria-live="polite"></sinch-text><sinch-button id="next-month" size="s"><sinch-icon id="icon-next-month" slot="icon" name="keyboard_arrow_right"></sinch-icon></sinch-button><sinch-button id="next-year" size="s"><sinch-icon id="icon-next-year" slot="icon" name="keyboard_double_arrow_right"></sinch-icon></sinch-button></div><div id="week-day-names"><div class="week-day-name"></div><div class="week-day-name"></div><div class="week-day-name"></div><div class="week-day-name"></div><div class="week-day-name"></div><div class="week-day-name"></div><div class="week-day-name"></div></div><div id="month"><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div><div class="week"><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button><button class="day"></button></div></div></div>';
|
|
8
|
-
const template = document.createElement('template');
|
|
9
|
-
template.innerHTML = templateHTML;
|
|
10
|
-
(0, _utils.defineCustomElement)('sinch-date-picker', class extends _utils.NectaryElement {
|
|
11
|
-
#$month;
|
|
12
|
-
#$weeks;
|
|
13
|
-
#$days;
|
|
14
|
-
#$weekDayNames;
|
|
15
|
-
#uiDate = null;
|
|
16
|
-
#date1 = null;
|
|
17
|
-
#date2 = null;
|
|
18
|
-
#minDate = null;
|
|
19
|
-
#maxDate = null;
|
|
20
|
-
#$prevMonth;
|
|
21
|
-
#$nextMonth;
|
|
22
|
-
#$prevYear;
|
|
23
|
-
#$nextYear;
|
|
24
|
-
#$date;
|
|
25
|
-
#monthNames;
|
|
26
|
-
#controller = null;
|
|
27
|
-
#isHoverSubscribed = false;
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
const shadowRoot = this.attachShadow();
|
|
31
|
-
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
32
|
-
this.#$prevMonth = shadowRoot.querySelector('#prev-month');
|
|
33
|
-
this.#$nextMonth = shadowRoot.querySelector('#next-month');
|
|
34
|
-
this.#$prevYear = shadowRoot.querySelector('#prev-year');
|
|
35
|
-
this.#$nextYear = shadowRoot.querySelector('#next-year');
|
|
36
|
-
this.#$date = shadowRoot.querySelector('#date');
|
|
37
|
-
this.#$month = shadowRoot.querySelector('#month');
|
|
38
|
-
this.#$days = [];
|
|
39
|
-
this.#$weeks = [];
|
|
40
|
-
this.#monthNames = [];
|
|
41
|
-
shadowRoot.querySelectorAll('.week').forEach((week, i) => {
|
|
42
|
-
this.#$weeks.push(week);
|
|
43
|
-
this.#$days[i] = [];
|
|
44
|
-
week.querySelectorAll('.day').forEach(day => {
|
|
45
|
-
this.#$days[i].push(day);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
this.#$weekDayNames = Array.from(shadowRoot.querySelectorAll('#week-day-names > .week-day-name'));
|
|
49
|
-
}
|
|
50
|
-
connectedCallback() {
|
|
51
|
-
this.#controller = new AbortController();
|
|
52
|
-
const options = {
|
|
53
|
-
signal: this.#controller.signal
|
|
54
|
-
};
|
|
55
|
-
this.#$prevMonth.addEventListener('click', this.#onPrevMonthClick, options);
|
|
56
|
-
this.#$nextMonth.addEventListener('click', this.#onNextMonthClick, options);
|
|
57
|
-
this.#$prevYear.addEventListener('click', this.#onPrevYearClick, options);
|
|
58
|
-
this.#$nextYear.addEventListener('click', this.#onNextYearClick, options);
|
|
59
|
-
this.#$month.addEventListener('click', this.#onDateClick, options);
|
|
60
|
-
this.addEventListener('-change', this.#onChangeReactHandler, options);
|
|
61
|
-
}
|
|
62
|
-
disconnectedCallback() {
|
|
63
|
-
this.#unsubscribeRangeHover();
|
|
64
|
-
this.#controller.abort();
|
|
65
|
-
this.#controller = null;
|
|
66
|
-
}
|
|
67
|
-
static get observedAttributes() {
|
|
68
|
-
return ['value', 'min', 'max', 'locale', 'range', 'prev-year-aria-label', 'next-year-aria-label', 'prev-month-aria-label', 'next-month-aria-label'];
|
|
69
|
-
}
|
|
70
|
-
attributeChangedCallback(name, prevValue, newVal) {
|
|
71
|
-
switch (name) {
|
|
72
|
-
case 'value':
|
|
73
|
-
{
|
|
74
|
-
this.#onValueChange();
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
case 'min':
|
|
78
|
-
{
|
|
79
|
-
this.#minDate = (0, _utils2.isoToDate)(newVal);
|
|
80
|
-
if (this.#uiDate !== null) {
|
|
81
|
-
(0, _utils2.clampMinDate)(this.#uiDate, this.#minDate);
|
|
82
|
-
}
|
|
83
|
-
this.#render();
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
case 'max':
|
|
87
|
-
{
|
|
88
|
-
this.#maxDate = (0, _utils2.isoToDate)(newVal);
|
|
89
|
-
if (this.#uiDate !== null) {
|
|
90
|
-
(0, _utils2.clampMaxDate)(this.#uiDate, this.#maxDate);
|
|
91
|
-
}
|
|
92
|
-
this.#render();
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
case 'locale':
|
|
96
|
-
{
|
|
97
|
-
const names = (0, _utils2.getDayNames)(newVal);
|
|
98
|
-
this.#$weekDayNames.forEach(($day, i) => {
|
|
99
|
-
$day.textContent = names[i];
|
|
100
|
-
});
|
|
101
|
-
this.#monthNames = (0, _utils2.getMonthNames)(newVal);
|
|
102
|
-
this.#render();
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
case 'range':
|
|
106
|
-
{
|
|
107
|
-
const isRange = (0, _utils.isAttrTrue)(newVal);
|
|
108
|
-
if (isRange) {
|
|
109
|
-
this.#onValueChange();
|
|
110
|
-
} else {
|
|
111
|
-
this.#unsubscribeRangeHover();
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
case 'prev-year-aria-label':
|
|
116
|
-
{
|
|
117
|
-
(0, _utils.updateAttribute)(this.#$prevYear, 'aria-label', newVal);
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
case 'next-year-aria-label':
|
|
121
|
-
{
|
|
122
|
-
(0, _utils.updateAttribute)(this.#$nextYear, 'aria-label', newVal);
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
case 'prev-month-aria-label':
|
|
126
|
-
{
|
|
127
|
-
(0, _utils.updateAttribute)(this.#$prevMonth, 'aria-label', newVal);
|
|
128
|
-
break;
|
|
129
|
-
}
|
|
130
|
-
case 'next-month-aria-label':
|
|
131
|
-
{
|
|
132
|
-
(0, _utils.updateAttribute)(this.#$nextMonth, 'aria-label', newVal);
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
set locale(value) {
|
|
138
|
-
(0, _utils.updateAttribute)(this, 'locale', value);
|
|
139
|
-
}
|
|
140
|
-
get locale() {
|
|
141
|
-
return (0, _utils.getAttribute)(this, 'locale', '');
|
|
142
|
-
}
|
|
143
|
-
set value(value) {
|
|
144
|
-
(0, _utils.updateAttribute)(this, 'value', value);
|
|
145
|
-
}
|
|
146
|
-
get value() {
|
|
147
|
-
return (0, _utils.getAttribute)(this, 'value', '');
|
|
148
|
-
}
|
|
149
|
-
set min(value) {
|
|
150
|
-
(0, _utils.updateAttribute)(this, 'min', value);
|
|
151
|
-
}
|
|
152
|
-
get min() {
|
|
153
|
-
return (0, _utils.getAttribute)(this, 'min', '');
|
|
154
|
-
}
|
|
155
|
-
set max(value) {
|
|
156
|
-
(0, _utils.updateAttribute)(this, 'max', value);
|
|
157
|
-
}
|
|
158
|
-
get max() {
|
|
159
|
-
return (0, _utils.getAttribute)(this, 'max', '');
|
|
160
|
-
}
|
|
161
|
-
set range(isRanged) {
|
|
162
|
-
(0, _utils.updateBooleanAttribute)(this, 'range', isRanged);
|
|
163
|
-
}
|
|
164
|
-
get range() {
|
|
165
|
-
return (0, _utils.getBooleanAttribute)(this, 'range');
|
|
166
|
-
}
|
|
167
|
-
set prevMonthAriaLabel(value) {
|
|
168
|
-
(0, _utils.updateAttribute)(this, 'prev-month-aria-label', value);
|
|
169
|
-
}
|
|
170
|
-
get prevMonthAriaLabel() {
|
|
171
|
-
return (0, _utils.getAttribute)(this, 'prev-month-aria-label', '');
|
|
172
|
-
}
|
|
173
|
-
set nextMonthAriaLabel(value) {
|
|
174
|
-
(0, _utils.updateAttribute)(this, 'next-month-aria-label', value);
|
|
175
|
-
}
|
|
176
|
-
get nextMonthAriaLabel() {
|
|
177
|
-
return (0, _utils.getAttribute)(this, 'next-month-aria-label', '');
|
|
178
|
-
}
|
|
179
|
-
get prevYearButtonRect() {
|
|
180
|
-
return (0, _utils.getRect)(this.#$prevYear);
|
|
181
|
-
}
|
|
182
|
-
get nextYearButtonRect() {
|
|
183
|
-
return (0, _utils.getRect)(this.#$nextYear);
|
|
184
|
-
}
|
|
185
|
-
get prevMonthButtonRect() {
|
|
186
|
-
return (0, _utils.getRect)(this.#$prevMonth);
|
|
187
|
-
}
|
|
188
|
-
get nextMonthButtonRect() {
|
|
189
|
-
return (0, _utils.getRect)(this.#$nextMonth);
|
|
190
|
-
}
|
|
191
|
-
nthButtonRect(index) {
|
|
192
|
-
if (index < 0 || index > 30) {
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
|
-
const indexOffset = this.#$days[0].findIndex(el => el.getAttribute('data-date') !== null);
|
|
196
|
-
if (indexOffset < 0) {
|
|
197
|
-
return null;
|
|
198
|
-
}
|
|
199
|
-
const rowIndex = Math.floor((indexOffset + index) / 7);
|
|
200
|
-
const colIndex = (indexOffset + index) % 7;
|
|
201
|
-
const $el = this.#$days[rowIndex]?.[colIndex];
|
|
202
|
-
if ($el == null) {
|
|
203
|
-
return null;
|
|
204
|
-
}
|
|
205
|
-
return (0, _utils.getRect)($el);
|
|
206
|
-
}
|
|
207
|
-
#onPrevMonthClick = e => {
|
|
208
|
-
e.stopPropagation();
|
|
209
|
-
(0, _utils2.decMonth)(this.#uiDate, this.#minDate);
|
|
210
|
-
this.#render();
|
|
211
|
-
};
|
|
212
|
-
#onNextMonthClick = e => {
|
|
213
|
-
e.stopPropagation();
|
|
214
|
-
(0, _utils2.incMonth)(this.#uiDate, this.#maxDate);
|
|
215
|
-
this.#render();
|
|
216
|
-
};
|
|
217
|
-
#onPrevYearClick = e => {
|
|
218
|
-
e.stopPropagation();
|
|
219
|
-
(0, _utils2.decYear)(this.#uiDate, this.#minDate);
|
|
220
|
-
this.#render();
|
|
221
|
-
};
|
|
222
|
-
#onNextYearClick = e => {
|
|
223
|
-
e.stopPropagation();
|
|
224
|
-
(0, _utils2.incYear)(this.#uiDate, this.#maxDate);
|
|
225
|
-
this.#render();
|
|
226
|
-
};
|
|
227
|
-
#onDateMouseEnter = e => {
|
|
228
|
-
if (this.#date1 !== null && this.#date2 === null) {
|
|
229
|
-
const hoverDateIso = (0, _utils.getTargetAttribute)(e, 'data-date');
|
|
230
|
-
if (hoverDateIso === null) {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
const hoverDate = (0, _utils2.isoToDate)(hoverDateIso);
|
|
234
|
-
const todayDate = (0, _utils2.today)();
|
|
235
|
-
for (const week of this.#$days) {
|
|
236
|
-
for (const $day of week) {
|
|
237
|
-
if ($day.hasAttribute('disabled')) {
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
const dayDate = (0, _utils2.isoToDate)($day.getAttribute('data-date'));
|
|
241
|
-
(0, _utils.setClass)($day, 'range', !(0, _utils2.areDatesEqual)(todayDate, dayDate) && ((0, _utils2.isDateBetween)(dayDate, this.#date1, hoverDate) || (0, _utils2.isDateBetween)(dayDate, hoverDate, this.#date1)));
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
#onDateClick = e => {
|
|
247
|
-
e.stopPropagation();
|
|
248
|
-
const dateIso = (0, _utils.getTargetAttribute)(e, 'data-date');
|
|
249
|
-
if (dateIso === null || dateIso.length === 0) {
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
if (this.range) {
|
|
253
|
-
if (this.#date1 !== null && this.#date2 === null) {
|
|
254
|
-
const date2 = (0, _utils2.isoToDate)(dateIso);
|
|
255
|
-
const dateTuple = (0, _utils2.sortDates)([this.#date1, date2]);
|
|
256
|
-
const value = (0, _utils.packCsv)(dateTuple.map(_utils2.dateToIso));
|
|
257
|
-
this.#date1 = dateTuple[0];
|
|
258
|
-
this.#date2 = dateTuple[1];
|
|
259
|
-
this.#unsubscribeRangeHover();
|
|
260
|
-
this.#render();
|
|
261
|
-
this.dispatchEvent(new CustomEvent('-change', {
|
|
262
|
-
detail: value
|
|
263
|
-
}));
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
this.#date1 = (0, _utils2.isoToDate)(dateIso);
|
|
267
|
-
this.#date2 = null;
|
|
268
|
-
this.#subscribeRangeHover();
|
|
269
|
-
this.#render();
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
this.dispatchEvent(new CustomEvent('-change', {
|
|
273
|
-
detail: dateIso
|
|
274
|
-
}));
|
|
275
|
-
};
|
|
276
|
-
#onValueChange() {
|
|
277
|
-
const value = this.value;
|
|
278
|
-
this.#date1 = null;
|
|
279
|
-
this.#date2 = null;
|
|
280
|
-
if (this.range) {
|
|
281
|
-
const isoDates = (0, _utils.unpackCsv)(value);
|
|
282
|
-
if (isoDates.length === 2) {
|
|
283
|
-
const date1 = (0, _utils2.isoToDate)(isoDates[0]);
|
|
284
|
-
const date2 = (0, _utils2.isoToDate)(isoDates[1]);
|
|
285
|
-
if ((0, _utils2.isValidDate)(date1) && (0, _utils2.isValidDate)(date2)) {
|
|
286
|
-
[this.#date1, this.#date2] = (0, _utils2.sortDates)([date1, date2]);
|
|
287
|
-
if (this.#uiDate === null || !(0, _utils2.isDateOnScreen)(this.#uiDate, date1) && !(0, _utils2.isDateOnScreen)(this.#uiDate, date2)) {
|
|
288
|
-
this.#uiDate = (0, _utils2.cloneDate)(this.#date1);
|
|
289
|
-
}
|
|
290
|
-
} else {
|
|
291
|
-
this.#uiDate = null;
|
|
292
|
-
}
|
|
293
|
-
} else if (isoDates.length === 1) {
|
|
294
|
-
const date1 = (0, _utils2.isoToDate)(isoDates[0]);
|
|
295
|
-
if ((0, _utils2.isValidDate)(date1)) {
|
|
296
|
-
this.#uiDate = date1;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
} else {
|
|
300
|
-
const valueDate = (0, _utils2.isoToDate)(value);
|
|
301
|
-
if ((0, _utils2.isValidDate)(valueDate)) {
|
|
302
|
-
this.#date1 = valueDate;
|
|
303
|
-
this.#uiDate = (0, _utils2.cloneDate)(this.#date1);
|
|
304
|
-
} else {
|
|
305
|
-
this.#uiDate = null;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
if (this.#uiDate === null) {
|
|
309
|
-
this.#uiDate = (0, _utils2.today)();
|
|
310
|
-
}
|
|
311
|
-
if (this.#minDate !== null) {
|
|
312
|
-
(0, _utils2.clampMinDate)(this.#uiDate, this.#minDate);
|
|
313
|
-
}
|
|
314
|
-
if (this.#maxDate !== null) {
|
|
315
|
-
(0, _utils2.clampMaxDate)(this.#uiDate, this.#maxDate);
|
|
316
|
-
}
|
|
317
|
-
this.#render();
|
|
318
|
-
}
|
|
319
|
-
#render() {
|
|
320
|
-
if (this.#uiDate === null || this.#minDate === null || this.#maxDate === null || this.locale === null) {
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
const todayDate = (0, _utils2.today)();
|
|
324
|
-
const month = (0, _utils2.getCalendarMonth)(this.#uiDate);
|
|
325
|
-
(0, _utils.updateBooleanAttribute)(this.#$prevMonth, 'disabled', (0, _utils2.canGoPrevMonth)(this.#uiDate, this.#minDate) === false);
|
|
326
|
-
(0, _utils.updateBooleanAttribute)(this.#$nextMonth, 'disabled', (0, _utils2.canGoNextMonth)(this.#uiDate, this.#maxDate) === false);
|
|
327
|
-
(0, _utils.updateBooleanAttribute)(this.#$prevYear, 'disabled', (0, _utils2.canGoPrevYear)(this.#uiDate, this.#minDate) === false);
|
|
328
|
-
(0, _utils.updateBooleanAttribute)(this.#$nextYear, 'disabled', (0, _utils2.canGoNextYear)(this.#uiDate, this.#maxDate) === false);
|
|
329
|
-
this.#$date.textContent = `${this.#monthNames[this.#uiDate.getUTCMonth()]} ${this.#uiDate.getUTCFullYear()}`;
|
|
330
|
-
for (let wi = 0; wi < this.#$days.length; wi++) {
|
|
331
|
-
const $week = this.#$days[wi];
|
|
332
|
-
let isEmptyWeek = true;
|
|
333
|
-
for (let di = 0; di < $week.length; di++) {
|
|
334
|
-
const $day = $week[di];
|
|
335
|
-
const week = month[wi];
|
|
336
|
-
const day = week?.[di];
|
|
337
|
-
$day.classList.remove('selected', 'range', 'today');
|
|
338
|
-
if (day == null) {
|
|
339
|
-
$day.textContent = '';
|
|
340
|
-
$day.removeAttribute('data-date');
|
|
341
|
-
$day.setAttribute('disabled', '');
|
|
342
|
-
$day.setAttribute('aria-hidden', 'true');
|
|
343
|
-
} else {
|
|
344
|
-
const dayIso = (0, _utils2.dateToIso)(day);
|
|
345
|
-
$day.textContent = day.getUTCDate().toString();
|
|
346
|
-
$day.setAttribute('data-date', dayIso);
|
|
347
|
-
if ((0, _utils2.isDateBetween)(day, this.#minDate, this.#maxDate)) {
|
|
348
|
-
$day.removeAttribute('disabled');
|
|
349
|
-
$day.removeAttribute('aria-hidden');
|
|
350
|
-
} else {
|
|
351
|
-
$day.setAttribute('disabled', '');
|
|
352
|
-
$day.setAttribute('aria-hidden', 'true');
|
|
353
|
-
}
|
|
354
|
-
if ((0, _utils2.areDatesEqual)(day, this.#date1) || (0, _utils2.areDatesEqual)(day, this.#date2)) {
|
|
355
|
-
$day.classList.add('selected');
|
|
356
|
-
} else if ((0, _utils2.areDatesEqual)(day, todayDate)) {
|
|
357
|
-
$day.classList.add('today');
|
|
358
|
-
} else if ((0, _utils2.isDateBetween)(day, this.#date1, this.#date2)) {
|
|
359
|
-
$day.classList.add('range');
|
|
360
|
-
}
|
|
361
|
-
isEmptyWeek = false;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
(0, _utils.setClass)(this.#$weeks[wi], 'empty', isEmptyWeek);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
#subscribeRangeHover() {
|
|
368
|
-
if (!this.#isHoverSubscribed) {
|
|
369
|
-
this.#$month.addEventListener('mouseover', this.#onDateMouseEnter);
|
|
370
|
-
this.#isHoverSubscribed = true;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
#unsubscribeRangeHover() {
|
|
374
|
-
if (this.#isHoverSubscribed) {
|
|
375
|
-
this.#$month.removeEventListener('mouseover', this.#onDateMouseEnter);
|
|
376
|
-
this.#isHoverSubscribed = false;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
#onChangeReactHandler = e => {
|
|
380
|
-
(0, _utils.getReactEventHandler)(this, 'on-change')?.(e);
|
|
381
|
-
};
|
|
382
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.today = exports.sortDates = exports.isoToDate = exports.isValidDate = exports.isDateOnScreen = exports.isDateBetween = exports.incYear = exports.incMonth = exports.getMonthNames = exports.getDayNames = exports.getCalendarMonth = exports.decYear = exports.decMonth = exports.dateToIso = exports.compareDates = exports.cloneDate = exports.clampMinDate = exports.clampMaxDate = exports.canGoPrevYear = exports.canGoPrevMonth = exports.canGoNextYear = exports.canGoNextMonth = exports.areDatesEqual = void 0;
|
|
7
|
-
const DAYS_IN_WEEK = 7;
|
|
8
|
-
const pad = value => {
|
|
9
|
-
return value.toString().padStart(2, '0');
|
|
10
|
-
};
|
|
11
|
-
const getCalendarMonth = (date, options) => {
|
|
12
|
-
const {
|
|
13
|
-
firstDayOfWeek
|
|
14
|
-
} = {
|
|
15
|
-
firstDayOfWeek: 1,
|
|
16
|
-
...options
|
|
17
|
-
};
|
|
18
|
-
const firstDateOfMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1));
|
|
19
|
-
const lastDateOfMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 0));
|
|
20
|
-
const firstWeekdayOfMonth = firstDateOfMonth.getUTCDay();
|
|
21
|
-
const lastWeekdayOfMonth = lastDateOfMonth.getUTCDay();
|
|
22
|
-
const daysInMonth = lastDateOfMonth.getUTCDate();
|
|
23
|
-
const daysToPrepend = (firstWeekdayOfMonth - firstDayOfWeek + DAYS_IN_WEEK) % DAYS_IN_WEEK;
|
|
24
|
-
const daysToAppend = (DAYS_IN_WEEK - 1 - lastWeekdayOfMonth + firstDayOfWeek) % DAYS_IN_WEEK;
|
|
25
|
-
const month = [];
|
|
26
|
-
let week = [];
|
|
27
|
-
for (let i = 1 - daysToPrepend; i <= daysInMonth + daysToAppend + 1; i++) {
|
|
28
|
-
if (i <= 0 || i > daysInMonth) {
|
|
29
|
-
week.push(null);
|
|
30
|
-
} else {
|
|
31
|
-
const result = new Date(date);
|
|
32
|
-
result.setUTCDate(i);
|
|
33
|
-
week.push(result);
|
|
34
|
-
}
|
|
35
|
-
if (week.length === 7) {
|
|
36
|
-
month.push(week);
|
|
37
|
-
week = [];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return month;
|
|
41
|
-
};
|
|
42
|
-
exports.getCalendarMonth = getCalendarMonth;
|
|
43
|
-
const dateToIso = date => {
|
|
44
|
-
return `${date.getUTCFullYear()}-${pad(date.getUTCMonth() + 1)}-${pad(date.getUTCDate())}`;
|
|
45
|
-
};
|
|
46
|
-
exports.dateToIso = dateToIso;
|
|
47
|
-
const isoToDate = value => {
|
|
48
|
-
return new Date(`${value.substring(0, 10)}T00:00:00Z`);
|
|
49
|
-
};
|
|
50
|
-
exports.isoToDate = isoToDate;
|
|
51
|
-
const today = () => {
|
|
52
|
-
const today = new Date();
|
|
53
|
-
return new Date(Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate()));
|
|
54
|
-
};
|
|
55
|
-
exports.today = today;
|
|
56
|
-
const getDayNames = locale => {
|
|
57
|
-
const formatter = new Intl.DateTimeFormat(locale, {
|
|
58
|
-
weekday: 'narrow',
|
|
59
|
-
timeZone: 'UTC'
|
|
60
|
-
});
|
|
61
|
-
return [1, 2, 3, 4, 5, 6, 7].map(dd => {
|
|
62
|
-
const date = new Date(Date.UTC(2018, 0, dd));
|
|
63
|
-
return formatter.format(date);
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
exports.getDayNames = getDayNames;
|
|
67
|
-
const getMonthNames = locale => {
|
|
68
|
-
const formatter = new Intl.DateTimeFormat(locale, {
|
|
69
|
-
month: 'short',
|
|
70
|
-
timeZone: 'UTC'
|
|
71
|
-
});
|
|
72
|
-
return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(mm => {
|
|
73
|
-
const date = new Date(Date.UTC(2018, mm, 1));
|
|
74
|
-
return formatter.format(date);
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
exports.getMonthNames = getMonthNames;
|
|
78
|
-
const isValidDate = value => {
|
|
79
|
-
return value instanceof Date && !isNaN(value);
|
|
80
|
-
};
|
|
81
|
-
exports.isValidDate = isValidDate;
|
|
82
|
-
const compareDates = (a, b) => {
|
|
83
|
-
return a.getTime() - b.getTime();
|
|
84
|
-
};
|
|
85
|
-
exports.compareDates = compareDates;
|
|
86
|
-
const clampMinDate = (date, min) => {
|
|
87
|
-
if (compareDates(min, date) > 0) {
|
|
88
|
-
date.setTime(min.getTime());
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
exports.clampMinDate = clampMinDate;
|
|
92
|
-
const clampMaxDate = (date, max) => {
|
|
93
|
-
if (compareDates(date, max) > 0) {
|
|
94
|
-
date.setTime(max.getTime());
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
exports.clampMaxDate = clampMaxDate;
|
|
98
|
-
const incMonth = (date, max) => {
|
|
99
|
-
date.setUTCMonth(date.getUTCMonth() + 1);
|
|
100
|
-
clampMaxDate(date, max);
|
|
101
|
-
};
|
|
102
|
-
exports.incMonth = incMonth;
|
|
103
|
-
const decMonth = (date, min) => {
|
|
104
|
-
date.setUTCMonth(date.getUTCMonth() - 1);
|
|
105
|
-
clampMinDate(date, min);
|
|
106
|
-
};
|
|
107
|
-
exports.decMonth = decMonth;
|
|
108
|
-
const incYear = (date, max) => {
|
|
109
|
-
date.setUTCFullYear(date.getUTCFullYear() + 1);
|
|
110
|
-
clampMaxDate(date, max);
|
|
111
|
-
};
|
|
112
|
-
exports.incYear = incYear;
|
|
113
|
-
const decYear = (date, min) => {
|
|
114
|
-
date.setUTCFullYear(date.getUTCFullYear() - 1);
|
|
115
|
-
clampMinDate(date, min);
|
|
116
|
-
};
|
|
117
|
-
exports.decYear = decYear;
|
|
118
|
-
const canGoPrevMonth = (date, min) => {
|
|
119
|
-
const prevMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 0));
|
|
120
|
-
return compareDates(prevMonth, min) >= 0;
|
|
121
|
-
};
|
|
122
|
-
exports.canGoPrevMonth = canGoPrevMonth;
|
|
123
|
-
const canGoNextMonth = (date, max) => {
|
|
124
|
-
const nextMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1));
|
|
125
|
-
return compareDates(max, nextMonth) >= 0;
|
|
126
|
-
};
|
|
127
|
-
exports.canGoNextMonth = canGoNextMonth;
|
|
128
|
-
const canGoNextYear = (date, max) => {
|
|
129
|
-
const nextYear = new Date(Date.UTC(date.getUTCFullYear() + 1, 0, 1));
|
|
130
|
-
return compareDates(max, nextYear) >= 0;
|
|
131
|
-
};
|
|
132
|
-
exports.canGoNextYear = canGoNextYear;
|
|
133
|
-
const canGoPrevYear = (date, min) => {
|
|
134
|
-
const prevYear = new Date(Date.UTC(date.getUTCFullYear(), 0, 0));
|
|
135
|
-
return compareDates(prevYear, min) >= 0;
|
|
136
|
-
};
|
|
137
|
-
exports.canGoPrevYear = canGoPrevYear;
|
|
138
|
-
const isDateBetween = (date, min, max) => {
|
|
139
|
-
if (min === null || max === null) {
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
return compareDates(date, min) >= 0 && compareDates(max, date) >= 0;
|
|
143
|
-
};
|
|
144
|
-
exports.isDateBetween = isDateBetween;
|
|
145
|
-
const areDatesEqual = (a, b) => {
|
|
146
|
-
if (b === null) {
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
return compareDates(a, b) === 0;
|
|
150
|
-
};
|
|
151
|
-
exports.areDatesEqual = areDatesEqual;
|
|
152
|
-
const cloneDate = date => {
|
|
153
|
-
return new Date(date.getTime());
|
|
154
|
-
};
|
|
155
|
-
exports.cloneDate = cloneDate;
|
|
156
|
-
const sortDates = dateTuple => {
|
|
157
|
-
if (compareDates(dateTuple[0], dateTuple[1]) > 0) {
|
|
158
|
-
return [dateTuple[1], dateTuple[0]];
|
|
159
|
-
}
|
|
160
|
-
return dateTuple;
|
|
161
|
-
};
|
|
162
|
-
exports.sortDates = sortDates;
|
|
163
|
-
const isDateOnScreen = (uiDate, date) => {
|
|
164
|
-
if (uiDate === null || date === null) {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
const firstDateOfMonth = new Date(Date.UTC(uiDate.getUTCFullYear(), uiDate.getUTCMonth(), 1));
|
|
168
|
-
const lastDateOfMonth = new Date(Date.UTC(uiDate.getUTCFullYear(), uiDate.getUTCMonth() + 1, 0));
|
|
169
|
-
return isDateBetween(date, firstDateOfMonth, lastDateOfMonth);
|
|
170
|
-
};
|
|
171
|
-
exports.isDateOnScreen = isDateOnScreen;
|