@dataesr/dsfr-plus 0.4.0 → 0.5.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.
@@ -1,12 +1,12 @@
1
1
  import { OnlyAs } from "react-polymorphed";
2
2
  import { Argument } from "classnames";
3
3
  import { DSFRColors } from "../../types/colors";
4
- export type BadgeType = "new" | 'error' | 'info' | 'warning' | 'success';
4
+ export type BadgeType = "new" | "error" | "info" | "warning" | "success";
5
5
  export type BadgeProps = {
6
6
  icon?: string;
7
7
  className?: Argument;
8
8
  size?: "md" | "sm";
9
- children: string;
9
+ children: React.ReactNode;
10
10
  noIcon?: boolean;
11
11
  color?: DSFRColors;
12
12
  variant?: BadgeType;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AAC5D,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,MAAM,MAAM,SAAS,GACjB,KAAK,GACL,OAAO,GACP,MAAM,GACN,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAA;AACD,eAAO,MAAM,KAAK,iGAmBjB,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAmB,MAAM,mBAAmB,CAAC;AAC5D,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AACF,eAAO,MAAM,KAAK,iGA+BjB,CAAC"}
@@ -1,6 +1,7 @@
1
- import { Merge } from '../../types/polymophic';
1
+ import { Merge } from "../../types/polymophic";
2
2
  type BadgeGroupBaseProps = {
3
3
  className?: string;
4
+ children?: React.ReactNode;
4
5
  };
5
6
  export type BadgeGroupProps = Merge<React.HTMLAttributes<HTMLUListElement>, BadgeGroupBaseProps>;
6
7
  export declare const BadgeGroup: React.FC<BadgeGroupProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/BadgeGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG/C,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,CAAC;AAEjG,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAYhD,CAAC"}
1
+ {"version":3,"file":"BadgeGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Badge/BadgeGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG/C,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,CACjC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EACtC,mBAAmB,CACpB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAchD,CAAC"}
@@ -2,12 +2,13 @@ import { Argument } from 'classnames';
2
2
  import { OnlyAs, PolymorphicComponent } from 'react-polymorphed';
3
3
  type TextTags = 'p' | 'span';
4
4
  type TextSizes = 'xs' | 'sm' | 'md' | 'lg' | 'lead';
5
- type TextProps = React.PropsWithChildren<{
5
+ type TextPropsPartial = React.PropsWithChildren<{
6
6
  alt?: boolean;
7
7
  bold?: boolean;
8
8
  className?: Argument;
9
9
  size?: TextSizes;
10
10
  }>;
11
- export declare const Text: PolymorphicComponent<"p", TextProps, OnlyAs<TextTags>>;
11
+ export type TextProps = PolymorphicComponent<"p", TextPropsPartial, OnlyAs<TextTags>>;
12
+ export declare const Text: TextProps;
12
13
  export {};
13
14
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACvC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC,CAAA;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAgBvE,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC9C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,IAAI,EAAE,SAgBlB,CAAC"}
package/dist/dsfr-plus.js CHANGED
@@ -199,18 +199,18 @@ function gs(t) {
199
199
  let g = re(() => lr(v ? [] : f), [
200
200
  v,
201
201
  f
202
- ]), A = k(nt), [w, S] = X(nt), K = k(nt), x = () => {
202
+ ]), _ = k(nt), [w, S] = X(nt), K = k(nt), x = () => {
203
203
  if (!M)
204
204
  return;
205
205
  R(!1);
206
- let P = a || i || A.current;
206
+ let P = a || i || _.current;
207
207
  Qt(P, K.current) || (K.current = P, S(P));
208
208
  }, [M, R] = X(!1);
209
209
  return W(x), {
210
210
  realtimeValidation: u || g || a || i || nt,
211
211
  displayValidation: s === "native" ? u || g || w : u || g || a || i || w,
212
212
  updateValidation(P) {
213
- s === "aria" && !Qt(w, P) ? S(P) : A.current = P;
213
+ s === "aria" && !Qt(w, P) ? S(P) : _.current = P;
214
214
  },
215
215
  resetValidation() {
216
216
  let P = nt;
@@ -545,18 +545,18 @@ function uo(t) {
545
545
  t.defaultSelectedKeys
546
546
  ]), [d, v] = tt(f, p, t.onSelectionChange), h = re(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
547
547
  t.disabledKeys
548
- ]), [g, A] = X(o);
549
- o === "replace" && g === "toggle" && typeof d == "object" && d.size === 0 && A("replace");
548
+ ]), [g, _] = X(o);
549
+ o === "replace" && g === "toggle" && typeof d == "object" && d.size === 0 && _("replace");
550
550
  let w = k(o);
551
551
  return W(() => {
552
- o !== w.current && (A(o), w.current = o);
552
+ o !== w.current && (_(o), w.current = o);
553
553
  }, [
554
554
  o
555
555
  ]), {
556
556
  selectionMode: e,
557
557
  disallowEmptySelection: n,
558
558
  selectionBehavior: g,
559
- setSelectionBehavior: A,
559
+ setSelectionBehavior: _,
560
560
  get isFocused() {
561
561
  return l.current;
562
562
  },
@@ -1009,13 +1009,13 @@ function Ss(t) {
1009
1009
  t.onSelectionChange && t.onSelectionChange(ee), ee === w && (H(), D());
1010
1010
  };
1011
1011
  var h;
1012
- let { collection: g, selectionManager: A, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: x } = fo({
1012
+ let { collection: g, selectionManager: _, selectedKey: w, setSelectedKey: S, selectedItem: K, disabledKeys: x } = fo({
1013
1013
  ...t,
1014
1014
  onSelectionChange: v,
1015
1015
  items: (h = t.items) !== null && h !== void 0 ? h : t.defaultItems
1016
1016
  });
1017
1017
  var M, R;
1018
- let [b, _] = tt(t.inputValue, (R = (M = t.defaultInputValue) !== null && M !== void 0 ? M : (e = g.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), P = g, C = re(() => (
1018
+ let [b, A] = tt(t.inputValue, (R = (M = t.defaultInputValue) !== null && M !== void 0 ? M : (e = g.getItem(w)) === null || e === void 0 ? void 0 : e.textValue) !== null && R !== void 0 ? R : "", t.onInputChange), P = g, C = re(() => (
1019
1019
  // No default filter if items are controlled.
1020
1020
  t.items != null || !r ? g : Ts(g, b, r)
1021
1021
  ), [
@@ -1026,7 +1026,7 @@ function Ss(t) {
1026
1026
  ]), [B, E] = X(C), T = k("focus"), V = Vn({
1027
1027
  ...t,
1028
1028
  onOpenChange: (ee) => {
1029
- t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), A.setFocused(ee), ee || A.setFocusedKey(null);
1029
+ t.onOpenChange && t.onOpenChange(ee, ee ? T.current : void 0), _.setFocused(ee), ee || _.setFocusedKey(null);
1030
1030
  },
1031
1031
  isOpen: void 0,
1032
1032
  defaultOpen: void 0
@@ -1055,7 +1055,7 @@ function Ss(t) {
1055
1055
  ]), [z, j] = X(b), H = () => {
1056
1056
  var ee, ce;
1057
1057
  let ve = (ce = (ee = g.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1058
- j(ve), _(ve);
1058
+ j(ve), A(ve);
1059
1059
  };
1060
1060
  var Y, U;
1061
1061
  let L = k((U = (Y = t.selectedKey) !== null && Y !== void 0 ? Y : t.defaultSelectedKey) !== null && U !== void 0 ? U : null);
@@ -1063,10 +1063,10 @@ function Ss(t) {
1063
1063
  let Z = k((I = (n = g.getItem(w)) === null || n === void 0 ? void 0 : n.textValue) !== null && I !== void 0 ? I : "");
1064
1064
  W(() => {
1065
1065
  var ee;
1066
- c && (C.size > 0 || i) && !V.isOpen && b !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && C.size === 0 && D(), w != null && w !== L.current && D(), b !== z && (A.setFocusedKey(null), a(!1), b === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== b && j(b);
1066
+ c && (C.size > 0 || i) && !V.isOpen && b !== z && o !== "manual" && F(null, "input"), !u && !i && V.isOpen && C.size === 0 && D(), w != null && w !== L.current && D(), b !== z && (_.setFocusedKey(null), a(!1), b === "" && (t.inputValue === void 0 || t.selectedKey === void 0) && S(null)), w !== L.current && (t.inputValue === void 0 || t.selectedKey === void 0) ? H() : z !== b && j(b);
1067
1067
  var ce;
1068
1068
  let ve = (ce = (ee = g.getItem(w)) === null || ee === void 0 ? void 0 : ee.textValue) !== null && ce !== void 0 ? ce : "";
1069
- !c && w != null && t.inputValue === void 0 && w === L.current && Z.current !== ve && (j(ve), _(ve)), L.current = w, Z.current = ve;
1069
+ !c && w != null && t.inputValue === void 0 && w === L.current && Z.current !== ve && (j(ve), A(ve)), L.current = w, Z.current = ve;
1070
1070
  });
1071
1071
  let G = On({
1072
1072
  ...t,
@@ -1100,7 +1100,7 @@ function Ss(t) {
1100
1100
  ye();
1101
1101
  };
1102
1102
  let mt = () => {
1103
- V.isOpen && A.focusedKey != null ? w === A.focusedKey ? ye() : S(A.focusedKey) : ke();
1103
+ V.isOpen && _.focusedKey != null ? w === _.focusedKey ? ye() : S(_.focusedKey) : ke();
1104
1104
  }, or = k(b), ls = (ee) => {
1105
1105
  ee ? (or.current = b, o === "focus" && F(null, "focus")) : (s && ke(), b !== or.current && G.commitValidation()), f(ee);
1106
1106
  }, ss = re(() => V.isOpen ? u ? P : C : B, [
@@ -1117,7 +1117,7 @@ function Ss(t) {
1117
1117
  toggle: ue,
1118
1118
  open: F,
1119
1119
  close: ke,
1120
- selectionManager: A,
1120
+ selectionManager: _,
1121
1121
  selectedKey: w,
1122
1122
  setSelectedKey: S,
1123
1123
  disabledKeys: x,
@@ -1126,7 +1126,7 @@ function Ss(t) {
1126
1126
  selectedItem: K,
1127
1127
  collection: ss,
1128
1128
  inputValue: b,
1129
- setInputValue: _,
1129
+ setInputValue: A,
1130
1130
  commit: mt,
1131
1131
  revert: J
1132
1132
  };
@@ -1555,7 +1555,7 @@ function dd(t) {
1555
1555
  abortController: d
1556
1556
  });
1557
1557
  var v;
1558
- let A = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1558
+ let _ = (v = f.filterText) !== null && v !== void 0 ? v : s.filterText;
1559
1559
  var h;
1560
1560
  let w = await p({
1561
1561
  items: s.items.slice(),
@@ -1563,22 +1563,22 @@ function dd(t) {
1563
1563
  sortDescriptor: (h = f.sortDescriptor) !== null && h !== void 0 ? h : s.sortDescriptor,
1564
1564
  signal: d.signal,
1565
1565
  cursor: f.type === "loadingMore" ? s.cursor : null,
1566
- filterText: A
1566
+ filterText: _
1567
1567
  });
1568
1568
  var g;
1569
- let S = (g = w.filterText) !== null && g !== void 0 ? g : A;
1569
+ let S = (g = w.filterText) !== null && g !== void 0 ? g : _;
1570
1570
  u({
1571
1571
  type: "success",
1572
1572
  ...w,
1573
1573
  abortController: d
1574
- }), S && S !== A && !d.signal.aborted && a({
1574
+ }), S && S !== _ && !d.signal.aborted && a({
1575
1575
  type: "filtering",
1576
1576
  filterText: S
1577
1577
  }, e);
1578
- } catch (A) {
1578
+ } catch (_) {
1579
1579
  u({
1580
1580
  type: "error",
1581
- error: A,
1581
+ error: _,
1582
1582
  abortController: d
1583
1583
  });
1584
1584
  }
@@ -2387,48 +2387,48 @@ function qt(t) {
2387
2387
  target: null,
2388
2388
  isOverTarget: !1,
2389
2389
  pointerType: null
2390
- }), { addGlobalListener: g, removeAllGlobalListeners: A } = yo(), w = xe((b, _) => {
2390
+ }), { addGlobalListener: g, removeAllGlobalListeners: _ } = yo(), w = xe((b, A) => {
2391
2391
  let P = h.current;
2392
2392
  if (l || P.didFirePressStart)
2393
2393
  return !1;
2394
2394
  let C = !0;
2395
2395
  if (P.isTriggeringEvent = !0, r) {
2396
- let B = new yt("pressstart", _, b);
2396
+ let B = new yt("pressstart", A, b);
2397
2397
  r(B), C = B.shouldStopPropagation;
2398
2398
  }
2399
2399
  return n && n(!0), P.isTriggeringEvent = !1, P.didFirePressStart = !0, v(!0), C;
2400
- }), S = xe((b, _, P = !0) => {
2400
+ }), S = xe((b, A, P = !0) => {
2401
2401
  let C = h.current;
2402
2402
  if (!C.didFirePressStart)
2403
2403
  return !1;
2404
2404
  C.ignoreClickAfterPress = !0, C.didFirePressStart = !1, C.isTriggeringEvent = !0;
2405
2405
  let B = !0;
2406
2406
  if (o) {
2407
- let E = new yt("pressend", _, b);
2407
+ let E = new yt("pressend", A, b);
2408
2408
  o(E), B = E.shouldStopPropagation;
2409
2409
  }
2410
2410
  if (n && n(!1), v(!1), e && P && !l) {
2411
- let E = new yt("press", _, b);
2411
+ let E = new yt("press", A, b);
2412
2412
  e(E), B && (B = E.shouldStopPropagation);
2413
2413
  }
2414
2414
  return C.isTriggeringEvent = !1, B;
2415
- }), K = xe((b, _) => {
2415
+ }), K = xe((b, A) => {
2416
2416
  let P = h.current;
2417
2417
  if (l)
2418
2418
  return !1;
2419
2419
  if (i) {
2420
2420
  P.isTriggeringEvent = !0;
2421
- let C = new yt("pressup", _, b);
2421
+ let C = new yt("pressup", A, b);
2422
2422
  return i(C), P.isTriggeringEvent = !1, C.shouldStopPropagation;
2423
2423
  }
2424
2424
  return !0;
2425
2425
  }), x = xe((b) => {
2426
- let _ = h.current;
2427
- _.isPressed && _.target && (_.isOverTarget && _.pointerType != null && S(Ke(_.target, b), _.pointerType, !1), _.isPressed = !1, _.isOverTarget = !1, _.activePointerId = null, _.pointerType = null, A(), c || gt(_.target));
2426
+ let A = h.current;
2427
+ A.isPressed && A.target && (A.isOverTarget && A.pointerType != null && S(Ke(A.target, b), A.pointerType, !1), A.isPressed = !1, A.isOverTarget = !1, A.activePointerId = null, A.pointerType = null, _(), c || gt(A.target));
2428
2428
  }), M = xe((b) => {
2429
2429
  a && x(b);
2430
2430
  }), R = re(() => {
2431
- let b = h.current, _ = {
2431
+ let b = h.current, A = {
2432
2432
  onKeyDown(C) {
2433
2433
  if (on(C.nativeEvent, C.currentTarget) && C.currentTarget.contains(C.target)) {
2434
2434
  var B;
@@ -2458,7 +2458,7 @@ function qt(t) {
2458
2458
  var E;
2459
2459
  xr(C.target, C.key) && C.preventDefault();
2460
2460
  let q = C.target, V = S(Ke(b.target, C), "keyboard", b.target.contains(q));
2461
- A(), V && C.stopPropagation(), C.key !== "Enter" && Hn(b.target) && b.target.contains(q) && !C[$r] && (C[$r] = !0, Re(b.target, C, !1)), b.isPressed = !1, (E = b.metaKeyEvents) === null || E === void 0 || E.delete(C.key);
2461
+ _(), V && C.stopPropagation(), C.key !== "Enter" && Hn(b.target) && b.target.contains(q) && !C[$r] && (C[$r] = !0, Re(b.target, C, !1)), b.isPressed = !1, (E = b.metaKeyEvents) === null || E === void 0 || E.delete(C.key);
2462
2462
  } else if (C.key === "Meta" && (!((B = b.metaKeyEvents) === null || B === void 0) && B.size)) {
2463
2463
  var T;
2464
2464
  let q = b.metaKeyEvents;
@@ -2468,7 +2468,7 @@ function qt(t) {
2468
2468
  }
2469
2469
  };
2470
2470
  if (typeof PointerEvent < "u") {
2471
- _.onPointerDown = (T) => {
2471
+ A.onPointerDown = (T) => {
2472
2472
  if (T.button !== 0 || !T.currentTarget.contains(T.target))
2473
2473
  return;
2474
2474
  if (hu(T.nativeEvent)) {
@@ -2478,23 +2478,23 @@ function qt(t) {
2478
2478
  ln(T.currentTarget) && T.preventDefault(), b.pointerType = T.pointerType;
2479
2479
  let q = !0;
2480
2480
  b.isPressed || (b.isPressed = !0, b.isOverTarget = !0, b.activePointerId = T.pointerId, b.target = T.currentTarget, !l && !u && Fe(T.currentTarget), c || gr(b.target), q = w(T, b.pointerType), g(pe(T.currentTarget), "pointermove", C, !1), g(pe(T.currentTarget), "pointerup", B, !1), g(pe(T.currentTarget), "pointercancel", E, !1)), q && T.stopPropagation();
2481
- }, _.onMouseDown = (T) => {
2481
+ }, A.onMouseDown = (T) => {
2482
2482
  T.currentTarget.contains(T.target) && T.button === 0 && (ln(T.currentTarget) && T.preventDefault(), T.stopPropagation());
2483
- }, _.onPointerUp = (T) => {
2483
+ }, A.onPointerUp = (T) => {
2484
2484
  !T.currentTarget.contains(T.target) || b.pointerType === "virtual" || T.button === 0 && Ue(T, T.currentTarget) && K(T, b.pointerType || T.pointerType);
2485
2485
  };
2486
2486
  let C = (T) => {
2487
2487
  T.pointerId === b.activePointerId && (b.target && Ue(T, b.target) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, w(Ke(b.target, T), b.pointerType)) : b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, S(Ke(b.target, T), b.pointerType, !1), M(T)));
2488
2488
  }, B = (T) => {
2489
- T.pointerId === b.activePointerId && b.isPressed && T.button === 0 && b.target && (Ue(T, b.target) && b.pointerType != null ? S(Ke(b.target, T), b.pointerType) : b.isOverTarget && b.pointerType != null && S(Ke(b.target, T), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, A(), c || gt(b.target));
2489
+ T.pointerId === b.activePointerId && b.isPressed && T.button === 0 && b.target && (Ue(T, b.target) && b.pointerType != null ? S(Ke(b.target, T), b.pointerType) : b.isOverTarget && b.pointerType != null && S(Ke(b.target, T), b.pointerType, !1), b.isPressed = !1, b.isOverTarget = !1, b.activePointerId = null, b.pointerType = null, _(), c || gt(b.target));
2490
2490
  }, E = (T) => {
2491
2491
  x(T);
2492
2492
  };
2493
- _.onDragStart = (T) => {
2493
+ A.onDragStart = (T) => {
2494
2494
  T.currentTarget.contains(T.target) && x(T);
2495
2495
  };
2496
2496
  } else {
2497
- _.onMouseDown = (E) => {
2497
+ A.onMouseDown = (E) => {
2498
2498
  if (E.button !== 0 || !E.currentTarget.contains(E.target))
2499
2499
  return;
2500
2500
  if (ln(E.currentTarget) && E.preventDefault(), b.ignoreEmulatedMouseEvents) {
@@ -2502,36 +2502,36 @@ function qt(t) {
2502
2502
  return;
2503
2503
  }
2504
2504
  b.isPressed = !0, b.isOverTarget = !0, b.target = E.currentTarget, b.pointerType = Tn(E.nativeEvent) ? "virtual" : "mouse", !l && !u && Fe(E.currentTarget), w(E, b.pointerType) && E.stopPropagation(), g(pe(E.currentTarget), "mouseup", C, !1);
2505
- }, _.onMouseEnter = (E) => {
2505
+ }, A.onMouseEnter = (E) => {
2506
2506
  if (!E.currentTarget.contains(E.target))
2507
2507
  return;
2508
2508
  let T = !0;
2509
2509
  b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !0, T = w(E, b.pointerType)), T && E.stopPropagation();
2510
- }, _.onMouseLeave = (E) => {
2510
+ }, A.onMouseLeave = (E) => {
2511
2511
  if (!E.currentTarget.contains(E.target))
2512
2512
  return;
2513
2513
  let T = !0;
2514
2514
  b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, T = S(E, b.pointerType, !1), M(E)), T && E.stopPropagation();
2515
- }, _.onMouseUp = (E) => {
2515
+ }, A.onMouseUp = (E) => {
2516
2516
  E.currentTarget.contains(E.target) && !b.ignoreEmulatedMouseEvents && E.button === 0 && K(E, b.pointerType || "mouse");
2517
2517
  };
2518
2518
  let C = (E) => {
2519
2519
  if (E.button === 0) {
2520
- if (b.isPressed = !1, A(), b.ignoreEmulatedMouseEvents) {
2520
+ if (b.isPressed = !1, _(), b.ignoreEmulatedMouseEvents) {
2521
2521
  b.ignoreEmulatedMouseEvents = !1;
2522
2522
  return;
2523
2523
  }
2524
2524
  b.target && Ue(E, b.target) && b.pointerType != null ? S(Ke(b.target, E), b.pointerType) : b.target && b.isOverTarget && b.pointerType != null && S(Ke(b.target, E), b.pointerType, !1), b.isOverTarget = !1;
2525
2525
  }
2526
2526
  };
2527
- _.onTouchStart = (E) => {
2527
+ A.onTouchStart = (E) => {
2528
2528
  if (!E.currentTarget.contains(E.target))
2529
2529
  return;
2530
2530
  let T = Cu(E.nativeEvent);
2531
2531
  if (!T)
2532
2532
  return;
2533
2533
  b.activePointerId = T.identifier, b.ignoreEmulatedMouseEvents = !0, b.isOverTarget = !0, b.isPressed = !0, b.target = E.currentTarget, b.pointerType = "touch", !l && !u && Fe(E.currentTarget), c || gr(b.target), w(E, b.pointerType) && E.stopPropagation(), g(at(E.currentTarget), "scroll", B, !0);
2534
- }, _.onTouchMove = (E) => {
2534
+ }, A.onTouchMove = (E) => {
2535
2535
  if (!E.currentTarget.contains(E.target))
2536
2536
  return;
2537
2537
  if (!b.isPressed) {
@@ -2540,7 +2540,7 @@ function qt(t) {
2540
2540
  }
2541
2541
  let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2542
2542
  T && Ue(T, E.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, q = w(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, q = S(E, b.pointerType, !1), M(E)), q && E.stopPropagation();
2543
- }, _.onTouchEnd = (E) => {
2543
+ }, A.onTouchEnd = (E) => {
2544
2544
  if (!E.currentTarget.contains(E.target))
2545
2545
  return;
2546
2546
  if (!b.isPressed) {
@@ -2548,8 +2548,8 @@ function qt(t) {
2548
2548
  return;
2549
2549
  }
2550
2550
  let T = yr(E.nativeEvent, b.activePointerId), q = !0;
2551
- T && Ue(T, E.currentTarget) && b.pointerType != null ? (K(E, b.pointerType), q = S(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (q = S(E, b.pointerType, !1)), q && E.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && gt(b.target), A();
2552
- }, _.onTouchCancel = (E) => {
2551
+ T && Ue(T, E.currentTarget) && b.pointerType != null ? (K(E, b.pointerType), q = S(E, b.pointerType)) : b.isOverTarget && b.pointerType != null && (q = S(E, b.pointerType, !1)), q && E.stopPropagation(), b.isPressed = !1, b.activePointerId = null, b.isOverTarget = !1, b.ignoreEmulatedMouseEvents = !0, b.target && !c && gt(b.target), _();
2552
+ }, A.onTouchCancel = (E) => {
2553
2553
  E.currentTarget.contains(E.target) && (E.stopPropagation(), b.isPressed && x(E));
2554
2554
  };
2555
2555
  let B = (E) => {
@@ -2561,16 +2561,16 @@ function qt(t) {
2561
2561
  altKey: !1
2562
2562
  });
2563
2563
  };
2564
- _.onDragStart = (E) => {
2564
+ A.onDragStart = (E) => {
2565
2565
  E.currentTarget.contains(E.target) && x(E);
2566
2566
  };
2567
2567
  }
2568
- return _;
2568
+ return A;
2569
2569
  }, [
2570
2570
  g,
2571
2571
  l,
2572
2572
  u,
2573
- A,
2573
+ _,
2574
2574
  c,
2575
2575
  x,
2576
2576
  M,
@@ -3734,7 +3734,7 @@ function No(t, e) {
3734
3734
  "aria-disabled": !r || n === "input" ? void 0 : r,
3735
3735
  rel: n === "a" ? v : void 0
3736
3736
  };
3737
- let { pressProps: A, isPressed: w } = qt({
3737
+ let { pressProps: _, isPressed: w } = qt({
3738
3738
  onPressStart: i,
3739
3739
  onPressEnd: l,
3740
3740
  onPressChange: u,
@@ -3745,7 +3745,7 @@ function No(t, e) {
3745
3745
  ref: e
3746
3746
  }), { focusableProps: S } = Lo(t, e);
3747
3747
  c && (S.tabIndex = r ? -1 : S.tabIndex);
3748
- let K = se(S, A, ze(t, {
3748
+ let K = se(S, _, ze(t, {
3749
3749
  labelable: !0
3750
3750
  }));
3751
3751
  return {
@@ -4852,8 +4852,8 @@ function Lr(t) {
4852
4852
  function dn(t, e, n, r, o, i, l, s, u, a) {
4853
4853
  let { placement: c, crossPlacement: f, axis: p, crossAxis: d, size: v, crossSize: h } = r, g = {};
4854
4854
  g[d] = t[d], f === "center" ? g[d] += (t[h] - n[h]) / 2 : f !== d && (g[d] += t[h] - n[h]), g[d] += i;
4855
- const A = t[d] - n[h] + u + a, w = t[d] + t[h] - u - a;
4856
- if (g[d] = Cn(g[d], A, w), c === p) {
4855
+ const _ = t[d] - n[h] + u + a, w = t[d] + t[h] - u - a;
4856
+ if (g[d] = Cn(g[d], _, w), c === p) {
4857
4857
  const S = s ? l[v] : e[va[v]];
4858
4858
  g[It[p]] = Math.floor(S - t[p] + o);
4859
4859
  } else
@@ -4868,15 +4868,15 @@ function Mr(t, e, n, r, o, i) {
4868
4868
  return l === s ? Math.max(0, n[s] - t[s] - t.scroll[s] + e[s] - r[s] - r[It[s]] - o) : Math.max(0, t[u] + t[s] + t.scroll[s] - e[s] - n[s] - n[u] - r[s] - r[It[s]] - o);
4869
4869
  }
4870
4870
  function ya(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, h) {
4871
- let g = Lr(t), { size: A, crossAxis: w, crossSize: S, placement: K, crossPlacement: x } = g, M = dn(e, s, n, g, c, f, a, p, v, h), R = c, b = Mr(s, a, e, o, i + c, g);
4872
- if (l && r[A] > b) {
4871
+ let g = Lr(t), { size: _, crossAxis: w, crossSize: S, placement: K, crossPlacement: x } = g, M = dn(e, s, n, g, c, f, a, p, v, h), R = c, b = Mr(s, a, e, o, i + c, g);
4872
+ if (l && r[_] > b) {
4873
4873
  let ue = Lr(`${It[K]} ${x}`), ae = dn(e, s, n, ue, c, f, a, p, v, h);
4874
4874
  Mr(s, a, e, o, i + c, ue) > b && (g = ue, M = ae, R = c);
4875
4875
  }
4876
- let _ = Fr(w, M[w], n[S], s, u, i);
4877
- M[w] += _;
4876
+ let A = Fr(w, M[w], n[S], s, u, i);
4877
+ M[w] += A;
4878
4878
  let P = $a(M, s, a, e, o, i);
4879
- d && d < P && (P = d), n.height = Math.min(n.height, P), M = dn(e, s, n, g, R, f, a, p, v, h), _ = Fr(w, M[w], n[S], s, u, i), M[w] += _;
4879
+ d && d < P && (P = d), n.height = Math.min(n.height, P), M = dn(e, s, n, g, R, f, a, p, v, h), A = Fr(w, M[w], n[S], s, u, i), M[w] += A;
4880
4880
  let C = {}, B = e[w] + 0.5 * e[S] - n[w];
4881
4881
  const E = v / 2 + h, T = n[S] - v / 2 - h, q = e[w] - n[w] + v / 2, V = e[w] + e[S] - n[w] - v / 2, F = Cn(B, q, V);
4882
4882
  return C[w] = Cn(F, E, T), {
@@ -4890,15 +4890,15 @@ function ya(t, e, n, r, o, i, l, s, u, a, c, f, p, d, v, h) {
4890
4890
  function xa(t) {
4891
4891
  let { placement: e, targetNode: n, overlayNode: r, scrollNode: o, padding: i, shouldFlip: l, boundaryElement: s, offset: u, crossOffset: a, maxHeight: c, arrowSize: f = 0, arrowBoundaryOffset: p = 0 } = t, d = r instanceof HTMLElement ? Ca(r) : document.documentElement, v = d === document.documentElement;
4892
4892
  const h = window.getComputedStyle(d).position;
4893
- let g = !!h && h !== "static", A = v ? Je(n) : Nr(n, d);
4893
+ let g = !!h && h !== "static", _ = v ? Je(n) : Nr(n, d);
4894
4894
  if (!v) {
4895
- let { marginTop: b, marginLeft: _ } = window.getComputedStyle(n);
4896
- A.top += parseInt(b, 10) || 0, A.left += parseInt(_, 10) || 0;
4895
+ let { marginTop: b, marginLeft: A } = window.getComputedStyle(n);
4896
+ _.top += parseInt(b, 10) || 0, _.left += parseInt(A, 10) || 0;
4897
4897
  }
4898
4898
  let w = Je(r), S = ga(r);
4899
4899
  w.width += S.left + S.right, w.height += S.top + S.bottom;
4900
4900
  let K = ha(o), x = Dr(s), M = Dr(d), R = s.tagName === "BODY" ? Je(d) : Nr(d, s);
4901
- return ya(e, A, w, K, S, i, l, x, M, R, u, a, g, c, f, p);
4901
+ return ya(e, _, w, K, S, i, l, x, M, R, u, a, g, c, f, p);
4902
4902
  }
4903
4903
  function Je(t) {
4904
4904
  let { top: e, left: n, width: r, height: o } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: l, clientTop: s, clientLeft: u } = document.documentElement;
@@ -4963,7 +4963,7 @@ function Ea(t) {
4963
4963
  }
4964
4964
  let Ee = typeof document < "u" && window.visualViewport;
4965
4965
  function Pa(t) {
4966
- let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: d = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: g = 0 } = t, [A, w] = X({
4966
+ let { direction: e } = Zt(), { arrowSize: n = 0, targetRef: r, overlayRef: o, scrollRef: i = o, placement: l = "bottom", containerPadding: s = 12, shouldFlip: u = !0, boundaryElement: a = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: d = !0, onClose: v, maxHeight: h, arrowBoundaryOffset: g = 0 } = t, [_, w] = X({
4967
4967
  position: {},
4968
4968
  arrowOffsetLeft: void 0,
4969
4969
  arrowOffsetTop: void 0,
@@ -5036,17 +5036,17 @@ function Pa(t) {
5036
5036
  style: {
5037
5037
  position: "absolute",
5038
5038
  zIndex: 1e5,
5039
- ...A.position,
5040
- maxHeight: A.maxHeight
5039
+ ..._.position,
5040
+ maxHeight: _.maxHeight
5041
5041
  }
5042
5042
  },
5043
- placement: A.placement,
5043
+ placement: _.placement,
5044
5044
  arrowProps: {
5045
5045
  "aria-hidden": "true",
5046
5046
  role: "presentation",
5047
5047
  style: {
5048
- left: A.arrowOffsetLeft,
5049
- top: A.arrowOffsetTop
5048
+ left: _.arrowOffsetLeft,
5049
+ top: _.arrowOffsetTop
5050
5050
  }
5051
5051
  },
5052
5052
  updatePosition: K
@@ -5419,7 +5419,7 @@ function Ia(t) {
5419
5419
  return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
5420
5420
  }
5421
5421
  function il(t) {
5422
- let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: h } = Zt(), g = Gt(), A = (P) => {
5422
+ let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, selectOnFocus: u = e.selectionBehavior === "replace", disallowTypeAhead: a = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: d = r, linkBehavior: v = "action" } = t, { direction: h } = Zt(), g = Gt(), _ = (P) => {
5423
5423
  if (P.altKey && P.key === "Tab" && P.preventDefault(), !r.current.contains(P.target))
5424
5424
  return;
5425
5425
  const C = (y, D) => {
@@ -5588,7 +5588,7 @@ function il(t) {
5588
5588
  r
5589
5589
  ]);
5590
5590
  let R = {
5591
- onKeyDown: A,
5591
+ onKeyDown: _,
5592
5592
  onFocus: S,
5593
5593
  onBlur: K,
5594
5594
  onMouseDown(P) {
@@ -5599,11 +5599,11 @@ function il(t) {
5599
5599
  selectionManager: e
5600
5600
  });
5601
5601
  a || (R = se(b, R));
5602
- let _;
5603
- return c || (_ = e.focusedKey == null ? 0 : -1), {
5602
+ let A;
5603
+ return c || (A = e.focusedKey == null ? 0 : -1), {
5604
5604
  collectionProps: {
5605
5605
  ...R,
5606
- tabIndex: _
5606
+ tabIndex: A
5607
5607
  }
5608
5608
  };
5609
5609
  }
@@ -5643,27 +5643,27 @@ function ll(t) {
5643
5643
  } : s && (d.onMouseDown = (F) => {
5644
5644
  F.preventDefault();
5645
5645
  });
5646
- let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", g = !s && e.canSelectItem(n) && !v, A = (u || h) && !s, w = A && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), S = A && g && e.selectionBehavior === "replace", K = w || S, x = k(null), M = K && g, R = k(!1), b = k(!1), _ = (F) => {
5646
+ let v = e.isLink(n) && c === "override", h = e.isLink(n) && c !== "selection" && c !== "none", g = !s && e.canSelectItem(n) && !v, _ = (u || h) && !s, w = _ && (e.selectionBehavior === "replace" ? !g : !g || e.isEmpty), S = _ && g && e.selectionBehavior === "replace", K = w || S, x = k(null), M = K && g, R = k(!1), b = k(!1), A = (F) => {
5647
5647
  u && u(), h && f.open(r.current, F);
5648
5648
  }, P = {};
5649
5649
  o ? (P.onPressStart = (F) => {
5650
5650
  x.current = F.pointerType, R.current = M, F.pointerType === "keyboard" && (!K || Vr()) && p(F);
5651
5651
  }, a ? (P.onPressUp = w ? null : (F) => {
5652
5652
  F.pointerType !== "keyboard" && g && p(F);
5653
- }, P.onPress = w ? _ : null) : P.onPress = (F) => {
5653
+ }, P.onPress = w ? A : null) : P.onPress = (F) => {
5654
5654
  if (w || S && F.pointerType !== "mouse") {
5655
5655
  if (F.pointerType === "keyboard" && !Rr())
5656
5656
  return;
5657
- _(F);
5657
+ A(F);
5658
5658
  } else
5659
5659
  F.pointerType !== "keyboard" && g && p(F);
5660
5660
  }) : (P.onPressStart = (F) => {
5661
- x.current = F.pointerType, R.current = M, b.current = w, g && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!A || Vr())) && p(F);
5661
+ x.current = F.pointerType, R.current = M, b.current = w, g && (F.pointerType === "mouse" && !w || F.pointerType === "keyboard" && (!_ || Vr())) && p(F);
5662
5662
  }, P.onPress = (F) => {
5663
- (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && b.current) && (K ? _(F) : g && p(F));
5663
+ (F.pointerType === "touch" || F.pointerType === "pen" || F.pointerType === "virtual" || F.pointerType === "keyboard" && K && Rr() || F.pointerType === "mouse" && b.current) && (K ? A(F) : g && p(F));
5664
5664
  }), d["data-key"] = n, P.preventFocusOnPress = i;
5665
5665
  let { pressProps: C, isPressed: B } = qt(P), E = S ? (F) => {
5666
- x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), _(F));
5666
+ x.current === "mouse" && (F.stopPropagation(), F.preventDefault(), A(F));
5667
5667
  } : void 0, { longPressProps: T } = Ko({
5668
5668
  isDisabled: !M,
5669
5669
  onLongPress(F) {
@@ -5910,24 +5910,24 @@ function Ra(t, e, n) {
5910
5910
  var v;
5911
5911
  let h = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : i == null ? void 0 : i.shouldUseVirtualFocus;
5912
5912
  var g;
5913
- let A = (g = t.isVirtualized) !== null && g !== void 0 ? g : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5913
+ let _ = (g = t.isVirtualized) !== null && g !== void 0 ? g : i == null ? void 0 : i.isVirtualized, w = Oe(), S = Oe(), K = {
5914
5914
  role: "option",
5915
5915
  "aria-disabled": s || void 0,
5916
5916
  "aria-selected": e.selectionManager.selectionMode !== "none" ? a : void 0
5917
5917
  };
5918
5918
  Ie() && ho() || (K["aria-label"] = t["aria-label"], K["aria-labelledby"] = w, K["aria-describedby"] = S);
5919
5919
  let x = e.collection.getItem(o);
5920
- if (A) {
5920
+ if (_) {
5921
5921
  let E = Number(x == null ? void 0 : x.index);
5922
5922
  K["aria-posinset"] = Number.isNaN(E) ? void 0 : E + 1, K["aria-setsize"] = Rn(e.collection);
5923
5923
  }
5924
- let { itemProps: M, isPressed: R, isFocused: b, hasAction: _, allowsSelection: P } = ll({
5924
+ let { itemProps: M, isPressed: R, isFocused: b, hasAction: A, allowsSelection: P } = ll({
5925
5925
  selectionManager: e.selectionManager,
5926
5926
  key: o,
5927
5927
  ref: n,
5928
5928
  shouldSelectOnPressUp: f,
5929
5929
  allowsDifferentPressOrigin: f && d,
5930
- isVirtualized: A,
5930
+ isVirtualized: _,
5931
5931
  shouldUseVirtualFocus: h,
5932
5932
  isDisabled: s,
5933
5933
  onAction: i != null && i.onAction ? () => {
@@ -5961,7 +5961,7 @@ function Ra(t, e, n) {
5961
5961
  isDisabled: s,
5962
5962
  isPressed: R,
5963
5963
  allowsSelection: P,
5964
- hasAction: _
5964
+ hasAction: A
5965
5965
  };
5966
5966
  }
5967
5967
  function Va(t) {
@@ -6244,11 +6244,11 @@ function ja(t, e, n) {
6244
6244
  }
6245
6245
  function Ha(t, e, n) {
6246
6246
  var r;
6247
- let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: p, onHoverStart: d, onHoverChange: v, onHoverEnd: h, onKeyDown: g, onKeyUp: A, onFocus: w, onFocusChange: S, onBlur: K } = t, x = !!s;
6247
+ let { key: o, closeOnSelect: i, isVirtualized: l, "aria-haspopup": s, onPressStart: u, onPressUp: a, onPress: c, onPressChange: f, onPressEnd: p, onHoverStart: d, onHoverChange: v, onHoverEnd: h, onKeyDown: g, onKeyUp: _, onFocus: w, onFocusChange: S, onBlur: K } = t, x = !!s;
6248
6248
  var M;
6249
6249
  let R = (M = t.isDisabled) !== null && M !== void 0 ? M : e.disabledKeys.has(o);
6250
6250
  var b;
6251
- let _ = (b = t.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(o), P = Hl.get(e), C = t.onClose || P.onClose, B = x ? () => {
6251
+ let A = (b = t.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(o), P = Hl.get(e), C = t.onClose || P.onClose, B = x ? () => {
6252
6252
  } : t.onAction || P.onAction, E = Gt(), T = (J) => {
6253
6253
  B && B(o), J.target instanceof HTMLAnchorElement && E.open(J.target, J);
6254
6254
  }, q = "menuitem";
@@ -6266,7 +6266,7 @@ function Ha(t, e, n) {
6266
6266
  "aria-haspopup": s,
6267
6267
  "aria-expanded": t["aria-expanded"]
6268
6268
  };
6269
- e.selectionManager.selectionMode !== "none" && !x && (ae["aria-checked"] = _);
6269
+ e.selectionManager.selectionMode !== "none" && !x && (ae["aria-checked"] = A);
6270
6270
  let y = e.collection.getItem(o);
6271
6271
  l && (ae["aria-posinset"] = y == null ? void 0 : y.index, ae["aria-setsize"] = Rn(e.collection));
6272
6272
  let D = (J) => {
@@ -6316,7 +6316,7 @@ function Ha(t, e, n) {
6316
6316
  break;
6317
6317
  }
6318
6318
  },
6319
- onKeyUp: A
6319
+ onKeyUp: _
6320
6320
  }), { focusProps: Z } = Un({
6321
6321
  onBlur: K,
6322
6322
  onFocus: w,
@@ -6342,7 +6342,7 @@ function Ha(t, e, n) {
6342
6342
  id: ue
6343
6343
  },
6344
6344
  isFocused: H,
6345
- isSelected: _,
6345
+ isSelected: A,
6346
6346
  isPressed: U,
6347
6347
  isDisabled: R
6348
6348
  };
@@ -6371,7 +6371,7 @@ function Wa(t, e) {
6371
6371
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: o = !1, isReadOnly: i = !1, type: l = "text", validationBehavior: s = "aria" } = t, [u, a] = tt(t.value, t.defaultValue || "", t.onChange), { focusableProps: c } = Lo(t, e), f = On({
6372
6372
  ...t,
6373
6373
  value: u
6374
- }), { isInvalid: p, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: A, errorMessageProps: w } = Oo({
6374
+ }), { isInvalid: p, validationErrors: d, validationDetails: v } = f.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: w } = Oo({
6375
6375
  ...t,
6376
6376
  isInvalid: p,
6377
6377
  errorMessage: t.errorMessage || d
@@ -6431,7 +6431,7 @@ function Wa(t, e) {
6431
6431
  ...c,
6432
6432
  ...g
6433
6433
  }),
6434
- descriptionProps: A,
6434
+ descriptionProps: _,
6435
6435
  errorMessageProps: w,
6436
6436
  isInvalid: p,
6437
6437
  validationErrors: d,
@@ -6527,16 +6527,16 @@ function qa(t, e) {
6527
6527
  e.selectionManager.setFocusedKey(null);
6528
6528
  break;
6529
6529
  }
6530
- }, A = (L) => {
6530
+ }, _ = (L) => {
6531
6531
  var I;
6532
6532
  L.relatedTarget === (n == null ? void 0 : n.current) || !((I = r.current) === null || I === void 0) && I.contains(L.relatedTarget) || (t.onBlur && t.onBlur(L), e.setFocused(!1));
6533
6533
  }, w = (L) => {
6534
6534
  e.isFocused || (t.onFocus && t.onFocus(L), e.setFocused(!0));
6535
- }, { isInvalid: S, validationErrors: K, validationDetails: x } = e.displayValidation, { labelProps: M, inputProps: R, descriptionProps: b, errorMessageProps: _ } = Wa({
6535
+ }, { isInvalid: S, validationErrors: K, validationDetails: x } = e.displayValidation, { labelProps: M, inputProps: R, descriptionProps: b, errorMessageProps: A } = Wa({
6536
6536
  ...t,
6537
6537
  onChange: e.setInputValue,
6538
6538
  onKeyDown: u ? t.onKeyDown : Qe(e.isOpen && v.onKeyDown, g, t.onKeyDown),
6539
- onBlur: A,
6539
+ onBlur: _,
6540
6540
  value: e.inputValue,
6541
6541
  onFocus: w,
6542
6542
  autoComplete: "off",
@@ -6644,7 +6644,7 @@ function qa(t, e) {
6644
6644
  linkBehavior: "selection"
6645
6645
  }),
6646
6646
  descriptionProps: b,
6647
- errorMessageProps: _,
6647
+ errorMessageProps: A,
6648
6648
  isInvalid: S,
6649
6649
  validationErrors: K,
6650
6650
  validationDetails: x
@@ -6667,14 +6667,14 @@ function Ya(t, e, n) {
6667
6667
  switch (b.key) {
6668
6668
  case "ArrowLeft": {
6669
6669
  b.preventDefault();
6670
- let _ = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6671
- _ && e.setSelectedKey(_);
6670
+ let A = e.selectedKey != null ? a.getKeyAbove(e.selectedKey) : a.getFirstKey();
6671
+ A && e.setSelectedKey(A);
6672
6672
  break;
6673
6673
  }
6674
6674
  case "ArrowRight": {
6675
6675
  b.preventDefault();
6676
- let _ = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6677
- _ && e.setSelectedKey(_);
6676
+ let A = e.selectedKey != null ? a.getKeyBelow(e.selectedKey) : a.getFirstKey();
6677
+ A && e.setSelectedKey(A);
6678
6678
  break;
6679
6679
  }
6680
6680
  }
@@ -6684,7 +6684,7 @@ function Ya(t, e, n) {
6684
6684
  onTypeSelect(b) {
6685
6685
  e.setSelectedKey(b);
6686
6686
  }
6687
- }), { isInvalid: v, validationErrors: h, validationDetails: g } = e.displayValidation, { labelProps: A, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6687
+ }), { isInvalid: v, validationErrors: h, validationDetails: g } = e.displayValidation, { labelProps: _, fieldProps: w, descriptionProps: S, errorMessageProps: K } = Oo({
6688
6688
  ...t,
6689
6689
  labelElementType: "span",
6690
6690
  isInvalid: v,
@@ -6701,7 +6701,7 @@ function Ya(t, e, n) {
6701
6701
  validationBehavior: s
6702
6702
  }), {
6703
6703
  labelProps: {
6704
- ...A,
6704
+ ..._,
6705
6705
  onClick: () => {
6706
6706
  t.isDisabled || (n.current.focus(), To("keyboard"));
6707
6707
  }
@@ -6878,11 +6878,16 @@ const Ja = "_focused_1af8e_1", Qa = "_listbox_1af8e_10", ec = "_content_1af8e_89
6878
6878
  ), [u, a] = X(!1);
6879
6879
  W(() => {
6880
6880
  const p = async () => {
6881
- var g;
6882
- (g = window == null ? void 0 : window.dsfr) != null && g.isStarted || (window.dsfr = {
6883
- verbose: i,
6884
- mode: "manual"
6885
- }, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), window.dsfr.start(), a(!0));
6881
+ var g, _, w;
6882
+ if (typeof window !== void 0 || typeof window.dsfr < "u") {
6883
+ if ((g = window == null ? void 0 : window.dsfr) != null && g.isStarted)
6884
+ return;
6885
+ window.dsfr = {
6886
+ verbose: i,
6887
+ mode: "manual"
6888
+ }, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), (w = (_ = window.dsfr).start) == null || w.call(_), a(!0);
6889
+ } else
6890
+ console.error("dsfr.start is not a function");
6886
6891
  }, d = window.matchMedia(
6887
6892
  "(prefers-color-scheme: dark)"
6888
6893
  ), v = d != null && d.matches ? "dark" : "light", h = window.localStorage.getItem("theme");
@@ -7118,14 +7123,23 @@ function cc(t) {
7118
7123
  }
7119
7124
  const pd = Vt;
7120
7125
  const dc = be, fc = dc(
7121
- ({ as: t, className: e, noIcon: n, color: r = "blue-france", size: o, icon: i, variant: l = "primary", ...s }, u) => {
7126
+ ({
7127
+ as: t,
7128
+ className: e,
7129
+ noIcon: n,
7130
+ color: r = "blue-france",
7131
+ size: o,
7132
+ icon: i,
7133
+ variant: l = "primary",
7134
+ ...s
7135
+ }, u) => {
7122
7136
  const a = t === "a" ? he : t || "p", c = $(
7123
7137
  "fr-badge",
7124
7138
  {
7125
7139
  [`fr-badge--${l}`]: l,
7126
7140
  [`fr-badge--${r}`]: r,
7127
7141
  [`fr-icon-${i}`]: i,
7128
- // Next line is a hack to oblige dsfr to display the icon because otherwise
7142
+ // Next line is a hack to oblige dsfr to display the icon because otherwise
7129
7143
  // "content: none" is applied on .fr-badge[class^="fr-icon-"]
7130
7144
  "fr-badge--icon-": i,
7131
7145
  "fr-badge--no-icon": n,
@@ -7444,8 +7458,8 @@ const gd = be(({
7444
7458
  const r = t.split(e).reduce((o, i, l) => l > 0 ? [...o, /* @__PURE__ */ m("br", {}, `br-${l}`), /* @__PURE__ */ m(xn, { children: i }, l)] : [/* @__PURE__ */ m(xn, { children: i }, l)], []);
7445
7459
  return /* @__PURE__ */ m("div", { className: "fr-header__logo", children: /* @__PURE__ */ m("p", { className: "fr-logo", children: r }) });
7446
7460
  }, xd = ({ children: t, className: e, css: n = {}, ...r }) => {
7447
- var h, g, A, w;
7448
- const o = ne(), i = ne(), l = ne(), s = ne(), u = (h = de(t, vc)) == null ? void 0 : h[0], a = (g = de(t, hc)) == null ? void 0 : g[0], c = (A = et(t, [$c, cc])) == null ? void 0 : A[0], f = (w = de(t, yc)) == null ? void 0 : w[0], p = de(t, xc), d = de(t, gc), v = $e(c) ? c.props.title : "Rechercher";
7461
+ var h, g, _, w;
7462
+ const o = ne(), i = ne(), l = ne(), s = ne(), u = (h = de(t, vc)) == null ? void 0 : h[0], a = (g = de(t, hc)) == null ? void 0 : g[0], c = (_ = et(t, [$c, cc])) == null ? void 0 : _[0], f = (w = de(t, yc)) == null ? void 0 : w[0], p = de(t, xc), d = de(t, gc), v = $e(c) ? c.props.title : "Rechercher";
7449
7463
  return /* @__PURE__ */ O("header", { role: "banner", className: $("fr-header", e), ...r, children: [
7450
7464
  /* @__PURE__ */ m("div", { className: $("fr-header__body", n["fr-header__body"]), children: /* @__PURE__ */ m("div", { className: "fr-container", children: /* @__PURE__ */ O("div", { className: $("fr-header__body-row", n["fr-header__body-row"]), children: [
7451
7465
  /* @__PURE__ */ O("div", { className: $("fr-header__brand fr-enlarge-link", n["fr-header__brand"]), children: [
@@ -7491,7 +7505,7 @@ const gd = be(({
7491
7505
  isOptional: d,
7492
7506
  ...v
7493
7507
  }, h) => {
7494
- const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7508
+ const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: _ } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7495
7509
  "fr-input",
7496
7510
  {
7497
7511
  "fr-input--error": M ? u === "error" : w === "error",
@@ -7506,7 +7520,7 @@ const gd = be(({
7506
7520
  "fr-input-group--disabled": f
7507
7521
  },
7508
7522
  t
7509
- ), _ = (C) => {
7523
+ ), A = (C) => {
7510
7524
  const B = x.current;
7511
7525
  !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7512
7526
  }, P = (C) => {
@@ -7517,7 +7531,7 @@ const gd = be(({
7517
7531
  /* @__PURE__ */ O("label", { className: $("fr-label", e["fr-label"]), htmlFor: K, children: [
7518
7532
  l,
7519
7533
  p && !d && g,
7520
- d && !p && A,
7534
+ d && !p && _,
7521
7535
  r && /* @__PURE__ */ m("span", { className: $("fr-hint-text", e["fr-hint-text"]), children: r })
7522
7536
  ] }),
7523
7537
  /* @__PURE__ */ m(
@@ -7533,7 +7547,7 @@ const gd = be(({
7533
7547
  {
7534
7548
  id: K,
7535
7549
  className: R,
7536
- onBlur: _,
7550
+ onBlur: A,
7537
7551
  onChange: P,
7538
7552
  ref: (C) => pt(C, [h, x]),
7539
7553
  "aria-describedby": u ? `${K}-message` : void 0,
@@ -7563,7 +7577,7 @@ const gd = be(({
7563
7577
  isOptional: d,
7564
7578
  ...v
7565
7579
  }, h) => {
7566
- const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: A } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7580
+ const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: _ } = bt(), [w, S] = X(""), K = i || ne(), x = k(null), M = s !== void 0 || u !== void 0, R = $(
7567
7581
  "fr-input",
7568
7582
  {
7569
7583
  "fr-input--error": M ? u === "error" : w === "error",
@@ -7578,7 +7592,7 @@ const gd = be(({
7578
7592
  "fr-input-group--disabled": f
7579
7593
  },
7580
7594
  t
7581
- ), _ = (C) => {
7595
+ ), A = (C) => {
7582
7596
  const B = x.current;
7583
7597
  !n && !M && B && S(B.checkValidity() ? "valid" : "error"), a && a(C);
7584
7598
  }, P = (C) => {
@@ -7589,7 +7603,7 @@ const gd = be(({
7589
7603
  /* @__PURE__ */ O("label", { className: $("fr-label", e["fr-label"]), htmlFor: K, children: [
7590
7604
  l,
7591
7605
  p && !d && g,
7592
- d && !p && A,
7606
+ d && !p && _,
7593
7607
  r && /* @__PURE__ */ m("span", { className: $("fr-hint-text", e["fr-hint-text"]), children: r })
7594
7608
  ] }),
7595
7609
  /* @__PURE__ */ m(
@@ -7605,7 +7619,7 @@ const gd = be(({
7605
7619
  {
7606
7620
  id: K,
7607
7621
  className: R,
7608
- onBlur: _,
7622
+ onBlur: A,
7609
7623
  onChange: P,
7610
7624
  ref: (C) => pt(C, [h, x]),
7611
7625
  "aria-describedby": u ? `${K}-message` : void 0,
@@ -7860,22 +7874,22 @@ const Lc = ({
7860
7874
  ...s
7861
7875
  }) => {
7862
7876
  var M, R, b;
7863
- const [u, a] = X(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], p = $("fr-modal", o), d = k(null), v = (M = de(t, Zl)) == null ? void 0 : M[0], h = de(t, Jl), g = (R = de(t, Ql)) == null ? void 0 : R[0], A = (b = de(t, Bt)) == null ? void 0 : b[0], w = r || ne();
7877
+ const [u, a] = X(null), f = { sm: 4, lg: 8, md: 6, xl: 10 }[n], p = $("fr-modal", o), d = k(null), v = (M = de(t, Zl)) == null ? void 0 : M[0], h = de(t, Jl), g = (R = de(t, Ql)) == null ? void 0 : R[0], _ = (b = de(t, Bt)) == null ? void 0 : b[0], w = r || ne();
7864
7878
  W(() => {
7865
7879
  var P, C;
7866
7880
  d.current && (i && (a(document.activeElement), (P = document == null ? void 0 : document.getElementById(w)) == null || P.classList.add("fr-modal--opened")), i || (C = document == null ? void 0 : document.getElementById(w)) == null || C.classList.remove("fr-modal--opened"));
7867
7881
  }, [i]), W(() => {
7868
- const _ = d.current;
7869
- if (_)
7870
- return _.addEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.addEventListener("dsfr.disclose", (P) => P.stopPropagation()), () => {
7871
- _.removeEventListener("dsfr.conceal", (P) => P.stopPropagation()), _.removeEventListener("dsfr.disclose", (P) => P.stopPropagation());
7882
+ const A = d.current;
7883
+ if (A)
7884
+ return A.addEventListener("dsfr.conceal", (P) => P.stopPropagation()), A.addEventListener("dsfr.disclose", (P) => P.stopPropagation()), () => {
7885
+ A.removeEventListener("dsfr.conceal", (P) => P.stopPropagation()), A.removeEventListener("dsfr.disclose", (P) => P.stopPropagation());
7872
7886
  };
7873
7887
  }, []);
7874
- const S = (_) => {
7875
- l && (!d.current || d.current === _.target || _.target.className.indexOf("closing-overlay") > -1) && e();
7888
+ const S = (A) => {
7889
+ l && (!d.current || d.current === A.target || A.target.className.indexOf("closing-overlay") > -1) && e();
7876
7890
  };
7877
7891
  Fc(d, i, u);
7878
- const K = A ? _e(A, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, x = /* @__PURE__ */ m(
7892
+ const K = _ ? _e(_, { onClick: () => e(), controls: w }) : l ? /* @__PURE__ */ m(Bt, { onClick: () => e(), controls: w }) : null, x = /* @__PURE__ */ m(
7879
7893
  "dialog",
7880
7894
  {
7881
7895
  "aria-labelledby": `${w}-title`,
@@ -7884,7 +7898,7 @@ const Lc = ({
7884
7898
  ref: d,
7885
7899
  id: w,
7886
7900
  role: "dialog",
7887
- onClick: (_) => S(_),
7901
+ onClick: (A) => S(A),
7888
7902
  ...s,
7889
7903
  children: /* @__PURE__ */ m("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ m("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ m("div", { className: `fr-col-12 fr-col-md-${f}`, children: /* @__PURE__ */ O("div", { className: "fr-modal__body", children: [
7890
7904
  /* @__PURE__ */ m("div", { className: "fr-modal__header", children: K }),
@@ -8163,7 +8177,7 @@ function Ic() {
8163
8177
  if (Wr)
8164
8178
  return oe;
8165
8179
  Wr = 1;
8166
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8180
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8167
8181
  function S(x) {
8168
8182
  if (typeof x == "object" && x !== null) {
8169
8183
  var M = x.$$typeof;
@@ -8222,7 +8236,7 @@ function Ic() {
8222
8236
  }, oe.isSuspense = function(x) {
8223
8237
  return S(x) === f;
8224
8238
  }, oe.isValidElementType = function(x) {
8225
- return typeof x == "string" || typeof x == "function" || x === r || x === a || x === i || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === d || x.$$typeof === l || x.$$typeof === s || x.$$typeof === c || x.$$typeof === g || x.$$typeof === A || x.$$typeof === w || x.$$typeof === h);
8239
+ return typeof x == "string" || typeof x == "function" || x === r || x === a || x === i || x === o || x === f || x === p || typeof x == "object" && x !== null && (x.$$typeof === v || x.$$typeof === d || x.$$typeof === l || x.$$typeof === s || x.$$typeof === c || x.$$typeof === g || x.$$typeof === _ || x.$$typeof === w || x.$$typeof === h);
8226
8240
  }, oe.typeOf = S, oe;
8227
8241
  }
8228
8242
  var ie = {};
@@ -8237,10 +8251,10 @@ var ie = {};
8237
8251
  var Gr;
8238
8252
  function Bc() {
8239
8253
  return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
8240
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8254
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, a = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, d = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, _ = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
8241
8255
  function S(N) {
8242
8256
  return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8243
- N === r || N === a || N === i || N === o || N === f || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === d || N.$$typeof === l || N.$$typeof === s || N.$$typeof === c || N.$$typeof === g || N.$$typeof === A || N.$$typeof === w || N.$$typeof === h);
8257
+ N === r || N === a || N === i || N === o || N === f || N === p || typeof N == "object" && N !== null && (N.$$typeof === v || N.$$typeof === d || N.$$typeof === l || N.$$typeof === s || N.$$typeof === c || N.$$typeof === g || N.$$typeof === _ || N.$$typeof === w || N.$$typeof === h);
8244
8258
  }
8245
8259
  function K(N) {
8246
8260
  if (typeof N == "object" && N !== null) {
@@ -8274,7 +8288,7 @@ function Bc() {
8274
8288
  }
8275
8289
  }
8276
8290
  }
8277
- var x = u, M = a, R = s, b = l, _ = e, P = c, C = r, B = v, E = d, T = n, q = i, V = o, F = f, ue = !1;
8291
+ var x = u, M = a, R = s, b = l, A = e, P = c, C = r, B = v, E = d, T = n, q = i, V = o, F = f, ue = !1;
8278
8292
  function ae(N) {
8279
8293
  return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), y(N) || K(N) === u;
8280
8294
  }
@@ -8314,7 +8328,7 @@ function Bc() {
8314
8328
  function J(N) {
8315
8329
  return K(N) === f;
8316
8330
  }
8317
- ie.AsyncMode = x, ie.ConcurrentMode = M, ie.ContextConsumer = R, ie.ContextProvider = b, ie.Element = _, ie.ForwardRef = P, ie.Fragment = C, ie.Lazy = B, ie.Memo = E, ie.Portal = T, ie.Profiler = q, ie.StrictMode = V, ie.Suspense = F, ie.isAsyncMode = ae, ie.isConcurrentMode = y, ie.isContextConsumer = D, ie.isContextProvider = z, ie.isElement = j, ie.isForwardRef = H, ie.isFragment = Y, ie.isLazy = U, ie.isMemo = L, ie.isPortal = I, ie.isProfiler = Z, ie.isStrictMode = G, ie.isSuspense = J, ie.isValidElementType = S, ie.typeOf = K;
8331
+ ie.AsyncMode = x, ie.ConcurrentMode = M, ie.ContextConsumer = R, ie.ContextProvider = b, ie.Element = A, ie.ForwardRef = P, ie.Fragment = C, ie.Lazy = B, ie.Memo = E, ie.Portal = T, ie.Profiler = q, ie.StrictMode = V, ie.Suspense = F, ie.isAsyncMode = ae, ie.isConcurrentMode = y, ie.isContextConsumer = D, ie.isContextProvider = z, ie.isElement = j, ie.isForwardRef = H, ie.isFragment = Y, ie.isLazy = U, ie.isMemo = L, ie.isPortal = I, ie.isProfiler = Z, ie.isStrictMode = G, ie.isSuspense = J, ie.isValidElementType = S, ie.typeOf = K;
8318
8332
  }()), ie;
8319
8333
  }
8320
8334
  var qr;
@@ -8461,14 +8475,14 @@ function Vc() {
8461
8475
  return D;
8462
8476
  }
8463
8477
  var p = "<<anonymous>>", d = {
8464
- array: A("array"),
8465
- bigint: A("bigint"),
8466
- bool: A("boolean"),
8467
- func: A("function"),
8468
- number: A("number"),
8469
- object: A("object"),
8470
- string: A("string"),
8471
- symbol: A("symbol"),
8478
+ array: _("array"),
8479
+ bigint: _("bigint"),
8480
+ bool: _("boolean"),
8481
+ func: _("function"),
8482
+ number: _("number"),
8483
+ object: _("object"),
8484
+ string: _("string"),
8485
+ symbol: _("symbol"),
8472
8486
  any: w(),
8473
8487
  arrayOf: S,
8474
8488
  element: K(),
@@ -8477,7 +8491,7 @@ function Vc() {
8477
8491
  node: P(),
8478
8492
  objectOf: b,
8479
8493
  oneOf: R,
8480
- oneOfType: _,
8494
+ oneOfType: A,
8481
8495
  shape: B,
8482
8496
  exact: E
8483
8497
  };
@@ -8511,7 +8525,7 @@ function Vc() {
8511
8525
  var H = j.bind(null, !1);
8512
8526
  return H.isRequired = j.bind(null, !0), H;
8513
8527
  }
8514
- function A(y) {
8528
+ function _(y) {
8515
8529
  function D(z, j, H, Y, U, L) {
8516
8530
  var I = z[j], Z = V(I);
8517
8531
  if (Z !== y) {
@@ -8612,7 +8626,7 @@ function Vc() {
8612
8626
  }
8613
8627
  return g(D);
8614
8628
  }
8615
- function _(y) {
8629
+ function A(y) {
8616
8630
  if (!Array.isArray(y))
8617
8631
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), l;
8618
8632
  for (var D = 0; D < y.length; D++) {
@@ -1 +1 @@
1
- {"version":3,"file":"useDSFRConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDSFRConfig.tsx"],"names":[],"mappings":"AASA,KAAK,mBAAmB,GAAG;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjD,8BAA8B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAI3E,eAAO,MAAM,UAAU,yHASpB,eAAe,4CAgEjB,CAAC;AAEF,eAAO,MAAM,aAAa,2BAAkC,CAAC"}
1
+ {"version":3,"file":"useDSFRConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDSFRConfig.tsx"],"names":[],"mappings":"AASA,KAAK,mBAAmB,GAAG;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjD,8BAA8B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AAI3E,eAAO,MAAM,UAAU,yHASpB,eAAe,4CAqEjB,CAAC;AAEF,eAAO,MAAM,aAAa,2BAAkC,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export * from './colors';
2
+ export * from './headings';
3
+ export * from './polymophic';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@dataesr/dsfr-plus",
3
3
  "private": false,
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "type": "module",
6
6
  "main": "./dist/dsfr-plus.es.js",
7
7
  "module": "./dist/dsfr-plus.es.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
11
  "types": "./dist/index.d.ts",