@keboola/design 4.4.0 → 5.1.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/AGENTS.md +68 -44
- package/COMPONENT-API.md +35 -6
- package/README.md +1 -1
- package/dist/charts.cjs +268 -0
- package/dist/charts.cjs.map +1 -0
- package/dist/charts.d.cts +181 -0
- package/dist/charts.d.ts +181 -0
- package/dist/charts.js +259 -0
- package/dist/charts.js.map +1 -0
- package/dist/editors.cjs +151 -77
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +153 -79
- package/dist/editors.js.map +1 -1
- package/dist/index.cjs +2653 -1539
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +486 -467
- package/dist/index.d.ts +486 -467
- package/dist/index.js +2378 -1273
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +156 -120
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +156 -120
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +63 -37
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +64 -38
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +459 -385
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +363 -289
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +4 -2
- package/dist/testing.cjs +238 -111
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +6 -0
- package/dist/testing.d.ts +6 -0
- package/dist/testing.js +240 -113
- package/dist/testing.js.map +1 -1
- package/package.json +37 -17
- package/src/styles.css +81 -30
package/dist/rjsf.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React26, { createContext, forwardRef, useCallback, use, useMemo, useRef, useState, useEffect, useContext, isValidElement, useId, useSyncExternalStore, useLayoutEffect, Children, Fragment as Fragment$1 } from 'react';
|
|
2
2
|
import Form from '@rjsf/core';
|
|
3
3
|
import validator from '@rjsf/validator-ajv8';
|
|
4
4
|
import { completeAnyWord, autocompletion } from '@codemirror/autocomplete';
|
|
@@ -11,7 +11,7 @@ import { clsx } from 'clsx';
|
|
|
11
11
|
import { extendTailwindMerge } from 'tailwind-merge';
|
|
12
12
|
import { Root as Root$4, Trigger, Portal, Content } from '@radix-ui/react-tooltip';
|
|
13
13
|
import { cva } from 'class-variance-authority';
|
|
14
|
-
import {
|
|
14
|
+
import { keboolaLegacySidebar, keboolaLegacyTopnav } from '@keboola/brand-registry';
|
|
15
15
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
import { Slot, Root as Root$1, Slottable } from '@radix-ui/react-slot';
|
|
17
17
|
import * as lucide_react_star from 'lucide-react';
|
|
@@ -116,13 +116,39 @@ var createChangeInputEvent = (input) => {
|
|
|
116
116
|
});
|
|
117
117
|
return changeEvent;
|
|
118
118
|
};
|
|
119
|
-
var ThemeContext = createContext(null);
|
|
120
119
|
|
|
121
|
-
// src/components/
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
// src/components/ThemeProvider/utils.ts
|
|
121
|
+
var createTheme = (brand) => ({
|
|
122
|
+
id: brand.id,
|
|
123
|
+
name: brand.name,
|
|
124
|
+
shell: brand.shell,
|
|
125
|
+
logo: brand.logo
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// src/components/ThemeProvider/defaults.ts
|
|
129
|
+
[keboolaLegacySidebar.id, keboolaLegacyTopnav.id];
|
|
130
|
+
var DEFAULT_COLOR_SCHEME = "light";
|
|
131
|
+
var DEFAULT_BRAND_ID = "design-system";
|
|
132
|
+
var defaultBrand = {
|
|
133
|
+
id: DEFAULT_BRAND_ID,
|
|
134
|
+
name: "Design System",
|
|
135
|
+
shell: "sidebar"};
|
|
136
|
+
var defaultTheme = createTheme(defaultBrand);
|
|
137
|
+
|
|
138
|
+
// src/components/ThemeProvider/context.tsx
|
|
139
|
+
var noop = () => void 0;
|
|
140
|
+
var defaultContext = {
|
|
141
|
+
scheme: DEFAULT_COLOR_SCHEME,
|
|
142
|
+
resolvedScheme: DEFAULT_COLOR_SCHEME,
|
|
143
|
+
setScheme: noop,
|
|
144
|
+
brandId: defaultTheme.id,
|
|
145
|
+
setBrand: noop,
|
|
146
|
+
themes: [defaultTheme],
|
|
147
|
+
currentTheme: defaultTheme
|
|
148
|
+
};
|
|
149
|
+
createContext(defaultContext);
|
|
150
|
+
var ArgoDesignContext = createContext(true);
|
|
151
|
+
var useArgoDesign = () => use(ArgoDesignContext);
|
|
126
152
|
var tooltipVariants = cva(
|
|
127
153
|
[
|
|
128
154
|
"tailwindcss-preflight",
|
|
@@ -200,8 +226,7 @@ var TooltipContent = ({
|
|
|
200
226
|
placement = "right",
|
|
201
227
|
...rest
|
|
202
228
|
}) => {
|
|
203
|
-
const
|
|
204
|
-
const renderArgo = !isLegacy;
|
|
229
|
+
const renderArgo = useArgoDesign();
|
|
205
230
|
const handlePointerDownOutside = (event) => {
|
|
206
231
|
if (keepOpenOnPointerDownOutside) event.preventDefault();
|
|
207
232
|
onPointerDownOutside?.(event);
|
|
@@ -343,7 +368,7 @@ var helpVariants = cva(["tw-m-0", "tw-text-xs"], {
|
|
|
343
368
|
state: {
|
|
344
369
|
default: ["tw-text-muted-foreground"],
|
|
345
370
|
error: ["tw-text-destructive"],
|
|
346
|
-
warning: ["tw-text-warning
|
|
371
|
+
warning: ["tw-text-warning"]
|
|
347
372
|
}
|
|
348
373
|
}
|
|
349
374
|
});
|
|
@@ -395,8 +420,8 @@ var variants = cva(
|
|
|
395
420
|
"tw-font-medium",
|
|
396
421
|
"tw-tracking-[1px]",
|
|
397
422
|
"tw-uppercase",
|
|
398
|
-
// border
|
|
399
|
-
"tw-rounded
|
|
423
|
+
// border — legacy (non-argo) chrome uses a fixed radius, not the brand token.
|
|
424
|
+
"tw-rounded",
|
|
400
425
|
"tw-border",
|
|
401
426
|
"tw-border-transparent",
|
|
402
427
|
// styling
|
|
@@ -591,14 +616,14 @@ var argoVariants = cva(
|
|
|
591
616
|
"hover:tw-text-primary-foreground",
|
|
592
617
|
"focus:tw-text-primary-foreground",
|
|
593
618
|
"focus-visible:tw-border-primary",
|
|
594
|
-
"focus-visible:tw-ring-
|
|
619
|
+
"focus-visible:tw-ring-ring/50"
|
|
595
620
|
],
|
|
596
621
|
secondary: [
|
|
597
622
|
"tw-bg-primary/10",
|
|
598
623
|
"tw-text-primary",
|
|
599
624
|
"hover:not-disabled:tw-bg-primary/20",
|
|
600
625
|
"focus-visible:tw-border-primary",
|
|
601
|
-
"focus-visible:tw-ring-
|
|
626
|
+
"focus-visible:tw-ring-ring/50"
|
|
602
627
|
],
|
|
603
628
|
// should be called "destructive" by Figma
|
|
604
629
|
danger: [
|
|
@@ -615,20 +640,22 @@ var argoVariants = cva(
|
|
|
615
640
|
// Semantic base text color so the label/icon flips in dark mode
|
|
616
641
|
// (matches `invisible`); previously unset → inherited a fixed dark color.
|
|
617
642
|
"tw-text-foreground",
|
|
618
|
-
|
|
619
|
-
|
|
643
|
+
// Hover follows the brand primary (translucent tint), matching the
|
|
644
|
+
// `secondary` variant — not the fixed `accent` blue.
|
|
645
|
+
"hover:not-disabled:tw-bg-primary/10",
|
|
646
|
+
"hover:not-disabled:tw-text-primary",
|
|
620
647
|
"hover:active:tw-bg-background",
|
|
621
648
|
"focus-visible:!tw-border-primary",
|
|
622
|
-
"focus-visible:tw-ring-
|
|
649
|
+
"focus-visible:tw-ring-ring/50"
|
|
623
650
|
],
|
|
624
651
|
// should be called "ghost" by Figma
|
|
625
652
|
invisible: [
|
|
626
653
|
"tw-bg-transparent",
|
|
627
654
|
"tw-text-foreground",
|
|
628
|
-
"hover:not-disabled:tw-bg-
|
|
629
|
-
"hover:not-disabled:tw-text-
|
|
630
|
-
"hover:not-disabled:tw-border-
|
|
631
|
-
"focus-visible:tw-ring-
|
|
655
|
+
"hover:not-disabled:tw-bg-primary/10",
|
|
656
|
+
"hover:not-disabled:tw-text-primary",
|
|
657
|
+
"hover:not-disabled:tw-border-primary/10",
|
|
658
|
+
"focus-visible:tw-ring-ring/50"
|
|
632
659
|
],
|
|
633
660
|
// should be called "link" by Figma
|
|
634
661
|
inline: [
|
|
@@ -636,7 +663,7 @@ var argoVariants = cva(
|
|
|
636
663
|
"tw-text-primary",
|
|
637
664
|
"hover:tw-underline",
|
|
638
665
|
"hover:active:tw-bg-transparent",
|
|
639
|
-
"focus-visible:tw-ring-
|
|
666
|
+
"focus-visible:tw-ring-ring/50"
|
|
640
667
|
]
|
|
641
668
|
},
|
|
642
669
|
size: {
|
|
@@ -671,8 +698,7 @@ var Button = ({
|
|
|
671
698
|
block = false,
|
|
672
699
|
...buttonProps
|
|
673
700
|
}) => {
|
|
674
|
-
const
|
|
675
|
-
const renderArgo = !isLegacy;
|
|
701
|
+
const renderArgo = useArgoDesign();
|
|
676
702
|
const Comp = asChild ? Root$1 : "button";
|
|
677
703
|
const isIconOnly = String(size).startsWith("icon");
|
|
678
704
|
const classNames = renderArgo ? argoVariants({ variant, size, block, className }) : variants({ size, variant, block, className });
|
|
@@ -799,15 +825,44 @@ var ButtonToolbar = ({ value, children }) => {
|
|
|
799
825
|
children
|
|
800
826
|
] });
|
|
801
827
|
};
|
|
802
|
-
var
|
|
828
|
+
var resolveToken = (token, fallbackChannels, alpha) => {
|
|
829
|
+
const channels = typeof document === "undefined" ? fallbackChannels : getComputedStyle(document.documentElement).getPropertyValue(`--color-${token}`).trim() || fallbackChannels;
|
|
830
|
+
return alpha === void 0 ? `rgb(${channels})` : `rgb(${channels} / ${alpha})`;
|
|
831
|
+
};
|
|
832
|
+
var SSR_SIGNAL = "ssr";
|
|
833
|
+
var readThemeSignal = () => {
|
|
834
|
+
if (typeof document === "undefined") return SSR_SIGNAL;
|
|
835
|
+
const root = document.documentElement;
|
|
836
|
+
return `${root.getAttribute("data-theme") ?? ""}:${root.getAttribute("data-brand") ?? ""}`;
|
|
837
|
+
};
|
|
838
|
+
var subscribeThemeSignal = (onChange) => {
|
|
839
|
+
if (typeof document === "undefined") return () => {
|
|
840
|
+
};
|
|
841
|
+
const observer = new MutationObserver(onChange);
|
|
842
|
+
observer.observe(document.documentElement, {
|
|
843
|
+
attributes: true,
|
|
844
|
+
attributeFilter: ["data-theme", "data-brand"]
|
|
845
|
+
});
|
|
846
|
+
return () => observer.disconnect();
|
|
847
|
+
};
|
|
848
|
+
var useThemeSignal = () => useSyncExternalStore(subscribeThemeSignal, readThemeSignal, () => SSR_SIGNAL);
|
|
849
|
+
var useThemedExtension = (build, deps = []) => {
|
|
850
|
+
const themeSignal = useThemeSignal();
|
|
851
|
+
return useMemo(build, [themeSignal, ...deps]);
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
// src/components/CodeEditor/helpers.ts
|
|
855
|
+
var buildBaseThemeStyles = () => ({
|
|
803
856
|
"*": { lineHeight: "20px" },
|
|
804
857
|
"*::selection": {
|
|
805
|
-
backgroundColor:
|
|
806
|
-
color: `${
|
|
858
|
+
backgroundColor: resolveToken("primary", "31 143 255"),
|
|
859
|
+
color: `${resolveToken("primary-foreground", "255 255 255")} !important`
|
|
860
|
+
},
|
|
861
|
+
'&.cm-editor:has(.cm-content[contenteditable="false"])': {
|
|
862
|
+
backgroundColor: resolveToken("secondary", "226 232 240")
|
|
807
863
|
},
|
|
808
|
-
'&.cm-editor:has(.cm-content[contenteditable="false"])': { backgroundColor: colors.neutral[150] },
|
|
809
864
|
'&.cm-editor:has(.cm-content[contenteditable="false"]) .cm-gutters': {
|
|
810
|
-
backgroundColor:
|
|
865
|
+
backgroundColor: resolveToken("border", "229 231 235")
|
|
811
866
|
},
|
|
812
867
|
"&.cm-editor .cm-scroller": { overflowAnchor: "none" },
|
|
813
868
|
"&.cm-editor, &.cm-editor .cm-scroller": {
|
|
@@ -823,11 +878,11 @@ var baseThemeStyles = {
|
|
|
823
878
|
".cm-line .tok-string": { color: colors.warning[700] },
|
|
824
879
|
// merge (diff) view
|
|
825
880
|
'&[class*="cm-merge-"] .cm-deletedLine': { backgroundColor: colors.error[100] },
|
|
826
|
-
'&[class*="cm-merge-"] .cm-changedLine': { backgroundColor: colors.
|
|
881
|
+
'&[class*="cm-merge-"] .cm-changedLine': { backgroundColor: colors.green[100] },
|
|
827
882
|
'&[class*="cm-merge-"] .cm-deletedLineGutter': { backgroundColor: colors.error[200] },
|
|
828
|
-
'&[class*="cm-merge-"] .cm-changedLineGutter': { backgroundColor: colors.
|
|
883
|
+
'&[class*="cm-merge-"] .cm-changedLineGutter': { backgroundColor: colors.green[200] },
|
|
829
884
|
'&[class*="cm-merge-"] .cm-deletedText': { background: colors.error[200] },
|
|
830
|
-
'&[class*="cm-merge-"] .cm-changedText': { background: colors.
|
|
885
|
+
'&[class*="cm-merge-"] .cm-changedText': { background: colors.green[200] },
|
|
831
886
|
'&[class*="cm-merge-"]': {
|
|
832
887
|
backgroundColor: `${colors.white} !important`
|
|
833
888
|
},
|
|
@@ -836,16 +891,18 @@ var baseThemeStyles = {
|
|
|
836
891
|
},
|
|
837
892
|
".cm-changeGutter": { position: "absolute", zIndex: -1, width: "100%", paddingLeft: 0 },
|
|
838
893
|
'&[class*="cm-merge-"] .cm-changedLine,&[class*="cm-merge-"] .cm-line, &[class*="cm-merge-"] .cm-deletedChunk': { paddingLeft: 0 }
|
|
839
|
-
};
|
|
894
|
+
});
|
|
840
895
|
var BASIS_SETUP = { drawSelection: false };
|
|
841
|
-
var
|
|
896
|
+
var buildCustomTheme = () => githubLightInit({
|
|
842
897
|
settings: {
|
|
843
898
|
fontFamily: `'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New'`,
|
|
844
|
-
background:
|
|
845
|
-
|
|
899
|
+
background: resolveToken("background", "249 250 251"),
|
|
900
|
+
foreground: resolveToken("foreground", "30 41 59"),
|
|
901
|
+
gutterBackground: resolveToken("muted", "241 245 249"),
|
|
902
|
+
gutterForeground: resolveToken("muted-foreground", "100 116 139"),
|
|
846
903
|
gutterBorder: "transparent",
|
|
847
904
|
lineHighlight: "transparent",
|
|
848
|
-
selection:
|
|
905
|
+
selection: resolveToken("primary", "31 143 255")
|
|
849
906
|
}
|
|
850
907
|
});
|
|
851
908
|
var getLanguageMode = (mode) => {
|
|
@@ -963,6 +1020,8 @@ var CodeEditor = ({
|
|
|
963
1020
|
renderAdditionalButtons,
|
|
964
1021
|
className
|
|
965
1022
|
}) => {
|
|
1023
|
+
const customTheme = useThemedExtension(buildCustomTheme);
|
|
1024
|
+
const baseTheme = useThemedExtension(() => EditorView.theme(buildBaseThemeStyles()));
|
|
966
1025
|
const commonExtensions = useMemo(() => {
|
|
967
1026
|
return [
|
|
968
1027
|
getLanguageMode(mode),
|
|
@@ -982,9 +1041,9 @@ var CodeEditor = ({
|
|
|
982
1041
|
}))
|
|
983
1042
|
),
|
|
984
1043
|
autocompletion({ activateOnTyping: completeAny }),
|
|
985
|
-
|
|
1044
|
+
baseTheme
|
|
986
1045
|
].filter(Boolean);
|
|
987
|
-
}, [autocompletions, completeAny, extraKeys, mode, withLineWrapping]);
|
|
1046
|
+
}, [autocompletions, completeAny, extraKeys, mode, withLineWrapping, baseTheme]);
|
|
988
1047
|
const extensions = useMemo(() => {
|
|
989
1048
|
return [
|
|
990
1049
|
...commonExtensions,
|
|
@@ -1293,13 +1352,13 @@ var CollapsiblePanel = ({
|
|
|
1293
1352
|
};
|
|
1294
1353
|
|
|
1295
1354
|
// src/blocks/RjsfSchemaEditor/fieldHelpers.ts
|
|
1296
|
-
var
|
|
1355
|
+
var noop2 = () => {
|
|
1297
1356
|
};
|
|
1298
1357
|
var NullField = () => null;
|
|
1299
1358
|
var getSchemaField = (registry) => registry.fields.SchemaField ?? NullField;
|
|
1300
1359
|
var SCHEMA_FIELD_STUBS = {
|
|
1301
|
-
onBlur:
|
|
1302
|
-
onFocus:
|
|
1360
|
+
onBlur: noop2,
|
|
1361
|
+
onFocus: noop2,
|
|
1303
1362
|
errorSchema: {}
|
|
1304
1363
|
};
|
|
1305
1364
|
var resolveByPath = (path, data) => {
|
|
@@ -1509,10 +1568,15 @@ var AlertCollapsibleIcon = ({ open }) => /* @__PURE__ */ jsx(Tooltip, { placemen
|
|
|
1509
1568
|
"tw-size-5",
|
|
1510
1569
|
"tw-text-neutral-400",
|
|
1511
1570
|
"group-data-[state=open]/alert:tw-rotate-180",
|
|
1571
|
+
// Legacy uses the fixed categorical hover scales; argo uses the themeable status tokens.
|
|
1512
1572
|
"group-data-[variant=info]/alert:group-hover:tw-text-blue-600",
|
|
1573
|
+
"group-data-[variant=info]/alert:group-data-[argo=true]/alert:group-hover:tw-text-info",
|
|
1513
1574
|
"group-data-[variant=warning]/alert:group-hover:tw-text-warning-600",
|
|
1575
|
+
"group-data-[variant=warning]/alert:group-data-[argo=true]/alert:group-hover:tw-text-warning",
|
|
1514
1576
|
"group-data-[variant=error]/alert:group-hover:tw-text-error-600",
|
|
1515
|
-
"group-data-[variant=
|
|
1577
|
+
"group-data-[variant=error]/alert:group-data-[argo=true]/alert:group-hover:tw-text-destructive",
|
|
1578
|
+
"group-data-[variant=success]/alert:group-hover:tw-text-green-600",
|
|
1579
|
+
"group-data-[variant=success]/alert:group-data-[argo=true]/alert:group-hover:tw-text-success"
|
|
1516
1580
|
)
|
|
1517
1581
|
}
|
|
1518
1582
|
) });
|
|
@@ -1560,10 +1624,15 @@ var AlertIcon = ({ variant, icon, className, ...rest }) => /* @__PURE__ */ jsx(
|
|
|
1560
1624
|
"tw-self-start",
|
|
1561
1625
|
"tw-p-0.5",
|
|
1562
1626
|
'[&_svg:not([class*="tw-size-"])]:tw-size-4',
|
|
1627
|
+
// Legacy uses the fixed categorical icon scales; argo uses the themeable status tokens.
|
|
1563
1628
|
"group-data-[variant=info]/alert:tw-text-blue-500",
|
|
1629
|
+
"group-data-[variant=info]/alert:group-data-[argo=true]/alert:tw-text-info",
|
|
1564
1630
|
"group-data-[variant=warning]/alert:tw-text-warning-500",
|
|
1631
|
+
"group-data-[variant=warning]/alert:group-data-[argo=true]/alert:tw-text-warning",
|
|
1565
1632
|
"group-data-[variant=error]/alert:tw-text-error-500",
|
|
1633
|
+
"group-data-[variant=error]/alert:group-data-[argo=true]/alert:tw-text-destructive",
|
|
1566
1634
|
"group-data-[variant=success]/alert:tw-text-green-500",
|
|
1635
|
+
"group-data-[variant=success]/alert:group-data-[argo=true]/alert:tw-text-success",
|
|
1567
1636
|
className
|
|
1568
1637
|
),
|
|
1569
1638
|
children: icon ?? VARIANT_ICONS[variant]
|
|
@@ -1576,8 +1645,7 @@ var AlertRoot = ({
|
|
|
1576
1645
|
variant,
|
|
1577
1646
|
...rest
|
|
1578
1647
|
}) => {
|
|
1579
|
-
const
|
|
1580
|
-
const renderArgo = !isLegacy;
|
|
1648
|
+
const renderArgo = useArgoDesign();
|
|
1581
1649
|
return /* @__PURE__ */ jsx(
|
|
1582
1650
|
"div",
|
|
1583
1651
|
{
|
|
@@ -1601,19 +1669,32 @@ var AlertRoot = ({
|
|
|
1601
1669
|
"data-[argo=true]:tw-text-foreground",
|
|
1602
1670
|
"tw-text-left",
|
|
1603
1671
|
"tw-p-4",
|
|
1604
|
-
// border
|
|
1605
|
-
"tw-rounded
|
|
1672
|
+
// border — legacy keeps a fixed radius; argo follows the brand radius token.
|
|
1673
|
+
"tw-rounded",
|
|
1674
|
+
"data-[argo=true]:tw-rounded-[var(--radius-lg,0.25rem)]",
|
|
1606
1675
|
"tw-border",
|
|
1607
1676
|
"tw-border-solid",
|
|
1608
|
-
// border
|
|
1677
|
+
// Variant tint + border. Legacy keeps the fixed categorical scales (solid
|
|
1678
|
+
// pastel tint); argo uses the brand-overridable status tokens (bg at 10%,
|
|
1679
|
+
// border at 25%) so status re-skins with the brand. The argo tokens carry
|
|
1680
|
+
// AA-legible defaults, so the variant icon (AlertIcon, full-strength
|
|
1681
|
+
// `tw-text-<role>`) clears ≥4.5:1 on the tint in both light and dark.
|
|
1609
1682
|
"data-[variant=info]:tw-bg-blue-100",
|
|
1610
1683
|
"data-[variant=info]:tw-border-blue-200",
|
|
1684
|
+
"data-[variant=info]:data-[argo=true]:tw-bg-info/10",
|
|
1685
|
+
"data-[variant=info]:data-[argo=true]:tw-border-info/25",
|
|
1611
1686
|
"data-[variant=warning]:tw-bg-warning-100",
|
|
1612
1687
|
"data-[variant=warning]:tw-border-warning-300",
|
|
1688
|
+
"data-[variant=warning]:data-[argo=true]:tw-bg-warning/10",
|
|
1689
|
+
"data-[variant=warning]:data-[argo=true]:tw-border-warning/25",
|
|
1613
1690
|
"data-[variant=error]:tw-bg-error-100",
|
|
1614
1691
|
"data-[variant=error]:tw-border-error-200",
|
|
1692
|
+
"data-[variant=error]:data-[argo=true]:tw-bg-destructive/10",
|
|
1693
|
+
"data-[variant=error]:data-[argo=true]:tw-border-destructive/25",
|
|
1615
1694
|
"data-[variant=success]:tw-bg-green-100",
|
|
1616
1695
|
"data-[variant=success]:tw-border-green-200",
|
|
1696
|
+
"data-[variant=success]:data-[argo=true]:tw-bg-success/10",
|
|
1697
|
+
"data-[variant=success]:data-[argo=true]:tw-border-success/25",
|
|
1617
1698
|
className
|
|
1618
1699
|
),
|
|
1619
1700
|
children
|
|
@@ -2321,8 +2402,9 @@ var inputGroupVariants = cva(
|
|
|
2321
2402
|
// positioning
|
|
2322
2403
|
"tw-flex",
|
|
2323
2404
|
"tw-items-center",
|
|
2324
|
-
// base
|
|
2325
|
-
|
|
2405
|
+
// base — legacy (non-argo) chrome uses a fixed radius; argo overrides it with
|
|
2406
|
+
// the brand radius token in the `argo` variant below.
|
|
2407
|
+
"tw-rounded",
|
|
2326
2408
|
"tw-border",
|
|
2327
2409
|
"tw-border-solid",
|
|
2328
2410
|
"tw-border-neutral-200",
|
|
@@ -2396,7 +2478,7 @@ var inputGroupVariants = cva(
|
|
|
2396
2478
|
state: "default",
|
|
2397
2479
|
className: [
|
|
2398
2480
|
"has-[:is(input,textarea):focus]:tw-border-primary",
|
|
2399
|
-
"has-[:is(input,textarea):focus]:tw-ring-
|
|
2481
|
+
"has-[:is(input,textarea):focus]:tw-ring-ring/50"
|
|
2400
2482
|
]
|
|
2401
2483
|
},
|
|
2402
2484
|
{
|
|
@@ -2411,7 +2493,7 @@ var inputGroupVariants = cva(
|
|
|
2411
2493
|
{
|
|
2412
2494
|
variant: "argo",
|
|
2413
2495
|
focusVariant: "on",
|
|
2414
|
-
className: ["!tw-border-primary", "!tw-ring-
|
|
2496
|
+
className: ["!tw-border-primary", "!tw-ring-ring/50"]
|
|
2415
2497
|
},
|
|
2416
2498
|
{
|
|
2417
2499
|
variant: "argo",
|
|
@@ -2440,6 +2522,8 @@ var inputGroupVariants = cva(
|
|
|
2440
2522
|
"has-[:is(input,textarea):disabled]:tw-opacity-40"
|
|
2441
2523
|
],
|
|
2442
2524
|
argo: [
|
|
2525
|
+
// argo follows the brand radius token (overrides the static base)
|
|
2526
|
+
"tw-rounded-[var(--radius-lg,0.25rem)]",
|
|
2443
2527
|
// muted filled input surface — gray, distinct from white containers; not the app-background token
|
|
2444
2528
|
"tw-bg-muted",
|
|
2445
2529
|
"tw-border-input",
|
|
@@ -2495,8 +2579,8 @@ var InputGroupRoot = ({
|
|
|
2495
2579
|
className,
|
|
2496
2580
|
...props
|
|
2497
2581
|
}) => {
|
|
2498
|
-
const
|
|
2499
|
-
const effectiveVariant =
|
|
2582
|
+
const isArgo = useArgoDesign();
|
|
2583
|
+
const effectiveVariant = isArgo ? "argo" : variant;
|
|
2500
2584
|
const effectiveSizing = effectiveVariant === "argo" ? "medium" : sizing;
|
|
2501
2585
|
return /* @__PURE__ */ jsx(
|
|
2502
2586
|
"div",
|
|
@@ -4844,7 +4928,7 @@ function setYear(date, year, options) {
|
|
|
4844
4928
|
return date_;
|
|
4845
4929
|
}
|
|
4846
4930
|
|
|
4847
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
4931
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
|
|
4848
4932
|
var FIVE_WEEKS = 5;
|
|
4849
4933
|
var FOUR_WEEKS = 4;
|
|
4850
4934
|
function getBroadcastWeeksInMonth(month, dateLib) {
|
|
@@ -4856,7 +4940,7 @@ function getBroadcastWeeksInMonth(month, dateLib) {
|
|
|
4856
4940
|
return numberOfWeeks;
|
|
4857
4941
|
}
|
|
4858
4942
|
|
|
4859
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
4943
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
|
|
4860
4944
|
function startOfBroadcastWeek(date, dateLib) {
|
|
4861
4945
|
const firstOfMonth = dateLib.startOfMonth(date);
|
|
4862
4946
|
const dayOfWeek = firstOfMonth.getDay();
|
|
@@ -4869,7 +4953,7 @@ function startOfBroadcastWeek(date, dateLib) {
|
|
|
4869
4953
|
}
|
|
4870
4954
|
}
|
|
4871
4955
|
|
|
4872
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
4956
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
|
|
4873
4957
|
function endOfBroadcastWeek(date, dateLib) {
|
|
4874
4958
|
const startDate = startOfBroadcastWeek(date, dateLib);
|
|
4875
4959
|
const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
|
|
@@ -4877,7 +4961,7 @@ function endOfBroadcastWeek(date, dateLib) {
|
|
|
4877
4961
|
return endDate;
|
|
4878
4962
|
}
|
|
4879
4963
|
|
|
4880
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
4964
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/locale/en-US.js
|
|
4881
4965
|
var enUS2 = {
|
|
4882
4966
|
...enUS,
|
|
4883
4967
|
labels: {
|
|
@@ -4936,7 +5020,7 @@ var enUS2 = {
|
|
|
4936
5020
|
}
|
|
4937
5021
|
};
|
|
4938
5022
|
|
|
4939
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5023
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/DateLib.js
|
|
4940
5024
|
var DateLib = class _DateLib {
|
|
4941
5025
|
/**
|
|
4942
5026
|
* Creates an instance of `DateLib`.
|
|
@@ -4945,7 +5029,6 @@ var DateLib = class _DateLib {
|
|
|
4945
5029
|
* @param overrides Custom overrides for the date library functions.
|
|
4946
5030
|
*/
|
|
4947
5031
|
constructor(options, overrides) {
|
|
4948
|
-
this.Date = Date;
|
|
4949
5032
|
this.today = () => {
|
|
4950
5033
|
if (this.overrides?.today) {
|
|
4951
5034
|
return this.overrides.today();
|
|
@@ -4953,7 +5036,8 @@ var DateLib = class _DateLib {
|
|
|
4953
5036
|
if (this.options.timeZone) {
|
|
4954
5037
|
return TZDate.tz(this.options.timeZone);
|
|
4955
5038
|
}
|
|
4956
|
-
|
|
5039
|
+
const DateCtor = this.options.Date ?? Date;
|
|
5040
|
+
return new DateCtor();
|
|
4957
5041
|
};
|
|
4958
5042
|
this.newDate = (year, monthIndex, date) => {
|
|
4959
5043
|
if (this.overrides?.newDate) {
|
|
@@ -5178,7 +5262,7 @@ DateLib.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
5178
5262
|
]);
|
|
5179
5263
|
var defaultDateLib = new DateLib();
|
|
5180
5264
|
|
|
5181
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5265
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
|
|
5182
5266
|
var CalendarDay = class {
|
|
5183
5267
|
constructor(date, displayMonth, dateLib = defaultDateLib) {
|
|
5184
5268
|
this.date = date;
|
|
@@ -5201,7 +5285,7 @@ var CalendarDay = class {
|
|
|
5201
5285
|
}
|
|
5202
5286
|
};
|
|
5203
5287
|
|
|
5204
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5288
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
|
|
5205
5289
|
var CalendarMonth = class {
|
|
5206
5290
|
constructor(month, weeks) {
|
|
5207
5291
|
this.date = month;
|
|
@@ -5209,7 +5293,7 @@ var CalendarMonth = class {
|
|
|
5209
5293
|
}
|
|
5210
5294
|
};
|
|
5211
5295
|
|
|
5212
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5296
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
|
|
5213
5297
|
var CalendarWeek = class {
|
|
5214
5298
|
constructor(weekNumber, days) {
|
|
5215
5299
|
this.days = days;
|
|
@@ -5217,10 +5301,9 @@ var CalendarWeek = class {
|
|
|
5217
5301
|
}
|
|
5218
5302
|
};
|
|
5219
5303
|
|
|
5220
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5304
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/components/custom-components.js
|
|
5221
5305
|
var custom_components_exports = {};
|
|
5222
5306
|
__export(custom_components_exports, {
|
|
5223
|
-
Button: () => Button2,
|
|
5224
5307
|
CaptionLabel: () => CaptionLabel,
|
|
5225
5308
|
Chevron: () => Chevron,
|
|
5226
5309
|
Day: () => Day,
|
|
@@ -5247,41 +5330,35 @@ __export(custom_components_exports, {
|
|
|
5247
5330
|
Weeks: () => Weeks,
|
|
5248
5331
|
YearsDropdown: () => YearsDropdown
|
|
5249
5332
|
});
|
|
5250
|
-
function Button2(props) {
|
|
5251
|
-
return React27.createElement("button", { ...props });
|
|
5252
|
-
}
|
|
5253
5333
|
function CaptionLabel(props) {
|
|
5254
|
-
return
|
|
5334
|
+
return React26.createElement("span", { ...props });
|
|
5255
5335
|
}
|
|
5256
5336
|
function Chevron(props) {
|
|
5257
|
-
const { size = 24, orientation = "left", className } = props;
|
|
5258
|
-
return (
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
orientation === "left" && React27.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
5266
|
-
orientation === "right" && React27.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
5267
|
-
)
|
|
5337
|
+
const { size = 24, orientation = "left", className, style } = props;
|
|
5338
|
+
return React26.createElement(
|
|
5339
|
+
"svg",
|
|
5340
|
+
{ className, style, width: size, height: size, viewBox: "0 0 24 24" },
|
|
5341
|
+
orientation === "up" && React26.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
5342
|
+
orientation === "down" && React26.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
5343
|
+
orientation === "left" && React26.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
5344
|
+
orientation === "right" && React26.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
5268
5345
|
);
|
|
5269
5346
|
}
|
|
5270
5347
|
function Day(props) {
|
|
5271
5348
|
const { day, modifiers, ...tdProps } = props;
|
|
5272
|
-
return
|
|
5349
|
+
return React26.createElement("td", { ...tdProps });
|
|
5273
5350
|
}
|
|
5274
5351
|
function DayButton(props) {
|
|
5275
5352
|
const { day, modifiers, ...buttonProps } = props;
|
|
5276
|
-
const ref =
|
|
5277
|
-
|
|
5353
|
+
const ref = React26.useRef(null);
|
|
5354
|
+
React26.useEffect(() => {
|
|
5278
5355
|
if (modifiers.focused)
|
|
5279
5356
|
ref.current?.focus();
|
|
5280
5357
|
}, [modifiers.focused]);
|
|
5281
|
-
return
|
|
5358
|
+
return React26.createElement("button", { ref, ...buttonProps });
|
|
5282
5359
|
}
|
|
5283
5360
|
|
|
5284
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5361
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/UI.js
|
|
5285
5362
|
var UI;
|
|
5286
5363
|
(function(UI2) {
|
|
5287
5364
|
UI2["Root"] = "root";
|
|
@@ -5335,61 +5412,60 @@ var Animation;
|
|
|
5335
5412
|
Animation2["caption_before_enter"] = "caption_before_enter";
|
|
5336
5413
|
Animation2["caption_before_exit"] = "caption_before_exit";
|
|
5337
5414
|
})(Animation || (Animation = {}));
|
|
5415
|
+
var dayPickerContext = createContext(void 0);
|
|
5416
|
+
function useDayPicker() {
|
|
5417
|
+
const context = useContext(dayPickerContext);
|
|
5418
|
+
if (context === void 0) {
|
|
5419
|
+
throw new Error("useDayPicker() must be used within a custom component.");
|
|
5420
|
+
}
|
|
5421
|
+
return context;
|
|
5422
|
+
}
|
|
5338
5423
|
|
|
5339
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5424
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
5340
5425
|
function Dropdown(props) {
|
|
5341
|
-
const { options, className,
|
|
5426
|
+
const { options, className, ...selectProps } = props;
|
|
5427
|
+
const { classNames, components, styles } = useDayPicker();
|
|
5342
5428
|
const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
|
|
5343
5429
|
const selectedOption = options?.find(({ value }) => value === selectProps.value);
|
|
5344
|
-
return
|
|
5430
|
+
return React26.createElement(
|
|
5345
5431
|
"span",
|
|
5346
|
-
{ "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] },
|
|
5347
|
-
|
|
5348
|
-
|
|
5432
|
+
{ "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot], style: styles?.[UI.DropdownRoot] },
|
|
5433
|
+
React26.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => React26.createElement(components.Option, { key: value, value, disabled }, label))),
|
|
5434
|
+
React26.createElement(
|
|
5349
5435
|
"span",
|
|
5350
|
-
{ className: classNames[UI.CaptionLabel], "aria-hidden": true },
|
|
5436
|
+
{ className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], "aria-hidden": true },
|
|
5351
5437
|
selectedOption?.label,
|
|
5352
|
-
|
|
5438
|
+
React26.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron], style: styles?.[UI.Chevron] })
|
|
5353
5439
|
)
|
|
5354
5440
|
);
|
|
5355
5441
|
}
|
|
5356
5442
|
function DropdownNav(props) {
|
|
5357
|
-
return
|
|
5443
|
+
return React26.createElement("div", { ...props });
|
|
5358
5444
|
}
|
|
5359
5445
|
function Footer(props) {
|
|
5360
|
-
return
|
|
5446
|
+
return React26.createElement("div", { ...props });
|
|
5361
5447
|
}
|
|
5362
5448
|
function Month(props) {
|
|
5363
5449
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
5364
|
-
return
|
|
5450
|
+
return React26.createElement("div", { ...divProps }, props.children);
|
|
5365
5451
|
}
|
|
5366
5452
|
function MonthCaption(props) {
|
|
5367
5453
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
5368
|
-
return
|
|
5454
|
+
return React26.createElement("div", { ...divProps });
|
|
5369
5455
|
}
|
|
5370
5456
|
function MonthGrid(props) {
|
|
5371
|
-
return
|
|
5457
|
+
return React26.createElement("table", { ...props });
|
|
5372
5458
|
}
|
|
5373
5459
|
function Months(props) {
|
|
5374
|
-
return
|
|
5375
|
-
}
|
|
5376
|
-
var dayPickerContext = createContext(void 0);
|
|
5377
|
-
function useDayPicker() {
|
|
5378
|
-
const context = useContext(dayPickerContext);
|
|
5379
|
-
if (context === void 0) {
|
|
5380
|
-
throw new Error("useDayPicker() must be used within a custom component.");
|
|
5381
|
-
}
|
|
5382
|
-
return context;
|
|
5460
|
+
return React26.createElement("div", { ...props });
|
|
5383
5461
|
}
|
|
5384
|
-
|
|
5385
|
-
// ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
5386
5462
|
function MonthsDropdown(props) {
|
|
5387
5463
|
const { components } = useDayPicker();
|
|
5388
|
-
return
|
|
5464
|
+
return React26.createElement(components.Dropdown, { ...props });
|
|
5389
5465
|
}
|
|
5390
5466
|
function Nav(props) {
|
|
5391
5467
|
const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
|
|
5392
|
-
const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
|
|
5468
|
+
const { components, classNames, styles, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
|
|
5393
5469
|
const handleNextClick = useCallback((e) => {
|
|
5394
5470
|
if (nextMonth) {
|
|
5395
5471
|
onNextClick?.(e);
|
|
@@ -5400,69 +5476,67 @@ function Nav(props) {
|
|
|
5400
5476
|
onPreviousClick?.(e);
|
|
5401
5477
|
}
|
|
5402
5478
|
}, [previousMonth, onPreviousClick]);
|
|
5403
|
-
return
|
|
5479
|
+
return React26.createElement(
|
|
5404
5480
|
"nav",
|
|
5405
5481
|
{ ...navProps },
|
|
5406
|
-
|
|
5482
|
+
React26.createElement(
|
|
5407
5483
|
components.PreviousMonthButton,
|
|
5408
|
-
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
|
|
5409
|
-
|
|
5484
|
+
{ type: "button", className: classNames[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
|
|
5485
|
+
React26.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: "left" })
|
|
5410
5486
|
),
|
|
5411
|
-
|
|
5487
|
+
React26.createElement(
|
|
5412
5488
|
components.NextMonthButton,
|
|
5413
|
-
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
|
|
5414
|
-
|
|
5489
|
+
{ type: "button", className: classNames[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
|
|
5490
|
+
React26.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron], style: styles?.[UI.Chevron] })
|
|
5415
5491
|
)
|
|
5416
5492
|
);
|
|
5417
5493
|
}
|
|
5418
5494
|
function NextMonthButton(props) {
|
|
5419
|
-
|
|
5420
|
-
return React27.createElement(components.Button, { ...props });
|
|
5495
|
+
return React26.createElement("button", { ...props });
|
|
5421
5496
|
}
|
|
5422
5497
|
function Option(props) {
|
|
5423
|
-
return
|
|
5498
|
+
return React26.createElement("option", { ...props });
|
|
5424
5499
|
}
|
|
5425
5500
|
function PreviousMonthButton(props) {
|
|
5426
|
-
|
|
5427
|
-
return React27.createElement(components.Button, { ...props });
|
|
5501
|
+
return React26.createElement("button", { ...props });
|
|
5428
5502
|
}
|
|
5429
5503
|
function Root6(props) {
|
|
5430
5504
|
const { rootRef, ...rest } = props;
|
|
5431
|
-
return
|
|
5505
|
+
return React26.createElement("div", { ...rest, ref: rootRef });
|
|
5432
5506
|
}
|
|
5433
5507
|
function Select(props) {
|
|
5434
|
-
return
|
|
5508
|
+
return React26.createElement("select", { ...props });
|
|
5435
5509
|
}
|
|
5436
5510
|
function Week(props) {
|
|
5437
5511
|
const { week, ...trProps } = props;
|
|
5438
|
-
return
|
|
5512
|
+
return React26.createElement("tr", { ...trProps });
|
|
5439
5513
|
}
|
|
5440
5514
|
function Weekday(props) {
|
|
5441
|
-
return
|
|
5515
|
+
return React26.createElement("th", { ...props });
|
|
5442
5516
|
}
|
|
5443
5517
|
function Weekdays(props) {
|
|
5444
|
-
return
|
|
5518
|
+
return React26.createElement(
|
|
5445
5519
|
"thead",
|
|
5446
5520
|
{ "aria-hidden": true },
|
|
5447
|
-
|
|
5521
|
+
React26.createElement("tr", { ...props })
|
|
5448
5522
|
);
|
|
5449
5523
|
}
|
|
5450
5524
|
function WeekNumber(props) {
|
|
5451
5525
|
const { week, ...thProps } = props;
|
|
5452
|
-
return
|
|
5526
|
+
return React26.createElement("th", { ...thProps });
|
|
5453
5527
|
}
|
|
5454
5528
|
function WeekNumberHeader(props) {
|
|
5455
|
-
return
|
|
5529
|
+
return React26.createElement("th", { ...props });
|
|
5456
5530
|
}
|
|
5457
5531
|
function Weeks(props) {
|
|
5458
|
-
return
|
|
5532
|
+
return React26.createElement("tbody", { ...props });
|
|
5459
5533
|
}
|
|
5460
5534
|
function YearsDropdown(props) {
|
|
5461
5535
|
const { components } = useDayPicker();
|
|
5462
|
-
return
|
|
5536
|
+
return React26.createElement(components.Dropdown, { ...props });
|
|
5463
5537
|
}
|
|
5464
5538
|
|
|
5465
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5539
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
5466
5540
|
function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
|
|
5467
5541
|
let { from, to } = range;
|
|
5468
5542
|
const { differenceInCalendarDays: differenceInCalendarDays2, isSameDay: isSameDay2 } = dateLib;
|
|
@@ -5483,7 +5557,7 @@ function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDa
|
|
|
5483
5557
|
return false;
|
|
5484
5558
|
}
|
|
5485
5559
|
|
|
5486
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5560
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/typeguards.js
|
|
5487
5561
|
function isDateInterval(matcher) {
|
|
5488
5562
|
return Boolean(matcher && typeof matcher === "object" && "before" in matcher && "after" in matcher);
|
|
5489
5563
|
}
|
|
@@ -5503,7 +5577,7 @@ function isDatesArray(value, dateLib) {
|
|
|
5503
5577
|
return Array.isArray(value) && value.every(dateLib.isDate);
|
|
5504
5578
|
}
|
|
5505
5579
|
|
|
5506
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5580
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
|
|
5507
5581
|
function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
5508
5582
|
const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
|
|
5509
5583
|
const { isSameDay: isSameDay2, differenceInCalendarDays: differenceInCalendarDays2, isAfter: isAfter2 } = dateLib;
|
|
@@ -5551,7 +5625,7 @@ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
|
5551
5625
|
});
|
|
5552
5626
|
}
|
|
5553
5627
|
|
|
5554
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5628
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
|
|
5555
5629
|
function createGetModifiers(days, props, navStart, navEnd, dateLib) {
|
|
5556
5630
|
const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today() } = props;
|
|
5557
5631
|
const { isSameDay: isSameDay2, isSameMonth: isSameMonth2, startOfMonth: startOfMonth2, isBefore: isBefore2, endOfMonth: endOfMonth2, isAfter: isAfter2 } = dateLib;
|
|
@@ -5620,7 +5694,7 @@ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
|
|
|
5620
5694
|
};
|
|
5621
5695
|
}
|
|
5622
5696
|
|
|
5623
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5697
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
|
|
5624
5698
|
function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
|
|
5625
5699
|
const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
|
|
5626
5700
|
if (modifiersClassNames[key]) {
|
|
@@ -5635,7 +5709,7 @@ function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames =
|
|
|
5635
5709
|
return modifierClassNames;
|
|
5636
5710
|
}
|
|
5637
5711
|
|
|
5638
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5712
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
|
|
5639
5713
|
function getComponents(customComponents) {
|
|
5640
5714
|
return {
|
|
5641
5715
|
...custom_components_exports,
|
|
@@ -5643,7 +5717,7 @@ function getComponents(customComponents) {
|
|
|
5643
5717
|
};
|
|
5644
5718
|
}
|
|
5645
5719
|
|
|
5646
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5720
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
|
|
5647
5721
|
function getDataAttributes(props) {
|
|
5648
5722
|
const dataAttributes = {
|
|
5649
5723
|
"data-mode": props.mode ?? void 0,
|
|
@@ -5661,7 +5735,7 @@ function getDataAttributes(props) {
|
|
|
5661
5735
|
return dataAttributes;
|
|
5662
5736
|
}
|
|
5663
5737
|
|
|
5664
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5738
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
|
|
5665
5739
|
function getDefaultClassNames() {
|
|
5666
5740
|
const classNames = {};
|
|
5667
5741
|
for (const key in UI) {
|
|
@@ -5679,43 +5753,40 @@ function getDefaultClassNames() {
|
|
|
5679
5753
|
return classNames;
|
|
5680
5754
|
}
|
|
5681
5755
|
|
|
5682
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5756
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/index.js
|
|
5683
5757
|
var formatters_exports = {};
|
|
5684
5758
|
__export(formatters_exports, {
|
|
5685
5759
|
formatCaption: () => formatCaption,
|
|
5686
5760
|
formatDay: () => formatDay,
|
|
5687
|
-
formatMonthCaption: () => formatMonthCaption,
|
|
5688
5761
|
formatMonthDropdown: () => formatMonthDropdown,
|
|
5689
5762
|
formatWeekNumber: () => formatWeekNumber,
|
|
5690
5763
|
formatWeekNumberHeader: () => formatWeekNumberHeader,
|
|
5691
5764
|
formatWeekdayName: () => formatWeekdayName,
|
|
5692
|
-
formatYearCaption: () => formatYearCaption,
|
|
5693
5765
|
formatYearDropdown: () => formatYearDropdown
|
|
5694
5766
|
});
|
|
5695
5767
|
|
|
5696
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5768
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
|
|
5697
5769
|
function formatCaption(month, options, dateLib) {
|
|
5698
5770
|
const lib = dateLib ?? new DateLib(options);
|
|
5699
5771
|
return lib.formatMonthYear(month);
|
|
5700
5772
|
}
|
|
5701
|
-
var formatMonthCaption = formatCaption;
|
|
5702
5773
|
|
|
5703
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5774
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
|
|
5704
5775
|
function formatDay(date, options, dateLib) {
|
|
5705
5776
|
return (dateLib ?? new DateLib(options)).format(date, "d");
|
|
5706
5777
|
}
|
|
5707
5778
|
|
|
5708
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5779
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
|
|
5709
5780
|
function formatMonthDropdown(month, dateLib = defaultDateLib) {
|
|
5710
5781
|
return dateLib.format(month, "LLLL");
|
|
5711
5782
|
}
|
|
5712
5783
|
|
|
5713
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5784
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
|
|
5714
5785
|
function formatWeekdayName(weekday, options, dateLib) {
|
|
5715
5786
|
return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
|
|
5716
5787
|
}
|
|
5717
5788
|
|
|
5718
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5789
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
|
|
5719
5790
|
function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
|
|
5720
5791
|
if (weekNumber < 10) {
|
|
5721
5792
|
return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
|
|
@@ -5723,36 +5794,27 @@ function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
|
|
|
5723
5794
|
return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
|
|
5724
5795
|
}
|
|
5725
5796
|
|
|
5726
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5797
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
|
|
5727
5798
|
function formatWeekNumberHeader() {
|
|
5728
5799
|
return ``;
|
|
5729
5800
|
}
|
|
5730
5801
|
|
|
5731
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5802
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
|
|
5732
5803
|
function formatYearDropdown(year, dateLib = defaultDateLib) {
|
|
5733
5804
|
return dateLib.format(year, "yyyy");
|
|
5734
5805
|
}
|
|
5735
|
-
var formatYearCaption = formatYearDropdown;
|
|
5736
5806
|
|
|
5737
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5807
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
|
|
5738
5808
|
function getFormatters(customFormatters) {
|
|
5739
|
-
if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {
|
|
5740
|
-
customFormatters.formatCaption = customFormatters.formatMonthCaption;
|
|
5741
|
-
}
|
|
5742
|
-
if (customFormatters?.formatYearCaption && !customFormatters.formatYearDropdown) {
|
|
5743
|
-
customFormatters.formatYearDropdown = customFormatters.formatYearCaption;
|
|
5744
|
-
}
|
|
5745
5809
|
return {
|
|
5746
5810
|
...formatters_exports,
|
|
5747
5811
|
...customFormatters
|
|
5748
5812
|
};
|
|
5749
5813
|
}
|
|
5750
5814
|
|
|
5751
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5815
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/index.js
|
|
5752
5816
|
var labels_exports = {};
|
|
5753
5817
|
__export(labels_exports, {
|
|
5754
|
-
labelCaption: () => labelCaption,
|
|
5755
|
-
labelDay: () => labelDay,
|
|
5756
5818
|
labelDayButton: () => labelDayButton,
|
|
5757
5819
|
labelGrid: () => labelGrid,
|
|
5758
5820
|
labelGridcell: () => labelGridcell,
|
|
@@ -5766,7 +5828,7 @@ __export(labels_exports, {
|
|
|
5766
5828
|
labelYearDropdown: () => labelYearDropdown
|
|
5767
5829
|
});
|
|
5768
5830
|
|
|
5769
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5831
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
|
|
5770
5832
|
function labelDayButton(date, modifiers, options, dateLib) {
|
|
5771
5833
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
5772
5834
|
if (modifiers.today)
|
|
@@ -5775,16 +5837,14 @@ function labelDayButton(date, modifiers, options, dateLib) {
|
|
|
5775
5837
|
label = `${label}, selected`;
|
|
5776
5838
|
return label;
|
|
5777
5839
|
}
|
|
5778
|
-
var labelDay = labelDayButton;
|
|
5779
5840
|
|
|
5780
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5841
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
|
|
5781
5842
|
function labelGrid(date, options, dateLib) {
|
|
5782
5843
|
const lib = dateLib ?? new DateLib(options);
|
|
5783
5844
|
return lib.formatMonthYear(date);
|
|
5784
5845
|
}
|
|
5785
|
-
var labelCaption = labelGrid;
|
|
5786
5846
|
|
|
5787
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5847
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
|
|
5788
5848
|
function labelGridcell(date, modifiers, options, dateLib) {
|
|
5789
5849
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
5790
5850
|
if (modifiers?.today) {
|
|
@@ -5793,48 +5853,48 @@ function labelGridcell(date, modifiers, options, dateLib) {
|
|
|
5793
5853
|
return label;
|
|
5794
5854
|
}
|
|
5795
5855
|
|
|
5796
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5856
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
|
|
5797
5857
|
function labelMonthDropdown(_options) {
|
|
5798
5858
|
return "Choose the Month";
|
|
5799
5859
|
}
|
|
5800
5860
|
|
|
5801
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5861
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelNav.js
|
|
5802
5862
|
function labelNav() {
|
|
5803
5863
|
return "";
|
|
5804
5864
|
}
|
|
5805
5865
|
|
|
5806
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5866
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelNext.js
|
|
5807
5867
|
var defaultLabel = "Go to the Next Month";
|
|
5808
5868
|
function labelNext(_month, _options) {
|
|
5809
5869
|
return defaultLabel;
|
|
5810
5870
|
}
|
|
5811
5871
|
|
|
5812
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5872
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
|
|
5813
5873
|
function labelPrevious(_month) {
|
|
5814
5874
|
return "Go to the Previous Month";
|
|
5815
5875
|
}
|
|
5816
5876
|
|
|
5817
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5877
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
|
|
5818
5878
|
function labelWeekday(date, options, dateLib) {
|
|
5819
5879
|
return (dateLib ?? new DateLib(options)).format(date, "cccc");
|
|
5820
5880
|
}
|
|
5821
5881
|
|
|
5822
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5882
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
|
|
5823
5883
|
function labelWeekNumber(weekNumber, _options) {
|
|
5824
5884
|
return `Week ${weekNumber}`;
|
|
5825
5885
|
}
|
|
5826
5886
|
|
|
5827
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5887
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
|
|
5828
5888
|
function labelWeekNumberHeader(_options) {
|
|
5829
5889
|
return "Week Number";
|
|
5830
5890
|
}
|
|
5831
5891
|
|
|
5832
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5892
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
|
|
5833
5893
|
function labelYearDropdown(_options) {
|
|
5834
5894
|
return "Choose the Year";
|
|
5835
5895
|
}
|
|
5836
5896
|
|
|
5837
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5897
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getLabels.js
|
|
5838
5898
|
var resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
|
|
5839
5899
|
if (customLabel)
|
|
5840
5900
|
return customLabel;
|
|
@@ -5862,7 +5922,7 @@ function getLabels(customLabels, options) {
|
|
|
5862
5922
|
};
|
|
5863
5923
|
}
|
|
5864
5924
|
|
|
5865
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5925
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
|
|
5866
5926
|
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
5867
5927
|
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
5868
5928
|
const months = eachMonthOfInterval2({
|
|
@@ -5878,7 +5938,7 @@ function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
|
5878
5938
|
return options;
|
|
5879
5939
|
}
|
|
5880
5940
|
|
|
5881
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5941
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
|
|
5882
5942
|
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
5883
5943
|
let style = { ...styles?.[UI.Day] };
|
|
5884
5944
|
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
@@ -5890,7 +5950,7 @@ function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
|
5890
5950
|
return style;
|
|
5891
5951
|
}
|
|
5892
5952
|
|
|
5893
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5953
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
|
|
5894
5954
|
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
5895
5955
|
const referenceToday = today ?? dateLib.today();
|
|
5896
5956
|
const start = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
@@ -5902,7 +5962,7 @@ function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
|
5902
5962
|
return days;
|
|
5903
5963
|
}
|
|
5904
5964
|
|
|
5905
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5965
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
|
|
5906
5966
|
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
|
|
5907
5967
|
if (!navStart)
|
|
5908
5968
|
return void 0;
|
|
@@ -5924,7 +5984,7 @@ function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false)
|
|
|
5924
5984
|
});
|
|
5925
5985
|
}
|
|
5926
5986
|
|
|
5927
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
5987
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/noonDateLib.js
|
|
5928
5988
|
function createNoonOverrides(timeZone, options = {}) {
|
|
5929
5989
|
const { weekStartsOn, locale } = options;
|
|
5930
5990
|
const fallbackWeekStartsOn = weekStartsOn ?? locale?.options?.weekStartsOn ?? 0;
|
|
@@ -6120,7 +6180,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
|
|
|
6120
6180
|
}
|
|
6121
6181
|
const previousMonthEls = previousRootElSnapshot instanceof HTMLElement ? queryMonthEls(previousRootElSnapshot) : [];
|
|
6122
6182
|
const currentMonthEls = queryMonthEls(rootElRef.current);
|
|
6123
|
-
if (currentMonthEls?.every((el) => el instanceof HTMLElement) && previousMonthEls
|
|
6183
|
+
if (currentMonthEls?.every((el) => el instanceof HTMLElement) && previousMonthEls?.every((el) => el instanceof HTMLElement)) {
|
|
6124
6184
|
animatingRef.current = true;
|
|
6125
6185
|
rootElRef.current.style.isolation = "isolate";
|
|
6126
6186
|
const navEl = queryNavEl(rootElRef.current);
|
|
@@ -6185,7 +6245,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
|
|
|
6185
6245
|
});
|
|
6186
6246
|
}
|
|
6187
6247
|
|
|
6188
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6248
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDates.js
|
|
6189
6249
|
function getDates(displayMonths, maxDate, props, dateLib) {
|
|
6190
6250
|
const firstMonth = displayMonths[0];
|
|
6191
6251
|
const lastMonth = displayMonths[displayMonths.length - 1];
|
|
@@ -6214,7 +6274,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
|
|
|
6214
6274
|
return dates;
|
|
6215
6275
|
}
|
|
6216
6276
|
|
|
6217
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6277
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDays.js
|
|
6218
6278
|
function getDays(calendarMonths) {
|
|
6219
6279
|
const initialDays = [];
|
|
6220
6280
|
return calendarMonths.reduce((days, month) => {
|
|
@@ -6225,7 +6285,7 @@ function getDays(calendarMonths) {
|
|
|
6225
6285
|
}, initialDays.slice());
|
|
6226
6286
|
}
|
|
6227
6287
|
|
|
6228
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6288
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
|
|
6229
6289
|
function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
|
|
6230
6290
|
const { numberOfMonths = 1 } = props;
|
|
6231
6291
|
const months = [];
|
|
@@ -6239,7 +6299,7 @@ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib)
|
|
|
6239
6299
|
return months;
|
|
6240
6300
|
}
|
|
6241
6301
|
|
|
6242
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6302
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
|
|
6243
6303
|
function getInitialMonth(props, navStart, navEnd, dateLib) {
|
|
6244
6304
|
const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1 } = props;
|
|
6245
6305
|
let initialMonth = month || defaultMonth || today;
|
|
@@ -6254,7 +6314,7 @@ function getInitialMonth(props, navStart, navEnd, dateLib) {
|
|
|
6254
6314
|
return startOfMonth2(initialMonth);
|
|
6255
6315
|
}
|
|
6256
6316
|
|
|
6257
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6317
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
|
|
6258
6318
|
function getMonths(displayMonths, dates, props, dateLib) {
|
|
6259
6319
|
const { addDays: addDays2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, getISOWeek: getISOWeek2, getWeek: getWeek2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
|
|
6260
6320
|
const dayPickerMonths = displayMonths.reduce((months, month) => {
|
|
@@ -6293,35 +6353,18 @@ function getMonths(displayMonths, dates, props, dateLib) {
|
|
|
6293
6353
|
}
|
|
6294
6354
|
}
|
|
6295
6355
|
|
|
6296
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6356
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
|
|
6297
6357
|
function getNavMonths(props, dateLib) {
|
|
6298
6358
|
let { startMonth, endMonth } = props;
|
|
6299
|
-
const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2,
|
|
6300
|
-
const { fromYear, toYear, fromMonth, toMonth } = props;
|
|
6301
|
-
if (!startMonth && fromMonth) {
|
|
6302
|
-
startMonth = fromMonth;
|
|
6303
|
-
}
|
|
6304
|
-
if (!startMonth && fromYear) {
|
|
6305
|
-
startMonth = dateLib.newDate(fromYear, 0, 1);
|
|
6306
|
-
}
|
|
6307
|
-
if (!endMonth && toMonth) {
|
|
6308
|
-
endMonth = toMonth;
|
|
6309
|
-
}
|
|
6310
|
-
if (!endMonth && toYear) {
|
|
6311
|
-
endMonth = newDate(toYear, 11, 31);
|
|
6312
|
-
}
|
|
6359
|
+
const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2, today } = dateLib;
|
|
6313
6360
|
const hasYearDropdown = props.captionLayout === "dropdown" || props.captionLayout === "dropdown-years";
|
|
6314
6361
|
if (startMonth) {
|
|
6315
6362
|
startMonth = startOfMonth2(startMonth);
|
|
6316
|
-
} else if (fromYear) {
|
|
6317
|
-
startMonth = newDate(fromYear, 0, 1);
|
|
6318
6363
|
} else if (!startMonth && hasYearDropdown) {
|
|
6319
6364
|
startMonth = startOfYear2(addYears2(props.today ?? today(), -100));
|
|
6320
6365
|
}
|
|
6321
6366
|
if (endMonth) {
|
|
6322
6367
|
endMonth = endOfMonth2(endMonth);
|
|
6323
|
-
} else if (toYear) {
|
|
6324
|
-
endMonth = newDate(toYear, 11, 31);
|
|
6325
6368
|
} else if (!endMonth && hasYearDropdown) {
|
|
6326
6369
|
endMonth = endOfYear2(props.today ?? today());
|
|
6327
6370
|
}
|
|
@@ -6331,7 +6374,7 @@ function getNavMonths(props, dateLib) {
|
|
|
6331
6374
|
];
|
|
6332
6375
|
}
|
|
6333
6376
|
|
|
6334
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6377
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
|
|
6335
6378
|
function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
|
|
6336
6379
|
if (options.disableNavigation) {
|
|
6337
6380
|
return void 0;
|
|
@@ -6350,7 +6393,7 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
|
|
|
6350
6393
|
return addMonths2(month, offset);
|
|
6351
6394
|
}
|
|
6352
6395
|
|
|
6353
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6396
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
|
|
6354
6397
|
function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
|
|
6355
6398
|
if (options.disableNavigation) {
|
|
6356
6399
|
return void 0;
|
|
@@ -6369,7 +6412,7 @@ function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, date
|
|
|
6369
6412
|
return addMonths2(month, -offset);
|
|
6370
6413
|
}
|
|
6371
6414
|
|
|
6372
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6415
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
|
|
6373
6416
|
function getWeeks(months) {
|
|
6374
6417
|
const initialWeeks = [];
|
|
6375
6418
|
return months.reduce((weeks, month) => {
|
|
@@ -6382,7 +6425,7 @@ function useControlledValue(defaultValue, controlledValue) {
|
|
|
6382
6425
|
return [value, setValue];
|
|
6383
6426
|
}
|
|
6384
6427
|
|
|
6385
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6428
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/useCalendar.js
|
|
6386
6429
|
function useCalendar(props, dateLib) {
|
|
6387
6430
|
const [navStart, navEnd] = getNavMonths(props, dateLib);
|
|
6388
6431
|
const { startOfMonth: startOfMonth2, endOfMonth: endOfMonth2 } = dateLib;
|
|
@@ -6470,7 +6513,7 @@ function useCalendar(props, dateLib) {
|
|
|
6470
6513
|
return calendar;
|
|
6471
6514
|
}
|
|
6472
6515
|
|
|
6473
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6516
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
|
|
6474
6517
|
var FocusTargetPriority;
|
|
6475
6518
|
(function(FocusTargetPriority2) {
|
|
6476
6519
|
FocusTargetPriority2[FocusTargetPriority2["Today"] = 0] = "Today";
|
|
@@ -6508,7 +6551,7 @@ function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
|
|
|
6508
6551
|
return focusTarget;
|
|
6509
6552
|
}
|
|
6510
6553
|
|
|
6511
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6554
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
|
|
6512
6555
|
function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
|
|
6513
6556
|
const { ISOWeek, broadcastCalendar } = props;
|
|
6514
6557
|
const { addDays: addDays2, addMonths: addMonths2, addWeeks: addWeeks2, addYears: addYears2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfWeek: endOfWeek2, max: max2, min: min2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
|
|
@@ -6529,7 +6572,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
|
|
|
6529
6572
|
return focusableDate;
|
|
6530
6573
|
}
|
|
6531
6574
|
|
|
6532
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6575
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
|
|
6533
6576
|
function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
|
|
6534
6577
|
if (attempt > 365) {
|
|
6535
6578
|
return void 0;
|
|
@@ -6545,7 +6588,7 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
|
|
|
6545
6588
|
return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
|
|
6546
6589
|
}
|
|
6547
6590
|
|
|
6548
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6591
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/useFocus.js
|
|
6549
6592
|
function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
6550
6593
|
const { autoFocus } = props;
|
|
6551
6594
|
const [lastFocused, setLastFocused] = useState();
|
|
@@ -6583,7 +6626,7 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
|
6583
6626
|
return useFocus2;
|
|
6584
6627
|
}
|
|
6585
6628
|
|
|
6586
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6629
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useMulti.js
|
|
6587
6630
|
function useMulti(props, dateLib) {
|
|
6588
6631
|
const { selected: initiallySelected, required, onSelect } = props;
|
|
6589
6632
|
const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
|
|
@@ -6623,7 +6666,7 @@ function useMulti(props, dateLib) {
|
|
|
6623
6666
|
};
|
|
6624
6667
|
}
|
|
6625
6668
|
|
|
6626
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6669
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/addToRange.js
|
|
6627
6670
|
function addToRange(date, initialRange, min2 = 0, max2 = 0, required = false, dateLib = defaultDateLib) {
|
|
6628
6671
|
const { from, to } = initialRange || {};
|
|
6629
6672
|
const { isSameDay: isSameDay2, isAfter: isAfter2, isBefore: isBefore2 } = dateLib;
|
|
@@ -6676,7 +6719,7 @@ function addToRange(date, initialRange, min2 = 0, max2 = 0, required = false, da
|
|
|
6676
6719
|
return range;
|
|
6677
6720
|
}
|
|
6678
6721
|
|
|
6679
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6722
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
|
|
6680
6723
|
function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
|
|
6681
6724
|
const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
|
|
6682
6725
|
let date = range.from;
|
|
@@ -6691,12 +6734,12 @@ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
|
|
|
6691
6734
|
return false;
|
|
6692
6735
|
}
|
|
6693
6736
|
|
|
6694
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6737
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
|
|
6695
6738
|
function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
|
|
6696
6739
|
return rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) || rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) || rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib);
|
|
6697
6740
|
}
|
|
6698
6741
|
|
|
6699
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6742
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
|
|
6700
6743
|
function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
|
|
6701
6744
|
const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
|
|
6702
6745
|
const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
|
|
@@ -6750,15 +6793,30 @@ function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
|
|
|
6750
6793
|
return false;
|
|
6751
6794
|
}
|
|
6752
6795
|
|
|
6753
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6796
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useRange.js
|
|
6754
6797
|
function useRange(props, dateLib) {
|
|
6755
|
-
const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;
|
|
6798
|
+
const { disabled, excludeDisabled, resetOnSelect, selected: initiallySelected, required, onSelect } = props;
|
|
6756
6799
|
const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
|
|
6757
6800
|
const selected = !onSelect ? internallySelected : initiallySelected;
|
|
6758
6801
|
const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);
|
|
6759
6802
|
const select = (triggerDate, modifiers, e) => {
|
|
6760
6803
|
const { min: min2, max: max2 } = props;
|
|
6761
|
-
|
|
6804
|
+
let newRange;
|
|
6805
|
+
if (triggerDate) {
|
|
6806
|
+
const selectedFrom = selected?.from;
|
|
6807
|
+
const selectedTo = selected?.to;
|
|
6808
|
+
const hasFullRange = !!selectedFrom && !!selectedTo;
|
|
6809
|
+
const isClickingSingleDayRange = !!selectedFrom && !!selectedTo && dateLib.isSameDay(selectedFrom, selectedTo) && dateLib.isSameDay(triggerDate, selectedFrom);
|
|
6810
|
+
if (resetOnSelect && (hasFullRange || !selected?.from)) {
|
|
6811
|
+
if (!required && isClickingSingleDayRange) {
|
|
6812
|
+
newRange = void 0;
|
|
6813
|
+
} else {
|
|
6814
|
+
newRange = { from: triggerDate, to: void 0 };
|
|
6815
|
+
}
|
|
6816
|
+
} else {
|
|
6817
|
+
newRange = addToRange(triggerDate, selected, min2, max2, required, dateLib);
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6762
6820
|
if (excludeDisabled && disabled && newRange?.from && newRange.to) {
|
|
6763
6821
|
if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {
|
|
6764
6822
|
newRange.from = triggerDate;
|
|
@@ -6778,7 +6836,7 @@ function useRange(props, dateLib) {
|
|
|
6778
6836
|
};
|
|
6779
6837
|
}
|
|
6780
6838
|
|
|
6781
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6839
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useSingle.js
|
|
6782
6840
|
function useSingle(props, dateLib) {
|
|
6783
6841
|
const { selected: initiallySelected, required, onSelect } = props;
|
|
6784
6842
|
const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
|
|
@@ -6809,7 +6867,7 @@ function useSingle(props, dateLib) {
|
|
|
6809
6867
|
};
|
|
6810
6868
|
}
|
|
6811
6869
|
|
|
6812
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6870
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/useSelection.js
|
|
6813
6871
|
function useSelection(props, dateLib) {
|
|
6814
6872
|
const single = useSingle(props, dateLib);
|
|
6815
6873
|
const multi = useMulti(props, dateLib);
|
|
@@ -6826,7 +6884,7 @@ function useSelection(props, dateLib) {
|
|
|
6826
6884
|
}
|
|
6827
6885
|
}
|
|
6828
6886
|
|
|
6829
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6887
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
|
|
6830
6888
|
function toTimeZone(date, timeZone) {
|
|
6831
6889
|
if (date instanceof TZDate && date.timeZone === timeZone) {
|
|
6832
6890
|
return date;
|
|
@@ -6834,7 +6892,7 @@ function toTimeZone(date, timeZone) {
|
|
|
6834
6892
|
return new TZDate(date, timeZone);
|
|
6835
6893
|
}
|
|
6836
6894
|
|
|
6837
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6895
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
|
|
6838
6896
|
function toZoneNoon(date, timeZone, noonSafe) {
|
|
6839
6897
|
return toTimeZone(date, timeZone);
|
|
6840
6898
|
}
|
|
@@ -6883,7 +6941,7 @@ function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {
|
|
|
6883
6941
|
return convertMatcher(matchers, timeZone);
|
|
6884
6942
|
}
|
|
6885
6943
|
|
|
6886
|
-
// ../../node_modules/.pnpm/react-day-picker@
|
|
6944
|
+
// ../../node_modules/.pnpm/react-day-picker@10.0.1_@types+react@19.2.15_react@19.2.7/node_modules/react-day-picker/dist/esm/DayPicker.js
|
|
6887
6945
|
function DayPicker(initialProps) {
|
|
6888
6946
|
let props = initialProps;
|
|
6889
6947
|
const timeZone = props.timeZone;
|
|
@@ -7046,21 +7104,32 @@ function DayPicker(initialProps) {
|
|
|
7046
7104
|
const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {
|
|
7047
7105
|
onDayMouseLeave?.(day.date, modifiers, e);
|
|
7048
7106
|
}, [onDayMouseLeave]);
|
|
7049
|
-
const handleMonthChange = useCallback((date) => (e) => {
|
|
7107
|
+
const handleMonthChange = useCallback((date, monthOffset) => (e) => {
|
|
7050
7108
|
const selectedMonth = Number(e.target.value);
|
|
7051
7109
|
const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
|
|
7052
|
-
goToMonth(month);
|
|
7110
|
+
goToMonth(dateLib.addMonths(month, -monthOffset));
|
|
7053
7111
|
}, [dateLib, goToMonth]);
|
|
7054
|
-
const handleYearChange = useCallback((date) => (e) => {
|
|
7112
|
+
const handleYearChange = useCallback((date, monthOffset) => (e) => {
|
|
7055
7113
|
const selectedYear = Number(e.target.value);
|
|
7056
7114
|
const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
|
|
7057
|
-
goToMonth(month);
|
|
7115
|
+
goToMonth(dateLib.addMonths(month, -monthOffset));
|
|
7058
7116
|
}, [dateLib, goToMonth]);
|
|
7059
7117
|
const { className, style } = useMemo(() => ({
|
|
7060
7118
|
className: [classNames[UI.Root], props.className].filter(Boolean).join(" "),
|
|
7061
7119
|
style: { ...styles?.[UI.Root], ...props.style }
|
|
7062
7120
|
}), [classNames, props.className, props.style, styles]);
|
|
7063
7121
|
const dataAttributes = getDataAttributes(props);
|
|
7122
|
+
const getDropdownStyle = (dropdown) => {
|
|
7123
|
+
const dropdownStyle = styles?.[UI.Dropdown];
|
|
7124
|
+
const specificDropdownStyle = styles?.[dropdown];
|
|
7125
|
+
if (!dropdownStyle && !specificDropdownStyle) {
|
|
7126
|
+
return void 0;
|
|
7127
|
+
}
|
|
7128
|
+
return {
|
|
7129
|
+
...dropdownStyle,
|
|
7130
|
+
...specificDropdownStyle
|
|
7131
|
+
};
|
|
7132
|
+
};
|
|
7064
7133
|
const rootElRef = useRef(null);
|
|
7065
7134
|
useAnimation(rootElRef, Boolean(props.animate), {
|
|
7066
7135
|
classNames,
|
|
@@ -7084,18 +7153,19 @@ function DayPicker(initialProps) {
|
|
|
7084
7153
|
labels,
|
|
7085
7154
|
formatters: formatters2
|
|
7086
7155
|
};
|
|
7087
|
-
return
|
|
7156
|
+
return React26.createElement(
|
|
7088
7157
|
dayPickerContext.Provider,
|
|
7089
7158
|
{ value: contextValue },
|
|
7090
|
-
|
|
7159
|
+
React26.createElement(
|
|
7091
7160
|
components.Root,
|
|
7092
|
-
{ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
|
|
7093
|
-
|
|
7161
|
+
{ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang ?? locale.code, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
|
|
7162
|
+
React26.createElement(
|
|
7094
7163
|
components.Months,
|
|
7095
7164
|
{ className: classNames[UI.Months], style: styles?.[UI.Months] },
|
|
7096
|
-
!props.hideNavigation && !navLayout &&
|
|
7165
|
+
!props.hideNavigation && !navLayout && React26.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
7097
7166
|
months.map((calendarMonth, displayIndex) => {
|
|
7098
|
-
|
|
7167
|
+
const monthOffset = props.reverseMonths ? months.length - 1 - displayIndex : displayIndex;
|
|
7168
|
+
return React26.createElement(
|
|
7099
7169
|
components.Month,
|
|
7100
7170
|
{
|
|
7101
7171
|
"data-animated-month": props.animate ? "true" : void 0,
|
|
@@ -7106,21 +7176,21 @@ function DayPicker(initialProps) {
|
|
|
7106
7176
|
displayIndex,
|
|
7107
7177
|
calendarMonth
|
|
7108
7178
|
},
|
|
7109
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === 0 &&
|
|
7179
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React26.createElement(
|
|
7110
7180
|
components.PreviousMonthButton,
|
|
7111
|
-
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
7112
|
-
|
|
7181
|
+
{ type: "button", className: classNames[UI.PreviousMonthButton], style: styles?.[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
7182
|
+
React26.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
|
|
7113
7183
|
),
|
|
7114
|
-
|
|
7184
|
+
React26.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? React26.createElement(
|
|
7115
7185
|
components.DropdownNav,
|
|
7116
7186
|
{ className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
|
|
7117
7187
|
(() => {
|
|
7118
|
-
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ?
|
|
7119
|
-
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ?
|
|
7188
|
+
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React26.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date, monthOffset), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: getDropdownStyle(UI.MonthsDropdown), value: dateLib.getMonth(calendarMonth.date) }) : React26.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
|
|
7189
|
+
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React26.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date, monthOffset), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: getDropdownStyle(UI.YearsDropdown), value: dateLib.getYear(calendarMonth.date) }) : React26.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
|
|
7120
7190
|
const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
|
|
7121
7191
|
return controls;
|
|
7122
7192
|
})(),
|
|
7123
|
-
|
|
7193
|
+
React26.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
7124
7194
|
border: 0,
|
|
7125
7195
|
clip: "rect(0 0 0 0)",
|
|
7126
7196
|
height: "1px",
|
|
@@ -7132,27 +7202,27 @@ function DayPicker(initialProps) {
|
|
|
7132
7202
|
whiteSpace: "nowrap",
|
|
7133
7203
|
wordWrap: "normal"
|
|
7134
7204
|
} }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
|
|
7135
|
-
) :
|
|
7136
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 &&
|
|
7205
|
+
) : React26.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
|
|
7206
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React26.createElement(
|
|
7137
7207
|
components.NextMonthButton,
|
|
7138
|
-
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
7139
|
-
|
|
7208
|
+
{ type: "button", className: classNames[UI.NextMonthButton], style: styles?.[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
7209
|
+
React26.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
|
|
7140
7210
|
),
|
|
7141
|
-
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation &&
|
|
7142
|
-
|
|
7211
|
+
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React26.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
7212
|
+
React26.createElement(
|
|
7143
7213
|
components.MonthGrid,
|
|
7144
7214
|
{ role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
|
|
7145
|
-
!props.hideWeekdays &&
|
|
7215
|
+
!props.hideWeekdays && React26.createElement(
|
|
7146
7216
|
components.Weekdays,
|
|
7147
7217
|
{ "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
|
|
7148
|
-
showWeekNumber &&
|
|
7149
|
-
weekdays.map((weekday) =>
|
|
7218
|
+
showWeekNumber && React26.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
|
|
7219
|
+
weekdays.map((weekday) => React26.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
|
|
7150
7220
|
),
|
|
7151
|
-
|
|
7152
|
-
return
|
|
7221
|
+
React26.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
|
|
7222
|
+
return React26.createElement(
|
|
7153
7223
|
components.Week,
|
|
7154
7224
|
{ className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
|
|
7155
|
-
showWeekNumber &&
|
|
7225
|
+
showWeekNumber && React26.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
|
|
7156
7226
|
locale
|
|
7157
7227
|
}), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
|
|
7158
7228
|
week.days.map((day) => {
|
|
@@ -7169,7 +7239,7 @@ function DayPicker(initialProps) {
|
|
|
7169
7239
|
const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
|
|
7170
7240
|
const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
|
|
7171
7241
|
const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
|
|
7172
|
-
return
|
|
7242
|
+
return React26.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? React26.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
|
|
7173
7243
|
})
|
|
7174
7244
|
);
|
|
7175
7245
|
}))
|
|
@@ -7177,7 +7247,7 @@ function DayPicker(initialProps) {
|
|
|
7177
7247
|
);
|
|
7178
7248
|
})
|
|
7179
7249
|
),
|
|
7180
|
-
props.footer &&
|
|
7250
|
+
props.footer && React26.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
|
|
7181
7251
|
)
|
|
7182
7252
|
);
|
|
7183
7253
|
}
|
|
@@ -7278,8 +7348,7 @@ var PopoverContent = ({
|
|
|
7278
7348
|
onEscapeKeyDown,
|
|
7279
7349
|
...props
|
|
7280
7350
|
}) => {
|
|
7281
|
-
const
|
|
7282
|
-
const effectiveVariant = !isLegacy ? "argo" : "default";
|
|
7351
|
+
const effectiveVariant = useArgoDesign() ? "argo" : "default";
|
|
7283
7352
|
return /* @__PURE__ */ jsx(Portal$1, { children: /* @__PURE__ */ jsx(
|
|
7284
7353
|
Content$2,
|
|
7285
7354
|
{
|
|
@@ -7759,17 +7828,21 @@ var FieldTemplateBody = ({
|
|
|
7759
7828
|
const hasErrors = rawErrors && rawErrors.length > 0;
|
|
7760
7829
|
const isCheckbox = schema.type === "boolean" && uiSchema?.["ui:widget"] !== "select";
|
|
7761
7830
|
const showLabel = displayLabel && label && !isCheckbox;
|
|
7831
|
+
const hasHelpIcons = Boolean(rawHelp || documentation);
|
|
7832
|
+
const helpIcons = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7833
|
+
rawHelp && /* @__PURE__ */ jsx(TooltipIcon, { rawHelp }),
|
|
7834
|
+
documentation && /* @__PURE__ */ jsx(DocumentationLinkIcon, { documentation })
|
|
7835
|
+
] });
|
|
7762
7836
|
return /* @__PURE__ */ jsxs(FormGroup, { state: hasErrors ? "error" : "default", children: [
|
|
7763
7837
|
showLabel && /* @__PURE__ */ jsx(Label, { htmlFor: id, children: /* @__PURE__ */ jsxs("span", { className: "tw-inline-flex tw-items-center tw-gap-1", children: [
|
|
7764
7838
|
label,
|
|
7765
|
-
|
|
7766
|
-
documentation && /* @__PURE__ */ jsx(DocumentationLinkIcon, { documentation })
|
|
7839
|
+
helpIcons
|
|
7767
7840
|
] }) }),
|
|
7768
|
-
!showLabel &&
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
children,
|
|
7841
|
+
!showLabel && !isCheckbox && hasHelpIcons && /* @__PURE__ */ jsx("div", { className: "tw-flex tw-items-center tw-gap-1", children: helpIcons }),
|
|
7842
|
+
isCheckbox && hasHelpIcons ? /* @__PURE__ */ jsxs("div", { className: "tw-flex tw-items-center tw-gap-1", children: [
|
|
7843
|
+
children,
|
|
7844
|
+
helpIcons
|
|
7845
|
+
] }) : children,
|
|
7773
7846
|
rawDescription && /* @__PURE__ */ jsx(FormGroup.Help, { children: /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: DOMPurify.sanitize(rawDescription) } }) }),
|
|
7774
7847
|
hasErrors && /* @__PURE__ */ jsx(FormGroup.Help, { children: rawErrors.join(". ") })
|
|
7775
7848
|
] });
|
|
@@ -7982,8 +8055,8 @@ var rootVariants = cva(
|
|
|
7982
8055
|
default: [
|
|
7983
8056
|
"tw-rounded",
|
|
7984
8057
|
"tw-border-neutral-200",
|
|
7985
|
-
"data-[state=checked]:tw-bg-
|
|
7986
|
-
"data-[state=checked]:tw-border-
|
|
8058
|
+
"data-[state=checked]:tw-bg-primary",
|
|
8059
|
+
"data-[state=checked]:tw-border-primary",
|
|
7987
8060
|
"data-[state=indeterminate]:tw-bg-white",
|
|
7988
8061
|
"data-[state=indeterminate]:tw-border-neutral-200"
|
|
7989
8062
|
],
|
|
@@ -7999,7 +8072,7 @@ var rootVariants = cva(
|
|
|
7999
8072
|
"focus-visible:tw-outline-none",
|
|
8000
8073
|
"focus-visible:tw-border-primary",
|
|
8001
8074
|
"focus-visible:tw-ring-2",
|
|
8002
|
-
"focus-visible:tw-ring-
|
|
8075
|
+
"focus-visible:tw-ring-ring/50"
|
|
8003
8076
|
]
|
|
8004
8077
|
}
|
|
8005
8078
|
}
|
|
@@ -8012,7 +8085,7 @@ var indicatorVariants = cva(["tw-group", "tw-flex", "tw-items-center"], {
|
|
|
8012
8085
|
variants: {
|
|
8013
8086
|
variant: {
|
|
8014
8087
|
default: [
|
|
8015
|
-
"data-[state=checked]:tw-text-
|
|
8088
|
+
"data-[state=checked]:tw-text-primary-foreground",
|
|
8016
8089
|
"data-[state=indeterminate]:tw-text-neutral-200"
|
|
8017
8090
|
],
|
|
8018
8091
|
argo: ["tw-text-primary-foreground"]
|
|
@@ -8032,8 +8105,7 @@ function Checkbox({
|
|
|
8032
8105
|
}) {
|
|
8033
8106
|
const fallbackId = useId();
|
|
8034
8107
|
const id = idProp?.toString() ?? fallbackId;
|
|
8035
|
-
const
|
|
8036
|
-
const styleVariant = !isLegacy ? "argo" : "default";
|
|
8108
|
+
const styleVariant = useArgoDesign() ? "argo" : "default";
|
|
8037
8109
|
const checkboxElement = /* @__PURE__ */ jsx(Root, { id, ...rest, className: cn(rootVariants({ variant: styleVariant, className })), children: /* @__PURE__ */ jsxs(Indicator, { className: cn(indicatorVariants({ variant: styleVariant })), children: [
|
|
8038
8110
|
/* @__PURE__ */ jsx(icons_exports.Check, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=checked]:tw-block" }),
|
|
8039
8111
|
/* @__PURE__ */ jsx(icons_exports.Minus, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=indeterminate]:tw-block" })
|
|
@@ -8219,14 +8291,16 @@ var badgeColors = {
|
|
|
8219
8291
|
gray: "tw-bg-neutral-400 tw-text-white tw-decoration-neutral-400",
|
|
8220
8292
|
"gray-darker": "tw-bg-neutral-500 tw-text-white tw-decoration-neutral-500",
|
|
8221
8293
|
"gray-inverse": "tw-bg-neutral-100 tw-text-neutral-400 tw-decoration-neutral-100",
|
|
8222
|
-
green: "tw-bg-
|
|
8223
|
-
"green-darker": "tw-bg-
|
|
8224
|
-
"green-inverse": "tw-bg-
|
|
8225
|
-
blue: "tw-bg-
|
|
8226
|
-
"blue-inverse": "tw-bg-
|
|
8294
|
+
green: "tw-bg-green-500 tw-text-white tw-decoration-green-500",
|
|
8295
|
+
"green-darker": "tw-bg-green-600 tw-text-white tw-decoration-green-600",
|
|
8296
|
+
"green-inverse": "tw-bg-green-100 tw-text-green-900 tw-decoration-green-100",
|
|
8297
|
+
blue: "tw-bg-blue-500 tw-text-white tw-decoration-blue-500",
|
|
8298
|
+
"blue-inverse": "tw-bg-blue-100 tw-text-blue-600 tw-decoration-blue-100",
|
|
8227
8299
|
red: "tw-bg-error-500 tw-text-white tw-decoration-error-500",
|
|
8228
8300
|
orange: "tw-bg-warning-500 tw-text-white tw-decoration-warning-500",
|
|
8229
8301
|
"orange-inverse": "tw-bg-warning-100 tw-text-warning-500 tw-decoration-warning-100",
|
|
8302
|
+
amber: "tw-bg-warning-300 tw-text-warning-800 tw-decoration-warning-300",
|
|
8303
|
+
"amber-inverse": "tw-bg-warning-100 tw-text-warning-700 tw-decoration-warning-100",
|
|
8230
8304
|
teal: "tw-bg-teal-500 tw-text-white tw-decoration-teal-500",
|
|
8231
8305
|
"teal-inverse": "tw-bg-teal-100 tw-text-teal-800 tw-decoration-teal-100",
|
|
8232
8306
|
purple: "tw-bg-purple-500 tw-text-white tw-decoration-purple-500",
|
|
@@ -8432,8 +8506,7 @@ var ComboboxContent = ({
|
|
|
8432
8506
|
children,
|
|
8433
8507
|
...popupProps
|
|
8434
8508
|
}) => {
|
|
8435
|
-
const
|
|
8436
|
-
const effectiveVariant = !isLegacy ? "argo" : "default";
|
|
8509
|
+
const effectiveVariant = useArgoDesign() ? "argo" : "default";
|
|
8437
8510
|
return /* @__PURE__ */ jsx(Combobox$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
8438
8511
|
Combobox$1.Positioner,
|
|
8439
8512
|
{
|
|
@@ -8563,7 +8636,7 @@ var ComboboxItemIndicator = ({
|
|
|
8563
8636
|
"tw-rounded",
|
|
8564
8637
|
"tw-border",
|
|
8565
8638
|
"tw-border-input",
|
|
8566
|
-
"tw-bg-
|
|
8639
|
+
"tw-bg-background",
|
|
8567
8640
|
"data-[selected]:tw-bg-primary",
|
|
8568
8641
|
"data-[selected]:tw-border-primary",
|
|
8569
8642
|
className
|
|
@@ -8576,7 +8649,7 @@ var ComboboxItemIndicator = ({
|
|
|
8576
8649
|
"tw-hidden",
|
|
8577
8650
|
"tw-size-3",
|
|
8578
8651
|
"tw-stroke-[4px]",
|
|
8579
|
-
"!tw-text-
|
|
8652
|
+
"!tw-text-primary-foreground",
|
|
8580
8653
|
"group-data-[selected]/combobox-item-indicator:tw-block"
|
|
8581
8654
|
)
|
|
8582
8655
|
}
|
|
@@ -8945,6 +9018,7 @@ var DynamicSelectWidget = ({
|
|
|
8945
9018
|
return /* @__PURE__ */ jsx(
|
|
8946
9019
|
Combobox,
|
|
8947
9020
|
{
|
|
9021
|
+
variant: "secondary",
|
|
8948
9022
|
items,
|
|
8949
9023
|
value: selectedItem ?? null,
|
|
8950
9024
|
disabled: disabled || readonly,
|
|
@@ -9184,7 +9258,7 @@ var radioVariants = cva(
|
|
|
9184
9258
|
"focus-visible:tw-outline-none",
|
|
9185
9259
|
"focus-visible:tw-border-primary",
|
|
9186
9260
|
"focus-visible:tw-ring-2",
|
|
9187
|
-
"focus-visible:tw-ring-
|
|
9261
|
+
"focus-visible:tw-ring-ring/50"
|
|
9188
9262
|
]
|
|
9189
9263
|
}
|
|
9190
9264
|
}
|
|
@@ -9271,7 +9345,7 @@ var radioItemButtonVariants = cva(
|
|
|
9271
9345
|
"focus-visible:tw-outline-none",
|
|
9272
9346
|
"focus-visible:tw-border-primary",
|
|
9273
9347
|
"focus-visible:tw-ring-2",
|
|
9274
|
-
"focus-visible:tw-ring-
|
|
9348
|
+
"focus-visible:tw-ring-ring/50"
|
|
9275
9349
|
]
|
|
9276
9350
|
}
|
|
9277
9351
|
}
|
|
@@ -9302,8 +9376,7 @@ var RadioGroupItem = ({
|
|
|
9302
9376
|
...props
|
|
9303
9377
|
}) => {
|
|
9304
9378
|
const { variant } = useRadioGroupContext();
|
|
9305
|
-
const
|
|
9306
|
-
const styleVariant = !isLegacy ? "argo" : "default";
|
|
9379
|
+
const styleVariant = useArgoDesign() ? "argo" : "default";
|
|
9307
9380
|
const id = useId();
|
|
9308
9381
|
const item = (() => {
|
|
9309
9382
|
if (variant === "button")
|
|
@@ -9502,6 +9575,7 @@ var SelectWidget = ({
|
|
|
9502
9575
|
return /* @__PURE__ */ jsx(
|
|
9503
9576
|
Combobox,
|
|
9504
9577
|
{
|
|
9578
|
+
variant: "secondary",
|
|
9505
9579
|
items,
|
|
9506
9580
|
value: selectedItem ?? null,
|
|
9507
9581
|
allowClear: !required,
|