@datum-cloud/datum-ui 0.6.0 → 0.7.0
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/LICENSE +21 -0
- package/README.md +10 -0
- package/dist/action-row-DnhBhMtt.mjs +22 -0
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-84ro28PU.mjs → app-navigation-D0EBWUwJ.mjs} +48 -3
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/autocomplete-DdbTQe6u.mjs +141 -0
- package/dist/autosearch/index.mjs +100 -92
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-oVr8tsU7.mjs → avatar-stack-CDhlA1Nm.mjs} +1 -1
- package/dist/calendar/index.mjs +1 -1
- package/dist/{calendar-DEkCw7I1.mjs → calendar-C-Hbf74r.mjs} +4 -4
- package/dist/{calendar-date-picker-CDT-8Ha8.mjs → calendar-date-picker-BaykEs6j.mjs} +324 -240
- package/dist/code-editor/index.mjs +1 -1
- package/dist/components/base/date-picker/index.d.ts +4 -0
- package/dist/components/base/date-picker/index.d.ts.map +1 -0
- package/dist/components/base/date-picker/types.d.ts +7 -0
- package/dist/components/base/date-picker/types.d.ts.map +1 -0
- package/dist/components/base/date-picker/use-date-constraints.d.ts +8 -0
- package/dist/components/base/date-picker/use-date-constraints.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +3 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/base/mobile-sheet/context.d.ts +13 -0
- package/dist/components/base/mobile-sheet/context.d.ts.map +1 -0
- package/dist/components/base/mobile-sheet/index.d.ts +3 -0
- package/dist/components/base/mobile-sheet/index.d.ts.map +1 -0
- package/dist/components/base/mobile-sheet/mobile-sheet.d.ts +14 -0
- package/dist/components/base/mobile-sheet/mobile-sheet.d.ts.map +1 -0
- package/dist/components/base/option-picker/index.d.ts +5 -0
- package/dist/components/base/option-picker/index.d.ts.map +1 -0
- package/dist/components/base/option-picker/option-list.d.ts +3 -0
- package/dist/components/base/option-picker/option-list.d.ts.map +1 -0
- package/dist/components/base/option-picker/types.d.ts +71 -0
- package/dist/components/base/option-picker/types.d.ts.map +1 -0
- package/dist/components/base/option-picker/use-option-picker.d.ts +4 -0
- package/dist/components/base/option-picker/use-option-picker.d.ts.map +1 -0
- package/dist/components/base/responsive-dropdown/index.d.ts +2 -0
- package/dist/components/base/responsive-dropdown/index.d.ts.map +1 -0
- package/dist/components/base/responsive-dropdown/responsive-dropdown.d.ts +25 -0
- package/dist/components/base/responsive-dropdown/responsive-dropdown.d.ts.map +1 -0
- package/dist/components/base/responsive-popover/index.d.ts +2 -0
- package/dist/components/base/responsive-popover/index.d.ts.map +1 -0
- package/dist/components/base/responsive-popover/responsive-popover.d.ts +46 -0
- package/dist/components/base/responsive-popover/responsive-popover.d.ts.map +1 -0
- package/dist/components/base/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/features/app-navigation/app-navigation.d.ts +5 -3
- package/dist/components/features/app-navigation/app-navigation.d.ts.map +1 -1
- package/dist/components/features/autocomplete/autocomplete.d.ts +2 -2
- package/dist/components/features/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/features/autocomplete/autocomplete.types.d.ts +7 -16
- package/dist/components/features/autocomplete/autocomplete.types.d.ts.map +1 -1
- package/dist/components/features/autocomplete/trigger.d.ts +20 -0
- package/dist/components/features/autocomplete/trigger.d.ts.map +1 -0
- package/dist/components/features/autosearch/autosearch.d.ts +1 -1
- package/dist/components/features/autosearch/autosearch.d.ts.map +1 -1
- package/dist/components/features/autosearch/autosearch.types.d.ts +4 -0
- package/dist/components/features/autosearch/autosearch.types.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +3 -37
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/calendar-header.d.ts +13 -0
- package/dist/components/features/calendar-date-picker/calendar-header.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/calendar-presets.d.ts +9 -0
- package/dist/components/features/calendar-date-picker/calendar-presets.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/date-trigger.d.ts +24 -0
- package/dist/components/features/calendar-date-picker/date-trigger.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/index.d.ts +2 -1
- package/dist/components/features/calendar-date-picker/index.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/types.d.ts +42 -0
- package/dist/components/features/calendar-date-picker/types.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/use-calendar-date-picker.d.ts +48 -0
- package/dist/components/features/calendar-date-picker/use-calendar-date-picker.d.ts.map +1 -0
- package/dist/components/features/data-table/components/row-actions.d.ts +1 -1
- package/dist/components/features/data-table/components/row-actions.d.ts.map +1 -1
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts +1 -1
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts.map +1 -1
- package/dist/components/features/data-table/filters/select-filter.d.ts +1 -1
- package/dist/components/features/data-table/filters/select-filter.d.ts.map +1 -1
- package/dist/components/features/data-table/types.d.ts +11 -12
- package/dist/components/features/data-table/types.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/date-time-picker.d.ts +1 -1
- package/dist/components/features/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/types.d.ts +23 -0
- package/dist/components/features/date-time-picker/types.d.ts.map +1 -1
- package/dist/components/features/form/components/form-combobox.d.ts +7 -44
- package/dist/components/features/form/components/form-combobox.d.ts.map +1 -1
- package/dist/components/features/form/components/form-dialog.d.ts +2 -1
- package/dist/components/features/form/components/form-dialog.d.ts.map +1 -1
- package/dist/components/features/form/components/form-field.d.ts +1 -1
- package/dist/components/features/form/components/form-field.d.ts.map +1 -1
- package/dist/components/features/form/types/index.d.ts +4 -0
- package/dist/components/features/form/types/index.d.ts.map +1 -1
- package/dist/components/features/index.d.ts +2 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/more-actions/action-row.d.ts +9 -0
- package/dist/components/features/more-actions/action-row.d.ts.map +1 -0
- package/dist/components/features/more-actions/index.d.ts +3 -1
- package/dist/components/features/more-actions/index.d.ts.map +1 -1
- package/dist/components/features/more-actions/more-actions.d.ts +8 -14
- package/dist/components/features/more-actions/more-actions.d.ts.map +1 -1
- package/dist/components/features/more-actions/types.d.ts +24 -0
- package/dist/components/features/more-actions/types.d.ts.map +1 -0
- package/dist/components/features/multi-select/index.d.ts +3 -0
- package/dist/components/features/multi-select/index.d.ts.map +1 -0
- package/dist/components/features/multi-select/multi-select.d.ts +147 -0
- package/dist/components/features/multi-select/multi-select.d.ts.map +1 -0
- package/dist/components/features/page-title/page-title.d.ts.map +1 -1
- package/dist/components/features/rich-text-editor/index.d.ts +4 -0
- package/dist/components/features/rich-text-editor/index.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/rich-text-content.d.ts +3 -0
- package/dist/components/features/rich-text-editor/rich-text-content.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +28 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/bold-toolbar.d.ts +2 -0
- package/dist/components/features/rich-text-editor/toolbar/bold-toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/italic-toolbar.d.ts +2 -0
- package/dist/components/features/rich-text-editor/toolbar/italic-toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/link-toolbar.d.ts +2 -0
- package/dist/components/features/rich-text-editor/toolbar/link-toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/strike-toolbar.d.ts +2 -0
- package/dist/components/features/rich-text-editor/toolbar/strike-toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/toolbar-button.d.ts +17 -0
- package/dist/components/features/rich-text-editor/toolbar/toolbar-button.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/toolbar.d.ts +6 -0
- package/dist/components/features/rich-text-editor/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/toolbar/underline-toolbar.d.ts +2 -0
- package/dist/components/features/rich-text-editor/toolbar/underline-toolbar.d.ts.map +1 -0
- package/dist/components/features/rich-text-editor/types.d.ts +20 -0
- package/dist/components/features/rich-text-editor/types.d.ts.map +1 -0
- package/dist/components/features/tag-input/tag-input.d.ts +12 -1
- package/dist/components/features/tag-input/tag-input.d.ts.map +1 -1
- package/dist/components/features/task-queue/core/task-queue-dropdown.d.ts.map +1 -1
- package/dist/components/features/time-picker/time-picker.d.ts +1 -17
- package/dist/components/features/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/features/time-picker/types.d.ts +20 -18
- package/dist/components/features/time-picker/types.d.ts.map +1 -1
- package/dist/components/features/time-picker/use-time-slots.d.ts +10 -0
- package/dist/components/features/time-picker/use-time-slots.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/components/absolute-range-panel.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/data-table/index.mjs +60 -175
- package/dist/date-picker/index.mjs +2 -2
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/{date-time-picker-BomrW07W.mjs → date-time-picker-DKOxrhmc.mjs} +64 -49
- package/dist/dropdown/index.mjs +109 -1
- package/dist/dropzone/index.mjs +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/adapters/conform/index.mjs +2 -2
- package/dist/form/adapters/rhf/index.mjs +2 -2
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +3 -3
- package/dist/{form-B3rQ4CH9.mjs → form-CCNN9VtJ.mjs} +27 -30
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.mjs +4 -3
- package/dist/hooks/use-breakpoint.d.ts +9 -0
- package/dist/hooks/use-breakpoint.d.ts.map +1 -0
- package/dist/index.mjs +48 -41
- package/dist/input-number/index.mjs +1 -1
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/{map-CWIQ-eql.mjs → map-DRzZDNtB.mjs} +83 -4
- package/dist/mobile-sheet/index.mjs +2 -0
- package/dist/mobile-sheet-BxMvkzAj.mjs +61 -0
- package/dist/more-actions/index.mjs +3 -2
- package/dist/more-actions-Ca5qqd0H.mjs +49 -0
- package/dist/multi-select/index.mjs +2 -0
- package/dist/multi-select-DM_dxnSV.mjs +235 -0
- package/dist/page-title/index.mjs +1 -1
- package/dist/{page-title-ChsnpBiH.mjs → page-title-ChLiv6gB.mjs} +3 -2
- package/dist/popover/index.mjs +1 -1
- package/dist/radio-group/index.mjs +1 -1
- package/dist/responsive-dropdown/index.mjs +2 -0
- package/dist/responsive-dropdown-IFroDgKn.mjs +53 -0
- package/dist/responsive-popover/index.mjs +2 -0
- package/dist/responsive-popover-D-t9bxSN.mjs +61 -0
- package/dist/rich-text-editor/index.mjs +2 -0
- package/dist/rich-text-editor-CQH_U4T5.mjs +293 -0
- package/dist/select/index.mjs +1 -1
- package/dist/sheet/index.mjs +2 -2
- package/dist/{sheet-BzXksqYY.mjs → sheet-LhUgozvg.mjs} +1 -1
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-BnhnjvfO.mjs → sidebar-B8LQJiNI.mjs} +3 -3
- package/dist/skeleton/index.mjs +1 -1
- package/dist/{skeleton-D1MUhAVo.mjs → skeleton-D4HOEiOZ.mjs} +1 -1
- package/dist/spinner/index.mjs +1 -1
- package/dist/stepper/index.mjs +1 -1
- package/dist/styles/canela.css +23 -0
- package/dist/styles/fonts/CanelaText-Regular.ttf +0 -0
- package/dist/styles/tokens/figma-tokens.css +4 -0
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.mjs +1 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/{tag-input-T9cUX9-G.mjs → tag-input-Bf4GMptp.mjs} +29 -14
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-Wcbj-f0V.mjs → task-queue-dropdown-D-LncEWm.mjs} +39 -39
- package/dist/textarea/index.mjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/time-picker/index.mjs +1 -1
- package/dist/time-picker-BZF5jbF6.mjs +99 -0
- package/dist/{to-api-format-Bh3c01gr.mjs → to-api-format-CgKcC9SK.mjs} +144 -119
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-DpxlFNNx.mjs → toast-DDdLgY53.mjs} +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/{tooltip-Cruvl5F6.mjs → tooltip-a7NTDCWw.mjs} +74 -17
- package/dist/transfer/index.mjs +1 -1
- package/dist/{types-BZNk3q65.mjs → types-CKIe2WlV.mjs} +2 -2
- package/dist/typography/index.mjs +1 -1
- package/dist/use-breakpoint-DGcVmB3c.mjs +36 -0
- package/dist/{use-copy-to-clipboard-uNeeVHC4.mjs → use-copy-to-clipboard-D7KyLIAt.mjs} +1 -1
- package/dist/use-date-constraints-R3H4lIoT.mjs +41 -0
- package/dist/use-option-picker-BXQOfyrK.mjs +215 -0
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +63 -8
- package/dist/autocomplete-CkYJueBL.mjs +0 -293
- package/dist/combobox/index.mjs +0 -2
- package/dist/combobox-B-C9lJeD.mjs +0 -97
- package/dist/components/features/combobox/combobox.d.ts +0 -27
- package/dist/components/features/combobox/combobox.d.ts.map +0 -1
- package/dist/components/features/combobox/index.d.ts +0 -3
- package/dist/components/features/combobox/index.d.ts.map +0 -1
- package/dist/components/features/combobox/types.d.ts +0 -84
- package/dist/components/features/combobox/types.d.ts.map +0 -1
- package/dist/dropdown-DZiAt-jS.mjs +0 -110
- package/dist/dropdown-menu-lALvDnab.mjs +0 -85
- package/dist/more-actions-ILnEZq_E.mjs +0 -52
- package/dist/time-picker-BoF7pZZ2.mjs +0 -43
- /package/dist/{adapter-context-rWveHhDd.mjs → adapter-context-NyGTDZYq.mjs} +0 -0
- /package/dist/{col-1T0Q3SlH.mjs → col-DISdGlqY.mjs} +0 -0
- /package/dist/{dropzone-ogtpQ4fy.mjs → dropzone-Bt0plEuw.mjs} +0 -0
- /package/dist/{empty-content-C63GPJ5d.mjs → empty-content-CBh5bbtJ.mjs} +0 -0
- /package/dist/{form-context-Ccxm-wqL.mjs → form-context-CeKyvO-A.mjs} +0 -0
- /package/dist/{hooks-D8r2M2U6.mjs → hooks-DQXVwbrs.mjs} +0 -0
- /package/dist/{input-number-a7uydAsw.mjs → input-number-Diu-C6d5.mjs} +0 -0
- /package/dist/{loader-overlay-BTFdkp7W.mjs → loader-overlay-C2WDla6V.mjs} +0 -0
- /package/dist/{map-leaflet-imports-CRSKA79m.mjs → map-leaflet-imports-BkUrNU37.mjs} +0 -0
- /package/dist/{popover-FJAcbYoH.mjs → popover-JOuXJOZ2.mjs} +0 -0
- /package/dist/{radio-group-CiITR0LO.mjs → radio-group-70UjJBb5.mjs} +0 -0
- /package/dist/{select-CiLR_DiQ.mjs → select-zxwykvQn.mjs} +0 -0
- /package/dist/{sheet-Di3b-oPu.mjs → sheet-DVEToCVY.mjs} +0 -0
- /package/dist/{skeleton-BKl4mfJt.mjs → skeleton-D2xuJdE1.mjs} +0 -0
- /package/dist/{spinner-OyOf9-Yu.mjs → spinner-CgPI3DDi.mjs} +0 -0
- /package/dist/{stepper-DvIOp0hh.mjs → stepper-Beb-zbdL.mjs} +0 -0
- /package/dist/{switch-DQJQhPIQ.mjs → switch-DcSF42Kc.mjs} +0 -0
- /package/dist/{table-Cdsh-39-.mjs → table-DWGT4cqh.mjs} +0 -0
- /package/dist/{textarea-BwD-MmTV.mjs → textarea-BoChBcFz.mjs} +0 -0
- /package/dist/{themes-DG1md8FI.mjs → themes-CAiN4b6G.mjs} +0 -0
- /package/dist/{toast-BWnN5fax.mjs → toast-D5XD7goD.mjs} +0 -0
- /package/dist/{transfer-46C-rFFW.mjs → transfer-CoGPwOc6.mjs} +0 -0
- /package/dist/{typography-ClB8k55E.mjs → typography-TRKP_CLT.mjs} +0 -0
- /package/dist/{use-display-touched-I39aXEBD.mjs → use-display-touched-8VGszCqj.mjs} +0 -0
- /package/dist/{visuallyhidden-BLUsJpYH.mjs → visuallyhidden-BHOPczmW.mjs} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DateConstraints } from './types';
|
|
2
|
+
export interface UseDateConstraintsReturn {
|
|
3
|
+
effectiveMinDate: Date | undefined;
|
|
4
|
+
effectiveMaxDate: Date | undefined;
|
|
5
|
+
isDateDisabled: (date: Date) => boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useDateConstraints({ minDate, maxDate, disablePast, disableFuture, }: DateConstraints): UseDateConstraintsReturn;
|
|
8
|
+
//# sourceMappingURL=use-date-constraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-date-constraints.d.ts","sourceRoot":"","sources":["../../../../src/components/base/date-picker/use-date-constraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,EAAE,IAAI,GAAG,SAAS,CAAA;IAClC,gBAAgB,EAAE,IAAI,GAAG,SAAS,CAAA;IAClC,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;CACxC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,GACd,EAAE,eAAe,GAAG,wBAAwB,CAiC5C"}
|
|
@@ -21,9 +21,12 @@ export * from './input';
|
|
|
21
21
|
export * from './input-group';
|
|
22
22
|
export * from './label';
|
|
23
23
|
export * from './map';
|
|
24
|
+
export * from './mobile-sheet';
|
|
24
25
|
export * from './place-autocomplete';
|
|
25
26
|
export * from './popover';
|
|
26
27
|
export * from './radio-group';
|
|
28
|
+
export * from './responsive-dropdown';
|
|
29
|
+
export * from './responsive-popover';
|
|
27
30
|
export * from './select';
|
|
28
31
|
export * from './separator';
|
|
29
32
|
export * from './sheet';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,SAAS,CAAA;AAEvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AAEvB,cAAc,OAAO,CAAA;AACrB,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,SAAS,CAAA;AAEvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AAEvB,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signals that children are rendered inside a MobileSheet. Responsive
|
|
3
|
+
* primitives (ResponsivePopover, ResponsiveDropdown) read this context
|
|
4
|
+
* and skip their own sheet branch when it is true, preventing
|
|
5
|
+
* sheet-in-sheet stacking on mobile.
|
|
6
|
+
*
|
|
7
|
+
* MobileSheet provides this automatically. Downstream consumers that
|
|
8
|
+
* build their own sheet shells can wrap sections in the provider
|
|
9
|
+
* manually to opt in to the same suppression.
|
|
10
|
+
*/
|
|
11
|
+
export declare const InSheetContext: import("react").Context<boolean>;
|
|
12
|
+
export declare function useInSheet(): boolean;
|
|
13
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/components/base/mobile-sheet/context.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,kCAAgC,CAAA;AAE3D,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/mobile-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface MobileSheetProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Optional sticky footer content */
|
|
9
|
+
footer?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function MobileSheet({ open, onOpenChange, title, description, children, footer, className, }: MobileSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=mobile-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-sheet.d.ts","sourceRoot":"","sources":["../../../../src/components/base/mobile-sheet/mobile-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWtC,UAAU,gBAAgB;IACxB,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,qCAAqC;IACrC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,2CA+BlB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { OptionList } from './option-list';
|
|
2
|
+
export type { OptionListProps, OptionPickerGroup, OptionPickerOption, UseOptionPickerArgs, UseOptionPickerReturn, } from './types';
|
|
3
|
+
export { flattenOptions, isGroupedOptions } from './types';
|
|
4
|
+
export { useOptionPicker } from './use-option-picker';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/option-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { OptionListProps, OptionPickerOption } from './types';
|
|
2
|
+
export declare function OptionList<T extends OptionPickerOption>({ picker, searchPlaceholder, disableSearch, emptyContent, renderOption, header, footer, loading, virtualize, itemSize, listClassName, }: OptionListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=option-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-list.d.ts","sourceRoot":"","sources":["../../../../src/components/base/option-picker/option-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAiClE,wBAAgB,UAAU,CAAC,CAAC,SAAS,kBAAkB,EAAE,EACvD,MAAM,EACN,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,OAAO,EACP,UAAU,EACV,QAAa,EACb,aAAa,GACd,EAAE,eAAe,CAAC,CAAC,CAAC,2CAqFpB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
/** Base shape for any option presented by the picker. */
|
|
3
|
+
export interface OptionPickerOption {
|
|
4
|
+
/** Unique identifier — this is what is selected and emitted via onValueChange. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Display text shown to the user. Also used for built-in substring filtering. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Optional secondary text shown below the label in the default renderer. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Prevent this option from being toggled. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Grouped options — a labelled heading with its own options array. */
|
|
14
|
+
export interface OptionPickerGroup<T extends OptionPickerOption = OptionPickerOption> {
|
|
15
|
+
label: string;
|
|
16
|
+
options: T[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Detect whether an options prop is grouped.
|
|
20
|
+
*
|
|
21
|
+
* Treats empty arrays as flat (zero-option lists do not need group headings).
|
|
22
|
+
*/
|
|
23
|
+
export declare function isGroupedOptions<T extends OptionPickerOption>(options: T[] | OptionPickerGroup<T>[]): options is OptionPickerGroup<T>[];
|
|
24
|
+
/** Internal helper — flatten grouped or flat options into a single array. */
|
|
25
|
+
export declare function flattenOptions<T extends OptionPickerOption>(options: T[] | OptionPickerGroup<T>[]): T[];
|
|
26
|
+
export interface UseOptionPickerArgs<T extends OptionPickerOption, Multiple extends boolean> {
|
|
27
|
+
options: T[] | OptionPickerGroup<T>[];
|
|
28
|
+
multiple: Multiple;
|
|
29
|
+
value?: Multiple extends true ? string[] : string;
|
|
30
|
+
defaultValue?: Multiple extends true ? string[] : string;
|
|
31
|
+
onValueChange?: Multiple extends true ? (values: string[]) => void : (value: string) => void;
|
|
32
|
+
/**
|
|
33
|
+
* When provided, disables internal filtering. The engine surfaces the
|
|
34
|
+
* current search string and calls this on changes; the consumer is
|
|
35
|
+
* expected to filter `options` itself.
|
|
36
|
+
*/
|
|
37
|
+
onSearchChange?: (search: string) => void;
|
|
38
|
+
/** Show a "Use '<search>'" row when the search does not match any option. Single mode only. */
|
|
39
|
+
creatable?: boolean;
|
|
40
|
+
creatableLabel?: (search: string) => ReactNode;
|
|
41
|
+
/** Single-select only. Auto-close on selection. Default: true. */
|
|
42
|
+
closeOnSelect?: Multiple extends true ? false | undefined : boolean;
|
|
43
|
+
open: boolean;
|
|
44
|
+
onOpenChange: (open: boolean) => void;
|
|
45
|
+
}
|
|
46
|
+
export interface UseOptionPickerReturn<T extends OptionPickerOption> {
|
|
47
|
+
search: string;
|
|
48
|
+
setSearch: (s: string) => void;
|
|
49
|
+
filteredOptions: T[] | OptionPickerGroup<T>[];
|
|
50
|
+
hasMatches: boolean;
|
|
51
|
+
isSelected: (value: string) => boolean;
|
|
52
|
+
toggle: (value: string) => void;
|
|
53
|
+
clear: () => void;
|
|
54
|
+
hasSelection: boolean;
|
|
55
|
+
creatableValue: string | null;
|
|
56
|
+
listRef: RefObject<HTMLDivElement | null>;
|
|
57
|
+
}
|
|
58
|
+
export interface OptionListProps<T extends OptionPickerOption> {
|
|
59
|
+
picker: UseOptionPickerReturn<T>;
|
|
60
|
+
searchPlaceholder?: string;
|
|
61
|
+
disableSearch?: boolean;
|
|
62
|
+
emptyContent?: ReactNode;
|
|
63
|
+
renderOption?: (option: T, isSelected: boolean) => ReactNode;
|
|
64
|
+
header?: ReactNode;
|
|
65
|
+
footer?: ReactNode;
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
virtualize?: boolean;
|
|
68
|
+
itemSize?: number;
|
|
69
|
+
listClassName?: string;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/option-picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjD,yDAAyD;AACzD,MAAM,WAAW,kBAAkB;IACjC,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAA;IACb,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAA;IACb,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,uEAAuE;AACvE,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB;IAClF,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,CAAC,EAAE,CAAA;CACb;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,kBAAkB,EAC3D,OAAO,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,GACpC,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAKnC;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,CAAC,SAAS,kBAAkB,EACzD,OAAO,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,GACpC,CAAC,EAAE,CAEL;AAID,MAAM,WAAW,mBAAmB,CAClC,CAAC,SAAS,kBAAkB,EAC5B,QAAQ,SAAS,OAAO;IAExB,OAAO,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAA;IACrC,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IACjD,YAAY,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IACxD,aAAa,CAAC,EAAE,QAAQ,SAAS,IAAI,GACjC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,GAC1B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,+FAA+F;IAC/F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,CAAA;IAC9C,kEAAkE;IAClE,aAAa,CAAC,EAAE,QAAQ,SAAS,IAAI,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAA;IACnE,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,kBAAkB;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,eAAe,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAA;IAC7C,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IACtC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,YAAY,EAAE,OAAO,CAAA;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC1C;AAID,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,kBAAkB;IAC3D,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAA;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,KAAK,SAAS,CAAA;IAC5D,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OptionPickerOption, UseOptionPickerArgs, UseOptionPickerReturn } from './types';
|
|
2
|
+
export declare function useOptionPicker<T extends OptionPickerOption>(args: UseOptionPickerArgs<T, true>): UseOptionPickerReturn<T>;
|
|
3
|
+
export declare function useOptionPicker<T extends OptionPickerOption>(args: UseOptionPickerArgs<T, false>): UseOptionPickerReturn<T>;
|
|
4
|
+
//# sourceMappingURL=use-option-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-option-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/base/option-picker/use-option-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAIhB,wBAAgB,eAAe,CAAC,CAAC,SAAS,kBAAkB,EAC1D,IAAI,EAAE,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,GACjC,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC3B,wBAAgB,eAAe,CAAC,CAAC,SAAS,kBAAkB,EAC1D,IAAI,EAAE,mBAAmB,CAAC,CAAC,EAAE,KAAK,CAAC,GAClC,qBAAqB,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/responsive-dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface ResponsiveDropdownProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
trigger: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Title shown in the mobile sheet header */
|
|
8
|
+
sheetTitle: string;
|
|
9
|
+
/** Description for the mobile sheet */
|
|
10
|
+
sheetDescription?: string;
|
|
11
|
+
/** Optional footer shown at the bottom of the mobile sheet (mobile only). */
|
|
12
|
+
sheetFooter?: ReactNode;
|
|
13
|
+
/** DropdownMenuContent alignment (desktop only). @default 'end' (matches existing DropdownMenu convention for row-action menus) */
|
|
14
|
+
align?: 'start' | 'center' | 'end';
|
|
15
|
+
contentClassName?: string;
|
|
16
|
+
/** Called when DropdownMenuContent auto-focuses on close (desktop only) */
|
|
17
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Force desktop dropdown even on mobile. Default: true (responsive).
|
|
20
|
+
*/
|
|
21
|
+
responsive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function ResponsiveDropdown({ open, onOpenChange, trigger, children, sheetTitle, sheetDescription, sheetFooter, align, contentClassName, onCloseAutoFocus, responsive, }: ResponsiveDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=responsive-dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/base/responsive-dropdown/responsive-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQ1G,UAAU,uBAAuB;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,mIAAmI;IACnI,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,KAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,UAAiB,GAClB,EAAE,uBAAuB,2CAwDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/base/responsive-popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface ResponsivePopoverProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
trigger: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Title shown in the mobile sheet header */
|
|
8
|
+
sheetTitle: string;
|
|
9
|
+
/** Description for the mobile sheet */
|
|
10
|
+
sheetDescription?: string;
|
|
11
|
+
/** Optional footer shown at the bottom of the mobile sheet (mobile only). */
|
|
12
|
+
sheetFooter?: ReactNode;
|
|
13
|
+
/** PopoverContent alignment (desktop only). @default 'start' (matches Radix Popover default) */
|
|
14
|
+
align?: 'start' | 'center' | 'end';
|
|
15
|
+
/** PopoverContent side (desktop only) */
|
|
16
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
17
|
+
contentClassName?: string;
|
|
18
|
+
/** Distance in pixels from the trigger (desktop only). */
|
|
19
|
+
sideOffset?: number;
|
|
20
|
+
/** Offset along the alignment axis in pixels (desktop only). */
|
|
21
|
+
alignOffset?: number;
|
|
22
|
+
/** Whether the popover should avoid the boundary edges by flipping side (desktop only). @default true */
|
|
23
|
+
avoidCollisions?: boolean;
|
|
24
|
+
/** Called when PopoverContent auto-focuses on open (desktop only). */
|
|
25
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
26
|
+
/** Called when PopoverContent auto-focuses on close (desktop only). */
|
|
27
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
28
|
+
/** Called when an interaction outside the content fires (desktop only). */
|
|
29
|
+
onInteractOutside?: (e: Event) => void;
|
|
30
|
+
/** Called when the Escape key is pressed inside the content (desktop only). */
|
|
31
|
+
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Force desktop popover even on mobile. Default: true (responsive).
|
|
34
|
+
* Use for components that should never render as a sheet.
|
|
35
|
+
*/
|
|
36
|
+
responsive?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the popover is modal (prevents interaction with elements outside).
|
|
39
|
+
* Required when used inside a Dialog/Modal component. Desktop only.
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
modal?: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function ResponsivePopover({ open, onOpenChange, trigger, children, sheetTitle, sheetDescription, sheetFooter, align, side, contentClassName, sideOffset, alignOffset, avoidCollisions, onOpenAutoFocus, onCloseAutoFocus, onInteractOutside, onEscapeKeyDown, responsive, modal, }: ResponsivePopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=responsive-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-popover.d.ts","sourceRoot":"","sources":["../../../../src/components/base/responsive-popover/responsive-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQ1G,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,gGAAgG;IAChG,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,yCAAyC;IACzC,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yGAAyG;IACzG,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,sEAAsE;IACtE,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACpC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACrC,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACtC,+EAA+E;IAC/E,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IAC5C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,KAAe,EACf,IAAe,EACf,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,UAAiB,EACjB,KAAK,GACN,EAAE,sBAAsB,2CA+DxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/base/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/base/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,SAAS,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AA6ED,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,QAAQ,EACR,aAAmB,EACnB,IAAI,EACJ,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,EAAE,YAAY,2CAsEd"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type { NavItem } from './nav-menu';
|
|
2
2
|
import { Sidebar } from '../../base/sidebar/sidebar';
|
|
3
|
-
export declare function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, ...props }: React.ComponentProps<typeof Sidebar> & {
|
|
3
|
+
export declare function AppNavigation({ navItems, title, closeOnNavigation, defaultOpen, currentPath, linkComponent, loading, ...props }: React.ComponentProps<typeof Sidebar> & {
|
|
4
4
|
navItems: NavItem[];
|
|
5
5
|
title?: string | React.ReactNode;
|
|
6
6
|
closeOnNavigation?: boolean;
|
|
7
7
|
/** Controls sidebar open state — when false, sidebar closes on mount */
|
|
8
8
|
defaultOpen?: boolean;
|
|
9
|
-
/** Current URL pathname — passed through to
|
|
9
|
+
/** Current URL pathname — passed through to NavMain */
|
|
10
10
|
currentPath: string;
|
|
11
|
-
/** Link component — passed through to
|
|
11
|
+
/** Link component — passed through to NavMain (defaults to native `<a>`) */
|
|
12
12
|
linkComponent?: React.ElementType;
|
|
13
|
+
/** Show skeleton instead of nav items while loading */
|
|
14
|
+
loading?: boolean;
|
|
13
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
//# sourceMappingURL=app-navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-navigation.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/app-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"app-navigation.d.ts","sourceRoot":"","sources":["../../../../src/components/features/app-navigation/app-navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,OAAO,EACL,OAAO,EAYR,MAAM,4BAA4B,CAAA;AA2CnC,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,aAAa,EACb,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,GAAG;IACxC,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAA;IACnB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,2CA0CA"}
|
|
@@ -2,7 +2,7 @@ import type { AutocompleteOption, AutocompleteProps } from './autocomplete.types
|
|
|
2
2
|
/**
|
|
3
3
|
* Autocomplete - A searchable select component
|
|
4
4
|
*
|
|
5
|
-
* Standalone, form-agnostic combobox built on
|
|
5
|
+
* Standalone, form-agnostic combobox built on ResponsivePopover + OptionList engine.
|
|
6
6
|
* Supports flat/grouped options, virtualization, custom rendering, and async search.
|
|
7
7
|
*
|
|
8
8
|
* @example Basic usage
|
|
@@ -27,7 +27,7 @@ import type { AutocompleteOption, AutocompleteProps } from './autocomplete.types
|
|
|
27
27
|
* />
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export declare function Autocomplete<T extends AutocompleteOption = AutocompleteOption>({ options, value, onValueChange, onSearchChange, searchPlaceholder, disableSearch, renderOption, renderValue, placeholder, emptyContent, footer, creatable, creatableLabel, virtualize, itemSize, loading, modal, disabled, name, id, className, triggerClassName, contentClassName, listClassName, }: AutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function Autocomplete<T extends AutocompleteOption = AutocompleteOption>({ options, value, onValueChange, onSearchChange, searchPlaceholder, disableSearch, renderOption, renderValue, placeholder, emptyContent, footer, creatable, creatableLabel, virtualize, itemSize, loading, modal, responsive, sheetTitle, disabled, name, id, className, triggerClassName, contentClassName, listClassName, }: AutocompleteProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
export declare namespace Autocomplete {
|
|
32
32
|
var displayName: string;
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAO7B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,EAC9E,OAAO,EACP,KAAK,EACL,aAAa,EACb,cAAc,EACd,iBAA+B,EAC/B,aAAqB,EACrB,YAAY,EACZ,WAAW,EACX,WAAyB,EACzB,YAAiC,EACjC,MAAM,EACN,SAAiB,EACjB,cAAc,EACd,UAAkB,EAClB,QAAa,EACb,OAAe,EACf,KAAa,EACb,UAAiB,EACjB,UAAU,EACV,QAAgB,EAChB,IAAI,EACJ,EAAE,EACF,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,GACd,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CA8EtB;yBAzGe,YAAY"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/** Display text, used for built-in search filtering */
|
|
6
|
-
label: string;
|
|
7
|
-
/** Optional secondary text shown below label */
|
|
8
|
-
description?: string;
|
|
9
|
-
/** Disable selection of this option */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface AutocompleteGroup<T extends AutocompleteOption = AutocompleteOption> {
|
|
13
|
-
/** Group heading label */
|
|
14
|
-
label: string;
|
|
15
|
-
/** Options within this group */
|
|
16
|
-
options: T[];
|
|
17
|
-
}
|
|
2
|
+
import type { OptionPickerGroup, OptionPickerOption } from '../../base/option-picker';
|
|
3
|
+
export type AutocompleteOption = OptionPickerOption;
|
|
4
|
+
export type AutocompleteGroup<T extends AutocompleteOption = AutocompleteOption> = OptionPickerGroup<T>;
|
|
18
5
|
export interface AutocompleteProps<T extends AutocompleteOption = AutocompleteOption> {
|
|
19
6
|
/** Flat options array or grouped options. Groups auto-detected by shape. */
|
|
20
7
|
options: T[] | AutocompleteGroup<T>[];
|
|
@@ -50,6 +37,10 @@ export interface AutocompleteProps<T extends AutocompleteOption = AutocompleteOp
|
|
|
50
37
|
loading?: boolean;
|
|
51
38
|
/** Popover modal mode - required when using inside a Dialog/Modal component (default: true) */
|
|
52
39
|
modal?: boolean;
|
|
40
|
+
/** Force desktop popover even on mobile. Default: true (responsive). */
|
|
41
|
+
responsive?: boolean;
|
|
42
|
+
/** Title shown in the mobile sheet header. Default: placeholder ?? 'Search'. */
|
|
43
|
+
sheetTitle?: string;
|
|
53
44
|
/** Disable the component */
|
|
54
45
|
disabled?: boolean;
|
|
55
46
|
/** HTML name attribute for hidden input */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autocomplete/autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"autocomplete.types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autocomplete/autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAMrF,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAA;AAEnD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAMvG,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB;IAElF,4EAA4E;IAC5E,OAAO,EAAE,CAAC,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAA;IAGrC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oCAAoC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAGvC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,uCAAuC;IACvC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAA;IAGvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAA;IAClE,0DAA0D;IAC1D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;IAC5C,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B,oEAAoE;IACpE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAGxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACnD,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IAGX,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAMD;;;GAGG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAAI,IAAI,CACzF,iBAAiB,CAAC,CAAC,CAAC,EACpB,OAAO,GAAG,eAAe,GAAG,MAAM,GAAG,IAAI,CAC1C,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AutocompleteOption } from './autocomplete.types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface TriggerProps {
|
|
4
|
+
selectedOption: AutocompleteOption | undefined;
|
|
5
|
+
renderValue?: (option: any) => React.ReactNode;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
open: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function Trigger({ ref, selectedOption, renderValue, placeholder, loading, disabled, open, id, className, ...rest }: TriggerProps & {
|
|
14
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare namespace Trigger {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
export { Trigger };
|
|
20
|
+
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autocomplete/trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,YAAY;IACpB,cAAc,EAAE,kBAAkB,GAAG,SAAS,CAAA;IAC9C,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAA;IAC9C,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,OAAO,CAAC,EAAE,GAAG,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAoCtL;kBApCQ,OAAO;;;AAwChB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -28,7 +28,7 @@ import type { AutosearchProps } from './autosearch.types';
|
|
|
28
28
|
* />
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export declare function Autosearch({ options, value, onValueChange, onSearch, searchDebounceMs,
|
|
31
|
+
export declare function Autosearch({ options, value, onValueChange, onSearch, searchDebounceMs, placeholder, emptyMessage, emptyContent, loading, modal, responsive, sheetTitle, disabled, name, id, className, inputClassName, contentClassName, selectedClassName, }: AutosearchProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export declare namespace Autosearch {
|
|
33
33
|
var displayName: string;
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosearch.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autosearch/autosearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"autosearch.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autosearch/autosearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAUzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAC,EAEzB,OAAY,EAGZ,KAAK,EACL,aAAa,EAGb,QAAQ,EACR,gBAAsB,EAGtB,WAAoC,EACpC,YAAkC,EAClC,YAAY,EAGZ,OAAe,EACf,KAAa,EACb,UAAiB,EACjB,UAAU,EAGV,QAAgB,EAChB,IAAI,EACJ,EAAE,EAGF,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,eAAe,2CAmMjB;yBApOe,UAAU"}
|
|
@@ -28,6 +28,10 @@ export interface AutosearchProps {
|
|
|
28
28
|
loading?: boolean;
|
|
29
29
|
/** Popover modal mode */
|
|
30
30
|
modal?: boolean;
|
|
31
|
+
/** Render as mobile sheet on small viewports (default: true) */
|
|
32
|
+
responsive?: boolean;
|
|
33
|
+
/** Title shown in the mobile sheet header (falls back to placeholder then 'Search') */
|
|
34
|
+
sheetTitle?: string;
|
|
31
35
|
/** Disable the component */
|
|
32
36
|
disabled?: boolean;
|
|
33
37
|
/** HTML name attribute for hidden input */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autosearch.types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autosearch/autosearch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAM5E;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,kBAAkB,UAEhE;AAMD,MAAM,WAAW,eAAe;IAE9B,2CAA2C;IAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAG7B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oCAAoC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAGvC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,MAAM,CAAA;IAGjD,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAG9B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"autosearch.types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/autosearch/autosearch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAM5E;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,kBAAkB,UAEhE;AAMD,MAAM,WAAW,eAAe;IAE9B,2CAA2C;IAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAG7B,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oCAAoC;IACpC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAGvC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,MAAM,CAAA;IAGjD,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uDAAuD;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAG9B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gEAAgE;IAChE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IAGX,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAMD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,eAAe,EACf,OAAO,GAAG,eAAe,GAAG,MAAM,GAAG,IAAI,CAC1C,CAAA"}
|
|
@@ -1,44 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DateRange } from 'react-day-picker';
|
|
1
|
+
import type { CalendarDatePickerProps } from './types';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export interface DateRangePreset {
|
|
8
|
-
key: string;
|
|
9
|
-
label: string;
|
|
10
|
-
start: Date;
|
|
11
|
-
end: Date;
|
|
12
|
-
}
|
|
13
|
-
interface CalendarDatePickerProps extends React.HTMLAttributes<HTMLButtonElement>, VariantProps<typeof multiSelectVariants> {
|
|
14
|
-
id?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
triggerClassName?: string;
|
|
17
|
-
date: DateRange;
|
|
18
|
-
closeOnSelect?: boolean;
|
|
19
|
-
numberOfMonths?: 1 | 2;
|
|
20
|
-
yearsRange?: number;
|
|
21
|
-
onDateSelect: (range: {
|
|
22
|
-
from: Date;
|
|
23
|
-
to: Date;
|
|
24
|
-
} | undefined) => void;
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
excludePresets?: string[];
|
|
27
|
-
customPresets?: DateRangePreset[];
|
|
28
|
-
minDate?: Date;
|
|
29
|
-
maxDate?: Date;
|
|
30
|
-
disableFuture?: boolean;
|
|
31
|
-
disablePast?: boolean;
|
|
32
|
-
maxRange?: number;
|
|
33
|
-
popoverClassName?: string;
|
|
34
|
-
disabled?: boolean;
|
|
35
|
-
modal?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare function CalendarDatePicker({ ref, id, className, triggerClassName, date, closeOnSelect, numberOfMonths, yearsRange, onDateSelect, variant, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture, disablePast, maxRange, popoverClassName, disabled, modal, ...props }: CalendarDatePickerProps & {
|
|
3
|
+
export type { CalendarDatePickerProps };
|
|
4
|
+
export declare function CalendarDatePicker({ ref, id, className, triggerClassName, date, closeOnSelect, numberOfMonths, yearsRange, onDateSelect, variant, placeholder, excludePresets, customPresets, minDate, maxDate, disableFuture, disablePast, maxRange, popoverClassName, disabled, modal, responsive, sheetTitle, ...props }: CalendarDatePickerProps & {
|
|
38
5
|
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
39
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
7
|
export declare namespace CalendarDatePicker {
|
|
41
8
|
var displayName: string;
|
|
42
9
|
}
|
|
43
|
-
export {};
|
|
44
10
|
//# sourceMappingURL=calendar-date-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"calendar-date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,YAAY,EAAE,uBAAuB,EAAE,CAAA;AAEvC,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,EAA2B,EAC3B,SAAS,EACT,gBAAgB,EAChB,IAAI,EACJ,aAAqB,EACrB,cAAkB,EAClB,UAAe,EACf,YAAY,EACZ,OAAO,EACP,WAAW,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,OAAO,EACP,aAAqB,EACrB,WAAmB,EACnB,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,KAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,uBAAuB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAiI/E;yBA1Je,kBAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface CalendarHeaderProps {
|
|
2
|
+
monthFrom: Date | undefined;
|
|
3
|
+
yearFrom: number | undefined;
|
|
4
|
+
monthTo: Date | undefined;
|
|
5
|
+
yearTo: number | undefined;
|
|
6
|
+
years: number[];
|
|
7
|
+
numberOfMonths: 1 | 2;
|
|
8
|
+
onMonthChange: (month: number, target: 'from' | 'to') => void;
|
|
9
|
+
onYearChange: (year: number, target: 'from' | 'to') => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function CalendarHeader({ monthFrom, yearFrom, monthTo, yearTo, years, numberOfMonths, onMonthChange, onYearChange, }: CalendarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=calendar-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-header.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-header.tsx"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAA;IAC3B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,cAAc,EAAE,CAAC,GAAG,CAAC,CAAA;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7D,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC5D;AAED,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,MAAM,EACN,KAAK,EACL,cAAc,EACd,aAAa,EACb,YAAY,GACb,EAAE,mBAAmB,2CA+ErB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DateRangePreset } from './types';
|
|
2
|
+
interface CalendarPresetsProps {
|
|
3
|
+
dateRanges: DateRangePreset[];
|
|
4
|
+
selectedRange: string | null;
|
|
5
|
+
onSelect: (start: Date, end: Date, label: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function CalendarPresets({ dateRanges, selectedRange, onSelect, }: CalendarPresetsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=calendar-presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-presets.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/calendar-presets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,UAAU,oBAAoB;IAC5B,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC1D;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,aAAa,EACb,QAAQ,GACT,EAAE,oBAAoB,2CAoBtB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type { DateRange } from 'react-day-picker';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { multiSelectVariants } from './types';
|
|
5
|
+
interface DateTriggerProps extends VariantProps<typeof multiSelectVariants> {
|
|
6
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
7
|
+
id: string;
|
|
8
|
+
date: DateRange;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
numberOfMonths: 1 | 2;
|
|
12
|
+
highlightedPart: string | null;
|
|
13
|
+
handleMouseOver: (part: string) => void;
|
|
14
|
+
handleMouseLeave: () => void;
|
|
15
|
+
handleClear: (e: React.MouseEvent) => void;
|
|
16
|
+
handleTogglePopover: () => void;
|
|
17
|
+
formatWithTz: (date: Date, fmt: string) => string;
|
|
18
|
+
className?: string;
|
|
19
|
+
triggerClassName?: string;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export declare function DateTrigger({ ref, id, date, placeholder, disabled, numberOfMonths, highlightedPart, handleMouseOver, handleMouseLeave, handleClear, handleTogglePopover, formatWithTz, variant, className, triggerClassName, ...props }: DateTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=date-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/features/calendar-date-picker/date-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,UAAU,gBAAiB,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IACzE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,EAAE,CAAC,GAAG,CAAC,CAAA;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,EAAE,EACF,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAiKlB"}
|