@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
package/dist/src/lib/dom.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import { Is } from "sidekicker";
|
|
3
|
-
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
-
import { components } from "../styles/components";
|
|
5
|
-
const componentPrefixes = Object.keys(components);
|
|
6
|
-
const isFontSizeAttr = (attr) => attr === "text" || attr.endsWith("-text") || attr.startsWith("text-");
|
|
7
|
-
const isBorderWidthAttr = (attr) => attr === "border" || attr.endsWith("-border");
|
|
8
|
-
const isRadiusAttr = (attr) => attr === "radius" || attr.endsWith("-radius");
|
|
9
|
-
const fontSizeTokens = new Set();
|
|
10
|
-
const borderWidthTokens = new Set();
|
|
11
|
-
const radiusTokens = new Set();
|
|
12
|
-
const spacingTokens = new Set();
|
|
13
|
-
for (const [component, attrs] of Object.entries(components)) {
|
|
14
|
-
if (!attrs || typeof attrs !== "object")
|
|
15
|
-
continue;
|
|
16
|
-
if (component === "typography") {
|
|
17
|
-
for (const attr of Object.keys(attrs))
|
|
18
|
-
fontSizeTokens.add(attr);
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
for (const attr of Object.keys(attrs)) {
|
|
22
|
-
const key = `${component}-${attr}`;
|
|
23
|
-
if (isRadiusAttr(attr))
|
|
24
|
-
radiusTokens.add(key);
|
|
25
|
-
else if (isBorderWidthAttr(attr)) {
|
|
26
|
-
borderWidthTokens.add(key);
|
|
27
|
-
spacingTokens.add(key);
|
|
28
|
-
}
|
|
29
|
-
else if (isFontSizeAttr(attr)) {
|
|
30
|
-
fontSizeTokens.add(key);
|
|
31
|
-
spacingTokens.add(key);
|
|
32
|
-
}
|
|
33
|
-
else
|
|
34
|
-
spacingTokens.add(key);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const isComponentToken = (value) => componentPrefixes.some((p) => value === p || value.startsWith(`${p}-`));
|
|
38
|
-
const isSpacingValue = (value) => spacingTokens.has(value);
|
|
39
|
-
const isRadiusValue = (value) => radiusTokens.has(value);
|
|
40
|
-
const isFontSizeValue = (value) => {
|
|
41
|
-
if (fontSizeTokens.has(value))
|
|
42
|
-
return true;
|
|
43
|
-
if (value.startsWith("typography-"))
|
|
44
|
-
return fontSizeTokens.has(value.slice("typography-".length));
|
|
45
|
-
return false;
|
|
46
|
-
};
|
|
47
|
-
const isBorderWidthValue = (value) => borderWidthTokens.has(value);
|
|
48
|
-
const isTextColorValue = (value) => !isFontSizeValue(value) && isComponentToken(value);
|
|
49
|
-
const isBorderColorValue = (value) => !isBorderWidthValue(value) && isComponentToken(value);
|
|
50
|
-
const spacingGroupIds = [
|
|
51
|
-
"p",
|
|
52
|
-
"px",
|
|
53
|
-
"py",
|
|
54
|
-
"pt",
|
|
55
|
-
"pr",
|
|
56
|
-
"pb",
|
|
57
|
-
"pl",
|
|
58
|
-
"ps",
|
|
59
|
-
"pe",
|
|
60
|
-
"m",
|
|
61
|
-
"mx",
|
|
62
|
-
"my",
|
|
63
|
-
"mt",
|
|
64
|
-
"mr",
|
|
65
|
-
"mb",
|
|
66
|
-
"ml",
|
|
67
|
-
"ms",
|
|
68
|
-
"me",
|
|
69
|
-
"gap",
|
|
70
|
-
"gap-x",
|
|
71
|
-
"gap-y",
|
|
72
|
-
"h",
|
|
73
|
-
"w",
|
|
74
|
-
"size",
|
|
75
|
-
"min-h",
|
|
76
|
-
"min-w",
|
|
77
|
-
"max-h",
|
|
78
|
-
"max-w",
|
|
79
|
-
"top",
|
|
80
|
-
"right",
|
|
81
|
-
"bottom",
|
|
82
|
-
"left",
|
|
83
|
-
"inset",
|
|
84
|
-
"inset-x",
|
|
85
|
-
"inset-y",
|
|
86
|
-
];
|
|
87
|
-
const radiusGroupIds = [
|
|
88
|
-
"rounded",
|
|
89
|
-
"rounded-s",
|
|
90
|
-
"rounded-e",
|
|
91
|
-
"rounded-t",
|
|
92
|
-
"rounded-r",
|
|
93
|
-
"rounded-b",
|
|
94
|
-
"rounded-l",
|
|
95
|
-
"rounded-ss",
|
|
96
|
-
"rounded-se",
|
|
97
|
-
"rounded-ee",
|
|
98
|
-
"rounded-es",
|
|
99
|
-
"rounded-tl",
|
|
100
|
-
"rounded-tr",
|
|
101
|
-
"rounded-br",
|
|
102
|
-
"rounded-bl",
|
|
103
|
-
];
|
|
104
|
-
const wrap = (ids, match) => Object.fromEntries(ids.map((id) => [id, [{ [id]: [match] }]]));
|
|
105
|
-
const twMerge = extendTailwindMerge({
|
|
106
|
-
extend: {
|
|
107
|
-
classGroups: {
|
|
108
|
-
...wrap(spacingGroupIds, isSpacingValue),
|
|
109
|
-
...wrap(radiusGroupIds, isRadiusValue),
|
|
110
|
-
"font-size": [{ text: [isFontSizeValue] }],
|
|
111
|
-
"text-color": [{ text: [isTextColorValue] }],
|
|
112
|
-
"border-w": [{ border: [isBorderWidthValue] }],
|
|
113
|
-
"border-color": [{ border: [isBorderColorValue] }],
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
});
|
|
117
|
-
export const mergeRefs = (...refs) => (value) => {
|
|
118
|
-
refs.forEach((ref) => {
|
|
119
|
-
if (typeof ref === "function") {
|
|
120
|
-
ref(value);
|
|
121
|
-
}
|
|
122
|
-
else if (ref !== null) {
|
|
123
|
-
ref.current = value;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
export const isReactComponent = (a) => {
|
|
128
|
-
if (typeof a !== "object" || a === null)
|
|
129
|
-
return false;
|
|
130
|
-
const elem = a;
|
|
131
|
-
if (elem.$$typeof === Symbol.for("react.forward_ref"))
|
|
132
|
-
return true;
|
|
133
|
-
if (elem.$$typeof === Symbol.for("react.fragment"))
|
|
134
|
-
return true;
|
|
135
|
-
return elem.$$typeof === Symbol.for("react.element");
|
|
136
|
-
};
|
|
137
|
-
export const isReactFC = (a) => Is.function(a);
|
|
138
|
-
export const css = (...styles) => twMerge(clsx(styles));
|
|
139
|
-
export const synthesizeChangeEvent = (input) => {
|
|
140
|
-
return {
|
|
141
|
-
target: input,
|
|
142
|
-
currentTarget: input,
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
export const dispatchInput = (input) => {
|
|
146
|
-
const event = new Event("input", { bubbles: true, composed: true });
|
|
147
|
-
input?.dispatchEvent(event);
|
|
148
|
-
return Object.assign({}, event, { target: input, currentTarget: input });
|
|
149
|
-
};
|
|
150
|
-
export const initializeInputDataset = (input) => {
|
|
151
|
-
const focus = () => input.setAttribute("data-initialized", "true");
|
|
152
|
-
input.addEventListener("focus", focus);
|
|
153
|
-
return () => input.removeEventListener("focus", focus);
|
|
154
|
-
};
|
|
155
|
-
export const hasVerticalScroll = (htmlElement) => htmlElement.scrollHeight > htmlElement.clientHeight;
|
|
156
|
-
export const getRemainingSize = (element, windowSize) => {
|
|
157
|
-
if (element && element.getBoundingClientRect) {
|
|
158
|
-
const rect = element.getBoundingClientRect();
|
|
159
|
-
return Math.abs(windowSize - rect.bottom);
|
|
160
|
-
}
|
|
161
|
-
return 320;
|
|
162
|
-
};
|
|
163
|
-
export const getCoords = (elem, docEl) => {
|
|
164
|
-
const box = elem.getBoundingClientRect();
|
|
165
|
-
const parent = docEl.getBoundingClientRect();
|
|
166
|
-
return {
|
|
167
|
-
top: Math.round(box.top - parent.top),
|
|
168
|
-
left: Math.round(box.left - parent.left),
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
export const isChildVisible = (container, child, partial = true) => {
|
|
172
|
-
const containerRect = container.getBoundingClientRect();
|
|
173
|
-
const childRect = child.getBoundingClientRect();
|
|
174
|
-
const isWithinTop = childRect.top >= containerRect.top;
|
|
175
|
-
const isWithinBottom = childRect.bottom <= containerRect.bottom;
|
|
176
|
-
const isWithinLeft = childRect.left >= containerRect.left;
|
|
177
|
-
const isWithinRight = childRect.right <= containerRect.right;
|
|
178
|
-
if (partial) {
|
|
179
|
-
return (childRect.top < containerRect.bottom &&
|
|
180
|
-
childRect.bottom > containerRect.top &&
|
|
181
|
-
childRect.left < containerRect.right &&
|
|
182
|
-
childRect.right > containerRect.left);
|
|
183
|
-
}
|
|
184
|
-
return isWithinTop && isWithinBottom && isWithinLeft && isWithinRight;
|
|
185
|
-
};
|
package/dist/src/lib/fns.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AllPaths } from "sidekicker";
|
|
2
|
-
import { Any } from "../types";
|
|
3
|
-
export declare const uuid: () => string;
|
|
4
|
-
export declare const path: <T extends Any, K extends AllPaths<T>>(obj: T, path: K) => Any | undefined;
|
|
5
|
-
export declare const isSsr: () => boolean;
|
|
6
|
-
export declare const safeRegex: (string: string) => string;
|
|
7
|
-
export declare const splitInto: <T>(array: T[], size: number) => T[][];
|
|
8
|
-
export declare const negate: (b: boolean) => boolean;
|
|
9
|
-
export declare const noop: () => void;
|
|
10
|
-
export declare const isMobile: () => boolean;
|
|
11
|
-
//# sourceMappingURL=fns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../../src/lib/fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,eAAO,MAAM,IAAI,QAAO,MAkBvB,CAAC;AAUF,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,oBAGzE,CAAC;AAEF,eAAO,MAAM,KAAK,eAAsC,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,WAAkD,CAAC;AAE3F,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,MAAM,UAQpD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,GAAG,OAAO,YAAO,CAAC;AAEzC,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,QAAQ,eAGpB,CAAC"}
|
package/dist/src/lib/fns.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export const uuid = () => {
|
|
2
|
-
const timestamp = Date.now();
|
|
3
|
-
const bytes = new Uint8Array(16);
|
|
4
|
-
bytes[0] = (timestamp / Math.pow(2, 40)) & 0xff;
|
|
5
|
-
bytes[1] = (timestamp / Math.pow(2, 32)) & 0xff;
|
|
6
|
-
bytes[2] = (timestamp / Math.pow(2, 24)) & 0xff;
|
|
7
|
-
bytes[3] = (timestamp / Math.pow(2, 16)) & 0xff;
|
|
8
|
-
bytes[4] = (timestamp / Math.pow(2, 8)) & 0xff;
|
|
9
|
-
bytes[5] = timestamp & 0xff;
|
|
10
|
-
const randomBytes = new Uint8Array(10);
|
|
11
|
-
crypto.getRandomValues(randomBytes);
|
|
12
|
-
bytes.set(randomBytes, 6);
|
|
13
|
-
bytes[6] = (bytes[6] & 0x0f) | 0x70;
|
|
14
|
-
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
15
|
-
const hex = Array.from(bytes)
|
|
16
|
-
.map((b) => b.toString(16).padStart(2, "0"))
|
|
17
|
-
.join("");
|
|
18
|
-
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
19
|
-
};
|
|
20
|
-
const travel = (path, regexp, obj) => path
|
|
21
|
-
.split(regexp)
|
|
22
|
-
.filter(Boolean)
|
|
23
|
-
.reduce((res, key) => (res !== null && res !== undefined ? res[key] : res), obj);
|
|
24
|
-
const regexPaths = { basic: /[,[\]]+?/, extend: /[,[\].]+?/ };
|
|
25
|
-
export const path = (obj, path) => {
|
|
26
|
-
const result = travel(path, regexPaths.basic, obj) || travel(path, regexPaths.extend, obj);
|
|
27
|
-
return result === undefined || result === obj ? undefined : result;
|
|
28
|
-
};
|
|
29
|
-
export const isSsr = () => typeof window === "undefined";
|
|
30
|
-
export const safeRegex = (string) => string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31
|
-
export const splitInto = (array, size) => {
|
|
32
|
-
const newArray = [];
|
|
33
|
-
for (let i = 0; i < size; i++) {
|
|
34
|
-
const init = i * size;
|
|
35
|
-
const result = array.slice(init, init + size);
|
|
36
|
-
if (result.length > 0)
|
|
37
|
-
newArray.push(result);
|
|
38
|
-
}
|
|
39
|
-
return newArray;
|
|
40
|
-
};
|
|
41
|
-
export const negate = (b) => !b;
|
|
42
|
-
export const noop = () => { };
|
|
43
|
-
export const isMobile = () => {
|
|
44
|
-
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
45
|
-
return /android|iphone|ipad|ipod|opera mini|iemobile|wpdesktop/i.test(userAgent ?? "");
|
|
46
|
-
};
|
package/dist/src/lib/fzf.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Any, Walk } from "../types";
|
|
2
|
-
export declare const fuzzyMatch: (text: string, search: string) => number | null;
|
|
3
|
-
export type Match = "EQUAL" | "CONTAINS" | "CONTAINS_NUMBERS" | "STARTS_WITH" | "ENDS_WITH" | "FUZZY";
|
|
4
|
-
export type MatchValue<T> = {
|
|
5
|
-
match?: Match;
|
|
6
|
-
score?: number;
|
|
7
|
-
key: Walk<T>;
|
|
8
|
-
value: string | string[];
|
|
9
|
-
ifNotMatch?: (value: string, source: string) => boolean;
|
|
10
|
-
};
|
|
11
|
-
export type Matcher<T> = {
|
|
12
|
-
match?: Match;
|
|
13
|
-
key: Walk<T>;
|
|
14
|
-
};
|
|
15
|
-
export declare const fzf: <T extends Any, ID extends Walk<T>>(items: T[], id: ID, keys: MatchValue<T>[]) => T[];
|
|
16
|
-
//# sourceMappingURL=fzf.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fzf.d.ts","sourceRoot":"","sources":["../../../src/lib/fzf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,EAAE,QAAQ,MAAM,KAAG,MAAM,GAAG,IAmClE,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,kBAAkB,GAAG,aAAa,GAAG,WAAW,GAAG,OAAO,CAAC;AAEtG,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAoDzD,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,GAAG,EAAE,EAAE,SAAS,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,EAAE,QA2B/F,CAAC"}
|
package/dist/src/lib/fzf.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Is } from "sidekicker";
|
|
2
|
-
export const fuzzyMatch = (text, search) => {
|
|
3
|
-
text = String(text).toLocaleLowerCase();
|
|
4
|
-
search = String(search).toLocaleLowerCase();
|
|
5
|
-
if (text === search)
|
|
6
|
-
return 1;
|
|
7
|
-
const firstChar = search[0];
|
|
8
|
-
if (!firstChar)
|
|
9
|
-
return null;
|
|
10
|
-
const matchedIndexes = [];
|
|
11
|
-
let cursor = 0;
|
|
12
|
-
while (cursor < text.length) {
|
|
13
|
-
const startIdx = text.indexOf(firstChar, cursor);
|
|
14
|
-
if (startIdx === -1)
|
|
15
|
-
break;
|
|
16
|
-
let pos = startIdx + 1;
|
|
17
|
-
const indexes = [startIdx];
|
|
18
|
-
let matched = true;
|
|
19
|
-
for (let i = 1; i < search.length; i++) {
|
|
20
|
-
const foundAt = text.indexOf(search[i], pos);
|
|
21
|
-
if (foundAt === -1) {
|
|
22
|
-
matched = false;
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
indexes.push(foundAt);
|
|
26
|
-
pos = foundAt + 1;
|
|
27
|
-
}
|
|
28
|
-
if (matched)
|
|
29
|
-
matchedIndexes.push(indexes);
|
|
30
|
-
cursor = startIdx + 1;
|
|
31
|
-
}
|
|
32
|
-
if (matchedIndexes.length === 0)
|
|
33
|
-
return null;
|
|
34
|
-
const bestMatch = matchedIndexes.sort((a, b) => {
|
|
35
|
-
if (a.length === 1)
|
|
36
|
-
return a[0] - b[0];
|
|
37
|
-
return a[a.length - 1] - a[0] - (b[b.length - 1] - b[0]);
|
|
38
|
-
})[0];
|
|
39
|
-
if (bestMatch.length > 1)
|
|
40
|
-
return 2 + (bestMatch[bestMatch.length - 1] - bestMatch[0]);
|
|
41
|
-
return 2 + bestMatch[0];
|
|
42
|
-
};
|
|
43
|
-
const travel = (path, regexp, obj) => {
|
|
44
|
-
const keys = path.split(regexp).filter(Boolean);
|
|
45
|
-
let res = obj;
|
|
46
|
-
for (const key of keys) {
|
|
47
|
-
if (res === null || res === undefined) {
|
|
48
|
-
return res;
|
|
49
|
-
}
|
|
50
|
-
res = res[key];
|
|
51
|
-
}
|
|
52
|
-
return res;
|
|
53
|
-
};
|
|
54
|
-
const regexPaths = { basic: /[,[\]]+?/, extend: /[,[\].]+?/ };
|
|
55
|
-
const path = (obj, path) => {
|
|
56
|
-
const result = travel(path, regexPaths.basic, obj);
|
|
57
|
-
if (result !== undefined && result !== obj)
|
|
58
|
-
return result;
|
|
59
|
-
return travel(path, regexPaths.extend, obj);
|
|
60
|
-
};
|
|
61
|
-
const onlyNumbers = (str) => str.replace(/[^0-9]/g, "");
|
|
62
|
-
const diacritics = (input) => input.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
63
|
-
const strCompare = (text, value, _, match = "FUZZY") => {
|
|
64
|
-
if (match === "CONTAINS") {
|
|
65
|
-
return text.includes(value);
|
|
66
|
-
}
|
|
67
|
-
if (match === "EQUAL") {
|
|
68
|
-
return text === value;
|
|
69
|
-
}
|
|
70
|
-
if (match === "CONTAINS_NUMBERS") {
|
|
71
|
-
return onlyNumbers(text).includes(onlyNumbers(value));
|
|
72
|
-
}
|
|
73
|
-
if (match === "STARTS_WITH") {
|
|
74
|
-
return text.startsWith(value);
|
|
75
|
-
}
|
|
76
|
-
if (match === "ENDS_WITH") {
|
|
77
|
-
return text.endsWith(value);
|
|
78
|
-
}
|
|
79
|
-
if (match === "FUZZY") {
|
|
80
|
-
const r = fuzzyMatch(text, value);
|
|
81
|
-
return r !== null;
|
|
82
|
-
}
|
|
83
|
-
return false;
|
|
84
|
-
};
|
|
85
|
-
const compare = (search, value, defaultScore, match = "FUZZY") => Array.isArray(value) ? value.some((x) => strCompare(search, x, defaultScore, match)) : strCompare(search, value, defaultScore, match);
|
|
86
|
-
export const fzf = (items, id, keys) => {
|
|
87
|
-
if (keys.length === 0) {
|
|
88
|
-
return items;
|
|
89
|
-
}
|
|
90
|
-
const map = new Map();
|
|
91
|
-
const remap = keys.map((x) => {
|
|
92
|
-
const target = Is.array(x.value)
|
|
93
|
-
? x.value.map((v) => diacritics(`${v}`.toLocaleLowerCase()).trim())
|
|
94
|
-
: diacritics(`${x.value}`.toLocaleLowerCase()).trim();
|
|
95
|
-
return { ...x, target };
|
|
96
|
-
});
|
|
97
|
-
items.forEach((item) => {
|
|
98
|
-
const idVal = path(item, id);
|
|
99
|
-
remap.forEach((filter) => {
|
|
100
|
-
const searchValue = path(item, filter.key);
|
|
101
|
-
if (!searchValue)
|
|
102
|
-
return;
|
|
103
|
-
const search = diacritics(`${searchValue}`.toLocaleLowerCase()).trim();
|
|
104
|
-
if (compare(search, filter.target, filter.score, filter.match)) {
|
|
105
|
-
return void map.set(idVal, item);
|
|
106
|
-
}
|
|
107
|
-
if (Is.function(filter.ifNotMatch)) {
|
|
108
|
-
const result = filter.ifNotMatch(filter.target, search);
|
|
109
|
-
if (result)
|
|
110
|
-
map.set(idVal, item);
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
return Array.from(map.values());
|
|
115
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type EventKey = "Backspace" | "Tab" | "Enter" | "Shift" | "Control" | "Alt" | "Pause" | "CapsLock" | "Escape" | "Space" | "PageUp" | "PageDown" | "End" | "Home" | "ArrowLeft" | "ArrowUp" | "ArrowRight" | "ArrowDown" | "PrintScreen" | "Insert" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "Meta" | "ContextMenu" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | "NumLock" | "ScrollLock" | "AudioVolumeMute" | "AudioVolumeUp" | "AudioVolumeDown" | "MediaTrackNext" | "MediaTrackPrevious" | "MediaStop" | "MediaPlayPause" | "LaunchMail" | "LaunchMediaPlayer" | "LaunchApplication1" | "LaunchApplication2" | "Semicolon" | "Equal" | "Comma" | "Minus" | "Period" | "Slash" | "Backquote" | "BracketLeft" | "Backslash" | "BracketRight" | "Quote";
|
|
3
|
-
export declare const keyboardKeys: {
|
|
4
|
-
readonly ArrowUp: "ArrowUp";
|
|
5
|
-
readonly ArrowDown: "ArrowDown";
|
|
6
|
-
readonly ArrowLeft: "ArrowLeft";
|
|
7
|
-
readonly ArrowRight: "ArrowRight";
|
|
8
|
-
};
|
|
9
|
-
type Callback<T extends HTMLElement = HTMLElement> = (e: KeyboardEvent | React.KeyboardEvent<T>) => void;
|
|
10
|
-
export declare class KeyboardArea<T extends HTMLElement> {
|
|
11
|
-
private set;
|
|
12
|
-
key(key: EventKey, callback: Callback<T>): () => boolean;
|
|
13
|
-
onKeyDown(_: Callback<T>): void;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=keyboard-area.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-area.d.ts","sourceRoot":"","sources":["../../../src/lib/keyboard-area.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,QAAQ,GACP,WAAW,GACX,KAAK,GACL,OAAO,GACP,OAAO,GACP,SAAS,GACT,KAAK,GACL,OAAO,GACP,UAAU,GACV,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,UAAU,GACV,KAAK,GACL,MAAM,GACN,WAAW,GACX,SAAS,GACT,YAAY,GACZ,WAAW,GACX,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,MAAM,GACN,aAAa,GACb,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,SAAS,GACT,YAAY,GACZ,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,oBAAoB,GACpB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,WAAW,GACX,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,WAAW,GACX,aAAa,GACb,WAAW,GACX,cAAc,GACd,OAAO,CAAC;AAEd,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,KAAK,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,CAAC,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEzG,qBAAa,YAAY,CAAC,CAAC,SAAS,WAAW;IAC3C,OAAO,CAAC,GAAG,CAAa;IAEjB,GAAG,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAKxC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;CAClC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export const keyboardKeys = {
|
|
2
|
-
ArrowUp: "ArrowUp",
|
|
3
|
-
ArrowDown: "ArrowDown",
|
|
4
|
-
ArrowLeft: "ArrowLeft",
|
|
5
|
-
ArrowRight: "ArrowRight",
|
|
6
|
-
};
|
|
7
|
-
export class KeyboardArea {
|
|
8
|
-
set = new Set();
|
|
9
|
-
key(key, callback) {
|
|
10
|
-
const fn = (e) => (e.key === key ? callback(e) : undefined);
|
|
11
|
-
return () => this.set.delete(fn);
|
|
12
|
-
}
|
|
13
|
-
onKeyDown(_) { }
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DesignTokens, ZIndex } from "./theme.types";
|
|
2
|
-
export declare const rounded: {
|
|
3
|
-
readonly pill: "2rem";
|
|
4
|
-
readonly full: "9999px";
|
|
5
|
-
};
|
|
6
|
-
export declare const spacing: DesignTokens["spacing"];
|
|
7
|
-
export declare const zIndex: ZIndex;
|
|
8
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/styles/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,eAAO,MAAM,OAAO,EAAE,YAAY,CAAC,SAAS,CAMlC,CAAC;AAEX,eAAO,MAAM,MAAM,EAAE,MAQX,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const rounded = {
|
|
2
|
-
pill: "2rem",
|
|
3
|
-
full: "9999px",
|
|
4
|
-
};
|
|
5
|
-
export const spacing = {
|
|
6
|
-
base: "1rem",
|
|
7
|
-
hairline: "0.0625rem",
|
|
8
|
-
lg: "1.125rem",
|
|
9
|
-
sm: "0.75rem",
|
|
10
|
-
dialog: "20rem",
|
|
11
|
-
};
|
|
12
|
-
export const zIndex = {
|
|
13
|
-
wizard: "50",
|
|
14
|
-
normal: "1",
|
|
15
|
-
navbar: "22",
|
|
16
|
-
calendar: "2",
|
|
17
|
-
overlay: "21",
|
|
18
|
-
tooltip: "20",
|
|
19
|
-
floating: "22",
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/styles/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,UAAU,EAAE,eA4YxB,CAAC"}
|