@temp-spotwork/ui 1.4.7 → 1.4.8
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/components/atoms/avatar/Avatar.stories.js +1 -1
- package/dist/components/atoms/badge/badge.stories.js +1 -1
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +1 -1
- package/dist/components/atoms/form/chips/chips.stories.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +1 -1
- package/dist/components/atoms/form/stepper/Stepper.stories.js +1 -1
- package/dist/components/atoms/form/textarea/Textarea.stories.js +1 -1
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.d.ts +5 -0
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +78 -59
- package/dist/components/atoms/form/time-picker/time-picker-input.d.ts +9 -0
- package/dist/components/atoms/form/time-picker/time-picker-input.js +39 -36
- package/dist/components/atoms/form/time-picker/time-picker.d.ts +16 -0
- package/dist/components/atoms/form/time-picker/time-picker.js +39 -33
- package/dist/components/atoms/form/time-picker/time-picker.stories.d.ts +7 -0
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +197 -87
- package/dist/components/atoms/icons/icons.stories.js +1 -1
- package/dist/components/atoms/message/message.stories.js +1 -1
- package/dist/components/atoms/tab/Tab.stories.js +1 -1
- package/dist/components/molecules/button/Button.stories.js +1 -1
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +1 -1
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +1 -1
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +1 -1
- package/dist/components/molecules/datatables/cell/Cell.stories.js +1 -1
- package/dist/components/molecules/datatables/row/Row.stories.js +1 -1
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +1 -1
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +1 -1
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +1 -1
- package/dist/components/molecules/dialog/dialog.d.ts +4 -1
- package/dist/components/molecules/dialog/dialog.js +20 -17
- package/dist/components/molecules/dialog/dialog.stories.d.ts +9 -0
- package/dist/components/molecules/dialog/dialog.stories.js +57 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.d.ts +4 -0
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +64 -11
- package/dist/components/molecules/filter/date-selector/date-selector.d.ts +6 -1
- package/dist/components/molecules/filter/date-selector/date-selector.js +75 -68
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +1 -1
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +1 -1
- package/dist/components/molecules/link/Link.stories.js +1 -1
- package/dist/components/molecules/navigation/header/Header.stories.js +1 -1
- package/dist/components/molecules/notifications/content/Content.stories.js +1 -1
- package/dist/components/molecules/tab-group/tabgroup.stories.js +1 -1
- package/dist/{index-DfdAzObv.js → index-CktvVE7I.js} +4 -1
- package/package.json +1 -1
|
@@ -28,3 +28,10 @@ export declare const MidnightMinus1Hour: Story;
|
|
|
28
28
|
export declare const MidnightMinus1HourAnd18HoursMaxUpperBound: Story;
|
|
29
29
|
export declare const Noon: Story;
|
|
30
30
|
export declare const FifteenMinutesStep: Story;
|
|
31
|
+
export declare const CustomInputHeight: Story;
|
|
32
|
+
export declare const WithoutIcon: Story;
|
|
33
|
+
export declare const WithCustomIcon: Story;
|
|
34
|
+
export declare const DropdownOpensBottom: Story;
|
|
35
|
+
export declare const DropdownOpensTop: Story;
|
|
36
|
+
export declare const DropdownOpensLeft: Story;
|
|
37
|
+
export declare const DropdownOpensRight: Story;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { TimePicker as
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import { TimePicker as m } from "./time-picker.js";
|
|
4
4
|
import { m as t } from "../../../../index-CYyrKZeH.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */ o("div", { className: "text-sm text-gray-
|
|
11
|
-
|
|
5
|
+
import { w as i, e as s, u as c } from "../../../../index-CktvVE7I.js";
|
|
6
|
+
const n = (e) => {
|
|
7
|
+
const [r, a] = d(e.value || /* @__PURE__ */ new Date());
|
|
8
|
+
return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ l("div", { className: "mt-4 p-3 bg-gray-100 rounded-md", children: [
|
|
10
|
+
/* @__PURE__ */ o("div", { className: "text-sm font-medium text-gray-700", children: "Selected Value:" }),
|
|
11
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-gray-600", children: [
|
|
12
|
+
/* @__PURE__ */ l("div", { children: [
|
|
12
13
|
"Date: ",
|
|
13
|
-
t(
|
|
14
|
+
t(r).format("MMMM Do, YYYY")
|
|
14
15
|
] }),
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ l("div", { children: [
|
|
16
17
|
"Time: ",
|
|
17
|
-
t(
|
|
18
|
+
t(r).format("h:mm A")
|
|
18
19
|
] }),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ l("div", { children: [
|
|
20
21
|
"ISO: ",
|
|
21
|
-
|
|
22
|
+
r.toLocaleString()
|
|
22
23
|
] })
|
|
23
24
|
] })
|
|
24
25
|
] }),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ o(m, { ...e, value: r, selectValue: a })
|
|
26
27
|
] });
|
|
27
|
-
},
|
|
28
|
+
}, y = {
|
|
28
29
|
title: "@spotwork-ui/atoms/form/TimePicker",
|
|
29
|
-
component:
|
|
30
|
+
component: m,
|
|
30
31
|
parameters: {
|
|
31
32
|
layout: "centered",
|
|
32
33
|
docs: {
|
|
@@ -99,6 +100,19 @@ const i = (e) => {
|
|
|
99
100
|
control: "text",
|
|
100
101
|
description: "Optional className to apply to the time picker container"
|
|
101
102
|
},
|
|
103
|
+
inputHeight: {
|
|
104
|
+
control: "text",
|
|
105
|
+
description: "Optional height for the time picker input button"
|
|
106
|
+
},
|
|
107
|
+
icon: {
|
|
108
|
+
control: "text",
|
|
109
|
+
description: "Optional icon key rendered at right side of input"
|
|
110
|
+
},
|
|
111
|
+
dropdownPlacement: {
|
|
112
|
+
control: "select",
|
|
113
|
+
options: ["top", "bottom", "left", "right"],
|
|
114
|
+
description: "Controls where the dropdown opens relative to the input"
|
|
115
|
+
},
|
|
102
116
|
selectValue: {
|
|
103
117
|
action: "time selected",
|
|
104
118
|
description: "Callback function to update the selected time"
|
|
@@ -114,36 +128,36 @@ const i = (e) => {
|
|
|
114
128
|
daySeparatorFormat: "literal",
|
|
115
129
|
notRenderTimeDifference: !1
|
|
116
130
|
}
|
|
117
|
-
},
|
|
118
|
-
render: (e) => /* @__PURE__ */
|
|
131
|
+
}, w = {
|
|
132
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
119
133
|
args: {
|
|
120
134
|
label: "Select Time",
|
|
121
135
|
helperText: "Choose your preferred time",
|
|
122
136
|
step: 15
|
|
123
137
|
}
|
|
124
|
-
},
|
|
125
|
-
render: (e) => /* @__PURE__ */
|
|
138
|
+
}, D = {
|
|
139
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
126
140
|
args: {
|
|
127
141
|
value: t().hours(14).minutes(30).toDate()
|
|
128
142
|
// 2:30 PM
|
|
129
143
|
}
|
|
130
|
-
},
|
|
131
|
-
render: (e) => /* @__PURE__ */
|
|
144
|
+
}, f = {
|
|
145
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
132
146
|
args: {
|
|
133
147
|
label: "Meeting Time",
|
|
134
148
|
value: t().hours(9).minutes(0).toDate()
|
|
135
149
|
// 9:00 AM
|
|
136
150
|
}
|
|
137
|
-
},
|
|
138
|
-
render: (e) => /* @__PURE__ */
|
|
151
|
+
}, v = {
|
|
152
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
139
153
|
args: {
|
|
140
154
|
label: "Appointment Time",
|
|
141
155
|
helperText: "Please select a time between 9 AM and 5 PM",
|
|
142
156
|
value: t().hours(10).minutes(15).toDate()
|
|
143
157
|
// 10:15 AM
|
|
144
158
|
}
|
|
145
|
-
},
|
|
146
|
-
render: (e) => /* @__PURE__ */
|
|
159
|
+
}, x = {
|
|
160
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
147
161
|
args: {
|
|
148
162
|
label: "Time Selection",
|
|
149
163
|
helperText: "Please select a valid time",
|
|
@@ -151,8 +165,8 @@ const i = (e) => {
|
|
|
151
165
|
value: t().hours(16).minutes(45).toDate()
|
|
152
166
|
// 4:45 PM
|
|
153
167
|
}
|
|
154
|
-
},
|
|
155
|
-
render: (e) => /* @__PURE__ */
|
|
168
|
+
}, S = {
|
|
169
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
156
170
|
args: {
|
|
157
171
|
label: "Time Selection",
|
|
158
172
|
helperText: "This time is outside business hours",
|
|
@@ -160,8 +174,8 @@ const i = (e) => {
|
|
|
160
174
|
value: t().hours(20).minutes(30).toDate()
|
|
161
175
|
// 8:30 PM
|
|
162
176
|
}
|
|
163
|
-
},
|
|
164
|
-
render: (e) => /* @__PURE__ */
|
|
177
|
+
}, k = {
|
|
178
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
165
179
|
args: {
|
|
166
180
|
label: "Time Selection",
|
|
167
181
|
helperText: "This field is currently disabled",
|
|
@@ -169,8 +183,8 @@ const i = (e) => {
|
|
|
169
183
|
value: t().hours(12).minutes(0).toDate()
|
|
170
184
|
// 12:00 PM
|
|
171
185
|
}
|
|
172
|
-
},
|
|
173
|
-
render: (e) => /* @__PURE__ */
|
|
186
|
+
}, C = {
|
|
187
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
174
188
|
args: {
|
|
175
189
|
label: "Time with 15-minute intervals",
|
|
176
190
|
helperText: "Select time in 15-minute increments",
|
|
@@ -178,8 +192,8 @@ const i = (e) => {
|
|
|
178
192
|
value: t().hours(13).minutes(0).toDate()
|
|
179
193
|
// 1:00 PM
|
|
180
194
|
}
|
|
181
|
-
},
|
|
182
|
-
render: (e) => /* @__PURE__ */
|
|
195
|
+
}, M = {
|
|
196
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
183
197
|
args: {
|
|
184
198
|
label: "Business Hours",
|
|
185
199
|
helperText: "Select time between 9 AM and 5 PM",
|
|
@@ -190,8 +204,8 @@ const i = (e) => {
|
|
|
190
204
|
value: t().hours(14).minutes(30).toDate()
|
|
191
205
|
// 2:30 PM
|
|
192
206
|
}
|
|
193
|
-
},
|
|
194
|
-
render: (e) => /* @__PURE__ */
|
|
207
|
+
}, B = {
|
|
208
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
195
209
|
args: {
|
|
196
210
|
label: "Central (Chicago) Time",
|
|
197
211
|
helperText: "All times are in Central Time",
|
|
@@ -199,8 +213,8 @@ const i = (e) => {
|
|
|
199
213
|
value: t().hours(15).minutes(0).toDate()
|
|
200
214
|
// 3:00 PM
|
|
201
215
|
}
|
|
202
|
-
},
|
|
203
|
-
render: (e) => /* @__PURE__ */
|
|
216
|
+
}, A = {
|
|
217
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
204
218
|
args: {
|
|
205
219
|
label: "Time Relative to Today",
|
|
206
220
|
helperText: "Shows time difference from current time",
|
|
@@ -208,8 +222,8 @@ const i = (e) => {
|
|
|
208
222
|
value: t().add(1, "days").hours(16).minutes(30).toDate()
|
|
209
223
|
// Tomorrow 4:30 PM
|
|
210
224
|
}
|
|
211
|
-
},
|
|
212
|
-
render: (e) => /* @__PURE__ */
|
|
225
|
+
}, N = {
|
|
226
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
213
227
|
args: {
|
|
214
228
|
label: "Multi-day Time Selection",
|
|
215
229
|
helperText: "Shows actual dates for day separators",
|
|
@@ -219,8 +233,8 @@ const i = (e) => {
|
|
|
219
233
|
value: t().hours(12).minutes(0).toDate()
|
|
220
234
|
// 12:00 PM
|
|
221
235
|
}
|
|
222
|
-
},
|
|
223
|
-
render: (e) => /* @__PURE__ */
|
|
236
|
+
}, P = {
|
|
237
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
224
238
|
args: {
|
|
225
239
|
label: "Simple Time Selection",
|
|
226
240
|
helperText: "No relative time display",
|
|
@@ -229,8 +243,8 @@ const i = (e) => {
|
|
|
229
243
|
value: t().add(1, "days").hours(10).minutes(15).toDate()
|
|
230
244
|
// Tomorrow 10:15 AM
|
|
231
245
|
}
|
|
232
|
-
},
|
|
233
|
-
render: (e) => /* @__PURE__ */
|
|
246
|
+
}, I = {
|
|
247
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
234
248
|
args: {
|
|
235
249
|
label: "Auto-focused Time Picker",
|
|
236
250
|
helperText: "This field will be focused automatically",
|
|
@@ -238,8 +252,8 @@ const i = (e) => {
|
|
|
238
252
|
value: t().hours(11).minutes(0).toDate()
|
|
239
253
|
// 11:00 AM
|
|
240
254
|
}
|
|
241
|
-
},
|
|
242
|
-
render: (e) => /* @__PURE__ */
|
|
255
|
+
}, O = {
|
|
256
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
243
257
|
args: {
|
|
244
258
|
label: "Custom Styled Time Picker",
|
|
245
259
|
helperText: "This has custom container styling",
|
|
@@ -247,24 +261,24 @@ const i = (e) => {
|
|
|
247
261
|
value: t().hours(13).minutes(45).toDate()
|
|
248
262
|
// 1:45 PM
|
|
249
263
|
}
|
|
250
|
-
},
|
|
251
|
-
render: (e) => /* @__PURE__ */
|
|
264
|
+
}, R = {
|
|
265
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
252
266
|
args: {
|
|
253
267
|
label: "Early Morning Time",
|
|
254
268
|
helperText: "Select an early morning time",
|
|
255
269
|
value: t().hours(6).minutes(0).toDate()
|
|
256
270
|
// 6:00 AM
|
|
257
271
|
}
|
|
258
|
-
},
|
|
259
|
-
render: (e) => /* @__PURE__ */
|
|
272
|
+
}, W = {
|
|
273
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
260
274
|
args: {
|
|
261
275
|
label: "Late Evening Time",
|
|
262
276
|
helperText: "Select a late evening time",
|
|
263
277
|
value: t().hours(22).minutes(30).toDate()
|
|
264
278
|
// 10:30 PM
|
|
265
279
|
}
|
|
266
|
-
},
|
|
267
|
-
render: (e) => /* @__PURE__ */
|
|
280
|
+
}, H = {
|
|
281
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
268
282
|
args: {
|
|
269
283
|
label: "Early Morning Time",
|
|
270
284
|
helperText: "Select a early morning time",
|
|
@@ -276,7 +290,7 @@ const i = (e) => {
|
|
|
276
290
|
step: 15
|
|
277
291
|
}
|
|
278
292
|
}, z = {
|
|
279
|
-
render: (e) => /* @__PURE__ */
|
|
293
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
280
294
|
args: {
|
|
281
295
|
label: "Midnight Time in Vancouver",
|
|
282
296
|
helperText: "Select midnight",
|
|
@@ -288,7 +302,7 @@ const i = (e) => {
|
|
|
288
302
|
timezone: "America/Vancouver"
|
|
289
303
|
}
|
|
290
304
|
}, V = {
|
|
291
|
-
render: (e) => /* @__PURE__ */
|
|
305
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
292
306
|
args: {
|
|
293
307
|
label: "Midnight Time + 1 hour",
|
|
294
308
|
helperText: "Select midnight + 1 hour",
|
|
@@ -298,8 +312,8 @@ const i = (e) => {
|
|
|
298
312
|
max: t().hours(1).minutes(0).add(6, "hours").toDate(),
|
|
299
313
|
step: 15
|
|
300
314
|
}
|
|
301
|
-
},
|
|
302
|
-
render: (e) => /* @__PURE__ */
|
|
315
|
+
}, F = {
|
|
316
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
303
317
|
args: {
|
|
304
318
|
label: "Midnight Time - 1 hour",
|
|
305
319
|
helperText: "Select midnight - 1 hour",
|
|
@@ -309,8 +323,8 @@ const i = (e) => {
|
|
|
309
323
|
max: t().hours(23).minutes(0).add(6, "hours").toDate(),
|
|
310
324
|
step: 15
|
|
311
325
|
}
|
|
312
|
-
},
|
|
313
|
-
render: (e) => /* @__PURE__ */
|
|
326
|
+
}, L = {
|
|
327
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
314
328
|
args: {
|
|
315
329
|
label: "Midnight Time - 1 hour",
|
|
316
330
|
helperText: "Select midnight - 1 hour",
|
|
@@ -320,16 +334,16 @@ const i = (e) => {
|
|
|
320
334
|
max: t().hours(23).minutes(0).add(18, "hours").toDate(),
|
|
321
335
|
step: 15
|
|
322
336
|
}
|
|
323
|
-
},
|
|
324
|
-
render: (e) => /* @__PURE__ */
|
|
337
|
+
}, Y = {
|
|
338
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
325
339
|
args: {
|
|
326
340
|
label: "Noon Time",
|
|
327
341
|
helperText: "Select noon",
|
|
328
342
|
value: t().hours(12).minutes(0).toDate()
|
|
329
343
|
// 12:00 PM
|
|
330
344
|
}
|
|
331
|
-
},
|
|
332
|
-
render: (e) => /* @__PURE__ */
|
|
345
|
+
}, E = {
|
|
346
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
333
347
|
args: {
|
|
334
348
|
label: "Fifteen Minutes Step",
|
|
335
349
|
helperText: "Select a time in 15 minute increments",
|
|
@@ -338,31 +352,127 @@ const i = (e) => {
|
|
|
338
352
|
max: t().add(3, "hours").toDate(),
|
|
339
353
|
step: 15
|
|
340
354
|
}
|
|
355
|
+
}, j = {
|
|
356
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
357
|
+
args: {
|
|
358
|
+
label: "Height Test",
|
|
359
|
+
helperText: "Input should be taller than default",
|
|
360
|
+
inputHeight: "5rem"
|
|
361
|
+
},
|
|
362
|
+
play: async ({ canvasElement: e }) => {
|
|
363
|
+
const a = i(e).getByRole("button", { name: /height test/i });
|
|
364
|
+
await s(a).toHaveStyle({ height: "5rem" });
|
|
365
|
+
}
|
|
366
|
+
}, q = {
|
|
367
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e, icon: void 0 }),
|
|
368
|
+
args: {
|
|
369
|
+
label: "No Icon",
|
|
370
|
+
helperText: "No icon should render on the right side"
|
|
371
|
+
},
|
|
372
|
+
play: async ({ canvasElement: e }) => {
|
|
373
|
+
const r = i(e);
|
|
374
|
+
await c.click(r.getByRole("button", { name: /no icon/i }));
|
|
375
|
+
const a = i(e.ownerDocument.body).queryByTestId("icon-No Icon-clock");
|
|
376
|
+
await s(a).toBeNull();
|
|
377
|
+
},
|
|
378
|
+
parameters: {
|
|
379
|
+
controls: {
|
|
380
|
+
exclude: ["icon"]
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}, U = {
|
|
384
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
385
|
+
args: {
|
|
386
|
+
label: "Custom Icon",
|
|
387
|
+
helperText: "Uses chevron down instead of clock",
|
|
388
|
+
icon: "ChevronDown"
|
|
389
|
+
},
|
|
390
|
+
play: async ({ canvasElement: e }) => {
|
|
391
|
+
const a = i(e).getByRole("button", { name: /custom icon/i });
|
|
392
|
+
await c.click(a);
|
|
393
|
+
const u = i(e.ownerDocument.body).queryByTestId("icon-Custom Icon-clock");
|
|
394
|
+
await s(u).not.toBeNull();
|
|
395
|
+
}
|
|
396
|
+
}, _ = {
|
|
397
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
398
|
+
args: {
|
|
399
|
+
label: "Bottom Placement",
|
|
400
|
+
dropdownPlacement: "bottom"
|
|
401
|
+
},
|
|
402
|
+
play: async ({ canvasElement: e }) => {
|
|
403
|
+
const r = i(e);
|
|
404
|
+
await c.click(r.getByRole("button", { name: /bottom placement/i }));
|
|
405
|
+
const a = i(e.ownerDocument.body).getByTestId("time-picker-dropdown");
|
|
406
|
+
await s(a.className).toContain("top-full");
|
|
407
|
+
}
|
|
408
|
+
}, G = {
|
|
409
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
410
|
+
args: {
|
|
411
|
+
label: "Top Placement",
|
|
412
|
+
dropdownPlacement: "top"
|
|
413
|
+
},
|
|
414
|
+
play: async ({ canvasElement: e }) => {
|
|
415
|
+
const r = i(e);
|
|
416
|
+
await c.click(r.getByRole("button", { name: /top placement/i }));
|
|
417
|
+
const a = i(e.ownerDocument.body).getByTestId("time-picker-dropdown");
|
|
418
|
+
await s(a.className).toContain("bottom-full");
|
|
419
|
+
}
|
|
420
|
+
}, J = {
|
|
421
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
422
|
+
args: {
|
|
423
|
+
label: "Left Placement",
|
|
424
|
+
dropdownPlacement: "left"
|
|
425
|
+
},
|
|
426
|
+
play: async ({ canvasElement: e }) => {
|
|
427
|
+
const r = i(e);
|
|
428
|
+
await c.click(r.getByRole("button", { name: /left placement/i }));
|
|
429
|
+
const a = i(e.ownerDocument.body).getByTestId("time-picker-dropdown");
|
|
430
|
+
await s(a.className).toContain("right-full");
|
|
431
|
+
}
|
|
432
|
+
}, K = {
|
|
433
|
+
render: (e) => /* @__PURE__ */ o(n, { ...e }),
|
|
434
|
+
args: {
|
|
435
|
+
label: "Right Placement",
|
|
436
|
+
dropdownPlacement: "right"
|
|
437
|
+
},
|
|
438
|
+
play: async ({ canvasElement: e }) => {
|
|
439
|
+
const r = i(e);
|
|
440
|
+
await c.click(r.getByRole("button", { name: /right placement/i }));
|
|
441
|
+
const a = i(e.ownerDocument.body).getByTestId("time-picker-dropdown");
|
|
442
|
+
await s(a.className).toContain("left-full");
|
|
443
|
+
}
|
|
341
444
|
};
|
|
342
445
|
export {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
C as
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
446
|
+
I as AutoFocus,
|
|
447
|
+
D as Basic,
|
|
448
|
+
j as CustomInputHeight,
|
|
449
|
+
C as CustomStep,
|
|
450
|
+
O as CustomStyling,
|
|
451
|
+
w as Default,
|
|
452
|
+
k as Disabled,
|
|
453
|
+
_ as DropdownOpensBottom,
|
|
454
|
+
J as DropdownOpensLeft,
|
|
455
|
+
K as DropdownOpensRight,
|
|
456
|
+
G as DropdownOpensTop,
|
|
457
|
+
R as EarlyMorning,
|
|
458
|
+
H as EarlyMorningWithDateToCompareAndMin,
|
|
459
|
+
x as Error,
|
|
460
|
+
E as FifteenMinutesStep,
|
|
461
|
+
W as LateEvening,
|
|
354
462
|
z as Midnight,
|
|
355
|
-
|
|
356
|
-
|
|
463
|
+
F as MidnightMinus1Hour,
|
|
464
|
+
L as MidnightMinus1HourAnd18HoursMaxUpperBound,
|
|
357
465
|
V as MidnightPlus1Hour,
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
466
|
+
Y as Noon,
|
|
467
|
+
S as Warning,
|
|
468
|
+
U as WithCustomIcon,
|
|
469
|
+
A as WithDateComparison,
|
|
470
|
+
N as WithDateSeparators,
|
|
471
|
+
v as WithHelperText,
|
|
472
|
+
f as WithLabel,
|
|
473
|
+
M as WithTimeConstraints,
|
|
474
|
+
B as WithTimezone,
|
|
475
|
+
q as WithoutIcon,
|
|
476
|
+
P as WithoutTimeDifference,
|
|
477
|
+
y as default
|
|
368
478
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "../../../index-
|
|
2
|
+
import { f as o } from "../../../index-CktvVE7I.js";
|
|
3
3
|
import { Icons as l } from "./icons.js";
|
|
4
4
|
import "./iconsSVGs/Large/Profile.js";
|
|
5
5
|
import "./iconsSVGs/Small/Profile.js";
|
|
@@ -17,9 +17,12 @@ export type DialogProps = {
|
|
|
17
17
|
hasActionButtons?: boolean;
|
|
18
18
|
hasBottomBorder?: boolean;
|
|
19
19
|
actionButtons?: ButtonProps[];
|
|
20
|
+
maxHeight?: string;
|
|
21
|
+
contentMaxHeight?: string;
|
|
22
|
+
heightSpacingRem?: number;
|
|
20
23
|
};
|
|
21
24
|
/**
|
|
22
25
|
* Dialog component that renders a modal overlay with customizable content
|
|
23
26
|
* Uses Radix UI for accessibility and proper modal behavior
|
|
24
27
|
*/
|
|
25
|
-
export declare function Dialog({ children, width, open, title, subTitle, cancelButtonText, setClose, actionButtons, hasPadding, hasActionButtons, hasBottomBorder, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function Dialog({ children, width, open, title, subTitle, cancelButtonText, setClose, actionButtons, hasPadding, hasActionButtons, hasBottomBorder, maxHeight, contentMaxHeight, heightSpacingRem, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|