@povio/ui 5.0.0-rc.8 → 5.0.0-rc.9
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/README.md +48 -0
- package/dist/Alert-CnvEb1D_.js +244 -0
- package/dist/AppCanvasPage--RG31Yyv.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{button.cva-rv5Uq4aW.js → Button-C5rv4Cr2.js} +84 -1
- package/dist/{Calendar-BxtOuqIM.js → Calendar-BTjajO6i.js} +3 -3
- package/dist/{Checkbox-DYxXYfKL.js → Checkbox-CV1ILXXO.js} +2 -3
- package/dist/{checkbox.cva-IfOByVLA.js → CheckboxCheckmark-CpC3wlMs.js} +42 -1
- package/dist/{ComponentGallery-Da70Y4_Q.js → ComponentGallery-C6exitZN.js} +17 -17
- package/dist/{DatePicker-wulRNGyL.js → DatePicker-DOLL7mkc.js} +6 -6
- package/dist/{DatePickerInput-BB_vPlKu.js → DatePickerInput-BLBcySA2.js} +3 -3
- package/dist/{DateRangePicker-B0tMVREG.js → DateRangePicker-BF-1CztH.js} +6 -6
- package/dist/{DateTimePicker-WGMr0bEH.js → DateTimePicker-Cj0qvJUz.js} +6 -6
- package/dist/{FileInput-DP105Iy9.js → FileInput-Br5DQaGQ.js} +2 -2
- package/dist/{FileUpload-CgNDIvzg.js → FileUpload--7ub3EZO.js} +3 -3
- package/dist/{FormField-AY25LzbW.js → FormField-B99dLt8o.js} +96 -3
- package/dist/{FormFieldError-BVAO5p7H.js → FormFieldError-DeOHHLo2.js} +13 -2
- package/dist/{InputItem-ZeN-aIz8.js → InputItem-CIxbTxZu.js} +11 -11
- package/dist/{Inputs-BC5q5Cvj.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/{NumberRangeInput-B_sMIpP1.js → NumberRangeInput-B8-LHfg3.js} +2 -2
- package/dist/{PaginationList-DptMNpNs.js → PaginationList-DtvuP63b.js} +1 -1
- package/dist/{Progress-Du30L4_s.js → Progress-B3mY9rIP.js} +27 -2
- package/dist/{RadioGroup-CUGNSJql.js → RadioGroup-DOw3PRoX.js} +82 -3
- package/dist/{RichTextEditor-VDOpj7sk.js → RichTextEditor-D4yN7Wj7.js} +3 -3
- package/dist/{Select-B2pAfwRk.js → Select-UR0ec2Ux.js} +2 -2
- package/dist/{Slider-Clc1szFY.js → Slider-CzEmKYBF.js} +1 -1
- package/dist/{Switch-CimmMqEk.js → Switch-CqnGEdeD.js} +27 -3
- package/dist/{Table-CqepqSfe.js → Table-BN2_J_Ne.js} +1 -2
- package/dist/{tag.cva-B3MudLeC.js → Tag-DPg5sL1Z.js} +92 -1
- package/dist/{TextArea-B3teIhsJ.js → TextArea-D8WkKsGn.js} +5 -3
- package/dist/{TimePicker-CU_yL2sY.js → TimePicker-C4taAOFQ.js} +4 -4
- package/dist/{Toast-DPbnLlBi.js → Toast-DtG3pA61.js} +1 -1
- package/dist/{ToggleGroup-BULVwErp.js → ToggleGroup-DOk27fgI.js} +1 -1
- package/dist/UIConfigurator-BwLRfe-a.js +6704 -0
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/alert.js +1 -116
- package/dist/components/autocomplete.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/inline-icon-button.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/number-field.js +3 -3
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/query-autocomplete.js +1 -1
- package/dist/components/query-select.js +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/split-button.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.js +1 -93
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/app-canvas-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +2 -69
- package/dist/config/app-canvas.js +2 -2253
- package/dist/config/ui-configurator.js +2 -5383
- package/dist/{datePickerValue.utils-CIFHjKwv.js → datePickerValue.utils-DCgoSrP3.js} +1 -1
- package/dist/index.js +19 -24
- package/dist/rhf/checkbox.js +1 -1
- package/dist/rhf/date-picker.js +1 -1
- package/dist/rhf/date-range-picker.js +1 -1
- package/dist/rhf/date-time-picker.js +1 -1
- package/dist/rhf/file-input.js +1 -1
- package/dist/rhf/file-upload.js +1 -1
- package/dist/rhf/number-range-input.js +1 -1
- package/dist/rhf/radio-group.js +1 -1
- package/dist/rhf/rich-text-editor.js +1 -1
- package/dist/rhf/select.js +1 -1
- package/dist/rhf/slider.js +1 -1
- package/dist/rhf/switch.js +1 -1
- package/dist/rhf/text-area.js +1 -1
- package/dist/rhf/time-picker.js +1 -1
- package/dist/rhf/toggle-group.js +1 -1
- package/dist/rhf.js +19 -24
- package/dist/rich-text-editor.js +1 -1
- package/dist/{staticDateTimeSegments-sf_ND7zL.js → staticDateTimeSegments-DtU63_dw.js} +1 -1
- package/dist/{staticSelect.utils-CzlnLPPd.js → staticSelect.utils-uHa8f_c6.js} +3 -3
- package/dist/styles/app-canvas.css +7 -0
- package/dist/{table.cva-DlMT-zLD.js → table.cva-D5oQ-QvA.js} +54 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.js +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/tanstack.js +31 -39
- package/dist/{toast.runtime-Zf-XyAC3.js → toast.runtime-cxex9e4E.js} +1 -1
- package/dist/{useFieldAccessibility-CcBTgGfm.js → useFieldAccessibility-ScC6Mtd5.js} +1 -1
- package/dist/{useFormAutosave-BD_TFqDF.js → useFormAutosave-DfuP7drj.js} +1 -1
- package/dist/{useStaticInputHandoff-kkQrc6DA.js → useStaticInputHandoff-NeZVnci-.js} +1 -1
- package/dist/{useTableColumnConfig-aVUWC2Mp.js → useTableColumnConfig-Di0_w80v.js} +2 -2
- package/package.json +10 -1
- package/dist/Button-BPTvffuk.js +0 -86
- package/dist/CheckboxCheckmark-D_uc9pon.js +0 -44
- package/dist/TextArea.cva-Bb73hriz.js +0 -5
- package/dist/formFieldError.cva-CsXaQRHX.js +0 -14
- package/dist/formFieldHelper.cva-B8F9LmsE.js +0 -96
- package/dist/grip-vertical-BVxcjdfr.js +0 -54
- package/dist/inspection-model-LuI36xTg.js +0 -1339
- package/dist/progress.cva-WQB8BGbk.js +0 -28
- package/dist/radio.cva-DGbvTymp.js +0 -82
- package/dist/status.cva-6HxNR4EP.js +0 -130
- package/dist/switch.cva-BX3HOxbL.js +0 -27
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region src/app-canvas/route-model.d.ts
|
|
2
|
+
/** Structural TanStack Router contract; no router runtime is bundled with UI. */
|
|
3
|
+
interface CanvasRoute {
|
|
4
|
+
id?: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
fullPath?: string;
|
|
7
|
+
children?: readonly CanvasRoute[] | object;
|
|
8
|
+
options?: {
|
|
9
|
+
id?: string;
|
|
10
|
+
path?: string;
|
|
11
|
+
component?: unknown;
|
|
12
|
+
lazyFn?: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface CanvasRouter {
|
|
16
|
+
routeTree: CanvasRoute;
|
|
17
|
+
routesById?: object;
|
|
18
|
+
}
|
|
19
|
+
interface CanvasRouteExample {
|
|
20
|
+
params?: Record<string, string>;
|
|
21
|
+
search?: Record<string, unknown>;
|
|
22
|
+
title?: string;
|
|
23
|
+
}
|
|
24
|
+
interface DiscoverCanvasPagesOptions {
|
|
25
|
+
examples?: Record<string, CanvasRouteExample>;
|
|
26
|
+
exclude?: string[];
|
|
27
|
+
excludePaths?: string[];
|
|
28
|
+
}
|
|
29
|
+
interface CanvasPage {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
path: string;
|
|
33
|
+
href?: string;
|
|
34
|
+
parentId?: string;
|
|
35
|
+
missingParams: string[];
|
|
36
|
+
kind: "page" | "unresolved";
|
|
37
|
+
}
|
|
38
|
+
interface CanvasPosition {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
}
|
|
42
|
+
interface CanvasPageLayout extends CanvasPage, CanvasPosition {
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
/** Catalog route destinations without executing loaders or needing every dynamic parameter. */
|
|
47
|
+
declare function discoverCanvasPages(router: CanvasRouter, options?: DiscoverCanvasPagesOptions): CanvasPage[];
|
|
48
|
+
/** Deterministic masonry placement. Full measured heights (including 20,000px pages) are never capped. */
|
|
49
|
+
declare function layoutCanvasPages(pages: readonly CanvasPage[], width: number, heights: Record<string, number>, positions?: Record<string, CanvasPosition>): CanvasPageLayout[];
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/app-canvas/AppCanvas.d.ts
|
|
52
|
+
interface CanvasBreakpoint {
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
}
|
|
58
|
+
declare const defaultCanvasBreakpoints: CanvasBreakpoint[];
|
|
59
|
+
interface AppCanvasProps {
|
|
60
|
+
router: CanvasRouter;
|
|
61
|
+
examples?: Record<string, CanvasRouteExample>;
|
|
62
|
+
exclude?: string[];
|
|
63
|
+
excludePaths?: string[];
|
|
64
|
+
breakpoints?: CanvasBreakpoint[];
|
|
65
|
+
storageKey?: string;
|
|
66
|
+
frameUrl?: (page: CanvasPage) => string;
|
|
67
|
+
}
|
|
68
|
+
/** Live route artboards. The camera transforms only the canvas, never the iframe viewport width. */
|
|
69
|
+
declare function AppCanvas({ router, examples, exclude, excludePaths, breakpoints, storageKey, frameUrl }: AppCanvasProps): import("react").JSX.Element;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/app-canvas/AppCanvasPage.d.ts
|
|
72
|
+
declare const APP_CANVAS_PATH = "/_canvas";
|
|
73
|
+
interface AppCanvasPageProps extends AppCanvasProps {
|
|
74
|
+
/** Excluded from the catalog to prevent recursively rendering the canvas itself. */
|
|
75
|
+
canvasPath?: string;
|
|
76
|
+
}
|
|
77
|
+
/** Ready-made route page. Mount beneath the app's UIConfigurationProvider. */
|
|
78
|
+
declare function AppCanvasPage({ canvasPath, excludePaths, ...props }: AppCanvasPageProps): import("react").JSX.Element | null;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { AppCanvasProps as a, CanvasPage as c, CanvasRouter as d, discoverCanvasPages as f, AppCanvas as i, CanvasPosition as l, AppCanvasPage as n, CanvasBreakpoint as o, layoutCanvasPages as p, AppCanvasPageProps as r, defaultCanvasBreakpoints as s, APP_CANVAS_PATH as t, CanvasRouteExample as u };
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
1
3
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
|
+
import { t as $984a1fc08f87e4f3$export$a6c7ac8248d6e38a } from "./Link-FupWOW1f.js";
|
|
5
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
6
|
+
import { t as $75afe627ae0cc0fa$export$d2b052e7b4be1756 } from "./ToggleButton-BW1ensey.js";
|
|
7
|
+
import { t as LinkContext } from "./link.context-J7aQtMOr.js";
|
|
8
|
+
import { t as ButtonContent } from "./ButtonContent-c7lJayVQ.js";
|
|
2
9
|
import { n as uiOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
3
10
|
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
12
|
//#region src/components/buttons/Button/button.cva.ts
|
|
5
13
|
const buttonDefinition = UIOverrides.defineConfig({
|
|
6
14
|
base: [
|
|
@@ -420,4 +428,79 @@ const buttonTypography = compoundMapper({ default: {
|
|
|
420
428
|
className: "font-bold"
|
|
421
429
|
} });
|
|
422
430
|
//#endregion
|
|
423
|
-
|
|
431
|
+
//#region src/components/buttons/Button/Button.tsx
|
|
432
|
+
const getContentIconPosition = ({ icon, startIcon, endIcon, iconPosition }) => {
|
|
433
|
+
if (startIcon || !endIcon && icon && iconPosition !== "right") return "left";
|
|
434
|
+
if (endIcon || icon) return "right";
|
|
435
|
+
return "none";
|
|
436
|
+
};
|
|
437
|
+
const Button = ({ icon: Icon, startIcon, endIcon, iconPosition, children, isLoading: isLoadingProp, loading, className, link, iconClassName, noDisableWhenLoading, disableWhileLoading, contentRef, variant: variantProp, size: sizeProp, width: widthProp, fullWidth, ...props }) => {
|
|
438
|
+
const linkContext = LinkContext.useLinkContext();
|
|
439
|
+
const uiConfig = UIConfig.useConfig();
|
|
440
|
+
const variant = variantProp ?? uiConfig.button.variant;
|
|
441
|
+
const size = sizeProp ?? uiConfig.button.size;
|
|
442
|
+
const width = fullWidth ? "fill" : widthProp;
|
|
443
|
+
const isLoading = isLoadingProp ?? loading;
|
|
444
|
+
const shouldDisableWhileLoading = disableWhileLoading ?? !noDisableWhenLoading;
|
|
445
|
+
const contentIconPosition = getContentIconPosition({
|
|
446
|
+
icon: Icon,
|
|
447
|
+
startIcon,
|
|
448
|
+
endIcon,
|
|
449
|
+
iconPosition
|
|
450
|
+
});
|
|
451
|
+
const buttonCva = UIOverrides.useCva("button.cva", buttonDefinition);
|
|
452
|
+
const buttonSizeCva = UIOverrides.useCva("button.sizeCva", buttonSizeDefinition);
|
|
453
|
+
const buttonContentCva = UIOverrides.useCva("button.contentCva", buttonContentDefinition);
|
|
454
|
+
const buttonIconSizeCva = UIOverrides.useCva("button.iconSize", buttonIconSizeDefinition);
|
|
455
|
+
const typographyMap = UIOverrides.useMapper("button.typography", buttonTypography);
|
|
456
|
+
const Component = (() => {
|
|
457
|
+
if (link) return linkContext?.LinkComponent ?? $984a1fc08f87e4f3$export$a6c7ac8248d6e38a;
|
|
458
|
+
if (props.toggle != null) return $75afe627ae0cc0fa$export$d2b052e7b4be1756;
|
|
459
|
+
return $7705c033048f6da7$export$353f5b6fc5456de1;
|
|
460
|
+
})();
|
|
461
|
+
if (link && !link.to && link.href) link.to = link.href;
|
|
462
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
463
|
+
...props,
|
|
464
|
+
...link,
|
|
465
|
+
isDisabled: props.isDisabled || isLoading && shouldDisableWhileLoading,
|
|
466
|
+
className: clsx(buttonCva({
|
|
467
|
+
...props,
|
|
468
|
+
variant,
|
|
469
|
+
size,
|
|
470
|
+
width,
|
|
471
|
+
className
|
|
472
|
+
}), buttonSizeCva({
|
|
473
|
+
...props,
|
|
474
|
+
variant,
|
|
475
|
+
size
|
|
476
|
+
}), buttonContentCva({
|
|
477
|
+
...props,
|
|
478
|
+
variant,
|
|
479
|
+
size,
|
|
480
|
+
iconPosition: contentIconPosition
|
|
481
|
+
})),
|
|
482
|
+
children: /* @__PURE__ */ jsx(ButtonContent, {
|
|
483
|
+
ref: contentRef,
|
|
484
|
+
isLoading,
|
|
485
|
+
icon: Icon,
|
|
486
|
+
startIcon,
|
|
487
|
+
endIcon,
|
|
488
|
+
content: children,
|
|
489
|
+
hideText: props.iconOnly,
|
|
490
|
+
iconPosition,
|
|
491
|
+
iconClassName: buttonIconSizeCva({
|
|
492
|
+
...props,
|
|
493
|
+
variant,
|
|
494
|
+
size,
|
|
495
|
+
className: iconClassName
|
|
496
|
+
}),
|
|
497
|
+
typography: typographyMap({
|
|
498
|
+
...props,
|
|
499
|
+
variant,
|
|
500
|
+
size
|
|
501
|
+
})
|
|
502
|
+
})
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
//#endregion
|
|
506
|
+
export { buttonSizeDefinition as a, buttonIconSizeDefinition as i, buttonContentDefinition as n, buttonDefinition as r, Button as t };
|
|
@@ -2,7 +2,7 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
|
2
2
|
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
3
3
|
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
4
4
|
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
5
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-
|
|
5
|
+
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-BLBcySA2.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
7
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
8
8
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
@@ -13,8 +13,8 @@ import { BadgeButton } from "./components/badge-button.js";
|
|
|
13
13
|
import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
|
|
14
14
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
15
15
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-CLDS_LRZ.js";
|
|
16
|
-
import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-
|
|
17
|
-
import { n as TimePickerForm } from "./datePickerValue.utils-
|
|
16
|
+
import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
17
|
+
import { n as TimePickerForm } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
18
18
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
19
19
|
import { c } from "react/compiler-runtime";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
2
|
+
import { c as checkboxIndicatorClass, l as checkboxTypography, n as checkboxContentClassName, t as CheckboxCheckmark } from "./CheckboxCheckmark-CpC3wlMs.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
@@ -8,8 +8,7 @@ import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D2MPZ3sY.
|
|
|
8
8
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-DlQcyN1f.js";
|
|
9
9
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
10
10
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
11
|
-
import { t as FormFieldError } from "./FormFieldError-
|
|
12
|
-
import { c as checkboxTypography, s as checkboxIndicatorClass, t as checkboxContentClassName } from "./checkbox.cva-IfOByVLA.js";
|
|
11
|
+
import { t as FormFieldError } from "./FormFieldError-DeOHHLo2.js";
|
|
13
12
|
import { t as CheckContent } from "./CheckContent-D7sZPmzx.js";
|
|
14
13
|
import $ahdqC$react, { createContext, forwardRef, memo, useContext, useMemo } from "react";
|
|
15
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
+
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
+
import { t as Check } from "./check-DYMBkp_Z.js";
|
|
1
3
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
4
|
import { t as uiGroupOutlineClass } from "./outline.clsx-50W_vNDl.js";
|
|
3
5
|
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/minus.mjs
|
|
8
|
+
/**
|
|
9
|
+
* @license lucide-react v1.43.0 - ISC
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the ISC license.
|
|
12
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
const __iconData = {
|
|
15
|
+
name: "minus",
|
|
16
|
+
size: 24,
|
|
17
|
+
node: [["path", {
|
|
18
|
+
d: "M5 12h14",
|
|
19
|
+
key: "1ays0h"
|
|
20
|
+
}]]
|
|
21
|
+
};
|
|
22
|
+
__iconData.node;
|
|
23
|
+
const Minus = createLucideIcon(__iconData);
|
|
24
|
+
//#endregion
|
|
4
25
|
//#region src/components/inputs/Checkbox/checkbox.cva.ts
|
|
5
26
|
const checkboxDefinition = UIOverrides.defineConfig({
|
|
6
27
|
base: [
|
|
@@ -134,4 +155,24 @@ const checkboxIconDefinition = UIOverrides.defineConfig({
|
|
|
134
155
|
}
|
|
135
156
|
});
|
|
136
157
|
//#endregion
|
|
137
|
-
|
|
158
|
+
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
159
|
+
const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Check, indeterminateIcon: IndeterminateIcon = Minus, ...props }) => {
|
|
160
|
+
const checkboxCva = UIOverrides.useCva("checkbox.cva", checkboxDefinition);
|
|
161
|
+
const checkboxIconCva = UIOverrides.useCva("checkbox.iconCva", checkboxIconDefinition);
|
|
162
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
163
|
+
className: checkboxCva({
|
|
164
|
+
variant,
|
|
165
|
+
...props,
|
|
166
|
+
className
|
|
167
|
+
}),
|
|
168
|
+
children: [/* @__PURE__ */ jsx(SelectedIcon, { className: checkboxIconCva({
|
|
169
|
+
...props,
|
|
170
|
+
iconVariant: "selected"
|
|
171
|
+
}) }), /* @__PURE__ */ jsx(IndeterminateIcon, { className: checkboxIconCva({
|
|
172
|
+
...props,
|
|
173
|
+
iconVariant: "indeterminate"
|
|
174
|
+
}) })]
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
//#endregion
|
|
178
|
+
export { checkboxDefinition as a, checkboxIndicatorClass as c, checkboxContentWrapperDefinition as i, checkboxTypography as l, checkboxContentClassName as n, checkboxGroupLabelDefinition as o, checkboxContentRowDefinition as r, checkboxIconDefinition as s, CheckboxCheckmark as t, Minus as u };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
+
import { i as inspectTokens } from "./UIConfigurator-BwLRfe-a.js";
|
|
2
3
|
import { n as ArrowLeft } from "./DropdownMenu-5jmtgLXd.js";
|
|
3
4
|
import { i as ArrowRight } from "./DropdownMenuDesktop-Cl9gZVq0.js";
|
|
4
5
|
import { n as Italic, r as Bold, t as Underline } from "./underline-66hmELxa.js";
|
|
@@ -6,47 +7,46 @@ import { s as Calendar, t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
|
6
7
|
import { t as Check } from "./check-DYMBkp_Z.js";
|
|
7
8
|
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
8
9
|
import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
|
|
9
|
-
import { t as FileUpload } from "./FileUpload
|
|
10
|
+
import { t as FileUpload } from "./FileUpload--7ub3EZO.js";
|
|
10
11
|
import { t as PasswordInput } from "./PasswordInput-DYwUZ4-k.js";
|
|
11
12
|
import { t as Info } from "./info-iUmX3uDk.js";
|
|
12
|
-
import { n as inspectTokens } from "./inspection-model-LuI36xTg.js";
|
|
13
13
|
import { i as Search } from "./selectDesktop.cva-CHAMxhfO.js";
|
|
14
14
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
15
15
|
import { t as Breadcrumbs } from "./Breadcrumbs-FF8hMfXd.js";
|
|
16
|
-
import { t as Checkbox } from "./Checkbox-
|
|
17
|
-
import { t as Slider } from "./Slider-
|
|
16
|
+
import { t as Checkbox } from "./Checkbox-CV1ILXXO.js";
|
|
17
|
+
import { t as Slider } from "./Slider-CzEmKYBF.js";
|
|
18
18
|
import { t as Accordion } from "./Accordion-BzwO4_ml.js";
|
|
19
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
20
|
-
import { t as Switch } from "./Switch-
|
|
21
|
-
import { t as TextArea } from "./TextArea-
|
|
19
|
+
import { t as RadioGroup } from "./RadioGroup-DOw3PRoX.js";
|
|
20
|
+
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
21
|
+
import { t as TextArea } from "./TextArea-D8WkKsGn.js";
|
|
22
22
|
import { i as menuPopoverWrapperDefinition, n as menuItemDefinition, r as menuPopoverDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-DvEmX0bs.js";
|
|
23
23
|
import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, t as tooltipDefinition } from "./tooltip.cva-BIzlOXHH.js";
|
|
24
24
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
25
25
|
import { t as Spinner } from "./Spinner-BeVTUzzx.js";
|
|
26
|
-
import { t as Button } from "./Button-
|
|
26
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
27
27
|
import { IconButton } from "./components/icon-button.js";
|
|
28
28
|
import { BadgeButton } from "./components/badge-button.js";
|
|
29
29
|
import { SplitButton } from "./components/split-button.js";
|
|
30
30
|
import { TextButton } from "./components/text-button.js";
|
|
31
31
|
import { ToggleButton } from "./components/toggle-button.js";
|
|
32
|
-
import { Tag } from "./
|
|
32
|
+
import { t as Tag } from "./Tag-DPg5sL1Z.js";
|
|
33
33
|
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
34
34
|
import { Input } from "./components/input.js";
|
|
35
35
|
import { Autocomplete } from "./components/autocomplete.js";
|
|
36
36
|
import { CheckboxGroup } from "./components/checkbox-group.js";
|
|
37
|
-
import { t as TimePicker } from "./TimePicker-
|
|
38
|
-
import { t as ToggleGroup } from "./ToggleGroup-
|
|
39
|
-
import { t as DatePicker } from "./DatePicker-
|
|
40
|
-
import { t as Select } from "./Select-
|
|
41
|
-
import { t as Progress } from "./Progress-
|
|
37
|
+
import { t as TimePicker } from "./TimePicker-C4taAOFQ.js";
|
|
38
|
+
import { t as ToggleGroup } from "./ToggleGroup-DOk27fgI.js";
|
|
39
|
+
import { t as DatePicker } from "./DatePicker-DOLL7mkc.js";
|
|
40
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
41
|
+
import { t as Progress } from "./Progress-B3mY9rIP.js";
|
|
42
42
|
import { NumberField } from "./components/number-field.js";
|
|
43
43
|
import { t as Stepper } from "./Stepper-Cp5vbL5g.js";
|
|
44
44
|
import { n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-COhDZaVl.js";
|
|
45
45
|
import { t as Dialog } from "./Dialog-9manOgMA.js";
|
|
46
46
|
import { Pagination } from "./components/pagination.js";
|
|
47
|
-
import { Alert } from "./
|
|
48
|
-
import { t as Toast } from "./Toast-
|
|
49
|
-
import { t as Table } from "./Table-
|
|
47
|
+
import { t as Alert } from "./Alert-CnvEb1D_.js";
|
|
48
|
+
import { t as Toast } from "./Toast-DtG3pA61.js";
|
|
49
|
+
import { t as Table } from "./Table-BN2_J_Ne.js";
|
|
50
50
|
import { Link } from "./components/link.js";
|
|
51
51
|
import { Badge } from "./components/badge.js";
|
|
52
52
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-
|
|
2
|
+
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-BLBcySA2.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { t as FormField } from "./FormField-
|
|
7
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
8
8
|
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
9
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
10
|
-
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-
|
|
11
|
-
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-
|
|
12
|
-
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-
|
|
9
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, o as DateTimeDialogFooter, s as DateTimeDialog, t as getStaticCalendarDateSegments } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
11
|
+
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-BTjajO6i.js";
|
|
12
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
13
13
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
14
14
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
15
15
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
@@ -7,13 +7,13 @@ import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
|
7
7
|
import { IconButton } from "./components/icon-button.js";
|
|
8
8
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
9
9
|
import { n as $a8ea2faf2ebe4d2f$re_export$mergeProps } from "./import-BE0r63d8.js";
|
|
10
|
-
import {
|
|
10
|
+
import { r as FormFieldLabel } from "./FormField-B99dLt8o.js";
|
|
11
11
|
import "./i18n-CX2EjhJI.js";
|
|
12
12
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
13
13
|
import { n as InputClear } from "./TooltipWrapper-3jyN0Wss.js";
|
|
14
|
-
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-
|
|
14
|
+
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
15
15
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
16
|
-
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-
|
|
16
|
+
import { c as useFirefoxDateSegmentSelectionGuard, d as $8e7461aabf74661f$export$60e84778edff6d26, l as DateSegmentItem } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
17
17
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
18
18
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
19
19
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
@@ -3,26 +3,26 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
|
3
3
|
import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
|
|
4
4
|
import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
|
|
5
5
|
import { n as ChevronsLeft, t as ChevronsRight } from "./chevrons-right-DJPPn2fD.js";
|
|
6
|
-
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, c as $dd602d3c757202f2$export$a1d3911297b952d7, i as CalendarGrid, l as $dd602d3c757202f2$export$eac50920cf2fd59a, n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, r as $1697a7ad3db7b79f$re_export$useDateFormatter, s as $dd602d3c757202f2$export$4f5203c0d889109e, t as DatePickerInput, u as $dd602d3c757202f2$export$f4a51ff076cc9a09 } from "./DatePickerInput-
|
|
6
|
+
import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, c as $dd602d3c757202f2$export$a1d3911297b952d7, i as CalendarGrid, l as $dd602d3c757202f2$export$eac50920cf2fd59a, n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, r as $1697a7ad3db7b79f$re_export$useDateFormatter, s as $dd602d3c757202f2$export$4f5203c0d889109e, t as DatePickerInput, u as $dd602d3c757202f2$export$f4a51ff076cc9a09 } from "./DatePickerInput-BLBcySA2.js";
|
|
7
7
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
8
8
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
9
9
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
|
|
10
|
-
import { t as Switch } from "./Switch-
|
|
10
|
+
import { t as Switch } from "./Switch-CqnGEdeD.js";
|
|
11
11
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
12
12
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
13
13
|
import { BadgeButton } from "./components/badge-button.js";
|
|
14
14
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
15
15
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
16
|
-
import { t as FormField } from "./FormField-
|
|
16
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
17
17
|
import "./i18n-CX2EjhJI.js";
|
|
18
18
|
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
19
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
19
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
20
20
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
21
21
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-CLDS_LRZ.js";
|
|
22
|
-
import { f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
22
|
+
import { f as $8b141f2f71e88f85$export$2440da353cedad43, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, i as getStaticDateTimeFocusTarget, m as $8b141f2f71e88f85$export$80ff8fc0ae339c13, o as DateTimeDialogFooter, p as $8b141f2f71e88f85$export$7e319ea407e63bc0, r as getStaticDateRangeSegments, s as DateTimeDialog } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
23
23
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
24
24
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
25
|
-
import { t as Select } from "./Select-
|
|
25
|
+
import { t as Select } from "./Select-UR0ec2Ux.js";
|
|
26
26
|
import { memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
27
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
28
|
import { DateFormatter, GregorianCalendar, createCalendar, endOfMonth, endOfWeek, endOfYear, getLocalTimeZone, maxDate, minDate, startOfMonth, startOfWeek, startOfYear, toCalendar, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-
|
|
2
|
+
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-BLBcySA2.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
5
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
6
6
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
7
|
-
import { t as FormField } from "./FormField-
|
|
7
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
8
8
|
import { t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
9
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-
|
|
10
|
-
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-
|
|
11
|
-
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-
|
|
12
|
-
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-
|
|
9
|
+
import { i as InputFrame, n as useStaticInputHandoff } from "./useStaticInputHandoff-NeZVnci-.js";
|
|
10
|
+
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-DtU63_dw.js";
|
|
11
|
+
import { r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar-BTjajO6i.js";
|
|
12
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-DCgoSrP3.js";
|
|
13
13
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
14
14
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Cd7UUN61.js";
|
|
15
15
|
import { memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
@@ -5,12 +5,12 @@ import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
|
5
5
|
import { r as cva, t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
6
6
|
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-Cthk5_Wp.js";
|
|
7
7
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
8
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
9
9
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
10
10
|
import { TextButton } from "./components/text-button.js";
|
|
11
11
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
12
12
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
13
|
-
import { t as FormField } from "./FormField-
|
|
13
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
14
14
|
import "./i18n-CX2EjhJI.js";
|
|
15
15
|
import { a as inputSizeDefinition } from "./input.cva-DJA8ovm_.js";
|
|
16
16
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
@@ -7,15 +7,15 @@ import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
|
7
7
|
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
8
8
|
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-Cthk5_Wp.js";
|
|
9
9
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
10
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
11
11
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
12
12
|
import { TextButton } from "./components/text-button.js";
|
|
13
13
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
14
14
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
15
|
-
import { t as FormField } from "./FormField-
|
|
15
|
+
import { t as FormField } from "./FormField-B99dLt8o.js";
|
|
16
16
|
import "./i18n-CX2EjhJI.js";
|
|
17
17
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
18
|
-
import { t as Progress } from "./Progress-
|
|
18
|
+
import { t as Progress } from "./Progress-B3mY9rIP.js";
|
|
19
19
|
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-ujmStxB1.js";
|
|
20
20
|
import { memo, useCallback, useMemo, useState } from "react";
|
|
21
21
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -3,10 +3,91 @@ import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
|
3
3
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "./Label-B2-B-uFY.js";
|
|
4
4
|
import { t as typographyDefinition } from "./typography.cva-iD15k56p.js";
|
|
5
5
|
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
6
|
+
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
7
|
+
import { t as FormFieldError } from "./FormFieldError-DeOHHLo2.js";
|
|
8
8
|
import { Suspense, lazy } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/inputs/FormField/formFieldHeader.cva.ts
|
|
11
|
+
const formFieldHeaderDefinition = UIOverrides.defineConfig({
|
|
12
|
+
base: [""],
|
|
13
|
+
config: {
|
|
14
|
+
variants: { visible: {
|
|
15
|
+
true: "mb-1",
|
|
16
|
+
false: "sr-only"
|
|
17
|
+
} },
|
|
18
|
+
defaultVariants: { visible: true }
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/inputs/shared/label.cva.ts
|
|
23
|
+
const labelDefinition = UIOverrides.defineConfig({
|
|
24
|
+
base: [""],
|
|
25
|
+
config: {
|
|
26
|
+
variants: { as: {
|
|
27
|
+
default: ["flex items-start gap-1 text-surface-default-card-foreground input-disabled:text-state-surface-default-card-foreground/disabled"],
|
|
28
|
+
filter: ["text-surface-default-card-foreground input-disabled:text-state-surface-default-card-foreground/disabled"],
|
|
29
|
+
inline: ["flex items-start gap-1 text-surface-default-card-foreground input-disabled:text-state-surface-default-card-foreground/disabled"],
|
|
30
|
+
floating: [
|
|
31
|
+
"pointer-events-none font-normal!",
|
|
32
|
+
"absolute transition-all duration-75",
|
|
33
|
+
"top-1/2 -translate-y-1/2",
|
|
34
|
+
"text-surface-default-card-foreground",
|
|
35
|
+
"input-disabled:text-state-surface-default-card-foreground/disabled!",
|
|
36
|
+
"input-filled:top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]",
|
|
37
|
+
"input-filled:translate-y-0",
|
|
38
|
+
"input-filled:text-surface-default-card-foreground",
|
|
39
|
+
"input-filled:font-bold!",
|
|
40
|
+
"input-filled:text-small!",
|
|
41
|
+
"group-data-[text-area]/text-area:top-floating-label-input-height-empty group-data-[text-area]/text-area:translate-y-0",
|
|
42
|
+
"group-has-[textarea:not(:placeholder-shown)]/text-area:hidden",
|
|
43
|
+
"group-data-[text-editor]/text-editor:top-floating-label-input-height-empty group-data-[text-editor]/text-editor:left-input-side-default group-data-[text-editor]/text-editor:translate-y-0",
|
|
44
|
+
"group-data-[is-filled=true]/text-editor:hidden"
|
|
45
|
+
]
|
|
46
|
+
} },
|
|
47
|
+
defaultVariants: { as: "default" }
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const labelTypography = compoundMapper({
|
|
51
|
+
compoundVariants: [
|
|
52
|
+
{
|
|
53
|
+
as: "default",
|
|
54
|
+
value: {
|
|
55
|
+
size: "small",
|
|
56
|
+
sizeMobile: "small",
|
|
57
|
+
className: "font-bold"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
as: "filter",
|
|
62
|
+
value: {
|
|
63
|
+
size: "large",
|
|
64
|
+
sizeMobile: "large"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
as: "inline",
|
|
69
|
+
value: {
|
|
70
|
+
size: "small",
|
|
71
|
+
sizeMobile: "small",
|
|
72
|
+
className: "font-bold"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
as: "floating",
|
|
77
|
+
value: {
|
|
78
|
+
size: "large",
|
|
79
|
+
sizeMobile: "large"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
default: {
|
|
84
|
+
size: "small",
|
|
85
|
+
sizeMobile: "small",
|
|
86
|
+
className: "font-bold"
|
|
87
|
+
},
|
|
88
|
+
defaultVariants: { as: "default" }
|
|
89
|
+
});
|
|
90
|
+
//#endregion
|
|
10
91
|
//#region src/components/inputs/FormField/FormFieldLabel.tsx
|
|
11
92
|
const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, className }) => {
|
|
12
93
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
@@ -63,6 +144,18 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
|
|
|
63
144
|
});
|
|
64
145
|
};
|
|
65
146
|
//#endregion
|
|
147
|
+
//#region src/components/inputs/FormField/formFieldHelper.cva.ts
|
|
148
|
+
const formFieldHelperDefinition = UIOverrides.defineConfig({
|
|
149
|
+
base: ["text-small text-surface-default-foreground"],
|
|
150
|
+
config: {
|
|
151
|
+
variants: { visible: {
|
|
152
|
+
true: "mt-1.5",
|
|
153
|
+
false: "sr-only"
|
|
154
|
+
} },
|
|
155
|
+
defaultVariants: { visible: false }
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
//#endregion
|
|
66
159
|
//#region src/components/inputs/FormField/FormFieldHelper.tsx
|
|
67
160
|
const FormFieldHelper = ({ id, helperText, isDisabled, isHidden, hasError, className }) => {
|
|
68
161
|
const formFieldHelperCva = UIOverrides.useCva("formField.helperLabelCva", formFieldHelperDefinition);
|
|
@@ -116,4 +209,4 @@ const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRe
|
|
|
116
209
|
});
|
|
117
210
|
};
|
|
118
211
|
//#endregion
|
|
119
|
-
export {
|
|
212
|
+
export { formFieldHeaderDefinition as a, labelDefinition as i, formFieldHelperDefinition as n, FormFieldLabel as r, FormField as t };
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
-
import { t as formFieldErrorDefinition } from "./formFieldError.cva-CsXaQRHX.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/inputs/FormField/formFieldError.cva.ts
|
|
5
|
+
const formFieldErrorDefinition = UIOverrides.defineConfig({
|
|
6
|
+
base: ["text-small text-surface-destructive-base"],
|
|
7
|
+
config: {
|
|
8
|
+
variants: { visible: {
|
|
9
|
+
true: "mt-1.5",
|
|
10
|
+
false: "sr-only"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { visible: false }
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
5
16
|
//#region src/components/inputs/FormField/FormFieldError.tsx
|
|
6
17
|
const FormFieldError = ({ id, error, isDisabled, isHidden, className }) => {
|
|
7
18
|
const formFieldErrorCva = UIOverrides.useCva("formField.errorLabelCva", formFieldErrorDefinition);
|
|
@@ -12,4 +23,4 @@ const FormFieldError = ({ id, error, isDisabled, isHidden, className }) => {
|
|
|
12
23
|
});
|
|
13
24
|
};
|
|
14
25
|
//#endregion
|
|
15
|
-
export { FormFieldError as t };
|
|
26
|
+
export { formFieldErrorDefinition as n, FormFieldError as t };
|