@max-ts/kit 1.1.1 → 1.3.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/lib/components/AlertDialog/types.d.ts +1 -1
- package/lib/components/AlertDialog/types.d.ts.map +1 -1
- package/lib/components/Autocomplete/Autocomplete.d.ts +4 -0
- package/lib/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/lib/components/Autocomplete/index.d.ts +3 -0
- package/lib/components/Autocomplete/index.d.ts.map +1 -0
- package/lib/components/Autocomplete/styles.css.d.ts +8 -0
- package/lib/components/Autocomplete/styles.css.d.ts.map +1 -0
- package/lib/components/Autocomplete/types.d.ts +38 -0
- package/lib/components/Autocomplete/types.d.ts.map +1 -0
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/types.d.ts +1 -1
- package/lib/components/Avatar/types.d.ts.map +1 -1
- package/lib/components/Button/types.d.ts +1 -1
- package/lib/components/Button/types.d.ts.map +1 -1
- package/lib/components/Combobox/Combobox.d.ts +1 -1
- package/lib/components/Combobox/Combobox.d.ts.map +1 -1
- package/lib/components/Combobox/styles.css.d.ts +2 -2
- package/lib/components/Combobox/styles.css.d.ts.map +1 -1
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/Input.d.ts.map +1 -1
- package/lib/components/Input/styles.css.d.ts +1 -1
- package/lib/components/Input/styles.css.d.ts.map +1 -1
- package/lib/components/InputGroup/styles.css.d.ts +1 -1
- package/lib/components/InputGroup/styles.css.d.ts.map +1 -1
- package/lib/components/InputGroup/types.d.ts +1 -1
- package/lib/components/InputGroup/types.d.ts.map +1 -1
- package/lib/components/Placeholder/constants.d.ts +12 -12
- package/lib/components/Placeholder/constants.d.ts.map +1 -1
- package/lib/components/Placeholder/types.d.ts +1 -1
- package/lib/components/Placeholder/types.d.ts.map +1 -1
- package/lib/components/RangeInput/RangeInput.d.ts +1 -1
- package/lib/components/RangeInput/RangeInput.d.ts.map +1 -1
- package/lib/components/RangeInput/styles.css.d.ts +1 -1
- package/lib/components/RangeInput/styles.css.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +1 -1
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Sidebar/types.d.ts +2 -2
- package/lib/components/Sidebar/types.d.ts.map +1 -1
- package/lib/components/Tabs/TabsTrigger.d.ts +1 -1
- package/lib/components/Tabs/TabsTrigger.d.ts.map +1 -1
- package/lib/components/Tabs/styles.css.d.ts +1 -1
- package/lib/components/Tabs/styles.css.d.ts.map +1 -1
- package/lib/components/Textarea/styles.css.d.ts.map +1 -1
- package/lib/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/lib/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.mjs +559 -454
- package/lib/stories/Autocomplete.stories.d.ts +9 -0
- package/lib/stories/Autocomplete.stories.d.ts.map +1 -0
- package/lib/stories/Button.stories.d.ts.map +1 -1
- package/lib/stories/Combobox.stories.d.ts +2 -0
- package/lib/stories/Combobox.stories.d.ts.map +1 -1
- package/lib/stories/Input.stories.d.ts.map +1 -1
- package/lib/stories/InputGroup.stories.d.ts.map +1 -1
- package/lib/stories/ToggleGroup.stories.d.ts +1 -1
- package/lib/styles.css +943 -895
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4,16 +4,16 @@ import clsx_0, { clsx } from "clsx";
|
|
|
4
4
|
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, CheckIcon, ChevronDown, ChevronDownIcon, ChevronLeft, ChevronRight, ChevronRightIcon, ChevronUp, CircleCheck, CircleIcon, Copy, Ellipsis as external_lucide_react_Ellipsis, EllipsisVertical, Info, MoreHorizontalIcon, OctagonAlert, PanelLeftIcon, TriangleAlert, XIcon } from "lucide-react";
|
|
5
5
|
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
6
6
|
import { Button } from "@base-ui/react/button";
|
|
7
|
+
import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
import { Combobox } from "@base-ui/react/combobox";
|
|
7
9
|
import { Avatar } from "@base-ui/react/avatar";
|
|
8
10
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
9
11
|
import { useRender } from "@base-ui/react/use-render";
|
|
10
12
|
import { Separator as separator_Separator } from "@base-ui/react/separator";
|
|
11
13
|
import { DayPicker } from "react-day-picker";
|
|
12
14
|
import { ru } from "react-day-picker/locale";
|
|
13
|
-
import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
14
15
|
import embla_carousel_react from "embla-carousel-react";
|
|
15
16
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
16
|
-
import { Combobox } from "@base-ui/react/combobox";
|
|
17
17
|
import { Popover } from "@base-ui/react/popover";
|
|
18
18
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
19
19
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -127,11 +127,11 @@ Accordion_Accordion.Trigger = Trigger;
|
|
|
127
127
|
Accordion_Accordion.Content = Accordion_Content;
|
|
128
128
|
var buttonBase = 'style__1ersxw10';
|
|
129
129
|
var buttonSizes = {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
small: 'small__1ersxw19',
|
|
131
|
+
medium: 'medium__1ersxw1a',
|
|
132
|
+
large: 'large__1ersxw1b',
|
|
133
133
|
icon: 'icon__1ersxw1c',
|
|
134
|
-
|
|
134
|
+
iconSmall: 'iconSmall__1ersxw1d'
|
|
135
135
|
};
|
|
136
136
|
var buttonVariants = {
|
|
137
137
|
default: 'default__1ersxw14',
|
|
@@ -144,7 +144,7 @@ var button_css_endAdornment = 'style__1ersxw1f';
|
|
|
144
144
|
var fullWidthStyle = 'style__1ersxw13';
|
|
145
145
|
var loading = 'style__1ersxw12';
|
|
146
146
|
var button_css_startAdornment = 'style__1ersxw1e';
|
|
147
|
-
const Button_Button = ({ className, variant = 'default', size = '
|
|
147
|
+
const Button_Button = ({ className, variant = 'default', size = 'medium', startAdornment, endAdornment, isLoading = false, fullWidth, children, nativeButton, ...props })=>/*#__PURE__*/ jsxs(Button, {
|
|
148
148
|
nativeButton: nativeButton ?? !props.render,
|
|
149
149
|
className: clsx(buttonBase, buttonVariants[variant], buttonSizes[size], {
|
|
150
150
|
[fullWidthStyle]: fullWidth,
|
|
@@ -190,7 +190,7 @@ function Overlay({ className, ...props }) {
|
|
|
190
190
|
...props
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function AlertDialog_Content({ className, size = '
|
|
193
|
+
function AlertDialog_Content({ className, size = 'medium', ...props }) {
|
|
194
194
|
return /*#__PURE__*/ jsxs(Portal, {
|
|
195
195
|
children: [
|
|
196
196
|
/*#__PURE__*/ jsx(Overlay, {}),
|
|
@@ -245,7 +245,7 @@ function Action({ className, ...props }) {
|
|
|
245
245
|
...props
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
-
function Cancel({ className, variant = 'outline', size = '
|
|
248
|
+
function Cancel({ className, variant = 'outline', size = 'medium', ...props }) {
|
|
249
249
|
return /*#__PURE__*/ jsx(AlertDialog.Close, {
|
|
250
250
|
"data-slot": "alert-dialog-cancel",
|
|
251
251
|
className: className,
|
|
@@ -272,17 +272,485 @@ AlertDialog_AlertDialog.Title = Title;
|
|
|
272
272
|
AlertDialog_AlertDialog.Description = Description;
|
|
273
273
|
AlertDialog_AlertDialog.Action = Action;
|
|
274
274
|
AlertDialog_AlertDialog.Cancel = Cancel;
|
|
275
|
+
var addon = 'style__1rv6t1j1';
|
|
276
|
+
var addonAlign = {
|
|
277
|
+
'inline-start': 'inline-start__1rv6t1j2',
|
|
278
|
+
'inline-end': 'inline-end__1rv6t1j3',
|
|
279
|
+
'block-start': 'block-start__1rv6t1j4',
|
|
280
|
+
'block-end': 'block-end__1rv6t1j5'
|
|
281
|
+
};
|
|
282
|
+
var styles_css_button = 'style__1rv6t1j6';
|
|
283
|
+
var buttonSize = {
|
|
284
|
+
extraSmall: 'extraSmall__1rv6t1j7',
|
|
285
|
+
small: 'small__1rv6t1j8',
|
|
286
|
+
iconExtraSmall: 'iconExtraSmall__1rv6t1j9',
|
|
287
|
+
iconSmall: 'iconSmall__1rv6t1ja'
|
|
288
|
+
};
|
|
289
|
+
var control = 'style__1rv6t1jc';
|
|
290
|
+
var input = 'style__1rv6t1jd';
|
|
291
|
+
var styles_css_root = 'style__1rv6t1j0';
|
|
292
|
+
var styles_css_text = 'style__1rv6t1jb';
|
|
293
|
+
var styles_css_textarea = 'style__1rv6t1je';
|
|
294
|
+
function InputGroup({ className, ...props }) {
|
|
295
|
+
return /*#__PURE__*/ jsx("div", {
|
|
296
|
+
"data-slot": "input-group",
|
|
297
|
+
className: clsx(styles_css_root, className),
|
|
298
|
+
...props
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
function Addon({ className, align = 'inline-start', ...props }) {
|
|
302
|
+
return /*#__PURE__*/ jsx("div", {
|
|
303
|
+
"data-slot": "input-group-addon",
|
|
304
|
+
"data-align": align,
|
|
305
|
+
className: clsx(addon, addonAlign[align], className),
|
|
306
|
+
...props
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'extraSmall', ...props }) {
|
|
310
|
+
return /*#__PURE__*/ jsx(Button_Button, {
|
|
311
|
+
type: type,
|
|
312
|
+
"data-size": size,
|
|
313
|
+
variant: variant,
|
|
314
|
+
className: clsx(styles_css_button, buttonSize[size], className),
|
|
315
|
+
...props
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
function Text({ className, ...props }) {
|
|
319
|
+
return /*#__PURE__*/ jsx("span", {
|
|
320
|
+
"data-slot": "input-group-text",
|
|
321
|
+
className: clsx(styles_css_text, className),
|
|
322
|
+
...props
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function Input({ className, ...props }) {
|
|
326
|
+
return /*#__PURE__*/ jsx("input", {
|
|
327
|
+
"data-slot": "input-group-control",
|
|
328
|
+
className: clsx(control, input, className),
|
|
329
|
+
...props
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function Textarea({ className, ...props }) {
|
|
333
|
+
return /*#__PURE__*/ jsx("textarea", {
|
|
334
|
+
"data-slot": "input-group-control",
|
|
335
|
+
className: clsx(control, styles_css_textarea, className),
|
|
336
|
+
...props
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
InputGroup.Addon = Addon;
|
|
340
|
+
InputGroup.Button = InputGroup_Button;
|
|
341
|
+
InputGroup.Text = Text;
|
|
342
|
+
InputGroup.Input = Input;
|
|
343
|
+
InputGroup.Textarea = Textarea;
|
|
344
|
+
var chip = 'style__1udu12rh';
|
|
345
|
+
var chipRemove = 'style__1udu12rj';
|
|
346
|
+
var chipRemoveButton = 'style__1udu12rk';
|
|
347
|
+
var chipRemoveSize = {
|
|
348
|
+
iconExtraSmall: 'iconExtraSmall__1udu12rm'
|
|
349
|
+
};
|
|
350
|
+
var chipWithRemove = 'style__1udu12ri';
|
|
351
|
+
var chips = 'style__1udu12rg';
|
|
352
|
+
var chipsInput = 'style__1udu12rl';
|
|
353
|
+
var clearIcon = 'style__1udu12r4';
|
|
354
|
+
var Combobox_styles_css_content = 'style__1udu12r9';
|
|
355
|
+
var controlButton = 'style__1udu12r5';
|
|
356
|
+
var empty = 'style__1udu12re';
|
|
357
|
+
var groupLabel = 'style__1udu12rd';
|
|
358
|
+
var inputGroup = 'style__1udu12r6';
|
|
359
|
+
var inputTrigger = 'style__1udu12r7';
|
|
360
|
+
var Combobox_styles_css_item = 'style__1udu12rb';
|
|
361
|
+
var itemIndicator = 'style__1udu12rc';
|
|
362
|
+
var list = 'style__1udu12ra';
|
|
363
|
+
var positioner = 'style__1udu12r8';
|
|
364
|
+
var styles_css_separator = 'style__1udu12rf';
|
|
365
|
+
var Combobox_styles_css_trigger = 'style__1udu12r2';
|
|
366
|
+
var styles_css_triggerIcon = 'style__1udu12r3';
|
|
367
|
+
function Combobox_Combobox(props) {
|
|
368
|
+
return /*#__PURE__*/ jsx(Combobox.Root, {
|
|
369
|
+
"data-slot": "combobox",
|
|
370
|
+
...props
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
function Value(props) {
|
|
374
|
+
return /*#__PURE__*/ jsx(Combobox.Value, {
|
|
375
|
+
...props
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function Combobox_Trigger({ className, children, ...props }) {
|
|
379
|
+
return /*#__PURE__*/ jsxs(Combobox.Trigger, {
|
|
380
|
+
"data-slot": "combobox-trigger",
|
|
381
|
+
className: clsx(controlButton, Combobox_styles_css_trigger, className),
|
|
382
|
+
...props,
|
|
383
|
+
children: [
|
|
384
|
+
children,
|
|
385
|
+
/*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
386
|
+
className: styles_css_triggerIcon
|
|
387
|
+
})
|
|
388
|
+
]
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
function Clear({ className, children, ...props }) {
|
|
392
|
+
return /*#__PURE__*/ jsx(Combobox.Clear, {
|
|
393
|
+
"data-slot": "combobox-clear",
|
|
394
|
+
className: clsx(controlButton, className),
|
|
395
|
+
...props,
|
|
396
|
+
children: children ?? /*#__PURE__*/ jsx(XIcon, {
|
|
397
|
+
className: clearIcon
|
|
398
|
+
})
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
function Combobox_Input({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
|
|
402
|
+
return /*#__PURE__*/ jsxs(Combobox.InputGroup, {
|
|
403
|
+
render: /*#__PURE__*/ jsx(InputGroup, {
|
|
404
|
+
className: clsx(inputGroup, className)
|
|
405
|
+
}),
|
|
406
|
+
children: [
|
|
407
|
+
/*#__PURE__*/ jsx(Combobox.Input, {
|
|
408
|
+
render: /*#__PURE__*/ jsx(InputGroup.Input, {
|
|
409
|
+
disabled: disabled
|
|
410
|
+
}),
|
|
411
|
+
disabled: disabled,
|
|
412
|
+
...props
|
|
413
|
+
}),
|
|
414
|
+
/*#__PURE__*/ jsxs(InputGroup.Addon, {
|
|
415
|
+
align: "inline-end",
|
|
416
|
+
children: [
|
|
417
|
+
showTrigger && /*#__PURE__*/ jsx(Combobox_Trigger, {
|
|
418
|
+
className: inputTrigger,
|
|
419
|
+
disabled: disabled
|
|
420
|
+
}),
|
|
421
|
+
showClear && /*#__PURE__*/ jsx(Clear, {
|
|
422
|
+
disabled: disabled
|
|
423
|
+
})
|
|
424
|
+
]
|
|
425
|
+
}),
|
|
426
|
+
children
|
|
427
|
+
]
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function Combobox_Content({ className, side = 'bottom', sideOffset = 8, align = 'start', alignOffset = 0, anchor, ...props }) {
|
|
431
|
+
return /*#__PURE__*/ jsx(Combobox.Portal, {
|
|
432
|
+
children: /*#__PURE__*/ jsx(Combobox.Positioner, {
|
|
433
|
+
side: side,
|
|
434
|
+
sideOffset: sideOffset,
|
|
435
|
+
align: align,
|
|
436
|
+
alignOffset: alignOffset,
|
|
437
|
+
anchor: anchor,
|
|
438
|
+
className: positioner,
|
|
439
|
+
children: /*#__PURE__*/ jsx(Combobox.Popup, {
|
|
440
|
+
"data-slot": "combobox-content",
|
|
441
|
+
"data-chips": anchor ? 'true' : void 0,
|
|
442
|
+
className: clsx(Combobox_styles_css_content, className),
|
|
443
|
+
...props
|
|
444
|
+
})
|
|
445
|
+
})
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
function List({ className, ...props }) {
|
|
449
|
+
return /*#__PURE__*/ jsx(Combobox.List, {
|
|
450
|
+
"data-slot": "combobox-list",
|
|
451
|
+
className: clsx(list, className),
|
|
452
|
+
...props
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
function Combobox_Item({ className, children, ...props }) {
|
|
456
|
+
return /*#__PURE__*/ jsxs(Combobox.Item, {
|
|
457
|
+
"data-slot": "combobox-item",
|
|
458
|
+
className: clsx(Combobox_styles_css_item, className),
|
|
459
|
+
...props,
|
|
460
|
+
children: [
|
|
461
|
+
children,
|
|
462
|
+
/*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
463
|
+
className: itemIndicator,
|
|
464
|
+
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
465
|
+
})
|
|
466
|
+
]
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
function Group({ ...props }) {
|
|
470
|
+
return /*#__PURE__*/ jsx(Combobox.Group, {
|
|
471
|
+
"data-slot": "combobox-group",
|
|
472
|
+
...props
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
function GroupLabel({ className, ...props }) {
|
|
476
|
+
return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
|
|
477
|
+
"data-slot": "combobox-group-label",
|
|
478
|
+
className: clsx(groupLabel, className),
|
|
479
|
+
...props
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
function Collection(props) {
|
|
483
|
+
return /*#__PURE__*/ jsx(Combobox.Collection, {
|
|
484
|
+
...props
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
function Empty({ className, ...props }) {
|
|
488
|
+
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
489
|
+
"data-slot": "combobox-empty",
|
|
490
|
+
className: clsx(empty, className),
|
|
491
|
+
...props
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
function Separator({ className, ...props }) {
|
|
495
|
+
return /*#__PURE__*/ jsx(Combobox.Separator, {
|
|
496
|
+
"data-slot": "combobox-separator",
|
|
497
|
+
className: clsx(styles_css_separator, className),
|
|
498
|
+
...props
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
function Chips({ className, ...props }) {
|
|
502
|
+
return /*#__PURE__*/ jsx(Combobox.Chips, {
|
|
503
|
+
"data-slot": "combobox-chips",
|
|
504
|
+
className: clsx(chips, className),
|
|
505
|
+
...props
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
function Chip({ className, children, showRemove = true, ...props }) {
|
|
509
|
+
return /*#__PURE__*/ jsxs(Combobox.Chip, {
|
|
510
|
+
"data-slot": "combobox-chip",
|
|
511
|
+
className: clsx(chip, {
|
|
512
|
+
[chipWithRemove]: showRemove
|
|
513
|
+
}, className),
|
|
514
|
+
...props,
|
|
515
|
+
children: [
|
|
516
|
+
children,
|
|
517
|
+
showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
|
|
518
|
+
className: clsx(chipRemove, chipRemoveButton, chipRemoveSize.iconExtraSmall),
|
|
519
|
+
"data-slot": "combobox-chip-remove",
|
|
520
|
+
children: /*#__PURE__*/ jsx(XIcon, {})
|
|
521
|
+
})
|
|
522
|
+
]
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function ChipsInput({ className, ...props }) {
|
|
526
|
+
return /*#__PURE__*/ jsx(Combobox.Input, {
|
|
527
|
+
"data-slot": "combobox-chip-input",
|
|
528
|
+
className: clsx(chipsInput, className),
|
|
529
|
+
...props
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
function useComboboxAnchor() {
|
|
533
|
+
return useRef(null);
|
|
534
|
+
}
|
|
535
|
+
Combobox_Combobox.Value = Value;
|
|
536
|
+
Combobox_Combobox.Trigger = Combobox_Trigger;
|
|
537
|
+
Combobox_Combobox.Clear = Clear;
|
|
538
|
+
Combobox_Combobox.Input = Combobox_Input;
|
|
539
|
+
Combobox_Combobox.Content = Combobox_Content;
|
|
540
|
+
Combobox_Combobox.List = List;
|
|
541
|
+
Combobox_Combobox.Item = Combobox_Item;
|
|
542
|
+
Combobox_Combobox.Group = Group;
|
|
543
|
+
Combobox_Combobox.GroupLabel = GroupLabel;
|
|
544
|
+
Combobox_Combobox.Collection = Collection;
|
|
545
|
+
Combobox_Combobox.Empty = Empty;
|
|
546
|
+
Combobox_Combobox.Separator = Separator;
|
|
547
|
+
Combobox_Combobox.Chips = Chips;
|
|
548
|
+
Combobox_Combobox.Chip = Chip;
|
|
549
|
+
Combobox_Combobox.ChipsInput = ChipsInput;
|
|
550
|
+
var label_css_disabled = 'style__c31e141';
|
|
551
|
+
var label_css_error = 'style__c31e142';
|
|
552
|
+
var label_css_required = 'style__c31e143';
|
|
553
|
+
var label_css_root = 'Label__c31e140';
|
|
554
|
+
const Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
|
|
555
|
+
"data-slot": "label",
|
|
556
|
+
className: clsx(label_css_root, {
|
|
557
|
+
[label_css_disabled]: disabled,
|
|
558
|
+
[label_css_error]: error,
|
|
559
|
+
[label_css_required]: props.required
|
|
560
|
+
}, className),
|
|
561
|
+
...props
|
|
562
|
+
});
|
|
563
|
+
var alignments = {
|
|
564
|
+
left: 'left__1sba6zok',
|
|
565
|
+
center: 'center__1sba6zol',
|
|
566
|
+
right: 'right__1sba6zom',
|
|
567
|
+
justify: 'justify__1sba6zon'
|
|
568
|
+
};
|
|
569
|
+
var colors = {
|
|
570
|
+
primary: 'primary__1sba6zoc',
|
|
571
|
+
secondary: 'secondary__1sba6zod',
|
|
572
|
+
disabled: 'disabled__1sba6zoe',
|
|
573
|
+
success: 'success__1sba6zof',
|
|
574
|
+
error: 'error__1sba6zog',
|
|
575
|
+
warning: 'warning__1sba6zoh',
|
|
576
|
+
info: 'info__1sba6zoi',
|
|
577
|
+
muted: 'muted__1sba6zoj'
|
|
578
|
+
};
|
|
579
|
+
var decorations = {
|
|
580
|
+
none: 'none__1sba6zox',
|
|
581
|
+
underline: 'underline__1sba6zoy',
|
|
582
|
+
lineThrough: 'lineThrough__1sba6zoz'
|
|
583
|
+
};
|
|
584
|
+
var displays = {
|
|
585
|
+
block: 'block__1sba6zoo',
|
|
586
|
+
inline: 'inline__1sba6zop'
|
|
587
|
+
};
|
|
588
|
+
var gutterBottomClass = 'style__1sba6zo10';
|
|
589
|
+
var transforms = {
|
|
590
|
+
lowercase: 'lowercase__1sba6zou',
|
|
591
|
+
uppercase: 'uppercase__1sba6zov',
|
|
592
|
+
capitalize: 'capitalize__1sba6zow'
|
|
593
|
+
};
|
|
594
|
+
var variants = {
|
|
595
|
+
h1: 'h1__1sba6zo0',
|
|
596
|
+
h2: 'h2__1sba6zo1',
|
|
597
|
+
h3: 'h3__1sba6zo2',
|
|
598
|
+
h4: 'h4__1sba6zo3',
|
|
599
|
+
h5: 'h5__1sba6zo4',
|
|
600
|
+
h6: 'h6__1sba6zo5',
|
|
601
|
+
subtitle1: 'subtitle1__1sba6zo6',
|
|
602
|
+
subtitle2: 'subtitle2__1sba6zo7',
|
|
603
|
+
body1: 'body1__1sba6zo8',
|
|
604
|
+
body2: 'body2__1sba6zo9',
|
|
605
|
+
caption: 'caption__1sba6zoa',
|
|
606
|
+
overline: 'overline__1sba6zob'
|
|
607
|
+
};
|
|
608
|
+
var weights = {
|
|
609
|
+
normal: 'normal__1sba6zoq',
|
|
610
|
+
medium: 'medium__1sba6zor',
|
|
611
|
+
semibold: 'semibold__1sba6zos',
|
|
612
|
+
bold: 'bold__1sba6zot'
|
|
613
|
+
};
|
|
614
|
+
const VARIANT_COMPONENT_MAP = {
|
|
615
|
+
h1: 'h1',
|
|
616
|
+
h2: 'h2',
|
|
617
|
+
h3: 'h3',
|
|
618
|
+
h4: 'h4',
|
|
619
|
+
h5: 'h5',
|
|
620
|
+
h6: 'h6',
|
|
621
|
+
subtitle1: 'h6',
|
|
622
|
+
subtitle2: 'h6',
|
|
623
|
+
body1: 'p',
|
|
624
|
+
body2: 'p',
|
|
625
|
+
caption: 'span',
|
|
626
|
+
overline: 'span'
|
|
627
|
+
};
|
|
628
|
+
const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
|
|
629
|
+
const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
|
|
630
|
+
return /*#__PURE__*/ jsx(Component, {
|
|
631
|
+
className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
|
|
632
|
+
[gutterBottomClass]: gutterBottom
|
|
633
|
+
}, className),
|
|
634
|
+
...props,
|
|
635
|
+
children: children
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
var styles_css_disabled = 'style__17arfox5';
|
|
639
|
+
var styles_css_error = 'style__17arfox4';
|
|
640
|
+
var styles_css_field = 'style__17arfox0';
|
|
641
|
+
var styles_css_fullWidth = 'style__17arfox1';
|
|
642
|
+
var styles_css_helperText = 'style__17arfox3';
|
|
643
|
+
var styles_css_label = 'style__17arfox2';
|
|
644
|
+
function defaultGetOptionLabel(option) {
|
|
645
|
+
return 'string' == typeof option ? option : String(option);
|
|
646
|
+
}
|
|
647
|
+
function Autocomplete(props) {
|
|
648
|
+
const { className, contentClassName, defaultValue, disabled = false, error = false, fullWidth = false, getOptionLabel = defaultGetOptionLabel, getOptionValue = getOptionLabel, helperText, id, inputClassName, isOptionEqualToValue, label, labelClassName, multiple, noOptionsText = 'No results found', onChange, options, placeholder, renderOption, required, style, value, ...rootProps } = props;
|
|
649
|
+
const generatedId = useId();
|
|
650
|
+
const inputId = id ?? (label ? generatedId : void 0);
|
|
651
|
+
const anchor = useComboboxAnchor();
|
|
652
|
+
const [innerValue, setInnerValue] = useState(defaultValue ?? (multiple ? [] : null));
|
|
653
|
+
const selectedValue = value ?? innerValue;
|
|
654
|
+
const invalid = error ? true : void 0;
|
|
655
|
+
const handleChange = (nextValue)=>{
|
|
656
|
+
if (void 0 === value) setInnerValue(nextValue);
|
|
657
|
+
if (multiple) return void onChange?.(Array.isArray(nextValue) ? nextValue : []);
|
|
658
|
+
onChange?.(nextValue);
|
|
659
|
+
};
|
|
660
|
+
const isEqual = isOptionEqualToValue ?? ((option, selectedOption)=>getOptionValue(option) === getOptionValue(selectedOption));
|
|
661
|
+
const renderItem = (option)=>/*#__PURE__*/ jsx(Combobox_Combobox.Item, {
|
|
662
|
+
value: option,
|
|
663
|
+
children: renderOption?.(option) ?? getOptionLabel(option)
|
|
664
|
+
}, getOptionValue(option));
|
|
665
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
666
|
+
style: style,
|
|
667
|
+
className: clsx(styles_css_field, {
|
|
668
|
+
[styles_css_fullWidth]: fullWidth
|
|
669
|
+
}, className),
|
|
670
|
+
children: [
|
|
671
|
+
label && /*#__PURE__*/ jsx(Label, {
|
|
672
|
+
htmlFor: inputId,
|
|
673
|
+
disabled: disabled,
|
|
674
|
+
required: required,
|
|
675
|
+
error: error,
|
|
676
|
+
className: clsx(styles_css_label, labelClassName),
|
|
677
|
+
children: label
|
|
678
|
+
}),
|
|
679
|
+
/*#__PURE__*/ jsxs(Combobox_Combobox, {
|
|
680
|
+
...rootProps,
|
|
681
|
+
disabled: disabled,
|
|
682
|
+
isItemEqualToValue: isEqual,
|
|
683
|
+
itemToStringLabel: getOptionLabel,
|
|
684
|
+
itemToStringValue: getOptionValue,
|
|
685
|
+
items: options,
|
|
686
|
+
multiple: multiple,
|
|
687
|
+
onValueChange: handleChange,
|
|
688
|
+
value: selectedValue,
|
|
689
|
+
children: [
|
|
690
|
+
multiple ? /*#__PURE__*/ jsxs(Combobox_Combobox.Chips, {
|
|
691
|
+
ref: anchor,
|
|
692
|
+
className: clsx({
|
|
693
|
+
[styles_css_fullWidth]: fullWidth
|
|
694
|
+
}, inputClassName),
|
|
695
|
+
children: [
|
|
696
|
+
(Array.isArray(selectedValue) ? selectedValue : []).map((option)=>/*#__PURE__*/ jsx(Combobox_Combobox.Chip, {
|
|
697
|
+
children: getOptionLabel(option)
|
|
698
|
+
}, getOptionValue(option))),
|
|
699
|
+
/*#__PURE__*/ jsx(Combobox_Combobox.ChipsInput, {
|
|
700
|
+
id: inputId,
|
|
701
|
+
disabled: disabled,
|
|
702
|
+
required: required,
|
|
703
|
+
"aria-invalid": invalid,
|
|
704
|
+
placeholder: Array.isArray(selectedValue) && selectedValue.length ? void 0 : placeholder
|
|
705
|
+
})
|
|
706
|
+
]
|
|
707
|
+
}) : /*#__PURE__*/ jsx(Combobox_Combobox.Input, {
|
|
708
|
+
id: inputId,
|
|
709
|
+
disabled: disabled,
|
|
710
|
+
required: required,
|
|
711
|
+
"aria-invalid": invalid,
|
|
712
|
+
placeholder: placeholder,
|
|
713
|
+
showClear: true,
|
|
714
|
+
className: clsx({
|
|
715
|
+
[styles_css_fullWidth]: fullWidth
|
|
716
|
+
}, inputClassName)
|
|
717
|
+
}),
|
|
718
|
+
/*#__PURE__*/ jsxs(Combobox_Combobox.Content, {
|
|
719
|
+
anchor: multiple ? anchor : void 0,
|
|
720
|
+
className: contentClassName,
|
|
721
|
+
children: [
|
|
722
|
+
/*#__PURE__*/ jsx(Combobox_Combobox.Empty, {
|
|
723
|
+
children: noOptionsText
|
|
724
|
+
}),
|
|
725
|
+
/*#__PURE__*/ jsx(Combobox_Combobox.List, {
|
|
726
|
+
children: renderItem
|
|
727
|
+
})
|
|
728
|
+
]
|
|
729
|
+
})
|
|
730
|
+
]
|
|
731
|
+
}),
|
|
732
|
+
helperText && /*#__PURE__*/ jsx(Typography, {
|
|
733
|
+
variant: "caption",
|
|
734
|
+
className: clsx(styles_css_helperText, {
|
|
735
|
+
[styles_css_error]: error,
|
|
736
|
+
[styles_css_disabled]: disabled
|
|
737
|
+
}),
|
|
738
|
+
children: helperText
|
|
739
|
+
})
|
|
740
|
+
]
|
|
741
|
+
});
|
|
742
|
+
}
|
|
275
743
|
var badge = 'style__hhcrfl3';
|
|
276
744
|
var fallback = 'style__hhcrfl2';
|
|
277
745
|
var group = 'style__hhcrfl4';
|
|
278
746
|
var groupCount = 'style__hhcrfl5';
|
|
279
747
|
var styles_css_image = 'style__hhcrfl1';
|
|
280
|
-
var
|
|
281
|
-
function Avatar_Avatar({ className, size = '
|
|
748
|
+
var Avatar_styles_css_root = 'style__hhcrfl0';
|
|
749
|
+
function Avatar_Avatar({ className, size = 'medium', ...props }) {
|
|
282
750
|
return /*#__PURE__*/ jsx(Avatar.Root, {
|
|
283
751
|
"data-slot": "avatar",
|
|
284
752
|
"data-size": size,
|
|
285
|
-
className: clsx(
|
|
753
|
+
className: clsx(Avatar_styles_css_root, className),
|
|
286
754
|
...props
|
|
287
755
|
});
|
|
288
756
|
}
|
|
@@ -307,7 +775,7 @@ function Badge({ className, ...props }) {
|
|
|
307
775
|
...props
|
|
308
776
|
});
|
|
309
777
|
}
|
|
310
|
-
function
|
|
778
|
+
function Avatar_Group({ className, ...props }) {
|
|
311
779
|
return /*#__PURE__*/ jsx("div", {
|
|
312
780
|
"data-slot": "avatar-group",
|
|
313
781
|
className: clsx(group, className),
|
|
@@ -324,7 +792,7 @@ function GroupCount({ className, ...props }) {
|
|
|
324
792
|
Avatar_Avatar.Image = Image;
|
|
325
793
|
Avatar_Avatar.Fallback = Fallback;
|
|
326
794
|
Avatar_Avatar.Badge = Badge;
|
|
327
|
-
Avatar_Avatar.Group =
|
|
795
|
+
Avatar_Avatar.Group = Avatar_Group;
|
|
328
796
|
Avatar_Avatar.GroupCount = GroupCount;
|
|
329
797
|
var badgeVariants = {
|
|
330
798
|
default: 'default__1af895x1',
|
|
@@ -349,9 +817,9 @@ function Badge_Badge({ className, variant = 'default', render, ...props }) {
|
|
|
349
817
|
var ellipsis = 'style__1dceszz5';
|
|
350
818
|
var Breadcrumb_styles_css_item = 'style__1dceszz1';
|
|
351
819
|
var styles_css_link = 'style__1dceszz2';
|
|
352
|
-
var
|
|
820
|
+
var styles_css_list = 'style__1dceszz0';
|
|
353
821
|
var page = 'style__1dceszz3';
|
|
354
|
-
var
|
|
822
|
+
var Breadcrumb_styles_css_separator = 'style__1dceszz4';
|
|
355
823
|
var visuallyHidden = 'style__1dceszz6';
|
|
356
824
|
function Breadcrumb({ className, ...props }) {
|
|
357
825
|
return /*#__PURE__*/ jsx("nav", {
|
|
@@ -361,10 +829,10 @@ function Breadcrumb({ className, ...props }) {
|
|
|
361
829
|
...props
|
|
362
830
|
});
|
|
363
831
|
}
|
|
364
|
-
function
|
|
832
|
+
function Breadcrumb_List({ className, ...props }) {
|
|
365
833
|
return /*#__PURE__*/ jsx("ol", {
|
|
366
834
|
"data-slot": "breadcrumb-list",
|
|
367
|
-
className: clsx(
|
|
835
|
+
className: clsx(styles_css_list, className),
|
|
368
836
|
...props
|
|
369
837
|
});
|
|
370
838
|
}
|
|
@@ -395,12 +863,12 @@ function Page({ className, ...props }) {
|
|
|
395
863
|
...props
|
|
396
864
|
});
|
|
397
865
|
}
|
|
398
|
-
function
|
|
866
|
+
function Breadcrumb_Separator({ children, className, ...props }) {
|
|
399
867
|
return /*#__PURE__*/ jsx("li", {
|
|
400
868
|
"data-slot": "breadcrumb-separator",
|
|
401
869
|
role: "presentation",
|
|
402
870
|
"aria-hidden": "true",
|
|
403
|
-
className: clsx(
|
|
871
|
+
className: clsx(Breadcrumb_styles_css_separator, className),
|
|
404
872
|
...props,
|
|
405
873
|
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
406
874
|
});
|
|
@@ -421,15 +889,15 @@ function Ellipsis({ className, ...props }) {
|
|
|
421
889
|
]
|
|
422
890
|
});
|
|
423
891
|
}
|
|
424
|
-
Breadcrumb.List =
|
|
892
|
+
Breadcrumb.List = Breadcrumb_List;
|
|
425
893
|
Breadcrumb.Item = Breadcrumb_Item;
|
|
426
894
|
Breadcrumb.Link = Link;
|
|
427
895
|
Breadcrumb.Page = Page;
|
|
428
|
-
Breadcrumb.Separator =
|
|
896
|
+
Breadcrumb.Separator = Breadcrumb_Separator;
|
|
429
897
|
Breadcrumb.Ellipsis = Ellipsis;
|
|
430
898
|
var ButtonGroup_styles_css_root = 'style__1mf3lgr0';
|
|
431
899
|
var ButtonGroup_styles_css_separator = 'style__1mf3lgr2';
|
|
432
|
-
var
|
|
900
|
+
var ButtonGroup_styles_css_text = 'style__1mf3lgr1';
|
|
433
901
|
function ButtonGroup({ className, orientation = 'horizontal', ...props }) {
|
|
434
902
|
return /*#__PURE__*/ jsx("fieldset", {
|
|
435
903
|
"data-slot": "button-group",
|
|
@@ -438,11 +906,11 @@ function ButtonGroup({ className, orientation = 'horizontal', ...props }) {
|
|
|
438
906
|
...props
|
|
439
907
|
});
|
|
440
908
|
}
|
|
441
|
-
function
|
|
909
|
+
function ButtonGroup_Text({ className, render, ...props }) {
|
|
442
910
|
return useRender({
|
|
443
911
|
defaultTagName: 'div',
|
|
444
912
|
props: mergeProps({
|
|
445
|
-
className: clsx(
|
|
913
|
+
className: clsx(ButtonGroup_styles_css_text, className)
|
|
446
914
|
}, props),
|
|
447
915
|
render,
|
|
448
916
|
state: {
|
|
@@ -459,84 +927,9 @@ function ButtonGroup_Separator({ className, orientation = 'vertical', ...props }
|
|
|
459
927
|
...props
|
|
460
928
|
});
|
|
461
929
|
}
|
|
462
|
-
ButtonGroup.Text =
|
|
930
|
+
ButtonGroup.Text = ButtonGroup_Text;
|
|
463
931
|
ButtonGroup.Separator = ButtonGroup_Separator;
|
|
464
|
-
var
|
|
465
|
-
left: 'left__1sba6zok',
|
|
466
|
-
center: 'center__1sba6zol',
|
|
467
|
-
right: 'right__1sba6zom',
|
|
468
|
-
justify: 'justify__1sba6zon'
|
|
469
|
-
};
|
|
470
|
-
var colors = {
|
|
471
|
-
primary: 'primary__1sba6zoc',
|
|
472
|
-
secondary: 'secondary__1sba6zod',
|
|
473
|
-
disabled: 'disabled__1sba6zoe',
|
|
474
|
-
success: 'success__1sba6zof',
|
|
475
|
-
error: 'error__1sba6zog',
|
|
476
|
-
warning: 'warning__1sba6zoh',
|
|
477
|
-
info: 'info__1sba6zoi',
|
|
478
|
-
muted: 'muted__1sba6zoj'
|
|
479
|
-
};
|
|
480
|
-
var decorations = {
|
|
481
|
-
none: 'none__1sba6zox',
|
|
482
|
-
underline: 'underline__1sba6zoy',
|
|
483
|
-
lineThrough: 'lineThrough__1sba6zoz'
|
|
484
|
-
};
|
|
485
|
-
var displays = {
|
|
486
|
-
block: 'block__1sba6zoo',
|
|
487
|
-
inline: 'inline__1sba6zop'
|
|
488
|
-
};
|
|
489
|
-
var gutterBottomClass = 'style__1sba6zo10';
|
|
490
|
-
var transforms = {
|
|
491
|
-
lowercase: 'lowercase__1sba6zou',
|
|
492
|
-
uppercase: 'uppercase__1sba6zov',
|
|
493
|
-
capitalize: 'capitalize__1sba6zow'
|
|
494
|
-
};
|
|
495
|
-
var variants = {
|
|
496
|
-
h1: 'h1__1sba6zo0',
|
|
497
|
-
h2: 'h2__1sba6zo1',
|
|
498
|
-
h3: 'h3__1sba6zo2',
|
|
499
|
-
h4: 'h4__1sba6zo3',
|
|
500
|
-
h5: 'h5__1sba6zo4',
|
|
501
|
-
h6: 'h6__1sba6zo5',
|
|
502
|
-
subtitle1: 'subtitle1__1sba6zo6',
|
|
503
|
-
subtitle2: 'subtitle2__1sba6zo7',
|
|
504
|
-
body1: 'body1__1sba6zo8',
|
|
505
|
-
body2: 'body2__1sba6zo9',
|
|
506
|
-
caption: 'caption__1sba6zoa',
|
|
507
|
-
overline: 'overline__1sba6zob'
|
|
508
|
-
};
|
|
509
|
-
var weights = {
|
|
510
|
-
normal: 'normal__1sba6zoq',
|
|
511
|
-
medium: 'medium__1sba6zor',
|
|
512
|
-
semibold: 'semibold__1sba6zos',
|
|
513
|
-
bold: 'bold__1sba6zot'
|
|
514
|
-
};
|
|
515
|
-
const VARIANT_COMPONENT_MAP = {
|
|
516
|
-
h1: 'h1',
|
|
517
|
-
h2: 'h2',
|
|
518
|
-
h3: 'h3',
|
|
519
|
-
h4: 'h4',
|
|
520
|
-
h5: 'h5',
|
|
521
|
-
h6: 'h6',
|
|
522
|
-
subtitle1: 'h6',
|
|
523
|
-
subtitle2: 'h6',
|
|
524
|
-
body1: 'p',
|
|
525
|
-
body2: 'p',
|
|
526
|
-
caption: 'span',
|
|
527
|
-
overline: 'span'
|
|
528
|
-
};
|
|
529
|
-
const Typography = ({ className, variant = 'body1', component, color = 'primary', align = 'left', display = 'inline', weight = 'normal', transform, decoration = 'none', gutterBottom, children, ...props })=>{
|
|
530
|
-
const Component = component || VARIANT_COMPONENT_MAP[variant || 'body1'];
|
|
531
|
-
return /*#__PURE__*/ jsx(Component, {
|
|
532
|
-
className: clsx(decorations[decoration], variants[variant], colors[color], weights[weight], transform && transforms[transform], displays[display], alignments[align], {
|
|
533
|
-
[gutterBottomClass]: gutterBottom
|
|
534
|
-
}, className),
|
|
535
|
-
...props,
|
|
536
|
-
children: children
|
|
537
|
-
});
|
|
538
|
-
};
|
|
539
|
-
var styles_css_button = 'dayButton__hxs6pw0';
|
|
932
|
+
var DayButton_styles_css_button = 'dayButton__hxs6pw0';
|
|
540
933
|
var outside = 'outside__hxs6pw2';
|
|
541
934
|
var today = 'today__hxs6pw1';
|
|
542
935
|
const DayButton = (props)=>{
|
|
@@ -549,7 +942,7 @@ const DayButton = (props)=>{
|
|
|
549
942
|
]);
|
|
550
943
|
return /*#__PURE__*/ jsx(Button_Button, {
|
|
551
944
|
ref: ref,
|
|
552
|
-
className: clsx(
|
|
945
|
+
className: clsx(DayButton_styles_css_button, {
|
|
553
946
|
[outside]: modifiers.outside,
|
|
554
947
|
[today]: modifiers.today
|
|
555
948
|
}, className),
|
|
@@ -1069,281 +1462,6 @@ function Collapsible_Content({ ...props }) {
|
|
|
1069
1462
|
}
|
|
1070
1463
|
Collapsible_Collapsible.Trigger = Collapsible_Trigger;
|
|
1071
1464
|
Collapsible_Collapsible.Content = Collapsible_Content;
|
|
1072
|
-
var addon = 'style__1rv6t1j1';
|
|
1073
|
-
var addonAlign = {
|
|
1074
|
-
'inline-start': 'inline-start__1rv6t1j2',
|
|
1075
|
-
'inline-end': 'inline-end__1rv6t1j3',
|
|
1076
|
-
'block-start': 'block-start__1rv6t1j4',
|
|
1077
|
-
'block-end': 'block-end__1rv6t1j5'
|
|
1078
|
-
};
|
|
1079
|
-
var InputGroup_styles_css_button = 'style__1rv6t1j6';
|
|
1080
|
-
var buttonSize = {
|
|
1081
|
-
xs: 'xs__1rv6t1j7',
|
|
1082
|
-
sm: 'sm__1rv6t1j8',
|
|
1083
|
-
'icon-xs': 'icon-xs__1rv6t1j9',
|
|
1084
|
-
'icon-sm': 'icon-sm__1rv6t1ja'
|
|
1085
|
-
};
|
|
1086
|
-
var control = 'style__1rv6t1jc';
|
|
1087
|
-
var input = 'style__1rv6t1jd';
|
|
1088
|
-
var InputGroup_styles_css_root = 'style__1rv6t1j0';
|
|
1089
|
-
var InputGroup_styles_css_text = 'style__1rv6t1jb';
|
|
1090
|
-
var styles_css_textarea = 'style__1rv6t1je';
|
|
1091
|
-
function InputGroup({ className, ...props }) {
|
|
1092
|
-
return /*#__PURE__*/ jsx("div", {
|
|
1093
|
-
"data-slot": "input-group",
|
|
1094
|
-
className: clsx(InputGroup_styles_css_root, className),
|
|
1095
|
-
...props
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
function Addon({ className, align = 'inline-start', ...props }) {
|
|
1099
|
-
return /*#__PURE__*/ jsx("div", {
|
|
1100
|
-
"data-slot": "input-group-addon",
|
|
1101
|
-
"data-align": align,
|
|
1102
|
-
className: clsx(addon, addonAlign[align], className),
|
|
1103
|
-
...props
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }) {
|
|
1107
|
-
return /*#__PURE__*/ jsx(Button_Button, {
|
|
1108
|
-
type: type,
|
|
1109
|
-
"data-size": size,
|
|
1110
|
-
variant: variant,
|
|
1111
|
-
className: clsx(InputGroup_styles_css_button, buttonSize[size], className),
|
|
1112
|
-
...props
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
function InputGroup_Text({ className, ...props }) {
|
|
1116
|
-
return /*#__PURE__*/ jsx("span", {
|
|
1117
|
-
"data-slot": "input-group-text",
|
|
1118
|
-
className: clsx(InputGroup_styles_css_text, className),
|
|
1119
|
-
...props
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
function Input({ className, ...props }) {
|
|
1123
|
-
return /*#__PURE__*/ jsx("input", {
|
|
1124
|
-
"data-slot": "input-group-control",
|
|
1125
|
-
className: clsx(control, input, className),
|
|
1126
|
-
...props
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
function Textarea({ className, ...props }) {
|
|
1130
|
-
return /*#__PURE__*/ jsx("textarea", {
|
|
1131
|
-
"data-slot": "input-group-control",
|
|
1132
|
-
className: clsx(control, styles_css_textarea, className),
|
|
1133
|
-
...props
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
InputGroup.Addon = Addon;
|
|
1137
|
-
InputGroup.Button = InputGroup_Button;
|
|
1138
|
-
InputGroup.Text = InputGroup_Text;
|
|
1139
|
-
InputGroup.Input = Input;
|
|
1140
|
-
InputGroup.Textarea = Textarea;
|
|
1141
|
-
var chip = 'style__1udu12rh';
|
|
1142
|
-
var chipRemove = 'style__1udu12rj';
|
|
1143
|
-
var chipRemoveButton = 'style__1udu12rk';
|
|
1144
|
-
var chipRemoveSize = {
|
|
1145
|
-
'icon-xs': 'icon-xs__1udu12rm'
|
|
1146
|
-
};
|
|
1147
|
-
var chipWithRemove = 'style__1udu12ri';
|
|
1148
|
-
var chips = 'style__1udu12rg';
|
|
1149
|
-
var chipsInput = 'style__1udu12rl';
|
|
1150
|
-
var clearIcon = 'style__1udu12r4';
|
|
1151
|
-
var Combobox_styles_css_content = 'style__1udu12r9';
|
|
1152
|
-
var controlButton = 'style__1udu12r5';
|
|
1153
|
-
var empty = 'style__1udu12re';
|
|
1154
|
-
var inputGroup = 'style__1udu12r6';
|
|
1155
|
-
var inputTrigger = 'style__1udu12r7';
|
|
1156
|
-
var Combobox_styles_css_item = 'style__1udu12rb';
|
|
1157
|
-
var itemIndicator = 'style__1udu12rc';
|
|
1158
|
-
var styles_css_label = 'style__1udu12rd';
|
|
1159
|
-
var styles_css_list = 'style__1udu12ra';
|
|
1160
|
-
var positioner = 'style__1udu12r8';
|
|
1161
|
-
var Combobox_styles_css_separator = 'style__1udu12rf';
|
|
1162
|
-
var Combobox_styles_css_trigger = 'style__1udu12r2';
|
|
1163
|
-
var styles_css_triggerIcon = 'style__1udu12r3';
|
|
1164
|
-
function Combobox_Combobox(props) {
|
|
1165
|
-
return /*#__PURE__*/ jsx(Combobox.Root, {
|
|
1166
|
-
"data-slot": "combobox",
|
|
1167
|
-
...props
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
function Value(props) {
|
|
1171
|
-
return /*#__PURE__*/ jsx(Combobox.Value, {
|
|
1172
|
-
...props
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
function Combobox_Trigger({ className, children, ...props }) {
|
|
1176
|
-
return /*#__PURE__*/ jsxs(Combobox.Trigger, {
|
|
1177
|
-
"data-slot": "combobox-trigger",
|
|
1178
|
-
className: clsx(controlButton, Combobox_styles_css_trigger, className),
|
|
1179
|
-
...props,
|
|
1180
|
-
children: [
|
|
1181
|
-
children,
|
|
1182
|
-
/*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
1183
|
-
className: styles_css_triggerIcon
|
|
1184
|
-
})
|
|
1185
|
-
]
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
function Clear({ className, children, ...props }) {
|
|
1189
|
-
return /*#__PURE__*/ jsx(Combobox.Clear, {
|
|
1190
|
-
"data-slot": "combobox-clear",
|
|
1191
|
-
className: clsx(controlButton, className),
|
|
1192
|
-
...props,
|
|
1193
|
-
children: children ?? /*#__PURE__*/ jsx(XIcon, {
|
|
1194
|
-
className: clearIcon
|
|
1195
|
-
})
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
function Combobox_Input({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
|
|
1199
|
-
return /*#__PURE__*/ jsxs(Combobox.InputGroup, {
|
|
1200
|
-
render: /*#__PURE__*/ jsx(InputGroup, {
|
|
1201
|
-
className: clsx(inputGroup, className)
|
|
1202
|
-
}),
|
|
1203
|
-
children: [
|
|
1204
|
-
/*#__PURE__*/ jsx(Combobox.Input, {
|
|
1205
|
-
render: /*#__PURE__*/ jsx(InputGroup.Input, {
|
|
1206
|
-
disabled: disabled
|
|
1207
|
-
}),
|
|
1208
|
-
disabled: disabled,
|
|
1209
|
-
...props
|
|
1210
|
-
}),
|
|
1211
|
-
/*#__PURE__*/ jsxs(InputGroup.Addon, {
|
|
1212
|
-
align: "inline-end",
|
|
1213
|
-
children: [
|
|
1214
|
-
showTrigger && /*#__PURE__*/ jsx(Combobox_Trigger, {
|
|
1215
|
-
className: inputTrigger,
|
|
1216
|
-
disabled: disabled
|
|
1217
|
-
}),
|
|
1218
|
-
showClear && /*#__PURE__*/ jsx(Clear, {
|
|
1219
|
-
disabled: disabled
|
|
1220
|
-
})
|
|
1221
|
-
]
|
|
1222
|
-
}),
|
|
1223
|
-
children
|
|
1224
|
-
]
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
function Combobox_Content({ className, side = 'bottom', sideOffset = 8, align = 'start', alignOffset = 0, anchor, ...props }) {
|
|
1228
|
-
return /*#__PURE__*/ jsx(Combobox.Portal, {
|
|
1229
|
-
children: /*#__PURE__*/ jsx(Combobox.Positioner, {
|
|
1230
|
-
side: side,
|
|
1231
|
-
sideOffset: sideOffset,
|
|
1232
|
-
align: align,
|
|
1233
|
-
alignOffset: alignOffset,
|
|
1234
|
-
anchor: anchor,
|
|
1235
|
-
className: positioner,
|
|
1236
|
-
children: /*#__PURE__*/ jsx(Combobox.Popup, {
|
|
1237
|
-
"data-slot": "combobox-content",
|
|
1238
|
-
"data-chips": anchor ? 'true' : void 0,
|
|
1239
|
-
className: clsx(Combobox_styles_css_content, className),
|
|
1240
|
-
...props
|
|
1241
|
-
})
|
|
1242
|
-
})
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
function Combobox_List({ className, ...props }) {
|
|
1246
|
-
return /*#__PURE__*/ jsx(Combobox.List, {
|
|
1247
|
-
"data-slot": "combobox-list",
|
|
1248
|
-
className: clsx(styles_css_list, className),
|
|
1249
|
-
...props
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
function Combobox_Item({ className, children, ...props }) {
|
|
1253
|
-
return /*#__PURE__*/ jsxs(Combobox.Item, {
|
|
1254
|
-
"data-slot": "combobox-item",
|
|
1255
|
-
className: clsx(Combobox_styles_css_item, className),
|
|
1256
|
-
...props,
|
|
1257
|
-
children: [
|
|
1258
|
-
children,
|
|
1259
|
-
/*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
1260
|
-
className: itemIndicator,
|
|
1261
|
-
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
1262
|
-
})
|
|
1263
|
-
]
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
function Combobox_Group({ ...props }) {
|
|
1267
|
-
return /*#__PURE__*/ jsx(Combobox.Group, {
|
|
1268
|
-
"data-slot": "combobox-group",
|
|
1269
|
-
...props
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
function Label({ className, ...props }) {
|
|
1273
|
-
return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
|
|
1274
|
-
"data-slot": "combobox-label",
|
|
1275
|
-
className: clsx(styles_css_label, className),
|
|
1276
|
-
...props
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
function Collection(props) {
|
|
1280
|
-
return /*#__PURE__*/ jsx(Combobox.Collection, {
|
|
1281
|
-
...props
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
function Empty({ className, ...props }) {
|
|
1285
|
-
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
1286
|
-
"data-slot": "combobox-empty",
|
|
1287
|
-
className: clsx(empty, className),
|
|
1288
|
-
...props
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
function Combobox_Separator({ className, ...props }) {
|
|
1292
|
-
return /*#__PURE__*/ jsx(Combobox.Separator, {
|
|
1293
|
-
"data-slot": "combobox-separator",
|
|
1294
|
-
className: clsx(Combobox_styles_css_separator, className),
|
|
1295
|
-
...props
|
|
1296
|
-
});
|
|
1297
|
-
}
|
|
1298
|
-
function Chips({ className, ...props }) {
|
|
1299
|
-
return /*#__PURE__*/ jsx(Combobox.Chips, {
|
|
1300
|
-
"data-slot": "combobox-chips",
|
|
1301
|
-
className: clsx(chips, className),
|
|
1302
|
-
...props
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
function Chip({ className, children, showRemove = true, ...props }) {
|
|
1306
|
-
return /*#__PURE__*/ jsxs(Combobox.Chip, {
|
|
1307
|
-
"data-slot": "combobox-chip",
|
|
1308
|
-
className: clsx(chip, {
|
|
1309
|
-
[chipWithRemove]: showRemove
|
|
1310
|
-
}, className),
|
|
1311
|
-
...props,
|
|
1312
|
-
children: [
|
|
1313
|
-
children,
|
|
1314
|
-
showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
|
|
1315
|
-
className: clsx(chipRemove, chipRemoveButton, chipRemoveSize["icon-xs"]),
|
|
1316
|
-
"data-slot": "combobox-chip-remove",
|
|
1317
|
-
children: /*#__PURE__*/ jsx(XIcon, {})
|
|
1318
|
-
})
|
|
1319
|
-
]
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
function ChipsInput({ className, ...props }) {
|
|
1323
|
-
return /*#__PURE__*/ jsx(Combobox.Input, {
|
|
1324
|
-
"data-slot": "combobox-chip-input",
|
|
1325
|
-
className: clsx(chipsInput, className),
|
|
1326
|
-
...props
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
function useComboboxAnchor() {
|
|
1330
|
-
return useRef(null);
|
|
1331
|
-
}
|
|
1332
|
-
Combobox_Combobox.Value = Value;
|
|
1333
|
-
Combobox_Combobox.Trigger = Combobox_Trigger;
|
|
1334
|
-
Combobox_Combobox.Clear = Clear;
|
|
1335
|
-
Combobox_Combobox.Input = Combobox_Input;
|
|
1336
|
-
Combobox_Combobox.Content = Combobox_Content;
|
|
1337
|
-
Combobox_Combobox.List = Combobox_List;
|
|
1338
|
-
Combobox_Combobox.Item = Combobox_Item;
|
|
1339
|
-
Combobox_Combobox.Group = Combobox_Group;
|
|
1340
|
-
Combobox_Combobox.Label = Label;
|
|
1341
|
-
Combobox_Combobox.Collection = Collection;
|
|
1342
|
-
Combobox_Combobox.Empty = Empty;
|
|
1343
|
-
Combobox_Combobox.Separator = Combobox_Separator;
|
|
1344
|
-
Combobox_Combobox.Chips = Chips;
|
|
1345
|
-
Combobox_Combobox.Chip = Chip;
|
|
1346
|
-
Combobox_Combobox.ChipsInput = ChipsInput;
|
|
1347
1465
|
var Popover_styles_css_content = 'style__1xy4jvu2';
|
|
1348
1466
|
var styles_css_positioner = 'style__1xy4jvu3';
|
|
1349
1467
|
const createHandle = Popover.createHandle;
|
|
@@ -1384,7 +1502,7 @@ const ConfirmAction_useLogic_useLogic = ({ skipConfirm, onConfirm, confirmButton
|
|
|
1384
1502
|
};
|
|
1385
1503
|
const confirmButtonProps = {
|
|
1386
1504
|
variant: externalConfirmButtonProps?.isAccented ? 'destructive' : 'default',
|
|
1387
|
-
size: '
|
|
1505
|
+
size: 'small',
|
|
1388
1506
|
onClick: handleConfirm
|
|
1389
1507
|
};
|
|
1390
1508
|
const onActionComponentClick = ()=>{
|
|
@@ -1435,7 +1553,7 @@ const ConfirmAction = (props)=>{
|
|
|
1435
1553
|
className: actionsClass,
|
|
1436
1554
|
children: [
|
|
1437
1555
|
/*#__PURE__*/ jsx(Button_Button, {
|
|
1438
|
-
size: "
|
|
1556
|
+
size: "small",
|
|
1439
1557
|
variant: "ghost",
|
|
1440
1558
|
onClick: onCancel,
|
|
1441
1559
|
children: "Отмена"
|
|
@@ -1453,53 +1571,53 @@ const ConfirmAction = (props)=>{
|
|
|
1453
1571
|
});
|
|
1454
1572
|
};
|
|
1455
1573
|
var sizes = {
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1574
|
+
small: 'small__1o97kvm1',
|
|
1575
|
+
medium: 'medium__1o97kvm2',
|
|
1576
|
+
large: 'large__1o97kvm3'
|
|
1459
1577
|
};
|
|
1460
1578
|
var Image_styles_css_wrapper = 'style__1o97kvm0';
|
|
1461
1579
|
const Image_Image = (props)=>/*#__PURE__*/ jsx("img", {
|
|
1462
1580
|
alt: props.alt,
|
|
1463
1581
|
src: props.src,
|
|
1464
|
-
className: clsx_0(Image_styles_css_wrapper, sizes[props.size || '
|
|
1582
|
+
className: clsx_0(Image_styles_css_wrapper, sizes[props.size || 'medium'], props.className),
|
|
1465
1583
|
width: props.width,
|
|
1466
1584
|
height: props.height
|
|
1467
1585
|
});
|
|
1468
1586
|
const SIZE = {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1587
|
+
small: 'small',
|
|
1588
|
+
medium: 'medium',
|
|
1589
|
+
large: 'large'
|
|
1472
1590
|
};
|
|
1473
1591
|
const IMAGE_WIDTH = {
|
|
1474
|
-
[SIZE.
|
|
1475
|
-
[SIZE.
|
|
1476
|
-
[SIZE.
|
|
1592
|
+
[SIZE.small]: '239px',
|
|
1593
|
+
[SIZE.medium]: '323px',
|
|
1594
|
+
[SIZE.large]: '458px'
|
|
1477
1595
|
};
|
|
1478
1596
|
const IMAGE_HEIGHT = {
|
|
1479
|
-
[SIZE.
|
|
1480
|
-
[SIZE.
|
|
1481
|
-
[SIZE.
|
|
1597
|
+
[SIZE.small]: '119px',
|
|
1598
|
+
[SIZE.medium]: '161px',
|
|
1599
|
+
[SIZE.large]: '229px'
|
|
1482
1600
|
};
|
|
1483
1601
|
const MAX_INNER_WIDTH = {
|
|
1484
|
-
[SIZE.
|
|
1485
|
-
[SIZE.
|
|
1486
|
-
[SIZE.
|
|
1602
|
+
[SIZE.small]: '384px',
|
|
1603
|
+
[SIZE.medium]: '400px',
|
|
1604
|
+
[SIZE.large]: '460px'
|
|
1487
1605
|
};
|
|
1488
1606
|
const TITLE_HEADER_LEVEL = {
|
|
1489
|
-
[SIZE.
|
|
1490
|
-
[SIZE.
|
|
1491
|
-
[SIZE.
|
|
1607
|
+
[SIZE.small]: 'subtitle1',
|
|
1608
|
+
[SIZE.medium]: 'h6',
|
|
1609
|
+
[SIZE.large]: 'h5'
|
|
1492
1610
|
};
|
|
1493
1611
|
var descriptionClass = 'style__1nenzg05';
|
|
1494
1612
|
var footerClass = 'style__1nenzg06';
|
|
1495
1613
|
var innerContainer = 'style__1nenzg04';
|
|
1496
1614
|
var styles_css_sizes = {
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1615
|
+
small: 'small__1nenzg01',
|
|
1616
|
+
medium: 'medium__1nenzg02',
|
|
1617
|
+
large: 'large__1nenzg03'
|
|
1500
1618
|
};
|
|
1501
1619
|
var Placeholder_styles_css_wrapper = 'style__1nenzg00';
|
|
1502
|
-
const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = '
|
|
1620
|
+
const Placeholder = ({ className, title, imgSrc, imgAlt, description, actions, size = 'small', renderImage })=>{
|
|
1503
1621
|
const RenderImage = useMemo(()=>renderImage || Image_Image, [
|
|
1504
1622
|
renderImage
|
|
1505
1623
|
]);
|
|
@@ -1912,7 +2030,7 @@ function Header_Header({ columns, height, sticky }) {
|
|
|
1912
2030
|
});
|
|
1913
2031
|
}
|
|
1914
2032
|
var DataGrid_styles_css_container = 'style__1gqvluf0';
|
|
1915
|
-
var
|
|
2033
|
+
var DataGrid_styles_css_disabled = 'style__1gqvluf3';
|
|
1916
2034
|
var fullHeight = 'style__1gqvluf2';
|
|
1917
2035
|
var styles_css_loading = 'style__1gqvluf4';
|
|
1918
2036
|
var table = 'style__1gqvluf1';
|
|
@@ -1928,7 +2046,7 @@ function DataGrid({ rows, columns, height = '100%', className, rowHeight = 40, h
|
|
|
1928
2046
|
children: [
|
|
1929
2047
|
/*#__PURE__*/ jsxs("table", {
|
|
1930
2048
|
className: clsx(table, {
|
|
1931
|
-
[
|
|
2049
|
+
[DataGrid_styles_css_disabled]: isDisabled,
|
|
1932
2050
|
[styles_css_loading]: isLoading,
|
|
1933
2051
|
[fullHeight]: isFullHeight
|
|
1934
2052
|
}, className),
|
|
@@ -2208,7 +2326,7 @@ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
|
|
|
2208
2326
|
...props,
|
|
2209
2327
|
key: nestedActionName,
|
|
2210
2328
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
2211
|
-
size: "
|
|
2329
|
+
size: "small",
|
|
2212
2330
|
onClick: onActionClick(onClickNested),
|
|
2213
2331
|
children: nestedActionName
|
|
2214
2332
|
})
|
|
@@ -2246,7 +2364,7 @@ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled
|
|
|
2246
2364
|
onClick: onActionClick(onClick),
|
|
2247
2365
|
isLoading: isLoading,
|
|
2248
2366
|
variant: "ghost",
|
|
2249
|
-
size: "
|
|
2367
|
+
size: "small",
|
|
2250
2368
|
fullWidth: true,
|
|
2251
2369
|
children: name
|
|
2252
2370
|
})
|
|
@@ -2359,7 +2477,7 @@ const ErrorState = ({ onRetry })=>/*#__PURE__*/ jsxs("li", {
|
|
|
2359
2477
|
children: ERROR_MESSAGE
|
|
2360
2478
|
}),
|
|
2361
2479
|
/*#__PURE__*/ jsx(Button_Button, {
|
|
2362
|
-
size: "
|
|
2480
|
+
size: "small",
|
|
2363
2481
|
onClick: onRetry,
|
|
2364
2482
|
children: "Попробовать снова"
|
|
2365
2483
|
})
|
|
@@ -2463,9 +2581,9 @@ var errorClass = 'style__1blk89u5';
|
|
|
2463
2581
|
var fullWidthClass = 'style__1blk89u3';
|
|
2464
2582
|
var styles_css_input = 'style__1blk89u6';
|
|
2465
2583
|
var Input_styles_css_sizes = {
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2584
|
+
small: 'small__1blk89u7',
|
|
2585
|
+
medium: 'medium__1blk89u8',
|
|
2586
|
+
large: 'large__1blk89u9'
|
|
2469
2587
|
};
|
|
2470
2588
|
var Input_styles_css_variants = {
|
|
2471
2589
|
outlined: 'outlined__1blk89u1',
|
|
@@ -2473,7 +2591,7 @@ var Input_styles_css_variants = {
|
|
|
2473
2591
|
};
|
|
2474
2592
|
var withEndAdornment = 'style__1blk89uc';
|
|
2475
2593
|
var withStartAdornment = 'style__1blk89ub';
|
|
2476
|
-
const Input_Input = ({ error, variant = 'outlined', size = '
|
|
2594
|
+
const Input_Input = ({ error, variant = 'outlined', size = 'medium', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
2477
2595
|
className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
|
|
2478
2596
|
[errorClass]: error
|
|
2479
2597
|
}, {
|
|
@@ -2503,19 +2621,6 @@ const Input_Input = ({ error, variant = 'outlined', size = 'md', startAdornment,
|
|
|
2503
2621
|
})
|
|
2504
2622
|
]
|
|
2505
2623
|
});
|
|
2506
|
-
var label_css_disabled = 'style__c31e141';
|
|
2507
|
-
var label_css_error = 'style__c31e142';
|
|
2508
|
-
var required = 'style__c31e143';
|
|
2509
|
-
var label_css_root = 'Label__c31e140';
|
|
2510
|
-
const Label_Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
|
|
2511
|
-
"data-slot": "label",
|
|
2512
|
-
className: clsx(label_css_root, {
|
|
2513
|
-
[label_css_disabled]: disabled,
|
|
2514
|
-
[label_css_error]: error,
|
|
2515
|
-
[required]: props.required
|
|
2516
|
-
}, className),
|
|
2517
|
-
...props
|
|
2518
|
-
});
|
|
2519
2624
|
var TextField_styles_css_container = 'style__kqu4y20';
|
|
2520
2625
|
var TextField_styles_css_disabledClass = 'style__kqu4y23';
|
|
2521
2626
|
var styles_css_errorClass = 'style__kqu4y24';
|
|
@@ -2527,7 +2632,7 @@ const TextField = ({ label, helperText, className, disabled, fullWidth, ref, lab
|
|
|
2527
2632
|
[styles_css_fullWidthClass]: fullWidth
|
|
2528
2633
|
}, className),
|
|
2529
2634
|
children: [
|
|
2530
|
-
label && /*#__PURE__*/ jsx(
|
|
2635
|
+
label && /*#__PURE__*/ jsx(Label, {
|
|
2531
2636
|
htmlFor: props.id || label,
|
|
2532
2637
|
disabled: disabled,
|
|
2533
2638
|
required: props.required,
|
|
@@ -2837,7 +2942,7 @@ function Dialog_Content({ className, children, showCloseButton = true, ...props
|
|
|
2837
2942
|
"data-slot": "dialog-close",
|
|
2838
2943
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
2839
2944
|
variant: "ghost",
|
|
2840
|
-
size: "
|
|
2945
|
+
size: "iconSmall",
|
|
2841
2946
|
className: styles_css_closeButton
|
|
2842
2947
|
}),
|
|
2843
2948
|
children: [
|
|
@@ -3772,7 +3877,7 @@ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div
|
|
|
3772
3877
|
})
|
|
3773
3878
|
})
|
|
3774
3879
|
}),
|
|
3775
|
-
/*#__PURE__*/ jsx(
|
|
3880
|
+
/*#__PURE__*/ jsx(Label, {
|
|
3776
3881
|
htmlFor: props.id || props.value,
|
|
3777
3882
|
"data-slot": "radio-group-label",
|
|
3778
3883
|
children: label
|
|
@@ -3839,9 +3944,9 @@ var activeClass = 'style__1pnwkko1';
|
|
|
3839
3944
|
var RangeInput_styles_css_container = 'style__1pnwkko0';
|
|
3840
3945
|
var inputClass = 'style__1pnwkko6';
|
|
3841
3946
|
var RangeInput_styles_css_sizes = {
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3947
|
+
small: 'small__1pnwkko2',
|
|
3948
|
+
medium: 'medium__1pnwkko3',
|
|
3949
|
+
large: 'large__1pnwkko4'
|
|
3845
3950
|
};
|
|
3846
3951
|
var sliderClass = 'style__1pnwkko7';
|
|
3847
3952
|
var styles_css_textClass = 'style__1pnwkko5';
|
|
@@ -3894,7 +3999,7 @@ const RangeInput_useLogic_useLogic_useLogic = ({ min, max, maxValue, minValue, o
|
|
|
3894
3999
|
onConfirm
|
|
3895
4000
|
};
|
|
3896
4001
|
};
|
|
3897
|
-
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = '
|
|
4002
|
+
function RangeInput({ min, max, onChange, minValue, maxValue, width = 150, unit = '', size = 'medium', className, isActive, minInputRef, maxInputRef }) {
|
|
3898
4003
|
const { onMinValueChange, onMaxValueChange, minVal, maxVal, onKeyDown, onValueChange, onConfirm, minId, maxId } = RangeInput_useLogic_useLogic_useLogic({
|
|
3899
4004
|
min,
|
|
3900
4005
|
max,
|
|
@@ -4003,9 +4108,9 @@ var Select_styles_css_positioner = 'style__5ilg7o7';
|
|
|
4003
4108
|
var scrollButton = 'style__5ilg7o6';
|
|
4004
4109
|
var Select_styles_css_separator = 'style__5ilg7od';
|
|
4005
4110
|
var Select_styles_css_sizes = {
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4111
|
+
small: 'small__5ilg7o3',
|
|
4112
|
+
medium: 'medium__5ilg7o4',
|
|
4113
|
+
large: 'large__5ilg7o5'
|
|
4009
4114
|
};
|
|
4010
4115
|
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
4011
4116
|
var styles_css_viewport = 'style__5ilg7o9';
|
|
@@ -4017,7 +4122,7 @@ const Select_Select = ({ onValueChange, ...props })=>/*#__PURE__*/ jsx(Select.Ro
|
|
|
4017
4122
|
});
|
|
4018
4123
|
const SelectGroup = Select.Group;
|
|
4019
4124
|
const SelectValue = Select.Value;
|
|
4020
|
-
const SelectTrigger = ({ className, children, size = '
|
|
4125
|
+
const SelectTrigger = ({ className, children, size = 'medium', ...props })=>/*#__PURE__*/ jsxs(Select.Trigger, {
|
|
4021
4126
|
"data-slot": "select-trigger",
|
|
4022
4127
|
className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
|
|
4023
4128
|
...props,
|
|
@@ -4150,7 +4255,7 @@ function Sheet_Content({ className, children, side = 'right', showCloseButton =
|
|
|
4150
4255
|
render: /*#__PURE__*/ jsx(Button_Button, {
|
|
4151
4256
|
variant: "ghost",
|
|
4152
4257
|
className: Sheet_styles_css_closeButton,
|
|
4153
|
-
size: "
|
|
4258
|
+
size: "iconSmall"
|
|
4154
4259
|
}),
|
|
4155
4260
|
children: [
|
|
4156
4261
|
/*#__PURE__*/ jsx(XIcon, {}),
|
|
@@ -4211,7 +4316,7 @@ var gap = 'style__1xiua9n3';
|
|
|
4211
4316
|
var Sidebar_styles_css_group = 'style__1xiua9ni';
|
|
4212
4317
|
var groupAction = 'style__1xiua9nk';
|
|
4213
4318
|
var groupContent = 'style__1xiua9nl';
|
|
4214
|
-
var
|
|
4319
|
+
var styles_css_groupLabel = 'style__1xiua9nj';
|
|
4215
4320
|
var Sidebar_styles_css_header = 'style__1xiua9ne';
|
|
4216
4321
|
var inner = 'style__1xiua9n6';
|
|
4217
4322
|
var Sidebar_styles_css_input = 'style__1xiua9nd';
|
|
@@ -4221,9 +4326,9 @@ var menuAction = 'style__1xiua9nu';
|
|
|
4221
4326
|
var menuBadge = 'style__1xiua9nv';
|
|
4222
4327
|
var menuButton = 'style__1xiua9no';
|
|
4223
4328
|
var menuButtonSizes = {
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4329
|
+
medium: 'medium__1xiua9nr',
|
|
4330
|
+
small: 'small__1xiua9ns',
|
|
4331
|
+
large: 'large__1xiua9nt'
|
|
4227
4332
|
};
|
|
4228
4333
|
var menuButtonVariants = {
|
|
4229
4334
|
default: 'default__1xiua9np',
|
|
@@ -4234,8 +4339,8 @@ var menuSkeleton = 'style__1xiua9nw';
|
|
|
4234
4339
|
var menuSub = 'style__1xiua9n10';
|
|
4235
4340
|
var menuSubButton = 'style__1xiua9n12';
|
|
4236
4341
|
var menuSubButtonSizes = {
|
|
4237
|
-
|
|
4238
|
-
|
|
4342
|
+
small: 'small__1xiua9n13',
|
|
4343
|
+
medium: 'medium__1xiua9n14'
|
|
4239
4344
|
};
|
|
4240
4345
|
var menuSubItem = 'style__1xiua9n11';
|
|
4241
4346
|
var mobileContent = 'style__1xiua9n7';
|
|
@@ -4484,14 +4589,14 @@ function Sidebar_Group({ className, ...props }) {
|
|
|
4484
4589
|
...props
|
|
4485
4590
|
});
|
|
4486
4591
|
}
|
|
4487
|
-
function
|
|
4592
|
+
function Sidebar_GroupLabel({ className, render, ...props }) {
|
|
4488
4593
|
return useRender({
|
|
4489
4594
|
defaultTagName: 'div',
|
|
4490
4595
|
render,
|
|
4491
4596
|
props: mergeProps({
|
|
4492
4597
|
'data-slot': 'sidebar-group-label',
|
|
4493
4598
|
'data-sidebar': 'group-label',
|
|
4494
|
-
className: clsx(
|
|
4599
|
+
className: clsx(styles_css_groupLabel, className)
|
|
4495
4600
|
}, props)
|
|
4496
4601
|
});
|
|
4497
4602
|
}
|
|
@@ -4541,7 +4646,7 @@ function getTooltipProps(tooltip) {
|
|
|
4541
4646
|
...props
|
|
4542
4647
|
};
|
|
4543
4648
|
}
|
|
4544
|
-
function MenuButton({ isActive = false, variant = 'default', size = '
|
|
4649
|
+
function MenuButton({ isActive = false, variant = 'default', size = 'medium', tooltip, className, render, ...props }) {
|
|
4545
4650
|
const { isMobile, state } = useSidebar();
|
|
4546
4651
|
const button = useRender({
|
|
4547
4652
|
defaultTagName: 'button',
|
|
@@ -4621,7 +4726,7 @@ function MenuSubItem({ className, ...props }) {
|
|
|
4621
4726
|
...props
|
|
4622
4727
|
});
|
|
4623
4728
|
}
|
|
4624
|
-
function MenuSubButton({ size = '
|
|
4729
|
+
function MenuSubButton({ size = 'medium', isActive = false, className, render, ...props }) {
|
|
4625
4730
|
return useRender({
|
|
4626
4731
|
defaultTagName: 'a',
|
|
4627
4732
|
render,
|
|
@@ -4645,7 +4750,7 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
|
4645
4750
|
Separator: Sidebar_Separator,
|
|
4646
4751
|
Content: Sidebar_Content,
|
|
4647
4752
|
Group: Sidebar_Group,
|
|
4648
|
-
GroupLabel:
|
|
4753
|
+
GroupLabel: Sidebar_GroupLabel,
|
|
4649
4754
|
GroupAction: GroupAction,
|
|
4650
4755
|
GroupContent: GroupContent,
|
|
4651
4756
|
Menu: Sidebar_Menu,
|
|
@@ -4661,9 +4766,9 @@ const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
|
4661
4766
|
var Tabs_styles_css_contentClass = 'style__hworoa5';
|
|
4662
4767
|
var listClass = 'style__hworoa0';
|
|
4663
4768
|
var Tabs_styles_css_sizes = {
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4769
|
+
small: 'small__hworoa2',
|
|
4770
|
+
medium: 'medium__hworoa3',
|
|
4771
|
+
large: 'large__hworoa4'
|
|
4667
4772
|
};
|
|
4668
4773
|
var styles_css_triggerClass = 'style__hworoa1';
|
|
4669
4774
|
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.Panel, {
|
|
@@ -4676,7 +4781,7 @@ const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.List, {
|
|
|
4676
4781
|
className: clsx(listClass, className),
|
|
4677
4782
|
...props
|
|
4678
4783
|
});
|
|
4679
|
-
const TabsTrigger = ({ className, size = '
|
|
4784
|
+
const TabsTrigger = ({ className, size = 'medium', ...props })=>/*#__PURE__*/ jsx(Tabs.Tab, {
|
|
4680
4785
|
"data-slot": "tabs-trigger",
|
|
4681
4786
|
className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
|
|
4682
4787
|
...props
|
|
@@ -4718,7 +4823,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4718
4823
|
return /*#__PURE__*/ jsxs("div", {
|
|
4719
4824
|
className: clsx(toggleGroup_css_containerClass, className),
|
|
4720
4825
|
children: [
|
|
4721
|
-
label && /*#__PURE__*/ jsx(
|
|
4826
|
+
label && /*#__PURE__*/ jsx(Label, {
|
|
4722
4827
|
className: toggleGroup_css_labelClass,
|
|
4723
4828
|
children: label
|
|
4724
4829
|
}),
|
|
@@ -4742,4 +4847,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4742
4847
|
]
|
|
4743
4848
|
});
|
|
4744
4849
|
};
|
|
4745
|
-
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input,
|
|
4850
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, variants, weights };
|