@vireo-ai/trellis-ui 0.1.8 → 0.1.10
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/package.json +8 -4
- package/packages/client/src/components/app/styles.css +1 -30
- package/packages/client/src/components/button/styles.css +1 -122
- package/packages/client/src/components/date-picker/styles.css +47 -77
- package/packages/client/src/components/field/styles.css +10 -0
- package/packages/client/src/components/file-upload/styles.css +0 -28
- package/packages/client/src/components/panels/styles.css +43 -0
- package/packages/client/src/components/radio/styles.css +26 -21
- package/packages/client/src/components/scroll-area/styles.css +0 -4
- package/packages/client/src/components/select/styles.css +0 -30
- package/packages/client/src/components/sidebar/styles.css +8 -0
- package/packages/client/src/components/toast/styles.css +14 -7
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated/theme-fonts.css +5 -0
- package/packages/client/src/styles/generated/theme-palette.css +2656 -0
- package/packages/client/src/styles/generated/theme-runtime.css +2966 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/src/styles/static.css +1 -0
- package/packages/client/src/styles/theme.css +777 -738
- package/packages/client/types/cdn.d.ts +1 -4
- package/packages/client/types/component-api.d.ts +21 -0
- package/packages/client/types/components/accordion/contract.d.ts +3 -2
- package/packages/client/types/components/accordion/index.d.ts +28 -42
- package/packages/client/types/components/accordion/machine.d.ts +131 -0
- package/packages/client/types/components/accordion/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/action/contract.d.ts +3 -3
- package/packages/client/types/components/app/contract.d.ts +25 -12
- package/packages/client/types/components/app/index.d.ts +2 -2
- package/packages/client/types/components/badge/contract.d.ts +5 -5
- package/packages/client/types/components/box/contract.d.ts +25 -28
- package/packages/client/types/components/brand/contract.d.ts +2 -2
- package/packages/client/types/components/button/contract.d.ts +5 -5
- package/packages/client/types/components/card/contract.d.ts +28 -31
- package/packages/client/types/components/checkbox/contract.d.ts +17 -17
- package/packages/client/types/components/checkbox/index.d.ts +20 -26
- package/packages/client/types/components/checkbox/machine.d.ts +41 -0
- package/packages/client/types/components/checkbox/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/common.d.ts +53 -235
- package/packages/client/types/components/container/contract.d.ts +11 -12
- package/packages/client/types/components/date-picker/contract.d.ts +21 -16
- package/packages/client/types/components/date-picker/index.d.ts +38 -60
- package/packages/client/types/components/date-picker/machine.d.ts +529 -0
- package/packages/client/types/components/date-picker/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/date-picker/value.d.ts +28 -0
- package/packages/client/types/components/dropdown/contract.d.ts +4 -4
- package/packages/client/types/components/dropdown/index.d.ts +20 -45
- package/packages/client/types/components/dropdown/machine.d.ts +93 -0
- package/packages/client/types/components/dropdown/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/field/contract.d.ts +10 -6
- package/packages/client/types/components/field/index.d.ts +6 -6
- package/packages/client/types/components/field/machine.d.ts +13 -0
- package/packages/client/types/components/field/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/file-upload/contract.d.ts +7 -4
- package/packages/client/types/components/file-upload/index.d.ts +34 -31
- package/packages/client/types/components/file-upload/machine.d.ts +127 -0
- package/packages/client/types/components/file-upload/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/flex/contract.d.ts +16 -17
- package/packages/client/types/components/frame/contract.d.ts +41 -47
- package/packages/client/types/components/frame/index.d.ts +2 -2
- package/packages/client/types/components/grid/contract.d.ts +20 -21
- package/packages/client/types/components/heading/contract.d.ts +1 -1
- package/packages/client/types/components/image/contract.d.ts +3 -3
- package/packages/client/types/components/input/contract.d.ts +2 -2
- package/packages/client/types/components/input/index.d.ts +15 -12
- package/packages/client/types/components/input/machine.d.ts +20 -0
- package/packages/client/types/components/layout.d.ts +44 -225
- package/packages/client/types/components/menu/contract.d.ts +14 -8
- package/packages/client/types/components/modal/contract.d.ts +12 -12
- package/packages/client/types/components/modal/index.d.ts +41 -75
- package/packages/client/types/components/modal/machine.d.ts +129 -0
- package/packages/client/types/components/modal/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/overlay/contract.d.ts +3 -3
- package/packages/client/types/components/panels/contract.d.ts +39 -0
- package/packages/client/types/components/panels/index.d.ts +54 -0
- package/packages/client/types/components/panels/machine.d.ts +151 -0
- package/packages/client/types/components/panels/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/radio/contract.d.ts +11 -11
- package/packages/client/types/components/radio/index.d.ts +19 -23
- package/packages/client/types/components/radio/machine.d.ts +40 -0
- package/packages/client/types/components/radio/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime.d.ts +16 -19
- package/packages/client/types/components/scroll-area/contract.d.ts +4 -7
- package/packages/client/types/components/scroll-area/index.d.ts +23 -49
- package/packages/client/types/components/scroll-area/machine.d.ts +21 -0
- package/packages/client/types/components/scroll-area/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/section/contract.d.ts +12 -13
- package/packages/client/types/components/select/contract.d.ts +19 -15
- package/packages/client/types/components/select/index.d.ts +42 -89
- package/packages/client/types/components/select/machine.d.ts +476 -0
- package/packages/client/types/components/select/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/shared/controlled-open.d.ts +11 -0
- package/packages/client/types/components/sidebar/contract.d.ts +19 -12
- package/packages/client/types/components/sidebar/index.d.ts +51 -88
- package/packages/client/types/components/sidebar/machine.d.ts +100 -0
- package/packages/client/types/components/sidebar/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/slider/contract.d.ts +3 -3
- package/packages/client/types/components/slider/index.d.ts +17 -21
- package/packages/client/types/components/slider/machine.d.ts +37 -0
- package/packages/client/types/components/slider/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/stack/contract.d.ts +16 -17
- package/packages/client/types/components/surface-manifest.d.ts +9 -0
- package/packages/client/types/components/switch/contract.d.ts +11 -11
- package/packages/client/types/components/switch/index.d.ts +13 -18
- package/packages/client/types/components/switch/machine.d.ts +19 -0
- package/packages/client/types/components/switch/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/table/contract.d.ts +18 -18
- package/packages/client/types/components/tabs/contract.d.ts +10 -5
- package/packages/client/types/components/tabs/index.d.ts +33 -51
- package/packages/client/types/components/tabs/machine.d.ts +84 -0
- package/packages/client/types/components/tabs/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/text/contract.d.ts +1 -1
- package/packages/client/types/components/textarea/contract.d.ts +2 -2
- package/packages/client/types/components/toast/contract.d.ts +5 -4
- package/packages/client/types/components/toast/index.d.ts +38 -12
- package/packages/client/types/components/toast/machine.d.ts +115 -0
- package/packages/client/types/components/toast/runtime-docs.d.ts +2 -0
- package/packages/client/types/directives/index.d.ts +3 -1
- package/packages/client/types/directives/layout.d.ts +3 -0
- package/packages/client/types/directives/request.d.ts +1 -2
- package/packages/client/types/directives/transition.d.ts +3 -0
- package/packages/client/types/docs/transition-docs.d.ts +30 -0
- package/packages/client/types/index.d.ts +8 -40
- package/packages/client/types/motion/animate.d.ts +5 -44
- package/packages/client/types/motion/controller.d.ts +33 -0
- package/packages/client/types/motion/index.d.ts +43 -20
- package/packages/client/types/motion/owned.d.ts +5 -0
- package/packages/client/types/motion/plan.d.ts +46 -0
- package/packages/client/types/motion/recipe.d.ts +56 -0
- package/packages/client/types/motion/registry.d.ts +12 -0
- package/packages/client/types/motion/resize.d.ts +15 -0
- package/packages/client/types/motion/subject.d.ts +10 -0
- package/packages/client/types/motion/targets.d.ts +2 -5
- package/packages/client/types/motion/view.d.ts +7 -2
- package/packages/client/types/runtime/alpine-machine.d.ts +68 -0
- package/packages/client/types/runtime/anchored-popover.d.ts +10 -2
- package/packages/client/types/runtime/codecs.d.ts +16 -2
- package/packages/client/types/runtime/{resizable.d.ts → drag-and-drop/index.d.ts} +4 -2
- package/packages/client/types/runtime/engine/request.d.ts +2 -2
- package/packages/client/types/runtime/engine/stream.d.ts +11 -5
- package/packages/client/types/runtime/focus-scope.d.ts +7 -0
- package/packages/client/types/runtime/identity.d.ts +3 -0
- package/packages/client/types/runtime/index.d.ts +9 -75
- package/packages/client/types/runtime/merge-bindings.d.ts +1 -1
- package/packages/client/types/runtime/semantic-observer.d.ts +10 -0
- package/packages/client/types/runtime/state-machine/index.d.ts +4 -0
- package/packages/client/types/runtime/state-machine/machine.d.ts +83 -0
- package/packages/client/types/runtime/state-machine/props-change.d.ts +12 -0
- package/packages/client/types/runtime/transition-coordinator.d.ts +52 -0
- package/packages/client/types/runtime/ui.d.ts +15 -0
- package/packages/client/types/utils/index.d.ts +2 -1
- package/packages/client/types/utils/number.d.ts +2 -0
- package/packages/client/types/utils/object.d.ts +4 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +9097 -2595
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +17313 -13281
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +8 -15
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +8 -15
- package/packages/client/types/bindings/disclosure.d.ts +0 -3
- package/packages/client/types/bindings/index.d.ts +0 -7
- package/packages/client/types/bindings/motion.d.ts +0 -3
- package/packages/client/types/bindings/state.d.ts +0 -3
- package/packages/client/types/bindings/types.d.ts +0 -33
- package/packages/client/types/components/combobox/contract.d.ts +0 -60
- package/packages/client/types/components/combobox/index.d.ts +0 -80
- package/packages/client/types/components/textarea/index.d.ts +0 -13
- package/packages/client/types/motion/presence.d.ts +0 -34
- package/packages/client/types/runtime/class-name.d.ts +0 -9
- package/packages/client/types/runtime/create.d.ts +0 -8
- package/packages/client/types/runtime/machine.d.ts +0 -55
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js +0 -1134
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js.map +0 -1
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
import { type Machine, type MachineScope } from '../../runtime/state-machine';
|
|
2
|
+
import type { DatePickerProps } from './contract';
|
|
3
|
+
type SelectionSource = 'calendar' | 'input' | 'preset' | 'today' | 'clear' | 'props';
|
|
4
|
+
type DatePickerContext = {
|
|
5
|
+
selection: {
|
|
6
|
+
value: string;
|
|
7
|
+
pendingValue: string;
|
|
8
|
+
previousValue: string;
|
|
9
|
+
source: SelectionSource;
|
|
10
|
+
};
|
|
11
|
+
input: {
|
|
12
|
+
value: string;
|
|
13
|
+
valid: boolean;
|
|
14
|
+
};
|
|
15
|
+
preset: {
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type DatePickerMachineEffects = {
|
|
20
|
+
prepareOpen(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
21
|
+
finishOpen(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
22
|
+
prepareClose(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
23
|
+
finishClose(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
24
|
+
syncInput(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
25
|
+
syncPending(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
26
|
+
markInvalid(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
27
|
+
commitSelection(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
28
|
+
syncProps(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
29
|
+
syncPresets(scope: MachineScope<DatePickerContext, DatePickerProps>): void;
|
|
30
|
+
};
|
|
31
|
+
type CreateDatePickerMachineOptions = {
|
|
32
|
+
props: DatePickerProps;
|
|
33
|
+
context: DatePickerContext;
|
|
34
|
+
effects: DatePickerMachineEffects;
|
|
35
|
+
};
|
|
36
|
+
declare const datePickerHooks: readonly [Readonly<{
|
|
37
|
+
name: "opening";
|
|
38
|
+
state: string;
|
|
39
|
+
onDone: string;
|
|
40
|
+
onError: string;
|
|
41
|
+
required?: boolean;
|
|
42
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
43
|
+
project?: (snapshot: Readonly<{
|
|
44
|
+
value: import("../..").MachineStateValue;
|
|
45
|
+
tags: readonly string[];
|
|
46
|
+
context: Readonly<DatePickerContext>;
|
|
47
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
48
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
49
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
50
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
51
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
52
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
53
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
54
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
55
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
56
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
57
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
58
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
59
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
60
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
61
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
62
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
63
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
64
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
65
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
66
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
67
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
68
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
69
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
70
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
71
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
72
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
73
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
74
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
75
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
76
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
77
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
78
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
79
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
80
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
81
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
82
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
83
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
84
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
85
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
86
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
87
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
88
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
89
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
90
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
91
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
92
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
93
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
94
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
95
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
96
|
+
}>>;
|
|
97
|
+
generations: Readonly<Record<string, number>>;
|
|
98
|
+
}>) => Record<string, never>;
|
|
99
|
+
projectEach?: (snapshot: Readonly<{
|
|
100
|
+
value: import("../..").MachineStateValue;
|
|
101
|
+
tags: readonly string[];
|
|
102
|
+
context: Readonly<DatePickerContext>;
|
|
103
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
104
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
105
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
106
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
107
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
108
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
109
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
110
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
111
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
112
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
113
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
114
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
115
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
116
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
117
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
118
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
119
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
120
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
121
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
122
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
123
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
124
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
125
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
126
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
127
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
128
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
129
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
130
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
131
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
132
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
133
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
134
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
135
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
136
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
137
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
138
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
139
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
140
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
141
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
142
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
143
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
144
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
145
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
146
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
147
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
148
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
149
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
150
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
151
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
152
|
+
}>>;
|
|
153
|
+
generations: Readonly<Record<string, number>>;
|
|
154
|
+
}>) => readonly Record<string, never>[];
|
|
155
|
+
}>, Readonly<{
|
|
156
|
+
name: "closing";
|
|
157
|
+
state: string;
|
|
158
|
+
onDone: string;
|
|
159
|
+
onError: string;
|
|
160
|
+
required?: boolean;
|
|
161
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
162
|
+
project?: (snapshot: Readonly<{
|
|
163
|
+
value: import("../..").MachineStateValue;
|
|
164
|
+
tags: readonly string[];
|
|
165
|
+
context: Readonly<DatePickerContext>;
|
|
166
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
167
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
168
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
169
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
170
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
171
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
172
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
173
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
174
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
175
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
176
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
177
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
178
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
179
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
180
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
181
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
182
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
183
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
184
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
185
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
186
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
187
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
188
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
189
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
190
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
191
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
192
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
193
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
194
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
195
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
196
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
197
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
198
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
199
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
200
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
201
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
202
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
203
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
204
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
205
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
206
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
207
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
208
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
209
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
210
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
211
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
212
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
213
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
214
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
215
|
+
}>>;
|
|
216
|
+
generations: Readonly<Record<string, number>>;
|
|
217
|
+
}>) => Record<string, never>;
|
|
218
|
+
projectEach?: (snapshot: Readonly<{
|
|
219
|
+
value: import("../..").MachineStateValue;
|
|
220
|
+
tags: readonly string[];
|
|
221
|
+
context: Readonly<DatePickerContext>;
|
|
222
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
223
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
224
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
225
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
226
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
227
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
228
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
229
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
230
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
231
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
232
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
233
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
234
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
235
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
236
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
237
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
238
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
239
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
240
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
241
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
242
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
243
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
244
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
245
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
246
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
247
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
248
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
249
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
250
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
251
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
252
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
253
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
254
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
255
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
256
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
257
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
258
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
259
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
260
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
261
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
262
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
263
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
264
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
265
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
266
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
267
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
268
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
269
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
270
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
271
|
+
}>>;
|
|
272
|
+
generations: Readonly<Record<string, number>>;
|
|
273
|
+
}>) => readonly Record<string, never>[];
|
|
274
|
+
}>, Readonly<{
|
|
275
|
+
name: "parsing";
|
|
276
|
+
state: string;
|
|
277
|
+
onDone: string;
|
|
278
|
+
onError: string;
|
|
279
|
+
required?: boolean;
|
|
280
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
281
|
+
project?: (snapshot: Readonly<{
|
|
282
|
+
value: import("../..").MachineStateValue;
|
|
283
|
+
tags: readonly string[];
|
|
284
|
+
context: Readonly<DatePickerContext>;
|
|
285
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
286
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
287
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
288
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
289
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
290
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
291
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
292
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
293
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
294
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
295
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
296
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
297
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
298
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
299
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
300
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
301
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
302
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
303
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
304
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
305
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
306
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
307
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
308
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
309
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
310
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
311
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
312
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
313
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
314
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
315
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
316
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
317
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
318
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
319
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
320
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
321
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
322
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
323
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
324
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
325
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
326
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
327
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
328
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
329
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
330
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
331
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
332
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
333
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
334
|
+
}>>;
|
|
335
|
+
generations: Readonly<Record<string, number>>;
|
|
336
|
+
}>) => {
|
|
337
|
+
input: string;
|
|
338
|
+
};
|
|
339
|
+
projectEach?: (snapshot: Readonly<{
|
|
340
|
+
value: import("../..").MachineStateValue;
|
|
341
|
+
tags: readonly string[];
|
|
342
|
+
context: Readonly<DatePickerContext>;
|
|
343
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
344
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
345
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
346
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
347
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
348
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
349
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
350
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
351
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
352
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
353
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
354
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
355
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
356
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
357
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
358
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
359
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
360
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
361
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
362
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
363
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
364
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
365
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
366
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
367
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
368
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
369
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
370
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
371
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
372
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
373
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
374
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
375
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
376
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
377
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
378
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
379
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
380
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
381
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
382
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
383
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
384
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
385
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
386
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
387
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
388
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
389
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
390
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
391
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
392
|
+
}>>;
|
|
393
|
+
generations: Readonly<Record<string, number>>;
|
|
394
|
+
}>) => readonly {
|
|
395
|
+
input: string;
|
|
396
|
+
}[];
|
|
397
|
+
}>, Readonly<{
|
|
398
|
+
name: "selecting";
|
|
399
|
+
state: string;
|
|
400
|
+
onDone: string;
|
|
401
|
+
onError: string;
|
|
402
|
+
required?: boolean;
|
|
403
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
404
|
+
project?: (snapshot: Readonly<{
|
|
405
|
+
value: import("../..").MachineStateValue;
|
|
406
|
+
tags: readonly string[];
|
|
407
|
+
context: Readonly<DatePickerContext>;
|
|
408
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
409
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
410
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
411
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
412
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
413
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
414
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
415
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
416
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
417
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
418
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
419
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
420
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
421
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
422
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
423
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
424
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
425
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
426
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
427
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
428
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
429
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
430
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
431
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
432
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
433
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
434
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
435
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
436
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
437
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
438
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
439
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
440
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
441
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
442
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
443
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
444
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
445
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
446
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
447
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
448
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
449
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
450
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
451
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
452
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
453
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
454
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
455
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
456
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
457
|
+
}>>;
|
|
458
|
+
generations: Readonly<Record<string, number>>;
|
|
459
|
+
}>) => {
|
|
460
|
+
value: string;
|
|
461
|
+
previousValue: string;
|
|
462
|
+
source: SelectionSource;
|
|
463
|
+
preset: string;
|
|
464
|
+
};
|
|
465
|
+
projectEach?: (snapshot: Readonly<{
|
|
466
|
+
value: import("../..").MachineStateValue;
|
|
467
|
+
tags: readonly string[];
|
|
468
|
+
context: Readonly<DatePickerContext>;
|
|
469
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
470
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
471
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
472
|
+
startName: import("../../runtime/codecs").StringCodec;
|
|
473
|
+
endName: import("../../runtime/codecs").StringCodec;
|
|
474
|
+
mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
|
|
475
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
476
|
+
min: import("../../runtime/codecs").StringCodec;
|
|
477
|
+
max: import("../../runtime/codecs").StringCodec;
|
|
478
|
+
today: import("../../runtime/codecs").StringCodec;
|
|
479
|
+
openTo: import("../../runtime/codecs").StringCodec;
|
|
480
|
+
forceOpenTo: import("../../runtime/codecs").BoolCodec;
|
|
481
|
+
months: import("../../runtime/codecs").NumberCodec;
|
|
482
|
+
firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
|
|
483
|
+
locale: import("../../runtime/codecs").StringCodec;
|
|
484
|
+
format: import("../../runtime/codecs").StringCodec;
|
|
485
|
+
rangeSeparator: import("../../runtime/codecs").StringCodec;
|
|
486
|
+
showOutsideDays: import("../../runtime/codecs").BoolCodec;
|
|
487
|
+
showWeekNumbers: import("../../runtime/codecs").BoolCodec;
|
|
488
|
+
fixedWeeks: import("../../runtime/codecs").BoolCodec;
|
|
489
|
+
selectableHeader: import("../../runtime/codecs").BoolCodec;
|
|
490
|
+
withToday: import("../../runtime/codecs").BoolCodec;
|
|
491
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
492
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
493
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
494
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
495
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
496
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
497
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
498
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
499
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
500
|
+
variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
|
|
501
|
+
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
502
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
503
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
504
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
505
|
+
close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
|
|
506
|
+
presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
|
|
507
|
+
presetsPosition: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
508
|
+
preset: import("../../runtime/codecs").StringCodec;
|
|
509
|
+
presetName: import("../../runtime/codecs").StringCodec;
|
|
510
|
+
triggerClass: import("../../runtime/codecs").StringCodec;
|
|
511
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
512
|
+
popoverClass: import("../../runtime/codecs").StringCodec;
|
|
513
|
+
calendarClass: import("../../runtime/codecs").StringCodec;
|
|
514
|
+
presetsClass: import("../../runtime/codecs").StringCodec;
|
|
515
|
+
presetClass: import("../../runtime/codecs").StringCodec;
|
|
516
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
517
|
+
form: import("../../runtime/codecs").StringCodec;
|
|
518
|
+
}>>;
|
|
519
|
+
generations: Readonly<Record<string, number>>;
|
|
520
|
+
}>) => readonly {
|
|
521
|
+
value: string;
|
|
522
|
+
previousValue: string;
|
|
523
|
+
source: SelectionSource;
|
|
524
|
+
preset: string;
|
|
525
|
+
}[];
|
|
526
|
+
}>];
|
|
527
|
+
declare const createDatePickerMachine: ({ props, context, effects, }: CreateDatePickerMachineOptions) => Machine<DatePickerContext, DatePickerProps>;
|
|
528
|
+
export { createDatePickerMachine, datePickerHooks };
|
|
529
|
+
export type { CreateDatePickerMachineOptions, DatePickerContext, DatePickerMachineEffects, SelectionSource, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const ISO_DATE: RegExp;
|
|
2
|
+
declare const ISO_RANGE: RegExp;
|
|
3
|
+
declare const parseDateValue: ({ input, format, range, separator, }: {
|
|
4
|
+
input: string;
|
|
5
|
+
format: string;
|
|
6
|
+
range: boolean;
|
|
7
|
+
separator: string;
|
|
8
|
+
}) => string | null;
|
|
9
|
+
declare const formatDatePlaceholder: (format: string) => string;
|
|
10
|
+
declare const sanitizeDateInput: ({ input, format, separator, }: {
|
|
11
|
+
input: string;
|
|
12
|
+
format: string;
|
|
13
|
+
separator: string;
|
|
14
|
+
}) => string;
|
|
15
|
+
declare const maskDateInput: ({ input, format, range, separator, }: {
|
|
16
|
+
input: string;
|
|
17
|
+
format: string;
|
|
18
|
+
range: boolean;
|
|
19
|
+
separator: string;
|
|
20
|
+
}) => string;
|
|
21
|
+
declare const formatDateValue: ({ value, format, range, separator, }: {
|
|
22
|
+
value: string;
|
|
23
|
+
format: string;
|
|
24
|
+
range: boolean;
|
|
25
|
+
separator: string;
|
|
26
|
+
}) => string;
|
|
27
|
+
declare const withinDateBounds: (value: string, min: string, max: string) => boolean;
|
|
28
|
+
export { formatDatePlaceholder, formatDateValue, ISO_DATE, ISO_RANGE, maskDateInput, parseDateValue, sanitizeDateInput, withinDateBounds, };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
2
|
import { type Alignment, type Position } from '../common';
|
|
3
3
|
declare const DROPDOWN_SIDES: readonly ["bottom", "top", "left", "right"];
|
|
4
4
|
declare const DROPDOWN_ALIGNS: readonly ["start", "center", "end"];
|
|
5
5
|
type DropdownSide = Position;
|
|
6
6
|
type DropdownAlign = Alignment;
|
|
7
7
|
declare const dropdownSchema: {
|
|
8
|
-
side: import("../../runtime/codecs").OneOfCodec<"
|
|
9
|
-
align: import("../../runtime/codecs").OneOfCodec<"
|
|
8
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
9
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
10
10
|
offset: import("../../runtime/codecs").NumberCodec;
|
|
11
11
|
gap: import("../../runtime/codecs").NumberCodec;
|
|
12
12
|
open: import("../../runtime/codecs").BoolCodec;
|
|
13
13
|
disabled: import("../../runtime/codecs").BoolCodec;
|
|
14
14
|
class: import("../../runtime/codecs").StringCodec;
|
|
15
15
|
};
|
|
16
|
-
type DropdownProps =
|
|
16
|
+
type DropdownProps = SchemaToProps<typeof dropdownSchema>;
|
|
17
17
|
export { DROPDOWN_ALIGNS, DROPDOWN_SIDES, dropdownSchema, };
|
|
18
18
|
export type { DropdownAlign, DropdownSide, DropdownProps };
|