@datum-cloud/datum-ui 0.8.1 → 0.9.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/dist/{adapter-context-NyGTDZYq.mjs → adapter-context-DemTWhel.mjs} +3 -3
- package/dist/alert/index.mjs +1 -1
- package/dist/{alert-BDj6od5I.mjs → alert-Cz56SqdN.mjs} +2 -2
- package/dist/app-navigation/index.mjs +2 -2
- package/dist/{app-navigation-rSOfo1KV.mjs → app-navigation-CnGkJvwF.mjs} +1 -1
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-DdbTQe6u.mjs → autocomplete-ChuPNldi.mjs} +6 -6
- package/dist/autosearch/index.mjs +12 -12
- package/dist/avatar-stack/index.mjs +1 -1
- package/dist/{avatar-stack-CDhlA1Nm.mjs → avatar-stack-WqoQ3l06.mjs} +1 -1
- package/dist/{button-D3RrsMfQ.mjs → button-Rw1xI-k9.mjs} +2 -2
- package/dist/calendar/index.mjs +1 -1
- package/dist/calendar-D_DriVHT.mjs +77 -0
- package/dist/{calendar-C-Hbf74r.mjs → calendar-Dwvq3Vu_.mjs} +6 -6
- package/dist/calendar-date-picker-CchHKodM.mjs +52 -0
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-CUa21ynK.mjs → chart-DgcOwkOh.mjs} +5 -5
- package/dist/code-editor/index.mjs +1 -1
- package/dist/{col-DISdGlqY.mjs → col-Q6yazFwL.mjs} +2 -1
- package/dist/components/base/button/button.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +6 -5
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/calendar-date-picker/types.d.ts +19 -0
- package/dist/components/features/calendar-date-picker/types.d.ts.map +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts +1 -1
- package/dist/components/features/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/features/code-editor/index.d.ts +1 -1
- package/dist/components/features/code-editor/index.d.ts.map +1 -1
- package/dist/components/features/code-editor/types.d.ts +25 -2
- package/dist/components/features/code-editor/types.d.ts.map +1 -1
- package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -1
- package/dist/components/features/date-time-picker/date-time-picker.d.ts +12 -4
- 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 +9 -0
- package/dist/components/features/date-time-picker/types.d.ts.map +1 -1
- package/dist/components/features/grid/components/col.d.ts +1 -1
- package/dist/components/features/grid/components/col.d.ts.map +1 -1
- package/dist/components/features/grid/components/row.d.ts +1 -1
- package/dist/components/features/grid/components/row.d.ts.map +1 -1
- package/dist/components/features/picker/components/calendar.d.ts +14 -0
- package/dist/components/features/picker/components/calendar.d.ts.map +1 -0
- package/dist/components/features/picker/components/content.d.ts +18 -0
- package/dist/components/features/picker/components/content.d.ts.map +1 -0
- package/dist/components/features/picker/components/context.d.ts +57 -0
- package/dist/components/features/picker/components/context.d.ts.map +1 -0
- package/dist/components/features/picker/components/footer.d.ts +35 -0
- package/dist/components/features/picker/components/footer.d.ts.map +1 -0
- package/dist/components/features/picker/components/index.d.ts +36 -0
- package/dist/components/features/picker/components/index.d.ts.map +1 -0
- package/dist/components/features/picker/components/presets.d.ts +9 -0
- package/dist/components/features/picker/components/presets.d.ts.map +1 -0
- package/dist/components/features/picker/components/root.d.ts +40 -0
- package/dist/components/features/picker/components/root.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input-field.d.ts +13 -0
- package/dist/components/features/picker/components/time-input-field.d.ts.map +1 -0
- package/dist/components/features/picker/components/time-input.d.ts +13 -0
- package/dist/components/features/picker/components/time-input.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts +14 -0
- package/dist/components/features/picker/components/timezone-indicator.d.ts.map +1 -0
- package/dist/components/features/picker/components/timezone-select.d.ts +16 -0
- package/dist/components/features/picker/components/timezone-select.d.ts.map +1 -0
- package/dist/components/features/picker/components/trigger.d.ts +23 -0
- package/dist/components/features/picker/components/trigger.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/index.d.ts +5 -0
- package/dist/components/features/picker/hooks/index.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts +25 -0
- package/dist/components/features/picker/hooks/use-keyboard-shortcuts.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts +51 -0
- package/dist/components/features/picker/hooks/use-picker-state.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts +24 -0
- package/dist/components/features/picker/hooks/use-presets.d.ts.map +1 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts +21 -0
- package/dist/components/features/picker/hooks/use-time-slots.d.ts.map +1 -0
- package/dist/components/features/picker/index.d.ts +8 -0
- package/dist/components/features/picker/index.d.ts.map +1 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts +9 -0
- package/dist/components/features/picker/internal/use-deprecation-warning.d.ts.map +1 -0
- package/dist/components/features/picker/presets/defaults.d.ts +16 -0
- package/dist/components/features/picker/presets/defaults.d.ts.map +1 -0
- package/dist/components/features/picker/presets/index.d.ts +2 -0
- package/dist/components/features/picker/presets/index.d.ts.map +1 -0
- package/dist/components/features/picker/types.d.ts +70 -0
- package/dist/components/features/picker/types.d.ts.map +1 -0
- package/dist/components/features/picker/utils/commit.d.ts +16 -0
- package/dist/components/features/picker/utils/commit.d.ts.map +1 -0
- package/dist/components/features/picker/utils/compare.d.ts +12 -0
- package/dist/components/features/picker/utils/compare.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format-value.d.ts +25 -0
- package/dist/components/features/picker/utils/format-value.d.ts.map +1 -0
- package/dist/components/features/picker/utils/format.d.ts +38 -0
- package/dist/components/features/picker/utils/format.d.ts.map +1 -0
- package/dist/components/features/picker/utils/index.d.ts +7 -0
- package/dist/components/features/picker/utils/index.d.ts.map +1 -0
- package/dist/components/features/picker/utils/range.d.ts +26 -0
- package/dist/components/features/picker/utils/range.d.ts.map +1 -0
- package/dist/components/features/picker/utils/timezone.d.ts +38 -0
- package/dist/components/features/picker/utils/timezone.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts +10 -0
- package/dist/components/features/picker/wrappers/date-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-range-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts +20 -0
- package/dist/components/features/picker/wrappers/date-time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/date-time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/index.d.ts +16 -0
- package/dist/components/features/picker/wrappers/index.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts +7 -0
- package/dist/components/features/picker/wrappers/internal/default-footer.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts +14 -0
- package/dist/components/features/picker/wrappers/time-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts +16 -0
- package/dist/components/features/picker/wrappers/time-range-picker.d.ts.map +1 -0
- package/dist/components/features/picker/wrappers/types.d.ts +118 -0
- package/dist/components/features/picker/wrappers/types.d.ts.map +1 -0
- package/dist/components/features/tag-input/tag-input.d.ts +1 -1
- package/dist/components/features/tag-input/tag-input.d.ts.map +1 -1
- package/dist/components/features/time-picker/time-picker.d.ts +5 -0
- package/dist/components/features/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/features/time-picker/types.d.ts +5 -0
- package/dist/components/features/time-picker/types.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/index.d.ts +5 -0
- package/dist/components/features/time-range-picker/index.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/time-range-picker.d.ts +19 -14
- package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/components/features/time-range-picker/types.d.ts +20 -0
- package/dist/components/features/time-range-picker/types.d.ts.map +1 -1
- package/dist/data-table/index.mjs +22 -15
- package/dist/date-picker/index.mjs +2 -2
- package/dist/date-range-picker-DNZh06zo.mjs +77 -0
- package/dist/date-time-picker/index.mjs +1 -1
- package/dist/date-time-picker-BiobghTJ.mjs +43 -0
- package/dist/date-time-picker-C0fF7s_e.mjs +109 -0
- package/dist/date-time-range-picker-cW4rbuFn.mjs +82 -0
- package/dist/default-footer-DbpemJVl.mjs +1037 -0
- package/dist/dropzone/index.mjs +1 -1
- package/dist/{dropzone-Bt0plEuw.mjs → dropzone-DXH0xHso.mjs} +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/adapters/conform/index.mjs +19 -19
- package/dist/form/adapters/rhf/index.mjs +18 -18
- package/dist/form/index.mjs +2 -2
- package/dist/form/stepper/index.mjs +23 -23
- package/dist/{form-CCNN9VtJ.mjs → form-DvgKb4s4.mjs} +49 -42
- package/dist/{form-context-CeKyvO-A.mjs → form-context-0usxTumz.mjs} +3 -3
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.mjs +41 -41
- package/dist/input-group/index.mjs +1 -1
- package/dist/{input-group-DDtz-RT7.mjs → input-group-CeMsDhOk.mjs} +1 -1
- package/dist/input-number/index.mjs +1 -1
- package/dist/{input-number-Diu-C6d5.mjs → input-number-BU4nno8J.mjs} +1 -1
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/{map-qo7bY_g_.mjs → map-l7iwhEwM.mjs} +24 -27
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-Ca5qqd0H.mjs → more-actions-Baqor0yr.mjs} +2 -2
- package/dist/multi-select/index.mjs +1 -1
- package/dist/{multi-select-DM_dxnSV.mjs → multi-select-BHmtkQIi.mjs} +6 -6
- package/dist/page-title/index.mjs +1 -1
- package/dist/picker/index.mjs +273 -0
- package/dist/rich-text-editor/index.mjs +1 -1
- package/dist/{rich-text-editor-CQH_U4T5.mjs → rich-text-editor-aWuLRaj9.mjs} +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select-By1ZqPgr.mjs +94 -0
- package/dist/select-Ck0szhAH.mjs +73 -0
- package/dist/sidebar/index.mjs +1 -1
- package/dist/{sidebar-B8LQJiNI.mjs → sidebar-CUnFkH7o.mjs} +32 -32
- package/dist/skeleton/index.mjs +1 -1
- package/dist/{skeleton-D4HOEiOZ.mjs → skeleton-CxAhQT6T.mjs} +1 -1
- package/dist/stepper/index.mjs +1 -1
- package/dist/{stepper-Beb-zbdL.mjs → stepper-adDdiJMx.mjs} +7 -7
- package/dist/styles/root.css +4 -2
- package/dist/styles/shadcn/shadcn.css +212 -213
- 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-Bf4GMptp.mjs → tag-input-D3NYy9-_.mjs} +1 -1
- package/dist/task-queue/index.mjs +1 -1
- package/dist/{task-queue-dropdown-D-LncEWm.mjs → task-queue-dropdown-t9KKIL6j.mjs} +3 -3
- package/dist/textarea/index.mjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/{themes-CAiN4b6G.mjs → themes-08-znmBI.mjs} +16 -16
- package/dist/time-input-9LdNL0Us.mjs +196 -0
- package/dist/time-picker/index.mjs +1 -1
- package/dist/time-picker-B-vpUClR.mjs +45 -0
- package/dist/time-picker-C840fLl6.mjs +49 -0
- package/dist/timezone-indicator-COoeMKKs.mjs +27 -0
- package/dist/{to-api-format-CgKcC9SK.mjs → to-api-format-CNqrcrz7.mjs} +58 -243
- package/dist/toast/index.mjs +2 -2
- package/dist/{toast-DDdLgY53.mjs → toast-Bd5Kk7BB.mjs} +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/transfer/index.mjs +1 -1
- package/dist/{transfer-CoGPwOc6.mjs → transfer-CuJGL420.mjs} +6 -6
- package/dist/{types-CKIe2WlV.mjs → types-DvMIxilw.mjs} +9 -3
- package/dist/typography/index.mjs +1 -1
- package/dist/{typography-TRKP_CLT.mjs → typography-CBwfg-vz.mjs} +5 -5
- package/dist/{use-copy-to-clipboard-D7KyLIAt.mjs → use-copy-to-clipboard-ZHDvfV3W.mjs} +1 -1
- package/dist/use-deprecation-warning-Dy_DOyLu.mjs +20 -0
- package/dist/{use-display-touched-C-afz17j.mjs → use-display-touched-DpX3fsOl.mjs} +5 -5
- package/dist/{use-option-picker-BXQOfyrK.mjs → use-option-picker-DV5O68eV.mjs} +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +28 -23
- package/dist/calendar-date-picker-BaykEs6j.mjs +0 -749
- package/dist/date-time-picker-DKOxrhmc.mjs +0 -193
- package/dist/select-zxwykvQn.mjs +0 -163
- package/dist/time-picker-BZF5jbF6.mjs +0 -99
- package/dist/use-date-constraints-R3H4lIoT.mjs +0 -41
- /package/dist/{action-row-DnhBhMtt.mjs → action-row-ZaMsJ8cP.mjs} +0 -0
- /package/dist/{empty-content-CBh5bbtJ.mjs → empty-content-DTk_lwnh.mjs} +0 -0
- /package/dist/{hooks-DQXVwbrs.mjs → hooks-CnphNpwz.mjs} +0 -0
- /package/dist/{loader-overlay-C2WDla6V.mjs → loader-overlay-B3YEoOFJ.mjs} +0 -0
- /package/dist/{map-leaflet-imports-yWwH4CHB.mjs → map-leaflet-imports-Ix8F7E8j.mjs} +0 -0
- /package/dist/{page-title-ChLiv6gB.mjs → page-title-D5JhOpxV.mjs} +0 -0
- /package/dist/{skeleton-D2xuJdE1.mjs → skeleton-B1NOdZGM.mjs} +0 -0
- /package/dist/{switch-DcSF42Kc.mjs → switch-BcQaR1Bp.mjs} +0 -0
- /package/dist/{table-DWGT4cqh.mjs → table-ouGk4Vxe.mjs} +0 -0
- /package/dist/{textarea-BoChBcFz.mjs → textarea-q-k7DYwi.mjs} +0 -0
- /package/dist/{toast-D5XD7goD.mjs → toast-BWol1pyV.mjs} +0 -0
- /package/dist/{tooltip-a7NTDCWw.mjs → tooltip-CHuzXR_O.mjs} +0 -0
- /package/dist/{utils-BwB1mIdZ.mjs → utils-bUueJ2r9.mjs} +0 -0
- /package/dist/{visuallyhidden-BHOPczmW.mjs → visuallyhidden-CoIJOJ9z.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PickerMode, PickerPreset } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Date-bearing presets. Operate on calendar days; ignore time-of-day.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DATE_PRESETS: readonly PickerPreset[];
|
|
6
|
+
/**
|
|
7
|
+
* Datetime-bearing presets. Use "now" as the upper bound for past windows
|
|
8
|
+
* (so the picker doesn't propose future timestamps).
|
|
9
|
+
*/
|
|
10
|
+
export declare const DATETIME_PRESETS: readonly PickerPreset[];
|
|
11
|
+
/**
|
|
12
|
+
* Default preset set for a given mode. Time-only modes return empty —
|
|
13
|
+
* presets rarely make sense for picking a wall-clock time.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getDefaultPresets(mode: PickerMode): readonly PickerPreset[];
|
|
16
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/presets/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AA0BxD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,YAAY,EAgEtC,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAsD1C,CAAA;AAIV;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,YAAY,EAAE,CAc3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/presets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picker mode — discriminator for the 7 useful cells of the date×time matrix.
|
|
3
|
+
* (8 cells exist; single-date+time-range collapses into datetime-range with same-day from/to.)
|
|
4
|
+
*/
|
|
5
|
+
export type PickerMode = 'date' | 'date-range' | 'time' | 'time-range' | 'datetime' | 'datetime-range' | 'date-range-time';
|
|
6
|
+
/** When does onChange fire? */
|
|
7
|
+
export type PickerCommit = 'immediate' | 'apply';
|
|
8
|
+
/** A preset is a labeled, TZ-aware range factory. */
|
|
9
|
+
export interface PickerPreset {
|
|
10
|
+
/** Stable identifier — persisted in emitted value for URL hydration. */
|
|
11
|
+
key: string;
|
|
12
|
+
/** Display label (user-facing). */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Optional keyboard shortcut (single character; case-insensitive). */
|
|
15
|
+
shortcut?: string;
|
|
16
|
+
/** Compute the range in the user's selected timezone. Lazy and TZ-aware. */
|
|
17
|
+
getRange: (timezone: string) => {
|
|
18
|
+
from: Date;
|
|
19
|
+
to: Date;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export type DateValue = Date | null;
|
|
23
|
+
export type DateRangeValue = {
|
|
24
|
+
from: Date;
|
|
25
|
+
to: Date;
|
|
26
|
+
/** Set when the range came from a preset click. Undefined for manual ranges. */
|
|
27
|
+
preset?: string;
|
|
28
|
+
} | null;
|
|
29
|
+
/** Time-of-day in `"HH:mm"` 24-hour format. Display formatting is separate. */
|
|
30
|
+
export type TimeValue = string | null;
|
|
31
|
+
export type TimeRangeValue = {
|
|
32
|
+
from: string;
|
|
33
|
+
to: string;
|
|
34
|
+
preset?: string;
|
|
35
|
+
} | null;
|
|
36
|
+
/** Datetime as UTC ISO string. Display timezone is a separate prop. */
|
|
37
|
+
export type DatetimeValue = string | null;
|
|
38
|
+
export type DatetimeRangeValue = {
|
|
39
|
+
from: string;
|
|
40
|
+
to: string;
|
|
41
|
+
preset?: string;
|
|
42
|
+
} | null;
|
|
43
|
+
export type DateRangeTimeValue = {
|
|
44
|
+
from: string;
|
|
45
|
+
to: string;
|
|
46
|
+
preset?: string;
|
|
47
|
+
} | null;
|
|
48
|
+
export interface PickerValueMap {
|
|
49
|
+
'date': DateValue;
|
|
50
|
+
'date-range': DateRangeValue;
|
|
51
|
+
'time': TimeValue;
|
|
52
|
+
'time-range': TimeRangeValue;
|
|
53
|
+
'datetime': DatetimeValue;
|
|
54
|
+
'datetime-range': DatetimeRangeValue;
|
|
55
|
+
'date-range-time': DateRangeTimeValue;
|
|
56
|
+
}
|
|
57
|
+
export type PickerValueOf<M extends PickerMode> = PickerValueMap[M];
|
|
58
|
+
export declare const RANGE_MODES: readonly ["date-range", "time-range", "datetime-range", "date-range-time"];
|
|
59
|
+
export type RangeMode = typeof RANGE_MODES[number];
|
|
60
|
+
export declare const TIME_BEARING_MODES: readonly ["time", "time-range", "datetime", "datetime-range", "date-range-time"];
|
|
61
|
+
export type TimeBearingMode = typeof TIME_BEARING_MODES[number];
|
|
62
|
+
export declare const DATE_BEARING_MODES: readonly ["date", "date-range", "datetime", "datetime-range", "date-range-time"];
|
|
63
|
+
export type DateBearingMode = typeof DATE_BEARING_MODES[number];
|
|
64
|
+
export declare function isRangeMode(mode: PickerMode): mode is RangeMode;
|
|
65
|
+
export declare function isTimeBearingMode(mode: PickerMode): mode is TimeBearingMode;
|
|
66
|
+
export declare function isDateBearingMode(mode: PickerMode): mode is DateBearingMode;
|
|
67
|
+
export type HourCycle = '12' | '24';
|
|
68
|
+
export declare const ALLOWED_STEPS: readonly [1, 5, 10, 15, 30, 60];
|
|
69
|
+
export type AllowedStep = typeof ALLOWED_STEPS[number];
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/features/picker/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAChB,MAAM,GACN,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,gBAAgB,GAChB,iBAAiB,CAAA;AAEvB,+BAA+B;AAC/B,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,OAAO,CAAA;AAEhD,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B,wEAAwE;IACxE,GAAG,EAAE,MAAM,CAAA;IACX,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,CAAA;CACzD;AAID,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;AAEnC,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,IAAI,CAAA;IACV,EAAE,EAAE,IAAI,CAAA;IACR,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,IAAI,CAAA;AAER,+EAA+E;AAC/E,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,IAAI,CAAA;AAErC,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,IAAI,CAAA;AAER,uEAAuE;AACvE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,IAAI,CAAA;AAIR,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,EAAE,cAAc,CAAA;IAC5B,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,EAAE,cAAc,CAAA;IAC5B,UAAU,EAAE,aAAa,CAAA;IACzB,gBAAgB,EAAE,kBAAkB,CAAA;IACpC,iBAAiB,EAAE,kBAAkB,CAAA;CACtC;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,UAAU,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAInE,eAAO,MAAM,WAAW,4EAKkB,CAAA;AAE1C,MAAM,MAAM,SAAS,GAAG,OAAO,WAAW,CAAC,MAAM,CAAC,CAAA;AAElD,eAAO,MAAM,kBAAkB,kFAMW,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAE/D,eAAO,MAAM,kBAAkB,kFAMW,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAS/D,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,SAAS,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,eAAe,CAE3E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,eAAe,CAE3E;AAID,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;AAInC,eAAO,MAAM,aAAa,iCAAkC,CAAA;AAC5D,MAAM,MAAM,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PickerCommit, PickerMode } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the effective commit semantics for a picker.
|
|
4
|
+
*
|
|
5
|
+
* - Date + time combined modes (`datetime` / `datetime-range` /
|
|
6
|
+
* `date-range-time`) **always** commit on Apply, regardless of the
|
|
7
|
+
* caller-supplied override. Picking a date alone shouldn't publish a
|
|
8
|
+
* value with an unconfirmed 00:00 time — the user needs to set the
|
|
9
|
+
* time too, then explicitly Apply. The wrappers don't expose a
|
|
10
|
+
* `commit` prop for these modes; primitive consumers can still pass
|
|
11
|
+
* one through `Picker.Root` but it's silently overridden here.
|
|
12
|
+
* - Range modes (`date-range`, `time-range`) default to `'apply'`.
|
|
13
|
+
* - Everything else defaults to `'immediate'`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveCommit(mode: PickerMode, commit: PickerCommit | undefined): PickerCommit;
|
|
16
|
+
//# sourceMappingURL=commit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/commit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAGxD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,CAI9F"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DateRangeTimeValue, DateRangeValue, DatetimeRangeValue, TimeRangeValue } from '../types';
|
|
2
|
+
/** Strict equality of two nullable Date references by millisecond value. */
|
|
3
|
+
export declare function isSameDate(a: Date | null, b: Date | null): boolean;
|
|
4
|
+
/** Equality of two nullable date ranges. Compares from, to (by ms), and preset. */
|
|
5
|
+
export declare function isSameDateRange(a: DateRangeValue, b: DateRangeValue): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Equality of two nullable string ranges. Used for time-of-day, time-range,
|
|
8
|
+
* and datetime-range value shapes (all structurally identical).
|
|
9
|
+
* Compares from, to, and optional preset.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isSameStringRange(a: TimeRangeValue | DatetimeRangeValue | DateRangeTimeValue, b: TimeRangeValue | DatetimeRangeValue | DateRangeTimeValue): boolean;
|
|
12
|
+
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/compare.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,UAAU,CAAA;AAEjB,4EAA4E;AAC5E,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAMlE;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,cAAc,GAAG,OAAO,CAU7E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,EAAE,cAAc,GAAG,kBAAkB,GAAG,kBAAkB,EAC3D,CAAC,EAAE,cAAc,GAAG,kBAAkB,GAAG,kBAAkB,GAC1D,OAAO,CAMT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HourCycle, PickerMode } from '../types';
|
|
2
|
+
interface FormatOptions {
|
|
3
|
+
timezone?: string;
|
|
4
|
+
hourCycle?: HourCycle;
|
|
5
|
+
locale?: string;
|
|
6
|
+
/**
|
|
7
|
+
* date-fns format pattern for the date portion of the display label.
|
|
8
|
+
* When set, replaces the default `MMM dd, yyyy`-style locale rendering.
|
|
9
|
+
* Examples: `'dd/MM/yyyy'`, `'EEE, MMM do'`, `'yyyy-MM-dd'`.
|
|
10
|
+
*/
|
|
11
|
+
dateFormat?: string;
|
|
12
|
+
/**
|
|
13
|
+
* date-fns format pattern for the time portion of the display label.
|
|
14
|
+
* When set, replaces the default `HH:mm` rendering (overrides `hourCycle`).
|
|
15
|
+
* Examples: `'HH:mm'`, `'hh:mm a'`, `'HH:mm:ss'`.
|
|
16
|
+
*/
|
|
17
|
+
timeFormat?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Renders a human-readable trigger label for any picker mode.
|
|
21
|
+
* Returns the empty string when the value is null/undefined or unparseable.
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatPickerValue(value: unknown, mode: PickerMode, opts?: FormatOptions): string;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=format-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-value.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/format-value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAKrD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AA+DD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,UAAU,EAChB,IAAI,GAAE,aAAkB,GACvB,MAAM,CA+DR"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a Date as YYYY-MM-DD using local-time components.
|
|
3
|
+
*
|
|
4
|
+
* Note: this is the consumer-friendly format for date-only modes.
|
|
5
|
+
* It does NOT round-trip through timezones; that's intentional —
|
|
6
|
+
* a calendar day has no timezone.
|
|
7
|
+
*/
|
|
8
|
+
export declare function dateToYYYYMMDD(d: Date): string;
|
|
9
|
+
/**
|
|
10
|
+
* Extract `"HH:mm"` from a Date using its wall-clock components.
|
|
11
|
+
*
|
|
12
|
+
* Caller is responsible for ensuring those components reflect the
|
|
13
|
+
* intended timezone (typically via `dateToZoned` / `isoToZonedDate`
|
|
14
|
+
* upstream). Pads single-digit hour/minute to two characters.
|
|
15
|
+
*/
|
|
16
|
+
export declare function dateToHHmm(d: Date): string;
|
|
17
|
+
/**
|
|
18
|
+
* Strict HH:mm validation. Rejects single-digit components,
|
|
19
|
+
* out-of-range hours/minutes, and any non-numeric content.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isValidTimeString(s: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Parse a HH:mm string. Returns null for invalid input.
|
|
24
|
+
*/
|
|
25
|
+
export declare function parseTimeString(s: string): {
|
|
26
|
+
h: number;
|
|
27
|
+
m: number;
|
|
28
|
+
} | null;
|
|
29
|
+
/**
|
|
30
|
+
* Format a HH:mm string for user display, respecting hour cycle.
|
|
31
|
+
*
|
|
32
|
+
* - `'24'`: returns the input as-is (`"14:30"`)
|
|
33
|
+
* - `'12'`: returns `"2:30 PM"` style with AM/PM and no leading zero on hour
|
|
34
|
+
*
|
|
35
|
+
* Returns empty string for invalid input — callers should validate first.
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatTimeLabel(time: string, hourCycle: '12' | '24'): string;
|
|
38
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/format.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAK9C;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAI1C;AAID;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAK1E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAW5E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { resolveCommit, } from './commit';
|
|
2
|
+
export { isSameDate, isSameDateRange, isSameStringRange, } from './compare';
|
|
3
|
+
export { dateToYYYYMMDD, formatTimeLabel, isValidTimeString, parseTimeString, } from './format';
|
|
4
|
+
export { formatPickerValue, } from './format-value';
|
|
5
|
+
export { clampRange, getDaysDifference, isRangeValid, } from './range';
|
|
6
|
+
export { formatInTimezone, formatTimezoneLabel, getBrowserTimezone, getTimezoneOffset, isoToZonedDate, zonedDateToIso, } from './timezone';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GACd,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,UAAU,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,UAAU,CAAA;AAEjB,OAAO,EACL,iBAAiB,GAClB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,YAAY,GACb,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,cAAc,GACf,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of calendar days between two dates. Always non-negative.
|
|
3
|
+
*
|
|
4
|
+
* Uses calendar-day boundaries (not 24-hour windows), so a range from
|
|
5
|
+
* 23:59 today to 00:00 tomorrow counts as 1 day, not 0.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getDaysDifference(from: Date, to: Date): number;
|
|
8
|
+
/**
|
|
9
|
+
* Validate a range against a maximum span (inclusive).
|
|
10
|
+
*
|
|
11
|
+
* - Returns `true` when `maxRange` is undefined.
|
|
12
|
+
* - Returns `true` when the range spans at most `maxRange` days.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isRangeValid(from: Date, to: Date, maxRange?: number): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Clamp a range to fit within `maxRange` days.
|
|
17
|
+
*
|
|
18
|
+
* If the range already fits, returns the original `{from, to}`.
|
|
19
|
+
* Otherwise, holds `from` and clamps `to` forward to exactly `maxRange`
|
|
20
|
+
* days after `from`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function clampRange(from: Date, to: Date, maxRange: number): {
|
|
23
|
+
from: Date;
|
|
24
|
+
to: Date;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/range.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,GAAG,MAAM,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAI7E;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,EAAE,EAAE,IAAI,EACR,QAAQ,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,EAAE,EAAE,IAAI,CAAA;CAAE,CAM1B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Browser-detected IANA timezone, falling back to UTC if unavailable. */
|
|
2
|
+
export declare function getBrowserTimezone(): string;
|
|
3
|
+
/**
|
|
4
|
+
* UTC offset for a timezone in `±HH:MM` format.
|
|
5
|
+
* Returns `+00:00` for UTC or any timezone the runtime cannot resolve.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getTimezoneOffset(timezone: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Human-readable timezone label.
|
|
10
|
+
* Example: `'Asia/Jakarta'` → `'Asia/Jakarta (UTC+07:00)'`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatTimezoneLabel(timezone: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Convert a UTC ISO string to a Date object whose wall-clock components
|
|
15
|
+
* (year/month/day/hours/minutes) reflect the value as seen in `timezone`.
|
|
16
|
+
*
|
|
17
|
+
* Use this to feed Calendar / time slot UI that reads `getHours()` etc.
|
|
18
|
+
*
|
|
19
|
+
* INVARIANT: `zonedDateToIso(isoToZonedDate(iso, tz), tz) === iso` for any
|
|
20
|
+
* valid ISO and tz.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isoToZonedDate(iso: string, timezone: string): Date;
|
|
23
|
+
/**
|
|
24
|
+
* Date-input variant of `isoToZonedDate`. Skips the ISO round-trip when the
|
|
25
|
+
* caller already has a Date instance (e.g. preset `getRange(tz)` results).
|
|
26
|
+
*/
|
|
27
|
+
export declare function dateToZoned(date: Date, timezone: string): Date;
|
|
28
|
+
/**
|
|
29
|
+
* Inverse of `isoToZonedDate`. Treat the Date's wall-clock components
|
|
30
|
+
* as `timezone`-local and convert back to a UTC ISO instant.
|
|
31
|
+
*/
|
|
32
|
+
export declare function zonedDateToIso(date: Date, timezone: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Format a UTC ISO string in the given timezone using a date-fns format pattern.
|
|
35
|
+
* Returns empty string if the input is not a valid date.
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatInTimezone(iso: string, timezone: string, pattern: string): string;
|
|
38
|
+
//# sourceMappingURL=timezone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/utils/timezone.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,wBAAgB,kBAAkB,IAAI,MAAM,CAO3C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAyB1D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAI5D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAUvF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CalendarMonthsPickerProps, CommitOverridePickerProps, DateBearingPickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface DatePickerProps extends UniversalPickerProps, CommitOverridePickerProps, DateBearingPickerProps, CalendarMonthsPickerProps {
|
|
3
|
+
value: Date | null;
|
|
4
|
+
onChange: (value: Date | null) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function DatePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, numberOfMonths, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, disablePast, disableFuture, minDate, maxDate, dateFormat, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace DatePicker {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAQhB,MAAM,WAAW,eACf,SACA,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB;IACzB,KAAK,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAA;CACvC;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,WAA2B,EAC3B,SAAgB,EAChB,UAAiB,EACjB,UAA0B,EAC1B,cAAkB,EAClB,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,UAAU,GACX,EAAE,eAAe,2CA4CjB;yBAnEe,UAAU"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CalendarMonthsPickerProps, CommitOverridePickerProps, DateBearingPickerProps, PresetsPickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface DateRangePickerProps extends UniversalPickerProps, CommitOverridePickerProps, DateBearingPickerProps, CalendarMonthsPickerProps, PresetsPickerProps {
|
|
3
|
+
value: {
|
|
4
|
+
from: Date;
|
|
5
|
+
to: Date;
|
|
6
|
+
} | null;
|
|
7
|
+
onChange: (value: {
|
|
8
|
+
from: Date;
|
|
9
|
+
to: Date;
|
|
10
|
+
} | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DateRangePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, numberOfMonths, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, disablePast, disableFuture, minDate, maxDate, presets, excludePresets, dateFormat, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace DateRangePicker {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=date-range-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/date-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAShB,MAAM,WAAW,oBACf,SACA,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,kBAAkB;IAClB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAA;IACtC,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAC3D;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,WAAiC,EACjC,SAAgB,EAChB,UAAiB,EACjB,UAAgC,EAChC,cAAkB,EAClB,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,UAAU,GACX,EAAE,oBAAoB,2CAgDtB;yBAzEe,eAAe"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CalendarMonthsPickerProps, DateBearingPickerProps, PresetsPickerProps, TimeOfDayPickerProps, TimezonePickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface DateRangeTimePickerProps extends UniversalPickerProps, DateBearingPickerProps, CalendarMonthsPickerProps, TimezonePickerProps, TimeOfDayPickerProps, PresetsPickerProps {
|
|
3
|
+
value: {
|
|
4
|
+
from: string;
|
|
5
|
+
to: string;
|
|
6
|
+
} | null;
|
|
7
|
+
onChange: (value: {
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
} | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DateRangeTimePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, timezone, step, hourCycle, numberOfMonths, hideTimezone, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, disablePast, disableFuture, minDate, maxDate, presets, excludePresets, dateFormat, timeFormat, }: DateRangeTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace DateRangeTimePicker {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=date-range-time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-time-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/date-range-time-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAWhB,MAAM,WAAW,wBACf,SACA,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB;IAClB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/D;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,WAA2C,EAC3C,SAAgB,EAChB,UAAiB,EACjB,UAA0C,EAC1C,QAAQ,EACR,IAAS,EACT,SAAS,EACT,cAAkB,EAClB,YAAoB,EACpB,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,GACX,EAAE,wBAAwB,2CA0D1B;yBAvFe,mBAAmB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CalendarMonthsPickerProps, DateBearingPickerProps, TimeOfDayPickerProps, TimezonePickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface DateTimePickerProps extends UniversalPickerProps, DateBearingPickerProps, CalendarMonthsPickerProps, TimezonePickerProps, TimeOfDayPickerProps {
|
|
3
|
+
value: string | null;
|
|
4
|
+
onChange: (value: string | null) => void;
|
|
5
|
+
/**
|
|
6
|
+
* `'slot'` (default) renders the embedded time slot dropdown.
|
|
7
|
+
* `'input'` renders a typeable HH:mm input via `Picker.TimeInputField`.
|
|
8
|
+
*/
|
|
9
|
+
timeInputMode?: 'slot' | 'input';
|
|
10
|
+
/**
|
|
11
|
+
* `'full'` (default) renders the full TZ indicator below the time input.
|
|
12
|
+
* `'compact'` renders just the bare timezone identifier.
|
|
13
|
+
*/
|
|
14
|
+
timezoneIndicatorVariant?: 'full' | 'compact';
|
|
15
|
+
}
|
|
16
|
+
export declare function DateTimePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, timezone, step, hourCycle, numberOfMonths, hideTimezone, timeInputMode, timezoneIndicatorVariant, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, disablePast, disableFuture, minDate, maxDate, dateFormat, timeFormat, }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare namespace DateTimePicker {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=date-time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/date-time-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAWhB,MAAM,WAAW,mBACf,SACA,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAChC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9C;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,WAAkC,EAClC,SAAgB,EAChB,UAAiB,EACjB,UAAiC,EACjC,QAAQ,EACR,IAAS,EACT,SAAS,EACT,cAAkB,EAClB,YAAoB,EACpB,aAAsB,EACtB,wBAAiC,EACjC,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,UAAU,EACV,UAAU,GACX,EAAE,mBAAmB,2CAuDrB;yBApFe,cAAc"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CalendarMonthsPickerProps, DateBearingPickerProps, PresetsPickerProps, TimeOfDayPickerProps, TimezonePickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface DateTimeRangePickerProps extends UniversalPickerProps, DateBearingPickerProps, CalendarMonthsPickerProps, TimezonePickerProps, TimeOfDayPickerProps, PresetsPickerProps {
|
|
3
|
+
value: {
|
|
4
|
+
from: string;
|
|
5
|
+
to: string;
|
|
6
|
+
} | null;
|
|
7
|
+
onChange: (value: {
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
} | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DateTimeRangePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, timezone, step, hourCycle, numberOfMonths, hideTimezone, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, disablePast, disableFuture, minDate, maxDate, presets, excludePresets, dateFormat, timeFormat, }: DateTimeRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace DateTimeRangePicker {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=date-time-range-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-range-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/date-time-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAWhB,MAAM,WAAW,wBACf,SACA,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB;IAClB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/D;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,WAAwC,EACxC,SAAgB,EAChB,UAAiB,EACjB,UAAuC,EACvC,QAAQ,EACR,IAAS,EACT,SAAS,EACT,cAAkB,EAClB,YAAoB,EACpB,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,GACX,EAAE,wBAAwB,2CAgE1B;yBA7Fe,mBAAmB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { DatePicker } from './date-picker';
|
|
2
|
+
export type { DatePickerProps } from './date-picker';
|
|
3
|
+
export { DateRangePicker } from './date-range-picker';
|
|
4
|
+
export type { DateRangePickerProps } from './date-range-picker';
|
|
5
|
+
export { DateRangeTimePicker } from './date-range-time-picker';
|
|
6
|
+
export type { DateRangeTimePickerProps } from './date-range-time-picker';
|
|
7
|
+
export { DateTimePicker } from './date-time-picker';
|
|
8
|
+
export type { DateTimePickerProps } from './date-time-picker';
|
|
9
|
+
export { DateTimeRangePicker } from './date-time-range-picker';
|
|
10
|
+
export type { DateTimeRangePickerProps } from './date-time-range-picker';
|
|
11
|
+
export { TimePicker } from './time-picker';
|
|
12
|
+
export type { TimePickerProps } from './time-picker';
|
|
13
|
+
export { TimeRangePicker } from './time-range-picker';
|
|
14
|
+
export type { TimeRangePickerProps } from './time-range-picker';
|
|
15
|
+
export type { WrapperBaseProps } from './types';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The standard Cancel / Reset / Apply footer used by every wrapper.
|
|
3
|
+
* `Picker.Content` decides whether to render it - desktop popover renders
|
|
4
|
+
* it only when `commit === 'apply'`; mobile sheet always renders it.
|
|
5
|
+
*/
|
|
6
|
+
export declare function DefaultFooter(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=default-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-footer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/picker/wrappers/internal/default-footer.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,aAAa,4CAQ5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommitOverridePickerProps, TimeOfDayPickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface TimePickerProps extends UniversalPickerProps, CommitOverridePickerProps, TimeOfDayPickerProps {
|
|
3
|
+
value: string | null;
|
|
4
|
+
onChange: (value: string | null) => void;
|
|
5
|
+
/** Inclusive min slot, format `"HH:mm"`. */
|
|
6
|
+
minTime?: string;
|
|
7
|
+
/** Inclusive max slot, format `"HH:mm"`. */
|
|
8
|
+
maxTime?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function TimePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, step, hourCycle, minTime, maxTime, timeFormat, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace TimePicker {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=time-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/time-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAWpG,MAAM,WAAW,eACf,SAAQ,oBAAoB,EAAE,yBAAyB,EAAE,oBAAoB;IAC7E,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,WAA2B,EAC3B,SAAgB,EAChB,UAAiB,EACjB,UAA0B,EAC1B,IAAS,EACT,SAAS,EACT,OAAO,EACP,OAAO,EACP,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE,eAAe,2CAmCjB;yBAzDe,UAAU"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CommitOverridePickerProps, TimeOfDayPickerProps, UniversalPickerProps } from './types';
|
|
2
|
+
export interface TimeRangePickerProps extends UniversalPickerProps, CommitOverridePickerProps, TimeOfDayPickerProps {
|
|
3
|
+
value: {
|
|
4
|
+
from: string;
|
|
5
|
+
to: string;
|
|
6
|
+
} | null;
|
|
7
|
+
onChange: (value: {
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
} | null) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function TimeRangePicker({ value, onChange, placeholder, clearable, responsive, sheetTitle, step, hourCycle, timeFormat, triggerLabel, icon, disabled, className, triggerClassName, popoverClassName, id, sheetDescription, modal, commit, }: TimeRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare namespace TimeRangePicker {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=time-range-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-range-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/time-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAWpG,MAAM,WAAW,oBACf,SAAQ,oBAAoB,EAAE,yBAAyB,EAAE,oBAAoB;IAC7E,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/D;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,WAAiC,EACjC,SAAgB,EAChB,UAAiB,EACjB,UAAgC,EAChC,IAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACF,gBAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE,oBAAoB,2CA4CtB;yBAhEe,eAAe"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AllowedStep, HourCycle, PickerCommit, PickerPreset } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Universal props every picker wrapper accepts. These all touch the
|
|
5
|
+
* trigger / popover / sheet chrome — never the inner picker content.
|
|
6
|
+
*/
|
|
7
|
+
export interface UniversalPickerProps {
|
|
8
|
+
/** Trigger label when value is null. */
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Native disabled state — suppresses opening. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Show a Clear sub-button on the trigger when a value is set. Default `true`. */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
/** Class on the outermost trigger Button wrapper. */
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Class merged onto the trigger Button. */
|
|
17
|
+
triggerClassName?: string;
|
|
18
|
+
/** Class merged onto the popover content (desktop only). */
|
|
19
|
+
popoverClassName?: string;
|
|
20
|
+
/** id forwarded to the trigger Button. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** When false, forces desktop popover even on mobile viewports. Default `true`. */
|
|
23
|
+
responsive?: boolean;
|
|
24
|
+
/** Mobile sheet header title. */
|
|
25
|
+
sheetTitle?: string;
|
|
26
|
+
/** Mobile sheet header description. */
|
|
27
|
+
sheetDescription?: string;
|
|
28
|
+
/** Forwarded to ResponsivePopover.modal. */
|
|
29
|
+
modal?: boolean;
|
|
30
|
+
/** Render-prop override for the trigger label. Receives the `pendingValue`. */
|
|
31
|
+
triggerLabel?: (value: unknown) => ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Trigger leading icon. Pass a ReactNode to override the per-mode default
|
|
34
|
+
* (calendar for date-bearing modes, clock for time-only modes), or `false`
|
|
35
|
+
* to hide the icon entirely.
|
|
36
|
+
*/
|
|
37
|
+
icon?: ReactNode | false;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Constraints that gate selectable dates. Apply to every wrapper that
|
|
41
|
+
* renders a calendar (everything except the time-only modes).
|
|
42
|
+
*/
|
|
43
|
+
export interface DateBearingPickerProps {
|
|
44
|
+
/** Disable past dates in the calendar AND filter past presets. */
|
|
45
|
+
disablePast?: boolean;
|
|
46
|
+
/** Disable future dates in the calendar AND filter future presets. */
|
|
47
|
+
disableFuture?: boolean;
|
|
48
|
+
/** Inclusive lower bound for selectable dates. */
|
|
49
|
+
minDate?: Date;
|
|
50
|
+
/** Inclusive upper bound for selectable dates. */
|
|
51
|
+
maxDate?: Date;
|
|
52
|
+
/**
|
|
53
|
+
* date-fns format pattern for the date portion of the trigger label.
|
|
54
|
+
* Examples: `'dd/MM/yyyy'`, `'EEE, MMM do'`, `'yyyy-MM-dd'`. Defaults to
|
|
55
|
+
* a locale-aware `MMM dd, yyyy`-style rendering.
|
|
56
|
+
*/
|
|
57
|
+
dateFormat?: string;
|
|
58
|
+
}
|
|
59
|
+
/** Number of calendar months shown side-by-side. */
|
|
60
|
+
export interface CalendarMonthsPickerProps {
|
|
61
|
+
numberOfMonths?: 1 | 2;
|
|
62
|
+
}
|
|
63
|
+
/** Time-of-day controls for time-bearing modes. */
|
|
64
|
+
export interface TimeOfDayPickerProps {
|
|
65
|
+
/** Time slot step in minutes. Default `15`. */
|
|
66
|
+
step?: AllowedStep;
|
|
67
|
+
/** Display cycle for time labels. Default detected from locale. */
|
|
68
|
+
hourCycle?: HourCycle;
|
|
69
|
+
/**
|
|
70
|
+
* date-fns format pattern for the time portion of the trigger label.
|
|
71
|
+
* Examples: `'HH:mm'`, `'hh:mm a'`, `'HH:mm:ss'`. When set, overrides
|
|
72
|
+
* `hourCycle` for the trigger display.
|
|
73
|
+
*/
|
|
74
|
+
timeFormat?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Timezone props — only meaningful for the modes whose value is a UTC ISO string
|
|
78
|
+
* (`datetime`, `datetime-range`, `date-range-time`).
|
|
79
|
+
*/
|
|
80
|
+
export interface TimezonePickerProps {
|
|
81
|
+
/** IANA timezone name. Default: browser-detected. */
|
|
82
|
+
timezone?: string;
|
|
83
|
+
/** Hide the always-on TZ indicator. */
|
|
84
|
+
hideTimezone?: boolean;
|
|
85
|
+
}
|
|
86
|
+
/** Preset rail — only meaningful when a wrapper renders `<PickerPresets />`. */
|
|
87
|
+
export interface PresetsPickerProps {
|
|
88
|
+
/** Replace default presets entirely. */
|
|
89
|
+
presets?: readonly PickerPreset[];
|
|
90
|
+
/** Filter default presets by key. Ignored when `presets` is set. */
|
|
91
|
+
excludePresets?: readonly string[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* `commit` override — only exposed on wrappers where the choice is meaningful.
|
|
95
|
+
*
|
|
96
|
+
* Date + time combined modes (`datetime` / `datetime-range` / `date-range-time`)
|
|
97
|
+
* are pinned to `'apply'` internally and intentionally don't extend this mixin:
|
|
98
|
+
* picking a date alone shouldn't auto-commit a value with an unconfirmed
|
|
99
|
+
* 00:00 time.
|
|
100
|
+
*/
|
|
101
|
+
export interface CommitOverridePickerProps {
|
|
102
|
+
/** Override the default per-mode commit semantics (`'immediate'` | `'apply'`). */
|
|
103
|
+
commit?: PickerCommit;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Compose the per-feature mixin types instead — picking only
|
|
107
|
+
* the ones a given wrapper actually wires through. Kept as a back-compat
|
|
108
|
+
* alias of the previous union so existing consumers don't break.
|
|
109
|
+
*
|
|
110
|
+
* INTENTIONAL SCOPE: this alias mirrors the **previous** WrapperBaseProps
|
|
111
|
+
* shape exactly. It excludes `numberOfMonths` (CalendarMonthsPickerProps),
|
|
112
|
+
* `step`/`hourCycle`/`timeFormat` (TimeOfDayPickerProps), `timezone`
|
|
113
|
+
* (TimezonePickerProps), and `dateFormat` because those props were never
|
|
114
|
+
* on the old union — adding them here would silently widen the alias and
|
|
115
|
+
* break the back-compat contract. Use the new mixins directly to opt in.
|
|
116
|
+
*/
|
|
117
|
+
export type WrapperBaseProps = UniversalPickerProps & CommitOverridePickerProps & DateBearingPickerProps & PresetsPickerProps & Pick<TimezonePickerProps, 'hideTimezone'>;
|
|
118
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/picker/wrappers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAElF;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,+EAA+E;IAC/E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,SAAS,CAAA;IAC5C;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAA;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sEAAsE;IACtE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,kDAAkD;IAClD,OAAO,CAAC,EAAE,IAAI,CAAA;IACd,kDAAkD;IAClD,OAAO,CAAC,EAAE,IAAI,CAAA;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CACvB;AAED,mDAAmD;AACnD,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,mEAAmE;IACnE,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uCAAuC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IACjC,oEAAoE;IACpE,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,yBAAyB;IACxC,kFAAkF;IAClF,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,sBAAsB,GACtB,kBAAkB,GAClB,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAA"}
|