@nectary/components 4.12.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/global/index.d.ts +1 -0
- package/accordion/global/index.js +2 -0
- package/accordion/index.d.ts +1 -22
- package/accordion/index.js +41 -39
- package/accordion/types.d.ts +21 -1
- package/accordion/types.js +1 -1
- package/accordion-item/global/index.d.ts +1 -0
- package/accordion-item/global/index.js +2 -0
- package/accordion-item/index.d.ts +2 -22
- package/accordion-item/index.js +53 -49
- package/accordion-item/types.d.ts +21 -1
- package/accordion-item/types.js +1 -1
- package/accordion-item/utils.js +4 -1
- package/action-menu/global/index.d.ts +1 -0
- package/action-menu/global/index.js +2 -0
- package/action-menu/index.d.ts +1 -22
- package/action-menu/index.js +62 -77
- package/action-menu/types.d.ts +21 -1
- package/action-menu/types.js +1 -1
- package/action-menu-option/global/index.d.ts +1 -0
- package/action-menu-option/global/index.js +2 -0
- package/action-menu-option/index.d.ts +1 -22
- package/action-menu-option/index.js +39 -41
- package/action-menu-option/types.d.ts +21 -1
- package/action-menu-option/types.js +1 -1
- package/action-menu-option/utils.js +6 -3
- package/alert/global/index.d.ts +1 -0
- package/alert/global/index.js +2 -0
- package/alert/index.d.ts +2 -22
- package/alert/index.js +24 -21
- package/alert/types.d.ts +21 -1
- package/alert/types.js +1 -1
- package/alert/utils.js +4 -1
- package/avatar/colors.js +1 -1
- package/avatar/global/index.d.ts +1 -0
- package/avatar/global/index.js +2 -0
- package/avatar/index.d.ts +2 -22
- package/avatar/index.js +42 -41
- package/avatar/types.d.ts +21 -1
- package/avatar/types.js +1 -1
- package/avatar/utils.js +9 -4
- package/badge/global/index.d.ts +1 -0
- package/badge/global/index.js +2 -0
- package/badge/index.d.ts +3 -22
- package/badge/index.js +52 -51
- package/badge/types.d.ts +21 -1
- package/badge/types.js +1 -1
- package/badge/utils.js +4 -1
- package/bundle.d.ts +78 -0
- package/bundle.js +13069 -0
- package/bundle.ts +80 -0
- package/button/global/index.d.ts +1 -0
- package/button/global/index.js +2 -0
- package/button/index.d.ts +2 -22
- package/button/index.js +101 -111
- package/button/types.d.ts +21 -1
- package/button/types.js +1 -1
- package/button/utils.js +18 -2
- package/button-group/global/index.d.ts +1 -0
- package/button-group/global/index.js +2 -0
- package/button-group/index.d.ts +1 -22
- package/button-group/index.js +20 -18
- package/button-group/types.d.ts +22 -3
- package/button-group/types.js +1 -1
- package/button-group-item/global/index.d.ts +1 -0
- package/button-group-item/global/index.js +2 -0
- package/button-group-item/index.d.ts +2 -22
- package/button-group-item/index.js +31 -42
- package/button-group-item/types.d.ts +22 -3
- package/button-group-item/types.js +1 -1
- package/card-container/global/index.d.ts +1 -0
- package/card-container/global/index.js +2 -0
- package/card-container/index.d.ts +1 -21
- package/card-container/index.js +8 -5
- package/card-container/types.d.ts +21 -1
- package/card-container/types.js +1 -1
- package/card-v2/global/index.d.ts +1 -0
- package/card-v2/global/index.js +2 -0
- package/card-v2/index.d.ts +1 -22
- package/card-v2/index.js +59 -57
- package/card-v2/types.d.ts +21 -1
- package/card-v2/types.js +1 -1
- package/card-v2-title/global/index.d.ts +1 -0
- package/card-v2-title/global/index.js +2 -0
- package/card-v2-title/index.d.ts +2 -22
- package/card-v2-title/index.js +28 -26
- package/card-v2-title/types.d.ts +21 -1
- package/card-v2-title/types.js +1 -1
- package/checkbox/global/index.d.ts +1 -0
- package/checkbox/global/index.js +2 -0
- package/checkbox/index.d.ts +1 -22
- package/checkbox/index.js +90 -81
- package/checkbox/types.d.ts +21 -1
- package/checkbox/types.js +1 -1
- package/chip/colors.js +1 -1
- package/chip/global/index.d.ts +1 -0
- package/chip/global/index.js +2 -0
- package/chip/index.d.ts +1 -22
- package/chip/index.js +64 -75
- package/chip/types.d.ts +21 -1
- package/chip/types.js +1 -1
- package/chip/utils.js +7 -3
- package/code-tag/global/index.d.ts +1 -0
- package/code-tag/global/index.js +2 -0
- package/code-tag/index.d.ts +1 -22
- package/code-tag/index.js +17 -14
- package/code-tag/types.d.ts +21 -1
- package/code-tag/types.js +1 -1
- package/color-menu/global/index.d.ts +1 -0
- package/color-menu/global/index.js +2 -0
- package/color-menu/index.d.ts +2 -22
- package/color-menu/index.js +115 -115
- package/color-menu/types.d.ts +21 -1
- package/color-menu/types.js +1 -1
- package/color-menu/utils.js +6 -3
- package/color-menu-option/global/index.d.ts +1 -0
- package/color-menu-option/global/index.js +2 -0
- package/color-menu-option/index.d.ts +1 -22
- package/color-menu-option/index.js +30 -26
- package/color-menu-option/types.d.ts +21 -1
- package/color-menu-option/types.js +1 -1
- package/color-menu-option/utils.js +6 -3
- package/color-swatch/global/index.d.ts +1 -0
- package/color-swatch/global/index.js +2 -0
- package/color-swatch/index.d.ts +1 -22
- package/color-swatch/index.js +23 -20
- package/color-swatch/types.d.ts +21 -1
- package/color-swatch/types.js +1 -1
- package/color-swatch/utils.js +7 -3
- package/date-picker/global/index.d.ts +1 -0
- package/date-picker/global/index.js +2 -0
- package/date-picker/index.d.ts +2 -22
- package/date-picker/index.js +157 -150
- package/date-picker/types.d.ts +21 -1
- package/date-picker/types.js +1 -1
- package/date-picker/utils.js +59 -42
- package/dialog/global/index.d.ts +1 -0
- package/dialog/global/index.js +2 -0
- package/dialog/index.d.ts +1 -22
- package/dialog/index.js +71 -58
- package/dialog/types.d.ts +21 -1
- package/dialog/types.js +1 -1
- package/dialog/utils.js +11 -7
- package/emoji/global/index.d.ts +1 -0
- package/emoji/global/index.js +2 -0
- package/emoji/index.d.ts +1 -22
- package/emoji/index.js +19 -16
- package/emoji/types.d.ts +21 -1
- package/emoji/types.js +1 -1
- package/emoji/utils.js +22 -17
- package/emoji-picker/global/index.d.ts +1 -0
- package/emoji-picker/global/index.js +2 -0
- package/emoji-picker/index.d.ts +2 -22
- package/emoji-picker/index.js +138 -118
- package/emoji-picker/types.d.ts +21 -1
- package/emoji-picker/types.js +1 -1
- package/field/global/index.d.ts +1 -0
- package/field/global/index.js +2 -0
- package/field/index.d.ts +1 -22
- package/field/index.js +63 -60
- package/field/types.d.ts +21 -1
- package/field/types.js +1 -1
- package/file-drop/global/index.d.ts +1 -0
- package/file-drop/global/index.js +2 -0
- package/file-drop/index.d.ts +1 -22
- package/file-drop/index.js +103 -98
- package/file-drop/types.d.ts +21 -1
- package/file-drop/types.js +1 -1
- package/file-drop/utils.js +27 -22
- package/file-picker/global/index.d.ts +1 -0
- package/file-picker/global/index.js +2 -0
- package/file-picker/index.d.ts +1 -22
- package/file-picker/index.js +53 -48
- package/file-picker/types.d.ts +21 -1
- package/file-picker/types.js +1 -1
- package/file-picker/utils.js +6 -3
- package/file-status/global/index.d.ts +1 -0
- package/file-status/global/index.js +2 -0
- package/file-status/index.d.ts +2 -22
- package/file-status/index.js +33 -22
- package/file-status/types.d.ts +21 -1
- package/file-status/types.js +1 -1
- package/file-status/utils.js +4 -1
- package/flag/global/index.d.ts +1 -0
- package/flag/global/index.js +2 -0
- package/flag/index.d.ts +1 -22
- package/flag/index.js +19 -16
- package/flag/types.d.ts +21 -1
- package/flag/types.js +1 -1
- package/flag/utils.js +11 -8
- package/grid/global/index.d.ts +1 -0
- package/grid/global/index.js +2 -0
- package/grid/index.d.ts +1 -22
- package/grid/index.js +8 -5
- package/grid/types.d.ts +21 -1
- package/grid/types.js +1 -1
- package/grid-item/global/index.d.ts +1 -0
- package/grid-item/global/index.js +2 -0
- package/grid-item/index.d.ts +1 -22
- package/grid-item/index.js +17 -13
- package/grid-item/types.d.ts +21 -1
- package/grid-item/types.js +1 -1
- package/help-tooltip/global/index.d.ts +1 -0
- package/help-tooltip/global/index.js +2 -0
- package/help-tooltip/index.d.ts +1 -22
- package/help-tooltip/index.js +29 -26
- package/help-tooltip/types.d.ts +21 -1
- package/help-tooltip/types.js +1 -1
- package/icon/generated-icon-type.js +1 -1
- package/icon/global/index.d.ts +1 -0
- package/icon/global/index.js +2 -0
- package/icon/index.d.ts +1 -22
- package/icon/index.js +30 -28
- package/icon/types.d.ts +21 -1
- package/icon/types.js +1 -1
- package/inline-alert/global/index.d.ts +1 -0
- package/inline-alert/global/index.js +2 -0
- package/inline-alert/index.d.ts +2 -22
- package/inline-alert/index.js +58 -39
- package/inline-alert/types.d.ts +21 -1
- package/inline-alert/types.js +1 -1
- package/inline-alert/utils.js +4 -1
- package/input/global/index.d.ts +1 -0
- package/input/global/index.js +2 -0
- package/input/index.d.ts +2 -22
- package/input/index.js +295 -317
- package/input/types.d.ts +21 -1
- package/input/types.js +1 -1
- package/input/utils.js +56 -46
- package/link/global/index.d.ts +1 -0
- package/link/global/index.js +2 -0
- package/link/index.d.ts +1 -22
- package/link/index.js +88 -79
- package/link/types.d.ts +21 -1
- package/link/types.js +1 -1
- package/list/global/index.d.ts +1 -0
- package/list/global/index.js +2 -0
- package/list/index.d.ts +1 -21
- package/list/index.js +9 -6
- package/list/types.d.ts +21 -1
- package/list/types.js +1 -1
- package/list-item/global/index.d.ts +1 -0
- package/list-item/global/index.js +2 -0
- package/list-item/index.d.ts +1 -22
- package/list-item/index.js +9 -6
- package/list-item/types.d.ts +21 -1
- package/list-item/types.js +1 -1
- package/package.json +11 -5
- package/pagination/global/index.d.ts +1 -0
- package/pagination/global/index.js +2 -0
- package/pagination/index.d.ts +2 -22
- package/pagination/index.js +64 -46
- package/pagination/types.d.ts +21 -1
- package/pagination/types.js +1 -1
- package/persistent-overlay/global/index.d.ts +1 -0
- package/persistent-overlay/global/index.js +2 -0
- package/persistent-overlay/index.d.ts +1 -22
- package/persistent-overlay/index.js +42 -44
- package/persistent-overlay/types.d.ts +21 -1
- package/persistent-overlay/types.js +1 -1
- package/pop/global/index.d.ts +1 -0
- package/pop/global/index.js +2 -0
- package/pop/index.d.ts +3 -22
- package/pop/index.js +149 -150
- package/pop/types.d.ts +21 -1
- package/pop/types.js +1 -1
- package/pop/utils.js +24 -8
- package/popover/global/index.d.ts +1 -0
- package/popover/global/index.js +2 -0
- package/popover/index.d.ts +2 -22
- package/popover/index.js +104 -67
- package/popover/types.d.ts +21 -1
- package/popover/types.js +1 -1
- package/popover/utils.js +18 -7
- package/progress/global/index.d.ts +1 -0
- package/progress/global/index.js +2 -0
- package/progress/index.d.ts +1 -22
- package/progress/index.js +31 -33
- package/progress/types.d.ts +21 -1
- package/progress/types.js +1 -1
- package/progress-stepper/global/index.d.ts +1 -0
- package/progress-stepper/global/index.js +2 -0
- package/progress-stepper/index.d.ts +2 -22
- package/progress-stepper/index.js +64 -66
- package/progress-stepper/types.d.ts +21 -1
- package/progress-stepper/types.js +1 -1
- package/progress-stepper-item/global/index.d.ts +1 -0
- package/progress-stepper-item/global/index.js +2 -0
- package/progress-stepper-item/index.d.ts +1 -22
- package/progress-stepper-item/index.js +58 -50
- package/progress-stepper-item/types.d.ts +21 -1
- package/progress-stepper-item/types.js +1 -1
- package/progress-stepper-item/utils.js +22 -11
- package/radio/global/index.d.ts +1 -0
- package/radio/global/index.js +2 -0
- package/radio/index.d.ts +1 -22
- package/radio/index.js +79 -83
- package/radio/types.d.ts +21 -1
- package/radio/types.js +1 -1
- package/radio-option/global/index.d.ts +1 -0
- package/radio-option/global/index.js +2 -0
- package/radio-option/index.d.ts +1 -22
- package/radio-option/index.js +47 -41
- package/radio-option/types.d.ts +21 -1
- package/radio-option/types.js +1 -1
- package/rich-text/global/index.d.ts +1 -0
- package/rich-text/global/index.js +2 -0
- package/rich-text/index.d.ts +1 -22
- package/rich-text/index.js +45 -46
- package/rich-text/types.d.ts +21 -1
- package/rich-text/types.js +1 -1
- package/rich-text/utils.js +31 -33
- package/rich-textarea/global/index.d.ts +1 -0
- package/rich-textarea/global/index.js +2 -0
- package/rich-textarea/index.d.ts +1 -22
- package/rich-textarea/index.js +201 -194
- package/rich-textarea/types.d.ts +21 -1
- package/rich-textarea/types.js +1 -1
- package/rich-textarea/utils.js +313 -340
- package/segment-collapse/global/index.d.ts +1 -0
- package/segment-collapse/global/index.js +2 -0
- package/segment-collapse/index.d.ts +1 -22
- package/segment-collapse/index.js +31 -25
- package/segment-collapse/types.d.ts +21 -1
- package/segment-collapse/types.js +1 -1
- package/segmented-control/global/index.d.ts +1 -0
- package/segmented-control/global/index.js +2 -0
- package/segmented-control/index.d.ts +1 -22
- package/segmented-control/index.js +45 -45
- package/segmented-control/types.d.ts +21 -1
- package/segmented-control/types.js +1 -1
- package/segmented-control-option/global/index.d.ts +1 -0
- package/segmented-control-option/global/index.js +2 -0
- package/segmented-control-option/index.d.ts +1 -22
- package/segmented-control-option/index.js +44 -46
- package/segmented-control-option/types.d.ts +21 -1
- package/segmented-control-option/types.js +1 -1
- package/segmented-icon-control/global/index.d.ts +1 -0
- package/segmented-icon-control/global/index.js +2 -0
- package/segmented-icon-control/index.d.ts +1 -22
- package/segmented-icon-control/index.js +51 -50
- package/segmented-icon-control/types.d.ts +21 -1
- package/segmented-icon-control/types.js +1 -1
- package/segmented-icon-control-option/global/index.d.ts +1 -0
- package/segmented-icon-control-option/global/index.js +2 -0
- package/segmented-icon-control-option/index.d.ts +1 -22
- package/segmented-icon-control-option/index.js +36 -37
- package/segmented-icon-control-option/types.d.ts +21 -1
- package/segmented-icon-control-option/types.js +1 -1
- package/select-button/global/index.d.ts +1 -0
- package/select-button/global/index.js +2 -0
- package/select-button/index.d.ts +1 -26
- package/select-button/index.js +104 -112
- package/select-button/types.d.ts +25 -1
- package/select-button/types.js +1 -1
- package/select-menu/global/index.d.ts +1 -0
- package/select-menu/global/index.js +2 -0
- package/select-menu/index.d.ts +1 -22
- package/select-menu/index.js +201 -164
- package/select-menu/types.d.ts +21 -1
- package/select-menu/types.js +1 -1
- package/select-menu-option/global/index.d.ts +1 -0
- package/select-menu-option/global/index.js +2 -0
- package/select-menu-option/index.d.ts +1 -22
- package/select-menu-option/index.js +42 -33
- package/select-menu-option/types.d.ts +21 -1
- package/select-menu-option/types.js +1 -1
- package/select-menu-option/utils.js +4 -1
- package/skeleton/global/index.d.ts +1 -0
- package/skeleton/global/index.js +2 -0
- package/skeleton/index.d.ts +1 -22
- package/skeleton/index.js +35 -38
- package/skeleton/types.d.ts +21 -1
- package/skeleton/types.js +1 -1
- package/skeleton-item/global/index.d.ts +1 -0
- package/skeleton-item/global/index.js +2 -0
- package/skeleton-item/index.d.ts +1 -22
- package/skeleton-item/index.js +8 -5
- package/skeleton-item/types.d.ts +21 -1
- package/skeleton-item/types.js +1 -1
- package/spinner/global/index.d.ts +1 -0
- package/spinner/global/index.js +2 -0
- package/spinner/index.d.ts +1 -22
- package/spinner/index.js +31 -29
- package/spinner/types.d.ts +21 -1
- package/spinner/types.js +1 -1
- package/standalone.d.ts +0 -8
- package/standalone.js +79 -87
- package/standalone.ts +0 -8
- package/stop-events/index.js +12 -12
- package/table/global/index.d.ts +1 -0
- package/table/global/index.js +2 -0
- package/table/index.d.ts +1 -21
- package/table/index.js +9 -6
- package/table/types.d.ts +21 -1
- package/table/types.js +1 -1
- package/table-body/global/index.d.ts +1 -0
- package/table-body/global/index.js +2 -0
- package/table-body/index.d.ts +1 -21
- package/table-body/index.js +9 -6
- package/table-body/types.d.ts +21 -1
- package/table-body/types.js +1 -1
- package/table-cell/global/index.d.ts +1 -0
- package/table-cell/global/index.js +2 -0
- package/table-cell/index.d.ts +2 -22
- package/table-cell/index.js +13 -9
- package/table-cell/types.d.ts +21 -1
- package/table-cell/types.js +1 -1
- package/table-cell/utils.js +4 -1
- package/table-head/global/index.d.ts +1 -0
- package/table-head/global/index.js +2 -0
- package/table-head/index.d.ts +1 -21
- package/table-head/index.js +9 -6
- package/table-head/types.d.ts +21 -1
- package/table-head/types.js +1 -1
- package/table-head-cell/global/index.d.ts +1 -0
- package/table-head-cell/global/index.js +2 -0
- package/table-head-cell/index.d.ts +1 -22
- package/table-head-cell/index.js +29 -27
- package/table-head-cell/types.d.ts +21 -1
- package/table-head-cell/types.js +1 -1
- package/table-row/global/index.d.ts +1 -0
- package/table-row/global/index.js +2 -0
- package/table-row/index.d.ts +1 -22
- package/table-row/index.js +20 -17
- package/table-row/types.d.ts +21 -1
- package/table-row/types.js +1 -1
- package/tabs/global/index.d.ts +1 -0
- package/tabs/global/index.js +2 -0
- package/tabs/index.d.ts +2 -22
- package/tabs/index.js +32 -35
- package/tabs/types.d.ts +21 -1
- package/tabs/types.js +1 -1
- package/tabs-icon-option/global/index.d.ts +1 -0
- package/tabs-icon-option/global/index.js +2 -0
- package/tabs-icon-option/index.d.ts +1 -22
- package/tabs-icon-option/index.js +38 -40
- package/tabs-icon-option/types.d.ts +21 -1
- package/tabs-icon-option/types.js +1 -1
- package/tabs-option/global/index.d.ts +1 -0
- package/tabs-option/global/index.js +2 -0
- package/tabs-option/index.d.ts +1 -22
- package/tabs-option/index.js +41 -43
- package/tabs-option/types.d.ts +21 -1
- package/tabs-option/types.js +1 -1
- package/tag/colors.js +1 -1
- package/tag/global/index.d.ts +1 -0
- package/tag/global/index.js +2 -0
- package/tag/index.d.ts +1 -22
- package/tag/index.js +45 -44
- package/tag/types.d.ts +21 -1
- package/tag/types.js +1 -1
- package/tag/utils.js +7 -3
- package/text/global/index.d.ts +1 -0
- package/text/global/index.js +2 -0
- package/text/index.d.ts +2 -22
- package/text/index.js +33 -28
- package/text/types.d.ts +21 -1
- package/text/types.js +1 -1
- package/text/utils.js +4 -1
- package/textarea/global/index.d.ts +1 -0
- package/textarea/global/index.js +2 -0
- package/textarea/index.d.ts +1 -22
- package/textarea/index.js +147 -152
- package/textarea/types.d.ts +21 -1
- package/textarea/types.js +1 -1
- package/time-picker/global/index.d.ts +1 -0
- package/time-picker/global/index.js +2 -0
- package/time-picker/index.d.ts +2 -22
- package/time-picker/index.js +119 -123
- package/time-picker/types.d.ts +21 -1
- package/time-picker/types.js +1 -1
- package/time-picker/utils.js +31 -33
- package/title/global/index.d.ts +1 -0
- package/title/global/index.js +2 -0
- package/title/index.d.ts +2 -22
- package/title/index.js +32 -31
- package/title/types.d.ts +21 -1
- package/title/types.js +1 -1
- package/title/utils.js +18 -14
- package/toast/global/index.d.ts +1 -0
- package/toast/global/index.js +2 -0
- package/toast/index.d.ts +2 -22
- package/toast/index.js +37 -34
- package/toast/types.d.ts +21 -1
- package/toast/types.js +1 -1
- package/toast/utils.js +4 -1
- package/toast-manager/global/index.d.ts +1 -0
- package/toast-manager/global/index.js +2 -0
- package/toast-manager/index.d.ts +3 -22
- package/toast-manager/index.js +77 -63
- package/toast-manager/types.d.ts +21 -1
- package/toast-manager/types.js +1 -1
- package/toast-manager/utils.js +4 -1
- package/toggle/global/index.d.ts +1 -0
- package/toggle/global/index.js +2 -0
- package/toggle/index.d.ts +1 -22
- package/toggle/index.js +81 -75
- package/toggle/types.d.ts +21 -1
- package/toggle/types.js +1 -1
- package/tooltip/global/index.d.ts +1 -0
- package/tooltip/global/index.js +2 -0
- package/tooltip/index.d.ts +3 -22
- package/tooltip/index.js +105 -93
- package/tooltip/tooltip-state.js +56 -64
- package/tooltip/types.d.ts +21 -1
- package/tooltip/types.js +1 -1
- package/tooltip/utils.js +32 -13
- package/types.d.ts +12 -29
- package/utils/adapters.js +1 -1
- package/utils/component-names.d.ts +3 -0
- package/utils/component-names.js +85 -0
- package/utils/context.js +32 -42
- package/utils/countries.js +490 -2
- package/utils/csv.js +13 -6
- package/utils/debounce.js +10 -3
- package/utils/dom.js +60 -53
- package/utils/element.d.ts +107 -15
- package/utils/element.js +100 -19
- package/utils/event-target.js +11 -5
- package/utils/form.js +17 -12
- package/utils/get-react-event-handler.js +6 -3
- package/utils/global-components-constants.d.ts +3 -0
- package/utils/global-components-constants.js +8 -0
- package/utils/global-components-manager.d.ts +71 -0
- package/utils/global-components-manager.js +24 -0
- package/utils/index.js +65 -12
- package/utils/markdown.js +56 -43
- package/utils/rect.js +13 -18
- package/utils/shared/global-elements-manager.d.js +1 -0
- package/utils/shared/global-elements-manager.d.ts +62 -0
- package/utils/shared/global-elements-manager.js +163 -0
- package/utils/shared/global-elements-store.d.js +1 -0
- package/utils/shared/global-elements-store.d.ts +12 -0
- package/utils/shared/global-elements-store.js +31 -0
- package/utils/shared/index.d.js +11 -0
- package/utils/shared/index.d.ts +3 -0
- package/utils/shared/index.js +11 -0
- package/utils/shared/nectary-element-base.d.js +1 -0
- package/utils/shared/nectary-element-base.d.ts +9 -0
- package/utils/shared/nectary-element-base.js +25 -0
- package/utils/shared/package.json +9 -0
- package/utils/shared/tsconfig.json +20 -0
- package/utils/size.js +8 -3
- package/utils/slot.js +13 -9
- package/utils/throttle.js +5 -2
- package/utils/uid.js +5 -2
- package/card/index.d.ts +0 -40
- package/card/index.js +0 -134
- package/card/types.d.ts +0 -17
- package/card/types.js +0 -1
- package/horizontal-stepper/index.d.ts +0 -33
- package/horizontal-stepper/index.js +0 -62
- package/horizontal-stepper/types.d.ts +0 -42
- package/horizontal-stepper/types.js +0 -1
- package/horizontal-stepper-item/index.d.ts +0 -38
- package/horizontal-stepper-item/index.js +0 -62
- package/horizontal-stepper-item/types.d.ts +0 -38
- package/horizontal-stepper-item/types.js +0 -1
- package/horizontal-stepper-item/utils.d.ts +0 -2
- package/horizontal-stepper-item/utils.js +0 -1
- package/segment/index.d.ts +0 -40
- package/segment/index.js +0 -110
- package/segment/types.d.ts +0 -23
- package/segment/types.js +0 -1
- package/segment/utils.d.ts +0 -3
- package/segment/utils.js +0 -16
- package/tile-control/index.d.ts +0 -39
- package/tile-control/index.js +0 -111
- package/tile-control/types.d.ts +0 -29
- package/tile-control/types.js +0 -1
- package/tile-control-option/index.d.ts +0 -40
- package/tile-control-option/index.js +0 -99
- package/tile-control-option/types.d.ts +0 -52
- package/tile-control-option/types.js +0 -1
- package/vertical-stepper/index.d.ts +0 -33
- package/vertical-stepper/index.js +0 -58
- package/vertical-stepper/types.d.ts +0 -34
- package/vertical-stepper/types.js +0 -1
- package/vertical-stepper-item/index.d.ts +0 -38
- package/vertical-stepper-item/index.js +0 -62
- package/vertical-stepper-item/types.d.ts +0 -42
- package/vertical-stepper-item/types.js +0 -1
- package/vertical-stepper-item/utils.d.ts +0 -2
- package/vertical-stepper-item/utils.js +0 -1
package/spinner/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
2
|
import type { TSinchSize } from '../utils/size';
|
|
3
3
|
export type TSinchSpinnerProps = {
|
|
4
4
|
/** Spinner size */
|
|
@@ -14,3 +14,23 @@ export type TSinchSpinner = {
|
|
|
14
14
|
};
|
|
15
15
|
export type TSinchSpinnerElement = NectaryComponentVanillaByType<TSinchSpinner>;
|
|
16
16
|
export type TSinchSpinnerReact = NectaryComponentReactByType<TSinchSpinner>;
|
|
17
|
+
declare global {
|
|
18
|
+
interface NectaryComponentMap {
|
|
19
|
+
'sinch-spinner': TSinchSpinner;
|
|
20
|
+
}
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'sinch-spinner': NectaryComponentVanilla<'sinch-spinner'>;
|
|
23
|
+
}
|
|
24
|
+
namespace JSX {
|
|
25
|
+
interface IntrinsicElements {
|
|
26
|
+
'sinch-spinner': NectaryComponentReact<'sinch-spinner'>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
declare module 'react' {
|
|
31
|
+
namespace JSX {
|
|
32
|
+
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
33
|
+
'sinch-spinner': NectaryComponentReact<'sinch-spinner'>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/spinner/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/standalone.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import './button/index.js';
|
|
|
11
11
|
import './card-container/index.js';
|
|
12
12
|
import './card-v2-title/index.js';
|
|
13
13
|
import './card-v2/index.js';
|
|
14
|
-
import './card/index.js';
|
|
15
14
|
import './checkbox/index.js';
|
|
16
15
|
import './chip/index.js';
|
|
17
16
|
import './code-tag/index.js';
|
|
@@ -30,8 +29,6 @@ import './flag/index.js';
|
|
|
30
29
|
import './grid-item/index.js';
|
|
31
30
|
import './grid/index.js';
|
|
32
31
|
import './help-tooltip/index.js';
|
|
33
|
-
import './horizontal-stepper-item/index.js';
|
|
34
|
-
import './horizontal-stepper/index.js';
|
|
35
32
|
import './icon/index.js';
|
|
36
33
|
import './inline-alert/index.js';
|
|
37
34
|
import './input/index.js';
|
|
@@ -50,7 +47,6 @@ import './radio/index.js';
|
|
|
50
47
|
import './rich-text/index.js';
|
|
51
48
|
import './rich-textarea/index.js';
|
|
52
49
|
import './segment-collapse/index.js';
|
|
53
|
-
import './segment/index.js';
|
|
54
50
|
import './segmented-control-option/index.js';
|
|
55
51
|
import './segmented-control/index.js';
|
|
56
52
|
import './segmented-icon-control-option/index.js';
|
|
@@ -74,13 +70,9 @@ import './tabs/index.js';
|
|
|
74
70
|
import './tag/index.js';
|
|
75
71
|
import './text/index.js';
|
|
76
72
|
import './textarea/index.js';
|
|
77
|
-
import './tile-control-option/index.js';
|
|
78
|
-
import './tile-control/index.js';
|
|
79
73
|
import './time-picker/index.js';
|
|
80
74
|
import './title/index.js';
|
|
81
75
|
import './toast-manager/index.js';
|
|
82
76
|
import './toast/index.js';
|
|
83
77
|
import './toggle/index.js';
|
|
84
78
|
import './tooltip/index.js';
|
|
85
|
-
import './vertical-stepper-item/index.js';
|
|
86
|
-
import './vertical-stepper/index.js';
|
package/standalone.js
CHANGED
|
@@ -1,88 +1,80 @@
|
|
|
1
|
-
import { setNectaryRegistry } from
|
|
1
|
+
import { setNectaryRegistry } from "./utils/element.js";
|
|
2
|
+
import "./accordion-item/index.js";
|
|
3
|
+
import "./accordion/index.js";
|
|
4
|
+
import "./action-menu-option/index.js";
|
|
5
|
+
import "./action-menu/index.js";
|
|
6
|
+
import "./alert/index.js";
|
|
7
|
+
import "./avatar/index.js";
|
|
8
|
+
import "./badge/index.js";
|
|
9
|
+
import "./button-group-item/index.js";
|
|
10
|
+
import "./button-group/index.js";
|
|
11
|
+
import "./button/index.js";
|
|
12
|
+
import "./card-container/index.js";
|
|
13
|
+
import "./card-v2-title/index.js";
|
|
14
|
+
import "./card-v2/index.js";
|
|
15
|
+
import "./checkbox/index.js";
|
|
16
|
+
import "./chip/index.js";
|
|
17
|
+
import "./code-tag/index.js";
|
|
18
|
+
import "./color-menu-option/index.js";
|
|
19
|
+
import "./color-menu/index.js";
|
|
20
|
+
import "./color-swatch/index.js";
|
|
21
|
+
import "./date-picker/index.js";
|
|
22
|
+
import "./dialog/index.js";
|
|
23
|
+
import "./emoji-picker/index.js";
|
|
24
|
+
import "./emoji/index.js";
|
|
25
|
+
import "./field/index.js";
|
|
26
|
+
import "./file-drop/index.js";
|
|
27
|
+
import "./file-picker/index.js";
|
|
28
|
+
import "./file-status/index.js";
|
|
29
|
+
import "./flag/index.js";
|
|
30
|
+
import "./grid-item/index.js";
|
|
31
|
+
import "./grid/index.js";
|
|
32
|
+
import "./help-tooltip/index.js";
|
|
33
|
+
import "./icon/index.js";
|
|
34
|
+
import "./inline-alert/index.js";
|
|
35
|
+
import "./input/index.js";
|
|
36
|
+
import "./link/index.js";
|
|
37
|
+
import "./list-item/index.js";
|
|
38
|
+
import "./list/index.js";
|
|
39
|
+
import "./pagination/index.js";
|
|
40
|
+
import "./persistent-overlay/index.js";
|
|
41
|
+
import "./pop/index.js";
|
|
42
|
+
import "./popover/index.js";
|
|
43
|
+
import "./progress-stepper-item/index.js";
|
|
44
|
+
import "./progress-stepper/index.js";
|
|
45
|
+
import "./progress/index.js";
|
|
46
|
+
import "./radio-option/index.js";
|
|
47
|
+
import "./radio/index.js";
|
|
48
|
+
import "./rich-text/index.js";
|
|
49
|
+
import "./rich-textarea/index.js";
|
|
50
|
+
import "./segment-collapse/index.js";
|
|
51
|
+
import "./segmented-control-option/index.js";
|
|
52
|
+
import "./segmented-control/index.js";
|
|
53
|
+
import "./segmented-icon-control-option/index.js";
|
|
54
|
+
import "./segmented-icon-control/index.js";
|
|
55
|
+
import "./select-button/index.js";
|
|
56
|
+
import "./select-menu-option/index.js";
|
|
57
|
+
import "./select-menu/index.js";
|
|
58
|
+
import "./skeleton-item/index.js";
|
|
59
|
+
import "./skeleton/index.js";
|
|
60
|
+
import "./spinner/index.js";
|
|
61
|
+
import "./stop-events/index.js";
|
|
62
|
+
import "./table-body/index.js";
|
|
63
|
+
import "./table-cell/index.js";
|
|
64
|
+
import "./table-head-cell/index.js";
|
|
65
|
+
import "./table-head/index.js";
|
|
66
|
+
import "./table-row/index.js";
|
|
67
|
+
import "./table/index.js";
|
|
68
|
+
import "./tabs-icon-option/index.js";
|
|
69
|
+
import "./tabs-option/index.js";
|
|
70
|
+
import "./tabs/index.js";
|
|
71
|
+
import "./tag/index.js";
|
|
72
|
+
import "./text/index.js";
|
|
73
|
+
import "./textarea/index.js";
|
|
74
|
+
import "./time-picker/index.js";
|
|
75
|
+
import "./title/index.js";
|
|
76
|
+
import "./toast-manager/index.js";
|
|
77
|
+
import "./toast/index.js";
|
|
78
|
+
import "./toggle/index.js";
|
|
79
|
+
import "./tooltip/index.js";
|
|
2
80
|
setNectaryRegistry(window.customElements);
|
|
3
|
-
import './accordion-item/index.js';
|
|
4
|
-
import './accordion/index.js';
|
|
5
|
-
import './action-menu-option/index.js';
|
|
6
|
-
import './action-menu/index.js';
|
|
7
|
-
import './alert/index.js';
|
|
8
|
-
import './avatar/index.js';
|
|
9
|
-
import './badge/index.js';
|
|
10
|
-
import './button-group-item/index.js';
|
|
11
|
-
import './button-group/index.js';
|
|
12
|
-
import './button/index.js';
|
|
13
|
-
import './card-container/index.js';
|
|
14
|
-
import './card-v2-title/index.js';
|
|
15
|
-
import './card-v2/index.js';
|
|
16
|
-
import './card/index.js';
|
|
17
|
-
import './checkbox/index.js';
|
|
18
|
-
import './chip/index.js';
|
|
19
|
-
import './code-tag/index.js';
|
|
20
|
-
import './color-menu-option/index.js';
|
|
21
|
-
import './color-menu/index.js';
|
|
22
|
-
import './color-swatch/index.js';
|
|
23
|
-
import './date-picker/index.js';
|
|
24
|
-
import './dialog/index.js';
|
|
25
|
-
import './emoji-picker/index.js';
|
|
26
|
-
import './emoji/index.js';
|
|
27
|
-
import './field/index.js';
|
|
28
|
-
import './file-drop/index.js';
|
|
29
|
-
import './file-picker/index.js';
|
|
30
|
-
import './file-status/index.js';
|
|
31
|
-
import './flag/index.js';
|
|
32
|
-
import './grid-item/index.js';
|
|
33
|
-
import './grid/index.js';
|
|
34
|
-
import './help-tooltip/index.js';
|
|
35
|
-
import './horizontal-stepper-item/index.js';
|
|
36
|
-
import './horizontal-stepper/index.js';
|
|
37
|
-
import './icon/index.js';
|
|
38
|
-
import './inline-alert/index.js';
|
|
39
|
-
import './input/index.js';
|
|
40
|
-
import './link/index.js';
|
|
41
|
-
import './list-item/index.js';
|
|
42
|
-
import './list/index.js';
|
|
43
|
-
import './pagination/index.js';
|
|
44
|
-
import './persistent-overlay/index.js';
|
|
45
|
-
import './pop/index.js';
|
|
46
|
-
import './popover/index.js';
|
|
47
|
-
import './progress-stepper-item/index.js';
|
|
48
|
-
import './progress-stepper/index.js';
|
|
49
|
-
import './progress/index.js';
|
|
50
|
-
import './radio-option/index.js';
|
|
51
|
-
import './radio/index.js';
|
|
52
|
-
import './rich-text/index.js';
|
|
53
|
-
import './rich-textarea/index.js';
|
|
54
|
-
import './segment-collapse/index.js';
|
|
55
|
-
import './segment/index.js';
|
|
56
|
-
import './segmented-control-option/index.js';
|
|
57
|
-
import './segmented-control/index.js';
|
|
58
|
-
import './segmented-icon-control-option/index.js';
|
|
59
|
-
import './segmented-icon-control/index.js';
|
|
60
|
-
import './select-button/index.js';
|
|
61
|
-
import './select-menu-option/index.js';
|
|
62
|
-
import './select-menu/index.js';
|
|
63
|
-
import './skeleton-item/index.js';
|
|
64
|
-
import './skeleton/index.js';
|
|
65
|
-
import './spinner/index.js';
|
|
66
|
-
import './stop-events/index.js';
|
|
67
|
-
import './table-body/index.js';
|
|
68
|
-
import './table-cell/index.js';
|
|
69
|
-
import './table-head-cell/index.js';
|
|
70
|
-
import './table-head/index.js';
|
|
71
|
-
import './table-row/index.js';
|
|
72
|
-
import './table/index.js';
|
|
73
|
-
import './tabs-icon-option/index.js';
|
|
74
|
-
import './tabs-option/index.js';
|
|
75
|
-
import './tabs/index.js';
|
|
76
|
-
import './tag/index.js';
|
|
77
|
-
import './text/index.js';
|
|
78
|
-
import './textarea/index.js';
|
|
79
|
-
import './tile-control-option/index.js';
|
|
80
|
-
import './tile-control/index.js';
|
|
81
|
-
import './time-picker/index.js';
|
|
82
|
-
import './title/index.js';
|
|
83
|
-
import './toast-manager/index.js';
|
|
84
|
-
import './toast/index.js';
|
|
85
|
-
import './toggle/index.js';
|
|
86
|
-
import './tooltip/index.js';
|
|
87
|
-
import './vertical-stepper-item/index.js';
|
|
88
|
-
import './vertical-stepper/index.js';
|
package/standalone.ts
CHANGED
|
@@ -19,7 +19,6 @@ import './button/index.js'
|
|
|
19
19
|
import './card-container/index.js'
|
|
20
20
|
import './card-v2-title/index.js'
|
|
21
21
|
import './card-v2/index.js'
|
|
22
|
-
import './card/index.js'
|
|
23
22
|
import './checkbox/index.js'
|
|
24
23
|
import './chip/index.js'
|
|
25
24
|
import './code-tag/index.js'
|
|
@@ -38,8 +37,6 @@ import './flag/index.js'
|
|
|
38
37
|
import './grid-item/index.js'
|
|
39
38
|
import './grid/index.js'
|
|
40
39
|
import './help-tooltip/index.js'
|
|
41
|
-
import './horizontal-stepper-item/index.js'
|
|
42
|
-
import './horizontal-stepper/index.js'
|
|
43
40
|
import './icon/index.js'
|
|
44
41
|
import './inline-alert/index.js'
|
|
45
42
|
import './input/index.js'
|
|
@@ -58,7 +55,6 @@ import './radio/index.js'
|
|
|
58
55
|
import './rich-text/index.js'
|
|
59
56
|
import './rich-textarea/index.js'
|
|
60
57
|
import './segment-collapse/index.js'
|
|
61
|
-
import './segment/index.js'
|
|
62
58
|
import './segmented-control-option/index.js'
|
|
63
59
|
import './segmented-control/index.js'
|
|
64
60
|
import './segmented-icon-control-option/index.js'
|
|
@@ -82,13 +78,9 @@ import './tabs/index.js'
|
|
|
82
78
|
import './tag/index.js'
|
|
83
79
|
import './text/index.js'
|
|
84
80
|
import './textarea/index.js'
|
|
85
|
-
import './tile-control-option/index.js'
|
|
86
|
-
import './tile-control/index.js'
|
|
87
81
|
import './time-picker/index.js'
|
|
88
82
|
import './title/index.js'
|
|
89
83
|
import './toast-manager/index.js'
|
|
90
84
|
import './toast/index.js'
|
|
91
85
|
import './toggle/index.js'
|
|
92
86
|
import './tooltip/index.js'
|
|
93
|
-
import './vertical-stepper-item/index.js'
|
|
94
|
-
import './vertical-stepper/index.js'
|
package/stop-events/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { unpackCsv } from "../utils/csv.js";
|
|
2
|
+
import { defineCustomElement } from "../utils/element.js";
|
|
3
|
+
class StopEvents extends HTMLElement {
|
|
3
4
|
#controller = null;
|
|
4
5
|
constructor() {
|
|
5
6
|
super();
|
|
6
|
-
this.style.display =
|
|
7
|
+
this.style.display = "contents";
|
|
7
8
|
}
|
|
8
9
|
connectedCallback() {
|
|
9
10
|
this.#controller = new AbortController();
|
|
10
|
-
const {
|
|
11
|
-
|
|
12
|
-
} = this.#controller;
|
|
13
|
-
const events = unpackCsv(this.getAttribute('events'));
|
|
11
|
+
const { signal } = this.#controller;
|
|
12
|
+
const events = unpackCsv(this.getAttribute("events"));
|
|
14
13
|
for (const event of events) {
|
|
15
|
-
this.addEventListener(event, this.#stopEvent, {
|
|
16
|
-
signal
|
|
17
|
-
});
|
|
14
|
+
this.addEventListener(event, this.#stopEvent, { signal });
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
17
|
disconnectedCallback() {
|
|
21
18
|
this.#controller.abort();
|
|
22
19
|
this.#controller = null;
|
|
23
20
|
}
|
|
24
|
-
#stopEvent = e => {
|
|
21
|
+
#stopEvent = (e) => {
|
|
25
22
|
e.stopPropagation();
|
|
26
23
|
};
|
|
27
24
|
}
|
|
28
|
-
defineCustomElement(
|
|
25
|
+
defineCustomElement("sinch-stop-events", StopEvents);
|
|
26
|
+
export {
|
|
27
|
+
StopEvents
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|
package/table/index.d.ts
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import { NectaryElement } from '../utils';
|
|
2
|
-
|
|
2
|
+
export * from './types';
|
|
3
3
|
export declare class Table extends NectaryElement {
|
|
4
4
|
constructor();
|
|
5
5
|
connectedCallback(): void;
|
|
6
6
|
}
|
|
7
|
-
declare global {
|
|
8
|
-
interface NectaryComponentMap {
|
|
9
|
-
'sinch-table': {};
|
|
10
|
-
}
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
'sinch-table': NectaryComponentVanilla<'sinch-table'>;
|
|
13
|
-
}
|
|
14
|
-
namespace JSX {
|
|
15
|
-
interface IntrinsicElements {
|
|
16
|
-
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
declare module 'react' {
|
|
21
|
-
namespace JSX {
|
|
22
|
-
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
23
|
-
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
package/table/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineCustomElement, NectaryElement } from
|
|
2
|
-
const templateHTML =
|
|
3
|
-
const template = document.createElement(
|
|
1
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
2
|
+
const templateHTML = "<style>\n:host {\n display: table;\n}\n</style>\n\n<slot></slot>\n";
|
|
3
|
+
const template = document.createElement("template");
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
|
-
|
|
5
|
+
class Table extends NectaryElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
const shadowRoot = this.attachShadow();
|
|
9
9
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
10
10
|
}
|
|
11
11
|
connectedCallback() {
|
|
12
|
-
this.setAttribute(
|
|
12
|
+
this.setAttribute("role", "table");
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
defineCustomElement(
|
|
15
|
+
defineCustomElement("sinch-table", Table);
|
|
16
|
+
export {
|
|
17
|
+
Table
|
|
18
|
+
};
|
package/table/types.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import type { NectaryComponentReactByType } from '../types';
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
2
|
export type TSinchTableElement = HTMLElement;
|
|
3
3
|
export type TSinchTableReact = NectaryComponentReactByType<TSinchTableElement>;
|
|
4
|
+
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-table': {};
|
|
7
|
+
}
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'sinch-table': NectaryComponentVanilla<'sinch-table'>;
|
|
10
|
+
}
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare module 'react' {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
20
|
+
'sinch-table': NectaryComponentReact<'sinch-table'>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/table/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|
package/table-body/index.d.ts
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
import { NectaryElement } from '../utils';
|
|
2
|
-
|
|
2
|
+
export * from './types';
|
|
3
3
|
export declare class TableBody extends NectaryElement {
|
|
4
4
|
constructor();
|
|
5
5
|
connectedCallback(): void;
|
|
6
6
|
}
|
|
7
|
-
declare global {
|
|
8
|
-
interface NectaryComponentMap {
|
|
9
|
-
'sinch-table-body': {};
|
|
10
|
-
}
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
'sinch-table-body': NectaryComponentVanilla<'sinch-table-body'>;
|
|
13
|
-
}
|
|
14
|
-
namespace JSX {
|
|
15
|
-
interface IntrinsicElements {
|
|
16
|
-
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
declare module 'react' {
|
|
21
|
-
namespace JSX {
|
|
22
|
-
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
23
|
-
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
package/table-body/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { defineCustomElement, NectaryElement } from
|
|
2
|
-
const templateHTML =
|
|
3
|
-
const template = document.createElement(
|
|
1
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
2
|
+
const templateHTML = "<style>\n:host {\n display: table-row-group;\n}\n</style>\n\n<slot></slot>\n";
|
|
3
|
+
const template = document.createElement("template");
|
|
4
4
|
template.innerHTML = templateHTML;
|
|
5
|
-
|
|
5
|
+
class TableBody extends NectaryElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
const shadowRoot = this.attachShadow();
|
|
9
9
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
10
10
|
}
|
|
11
11
|
connectedCallback() {
|
|
12
|
-
this.setAttribute(
|
|
12
|
+
this.setAttribute("role", "rowgroup");
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
defineCustomElement(
|
|
15
|
+
defineCustomElement("sinch-table-body", TableBody);
|
|
16
|
+
export {
|
|
17
|
+
TableBody
|
|
18
|
+
};
|
package/table-body/types.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import type { NectaryComponentReactByType } from '../types';
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
2
|
export type TSinchTableBodyElement = HTMLElement;
|
|
3
3
|
export type TSinchTableBodyReact = NectaryComponentReactByType<TSinchTableBodyElement>;
|
|
4
|
+
declare global {
|
|
5
|
+
interface NectaryComponentMap {
|
|
6
|
+
'sinch-table-body': {};
|
|
7
|
+
}
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'sinch-table-body': NectaryComponentVanilla<'sinch-table-body'>;
|
|
10
|
+
}
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare module 'react' {
|
|
18
|
+
namespace JSX {
|
|
19
|
+
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
20
|
+
'sinch-table-body': NectaryComponentReact<'sinch-table-body'>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/table-body/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|
package/table-cell/index.d.ts
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
import { NectaryElement } from '../utils';
|
|
2
|
-
import type { TSinchTableAlignType
|
|
3
|
-
|
|
2
|
+
import type { TSinchTableAlignType } from './types';
|
|
3
|
+
export * from './types';
|
|
4
4
|
export declare class TableCell extends NectaryElement {
|
|
5
5
|
constructor();
|
|
6
6
|
connectedCallback(): void;
|
|
7
7
|
set align(value: TSinchTableAlignType);
|
|
8
8
|
get align(): TSinchTableAlignType;
|
|
9
9
|
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface NectaryComponentMap {
|
|
12
|
-
'sinch-table-cell': TSinchTableCell;
|
|
13
|
-
}
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
'sinch-table-cell': NectaryComponentVanilla<'sinch-table-cell'>;
|
|
16
|
-
}
|
|
17
|
-
namespace JSX {
|
|
18
|
-
interface IntrinsicElements {
|
|
19
|
-
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
declare module 'react' {
|
|
24
|
-
namespace JSX {
|
|
25
|
-
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
26
|
-
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
package/table-cell/index.js
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { alignValues } from
|
|
4
|
-
const
|
|
1
|
+
import { updateLiteralAttribute, getLiteralAttribute } from "../utils/dom.js";
|
|
2
|
+
import { defineCustomElement, NectaryElement } from "../utils/element.js";
|
|
3
|
+
import { alignValues } from "./utils.js";
|
|
4
|
+
const templateHTML = '<style>\n:host {\n display: table-cell;\n vertical-align: top;\n border-bottom: 1px solid var(--sinch-comp-table-color-cell-default-border-initial);\n}\n\n#wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 48px;\n box-sizing: border-box;\n padding: 8px;\n}\n\n:host([align="end"]) #wrapper {\n text-align: end;\n align-items: flex-end;\n}\n\n:host([align="center"]) #wrapper {\n text-align: center;\n align-items: center;\n}\n</style>\n\n<div id="wrapper">\n <slot></slot>\n</div>\n';
|
|
5
|
+
const template = document.createElement("template");
|
|
5
6
|
template.innerHTML = templateHTML;
|
|
6
|
-
|
|
7
|
+
class TableCell extends NectaryElement {
|
|
7
8
|
constructor() {
|
|
8
9
|
super();
|
|
9
10
|
const shadowRoot = this.attachShadow();
|
|
10
11
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
11
12
|
}
|
|
12
13
|
connectedCallback() {
|
|
13
|
-
this.setAttribute(
|
|
14
|
+
this.setAttribute("role", "cell");
|
|
14
15
|
}
|
|
15
16
|
set align(value) {
|
|
16
|
-
updateLiteralAttribute(this, alignValues,
|
|
17
|
+
updateLiteralAttribute(this, alignValues, "align", value);
|
|
17
18
|
}
|
|
18
19
|
get align() {
|
|
19
|
-
return getLiteralAttribute(this, alignValues,
|
|
20
|
+
return getLiteralAttribute(this, alignValues, "align", "start");
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
defineCustomElement(
|
|
23
|
+
defineCustomElement("sinch-table-cell", TableCell);
|
|
24
|
+
export {
|
|
25
|
+
TableCell
|
|
26
|
+
};
|
package/table-cell/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NectaryComponentReactByType, NectaryComponentVanillaByType } from '../types';
|
|
1
|
+
import type { NectaryComponentReactByType, NectaryComponentVanillaByType, NectaryComponentReact, NectaryComponentVanilla } from '../types';
|
|
2
2
|
export type TSinchTableAlignType = 'start' | 'center' | 'end';
|
|
3
3
|
export type TSinchTableCellProps = {
|
|
4
4
|
align?: TSinchTableAlignType;
|
|
@@ -12,3 +12,23 @@ export type TSinchTableCell = {
|
|
|
12
12
|
};
|
|
13
13
|
export type TSinchTableCellElement = NectaryComponentVanillaByType<TSinchTableCell>;
|
|
14
14
|
export type TSinchTableCellReact = NectaryComponentReactByType<TSinchTableCell>;
|
|
15
|
+
declare global {
|
|
16
|
+
interface NectaryComponentMap {
|
|
17
|
+
'sinch-table-cell': TSinchTableCell;
|
|
18
|
+
}
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'sinch-table-cell': NectaryComponentVanilla<'sinch-table-cell'>;
|
|
21
|
+
}
|
|
22
|
+
namespace JSX {
|
|
23
|
+
interface IntrinsicElements {
|
|
24
|
+
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
declare module 'react' {
|
|
29
|
+
namespace JSX {
|
|
30
|
+
interface IntrinsicElements extends globalThis.JSX.IntrinsicElements {
|
|
31
|
+
'sinch-table-cell': NectaryComponentReact<'sinch-table-cell'>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/table-cell/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/table-cell/utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types';
|