@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/dist/rjsf.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React27 = require('react');
3
+ var React26 = require('react');
4
4
  var Form = require('@rjsf/core');
5
5
  var validator = require('@rjsf/validator-ajv8');
6
6
  var autocomplete = require('@codemirror/autocomplete');
@@ -58,7 +58,7 @@ function _interopNamespace(e) {
58
58
  return Object.freeze(n);
59
59
  }
60
60
 
61
- var React27__default = /*#__PURE__*/_interopDefault(React27);
61
+ var React26__default = /*#__PURE__*/_interopDefault(React26);
62
62
  var Form__default = /*#__PURE__*/_interopDefault(Form);
63
63
  var validator__default = /*#__PURE__*/_interopDefault(validator);
64
64
  var CodeMirror__default = /*#__PURE__*/_interopDefault(CodeMirror);
@@ -100,9 +100,9 @@ var debounce = (fn, delay) => {
100
100
  debounced.cancel = () => clearTimeout(timeoutId);
101
101
  return debounced;
102
102
  };
103
- var RenderMarkdownContext = React27.createContext((source) => source);
103
+ var RenderMarkdownContext = React26.createContext((source) => source);
104
104
  var RenderMarkdownProvider = RenderMarkdownContext;
105
- var useRenderMarkdown = () => React27.use(RenderMarkdownContext);
105
+ var useRenderMarkdown = () => React26.use(RenderMarkdownContext);
106
106
 
107
107
  // src/constants/keyCodes.ts
108
108
  var keyCodes = {
@@ -151,13 +151,39 @@ var createChangeInputEvent = (input) => {
151
151
  });
152
152
  return changeEvent;
153
153
  };
154
- var ThemeContext = React27.createContext(null);
155
154
 
156
- // src/components/internal/useIsLegacyBrand.ts
157
- var useIsLegacyBrand = () => {
158
- const context = React27.use(ThemeContext);
159
- return context === null || context.brand.id === brandRegistry.keboolaLegacy.id;
160
- };
155
+ // src/components/ThemeProvider/utils.ts
156
+ var createTheme = (brand) => ({
157
+ id: brand.id,
158
+ name: brand.name,
159
+ shell: brand.shell,
160
+ logo: brand.logo
161
+ });
162
+
163
+ // src/components/ThemeProvider/defaults.ts
164
+ [brandRegistry.keboolaLegacySidebar.id, brandRegistry.keboolaLegacyTopnav.id];
165
+ var DEFAULT_COLOR_SCHEME = "light";
166
+ var DEFAULT_BRAND_ID = "design-system";
167
+ var defaultBrand = {
168
+ id: DEFAULT_BRAND_ID,
169
+ name: "Design System",
170
+ shell: "sidebar"};
171
+ var defaultTheme = createTheme(defaultBrand);
172
+
173
+ // src/components/ThemeProvider/context.tsx
174
+ var noop = () => void 0;
175
+ var defaultContext = {
176
+ scheme: DEFAULT_COLOR_SCHEME,
177
+ resolvedScheme: DEFAULT_COLOR_SCHEME,
178
+ setScheme: noop,
179
+ brandId: defaultTheme.id,
180
+ setBrand: noop,
181
+ themes: [defaultTheme],
182
+ currentTheme: defaultTheme
183
+ };
184
+ React26.createContext(defaultContext);
185
+ var ArgoDesignContext = React26.createContext(true);
186
+ var useArgoDesign = () => React26.use(ArgoDesignContext);
161
187
  var tooltipVariants = classVarianceAuthority.cva(
162
188
  [
163
189
  "tailwindcss-preflight",
@@ -235,8 +261,7 @@ var TooltipContent = ({
235
261
  placement = "right",
236
262
  ...rest
237
263
  }) => {
238
- const isLegacy = useIsLegacyBrand();
239
- const renderArgo = !isLegacy;
264
+ const renderArgo = useArgoDesign();
240
265
  const handlePointerDownOutside = (event) => {
241
266
  if (keepOpenOnPointerDownOutside) event.preventDefault();
242
267
  onPointerDownOutside?.(event);
@@ -311,7 +336,7 @@ var Tooltip = ({
311
336
  // trigger props
312
337
  triggerAsChild = false
313
338
  }) => {
314
- const [open, setOpen] = React27.useState(false);
339
+ const [open, setOpen] = React26.useState(false);
315
340
  const resolvedVariant = (() => {
316
341
  if (!!variant) return variant;
317
342
  if (typeof tooltip === "string" && tooltip.length > ACTION_TOOLTIP_LIMIT) return "explanatory";
@@ -378,7 +403,7 @@ var helpVariants = classVarianceAuthority.cva(["tw-m-0", "tw-text-xs"], {
378
403
  state: {
379
404
  default: ["tw-text-muted-foreground"],
380
405
  error: ["tw-text-destructive"],
381
- warning: ["tw-text-warning-500"]
406
+ warning: ["tw-text-warning"]
382
407
  }
383
408
  }
384
409
  });
@@ -393,7 +418,7 @@ __export(icons_exports, {
393
418
  Keboola: () => Keboola
394
419
  });
395
420
  __reExport(icons_exports, lucide_react_star__namespace);
396
- var Keboola = React27.forwardRef(
421
+ var Keboola = React26.forwardRef(
397
422
  ({ size = 24, color = "currentColor", className, children, ...rest }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
398
423
  "svg",
399
424
  {
@@ -430,8 +455,8 @@ var variants = classVarianceAuthority.cva(
430
455
  "tw-font-medium",
431
456
  "tw-tracking-[1px]",
432
457
  "tw-uppercase",
433
- // border
434
- "tw-rounded-[var(--radius-lg,0.25rem)]",
458
+ // border — legacy (non-argo) chrome uses a fixed radius, not the brand token.
459
+ "tw-rounded",
435
460
  "tw-border",
436
461
  "tw-border-transparent",
437
462
  // styling
@@ -626,14 +651,14 @@ var argoVariants = classVarianceAuthority.cva(
626
651
  "hover:tw-text-primary-foreground",
627
652
  "focus:tw-text-primary-foreground",
628
653
  "focus-visible:tw-border-primary",
629
- "focus-visible:tw-ring-primary/50"
654
+ "focus-visible:tw-ring-ring/50"
630
655
  ],
631
656
  secondary: [
632
657
  "tw-bg-primary/10",
633
658
  "tw-text-primary",
634
659
  "hover:not-disabled:tw-bg-primary/20",
635
660
  "focus-visible:tw-border-primary",
636
- "focus-visible:tw-ring-primary/50"
661
+ "focus-visible:tw-ring-ring/50"
637
662
  ],
638
663
  // should be called "destructive" by Figma
639
664
  danger: [
@@ -650,20 +675,22 @@ var argoVariants = classVarianceAuthority.cva(
650
675
  // Semantic base text color so the label/icon flips in dark mode
651
676
  // (matches `invisible`); previously unset → inherited a fixed dark color.
652
677
  "tw-text-foreground",
653
- "hover:not-disabled:tw-bg-accent",
654
- "hover:not-disabled:tw-text-accent-foreground",
678
+ // Hover follows the brand primary (translucent tint), matching the
679
+ // `secondary` variant — not the fixed `accent` blue.
680
+ "hover:not-disabled:tw-bg-primary/10",
681
+ "hover:not-disabled:tw-text-primary",
655
682
  "hover:active:tw-bg-background",
656
683
  "focus-visible:!tw-border-primary",
657
- "focus-visible:tw-ring-primary/50"
684
+ "focus-visible:tw-ring-ring/50"
658
685
  ],
659
686
  // should be called "ghost" by Figma
660
687
  invisible: [
661
688
  "tw-bg-transparent",
662
689
  "tw-text-foreground",
663
- "hover:not-disabled:tw-bg-accent",
664
- "hover:not-disabled:tw-text-accent-foreground",
665
- "hover:not-disabled:tw-border-accent",
666
- "focus-visible:tw-ring-primary/50"
690
+ "hover:not-disabled:tw-bg-primary/10",
691
+ "hover:not-disabled:tw-text-primary",
692
+ "hover:not-disabled:tw-border-primary/10",
693
+ "focus-visible:tw-ring-ring/50"
667
694
  ],
668
695
  // should be called "link" by Figma
669
696
  inline: [
@@ -671,7 +698,7 @@ var argoVariants = classVarianceAuthority.cva(
671
698
  "tw-text-primary",
672
699
  "hover:tw-underline",
673
700
  "hover:active:tw-bg-transparent",
674
- "focus-visible:tw-ring-primary/50"
701
+ "focus-visible:tw-ring-ring/50"
675
702
  ]
676
703
  },
677
704
  size: {
@@ -706,8 +733,7 @@ var Button = ({
706
733
  block = false,
707
734
  ...buttonProps
708
735
  }) => {
709
- const isLegacy = useIsLegacyBrand();
710
- const renderArgo = !isLegacy;
736
+ const renderArgo = useArgoDesign();
711
737
  const Comp = asChild ? reactSlot.Root : "button";
712
738
  const isIconOnly = String(size).startsWith("icon");
713
739
  const classNames = renderArgo ? argoVariants({ variant, size, block, className }) : variants({ size, variant, block, className });
@@ -750,8 +776,8 @@ var Clipboard = ({
750
776
  className,
751
777
  ...restButtonProps
752
778
  }) => {
753
- const [isTooltipOpen, setIsTooltipOpen] = React27.useState(false);
754
- const [state, setState] = React27.useState("ready");
779
+ const [isTooltipOpen, setIsTooltipOpen] = React26.useState(false);
780
+ const [state, setState] = React26.useState("ready");
755
781
  const text = typeof textProp === "function" ? textProp() : textProp;
756
782
  const copy = async (text2) => {
757
783
  try {
@@ -834,15 +860,44 @@ var ButtonToolbar = ({ value, children }) => {
834
860
  children
835
861
  ] });
836
862
  };
837
- var baseThemeStyles = {
863
+ var resolveToken = (token, fallbackChannels, alpha) => {
864
+ const channels = typeof document === "undefined" ? fallbackChannels : getComputedStyle(document.documentElement).getPropertyValue(`--color-${token}`).trim() || fallbackChannels;
865
+ return alpha === void 0 ? `rgb(${channels})` : `rgb(${channels} / ${alpha})`;
866
+ };
867
+ var SSR_SIGNAL = "ssr";
868
+ var readThemeSignal = () => {
869
+ if (typeof document === "undefined") return SSR_SIGNAL;
870
+ const root = document.documentElement;
871
+ return `${root.getAttribute("data-theme") ?? ""}:${root.getAttribute("data-brand") ?? ""}`;
872
+ };
873
+ var subscribeThemeSignal = (onChange) => {
874
+ if (typeof document === "undefined") return () => {
875
+ };
876
+ const observer = new MutationObserver(onChange);
877
+ observer.observe(document.documentElement, {
878
+ attributes: true,
879
+ attributeFilter: ["data-theme", "data-brand"]
880
+ });
881
+ return () => observer.disconnect();
882
+ };
883
+ var useThemeSignal = () => React26.useSyncExternalStore(subscribeThemeSignal, readThemeSignal, () => SSR_SIGNAL);
884
+ var useThemedExtension = (build, deps = []) => {
885
+ const themeSignal = useThemeSignal();
886
+ return React26.useMemo(build, [themeSignal, ...deps]);
887
+ };
888
+
889
+ // src/components/CodeEditor/helpers.ts
890
+ var buildBaseThemeStyles = () => ({
838
891
  "*": { lineHeight: "20px" },
839
892
  "*::selection": {
840
- backgroundColor: colors__default.default.secondary[500],
841
- color: `${colors__default.default.white} !important`
893
+ backgroundColor: resolveToken("primary", "31 143 255"),
894
+ color: `${resolveToken("primary-foreground", "255 255 255")} !important`
895
+ },
896
+ '&.cm-editor:has(.cm-content[contenteditable="false"])': {
897
+ backgroundColor: resolveToken("secondary", "226 232 240")
842
898
  },
843
- '&.cm-editor:has(.cm-content[contenteditable="false"])': { backgroundColor: colors__default.default.neutral[150] },
844
899
  '&.cm-editor:has(.cm-content[contenteditable="false"]) .cm-gutters': {
845
- backgroundColor: colors__default.default.neutral[200]
900
+ backgroundColor: resolveToken("border", "229 231 235")
846
901
  },
847
902
  "&.cm-editor .cm-scroller": { overflowAnchor: "none" },
848
903
  "&.cm-editor, &.cm-editor .cm-scroller": {
@@ -858,11 +913,11 @@ var baseThemeStyles = {
858
913
  ".cm-line .tok-string": { color: colors__default.default.warning[700] },
859
914
  // merge (diff) view
860
915
  '&[class*="cm-merge-"] .cm-deletedLine': { backgroundColor: colors__default.default.error[100] },
861
- '&[class*="cm-merge-"] .cm-changedLine': { backgroundColor: colors__default.default.primary[100] },
916
+ '&[class*="cm-merge-"] .cm-changedLine': { backgroundColor: colors__default.default.green[100] },
862
917
  '&[class*="cm-merge-"] .cm-deletedLineGutter': { backgroundColor: colors__default.default.error[200] },
863
- '&[class*="cm-merge-"] .cm-changedLineGutter': { backgroundColor: colors__default.default.primary[200] },
918
+ '&[class*="cm-merge-"] .cm-changedLineGutter': { backgroundColor: colors__default.default.green[200] },
864
919
  '&[class*="cm-merge-"] .cm-deletedText': { background: colors__default.default.error[200] },
865
- '&[class*="cm-merge-"] .cm-changedText': { background: colors__default.default.primary[200] },
920
+ '&[class*="cm-merge-"] .cm-changedText': { background: colors__default.default.green[200] },
866
921
  '&[class*="cm-merge-"]': {
867
922
  backgroundColor: `${colors__default.default.white} !important`
868
923
  },
@@ -871,16 +926,18 @@ var baseThemeStyles = {
871
926
  },
872
927
  ".cm-changeGutter": { position: "absolute", zIndex: -1, width: "100%", paddingLeft: 0 },
873
928
  '&[class*="cm-merge-"] .cm-changedLine,&[class*="cm-merge-"] .cm-line, &[class*="cm-merge-"] .cm-deletedChunk': { paddingLeft: 0 }
874
- };
929
+ });
875
930
  var BASIS_SETUP = { drawSelection: false };
876
- var customTheme = codemirrorThemeGithub.githubLightInit({
931
+ var buildCustomTheme = () => codemirrorThemeGithub.githubLightInit({
877
932
  settings: {
878
933
  fontFamily: `'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New'`,
879
- background: colors__default.default.neutral[50],
880
- gutterBackground: colors__default.default.neutral[100],
934
+ background: resolveToken("background", "249 250 251"),
935
+ foreground: resolveToken("foreground", "30 41 59"),
936
+ gutterBackground: resolveToken("muted", "241 245 249"),
937
+ gutterForeground: resolveToken("muted-foreground", "100 116 139"),
881
938
  gutterBorder: "transparent",
882
939
  lineHighlight: "transparent",
883
- selection: colors__default.default.secondary[500]
940
+ selection: resolveToken("primary", "31 143 255")
884
941
  }
885
942
  });
886
943
  var getLanguageMode = (mode) => {
@@ -921,9 +978,9 @@ var KbdGroup = ({
921
978
  className: cn("tw-inline-flex", "tw-items-center", "tw-gap-1", className),
922
979
  children: separator ? (
923
980
  // oxlint-disable-next-line react-x/no-children-to-array
924
- React27.Children.toArray(children).map((child, index) => (
981
+ React26.Children.toArray(children).map((child, index) => (
925
982
  // oxlint-disable-next-line
926
- /* @__PURE__ */ jsxRuntime.jsxs(React27.Fragment, { children: [
983
+ /* @__PURE__ */ jsxRuntime.jsxs(React26.Fragment, { children: [
927
984
  index > 0 && /* @__PURE__ */ jsxRuntime.jsx(KbdSeparator, { children: separator }),
928
985
  child
929
986
  ] }, index)
@@ -998,7 +1055,9 @@ var CodeEditor = ({
998
1055
  renderAdditionalButtons,
999
1056
  className
1000
1057
  }) => {
1001
- const commonExtensions = React27.useMemo(() => {
1058
+ const customTheme = useThemedExtension(buildCustomTheme);
1059
+ const baseTheme = useThemedExtension(() => view.EditorView.theme(buildBaseThemeStyles()));
1060
+ const commonExtensions = React26.useMemo(() => {
1002
1061
  return [
1003
1062
  getLanguageMode(mode),
1004
1063
  mode === "application/json" && lint.linter(langJson.jsonParseLinter()),
@@ -1017,10 +1076,10 @@ var CodeEditor = ({
1017
1076
  }))
1018
1077
  ),
1019
1078
  autocomplete.autocompletion({ activateOnTyping: completeAny }),
1020
- view.EditorView.theme(baseThemeStyles)
1079
+ baseTheme
1021
1080
  ].filter(Boolean);
1022
- }, [autocompletions, completeAny, extraKeys, mode, withLineWrapping]);
1023
- const extensions = React27.useMemo(() => {
1081
+ }, [autocompletions, completeAny, extraKeys, mode, withLineWrapping, baseTheme]);
1082
+ const extensions = React26.useMemo(() => {
1024
1083
  return [
1025
1084
  ...commonExtensions,
1026
1085
  view.placeholder(placeholder),
@@ -1034,7 +1093,7 @@ var CodeEditor = ({
1034
1093
  }) : []
1035
1094
  ];
1036
1095
  }, [commonExtensions, placeholder, readOnly, previousValue, withCollapseUnchanged]);
1037
- const config = React27.useMemo(() => {
1096
+ const config = React26.useMemo(() => {
1038
1097
  return {
1039
1098
  ...BASIS_SETUP,
1040
1099
  lineNumbers: withLineNumbers
@@ -1115,8 +1174,8 @@ var CodeEditorWidget = ({
1115
1174
  const mode = isLanguageMode(rawMode) ? rawMode : "application/json";
1116
1175
  const isJsonMode = mode === "application/json";
1117
1176
  const isReadOnly = disabled || readonly || !!editorOptions.readOnly;
1118
- const [text, setText] = React27.useState(() => sanitize(value));
1119
- React27.useEffect(() => {
1177
+ const [text, setText] = React26.useState(() => sanitize(value));
1178
+ React26.useEffect(() => {
1120
1179
  setText((currentText) => {
1121
1180
  const sanitized = sanitize(value);
1122
1181
  if (currentText === sanitized) return currentText;
@@ -1275,7 +1334,7 @@ var CollapsiblePanel = ({
1275
1334
  onToggle,
1276
1335
  variant = "default"
1277
1336
  }) => {
1278
- const [isUncontrolledOpen, setIsUncontrolledOpen] = React27.useState(defaultExpanded);
1337
+ const [isUncontrolledOpen, setIsUncontrolledOpen] = React26.useState(defaultExpanded);
1279
1338
  const open = isOpen ?? isUncontrolledOpen;
1280
1339
  const hasEnforcedState = isOpen !== void 0 && onToggle === void 0;
1281
1340
  const handleCollapse = (event) => {
@@ -1328,13 +1387,13 @@ var CollapsiblePanel = ({
1328
1387
  };
1329
1388
 
1330
1389
  // src/blocks/RjsfSchemaEditor/fieldHelpers.ts
1331
- var noop = () => {
1390
+ var noop2 = () => {
1332
1391
  };
1333
1392
  var NullField = () => null;
1334
1393
  var getSchemaField = (registry) => registry.fields.SchemaField ?? NullField;
1335
1394
  var SCHEMA_FIELD_STUBS = {
1336
- onBlur: noop,
1337
- onFocus: noop,
1395
+ onBlur: noop2,
1396
+ onFocus: noop2,
1338
1397
  errorSchema: {}
1339
1398
  };
1340
1399
  var resolveByPath = (path, data) => {
@@ -1416,10 +1475,10 @@ var GridObjectField = ({
1416
1475
  const properties = schema.properties ?? {};
1417
1476
  const data = formData ?? {};
1418
1477
  const SchemaField = getSchemaField(registry);
1419
- const dataRef = React27.useRef(data);
1478
+ const dataRef = React26.useRef(data);
1420
1479
  dataRef.current = data;
1421
1480
  const fieldPath = fieldPathId?.path;
1422
- const onPropertyChange = React27.useCallback(
1481
+ const onPropertyChange = React26.useCallback(
1423
1482
  // oxlint-disable-next-line @typescript-eslint/no-explicit-any
1424
1483
  (key) => (value, _childPath, errorSchema, id) => {
1425
1484
  onChange({ ...dataRef.current, [key]: value }, fieldPath, errorSchema, id);
@@ -1544,10 +1603,15 @@ var AlertCollapsibleIcon = ({ open }) => /* @__PURE__ */ jsxRuntime.jsx(Tooltip,
1544
1603
  "tw-size-5",
1545
1604
  "tw-text-neutral-400",
1546
1605
  "group-data-[state=open]/alert:tw-rotate-180",
1606
+ // Legacy uses the fixed categorical hover scales; argo uses the themeable status tokens.
1547
1607
  "group-data-[variant=info]/alert:group-hover:tw-text-blue-600",
1608
+ "group-data-[variant=info]/alert:group-data-[argo=true]/alert:group-hover:tw-text-info",
1548
1609
  "group-data-[variant=warning]/alert:group-hover:tw-text-warning-600",
1610
+ "group-data-[variant=warning]/alert:group-data-[argo=true]/alert:group-hover:tw-text-warning",
1549
1611
  "group-data-[variant=error]/alert:group-hover:tw-text-error-600",
1550
- "group-data-[variant=success]/alert:group-hover:tw-text-green-600"
1612
+ "group-data-[variant=error]/alert:group-data-[argo=true]/alert:group-hover:tw-text-destructive",
1613
+ "group-data-[variant=success]/alert:group-hover:tw-text-green-600",
1614
+ "group-data-[variant=success]/alert:group-data-[argo=true]/alert:group-hover:tw-text-success"
1551
1615
  )
1552
1616
  }
1553
1617
  ) });
@@ -1595,10 +1659,15 @@ var AlertIcon = ({ variant, icon, className, ...rest }) => /* @__PURE__ */ jsxRu
1595
1659
  "tw-self-start",
1596
1660
  "tw-p-0.5",
1597
1661
  '[&_svg:not([class*="tw-size-"])]:tw-size-4',
1662
+ // Legacy uses the fixed categorical icon scales; argo uses the themeable status tokens.
1598
1663
  "group-data-[variant=info]/alert:tw-text-blue-500",
1664
+ "group-data-[variant=info]/alert:group-data-[argo=true]/alert:tw-text-info",
1599
1665
  "group-data-[variant=warning]/alert:tw-text-warning-500",
1666
+ "group-data-[variant=warning]/alert:group-data-[argo=true]/alert:tw-text-warning",
1600
1667
  "group-data-[variant=error]/alert:tw-text-error-500",
1668
+ "group-data-[variant=error]/alert:group-data-[argo=true]/alert:tw-text-destructive",
1601
1669
  "group-data-[variant=success]/alert:tw-text-green-500",
1670
+ "group-data-[variant=success]/alert:group-data-[argo=true]/alert:tw-text-success",
1602
1671
  className
1603
1672
  ),
1604
1673
  children: icon ?? VARIANT_ICONS[variant]
@@ -1611,8 +1680,7 @@ var AlertRoot = ({
1611
1680
  variant,
1612
1681
  ...rest
1613
1682
  }) => {
1614
- const isLegacy = useIsLegacyBrand();
1615
- const renderArgo = !isLegacy;
1683
+ const renderArgo = useArgoDesign();
1616
1684
  return /* @__PURE__ */ jsxRuntime.jsx(
1617
1685
  "div",
1618
1686
  {
@@ -1636,19 +1704,32 @@ var AlertRoot = ({
1636
1704
  "data-[argo=true]:tw-text-foreground",
1637
1705
  "tw-text-left",
1638
1706
  "tw-p-4",
1639
- // border
1640
- "tw-rounded-[var(--radius-lg,0.25rem)]",
1707
+ // border — legacy keeps a fixed radius; argo follows the brand radius token.
1708
+ "tw-rounded",
1709
+ "data-[argo=true]:tw-rounded-[var(--radius-lg,0.25rem)]",
1641
1710
  "tw-border",
1642
1711
  "tw-border-solid",
1643
- // border variants
1712
+ // Variant tint + border. Legacy keeps the fixed categorical scales (solid
1713
+ // pastel tint); argo uses the brand-overridable status tokens (bg at 10%,
1714
+ // border at 25%) so status re-skins with the brand. The argo tokens carry
1715
+ // AA-legible defaults, so the variant icon (AlertIcon, full-strength
1716
+ // `tw-text-<role>`) clears ≥4.5:1 on the tint in both light and dark.
1644
1717
  "data-[variant=info]:tw-bg-blue-100",
1645
1718
  "data-[variant=info]:tw-border-blue-200",
1719
+ "data-[variant=info]:data-[argo=true]:tw-bg-info/10",
1720
+ "data-[variant=info]:data-[argo=true]:tw-border-info/25",
1646
1721
  "data-[variant=warning]:tw-bg-warning-100",
1647
1722
  "data-[variant=warning]:tw-border-warning-300",
1723
+ "data-[variant=warning]:data-[argo=true]:tw-bg-warning/10",
1724
+ "data-[variant=warning]:data-[argo=true]:tw-border-warning/25",
1648
1725
  "data-[variant=error]:tw-bg-error-100",
1649
1726
  "data-[variant=error]:tw-border-error-200",
1727
+ "data-[variant=error]:data-[argo=true]:tw-bg-destructive/10",
1728
+ "data-[variant=error]:data-[argo=true]:tw-border-destructive/25",
1650
1729
  "data-[variant=success]:tw-bg-green-100",
1651
1730
  "data-[variant=success]:tw-border-green-200",
1731
+ "data-[variant=success]:data-[argo=true]:tw-bg-success/10",
1732
+ "data-[variant=success]:data-[argo=true]:tw-border-success/25",
1652
1733
  className
1653
1734
  ),
1654
1735
  children
@@ -1691,7 +1772,7 @@ var Alert = ({
1691
1772
  ...rest
1692
1773
  }) => {
1693
1774
  const isControlled = openProp !== void 0;
1694
- const [innerOpen, setInnerOpen] = React27.useState(defaultOpen);
1775
+ const [innerOpen, setInnerOpen] = React26.useState(defaultOpen);
1695
1776
  const open = isControlled ? openProp : innerOpen;
1696
1777
  const handleOpenChange = (nextOpen) => {
1697
1778
  if (!isControlled) {
@@ -1769,7 +1850,7 @@ var TableArrayField = ({
1769
1850
  const isPrimitiveItems = sortedKeys.length === 0 && itemSchema != null;
1770
1851
  const isReadOnly = disabled || readonly;
1771
1852
  const fieldPath = fieldPathId?.path ?? [];
1772
- const itemsRef = React27.useRef(items);
1853
+ const itemsRef = React26.useRef(items);
1773
1854
  itemsRef.current = items;
1774
1855
  const handleCellChange = (rowIndex, key, value) => {
1775
1856
  const newItems = [...itemsRef.current];
@@ -2052,9 +2133,9 @@ var TabsObjectField = ({
2052
2133
  const properties = schema.properties ?? {};
2053
2134
  const data = formData ?? {};
2054
2135
  const SchemaField = getSchemaField(registry);
2055
- const dataRef = React27.useRef(data);
2136
+ const dataRef = React26.useRef(data);
2056
2137
  dataRef.current = data;
2057
- const onPropertyChange = React27.useCallback(
2138
+ const onPropertyChange = React26.useCallback(
2058
2139
  // oxlint-disable-next-line @typescript-eslint/no-explicit-any
2059
2140
  (key) => (value, path, errorSchema, id) => {
2060
2141
  onChange({ ...dataRef.current, [key]: value }, path, errorSchema, id);
@@ -2062,7 +2143,7 @@ var TabsObjectField = ({
2062
2143
  [onChange]
2063
2144
  );
2064
2145
  const sortedKeys = sortByPropertyOrder(properties);
2065
- const [activeTab, setActiveTab] = React27.useState(sortedKeys[0] ?? "");
2146
+ const [activeTab, setActiveTab] = React26.useState(sortedKeys[0] ?? "");
2066
2147
  if (sortedKeys.length === 0) return null;
2067
2148
  const triggers = sortedKeys.map((key) => ({
2068
2149
  value: key,
@@ -2173,7 +2254,7 @@ var ArrayFieldTemplate = ({
2173
2254
  };
2174
2255
  var DescriptionFieldTemplate = ({ description, id }) => {
2175
2256
  if (!description) return null;
2176
- if (React27.isValidElement(description)) {
2257
+ if (React26.isValidElement(description)) {
2177
2258
  return /* @__PURE__ */ jsxRuntime.jsx("div", { id, children: description });
2178
2259
  }
2179
2260
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2189,11 +2270,11 @@ var ErrorListTemplate = ({ errors }) => {
2189
2270
  if (!errors.length) return null;
2190
2271
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tw-mb-4", children: errors.map((error) => /* @__PURE__ */ jsxRuntime.jsx("p", { className: "tw-text-xs tw-text-error-500", children: error.message }, `${error.property}:${error.message}`)) });
2191
2272
  };
2192
- var FormGroupContext = React27.createContext({
2273
+ var FormGroupContext = React26.createContext({
2193
2274
  state: "default"
2194
2275
  });
2195
2276
  var FormGroupProvider = FormGroupContext;
2196
- var useFormGroupContext = () => React27.use(FormGroupContext);
2277
+ var useFormGroupContext = () => React26.use(FormGroupContext);
2197
2278
  var addonVariants = classVarianceAuthority.cva(
2198
2279
  [
2199
2280
  "tw-flex",
@@ -2356,8 +2437,9 @@ var inputGroupVariants = classVarianceAuthority.cva(
2356
2437
  // positioning
2357
2438
  "tw-flex",
2358
2439
  "tw-items-center",
2359
- // base
2360
- "tw-rounded-[var(--radius-lg,0.25rem)]",
2440
+ // base — legacy (non-argo) chrome uses a fixed radius; argo overrides it with
2441
+ // the brand radius token in the `argo` variant below.
2442
+ "tw-rounded",
2361
2443
  "tw-border",
2362
2444
  "tw-border-solid",
2363
2445
  "tw-border-neutral-200",
@@ -2431,7 +2513,7 @@ var inputGroupVariants = classVarianceAuthority.cva(
2431
2513
  state: "default",
2432
2514
  className: [
2433
2515
  "has-[:is(input,textarea):focus]:tw-border-primary",
2434
- "has-[:is(input,textarea):focus]:tw-ring-primary/50"
2516
+ "has-[:is(input,textarea):focus]:tw-ring-ring/50"
2435
2517
  ]
2436
2518
  },
2437
2519
  {
@@ -2446,7 +2528,7 @@ var inputGroupVariants = classVarianceAuthority.cva(
2446
2528
  {
2447
2529
  variant: "argo",
2448
2530
  focusVariant: "on",
2449
- className: ["!tw-border-primary", "!tw-ring-primary/50"]
2531
+ className: ["!tw-border-primary", "!tw-ring-ring/50"]
2450
2532
  },
2451
2533
  {
2452
2534
  variant: "argo",
@@ -2475,6 +2557,8 @@ var inputGroupVariants = classVarianceAuthority.cva(
2475
2557
  "has-[:is(input,textarea):disabled]:tw-opacity-40"
2476
2558
  ],
2477
2559
  argo: [
2560
+ // argo follows the brand radius token (overrides the static base)
2561
+ "tw-rounded-[var(--radius-lg,0.25rem)]",
2478
2562
  // muted filled input surface — gray, distinct from white containers; not the app-background token
2479
2563
  "tw-bg-muted",
2480
2564
  "tw-border-input",
@@ -2530,8 +2614,8 @@ var InputGroupRoot = ({
2530
2614
  className,
2531
2615
  ...props
2532
2616
  }) => {
2533
- const isLegacy = useIsLegacyBrand();
2534
- const effectiveVariant = !isLegacy ? "argo" : variant;
2617
+ const isArgo = useArgoDesign();
2618
+ const effectiveVariant = isArgo ? "argo" : variant;
2535
2619
  const effectiveSizing = effectiveVariant === "argo" ? "medium" : sizing;
2536
2620
  return /* @__PURE__ */ jsxRuntime.jsx(
2537
2621
  "div",
@@ -2594,7 +2678,7 @@ var coerceColorPickerValue = (value) => {
2594
2678
  return PICKER_FALLBACK;
2595
2679
  };
2596
2680
  var ColorPicker = ({ value, disabled, readOnly, ...props }) => {
2597
- const pickerRef = React27.useRef(null);
2681
+ const pickerRef = React26.useRef(null);
2598
2682
  const handleOpenPicker = () => {
2599
2683
  if (!pickerRef.current) return;
2600
2684
  showPicker(pickerRef.current);
@@ -2647,8 +2731,8 @@ var ColorInput = ({
2647
2731
  readOnly,
2648
2732
  ...restInputProps
2649
2733
  }) => {
2650
- const inputRef = React27.useRef(null);
2651
- const [internalValue, setInternalValue] = React27.useState(defaultValue ?? "");
2734
+ const inputRef = React26.useRef(null);
2735
+ const [internalValue, setInternalValue] = React26.useState(defaultValue ?? "");
2652
2736
  const isControlled = valueProp !== void 0;
2653
2737
  const value = isControlled ? valueProp ?? "" : internalValue;
2654
2738
  const setValue = (nextValue) => {
@@ -4879,7 +4963,7 @@ function setYear(date, year, options) {
4879
4963
  return date_;
4880
4964
  }
4881
4965
 
4882
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js
4966
+ // ../../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
4883
4967
  var FIVE_WEEKS = 5;
4884
4968
  var FOUR_WEEKS = 4;
4885
4969
  function getBroadcastWeeksInMonth(month, dateLib) {
@@ -4891,7 +4975,7 @@ function getBroadcastWeeksInMonth(month, dateLib) {
4891
4975
  return numberOfWeeks;
4892
4976
  }
4893
4977
 
4894
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js
4978
+ // ../../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
4895
4979
  function startOfBroadcastWeek(date, dateLib) {
4896
4980
  const firstOfMonth = dateLib.startOfMonth(date);
4897
4981
  const dayOfWeek = firstOfMonth.getDay();
@@ -4904,7 +4988,7 @@ function startOfBroadcastWeek(date, dateLib) {
4904
4988
  }
4905
4989
  }
4906
4990
 
4907
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js
4991
+ // ../../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
4908
4992
  function endOfBroadcastWeek(date, dateLib) {
4909
4993
  const startDate = startOfBroadcastWeek(date, dateLib);
4910
4994
  const numberOfWeeks = getBroadcastWeeksInMonth(date, dateLib);
@@ -4912,7 +4996,7 @@ function endOfBroadcastWeek(date, dateLib) {
4912
4996
  return endDate;
4913
4997
  }
4914
4998
 
4915
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/locale/en-US.js
4999
+ // ../../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
4916
5000
  var enUS2 = {
4917
5001
  ...enUS,
4918
5002
  labels: {
@@ -4971,7 +5055,7 @@ var enUS2 = {
4971
5055
  }
4972
5056
  };
4973
5057
 
4974
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/DateLib.js
5058
+ // ../../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
4975
5059
  var DateLib = class _DateLib {
4976
5060
  /**
4977
5061
  * Creates an instance of `DateLib`.
@@ -4980,7 +5064,6 @@ var DateLib = class _DateLib {
4980
5064
  * @param overrides Custom overrides for the date library functions.
4981
5065
  */
4982
5066
  constructor(options, overrides) {
4983
- this.Date = Date;
4984
5067
  this.today = () => {
4985
5068
  if (this.overrides?.today) {
4986
5069
  return this.overrides.today();
@@ -4988,7 +5071,8 @@ var DateLib = class _DateLib {
4988
5071
  if (this.options.timeZone) {
4989
5072
  return TZDate.tz(this.options.timeZone);
4990
5073
  }
4991
- return new this.Date();
5074
+ const DateCtor = this.options.Date ?? Date;
5075
+ return new DateCtor();
4992
5076
  };
4993
5077
  this.newDate = (year, monthIndex, date) => {
4994
5078
  if (this.overrides?.newDate) {
@@ -5213,7 +5297,7 @@ DateLib.yearFirstLocales = /* @__PURE__ */ new Set([
5213
5297
  ]);
5214
5298
  var defaultDateLib = new DateLib();
5215
5299
 
5216
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js
5300
+ // ../../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
5217
5301
  var CalendarDay = class {
5218
5302
  constructor(date, displayMonth, dateLib = defaultDateLib) {
5219
5303
  this.date = date;
@@ -5236,7 +5320,7 @@ var CalendarDay = class {
5236
5320
  }
5237
5321
  };
5238
5322
 
5239
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js
5323
+ // ../../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
5240
5324
  var CalendarMonth = class {
5241
5325
  constructor(month, weeks) {
5242
5326
  this.date = month;
@@ -5244,7 +5328,7 @@ var CalendarMonth = class {
5244
5328
  }
5245
5329
  };
5246
5330
 
5247
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js
5331
+ // ../../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
5248
5332
  var CalendarWeek = class {
5249
5333
  constructor(weekNumber, days) {
5250
5334
  this.days = days;
@@ -5252,10 +5336,9 @@ var CalendarWeek = class {
5252
5336
  }
5253
5337
  };
5254
5338
 
5255
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/components/custom-components.js
5339
+ // ../../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
5256
5340
  var custom_components_exports = {};
5257
5341
  __export(custom_components_exports, {
5258
- Button: () => Button2,
5259
5342
  CaptionLabel: () => CaptionLabel,
5260
5343
  Chevron: () => Chevron,
5261
5344
  Day: () => Day,
@@ -5282,41 +5365,35 @@ __export(custom_components_exports, {
5282
5365
  Weeks: () => Weeks,
5283
5366
  YearsDropdown: () => YearsDropdown
5284
5367
  });
5285
- function Button2(props) {
5286
- return React27__default.default.createElement("button", { ...props });
5287
- }
5288
5368
  function CaptionLabel(props) {
5289
- return React27__default.default.createElement("span", { ...props });
5369
+ return React26__default.default.createElement("span", { ...props });
5290
5370
  }
5291
5371
  function Chevron(props) {
5292
- const { size = 24, orientation = "left", className } = props;
5293
- return (
5294
- // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
5295
- React27__default.default.createElement(
5296
- "svg",
5297
- { className, width: size, height: size, viewBox: "0 0 24 24" },
5298
- orientation === "up" && React27__default.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
5299
- orientation === "down" && React27__default.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
5300
- orientation === "left" && React27__default.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
5301
- orientation === "right" && React27__default.default.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
5302
- )
5372
+ const { size = 24, orientation = "left", className, style } = props;
5373
+ return React26__default.default.createElement(
5374
+ "svg",
5375
+ { className, style, width: size, height: size, viewBox: "0 0 24 24" },
5376
+ orientation === "up" && React26__default.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
5377
+ orientation === "down" && React26__default.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
5378
+ orientation === "left" && React26__default.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
5379
+ orientation === "right" && React26__default.default.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
5303
5380
  );
5304
5381
  }
5305
5382
  function Day(props) {
5306
5383
  const { day, modifiers, ...tdProps } = props;
5307
- return React27__default.default.createElement("td", { ...tdProps });
5384
+ return React26__default.default.createElement("td", { ...tdProps });
5308
5385
  }
5309
5386
  function DayButton(props) {
5310
5387
  const { day, modifiers, ...buttonProps } = props;
5311
- const ref = React27__default.default.useRef(null);
5312
- React27__default.default.useEffect(() => {
5388
+ const ref = React26__default.default.useRef(null);
5389
+ React26__default.default.useEffect(() => {
5313
5390
  if (modifiers.focused)
5314
5391
  ref.current?.focus();
5315
5392
  }, [modifiers.focused]);
5316
- return React27__default.default.createElement("button", { ref, ...buttonProps });
5393
+ return React26__default.default.createElement("button", { ref, ...buttonProps });
5317
5394
  }
5318
5395
 
5319
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/UI.js
5396
+ // ../../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
5320
5397
  var UI;
5321
5398
  (function(UI2) {
5322
5399
  UI2["Root"] = "root";
@@ -5370,134 +5447,131 @@ var Animation;
5370
5447
  Animation2["caption_before_enter"] = "caption_before_enter";
5371
5448
  Animation2["caption_before_exit"] = "caption_before_exit";
5372
5449
  })(Animation || (Animation = {}));
5450
+ var dayPickerContext = React26.createContext(void 0);
5451
+ function useDayPicker() {
5452
+ const context = React26.useContext(dayPickerContext);
5453
+ if (context === void 0) {
5454
+ throw new Error("useDayPicker() must be used within a custom component.");
5455
+ }
5456
+ return context;
5457
+ }
5373
5458
 
5374
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/components/Dropdown.js
5459
+ // ../../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
5375
5460
  function Dropdown(props) {
5376
- const { options, className, components, classNames, ...selectProps } = props;
5461
+ const { options, className, ...selectProps } = props;
5462
+ const { classNames, components, styles } = useDayPicker();
5377
5463
  const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
5378
5464
  const selectedOption = options?.find(({ value }) => value === selectProps.value);
5379
- return React27__default.default.createElement(
5465
+ return React26__default.default.createElement(
5380
5466
  "span",
5381
- { "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] },
5382
- React27__default.default.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => React27__default.default.createElement(components.Option, { key: value, value, disabled }, label))),
5383
- React27__default.default.createElement(
5467
+ { "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot], style: styles?.[UI.DropdownRoot] },
5468
+ React26__default.default.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => React26__default.default.createElement(components.Option, { key: value, value, disabled }, label))),
5469
+ React26__default.default.createElement(
5384
5470
  "span",
5385
- { className: classNames[UI.CaptionLabel], "aria-hidden": true },
5471
+ { className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], "aria-hidden": true },
5386
5472
  selectedOption?.label,
5387
- React27__default.default.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })
5473
+ React26__default.default.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron], style: styles?.[UI.Chevron] })
5388
5474
  )
5389
5475
  );
5390
5476
  }
5391
5477
  function DropdownNav(props) {
5392
- return React27__default.default.createElement("div", { ...props });
5478
+ return React26__default.default.createElement("div", { ...props });
5393
5479
  }
5394
5480
  function Footer(props) {
5395
- return React27__default.default.createElement("div", { ...props });
5481
+ return React26__default.default.createElement("div", { ...props });
5396
5482
  }
5397
5483
  function Month(props) {
5398
5484
  const { calendarMonth, displayIndex, ...divProps } = props;
5399
- return React27__default.default.createElement("div", { ...divProps }, props.children);
5485
+ return React26__default.default.createElement("div", { ...divProps }, props.children);
5400
5486
  }
5401
5487
  function MonthCaption(props) {
5402
5488
  const { calendarMonth, displayIndex, ...divProps } = props;
5403
- return React27__default.default.createElement("div", { ...divProps });
5489
+ return React26__default.default.createElement("div", { ...divProps });
5404
5490
  }
5405
5491
  function MonthGrid(props) {
5406
- return React27__default.default.createElement("table", { ...props });
5492
+ return React26__default.default.createElement("table", { ...props });
5407
5493
  }
5408
5494
  function Months(props) {
5409
- return React27__default.default.createElement("div", { ...props });
5410
- }
5411
- var dayPickerContext = React27.createContext(void 0);
5412
- function useDayPicker() {
5413
- const context = React27.useContext(dayPickerContext);
5414
- if (context === void 0) {
5415
- throw new Error("useDayPicker() must be used within a custom component.");
5416
- }
5417
- return context;
5495
+ return React26__default.default.createElement("div", { ...props });
5418
5496
  }
5419
-
5420
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
5421
5497
  function MonthsDropdown(props) {
5422
5498
  const { components } = useDayPicker();
5423
- return React27__default.default.createElement(components.Dropdown, { ...props });
5499
+ return React26__default.default.createElement(components.Dropdown, { ...props });
5424
5500
  }
5425
5501
  function Nav(props) {
5426
5502
  const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
5427
- const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
5428
- const handleNextClick = React27.useCallback((e) => {
5503
+ const { components, classNames, styles, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
5504
+ const handleNextClick = React26.useCallback((e) => {
5429
5505
  if (nextMonth) {
5430
5506
  onNextClick?.(e);
5431
5507
  }
5432
5508
  }, [nextMonth, onNextClick]);
5433
- const handlePreviousClick = React27.useCallback((e) => {
5509
+ const handlePreviousClick = React26.useCallback((e) => {
5434
5510
  if (previousMonth) {
5435
5511
  onPreviousClick?.(e);
5436
5512
  }
5437
5513
  }, [previousMonth, onPreviousClick]);
5438
- return React27__default.default.createElement(
5514
+ return React26__default.default.createElement(
5439
5515
  "nav",
5440
5516
  { ...navProps },
5441
- React27__default.default.createElement(
5517
+ React26__default.default.createElement(
5442
5518
  components.PreviousMonthButton,
5443
- { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
5444
- React27__default.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
5519
+ { 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 },
5520
+ React26__default.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: "left" })
5445
5521
  ),
5446
- React27__default.default.createElement(
5522
+ React26__default.default.createElement(
5447
5523
  components.NextMonthButton,
5448
- { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
5449
- React27__default.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
5524
+ { 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 },
5525
+ React26__default.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron], style: styles?.[UI.Chevron] })
5450
5526
  )
5451
5527
  );
5452
5528
  }
5453
5529
  function NextMonthButton(props) {
5454
- const { components } = useDayPicker();
5455
- return React27__default.default.createElement(components.Button, { ...props });
5530
+ return React26__default.default.createElement("button", { ...props });
5456
5531
  }
5457
5532
  function Option(props) {
5458
- return React27__default.default.createElement("option", { ...props });
5533
+ return React26__default.default.createElement("option", { ...props });
5459
5534
  }
5460
5535
  function PreviousMonthButton(props) {
5461
- const { components } = useDayPicker();
5462
- return React27__default.default.createElement(components.Button, { ...props });
5536
+ return React26__default.default.createElement("button", { ...props });
5463
5537
  }
5464
5538
  function Root6(props) {
5465
5539
  const { rootRef, ...rest } = props;
5466
- return React27__default.default.createElement("div", { ...rest, ref: rootRef });
5540
+ return React26__default.default.createElement("div", { ...rest, ref: rootRef });
5467
5541
  }
5468
5542
  function Select(props) {
5469
- return React27__default.default.createElement("select", { ...props });
5543
+ return React26__default.default.createElement("select", { ...props });
5470
5544
  }
5471
5545
  function Week(props) {
5472
5546
  const { week, ...trProps } = props;
5473
- return React27__default.default.createElement("tr", { ...trProps });
5547
+ return React26__default.default.createElement("tr", { ...trProps });
5474
5548
  }
5475
5549
  function Weekday(props) {
5476
- return React27__default.default.createElement("th", { ...props });
5550
+ return React26__default.default.createElement("th", { ...props });
5477
5551
  }
5478
5552
  function Weekdays(props) {
5479
- return React27__default.default.createElement(
5553
+ return React26__default.default.createElement(
5480
5554
  "thead",
5481
5555
  { "aria-hidden": true },
5482
- React27__default.default.createElement("tr", { ...props })
5556
+ React26__default.default.createElement("tr", { ...props })
5483
5557
  );
5484
5558
  }
5485
5559
  function WeekNumber(props) {
5486
5560
  const { week, ...thProps } = props;
5487
- return React27__default.default.createElement("th", { ...thProps });
5561
+ return React26__default.default.createElement("th", { ...thProps });
5488
5562
  }
5489
5563
  function WeekNumberHeader(props) {
5490
- return React27__default.default.createElement("th", { ...props });
5564
+ return React26__default.default.createElement("th", { ...props });
5491
5565
  }
5492
5566
  function Weeks(props) {
5493
- return React27__default.default.createElement("tbody", { ...props });
5567
+ return React26__default.default.createElement("tbody", { ...props });
5494
5568
  }
5495
5569
  function YearsDropdown(props) {
5496
5570
  const { components } = useDayPicker();
5497
- return React27__default.default.createElement(components.Dropdown, { ...props });
5571
+ return React26__default.default.createElement(components.Dropdown, { ...props });
5498
5572
  }
5499
5573
 
5500
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
5574
+ // ../../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
5501
5575
  function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
5502
5576
  let { from, to } = range;
5503
5577
  const { differenceInCalendarDays: differenceInCalendarDays2, isSameDay: isSameDay2 } = dateLib;
@@ -5518,7 +5592,7 @@ function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDa
5518
5592
  return false;
5519
5593
  }
5520
5594
 
5521
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/typeguards.js
5595
+ // ../../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
5522
5596
  function isDateInterval(matcher) {
5523
5597
  return Boolean(matcher && typeof matcher === "object" && "before" in matcher && "after" in matcher);
5524
5598
  }
@@ -5538,7 +5612,7 @@ function isDatesArray(value, dateLib) {
5538
5612
  return Array.isArray(value) && value.every(dateLib.isDate);
5539
5613
  }
5540
5614
 
5541
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js
5615
+ // ../../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
5542
5616
  function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
5543
5617
  const matchersArr = !Array.isArray(matchers) ? [matchers] : matchers;
5544
5618
  const { isSameDay: isSameDay2, differenceInCalendarDays: differenceInCalendarDays2, isAfter: isAfter2 } = dateLib;
@@ -5586,7 +5660,7 @@ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
5586
5660
  });
5587
5661
  }
5588
5662
 
5589
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js
5663
+ // ../../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
5590
5664
  function createGetModifiers(days, props, navStart, navEnd, dateLib) {
5591
5665
  const { disabled, hidden, modifiers, showOutsideDays, broadcastCalendar, today = dateLib.today() } = props;
5592
5666
  const { isSameDay: isSameDay2, isSameMonth: isSameMonth2, startOfMonth: startOfMonth2, isBefore: isBefore2, endOfMonth: endOfMonth2, isAfter: isAfter2 } = dateLib;
@@ -5655,7 +5729,7 @@ function createGetModifiers(days, props, navStart, navEnd, dateLib) {
5655
5729
  };
5656
5730
  }
5657
5731
 
5658
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js
5732
+ // ../../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
5659
5733
  function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames = {}) {
5660
5734
  const modifierClassNames = Object.entries(modifiers).filter(([, active]) => active === true).reduce((previousValue, [key]) => {
5661
5735
  if (modifiersClassNames[key]) {
@@ -5670,7 +5744,7 @@ function getClassNamesForModifiers(modifiers, classNames, modifiersClassNames =
5670
5744
  return modifierClassNames;
5671
5745
  }
5672
5746
 
5673
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getComponents.js
5747
+ // ../../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
5674
5748
  function getComponents(customComponents) {
5675
5749
  return {
5676
5750
  ...custom_components_exports,
@@ -5678,7 +5752,7 @@ function getComponents(customComponents) {
5678
5752
  };
5679
5753
  }
5680
5754
 
5681
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js
5755
+ // ../../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
5682
5756
  function getDataAttributes(props) {
5683
5757
  const dataAttributes = {
5684
5758
  "data-mode": props.mode ?? void 0,
@@ -5696,7 +5770,7 @@ function getDataAttributes(props) {
5696
5770
  return dataAttributes;
5697
5771
  }
5698
5772
 
5699
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js
5773
+ // ../../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
5700
5774
  function getDefaultClassNames() {
5701
5775
  const classNames = {};
5702
5776
  for (const key in UI) {
@@ -5714,43 +5788,40 @@ function getDefaultClassNames() {
5714
5788
  return classNames;
5715
5789
  }
5716
5790
 
5717
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/index.js
5791
+ // ../../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
5718
5792
  var formatters_exports = {};
5719
5793
  __export(formatters_exports, {
5720
5794
  formatCaption: () => formatCaption,
5721
5795
  formatDay: () => formatDay,
5722
- formatMonthCaption: () => formatMonthCaption,
5723
5796
  formatMonthDropdown: () => formatMonthDropdown,
5724
5797
  formatWeekNumber: () => formatWeekNumber,
5725
5798
  formatWeekNumberHeader: () => formatWeekNumberHeader,
5726
5799
  formatWeekdayName: () => formatWeekdayName,
5727
- formatYearCaption: () => formatYearCaption,
5728
5800
  formatYearDropdown: () => formatYearDropdown
5729
5801
  });
5730
5802
 
5731
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js
5803
+ // ../../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
5732
5804
  function formatCaption(month, options, dateLib) {
5733
5805
  const lib = dateLib ?? new DateLib(options);
5734
5806
  return lib.formatMonthYear(month);
5735
5807
  }
5736
- var formatMonthCaption = formatCaption;
5737
5808
 
5738
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatDay.js
5809
+ // ../../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
5739
5810
  function formatDay(date, options, dateLib) {
5740
5811
  return (dateLib ?? new DateLib(options)).format(date, "d");
5741
5812
  }
5742
5813
 
5743
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js
5814
+ // ../../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
5744
5815
  function formatMonthDropdown(month, dateLib = defaultDateLib) {
5745
5816
  return dateLib.format(month, "LLLL");
5746
5817
  }
5747
5818
 
5748
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js
5819
+ // ../../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
5749
5820
  function formatWeekdayName(weekday, options, dateLib) {
5750
5821
  return (dateLib ?? new DateLib(options)).format(weekday, "cccccc");
5751
5822
  }
5752
5823
 
5753
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js
5824
+ // ../../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
5754
5825
  function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
5755
5826
  if (weekNumber < 10) {
5756
5827
  return dateLib.formatNumber(`0${weekNumber.toLocaleString()}`);
@@ -5758,36 +5829,27 @@ function formatWeekNumber(weekNumber, dateLib = defaultDateLib) {
5758
5829
  return dateLib.formatNumber(`${weekNumber.toLocaleString()}`);
5759
5830
  }
5760
5831
 
5761
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js
5832
+ // ../../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
5762
5833
  function formatWeekNumberHeader() {
5763
5834
  return ``;
5764
5835
  }
5765
5836
 
5766
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js
5837
+ // ../../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
5767
5838
  function formatYearDropdown(year, dateLib = defaultDateLib) {
5768
5839
  return dateLib.format(year, "yyyy");
5769
5840
  }
5770
- var formatYearCaption = formatYearDropdown;
5771
5841
 
5772
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js
5842
+ // ../../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
5773
5843
  function getFormatters(customFormatters) {
5774
- if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {
5775
- customFormatters.formatCaption = customFormatters.formatMonthCaption;
5776
- }
5777
- if (customFormatters?.formatYearCaption && !customFormatters.formatYearDropdown) {
5778
- customFormatters.formatYearDropdown = customFormatters.formatYearCaption;
5779
- }
5780
5844
  return {
5781
5845
  ...formatters_exports,
5782
5846
  ...customFormatters
5783
5847
  };
5784
5848
  }
5785
5849
 
5786
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/index.js
5850
+ // ../../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
5787
5851
  var labels_exports = {};
5788
5852
  __export(labels_exports, {
5789
- labelCaption: () => labelCaption,
5790
- labelDay: () => labelDay,
5791
5853
  labelDayButton: () => labelDayButton,
5792
5854
  labelGrid: () => labelGrid,
5793
5855
  labelGridcell: () => labelGridcell,
@@ -5801,7 +5863,7 @@ __export(labels_exports, {
5801
5863
  labelYearDropdown: () => labelYearDropdown
5802
5864
  });
5803
5865
 
5804
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js
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/labelDayButton.js
5805
5867
  function labelDayButton(date, modifiers, options, dateLib) {
5806
5868
  let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
5807
5869
  if (modifiers.today)
@@ -5810,16 +5872,14 @@ function labelDayButton(date, modifiers, options, dateLib) {
5810
5872
  label = `${label}, selected`;
5811
5873
  return label;
5812
5874
  }
5813
- var labelDay = labelDayButton;
5814
5875
 
5815
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelGrid.js
5876
+ // ../../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
5816
5877
  function labelGrid(date, options, dateLib) {
5817
5878
  const lib = dateLib ?? new DateLib(options);
5818
5879
  return lib.formatMonthYear(date);
5819
5880
  }
5820
- var labelCaption = labelGrid;
5821
5881
 
5822
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js
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/labelGridcell.js
5823
5883
  function labelGridcell(date, modifiers, options, dateLib) {
5824
5884
  let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
5825
5885
  if (modifiers?.today) {
@@ -5828,48 +5888,48 @@ function labelGridcell(date, modifiers, options, dateLib) {
5828
5888
  return label;
5829
5889
  }
5830
5890
 
5831
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js
5891
+ // ../../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
5832
5892
  function labelMonthDropdown(_options) {
5833
5893
  return "Choose the Month";
5834
5894
  }
5835
5895
 
5836
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelNav.js
5896
+ // ../../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
5837
5897
  function labelNav() {
5838
5898
  return "";
5839
5899
  }
5840
5900
 
5841
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelNext.js
5901
+ // ../../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
5842
5902
  var defaultLabel = "Go to the Next Month";
5843
5903
  function labelNext(_month, _options) {
5844
5904
  return defaultLabel;
5845
5905
  }
5846
5906
 
5847
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js
5907
+ // ../../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
5848
5908
  function labelPrevious(_month) {
5849
5909
  return "Go to the Previous Month";
5850
5910
  }
5851
5911
 
5852
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js
5912
+ // ../../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
5853
5913
  function labelWeekday(date, options, dateLib) {
5854
5914
  return (dateLib ?? new DateLib(options)).format(date, "cccc");
5855
5915
  }
5856
5916
 
5857
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js
5917
+ // ../../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
5858
5918
  function labelWeekNumber(weekNumber, _options) {
5859
5919
  return `Week ${weekNumber}`;
5860
5920
  }
5861
5921
 
5862
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js
5922
+ // ../../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
5863
5923
  function labelWeekNumberHeader(_options) {
5864
5924
  return "Week Number";
5865
5925
  }
5866
5926
 
5867
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js
5927
+ // ../../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
5868
5928
  function labelYearDropdown(_options) {
5869
5929
  return "Choose the Year";
5870
5930
  }
5871
5931
 
5872
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getLabels.js
5932
+ // ../../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
5873
5933
  var resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
5874
5934
  if (customLabel)
5875
5935
  return customLabel;
@@ -5897,7 +5957,7 @@ function getLabels(customLabels, options) {
5897
5957
  };
5898
5958
  }
5899
5959
 
5900
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js
5960
+ // ../../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
5901
5961
  function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
5902
5962
  const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
5903
5963
  const months = eachMonthOfInterval2({
@@ -5913,7 +5973,7 @@ function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
5913
5973
  return options;
5914
5974
  }
5915
5975
 
5916
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js
5976
+ // ../../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
5917
5977
  function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
5918
5978
  let style = { ...styles?.[UI.Day] };
5919
5979
  Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
@@ -5925,7 +5985,7 @@ function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
5925
5985
  return style;
5926
5986
  }
5927
5987
 
5928
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js
5988
+ // ../../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
5929
5989
  function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
5930
5990
  const referenceToday = today ?? dateLib.today();
5931
5991
  const start = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
@@ -5937,7 +5997,7 @@ function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
5937
5997
  return days;
5938
5998
  }
5939
5999
 
5940
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
6000
+ // ../../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
5941
6001
  function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false) {
5942
6002
  if (!navStart)
5943
6003
  return void 0;
@@ -5959,7 +6019,7 @@ function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse = false)
5959
6019
  });
5960
6020
  }
5961
6021
 
5962
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/noonDateLib.js
6022
+ // ../../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
5963
6023
  function createNoonOverrides(timeZone, options = {}) {
5964
6024
  const { weekStartsOn, locale } = options;
5965
6025
  const fallbackWeekStartsOn = weekStartsOn ?? locale?.options?.weekStartsOn ?? 0;
@@ -6110,10 +6170,10 @@ var queryWeeksEl = (element) => asHtmlElement(element.querySelector("[data-anima
6110
6170
  var queryNavEl = (element) => asHtmlElement(element.querySelector("[data-animated-nav]"));
6111
6171
  var queryWeekdaysEl = (element) => asHtmlElement(element.querySelector("[data-animated-weekdays]"));
6112
6172
  function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib }) {
6113
- const previousRootElSnapshotRef = React27.useRef(null);
6114
- const previousMonthsRef = React27.useRef(months);
6115
- const animatingRef = React27.useRef(false);
6116
- React27.useLayoutEffect(() => {
6173
+ const previousRootElSnapshotRef = React26.useRef(null);
6174
+ const previousMonthsRef = React26.useRef(months);
6175
+ const animatingRef = React26.useRef(false);
6176
+ React26.useLayoutEffect(() => {
6117
6177
  const previousMonths = previousMonthsRef.current;
6118
6178
  previousMonthsRef.current = months;
6119
6179
  if (!enabled || !rootElRef.current || // safety check because the ref can be set to anything by consumers
@@ -6155,7 +6215,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
6155
6215
  }
6156
6216
  const previousMonthEls = previousRootElSnapshot instanceof HTMLElement ? queryMonthEls(previousRootElSnapshot) : [];
6157
6217
  const currentMonthEls = queryMonthEls(rootElRef.current);
6158
- if (currentMonthEls?.every((el) => el instanceof HTMLElement) && previousMonthEls && previousMonthEls.every((el) => el instanceof HTMLElement)) {
6218
+ if (currentMonthEls?.every((el) => el instanceof HTMLElement) && previousMonthEls?.every((el) => el instanceof HTMLElement)) {
6159
6219
  animatingRef.current = true;
6160
6220
  rootElRef.current.style.isolation = "isolate";
6161
6221
  const navEl = queryNavEl(rootElRef.current);
@@ -6220,7 +6280,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
6220
6280
  });
6221
6281
  }
6222
6282
 
6223
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDates.js
6283
+ // ../../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
6224
6284
  function getDates(displayMonths, maxDate, props, dateLib) {
6225
6285
  const firstMonth = displayMonths[0];
6226
6286
  const lastMonth = displayMonths[displayMonths.length - 1];
@@ -6249,7 +6309,7 @@ function getDates(displayMonths, maxDate, props, dateLib) {
6249
6309
  return dates;
6250
6310
  }
6251
6311
 
6252
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDays.js
6312
+ // ../../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
6253
6313
  function getDays(calendarMonths) {
6254
6314
  const initialDays = [];
6255
6315
  return calendarMonths.reduce((days, month) => {
@@ -6260,7 +6320,7 @@ function getDays(calendarMonths) {
6260
6320
  }, initialDays.slice());
6261
6321
  }
6262
6322
 
6263
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
6323
+ // ../../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
6264
6324
  function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
6265
6325
  const { numberOfMonths = 1 } = props;
6266
6326
  const months = [];
@@ -6274,7 +6334,7 @@ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib)
6274
6334
  return months;
6275
6335
  }
6276
6336
 
6277
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
6337
+ // ../../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
6278
6338
  function getInitialMonth(props, navStart, navEnd, dateLib) {
6279
6339
  const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1 } = props;
6280
6340
  let initialMonth = month || defaultMonth || today;
@@ -6289,7 +6349,7 @@ function getInitialMonth(props, navStart, navEnd, dateLib) {
6289
6349
  return startOfMonth2(initialMonth);
6290
6350
  }
6291
6351
 
6292
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getMonths.js
6352
+ // ../../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
6293
6353
  function getMonths(displayMonths, dates, props, dateLib) {
6294
6354
  const { addDays: addDays2, endOfBroadcastWeek: endOfBroadcastWeek2, endOfISOWeek: endOfISOWeek2, endOfMonth: endOfMonth2, endOfWeek: endOfWeek2, getISOWeek: getISOWeek2, getWeek: getWeek2, startOfBroadcastWeek: startOfBroadcastWeek2, startOfISOWeek: startOfISOWeek2, startOfWeek: startOfWeek2 } = dateLib;
6295
6355
  const dayPickerMonths = displayMonths.reduce((months, month) => {
@@ -6328,35 +6388,18 @@ function getMonths(displayMonths, dates, props, dateLib) {
6328
6388
  }
6329
6389
  }
6330
6390
 
6331
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js
6391
+ // ../../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
6332
6392
  function getNavMonths(props, dateLib) {
6333
6393
  let { startMonth, endMonth } = props;
6334
- const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2, newDate, today } = dateLib;
6335
- const { fromYear, toYear, fromMonth, toMonth } = props;
6336
- if (!startMonth && fromMonth) {
6337
- startMonth = fromMonth;
6338
- }
6339
- if (!startMonth && fromYear) {
6340
- startMonth = dateLib.newDate(fromYear, 0, 1);
6341
- }
6342
- if (!endMonth && toMonth) {
6343
- endMonth = toMonth;
6344
- }
6345
- if (!endMonth && toYear) {
6346
- endMonth = newDate(toYear, 11, 31);
6347
- }
6394
+ const { startOfYear: startOfYear2, startOfDay: startOfDay2, startOfMonth: startOfMonth2, endOfMonth: endOfMonth2, addYears: addYears2, endOfYear: endOfYear2, today } = dateLib;
6348
6395
  const hasYearDropdown = props.captionLayout === "dropdown" || props.captionLayout === "dropdown-years";
6349
6396
  if (startMonth) {
6350
6397
  startMonth = startOfMonth2(startMonth);
6351
- } else if (fromYear) {
6352
- startMonth = newDate(fromYear, 0, 1);
6353
6398
  } else if (!startMonth && hasYearDropdown) {
6354
6399
  startMonth = startOfYear2(addYears2(props.today ?? today(), -100));
6355
6400
  }
6356
6401
  if (endMonth) {
6357
6402
  endMonth = endOfMonth2(endMonth);
6358
- } else if (toYear) {
6359
- endMonth = newDate(toYear, 11, 31);
6360
6403
  } else if (!endMonth && hasYearDropdown) {
6361
6404
  endMonth = endOfYear2(props.today ?? today());
6362
6405
  }
@@ -6366,7 +6409,7 @@ function getNavMonths(props, dateLib) {
6366
6409
  ];
6367
6410
  }
6368
6411
 
6369
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js
6412
+ // ../../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
6370
6413
  function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
6371
6414
  if (options.disableNavigation) {
6372
6415
  return void 0;
@@ -6385,7 +6428,7 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
6385
6428
  return addMonths2(month, offset);
6386
6429
  }
6387
6430
 
6388
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js
6431
+ // ../../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
6389
6432
  function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
6390
6433
  if (options.disableNavigation) {
6391
6434
  return void 0;
@@ -6404,7 +6447,7 @@ function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, date
6404
6447
  return addMonths2(month, -offset);
6405
6448
  }
6406
6449
 
6407
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js
6450
+ // ../../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
6408
6451
  function getWeeks(months) {
6409
6452
  const initialWeeks = [];
6410
6453
  return months.reduce((weeks, month) => {
@@ -6412,12 +6455,12 @@ function getWeeks(months) {
6412
6455
  }, initialWeeks.slice());
6413
6456
  }
6414
6457
  function useControlledValue(defaultValue, controlledValue) {
6415
- const [uncontrolledValue, setValue] = React27.useState(defaultValue);
6458
+ const [uncontrolledValue, setValue] = React26.useState(defaultValue);
6416
6459
  const value = controlledValue === void 0 ? uncontrolledValue : controlledValue;
6417
6460
  return [value, setValue];
6418
6461
  }
6419
6462
 
6420
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/useCalendar.js
6463
+ // ../../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
6421
6464
  function useCalendar(props, dateLib) {
6422
6465
  const [navStart, navEnd] = getNavMonths(props, dateLib);
6423
6466
  const { startOfMonth: startOfMonth2, endOfMonth: endOfMonth2 } = dateLib;
@@ -6427,11 +6470,11 @@ function useCalendar(props, dateLib) {
6427
6470
  // initialMonth is always computed from props.month if provided
6428
6471
  props.month ? initialMonth : void 0
6429
6472
  );
6430
- React27.useEffect(() => {
6473
+ React26.useEffect(() => {
6431
6474
  const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
6432
6475
  setFirstMonth(newInitialMonth);
6433
6476
  }, [props.timeZone]);
6434
- const { months, weeks, days, previousMonth, nextMonth } = React27.useMemo(() => {
6477
+ const { months, weeks, days, previousMonth, nextMonth } = React26.useMemo(() => {
6435
6478
  const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
6436
6479
  const dates = getDates(displayMonths, props.endMonth ? endOfMonth2(props.endMonth) : void 0, {
6437
6480
  ISOWeek: props.ISOWeek,
@@ -6505,7 +6548,7 @@ function useCalendar(props, dateLib) {
6505
6548
  return calendar;
6506
6549
  }
6507
6550
 
6508
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
6551
+ // ../../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
6509
6552
  var FocusTargetPriority;
6510
6553
  (function(FocusTargetPriority2) {
6511
6554
  FocusTargetPriority2[FocusTargetPriority2["Today"] = 0] = "Today";
@@ -6543,7 +6586,7 @@ function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
6543
6586
  return focusTarget;
6544
6587
  }
6545
6588
 
6546
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js
6589
+ // ../../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
6547
6590
  function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
6548
6591
  const { ISOWeek, broadcastCalendar } = props;
6549
6592
  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;
@@ -6564,7 +6607,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
6564
6607
  return focusableDate;
6565
6608
  }
6566
6609
 
6567
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js
6610
+ // ../../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
6568
6611
  function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
6569
6612
  if (attempt > 365) {
6570
6613
  return void 0;
@@ -6580,12 +6623,12 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
6580
6623
  return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);
6581
6624
  }
6582
6625
 
6583
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/useFocus.js
6626
+ // ../../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
6584
6627
  function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
6585
6628
  const { autoFocus } = props;
6586
- const [lastFocused, setLastFocused] = React27.useState();
6629
+ const [lastFocused, setLastFocused] = React26.useState();
6587
6630
  const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
6588
- const [focusedDay, setFocused] = React27.useState(autoFocus ? focusTarget : void 0);
6631
+ const [focusedDay, setFocused] = React26.useState(autoFocus ? focusTarget : void 0);
6589
6632
  const blur = () => {
6590
6633
  setLastFocused(focusedDay);
6591
6634
  setFocused(void 0);
@@ -6618,7 +6661,7 @@ function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
6618
6661
  return useFocus2;
6619
6662
  }
6620
6663
 
6621
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useMulti.js
6664
+ // ../../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
6622
6665
  function useMulti(props, dateLib) {
6623
6666
  const { selected: initiallySelected, required, onSelect } = props;
6624
6667
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
@@ -6658,7 +6701,7 @@ function useMulti(props, dateLib) {
6658
6701
  };
6659
6702
  }
6660
6703
 
6661
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/addToRange.js
6704
+ // ../../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
6662
6705
  function addToRange(date, initialRange, min2 = 0, max2 = 0, required = false, dateLib = defaultDateLib) {
6663
6706
  const { from, to } = initialRange || {};
6664
6707
  const { isSameDay: isSameDay2, isAfter: isAfter2, isBefore: isBefore2 } = dateLib;
@@ -6711,7 +6754,7 @@ function addToRange(date, initialRange, min2 = 0, max2 = 0, required = false, da
6711
6754
  return range;
6712
6755
  }
6713
6756
 
6714
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js
6757
+ // ../../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
6715
6758
  function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
6716
6759
  const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;
6717
6760
  let date = range.from;
@@ -6726,12 +6769,12 @@ function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {
6726
6769
  return false;
6727
6770
  }
6728
6771
 
6729
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js
6772
+ // ../../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
6730
6773
  function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
6731
6774
  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);
6732
6775
  }
6733
6776
 
6734
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js
6777
+ // ../../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
6735
6778
  function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
6736
6779
  const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
6737
6780
  const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
@@ -6785,15 +6828,30 @@ function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
6785
6828
  return false;
6786
6829
  }
6787
6830
 
6788
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useRange.js
6831
+ // ../../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
6789
6832
  function useRange(props, dateLib) {
6790
- const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;
6833
+ const { disabled, excludeDisabled, resetOnSelect, selected: initiallySelected, required, onSelect } = props;
6791
6834
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
6792
6835
  const selected = !onSelect ? internallySelected : initiallySelected;
6793
6836
  const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);
6794
6837
  const select = (triggerDate, modifiers, e) => {
6795
6838
  const { min: min2, max: max2 } = props;
6796
- const newRange = triggerDate ? addToRange(triggerDate, selected, min2, max2, required, dateLib) : void 0;
6839
+ let newRange;
6840
+ if (triggerDate) {
6841
+ const selectedFrom = selected?.from;
6842
+ const selectedTo = selected?.to;
6843
+ const hasFullRange = !!selectedFrom && !!selectedTo;
6844
+ const isClickingSingleDayRange = !!selectedFrom && !!selectedTo && dateLib.isSameDay(selectedFrom, selectedTo) && dateLib.isSameDay(triggerDate, selectedFrom);
6845
+ if (resetOnSelect && (hasFullRange || !selected?.from)) {
6846
+ if (!required && isClickingSingleDayRange) {
6847
+ newRange = void 0;
6848
+ } else {
6849
+ newRange = { from: triggerDate, to: void 0 };
6850
+ }
6851
+ } else {
6852
+ newRange = addToRange(triggerDate, selected, min2, max2, required, dateLib);
6853
+ }
6854
+ }
6797
6855
  if (excludeDisabled && disabled && newRange?.from && newRange.to) {
6798
6856
  if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {
6799
6857
  newRange.from = triggerDate;
@@ -6813,7 +6871,7 @@ function useRange(props, dateLib) {
6813
6871
  };
6814
6872
  }
6815
6873
 
6816
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/selection/useSingle.js
6874
+ // ../../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
6817
6875
  function useSingle(props, dateLib) {
6818
6876
  const { selected: initiallySelected, required, onSelect } = props;
6819
6877
  const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : void 0);
@@ -6844,7 +6902,7 @@ function useSingle(props, dateLib) {
6844
6902
  };
6845
6903
  }
6846
6904
 
6847
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/useSelection.js
6905
+ // ../../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
6848
6906
  function useSelection(props, dateLib) {
6849
6907
  const single = useSingle(props, dateLib);
6850
6908
  const multi = useMulti(props, dateLib);
@@ -6861,7 +6919,7 @@ function useSelection(props, dateLib) {
6861
6919
  }
6862
6920
  }
6863
6921
 
6864
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js
6922
+ // ../../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
6865
6923
  function toTimeZone(date, timeZone) {
6866
6924
  if (date instanceof TZDate && date.timeZone === timeZone) {
6867
6925
  return date;
@@ -6869,7 +6927,7 @@ function toTimeZone(date, timeZone) {
6869
6927
  return new TZDate(date, timeZone);
6870
6928
  }
6871
6929
 
6872
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js
6930
+ // ../../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
6873
6931
  function toZoneNoon(date, timeZone, noonSafe) {
6874
6932
  return toTimeZone(date, timeZone);
6875
6933
  }
@@ -6918,7 +6976,7 @@ function convertMatchersToTimeZone(matchers, timeZone, noonSafe) {
6918
6976
  return convertMatcher(matchers, timeZone);
6919
6977
  }
6920
6978
 
6921
- // ../../node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.7/node_modules/react-day-picker/dist/esm/DayPicker.js
6979
+ // ../../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
6922
6980
  function DayPicker(initialProps) {
6923
6981
  let props = initialProps;
6924
6982
  const timeZone = props.timeZone;
@@ -6966,7 +7024,7 @@ function DayPicker(initialProps) {
6966
7024
  props.modifiers = nextModifiers;
6967
7025
  }
6968
7026
  }
6969
- const { components, formatters: formatters2, labels, dateLib, locale, classNames } = React27.useMemo(() => {
7027
+ const { components, formatters: formatters2, labels, dateLib, locale, classNames } = React26.useMemo(() => {
6970
7028
  const locale2 = { ...enUS2, ...props.locale };
6971
7029
  const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;
6972
7030
  const noonOverrides = props.noonSafe && props.timeZone ? createNoonOverrides(props.timeZone, {
@@ -7018,21 +7076,21 @@ function DayPicker(initialProps) {
7018
7076
  const { isSelected, select, selected: selectedValue } = useSelection(props, dateLib) ?? {};
7019
7077
  const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
7020
7078
  const { labelDayButton: labelDayButton2, labelGridcell: labelGridcell2, labelGrid: labelGrid2, labelMonthDropdown: labelMonthDropdown2, labelNav: labelNav2, labelPrevious: labelPrevious2, labelNext: labelNext2, labelWeekday: labelWeekday2, labelWeekNumber: labelWeekNumber2, labelWeekNumberHeader: labelWeekNumberHeader2, labelYearDropdown: labelYearDropdown2 } = labels;
7021
- const weekdays = React27.useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
7079
+ const weekdays = React26.useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
7022
7080
  const isInteractive = mode !== void 0 || onDayClick !== void 0;
7023
- const handlePreviousClick = React27.useCallback(() => {
7081
+ const handlePreviousClick = React26.useCallback(() => {
7024
7082
  if (!previousMonth)
7025
7083
  return;
7026
7084
  goToMonth(previousMonth);
7027
7085
  onPrevClick?.(previousMonth);
7028
7086
  }, [previousMonth, goToMonth, onPrevClick]);
7029
- const handleNextClick = React27.useCallback(() => {
7087
+ const handleNextClick = React26.useCallback(() => {
7030
7088
  if (!nextMonth)
7031
7089
  return;
7032
7090
  goToMonth(nextMonth);
7033
7091
  onNextClick?.(nextMonth);
7034
7092
  }, [goToMonth, nextMonth, onNextClick]);
7035
- const handleDayClick = React27.useCallback((day, m) => (e) => {
7093
+ const handleDayClick = React26.useCallback((day, m) => (e) => {
7036
7094
  e.preventDefault();
7037
7095
  e.stopPropagation();
7038
7096
  setFocused(day);
@@ -7042,15 +7100,15 @@ function DayPicker(initialProps) {
7042
7100
  select?.(day.date, m, e);
7043
7101
  onDayClick?.(day.date, m, e);
7044
7102
  }, [select, onDayClick, setFocused]);
7045
- const handleDayFocus = React27.useCallback((day, m) => (e) => {
7103
+ const handleDayFocus = React26.useCallback((day, m) => (e) => {
7046
7104
  setFocused(day);
7047
7105
  onDayFocus?.(day.date, m, e);
7048
7106
  }, [onDayFocus, setFocused]);
7049
- const handleDayBlur = React27.useCallback((day, m) => (e) => {
7107
+ const handleDayBlur = React26.useCallback((day, m) => (e) => {
7050
7108
  blur();
7051
7109
  onDayBlur?.(day.date, m, e);
7052
7110
  }, [blur, onDayBlur]);
7053
- const handleDayKeyDown = React27.useCallback((day, modifiers) => (e) => {
7111
+ const handleDayKeyDown = React26.useCallback((day, modifiers) => (e) => {
7054
7112
  const keyMap = {
7055
7113
  ArrowLeft: [
7056
7114
  e.shiftKey ? "month" : "day",
@@ -7075,28 +7133,39 @@ function DayPicker(initialProps) {
7075
7133
  }
7076
7134
  onDayKeyDown?.(day.date, modifiers, e);
7077
7135
  }, [moveFocus, onDayKeyDown, props.dir]);
7078
- const handleDayMouseEnter = React27.useCallback((day, modifiers) => (e) => {
7136
+ const handleDayMouseEnter = React26.useCallback((day, modifiers) => (e) => {
7079
7137
  onDayMouseEnter?.(day.date, modifiers, e);
7080
7138
  }, [onDayMouseEnter]);
7081
- const handleDayMouseLeave = React27.useCallback((day, modifiers) => (e) => {
7139
+ const handleDayMouseLeave = React26.useCallback((day, modifiers) => (e) => {
7082
7140
  onDayMouseLeave?.(day.date, modifiers, e);
7083
7141
  }, [onDayMouseLeave]);
7084
- const handleMonthChange = React27.useCallback((date) => (e) => {
7142
+ const handleMonthChange = React26.useCallback((date, monthOffset) => (e) => {
7085
7143
  const selectedMonth = Number(e.target.value);
7086
7144
  const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
7087
- goToMonth(month);
7145
+ goToMonth(dateLib.addMonths(month, -monthOffset));
7088
7146
  }, [dateLib, goToMonth]);
7089
- const handleYearChange = React27.useCallback((date) => (e) => {
7147
+ const handleYearChange = React26.useCallback((date, monthOffset) => (e) => {
7090
7148
  const selectedYear = Number(e.target.value);
7091
7149
  const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
7092
- goToMonth(month);
7150
+ goToMonth(dateLib.addMonths(month, -monthOffset));
7093
7151
  }, [dateLib, goToMonth]);
7094
- const { className, style } = React27.useMemo(() => ({
7152
+ const { className, style } = React26.useMemo(() => ({
7095
7153
  className: [classNames[UI.Root], props.className].filter(Boolean).join(" "),
7096
7154
  style: { ...styles?.[UI.Root], ...props.style }
7097
7155
  }), [classNames, props.className, props.style, styles]);
7098
7156
  const dataAttributes = getDataAttributes(props);
7099
- const rootElRef = React27.useRef(null);
7157
+ const getDropdownStyle = (dropdown) => {
7158
+ const dropdownStyle = styles?.[UI.Dropdown];
7159
+ const specificDropdownStyle = styles?.[dropdown];
7160
+ if (!dropdownStyle && !specificDropdownStyle) {
7161
+ return void 0;
7162
+ }
7163
+ return {
7164
+ ...dropdownStyle,
7165
+ ...specificDropdownStyle
7166
+ };
7167
+ };
7168
+ const rootElRef = React26.useRef(null);
7100
7169
  useAnimation(rootElRef, Boolean(props.animate), {
7101
7170
  classNames,
7102
7171
  months,
@@ -7119,18 +7188,19 @@ function DayPicker(initialProps) {
7119
7188
  labels,
7120
7189
  formatters: formatters2
7121
7190
  };
7122
- return React27__default.default.createElement(
7191
+ return React26__default.default.createElement(
7123
7192
  dayPickerContext.Provider,
7124
7193
  { value: contextValue },
7125
- React27__default.default.createElement(
7194
+ React26__default.default.createElement(
7126
7195
  components.Root,
7127
- { 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 },
7128
- React27__default.default.createElement(
7196
+ { 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 },
7197
+ React26__default.default.createElement(
7129
7198
  components.Months,
7130
7199
  { className: classNames[UI.Months], style: styles?.[UI.Months] },
7131
- !props.hideNavigation && !navLayout && React27__default.default.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 }),
7200
+ !props.hideNavigation && !navLayout && React26__default.default.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 }),
7132
7201
  months.map((calendarMonth, displayIndex) => {
7133
- return React27__default.default.createElement(
7202
+ const monthOffset = props.reverseMonths ? months.length - 1 - displayIndex : displayIndex;
7203
+ return React26__default.default.createElement(
7134
7204
  components.Month,
7135
7205
  {
7136
7206
  "data-animated-month": props.animate ? "true" : void 0,
@@ -7141,21 +7211,21 @@ function DayPicker(initialProps) {
7141
7211
  displayIndex,
7142
7212
  calendarMonth
7143
7213
  },
7144
- navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React27__default.default.createElement(
7214
+ navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React26__default.default.createElement(
7145
7215
  components.PreviousMonthButton,
7146
- { 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 },
7147
- React27__default.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
7216
+ { 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 },
7217
+ React26__default.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
7148
7218
  ),
7149
- React27__default.default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? React27__default.default.createElement(
7219
+ React26__default.default.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__default.default.createElement(
7150
7220
  components.DropdownNav,
7151
7221
  { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
7152
7222
  (() => {
7153
- const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React27__default.default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React27__default.default.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
7154
- const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React27__default.default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React27__default.default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
7223
+ const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React26__default.default.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__default.default.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
7224
+ const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React26__default.default.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__default.default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
7155
7225
  const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
7156
7226
  return controls;
7157
7227
  })(),
7158
- React27__default.default.createElement("span", { role: "status", "aria-live": "polite", style: {
7228
+ React26__default.default.createElement("span", { role: "status", "aria-live": "polite", style: {
7159
7229
  border: 0,
7160
7230
  clip: "rect(0 0 0 0)",
7161
7231
  height: "1px",
@@ -7167,27 +7237,27 @@ function DayPicker(initialProps) {
7167
7237
  whiteSpace: "nowrap",
7168
7238
  wordWrap: "normal"
7169
7239
  } }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
7170
- ) : React27__default.default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
7171
- navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React27__default.default.createElement(
7240
+ ) : React26__default.default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], style: styles?.[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
7241
+ navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React26__default.default.createElement(
7172
7242
  components.NextMonthButton,
7173
- { 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 },
7174
- React27__default.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
7243
+ { 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 },
7244
+ React26__default.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], style: styles?.[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
7175
7245
  ),
7176
- displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React27__default.default.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 }),
7177
- React27__default.default.createElement(
7246
+ displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React26__default.default.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 }),
7247
+ React26__default.default.createElement(
7178
7248
  components.MonthGrid,
7179
7249
  { 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] },
7180
- !props.hideWeekdays && React27__default.default.createElement(
7250
+ !props.hideWeekdays && React26__default.default.createElement(
7181
7251
  components.Weekdays,
7182
7252
  { "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
7183
- showWeekNumber && React27__default.default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
7184
- weekdays.map((weekday) => React27__default.default.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)))
7253
+ showWeekNumber && React26__default.default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
7254
+ weekdays.map((weekday) => React26__default.default.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)))
7185
7255
  ),
7186
- React27__default.default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
7187
- return React27__default.default.createElement(
7256
+ React26__default.default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
7257
+ return React26__default.default.createElement(
7188
7258
  components.Week,
7189
7259
  { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
7190
- showWeekNumber && React27__default.default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
7260
+ showWeekNumber && React26__default.default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
7191
7261
  locale
7192
7262
  }), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
7193
7263
  week.days.map((day) => {
@@ -7204,7 +7274,7 @@ function DayPicker(initialProps) {
7204
7274
  const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
7205
7275
  const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
7206
7276
  const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
7207
- return React27__default.default.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 ? React27__default.default.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));
7277
+ return React26__default.default.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__default.default.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));
7208
7278
  })
7209
7279
  );
7210
7280
  }))
@@ -7212,7 +7282,7 @@ function DayPicker(initialProps) {
7212
7282
  );
7213
7283
  })
7214
7284
  ),
7215
- props.footer && React27__default.default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
7285
+ props.footer && React26__default.default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
7216
7286
  )
7217
7287
  );
7218
7288
  }
@@ -7313,8 +7383,7 @@ var PopoverContent = ({
7313
7383
  onEscapeKeyDown,
7314
7384
  ...props
7315
7385
  }) => {
7316
- const isLegacy = useIsLegacyBrand();
7317
- const effectiveVariant = !isLegacy ? "argo" : "default";
7386
+ const effectiveVariant = useArgoDesign() ? "argo" : "default";
7318
7387
  return /* @__PURE__ */ jsxRuntime.jsx(reactPopover.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
7319
7388
  reactPopover.Content,
7320
7389
  {
@@ -7395,9 +7464,9 @@ var Input = ({
7395
7464
  defaultValue,
7396
7465
  ...inputProps
7397
7466
  }) => {
7398
- const [hasUncontrolledValue, setHasUncontrolledValue] = React27.useState(() => !!defaultValue);
7467
+ const [hasUncontrolledValue, setHasUncontrolledValue] = React26.useState(() => !!defaultValue);
7399
7468
  const hasValue = !!value || hasUncontrolledValue;
7400
- const inputRef = React27.useRef(null);
7469
+ const inputRef = React26.useRef(null);
7401
7470
  const testId = genInputTestId(prefixTestId);
7402
7471
  const isClearButtonVisible = hasValue && !disabled && !readOnly || !!onClear;
7403
7472
  const handleChange = (event) => {
@@ -7531,11 +7600,11 @@ var DateInput = ({
7531
7600
  variant,
7532
7601
  ...props
7533
7602
  }) => {
7534
- const [inputValue, setInputValue] = React27.useState("");
7535
- const [hasFocus, setHasFocus] = React27.useState(false);
7536
- const [isOpen, setIsOpen] = React27.useState(false);
7537
- const [internalValue, setInternalValue] = React27.useState(defaultValue ?? null);
7538
- const [month, setMonth2] = React27.useState(/* @__PURE__ */ new Date());
7603
+ const [inputValue, setInputValue] = React26.useState("");
7604
+ const [hasFocus, setHasFocus] = React26.useState(false);
7605
+ const [isOpen, setIsOpen] = React26.useState(false);
7606
+ const [internalValue, setInternalValue] = React26.useState(defaultValue ?? null);
7607
+ const [month, setMonth2] = React26.useState(/* @__PURE__ */ new Date());
7539
7608
  const isControlled = value !== void 0;
7540
7609
  const currentValue = isControlled ? value : internalValue;
7541
7610
  const handleChange = (event) => {
@@ -7721,9 +7790,9 @@ var Link = ({
7721
7790
  )
7722
7791
  );
7723
7792
  };
7724
- var RootFormDataContext = React27.createContext({});
7793
+ var RootFormDataContext = React26.createContext({});
7725
7794
  var RootFormDataProvider = RootFormDataContext;
7726
- var useRootFormData = () => React27.use(RootFormDataContext);
7795
+ var useRootFormData = () => React26.use(RootFormDataContext);
7727
7796
  var resolveByPath2 = (parts, data) => {
7728
7797
  let current = data;
7729
7798
  for (const part of parts) {
@@ -7794,17 +7863,21 @@ var FieldTemplateBody = ({
7794
7863
  const hasErrors = rawErrors && rawErrors.length > 0;
7795
7864
  const isCheckbox = schema.type === "boolean" && uiSchema?.["ui:widget"] !== "select";
7796
7865
  const showLabel = displayLabel && label && !isCheckbox;
7866
+ const hasHelpIcons = Boolean(rawHelp || documentation);
7867
+ const helpIcons = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7868
+ rawHelp && /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { rawHelp }),
7869
+ documentation && /* @__PURE__ */ jsxRuntime.jsx(DocumentationLinkIcon, { documentation })
7870
+ ] });
7797
7871
  return /* @__PURE__ */ jsxRuntime.jsxs(FormGroup, { state: hasErrors ? "error" : "default", children: [
7798
7872
  showLabel && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: id, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tw-inline-flex tw-items-center tw-gap-1", children: [
7799
7873
  label,
7800
- rawHelp && /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { rawHelp }),
7801
- documentation && /* @__PURE__ */ jsxRuntime.jsx(DocumentationLinkIcon, { documentation })
7874
+ helpIcons
7802
7875
  ] }) }),
7803
- !showLabel && (rawHelp || documentation) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-1", children: [
7804
- rawHelp && /* @__PURE__ */ jsxRuntime.jsx(TooltipIcon, { rawHelp }),
7805
- documentation && /* @__PURE__ */ jsxRuntime.jsx(DocumentationLinkIcon, { documentation })
7806
- ] }),
7807
- children,
7876
+ !showLabel && !isCheckbox && hasHelpIcons && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tw-flex tw-items-center tw-gap-1", children: helpIcons }),
7877
+ isCheckbox && hasHelpIcons ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tw-flex tw-items-center tw-gap-1", children: [
7878
+ children,
7879
+ helpIcons
7880
+ ] }) : children,
7808
7881
  rawDescription && /* @__PURE__ */ jsxRuntime.jsx(FormGroup.Help, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { dangerouslySetInnerHTML: { __html: DOMPurify__default.default.sanitize(rawDescription) } }) }),
7809
7882
  hasErrors && /* @__PURE__ */ jsxRuntime.jsx(FormGroup.Help, { children: rawErrors.join(". ") })
7810
7883
  ] });
@@ -8017,8 +8090,8 @@ var rootVariants = classVarianceAuthority.cva(
8017
8090
  default: [
8018
8091
  "tw-rounded",
8019
8092
  "tw-border-neutral-200",
8020
- "data-[state=checked]:tw-bg-secondary-500",
8021
- "data-[state=checked]:tw-border-secondary-500",
8093
+ "data-[state=checked]:tw-bg-primary",
8094
+ "data-[state=checked]:tw-border-primary",
8022
8095
  "data-[state=indeterminate]:tw-bg-white",
8023
8096
  "data-[state=indeterminate]:tw-border-neutral-200"
8024
8097
  ],
@@ -8034,7 +8107,7 @@ var rootVariants = classVarianceAuthority.cva(
8034
8107
  "focus-visible:tw-outline-none",
8035
8108
  "focus-visible:tw-border-primary",
8036
8109
  "focus-visible:tw-ring-2",
8037
- "focus-visible:tw-ring-primary/50"
8110
+ "focus-visible:tw-ring-ring/50"
8038
8111
  ]
8039
8112
  }
8040
8113
  }
@@ -8047,7 +8120,7 @@ var indicatorVariants = classVarianceAuthority.cva(["tw-group", "tw-flex", "tw-i
8047
8120
  variants: {
8048
8121
  variant: {
8049
8122
  default: [
8050
- "data-[state=checked]:tw-text-white",
8123
+ "data-[state=checked]:tw-text-primary-foreground",
8051
8124
  "data-[state=indeterminate]:tw-text-neutral-200"
8052
8125
  ],
8053
8126
  argo: ["tw-text-primary-foreground"]
@@ -8065,10 +8138,9 @@ function Checkbox({
8065
8138
  tooltipPlacement = "top",
8066
8139
  ...rest
8067
8140
  }) {
8068
- const fallbackId = React27.useId();
8141
+ const fallbackId = React26.useId();
8069
8142
  const id = idProp?.toString() ?? fallbackId;
8070
- const isLegacy = useIsLegacyBrand();
8071
- const styleVariant = !isLegacy ? "argo" : "default";
8143
+ const styleVariant = useArgoDesign() ? "argo" : "default";
8072
8144
  const checkboxElement = /* @__PURE__ */ jsxRuntime.jsx(reactCheckbox.Root, { id, ...rest, className: cn(rootVariants({ variant: styleVariant, className })), children: /* @__PURE__ */ jsxRuntime.jsxs(reactCheckbox.Indicator, { className: cn(indicatorVariants({ variant: styleVariant })), children: [
8073
8145
  /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Check, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=checked]:tw-block" }),
8074
8146
  /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Minus, { className: "tw-hidden tw-size-3 tw-stroke-[4px] group-data-[state=indeterminate]:tw-block" })
@@ -8254,14 +8326,16 @@ var badgeColors = {
8254
8326
  gray: "tw-bg-neutral-400 tw-text-white tw-decoration-neutral-400",
8255
8327
  "gray-darker": "tw-bg-neutral-500 tw-text-white tw-decoration-neutral-500",
8256
8328
  "gray-inverse": "tw-bg-neutral-100 tw-text-neutral-400 tw-decoration-neutral-100",
8257
- green: "tw-bg-primary-500 tw-text-white tw-decoration-primary-500",
8258
- "green-darker": "tw-bg-primary-600 tw-text-white tw-decoration-primary-600",
8259
- "green-inverse": "tw-bg-primary-100 tw-text-primary-900 tw-decoration-primary-100",
8260
- blue: "tw-bg-secondary-500 tw-text-white tw-decoration-secondary-500",
8261
- "blue-inverse": "tw-bg-secondary-100 tw-text-secondary-600 tw-decoration-secondary-100",
8329
+ green: "tw-bg-green-500 tw-text-white tw-decoration-green-500",
8330
+ "green-darker": "tw-bg-green-600 tw-text-white tw-decoration-green-600",
8331
+ "green-inverse": "tw-bg-green-100 tw-text-green-900 tw-decoration-green-100",
8332
+ blue: "tw-bg-blue-500 tw-text-white tw-decoration-blue-500",
8333
+ "blue-inverse": "tw-bg-blue-100 tw-text-blue-600 tw-decoration-blue-100",
8262
8334
  red: "tw-bg-error-500 tw-text-white tw-decoration-error-500",
8263
8335
  orange: "tw-bg-warning-500 tw-text-white tw-decoration-warning-500",
8264
8336
  "orange-inverse": "tw-bg-warning-100 tw-text-warning-500 tw-decoration-warning-100",
8337
+ amber: "tw-bg-warning-300 tw-text-warning-800 tw-decoration-warning-300",
8338
+ "amber-inverse": "tw-bg-warning-100 tw-text-warning-700 tw-decoration-warning-100",
8265
8339
  teal: "tw-bg-teal-500 tw-text-white tw-decoration-teal-500",
8266
8340
  "teal-inverse": "tw-bg-teal-100 tw-text-teal-800 tw-decoration-teal-100",
8267
8341
  purple: "tw-bg-purple-500 tw-text-white tw-decoration-purple-500",
@@ -8467,8 +8541,7 @@ var ComboboxContent = ({
8467
8541
  children,
8468
8542
  ...popupProps
8469
8543
  }) => {
8470
- const isLegacy = useIsLegacyBrand();
8471
- const effectiveVariant = !isLegacy ? "argo" : "default";
8544
+ const effectiveVariant = useArgoDesign() ? "argo" : "default";
8472
8545
  return /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { container, children: /* @__PURE__ */ jsxRuntime.jsx(
8473
8546
  combobox.Combobox.Positioner,
8474
8547
  {
@@ -8598,7 +8671,7 @@ var ComboboxItemIndicator = ({
8598
8671
  "tw-rounded",
8599
8672
  "tw-border",
8600
8673
  "tw-border-input",
8601
- "tw-bg-white",
8674
+ "tw-bg-background",
8602
8675
  "data-[selected]:tw-bg-primary",
8603
8676
  "data-[selected]:tw-border-primary",
8604
8677
  className
@@ -8611,7 +8684,7 @@ var ComboboxItemIndicator = ({
8611
8684
  "tw-hidden",
8612
8685
  "tw-size-3",
8613
8686
  "tw-stroke-[4px]",
8614
- "!tw-text-white",
8687
+ "!tw-text-primary-foreground",
8615
8688
  "group-data-[selected]/combobox-item-indicator:tw-block"
8616
8689
  )
8617
8690
  }
@@ -8809,15 +8882,15 @@ var Combobox = ({
8809
8882
  itemToIcon = defaultItemToIcon,
8810
8883
  groupToLabel = defaultGroupToLabel
8811
8884
  }) => {
8812
- const closeReasonRef = React27.useRef(
8885
+ const closeReasonRef = React26.useRef(
8813
8886
  "none"
8814
8887
  );
8815
- const [inputValue, setInputValue] = React27.useState(() => {
8888
+ const [inputValue, setInputValue] = React26.useState(() => {
8816
8889
  const initial = value !== void 0 ? value : defaultValue;
8817
8890
  if (initial == null) return "";
8818
8891
  return itemToStringLabelProp?.(initial) ?? toLabel(initial);
8819
8892
  });
8820
- React27.useEffect(() => {
8893
+ React26.useEffect(() => {
8821
8894
  if (value === void 0) return;
8822
8895
  const label = value === null ? "" : itemToStringLabelProp?.(value) ?? toLabel(value);
8823
8896
  setInputValue((prev) => prev === label ? prev : label);
@@ -8826,7 +8899,7 @@ var Combobox = ({
8826
8899
  const queryLower = query.toLowerCase();
8827
8900
  const itemsProp = _itemsProp ?? [];
8828
8901
  const sampleItem = itemsProp.flatMap((item) => isGroupItem(item) ? item.items : [item])[0];
8829
- const [createdItems, setCreatedItems] = React27.useState([]);
8902
+ const [createdItems, setCreatedItems] = React26.useState([]);
8830
8903
  const allItems = (() => {
8831
8904
  if (createdItems.length === 0) return itemsProp;
8832
8905
  if (isGroupItems(itemsProp))
@@ -8980,6 +9053,7 @@ var DynamicSelectWidget = ({
8980
9053
  return /* @__PURE__ */ jsxRuntime.jsx(
8981
9054
  Combobox,
8982
9055
  {
9056
+ variant: "secondary",
8983
9057
  items,
8984
9058
  value: selectedItem ?? null,
8985
9059
  disabled: disabled || readonly,
@@ -9044,16 +9118,16 @@ var PasswordInput = ({
9044
9118
  readOnly,
9045
9119
  ...restInputProps
9046
9120
  }) => {
9047
- const inputRef = React27.useRef(null);
9048
- const [internalValue, setInternalValue] = React27.useState(defaultValue ?? "");
9121
+ const inputRef = React26.useRef(null);
9122
+ const [internalValue, setInternalValue] = React26.useState(defaultValue ?? "");
9049
9123
  const isControlled = valueProp !== void 0;
9050
9124
  const value = isControlled ? valueProp ?? "" : internalValue;
9051
9125
  const setValue = (next) => {
9052
9126
  if (!isControlled) setInternalValue(next);
9053
9127
  onValueChange?.(next);
9054
9128
  };
9055
- const [capsLock, setCapsLock] = React27.useState(false);
9056
- const [isPasswordVisible, setIsPasswordVisible] = React27.useState(defaultPasswordVisibility);
9129
+ const [capsLock, setCapsLock] = React26.useState(false);
9130
+ const [isPasswordVisible, setIsPasswordVisible] = React26.useState(defaultPasswordVisibility);
9057
9131
  const canClear = allowClear && !!value && !disabled && !readOnly;
9058
9132
  const handleChange = (event) => {
9059
9133
  setValue(event.target.value);
@@ -9167,12 +9241,12 @@ var PasswordWidget = ({
9167
9241
  }
9168
9242
  );
9169
9243
  };
9170
- var RadioGroupContext = React27.createContext({
9244
+ var RadioGroupContext = React26.createContext({
9171
9245
  variant: "radio",
9172
9246
  orientation: "horizontal"
9173
9247
  });
9174
9248
  var RadioGroupProvider = RadioGroupContext;
9175
- var useRadioGroupContext = () => React27.use(RadioGroupContext);
9249
+ var useRadioGroupContext = () => React26.use(RadioGroupContext);
9176
9250
  var radioVariants = classVarianceAuthority.cva(
9177
9251
  [
9178
9252
  // reset
@@ -9219,7 +9293,7 @@ var radioVariants = classVarianceAuthority.cva(
9219
9293
  "focus-visible:tw-outline-none",
9220
9294
  "focus-visible:tw-border-primary",
9221
9295
  "focus-visible:tw-ring-2",
9222
- "focus-visible:tw-ring-primary/50"
9296
+ "focus-visible:tw-ring-ring/50"
9223
9297
  ]
9224
9298
  }
9225
9299
  }
@@ -9306,7 +9380,7 @@ var radioItemButtonVariants = classVarianceAuthority.cva(
9306
9380
  "focus-visible:tw-outline-none",
9307
9381
  "focus-visible:tw-border-primary",
9308
9382
  "focus-visible:tw-ring-2",
9309
- "focus-visible:tw-ring-primary/50"
9383
+ "focus-visible:tw-ring-ring/50"
9310
9384
  ]
9311
9385
  }
9312
9386
  }
@@ -9337,9 +9411,8 @@ var RadioGroupItem = ({
9337
9411
  ...props
9338
9412
  }) => {
9339
9413
  const { variant } = useRadioGroupContext();
9340
- const isLegacy = useIsLegacyBrand();
9341
- const styleVariant = !isLegacy ? "argo" : "default";
9342
- const id = React27.useId();
9414
+ const styleVariant = useArgoDesign() ? "argo" : "default";
9415
+ const id = React26.useId();
9343
9416
  const item = (() => {
9344
9417
  if (variant === "button")
9345
9418
  return /* @__PURE__ */ jsxRuntime.jsx(RadioGroupItemButton, { styleVariant, ...props, children });
@@ -9537,6 +9610,7 @@ var SelectWidget = ({
9537
9610
  return /* @__PURE__ */ jsxRuntime.jsx(
9538
9611
  Combobox,
9539
9612
  {
9613
+ variant: "secondary",
9540
9614
  items,
9541
9615
  value: selectedItem ?? null,
9542
9616
  allowClear: !required,
@@ -9566,8 +9640,8 @@ var TemplateWatchWidget = ({ value, onChange, options: widgetOptions }) => {
9566
9640
  const watch = widgetOptions.watch;
9567
9641
  const template = widgetOptions.template;
9568
9642
  const computed = watch && template ? resolveTemplate(template, watch, data) : value ?? "";
9569
- const lastSetRef = React27.useRef(String(value ?? ""));
9570
- React27.useEffect(() => {
9643
+ const lastSetRef = React26.useRef(String(value ?? ""));
9644
+ React26.useEffect(() => {
9571
9645
  const computedStr = String(computed);
9572
9646
  if (computedStr !== lastSetRef.current) {
9573
9647
  lastSetRef.current = computedStr;
@@ -10089,8 +10163,8 @@ var RjsfSchemaEditor = ({
10089
10163
  renderMarkdown,
10090
10164
  hasProtectedDefaultBranch = false
10091
10165
  }) => {
10092
- const schemaJs = React27.useMemo(() => sanitizeSchema(schema), [schema]);
10093
- const uiSchema = React27.useMemo(
10166
+ const schemaJs = React26.useMemo(() => sanitizeSchema(schema), [schema]);
10167
+ const uiSchema = React26.useMemo(
10094
10168
  () => generateUiSchema(
10095
10169
  schema,
10096
10170
  readOnly,
@@ -10100,23 +10174,23 @@ var RjsfSchemaEditor = ({
10100
10174
  ),
10101
10175
  [schema, readOnly, globalConfig, hasProtectedDefaultBranch]
10102
10176
  );
10103
- const mergedWidgets = React27.useMemo(() => ({ ...defaultWidgets, ...widgets }), [widgets]);
10104
- const mergedFields = React27.useMemo(() => ({ ...defaultFields, ...fields }), [fields]);
10105
- const initialDataRef = React27.useRef(value);
10106
- const formDataRef = React27.useRef(initialDataRef.current);
10107
- const [formKey, setFormKey] = React27.useState(0);
10108
- const [rootFormData, setRootFormData] = React27.useState(initialDataRef.current);
10109
- const mountedFormDataJsonRef = React27.useRef(null);
10110
- const isInitialMountRef = React27.useRef(true);
10111
- React27.useEffect(() => {
10177
+ const mergedWidgets = React26.useMemo(() => ({ ...defaultWidgets, ...widgets }), [widgets]);
10178
+ const mergedFields = React26.useMemo(() => ({ ...defaultFields, ...fields }), [fields]);
10179
+ const initialDataRef = React26.useRef(value);
10180
+ const formDataRef = React26.useRef(initialDataRef.current);
10181
+ const [formKey, setFormKey] = React26.useState(0);
10182
+ const [rootFormData, setRootFormData] = React26.useState(initialDataRef.current);
10183
+ const mountedFormDataJsonRef = React26.useRef(null);
10184
+ const isInitialMountRef = React26.useRef(true);
10185
+ React26.useEffect(() => {
10112
10186
  isInitialMountRef.current = false;
10113
10187
  }, [formKey]);
10114
- const onChangeRef = React27.useRef(onChange);
10188
+ const onChangeRef = React26.useRef(onChange);
10115
10189
  onChangeRef.current = onChange;
10116
- const valueRef = React27.useRef(value);
10190
+ const valueRef = React26.useRef(value);
10117
10191
  valueRef.current = value;
10118
- const lastSentJsonRef = React27.useRef(null);
10119
- const debouncedOnChange = React27.useMemo(
10192
+ const lastSentJsonRef = React26.useRef(null);
10193
+ const debouncedOnChange = React26.useMemo(
10120
10194
  () => debounce((data) => {
10121
10195
  const dataJson = stableStringify(data);
10122
10196
  const storeJson = stableStringify(valueRef.current);
@@ -10130,8 +10204,8 @@ var RjsfSchemaEditor = ({
10130
10204
  }, 100),
10131
10205
  []
10132
10206
  );
10133
- React27.useEffect(() => () => debouncedOnChange.cancel(), [debouncedOnChange]);
10134
- const [prevValue, setPrevValue] = React27.useState(value);
10207
+ React26.useEffect(() => () => debouncedOnChange.cancel(), [debouncedOnChange]);
10208
+ const [prevValue, setPrevValue] = React26.useState(value);
10135
10209
  if (value !== prevValue) {
10136
10210
  setPrevValue(value);
10137
10211
  const incomingJson = stableStringify(value);
@@ -10147,7 +10221,7 @@ var RjsfSchemaEditor = ({
10147
10221
  }
10148
10222
  }
10149
10223
  }
10150
- const handleChange = React27.useCallback(
10224
+ const handleChange = React26.useCallback(
10151
10225
  (e) => {
10152
10226
  if (!e.formData) return;
10153
10227
  formDataRef.current = e.formData;
@@ -10160,11 +10234,11 @@ var RjsfSchemaEditor = ({
10160
10234
  },
10161
10235
  [debouncedOnChange]
10162
10236
  );
10163
- const debouncedOnChangeRef = React27.useRef(debouncedOnChange);
10237
+ const debouncedOnChangeRef = React26.useRef(debouncedOnChange);
10164
10238
  debouncedOnChangeRef.current = debouncedOnChange;
10165
- const setRootFormDataRef = React27.useRef(setRootFormData);
10239
+ const setRootFormDataRef = React26.useRef(setRootFormData);
10166
10240
  setRootFormDataRef.current = setRootFormData;
10167
- const formContext = React27.useMemo(
10241
+ const formContext = React26.useMemo(
10168
10242
  () => ({
10169
10243
  setFormData: (data) => {
10170
10244
  const merged = { ...formDataRef.current, ...data };
@@ -10183,8 +10257,8 @@ var RjsfSchemaEditor = ({
10183
10257
  []
10184
10258
  // stable — uses refs for all external values
10185
10259
  );
10186
- const formRef = React27.useRef(null);
10187
- React27.useEffect(() => {
10260
+ const formRef = React26.useRef(null);
10261
+ React26.useEffect(() => {
10188
10262
  if (onRegisterValidate) {
10189
10263
  onRegisterValidate(() => formRef.current?.validateForm() ?? true);
10190
10264
  }