@g4rcez/components 5.0.0 → 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/dist/{MotionConfig-BLwtdAWy.js → MotionConfig-DKKYqBH2.js} +2 -2
- package/dist/{MotionConfig-BLwtdAWy.js.map → MotionConfig-DKKYqBH2.js.map} +1 -1
- package/dist/{autocomplete-DVKTP0Il.js → autocomplete-D3VOTihi.js} +2 -2
- package/dist/{autocomplete-DVKTP0Il.js.map → autocomplete-D3VOTihi.js.map} +1 -1
- package/dist/{calendar-_DZjphH8.js → calendar-PCCZDUIL.js} +4 -4
- package/dist/{calendar-_DZjphH8.js.map → calendar-PCCZDUIL.js.map} +1 -1
- package/dist/components/display/alert.js +1 -1
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/list.js +2 -2
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/floating/expand.js +1 -1
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/form/autocomplete.js +1 -1
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/{date-picker-9q_Ki5Vu.js → date-picker-BhKEFZew.js} +2 -2
- package/dist/{date-picker-9q_Ki5Vu.js.map → date-picker-BhKEFZew.js.map} +1 -1
- package/dist/{dist-Buc00Zls.js → dist-BrGpYRaj.js} +56 -55
- package/dist/{dist-Buc00Zls.js.map → dist-BrGpYRaj.js.map} +1 -1
- package/dist/{file-upload-COk6_Bs5.js → file-upload-DWbZfeG5.js} +15 -15
- package/dist/{file-upload-COk6_Bs5.js.map → file-upload-DWbZfeG5.js.map} +1 -1
- package/dist/index.js +646 -647
- package/dist/index.js.map +1 -1
- package/dist/{modal-Cn-OaKRp.js → modal-Bz-61ays.js} +3 -3
- package/dist/{modal-Cn-OaKRp.js.map → modal-Bz-61ays.js.map} +1 -1
- package/dist/{notifications-l_B9J4Gx.js → notifications-MT4XkLov.js} +270 -269
- package/dist/{notifications-l_B9J4Gx.js.map → notifications-MT4XkLov.js.map} +1 -1
- package/dist/{proxy-Drpz0Avo.js → proxy-BcJ_5Dwq.js} +465 -468
- package/dist/{proxy-Drpz0Avo.js.map → proxy-BcJ_5Dwq.js.map} +1 -1
- package/dist/{table-Dql6Yzag.js → table-CUFbAI2k.js} +3 -3
- package/dist/{table-Dql6Yzag.js.map → table-CUFbAI2k.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src/components/core/button.d.ts +0 -77
- package/dist/src/components/core/button.d.ts.map +0 -1
- package/dist/src/components/core/button.jsx +0 -79
- package/dist/src/components/core/heading.d.ts +0 -3
- package/dist/src/components/core/heading.d.ts.map +0 -1
- package/dist/src/components/core/heading.jsx +0 -4
- package/dist/src/components/core/polymorph.d.ts +0 -10
- package/dist/src/components/core/polymorph.d.ts.map +0 -1
- package/dist/src/components/core/polymorph.jsx +0 -5
- package/dist/src/components/core/render-on-view.d.ts +0 -7
- package/dist/src/components/core/render-on-view.d.ts.map +0 -1
- package/dist/src/components/core/render-on-view.jsx +0 -31
- package/dist/src/components/core/resizable.d.ts +0 -3
- package/dist/src/components/core/resizable.d.ts.map +0 -1
- package/dist/src/components/core/resizable.jsx +0 -51
- package/dist/src/components/core/slot.d.ts +0 -16
- package/dist/src/components/core/slot.d.ts.map +0 -1
- package/dist/src/components/core/slot.jsx +0 -156
- package/dist/src/components/core/tag.d.ts +0 -35
- package/dist/src/components/core/tag.d.ts.map +0 -1
- package/dist/src/components/core/tag.jsx +0 -53
- package/dist/src/components/core/typography.d.ts +0 -25
- package/dist/src/components/core/typography.d.ts.map +0 -1
- package/dist/src/components/core/typography.jsx +0 -20
- package/dist/src/components/display/alert.d.ts +0 -28
- package/dist/src/components/display/alert.d.ts.map +0 -1
- package/dist/src/components/display/alert.jsx +0 -61
- package/dist/src/components/display/calendar.d.ts +0 -42
- package/dist/src/components/display/calendar.d.ts.map +0 -1
- package/dist/src/components/display/calendar.jsx +0 -318
- package/dist/src/components/display/card.d.ts +0 -29
- package/dist/src/components/display/card.d.ts.map +0 -1
- package/dist/src/components/display/card.jsx +0 -43
- package/dist/src/components/display/empty.d.ts +0 -8
- package/dist/src/components/display/empty.d.ts.map +0 -1
- package/dist/src/components/display/empty.jsx +0 -11
- package/dist/src/components/display/list.d.ts +0 -16
- package/dist/src/components/display/list.d.ts.map +0 -1
- package/dist/src/components/display/list.jsx +0 -85
- package/dist/src/components/display/notifications.d.ts +0 -27
- package/dist/src/components/display/notifications.d.ts.map +0 -1
- package/dist/src/components/display/notifications.jsx +0 -130
- package/dist/src/components/display/progress.d.ts +0 -16
- package/dist/src/components/display/progress.d.ts.map +0 -1
- package/dist/src/components/display/progress.jsx +0 -21
- package/dist/src/components/display/shortcut.d.ts +0 -4
- package/dist/src/components/display/shortcut.d.ts.map +0 -1
- package/dist/src/components/display/shortcut.jsx +0 -23
- package/dist/src/components/display/skeleton.d.ts +0 -12
- package/dist/src/components/display/skeleton.d.ts.map +0 -1
- package/dist/src/components/display/skeleton.jsx +0 -19
- package/dist/src/components/display/spinner.d.ts +0 -5
- package/dist/src/components/display/spinner.d.ts.map +0 -1
- package/dist/src/components/display/spinner.jsx +0 -11
- package/dist/src/components/display/stats.d.ts +0 -12
- package/dist/src/components/display/stats.d.ts.map +0 -1
- package/dist/src/components/display/stats.jsx +0 -16
- package/dist/src/components/display/step.d.ts +0 -24
- package/dist/src/components/display/step.d.ts.map +0 -1
- package/dist/src/components/display/step.jsx +0 -145
- package/dist/src/components/display/tabs.d.ts +0 -24
- package/dist/src/components/display/tabs.d.ts.map +0 -1
- package/dist/src/components/display/tabs.jsx +0 -125
- package/dist/src/components/display/timeline.d.ts +0 -10
- package/dist/src/components/display/timeline.d.ts.map +0 -1
- package/dist/src/components/display/timeline.jsx +0 -25
- package/dist/src/components/floating/command-palette.d.ts +0 -49
- package/dist/src/components/floating/command-palette.d.ts.map +0 -1
- package/dist/src/components/floating/command-palette.jsx +0 -223
- package/dist/src/components/floating/dropdown.d.ts +0 -15
- package/dist/src/components/floating/dropdown.d.ts.map +0 -1
- package/dist/src/components/floating/dropdown.jsx +0 -56
- package/dist/src/components/floating/expand.d.ts +0 -11
- package/dist/src/components/floating/expand.d.ts.map +0 -1
- package/dist/src/components/floating/expand.jsx +0 -44
- package/dist/src/components/floating/menu.d.ts +0 -52
- package/dist/src/components/floating/menu.d.ts.map +0 -1
- package/dist/src/components/floating/menu.jsx +0 -165
- package/dist/src/components/floating/modal.d.ts +0 -60
- package/dist/src/components/floating/modal.d.ts.map +0 -1
- package/dist/src/components/floating/modal.jsx +0 -336
- package/dist/src/components/floating/toolbar.d.ts +0 -6
- package/dist/src/components/floating/toolbar.d.ts.map +0 -1
- package/dist/src/components/floating/toolbar.jsx +0 -5
- package/dist/src/components/floating/tooltip.d.ts +0 -17
- package/dist/src/components/floating/tooltip.d.ts.map +0 -1
- package/dist/src/components/floating/tooltip.jsx +0 -67
- package/dist/src/components/floating/wizard.d.ts +0 -26
- package/dist/src/components/floating/wizard.d.ts.map +0 -1
- package/dist/src/components/floating/wizard.jsx +0 -165
- package/dist/src/components/form/autocomplete.d.ts +0 -16
- package/dist/src/components/form/autocomplete.d.ts.map +0 -1
- package/dist/src/components/form/autocomplete.jsx +0 -290
- package/dist/src/components/form/checkbox.d.ts +0 -12
- package/dist/src/components/form/checkbox.d.ts.map +0 -1
- package/dist/src/components/form/checkbox.jsx +0 -12
- package/dist/src/components/form/date-picker.d.ts +0 -10
- package/dist/src/components/form/date-picker.d.ts.map +0 -1
- package/dist/src/components/form/date-picker.jsx +0 -115
- package/dist/src/components/form/file-upload.d.ts +0 -15
- package/dist/src/components/form/file-upload.d.ts.map +0 -1
- package/dist/src/components/form/file-upload.jsx +0 -138
- package/dist/src/components/form/form.d.ts +0 -3
- package/dist/src/components/form/form.d.ts.map +0 -1
- package/dist/src/components/form/form.jsx +0 -10
- package/dist/src/components/form/formReset.d.ts +0 -2
- package/dist/src/components/form/formReset.d.ts.map +0 -1
- package/dist/src/components/form/formReset.jsx +0 -17
- package/dist/src/components/form/free-text.d.ts +0 -11
- package/dist/src/components/form/free-text.d.ts.map +0 -1
- package/dist/src/components/form/free-text.jsx +0 -41
- package/dist/src/components/form/input-field.d.ts +0 -34
- package/dist/src/components/form/input-field.d.ts.map +0 -1
- package/dist/src/components/form/input-field.jsx +0 -58
- package/dist/src/components/form/input.d.ts +0 -52
- package/dist/src/components/form/input.d.ts.map +0 -1
- package/dist/src/components/form/input.jsx +0 -36
- package/dist/src/components/form/multi-select.d.ts +0 -19
- package/dist/src/components/form/multi-select.d.ts.map +0 -1
- package/dist/src/components/form/multi-select.jsx +0 -344
- package/dist/src/components/form/radiobox.d.ts +0 -7
- package/dist/src/components/form/radiobox.d.ts.map +0 -1
- package/dist/src/components/form/radiobox.jsx +0 -6
- package/dist/src/components/form/select.d.ts +0 -13
- package/dist/src/components/form/select.d.ts.map +0 -1
- package/dist/src/components/form/select.jsx +0 -44
- package/dist/src/components/form/slider.d.ts +0 -7
- package/dist/src/components/form/slider.d.ts.map +0 -1
- package/dist/src/components/form/slider.jsx +0 -45
- package/dist/src/components/form/switch.d.ts +0 -9
- package/dist/src/components/form/switch.d.ts.map +0 -1
- package/dist/src/components/form/switch.jsx +0 -46
- package/dist/src/components/form/task-list.d.ts +0 -3
- package/dist/src/components/form/task-list.d.ts.map +0 -1
- package/dist/src/components/form/task-list.jsx +0 -26
- package/dist/src/components/form/textarea.d.ts +0 -5
- package/dist/src/components/form/textarea.d.ts.map +0 -1
- package/dist/src/components/form/textarea.jsx +0 -26
- package/dist/src/components/index.d.ts +0 -45
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js +0 -44
- package/dist/src/components/page-calendar/calendar-header.d.ts +0 -16
- package/dist/src/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/src/components/page-calendar/calendar-header.jsx +0 -83
- package/dist/src/components/page-calendar/day-view.d.ts +0 -12
- package/dist/src/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/day-view.jsx +0 -89
- package/dist/src/components/page-calendar/event-pill.d.ts +0 -9
- package/dist/src/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/src/components/page-calendar/event-pill.jsx +0 -25
- package/dist/src/components/page-calendar/index.d.ts +0 -4
- package/dist/src/components/page-calendar/index.d.ts.map +0 -1
- package/dist/src/components/page-calendar/index.js +0 -2
- package/dist/src/components/page-calendar/month-view.d.ts +0 -11
- package/dist/src/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/month-view.jsx +0 -46
- package/dist/src/components/page-calendar/page-calendar.d.ts +0 -18
- package/dist/src/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.jsx +0 -41
- package/dist/src/components/page-calendar/page-calendar.types.d.ts +0 -18
- package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.types.js +0 -1
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts +0 -24
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.utils.js +0 -93
- package/dist/src/components/page-calendar/week-view.d.ts +0 -11
- package/dist/src/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/week-view.jsx +0 -66
- package/dist/src/components/table/filter.d.ts +0 -42
- package/dist/src/components/table/filter.d.ts.map +0 -1
- package/dist/src/components/table/filter.jsx +0 -169
- package/dist/src/components/table/group.d.ts +0 -17
- package/dist/src/components/table/group.d.ts.map +0 -1
- package/dist/src/components/table/group.jsx +0 -75
- package/dist/src/components/table/index.d.ts +0 -19
- package/dist/src/components/table/index.d.ts.map +0 -1
- package/dist/src/components/table/index.jsx +0 -63
- package/dist/src/components/table/inner-table.d.ts +0 -29
- package/dist/src/components/table/inner-table.d.ts.map +0 -1
- package/dist/src/components/table/inner-table.jsx +0 -102
- package/dist/src/components/table/metadata.d.ts +0 -4
- package/dist/src/components/table/metadata.d.ts.map +0 -1
- package/dist/src/components/table/metadata.jsx +0 -36
- package/dist/src/components/table/pagination.d.ts +0 -5
- package/dist/src/components/table/pagination.d.ts.map +0 -1
- package/dist/src/components/table/pagination.jsx +0 -74
- package/dist/src/components/table/row.d.ts +0 -11
- package/dist/src/components/table/row.d.ts.map +0 -1
- package/dist/src/components/table/row.jsx +0 -49
- package/dist/src/components/table/sort.d.ts +0 -28
- package/dist/src/components/table/sort.d.ts.map +0 -1
- package/dist/src/components/table/sort.jsx +0 -109
- package/dist/src/components/table/table-lib.d.ts +0 -135
- package/dist/src/components/table/table-lib.d.ts.map +0 -1
- package/dist/src/components/table/table-lib.js +0 -83
- package/dist/src/components/table/table.context.d.ts +0 -10
- package/dist/src/components/table/table.context.d.ts.map +0 -1
- package/dist/src/components/table/table.context.jsx +0 -5
- package/dist/src/components/table/thead.d.ts +0 -9
- package/dist/src/components/table/thead.d.ts.map +0 -1
- package/dist/src/components/table/thead.jsx +0 -103
- package/dist/src/config/context.d.ts +0 -21
- package/dist/src/config/context.d.ts.map +0 -1
- package/dist/src/config/context.js +0 -12
- package/dist/src/config/default-translations.d.ts +0 -94
- package/dist/src/config/default-translations.d.ts.map +0 -1
- package/dist/src/config/default-translations.jsx +0 -87
- package/dist/src/config/default-tweaks.d.ts +0 -13
- package/dist/src/config/default-tweaks.d.ts.map +0 -1
- package/dist/src/config/default-tweaks.js +0 -4
- package/dist/src/constants.d.ts +0 -3
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -2
- package/dist/src/hooks/use-click-outside.d.ts +0 -3
- package/dist/src/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/src/hooks/use-click-outside.js +0 -17
- package/dist/src/hooks/use-color-parser.d.ts +0 -2
- package/dist/src/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/src/hooks/use-color-parser.js +0 -9
- package/dist/src/hooks/use-components-provider.d.ts +0 -15
- package/dist/src/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/src/hooks/use-components-provider.jsx +0 -22
- package/dist/src/hooks/use-debounce.d.ts +0 -5
- package/dist/src/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/hooks/use-debounce.js +0 -12
- package/dist/src/hooks/use-floating-ref.d.ts +0 -2
- package/dist/src/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-floating-ref.js +0 -6
- package/dist/src/hooks/use-form.d.ts +0 -394
- package/dist/src/hooks/use-form.d.ts.map +0 -1
- package/dist/src/hooks/use-form.js +0 -563
- package/dist/src/hooks/use-hover.d.ts +0 -3
- package/dist/src/hooks/use-hover.d.ts.map +0 -1
- package/dist/src/hooks/use-hover.js +0 -18
- package/dist/src/hooks/use-input-id.d.ts +0 -4
- package/dist/src/hooks/use-input-id.d.ts.map +0 -1
- package/dist/src/hooks/use-input-id.js +0 -5
- package/dist/src/hooks/use-is-coarse-device.d.ts +0 -2
- package/dist/src/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/src/hooks/use-is-coarse-device.js +0 -12
- package/dist/src/hooks/use-locale.d.ts +0 -3
- package/dist/src/hooks/use-locale.d.ts.map +0 -1
- package/dist/src/hooks/use-locale.js +0 -10
- package/dist/src/hooks/use-media-query.d.ts +0 -2
- package/dist/src/hooks/use-media-query.d.ts.map +0 -1
- package/dist/src/hooks/use-media-query.js +0 -25
- package/dist/src/hooks/use-on-event.d.ts +0 -4
- package/dist/src/hooks/use-on-event.d.ts.map +0 -1
- package/dist/src/hooks/use-on-event.js +0 -10
- package/dist/src/hooks/use-parent.d.ts +0 -3
- package/dist/src/hooks/use-parent.d.ts.map +0 -1
- package/dist/src/hooks/use-parent.js +0 -21
- package/dist/src/hooks/use-preferences.d.ts +0 -2
- package/dist/src/hooks/use-preferences.d.ts.map +0 -1
- package/dist/src/hooks/use-preferences.js +0 -23
- package/dist/src/hooks/use-previous.d.ts +0 -2
- package/dist/src/hooks/use-previous.d.ts.map +0 -1
- package/dist/src/hooks/use-previous.js +0 -9
- package/dist/src/hooks/use-reactive.d.ts +0 -2
- package/dist/src/hooks/use-reactive.d.ts.map +0 -1
- package/dist/src/hooks/use-reactive.js +0 -9
- package/dist/src/hooks/use-remove-scroll.d.ts +0 -4
- package/dist/src/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/src/hooks/use-remove-scroll.js +0 -48
- package/dist/src/hooks/use-resize-observer.d.ts +0 -2
- package/dist/src/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/src/hooks/use-resize-observer.js +0 -17
- package/dist/src/hooks/use-stable-ref.d.ts +0 -2
- package/dist/src/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-stable-ref.js +0 -9
- package/dist/src/hooks/use-swipe.d.ts +0 -8
- package/dist/src/hooks/use-swipe.d.ts.map +0 -1
- package/dist/src/hooks/use-swipe.js +0 -17
- package/dist/src/hooks/use-translations.d.ts +0 -92
- package/dist/src/hooks/use-translations.d.ts.map +0 -1
- package/dist/src/hooks/use-translations.js +0 -9
- package/dist/src/hooks/use-tweaks.d.ts +0 -3
- package/dist/src/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/src/hooks/use-tweaks.js +0 -9
- package/dist/src/hooks/use-window-size.d.ts +0 -5
- package/dist/src/hooks/use-window-size.d.ts.map +0 -1
- package/dist/src/hooks/use-window-size.js +0 -14
- package/dist/src/index.d.ts +0 -22
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -20
- package/dist/src/lib/combi-keys.d.ts +0 -15
- package/dist/src/lib/combi-keys.d.ts.map +0 -1
- package/dist/src/lib/combi-keys.js +0 -60
- package/dist/src/lib/dict.d.ts +0 -9
- package/dist/src/lib/dict.d.ts.map +0 -1
- package/dist/src/lib/dict.js +0 -28
- package/dist/src/lib/dom.d.ts +0 -20
- package/dist/src/lib/dom.d.ts.map +0 -1
- package/dist/src/lib/dom.js +0 -185
- package/dist/src/lib/fns.d.ts +0 -11
- package/dist/src/lib/fns.d.ts.map +0 -1
- package/dist/src/lib/fns.js +0 -46
- package/dist/src/lib/fzf.d.ts +0 -16
- package/dist/src/lib/fzf.d.ts.map +0 -1
- package/dist/src/lib/fzf.js +0 -115
- package/dist/src/lib/keyboard-area.d.ts +0 -16
- package/dist/src/lib/keyboard-area.d.ts.map +0 -1
- package/dist/src/lib/keyboard-area.js +0 -14
- package/dist/src/styles/common.d.ts +0 -8
- package/dist/src/styles/common.d.ts.map +0 -1
- package/dist/src/styles/common.js +0 -20
- package/dist/src/styles/components.d.ts +0 -3
- package/dist/src/styles/components.d.ts.map +0 -1
- package/dist/src/styles/components.js +0 -397
- package/dist/src/styles/dark.d.ts +0 -3
- package/dist/src/styles/dark.d.ts.map +0 -1
- package/dist/src/styles/dark.js +0 -217
- package/dist/src/styles/default-tokens.d.ts +0 -74
- package/dist/src/styles/default-tokens.d.ts.map +0 -1
- package/dist/src/styles/default-tokens.js +0 -41
- package/dist/src/styles/design-tokens.d.ts +0 -29
- package/dist/src/styles/design-tokens.d.ts.map +0 -1
- package/dist/src/styles/design-tokens.js +0 -73
- package/dist/src/styles/light.d.ts +0 -3
- package/dist/src/styles/light.d.ts.map +0 -1
- package/dist/src/styles/light.js +0 -217
- package/dist/src/styles/theme.d.ts +0 -3
- package/dist/src/styles/theme.d.ts.map +0 -1
- package/dist/src/styles/theme.js +0 -4
- package/dist/src/styles/theme.types.d.ts +0 -540
- package/dist/src/styles/theme.types.d.ts.map +0 -1
- package/dist/src/styles/theme.types.js +0 -1
- package/dist/src/types.d.ts +0 -26
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- package/dist/with-selector-BAUQ-vKK.js +0 -187
- package/dist/with-selector-BAUQ-vKK.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-on-event.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-on-event.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,cAAc,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEnF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,SAQrF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react";
|
|
2
|
-
export const useOnEvent = (event, func) => {
|
|
3
|
-
const funcRef = useRef(func);
|
|
4
|
-
funcRef.current = func;
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
const handler = (e) => funcRef.current(e);
|
|
7
|
-
window.addEventListener(event, handler);
|
|
8
|
-
return () => window.removeEventListener(event, handler);
|
|
9
|
-
}, [event]);
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-parent.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-parent.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,eAAO,MAAM,eAAe,GAAI,KAAK,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,WAiBhE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
export const useParentHeight = (ref) => {
|
|
3
|
-
const [h, setH] = useState(0);
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const element = ref.current;
|
|
6
|
-
if (!element)
|
|
7
|
-
return;
|
|
8
|
-
const parent = element.parentElement;
|
|
9
|
-
if (!parent)
|
|
10
|
-
return;
|
|
11
|
-
const listener = () => {
|
|
12
|
-
setH(parent.clientHeight);
|
|
13
|
-
};
|
|
14
|
-
parent.addEventListener("resize", listener);
|
|
15
|
-
listener();
|
|
16
|
-
return () => {
|
|
17
|
-
parent.removeEventListener("resize", listener);
|
|
18
|
-
};
|
|
19
|
-
}, [ref]);
|
|
20
|
-
return h;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-preferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-preferences.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,cAAc,CAAC,2BAQ1D,UAAU,6DAAiB,CAAC,CAAC,CAAC,cAc9C,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from "react";
|
|
2
|
-
import { Is } from "sidekicker";
|
|
3
|
-
import { LocalStorage } from "storage-manager-js";
|
|
4
|
-
export const usePreferences = (key, defaultValue) => {
|
|
5
|
-
const [state, setState] = useState(() => {
|
|
6
|
-
const saved = LocalStorage.get(key);
|
|
7
|
-
if (saved)
|
|
8
|
-
return saved;
|
|
9
|
-
return defaultValue;
|
|
10
|
-
});
|
|
11
|
-
const setCallback = useCallback((params) => {
|
|
12
|
-
if (Is.function(params)) {
|
|
13
|
-
return setState((prev) => {
|
|
14
|
-
const result = params(prev);
|
|
15
|
-
LocalStorage.set(key, result);
|
|
16
|
-
return result;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
LocalStorage.set(key, params);
|
|
20
|
-
return params;
|
|
21
|
-
}, [key]);
|
|
22
|
-
return [state, setCallback];
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-previous.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-previous.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,CAOzC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-reactive.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-reactive.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC,8EAM/C,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
type ScrollRemoveStyle = "overflow-hidden" | "block-only";
|
|
2
|
-
export declare const useRemoveScroll: <T extends HTMLElement>(remove: boolean, removeStyle?: ScrollRemoveStyle) => import("react").RefObject<T | null>;
|
|
3
|
-
export {};
|
|
4
|
-
//# sourceMappingURL=use-remove-scroll.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-remove-scroll.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-remove-scroll.ts"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAE1D,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,QAAQ,OAAO,EAAE,cAAa,iBAAqC,wCAsCzH,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react";
|
|
2
|
-
import { Is, onlyNumbers } from "sidekicker";
|
|
3
|
-
import { hasVerticalScroll } from "../lib/dom";
|
|
4
|
-
import { isMobile, isSsr } from "../lib/fns";
|
|
5
|
-
import { useIsCoarseDevice } from "./use-is-coarse-device";
|
|
6
|
-
export const useRemoveScroll = (remove, removeStyle = "overflow-hidden") => {
|
|
7
|
-
const ref = useRef(null);
|
|
8
|
-
const isCoarseDevice = useIsCoarseDevice();
|
|
9
|
-
const prev = useRef(isSsr() ? "" : document.documentElement.style.overflowY);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (ref.current === null && !remove)
|
|
12
|
-
return;
|
|
13
|
-
if (removeStyle === "block-only")
|
|
14
|
-
return;
|
|
15
|
-
if (removeStyle === "overflow-hidden") {
|
|
16
|
-
if (remove) {
|
|
17
|
-
prev.current = document.documentElement.style.overflowY;
|
|
18
|
-
document.documentElement.style.overflowY = "hidden";
|
|
19
|
-
if (isCoarseDevice || isMobile())
|
|
20
|
-
return;
|
|
21
|
-
document.documentElement.style.padding = hasVerticalScroll(document.documentElement) ? "0 15px 0 0" : "";
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
document.documentElement.style.padding = "";
|
|
25
|
-
document.documentElement.style.overflowY = prev.current;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}, [remove, isCoarseDevice, removeStyle]);
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
if (!remove)
|
|
31
|
-
return;
|
|
32
|
-
const el = ref.current;
|
|
33
|
-
if (!el)
|
|
34
|
-
return;
|
|
35
|
-
const controller = new AbortController();
|
|
36
|
-
const onWheel = (e) => {
|
|
37
|
-
const rect = el.getBoundingClientRect();
|
|
38
|
-
const realHeight = el.style.height ? Number(onlyNumbers(el.style.height)) : null;
|
|
39
|
-
const scrollable = Is.number(realHeight) ? realHeight : rect.height;
|
|
40
|
-
const atLimit = el.scrollHeight <= scrollable;
|
|
41
|
-
if (atLimit)
|
|
42
|
-
e.preventDefault();
|
|
43
|
-
};
|
|
44
|
-
el.addEventListener("wheel", onWheel, { signal: controller.signal, passive: false });
|
|
45
|
-
return () => controller.abort();
|
|
46
|
-
}, [remove]);
|
|
47
|
-
return ref;
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-resize-observer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,GAAI,SAAS,WAAW,GAAG,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,SAc5G,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect, useRef } from "react";
|
|
3
|
-
export const useResizeObserver = (element, onResize) => {
|
|
4
|
-
const onResizeRef = useRef(onResize);
|
|
5
|
-
onResizeRef.current = onResize;
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
if (!element)
|
|
8
|
-
return;
|
|
9
|
-
const observer = new ResizeObserver((entries) => {
|
|
10
|
-
if (entries[0]) {
|
|
11
|
-
onResizeRef.current(entries[0]);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
observer.observe(element);
|
|
15
|
-
return () => observer.disconnect();
|
|
16
|
-
}, [element]);
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-stable-ref.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-stable-ref.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,OAAO,CAAC,iCAQvC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type SwipeDirection = "left" | "right";
|
|
3
|
-
export declare function useSwipe(onSwipe: (e: React.TouchEvent, d: SwipeDirection) => void, threshold: number): {
|
|
4
|
-
onTouchStart: (e: React.TouchEvent) => number;
|
|
5
|
-
onTouchEnd: (e: React.TouchEvent) => void;
|
|
6
|
-
};
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=use-swipe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-swipe.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-swipe.ts"],"names":[],"mappings":"AACA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,KAAK,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,cAAc,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM;sBAGxE,KAAK,CAAC,UAAU;oBAElB,KAAK,CAAC,UAAU;EAU1C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useRef } from "react";
|
|
3
|
-
export function useSwipe(onSwipe, threshold) {
|
|
4
|
-
const touchStartX = useRef(null);
|
|
5
|
-
const onTouchStart = (e) => (touchStartX.current = e.touches[0].clientX);
|
|
6
|
-
const onTouchEnd = (e) => {
|
|
7
|
-
if (touchStartX.current === null)
|
|
8
|
-
return;
|
|
9
|
-
const touchEndX = e.changedTouches[0].clientX;
|
|
10
|
-
const diff = touchEndX - touchStartX.current;
|
|
11
|
-
if (Math.abs(diff) > threshold) {
|
|
12
|
-
onSwipe(e, diff > 0 ? "right" : "left");
|
|
13
|
-
}
|
|
14
|
-
touchStartX.current = null;
|
|
15
|
-
};
|
|
16
|
-
return { onTouchStart, onTouchEnd };
|
|
17
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
export declare const useTranslations: () => {
|
|
2
|
-
autocompleteEmpty: string;
|
|
3
|
-
calendarBackMonth: string;
|
|
4
|
-
calendarFromDate: string;
|
|
5
|
-
calendarMonthLabel: string;
|
|
6
|
-
calendarNextMonth: string;
|
|
7
|
-
calendarDatetimeTitle: string;
|
|
8
|
-
calendarToDate: string;
|
|
9
|
-
calendarToday: string;
|
|
10
|
-
pageCalendarMonthView: string;
|
|
11
|
-
pageCalendarWeekView: string;
|
|
12
|
-
pageCalendarDayView: string;
|
|
13
|
-
pageCalendarPrevious: string;
|
|
14
|
-
pageCalendarNext: string;
|
|
15
|
-
pageCalendarToday: string;
|
|
16
|
-
pageCalendarAddEvent: string;
|
|
17
|
-
pageCalendarWeekLabel: (n: number) => string;
|
|
18
|
-
pageCalendarFilter: string;
|
|
19
|
-
pageCalendarMoreEvents: (n: number) => string;
|
|
20
|
-
pageCalendarLabel: string;
|
|
21
|
-
pageCalendarNavigation: string;
|
|
22
|
-
pageCalendarMonthGrid: string;
|
|
23
|
-
pageCalendarFilterEnabled: string;
|
|
24
|
-
pageCalendarFilterDisabled: string;
|
|
25
|
-
pageCalendarEventCount: (n: number) => string;
|
|
26
|
-
pageCalendarEventAt: (title: string, time: string) => string;
|
|
27
|
-
commandPaletteEmpty: string;
|
|
28
|
-
commandPaletteLoading: string;
|
|
29
|
-
datePickerCalendarButtonLabel: string;
|
|
30
|
-
emptyDataMessage: string;
|
|
31
|
-
inputCaretDown: string;
|
|
32
|
-
inputCloseValue: string;
|
|
33
|
-
inputOptionalLabel: string;
|
|
34
|
-
wizardNext: string;
|
|
35
|
-
wizardPrev: string;
|
|
36
|
-
wizardFinish: string;
|
|
37
|
-
wizardSkip: string;
|
|
38
|
-
multiSelectInnerPlaceholder: string;
|
|
39
|
-
multiSelectSelectedLabel: string;
|
|
40
|
-
tableColumnResizer: string;
|
|
41
|
-
tableFilterColumnPlaceholder: string;
|
|
42
|
-
tableFilterColumnTitle: string;
|
|
43
|
-
tableFilterDropdownTitle: string;
|
|
44
|
-
tableFilterDropdownTitleUnique: string;
|
|
45
|
-
tableFilterLabel: string;
|
|
46
|
-
tableFilterNewFilter: string;
|
|
47
|
-
tableFilterOperatorPlaceholder: string;
|
|
48
|
-
tableFilterOperatorTitle: string;
|
|
49
|
-
tableFilterTypeContains: string;
|
|
50
|
-
tableFilterTypeEndsWith: string;
|
|
51
|
-
tableFilterTypeGreaterThan: string;
|
|
52
|
-
tableFilterTypeIs: string;
|
|
53
|
-
tableFilterTypeIsNot: string;
|
|
54
|
-
tableFilterTypeLessThan: string;
|
|
55
|
-
tableFilterTypeNotContains: string;
|
|
56
|
-
tableFilterTypeStartsWith: string;
|
|
57
|
-
tableFilterValuePlaceholder: string;
|
|
58
|
-
tableFilterValueTitle: string;
|
|
59
|
-
tableGroupLabel: string;
|
|
60
|
-
tableGroupLabelWithCount: string;
|
|
61
|
-
tablePaginationFooter: (pagination: {
|
|
62
|
-
pages: number;
|
|
63
|
-
totalItems: number;
|
|
64
|
-
sizes?: number[];
|
|
65
|
-
current: number;
|
|
66
|
-
select: React.ReactNode;
|
|
67
|
-
}) => import("react").JSX.Element;
|
|
68
|
-
tablePaginationNext: string;
|
|
69
|
-
tablePaginationPrevious: string;
|
|
70
|
-
tablePaginationSelectLabel: string;
|
|
71
|
-
tableSortAddButton: string;
|
|
72
|
-
tableSortAsc: string;
|
|
73
|
-
tableSortDesc: string;
|
|
74
|
-
tableSortDropdownTitle: string;
|
|
75
|
-
tableSortOrderByLabel: string;
|
|
76
|
-
tableSortOrderInputPlaceholder: string;
|
|
77
|
-
tableSortOrderInputTitle: string;
|
|
78
|
-
tableSortTypeInputPlaceholder: string;
|
|
79
|
-
tableSortTypeInputTitle: string;
|
|
80
|
-
uploadIdle: string;
|
|
81
|
-
uploadIdleButton: string;
|
|
82
|
-
uploadDragging: (props: {
|
|
83
|
-
n: number;
|
|
84
|
-
}) => string;
|
|
85
|
-
uploadDialogTitle: string;
|
|
86
|
-
datepickerPlaceholder: (_: string) => string;
|
|
87
|
-
spinnerLoading: string;
|
|
88
|
-
skeletonLoading: string;
|
|
89
|
-
closeButton: string;
|
|
90
|
-
fileUploadZoneLabel: string;
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=use-translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKmuE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD/vE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import { Context } from "../config/context";
|
|
3
|
-
import { defaultTranslations } from "../config/default-translations";
|
|
4
|
-
export const useTranslations = () => {
|
|
5
|
-
const ctx = useContext(Context);
|
|
6
|
-
if (!ctx)
|
|
7
|
-
return defaultTranslations;
|
|
8
|
-
return ctx.map;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-tweaks.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-tweaks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEjE,eAAO,MAAM,SAAS,QAAO,MAI5B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import { Context } from "../config/context";
|
|
3
|
-
import { defaultTweaks } from "../config/default-tweaks";
|
|
4
|
-
export const useTweaks = () => {
|
|
5
|
-
const ctx = useContext(Context);
|
|
6
|
-
if (!ctx)
|
|
7
|
-
return defaultTweaks;
|
|
8
|
-
return ctx.tweaks;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-window-size.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-window-size.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;CAYzB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
export const useWindowSize = () => {
|
|
4
|
-
const [size, setSize] = useState({ width: 0, height: 0 });
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
if (typeof window === "undefined")
|
|
7
|
-
return;
|
|
8
|
-
const update = () => setSize({ width: window.innerWidth, height: window.innerHeight });
|
|
9
|
-
update();
|
|
10
|
-
window.addEventListener("resize", update, { passive: true });
|
|
11
|
-
return () => window.removeEventListener("resize", update);
|
|
12
|
-
}, []);
|
|
13
|
-
return size;
|
|
14
|
-
};
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from "./components";
|
|
2
|
-
export * from "./config/context";
|
|
3
|
-
export * from "./config/default-translations";
|
|
4
|
-
export * from "./config/default-tweaks";
|
|
5
|
-
export * from "./hooks/use-form";
|
|
6
|
-
export * from "./hooks/use-previous";
|
|
7
|
-
export * from "./hooks/use-reactive";
|
|
8
|
-
export * from "./hooks/use-stable-ref";
|
|
9
|
-
export * from "./hooks/use-swipe";
|
|
10
|
-
export * from "./lib/dom";
|
|
11
|
-
export * from "./lib/dict";
|
|
12
|
-
export * from "./lib/fns";
|
|
13
|
-
export * from "./styles/design-tokens";
|
|
14
|
-
export * from "./styles/theme";
|
|
15
|
-
export * from "./styles/theme.types";
|
|
16
|
-
export type * from "./types";
|
|
17
|
-
export { ComponentsProvider } from "./hooks/use-components-provider";
|
|
18
|
-
export { createColumns, createOptionCols, ColType, useTablePreferences, getModalScrollerRef } from "./components/table/table-lib";
|
|
19
|
-
export { useColorParser } from "./hooks/use-color-parser";
|
|
20
|
-
export { useLocale } from "./hooks/use-locale";
|
|
21
|
-
export { useTranslations } from "./hooks/use-translations";
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/src/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "./components";
|
|
2
|
-
export * from "./config/context";
|
|
3
|
-
export * from "./config/default-translations";
|
|
4
|
-
export * from "./config/default-tweaks";
|
|
5
|
-
export * from "./hooks/use-form";
|
|
6
|
-
export * from "./hooks/use-previous";
|
|
7
|
-
export * from "./hooks/use-reactive";
|
|
8
|
-
export * from "./hooks/use-stable-ref";
|
|
9
|
-
export * from "./hooks/use-swipe";
|
|
10
|
-
export * from "./lib/dom";
|
|
11
|
-
export * from "./lib/dict";
|
|
12
|
-
export * from "./lib/fns";
|
|
13
|
-
export * from "./styles/design-tokens";
|
|
14
|
-
export * from "./styles/theme";
|
|
15
|
-
export * from "./styles/theme.types";
|
|
16
|
-
export { ComponentsProvider } from "./hooks/use-components-provider";
|
|
17
|
-
export { createColumns, createOptionCols, ColType, useTablePreferences, getModalScrollerRef } from "./components/table/table-lib";
|
|
18
|
-
export { useColorParser } from "./hooks/use-color-parser";
|
|
19
|
-
export { useLocale } from "./hooks/use-locale";
|
|
20
|
-
export { useTranslations } from "./hooks/use-translations";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const osxRegex: RegExp;
|
|
2
|
-
export declare const isMac: () => boolean;
|
|
3
|
-
type Handler = (e: KeyboardEvent) => void;
|
|
4
|
-
type Combi = {
|
|
5
|
-
key: string;
|
|
6
|
-
fn: Handler;
|
|
7
|
-
};
|
|
8
|
-
export declare class CombiKeys<T extends Combi> {
|
|
9
|
-
combinations: Combi[];
|
|
10
|
-
constructor(combi?: T[]);
|
|
11
|
-
add<S extends string, H extends Handler>(combi: S, fn: H): this | undefined;
|
|
12
|
-
register(): () => void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=combi-keys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combi-keys.d.ts","sourceRoot":"","sources":["../../../src/lib/combi-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,QAAyB,CAAC;AAE/C,eAAO,MAAM,KAAK,eAA2C,CAAC;AAU9D,KAAK,OAAO,GAAG,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;AAI1C,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1C,qBAAa,SAAS,CAAC,CAAC,SAAS,KAAK;IAC3B,YAAY,EAAE,KAAK,EAAE,CAAM;gBAEf,KAAK,GAAE,CAAC,EAAO;IAO3B,GAAG,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAOxD,QAAQ;CA2BlB"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export const osxRegex = /Mac|iPod|iPhone|iPad/;
|
|
2
|
-
export const isMac = () => osxRegex.test(navigator.userAgent);
|
|
3
|
-
const parseCombination = (combination) => combination.split("+").map((k) => {
|
|
4
|
-
const key = k.trim();
|
|
5
|
-
if (key === "Mod")
|
|
6
|
-
return isMac() ? "Meta" : "Control";
|
|
7
|
-
if (key === "Hyper")
|
|
8
|
-
return isMac() ? "Meta+Shift+Alt" : "Control+Shift+Alt";
|
|
9
|
-
return key;
|
|
10
|
-
});
|
|
11
|
-
const combine = (keys) => keys.map((x) => x.trim()).join("+");
|
|
12
|
-
export class CombiKeys {
|
|
13
|
-
combinations = [];
|
|
14
|
-
constructor(combi = []) {
|
|
15
|
-
this.combinations = this.combinations.concat(combi);
|
|
16
|
-
this.combinations.forEach((x) => {
|
|
17
|
-
this.add(x.key, x.fn);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
add(combi, fn) {
|
|
21
|
-
const key = combine(parseCombination(combi));
|
|
22
|
-
if (this.combinations.find((x) => x.key === key))
|
|
23
|
-
return;
|
|
24
|
-
this.combinations.push({ fn, key });
|
|
25
|
-
return this;
|
|
26
|
-
}
|
|
27
|
-
register() {
|
|
28
|
-
const controller = new AbortController();
|
|
29
|
-
const handler = (event) => {
|
|
30
|
-
const element = event.target;
|
|
31
|
-
if (element.tagName === "INPUT" || element.tagName === "TEXTAREA") {
|
|
32
|
-
const bypass = element.getAttribute("data-combikeysbypass");
|
|
33
|
-
if (bypass !== "true")
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const activeKeys = new Set();
|
|
37
|
-
if (event.metaKey)
|
|
38
|
-
activeKeys.add("Meta");
|
|
39
|
-
if (event.ctrlKey)
|
|
40
|
-
activeKeys.add("Control");
|
|
41
|
-
if (event.altKey)
|
|
42
|
-
activeKeys.add("Alt");
|
|
43
|
-
if (event.key.charCodeAt(0) > 127) {
|
|
44
|
-
const char = event.code.replace(/^Digit/, "").replace(/^Key/, "");
|
|
45
|
-
activeKeys.add(event.shiftKey ? char.toUpperCase() : char.toLowerCase());
|
|
46
|
-
}
|
|
47
|
-
else
|
|
48
|
-
activeKeys.add(event.shiftKey ? event.key.toUpperCase() : event.key);
|
|
49
|
-
const action = combine(Array.from(activeKeys));
|
|
50
|
-
this.combinations.forEach((bind) => {
|
|
51
|
-
if (bind.key === action) {
|
|
52
|
-
event.preventDefault();
|
|
53
|
-
return void bind.fn(event);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
window.addEventListener("keydown", handler, { signal: controller.signal });
|
|
58
|
-
return () => controller.abort();
|
|
59
|
-
}
|
|
60
|
-
}
|
package/dist/src/lib/dict.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare class Dict<K, V> extends Map<K, V> {
|
|
2
|
-
remove(key: K): this;
|
|
3
|
-
map<R>(callback: (v: V, i: number) => R): R[];
|
|
4
|
-
clone(fn?: (dict: Dict<K, V>) => Dict<K, V>): Dict<K, V>;
|
|
5
|
-
static from<T>(items: T[], selector: (t: T) => any): Dict<any, T>;
|
|
6
|
-
static unique<T>(items: T[], selector: (t: T) => any): T[];
|
|
7
|
-
toArray(): V[];
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=dict.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/lib/dict.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9B,MAAM,CAAC,GAAG,EAAE,CAAC;IAKb,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE;IAO7C,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;WAMpC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG;WAI3C,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG;IAIpD,OAAO;CAGjB"}
|
package/dist/src/lib/dict.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export class Dict extends Map {
|
|
2
|
-
remove(key) {
|
|
3
|
-
super.delete(key);
|
|
4
|
-
return this;
|
|
5
|
-
}
|
|
6
|
-
map(callback) {
|
|
7
|
-
let i = 0;
|
|
8
|
-
const out = [];
|
|
9
|
-
for (const v of this.values())
|
|
10
|
-
out.push(callback(v, i++));
|
|
11
|
-
return out;
|
|
12
|
-
}
|
|
13
|
-
clone(fn) {
|
|
14
|
-
const clone = new Dict(this);
|
|
15
|
-
if (fn)
|
|
16
|
-
return fn(clone);
|
|
17
|
-
return clone;
|
|
18
|
-
}
|
|
19
|
-
static from(items, selector) {
|
|
20
|
-
return new Dict(items.map((x) => [selector(x), x]));
|
|
21
|
-
}
|
|
22
|
-
static unique(items, selector) {
|
|
23
|
-
return Array.from(Dict.from(items, selector).values());
|
|
24
|
-
}
|
|
25
|
-
toArray() {
|
|
26
|
-
return Array.from(this.values());
|
|
27
|
-
}
|
|
28
|
-
}
|
package/dist/src/lib/dom.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from "clsx";
|
|
2
|
-
import React, { Ref, RefCallback, RefObject } from "react";
|
|
3
|
-
export declare const mergeRefs: <T>(...refs: Array<RefObject<T> | Ref<T> | undefined | null>) => RefCallback<T>;
|
|
4
|
-
export declare const isReactComponent: (a: unknown) => a is React.ReactElement;
|
|
5
|
-
export declare const isReactFC: (a: unknown) => a is (...any: any[]) => any;
|
|
6
|
-
export declare const css: (...styles: ClassValue[]) => string;
|
|
7
|
-
export declare const synthesizeChangeEvent: (input: HTMLInputElement) => React.ChangeEvent<HTMLInputElement>;
|
|
8
|
-
export declare const dispatchInput: (input: HTMLInputElement | undefined | null) => Event & {
|
|
9
|
-
target: HTMLInputElement | null | undefined;
|
|
10
|
-
currentTarget: HTMLInputElement | null | undefined;
|
|
11
|
-
};
|
|
12
|
-
export declare const initializeInputDataset: (input: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement) => () => void;
|
|
13
|
-
export declare const hasVerticalScroll: (htmlElement: HTMLElement) => boolean;
|
|
14
|
-
export declare const getRemainingSize: (element: HTMLElement, windowSize: number) => number;
|
|
15
|
-
export declare const getCoords: (elem: HTMLElement, docEl: HTMLElement) => {
|
|
16
|
-
top: number;
|
|
17
|
-
left: number;
|
|
18
|
-
};
|
|
19
|
-
export declare const isChildVisible: (container: HTMLElement, child: HTMLElement, partial?: boolean) => boolean;
|
|
20
|
-
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsI3D,eAAO,MAAM,SAAS,GACnB,CAAC,EACA,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KACvD,WAAW,CAAC,CAAC,CASf,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,KAAK,CAAC,YAMxD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,OAAO,gCAAmB,CAAC;AAExD,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,UAAU,EAAE,WAA0B,CAAC;AAEtE,eAAO,MAAM,qBAAqB,GAChC,OAAO,gBAAgB,KACtB,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAKpC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,GAAG,SAAS,GAAG,IAAI;;;CAIvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,OAAO,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,eAKlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,YACL,CAAC;AAEtD,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,EAAE,YAAY,MAAM,WAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,EAAE,OAAO,WAAW;;;CAO9D,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,WAAW,WAAW,EACtB,OAAO,WAAW,EAClB,UAAS,OAAc,KACtB,OAgBF,CAAC"}
|