cetec-design-system 4.9.0-0 → 4.10.0-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/index.js CHANGED
@@ -974,7 +974,7 @@ const spinnerVariantKeys = [
974
974
  "inverse",
975
975
  "centered"
976
976
  ];
977
- const getVariantProps$z = (variants) => ({ ...spinnerDefaultVariants, ...compact(variants) });
977
+ const getVariantProps$A = (variants) => ({ ...spinnerDefaultVariants, ...compact(variants) });
978
978
  const spinner = /* @__PURE__ */ Object.assign(spinnerFn, {
979
979
  __recipe__: false,
980
980
  __name__: "spinner",
@@ -999,7 +999,7 @@ const spinner = /* @__PURE__ */ Object.assign(spinnerFn, {
999
999
  splitVariantProps(props) {
1000
1000
  return splitProps$1(props, spinnerVariantKeys);
1001
1001
  },
1002
- getVariantProps: getVariantProps$z
1002
+ getVariantProps: getVariantProps$A
1003
1003
  });
1004
1004
  const tagFn = /* @__PURE__ */ createRecipe("tag", {
1005
1005
  "variant": "default",
@@ -1667,7 +1667,7 @@ const toggleFn = memo((props = {}) => {
1667
1667
  return Object.fromEntries(toggleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
1668
1668
  });
1669
1669
  const toggleVariantKeys = [];
1670
- const getVariantProps$y = (variants) => ({ ...toggleDefaultVariants, ...compact(variants) });
1670
+ const getVariantProps$z = (variants) => ({ ...toggleDefaultVariants, ...compact(variants) });
1671
1671
  const toggle = /* @__PURE__ */ Object.assign(toggleFn, {
1672
1672
  __recipe__: false,
1673
1673
  __name__: "toggle",
@@ -1678,7 +1678,7 @@ const toggle = /* @__PURE__ */ Object.assign(toggleFn, {
1678
1678
  splitVariantProps(props) {
1679
1679
  return splitProps$1(props, toggleVariantKeys);
1680
1680
  },
1681
- getVariantProps: getVariantProps$y
1681
+ getVariantProps: getVariantProps$z
1682
1682
  });
1683
1683
  const alertDefaultVariants = {
1684
1684
  "tone": "info"
@@ -1721,7 +1721,7 @@ const alertFn = memo((props = {}) => {
1721
1721
  const alertVariantKeys = [
1722
1722
  "tone"
1723
1723
  ];
1724
- const getVariantProps$x = (variants) => ({ ...alertDefaultVariants, ...compact(variants) });
1724
+ const getVariantProps$y = (variants) => ({ ...alertDefaultVariants, ...compact(variants) });
1725
1725
  const alert = /* @__PURE__ */ Object.assign(alertFn, {
1726
1726
  __recipe__: false,
1727
1727
  __name__: "alert",
@@ -1740,7 +1740,7 @@ const alert = /* @__PURE__ */ Object.assign(alertFn, {
1740
1740
  splitVariantProps(props) {
1741
1741
  return splitProps$1(props, alertVariantKeys);
1742
1742
  },
1743
- getVariantProps: getVariantProps$x
1743
+ getVariantProps: getVariantProps$y
1744
1744
  });
1745
1745
  const autocompleteDefaultVariants = {
1746
1746
  "size": "md",
@@ -1797,7 +1797,7 @@ const autocompleteVariantKeys = [
1797
1797
  "layer",
1798
1798
  "size"
1799
1799
  ];
1800
- const getVariantProps$w = (variants) => ({ ...autocompleteDefaultVariants, ...compact(variants) });
1800
+ const getVariantProps$x = (variants) => ({ ...autocompleteDefaultVariants, ...compact(variants) });
1801
1801
  const autocomplete = /* @__PURE__ */ Object.assign(autocompleteFn, {
1802
1802
  __recipe__: false,
1803
1803
  __name__: "autocomplete",
@@ -1819,7 +1819,7 @@ const autocomplete = /* @__PURE__ */ Object.assign(autocompleteFn, {
1819
1819
  splitVariantProps(props) {
1820
1820
  return splitProps$1(props, autocompleteVariantKeys);
1821
1821
  },
1822
- getVariantProps: getVariantProps$w
1822
+ getVariantProps: getVariantProps$x
1823
1823
  });
1824
1824
  const avatarDefaultVariants = {
1825
1825
  "size": "md",
@@ -1856,7 +1856,7 @@ const avatarVariantKeys = [
1856
1856
  "size",
1857
1857
  "shape"
1858
1858
  ];
1859
- const getVariantProps$v = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) });
1859
+ const getVariantProps$w = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) });
1860
1860
  const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
1861
1861
  __recipe__: false,
1862
1862
  __name__: "avatar",
@@ -1881,7 +1881,7 @@ const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
1881
1881
  splitVariantProps(props) {
1882
1882
  return splitProps$1(props, avatarVariantKeys);
1883
1883
  },
1884
- getVariantProps: getVariantProps$v
1884
+ getVariantProps: getVariantProps$w
1885
1885
  });
1886
1886
  const badgeDefaultVariants = {
1887
1887
  "size": "md",
@@ -1908,7 +1908,7 @@ const badgeVariantKeys = [
1908
1908
  "dot",
1909
1909
  "variant"
1910
1910
  ];
1911
- const getVariantProps$u = (variants) => ({ ...badgeDefaultVariants, ...compact(variants) });
1911
+ const getVariantProps$v = (variants) => ({ ...badgeDefaultVariants, ...compact(variants) });
1912
1912
  const badge = /* @__PURE__ */ Object.assign(badgeFn, {
1913
1913
  __recipe__: false,
1914
1914
  __name__: "badge",
@@ -1944,7 +1944,7 @@ const badge = /* @__PURE__ */ Object.assign(badgeFn, {
1944
1944
  splitVariantProps(props) {
1945
1945
  return splitProps$1(props, badgeVariantKeys);
1946
1946
  },
1947
- getVariantProps: getVariantProps$u
1947
+ getVariantProps: getVariantProps$v
1948
1948
  });
1949
1949
  const breadcrumbsDefaultVariants = {};
1950
1950
  const breadcrumbsCompoundVariants = [];
@@ -1971,7 +1971,7 @@ const breadcrumbsFn = memo((props = {}) => {
1971
1971
  return Object.fromEntries(breadcrumbsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
1972
1972
  });
1973
1973
  const breadcrumbsVariantKeys = [];
1974
- const getVariantProps$t = (variants) => ({ ...breadcrumbsDefaultVariants, ...compact(variants) });
1974
+ const getVariantProps$u = (variants) => ({ ...breadcrumbsDefaultVariants, ...compact(variants) });
1975
1975
  const breadcrumbs = /* @__PURE__ */ Object.assign(breadcrumbsFn, {
1976
1976
  __recipe__: false,
1977
1977
  __name__: "breadcrumbs",
@@ -1982,7 +1982,7 @@ const breadcrumbs = /* @__PURE__ */ Object.assign(breadcrumbsFn, {
1982
1982
  splitVariantProps(props) {
1983
1983
  return splitProps$1(props, breadcrumbsVariantKeys);
1984
1984
  },
1985
- getVariantProps: getVariantProps$t
1985
+ getVariantProps: getVariantProps$u
1986
1986
  });
1987
1987
  const buttonDefaultVariants = {
1988
1988
  "variant": "standard",
@@ -2013,7 +2013,7 @@ const buttonVariantKeys = [
2013
2013
  "before",
2014
2014
  "after"
2015
2015
  ];
2016
- const getVariantProps$s = (variants) => ({ ...buttonDefaultVariants, ...compact(variants) });
2016
+ const getVariantProps$t = (variants) => ({ ...buttonDefaultVariants, ...compact(variants) });
2017
2017
  const button = /* @__PURE__ */ Object.assign(buttonFn, {
2018
2018
  __recipe__: false,
2019
2019
  __name__: "button",
@@ -2047,7 +2047,7 @@ const button = /* @__PURE__ */ Object.assign(buttonFn, {
2047
2047
  splitVariantProps(props) {
2048
2048
  return splitProps$1(props, buttonVariantKeys);
2049
2049
  },
2050
- getVariantProps: getVariantProps$s
2050
+ getVariantProps: getVariantProps$t
2051
2051
  });
2052
2052
  const calendarDefaultVariants = {
2053
2053
  "type": "days"
@@ -2086,7 +2086,7 @@ const calendarFn = memo((props = {}) => {
2086
2086
  const calendarVariantKeys = [
2087
2087
  "type"
2088
2088
  ];
2089
- const getVariantProps$r = (variants) => ({ ...calendarDefaultVariants, ...compact(variants) });
2089
+ const getVariantProps$s = (variants) => ({ ...calendarDefaultVariants, ...compact(variants) });
2090
2090
  const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
2091
2091
  __recipe__: false,
2092
2092
  __name__: "calendar",
@@ -2103,7 +2103,7 @@ const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
2103
2103
  splitVariantProps(props) {
2104
2104
  return splitProps$1(props, calendarVariantKeys);
2105
2105
  },
2106
- getVariantProps: getVariantProps$r
2106
+ getVariantProps: getVariantProps$s
2107
2107
  });
2108
2108
  const checkboxDefaultVariants = {};
2109
2109
  const checkboxCompoundVariants = [];
@@ -2130,7 +2130,7 @@ const checkboxFn = memo((props = {}) => {
2130
2130
  return Object.fromEntries(checkboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
2131
2131
  });
2132
2132
  const checkboxVariantKeys = [];
2133
- const getVariantProps$q = (variants) => ({ ...checkboxDefaultVariants, ...compact(variants) });
2133
+ const getVariantProps$r = (variants) => ({ ...checkboxDefaultVariants, ...compact(variants) });
2134
2134
  const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
2135
2135
  __recipe__: false,
2136
2136
  __name__: "checkbox",
@@ -2141,7 +2141,7 @@ const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
2141
2141
  splitVariantProps(props) {
2142
2142
  return splitProps$1(props, checkboxVariantKeys);
2143
2143
  },
2144
- getVariantProps: getVariantProps$q
2144
+ getVariantProps: getVariantProps$r
2145
2145
  });
2146
2146
  const chipDefaultVariants = {
2147
2147
  "size": "md"
@@ -2179,7 +2179,7 @@ const chipVariantKeys = [
2179
2179
  "after",
2180
2180
  "dismissable"
2181
2181
  ];
2182
- const getVariantProps$p = (variants) => ({ ...chipDefaultVariants, ...compact(variants) });
2182
+ const getVariantProps$q = (variants) => ({ ...chipDefaultVariants, ...compact(variants) });
2183
2183
  const chip = /* @__PURE__ */ Object.assign(chipFn, {
2184
2184
  __recipe__: false,
2185
2185
  __name__: "chip",
@@ -2206,7 +2206,7 @@ const chip = /* @__PURE__ */ Object.assign(chipFn, {
2206
2206
  splitVariantProps(props) {
2207
2207
  return splitProps$1(props, chipVariantKeys);
2208
2208
  },
2209
- getVariantProps: getVariantProps$p
2209
+ getVariantProps: getVariantProps$q
2210
2210
  });
2211
2211
  const codeBlockDefaultVariants = {
2212
2212
  "tone": "default",
@@ -2275,7 +2275,7 @@ const codeBlockVariantKeys = [
2275
2275
  "collapsed",
2276
2276
  "actionGutter"
2277
2277
  ];
2278
- const getVariantProps$o = (variants) => ({ ...codeBlockDefaultVariants, ...compact(variants) });
2278
+ const getVariantProps$p = (variants) => ({ ...codeBlockDefaultVariants, ...compact(variants) });
2279
2279
  const codeBlock = /* @__PURE__ */ Object.assign(codeBlockFn, {
2280
2280
  __recipe__: false,
2281
2281
  __name__: "codeBlock",
@@ -2311,7 +2311,7 @@ const codeBlock = /* @__PURE__ */ Object.assign(codeBlockFn, {
2311
2311
  splitVariantProps(props) {
2312
2312
  return splitProps$1(props, codeBlockVariantKeys);
2313
2313
  },
2314
- getVariantProps: getVariantProps$o
2314
+ getVariantProps: getVariantProps$p
2315
2315
  });
2316
2316
  const dateMenusDefaultVariants = {};
2317
2317
  const dateMenusCompoundVariants = [];
@@ -2334,7 +2334,7 @@ const dateMenusFn = memo((props = {}) => {
2334
2334
  return Object.fromEntries(dateMenusSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
2335
2335
  });
2336
2336
  const dateMenusVariantKeys = [];
2337
- const getVariantProps$n = (variants) => ({ ...dateMenusDefaultVariants, ...compact(variants) });
2337
+ const getVariantProps$o = (variants) => ({ ...dateMenusDefaultVariants, ...compact(variants) });
2338
2338
  const dateMenus = /* @__PURE__ */ Object.assign(dateMenusFn, {
2339
2339
  __recipe__: false,
2340
2340
  __name__: "dateMenus",
@@ -2345,7 +2345,7 @@ const dateMenus = /* @__PURE__ */ Object.assign(dateMenusFn, {
2345
2345
  splitVariantProps(props) {
2346
2346
  return splitProps$1(props, dateMenusVariantKeys);
2347
2347
  },
2348
- getVariantProps: getVariantProps$n
2348
+ getVariantProps: getVariantProps$o
2349
2349
  });
2350
2350
  const dateTimeMenusDefaultVariants = {};
2351
2351
  const dateTimeMenusCompoundVariants = [];
@@ -2368,7 +2368,7 @@ const dateTimeMenusFn = memo((props = {}) => {
2368
2368
  return Object.fromEntries(dateTimeMenusSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
2369
2369
  });
2370
2370
  const dateTimeMenusVariantKeys = [];
2371
- const getVariantProps$m = (variants) => ({ ...dateTimeMenusDefaultVariants, ...compact(variants) });
2371
+ const getVariantProps$n = (variants) => ({ ...dateTimeMenusDefaultVariants, ...compact(variants) });
2372
2372
  const dateTimeMenus = /* @__PURE__ */ Object.assign(dateTimeMenusFn, {
2373
2373
  __recipe__: false,
2374
2374
  __name__: "dateTimeMenus",
@@ -2379,7 +2379,7 @@ const dateTimeMenus = /* @__PURE__ */ Object.assign(dateTimeMenusFn, {
2379
2379
  splitVariantProps(props) {
2380
2380
  return splitProps$1(props, dateTimeMenusVariantKeys);
2381
2381
  },
2382
- getVariantProps: getVariantProps$m
2382
+ getVariantProps: getVariantProps$n
2383
2383
  });
2384
2384
  const drawerDefaultVariants = {
2385
2385
  "side": "right",
@@ -2426,7 +2426,7 @@ const drawerVariantKeys = [
2426
2426
  "size",
2427
2427
  "scrollable"
2428
2428
  ];
2429
- const getVariantProps$l = (variants) => ({ ...drawerDefaultVariants, ...compact(variants) });
2429
+ const getVariantProps$m = (variants) => ({ ...drawerDefaultVariants, ...compact(variants) });
2430
2430
  const drawer = /* @__PURE__ */ Object.assign(drawerFn, {
2431
2431
  __recipe__: false,
2432
2432
  __name__: "drawer",
@@ -2453,7 +2453,7 @@ const drawer = /* @__PURE__ */ Object.assign(drawerFn, {
2453
2453
  splitVariantProps(props) {
2454
2454
  return splitProps$1(props, drawerVariantKeys);
2455
2455
  },
2456
- getVariantProps: getVariantProps$l
2456
+ getVariantProps: getVariantProps$m
2457
2457
  });
2458
2458
  const filterFieldDefaultVariants = {};
2459
2459
  const filterFieldCompoundVariants = [];
@@ -2500,7 +2500,7 @@ const filterFieldFn = memo((props = {}) => {
2500
2500
  return Object.fromEntries(filterFieldSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
2501
2501
  });
2502
2502
  const filterFieldVariantKeys = [];
2503
- const getVariantProps$k = (variants) => ({ ...filterFieldDefaultVariants, ...compact(variants) });
2503
+ const getVariantProps$l = (variants) => ({ ...filterFieldDefaultVariants, ...compact(variants) });
2504
2504
  const filterField = /* @__PURE__ */ Object.assign(filterFieldFn, {
2505
2505
  __recipe__: false,
2506
2506
  __name__: "filterField",
@@ -2511,7 +2511,7 @@ const filterField = /* @__PURE__ */ Object.assign(filterFieldFn, {
2511
2511
  splitVariantProps(props) {
2512
2512
  return splitProps$1(props, filterFieldVariantKeys);
2513
2513
  },
2514
- getVariantProps: getVariantProps$k
2514
+ getVariantProps: getVariantProps$l
2515
2515
  });
2516
2516
  const filterMenuDefaultVariants = {
2517
2517
  "layer": "elevated"
@@ -2550,7 +2550,7 @@ const filterMenuFn = memo((props = {}) => {
2550
2550
  const filterMenuVariantKeys = [
2551
2551
  "layer"
2552
2552
  ];
2553
- const getVariantProps$j = (variants) => ({ ...filterMenuDefaultVariants, ...compact(variants) });
2553
+ const getVariantProps$k = (variants) => ({ ...filterMenuDefaultVariants, ...compact(variants) });
2554
2554
  const filterMenu = /* @__PURE__ */ Object.assign(filterMenuFn, {
2555
2555
  __recipe__: false,
2556
2556
  __name__: "filterMenu",
@@ -2566,7 +2566,7 @@ const filterMenu = /* @__PURE__ */ Object.assign(filterMenuFn, {
2566
2566
  splitVariantProps(props) {
2567
2567
  return splitProps$1(props, filterMenuVariantKeys);
2568
2568
  },
2569
- getVariantProps: getVariantProps$j
2569
+ getVariantProps: getVariantProps$k
2570
2570
  });
2571
2571
  const filterTokenDefaultVariants = {};
2572
2572
  const filterTokenCompoundVariants = [];
@@ -2613,7 +2613,7 @@ const filterTokenFn = memo((props = {}) => {
2613
2613
  return Object.fromEntries(filterTokenSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
2614
2614
  });
2615
2615
  const filterTokenVariantKeys = [];
2616
- const getVariantProps$i = (variants) => ({ ...filterTokenDefaultVariants, ...compact(variants) });
2616
+ const getVariantProps$j = (variants) => ({ ...filterTokenDefaultVariants, ...compact(variants) });
2617
2617
  const filterToken = /* @__PURE__ */ Object.assign(filterTokenFn, {
2618
2618
  __recipe__: false,
2619
2619
  __name__: "filterToken",
@@ -2624,7 +2624,7 @@ const filterToken = /* @__PURE__ */ Object.assign(filterTokenFn, {
2624
2624
  splitVariantProps(props) {
2625
2625
  return splitProps$1(props, filterTokenVariantKeys);
2626
2626
  },
2627
- getVariantProps: getVariantProps$i
2627
+ getVariantProps: getVariantProps$j
2628
2628
  });
2629
2629
  const formFieldDefaultVariants = {
2630
2630
  "layout": "default",
@@ -2653,7 +2653,7 @@ const formFieldVariantKeys = [
2653
2653
  "layout",
2654
2654
  "size"
2655
2655
  ];
2656
- const getVariantProps$h = (variants) => ({ ...formFieldDefaultVariants, ...compact(variants) });
2656
+ const getVariantProps$i = (variants) => ({ ...formFieldDefaultVariants, ...compact(variants) });
2657
2657
  const formField = /* @__PURE__ */ Object.assign(formFieldFn, {
2658
2658
  __recipe__: false,
2659
2659
  __name__: "formField",
@@ -2675,7 +2675,7 @@ const formField = /* @__PURE__ */ Object.assign(formFieldFn, {
2675
2675
  splitVariantProps(props) {
2676
2676
  return splitProps$1(props, formFieldVariantKeys);
2677
2677
  },
2678
- getVariantProps: getVariantProps$h
2678
+ getVariantProps: getVariantProps$i
2679
2679
  });
2680
2680
  const iconButtonDefaultVariants = {
2681
2681
  "variant": "standard",
@@ -2704,7 +2704,7 @@ const iconButtonVariantKeys = [
2704
2704
  "variant",
2705
2705
  "size"
2706
2706
  ];
2707
- const getVariantProps$g = (variants) => ({ ...iconButtonDefaultVariants, ...compact(variants) });
2707
+ const getVariantProps$h = (variants) => ({ ...iconButtonDefaultVariants, ...compact(variants) });
2708
2708
  const iconButton = /* @__PURE__ */ Object.assign(iconButtonFn, {
2709
2709
  __recipe__: false,
2710
2710
  __name__: "iconButton",
@@ -2732,7 +2732,7 @@ const iconButton = /* @__PURE__ */ Object.assign(iconButtonFn, {
2732
2732
  splitVariantProps(props) {
2733
2733
  return splitProps$1(props, iconButtonVariantKeys);
2734
2734
  },
2735
- getVariantProps: getVariantProps$g
2735
+ getVariantProps: getVariantProps$h
2736
2736
  });
2737
2737
  const inlineNoteDefaultVariants = {
2738
2738
  "tone": "info"
@@ -2759,7 +2759,7 @@ const inlineNoteFn = memo((props = {}) => {
2759
2759
  const inlineNoteVariantKeys = [
2760
2760
  "tone"
2761
2761
  ];
2762
- const getVariantProps$f = (variants) => ({ ...inlineNoteDefaultVariants, ...compact(variants) });
2762
+ const getVariantProps$g = (variants) => ({ ...inlineNoteDefaultVariants, ...compact(variants) });
2763
2763
  const inlineNote = /* @__PURE__ */ Object.assign(inlineNoteFn, {
2764
2764
  __recipe__: false,
2765
2765
  __name__: "inlineNote",
@@ -2778,7 +2778,7 @@ const inlineNote = /* @__PURE__ */ Object.assign(inlineNoteFn, {
2778
2778
  splitVariantProps(props) {
2779
2779
  return splitProps$1(props, inlineNoteVariantKeys);
2780
2780
  },
2781
- getVariantProps: getVariantProps$f
2781
+ getVariantProps: getVariantProps$g
2782
2782
  });
2783
2783
  const kbdDefaultVariants = {
2784
2784
  "variant": "default"
@@ -2801,7 +2801,7 @@ const kbdFn = memo((props = {}) => {
2801
2801
  const kbdVariantKeys = [
2802
2802
  "variant"
2803
2803
  ];
2804
- const getVariantProps$e = (variants) => ({ ...kbdDefaultVariants, ...compact(variants) });
2804
+ const getVariantProps$f = (variants) => ({ ...kbdDefaultVariants, ...compact(variants) });
2805
2805
  const kbd = /* @__PURE__ */ Object.assign(kbdFn, {
2806
2806
  __recipe__: false,
2807
2807
  __name__: "kbd",
@@ -2817,7 +2817,7 @@ const kbd = /* @__PURE__ */ Object.assign(kbdFn, {
2817
2817
  splitVariantProps(props) {
2818
2818
  return splitProps$1(props, kbdVariantKeys);
2819
2819
  },
2820
- getVariantProps: getVariantProps$e
2820
+ getVariantProps: getVariantProps$f
2821
2821
  });
2822
2822
  const listItemGroupDefaultVariants = {
2823
2823
  "density": "compact"
@@ -2844,7 +2844,7 @@ const listItemGroupFn = memo((props = {}) => {
2844
2844
  const listItemGroupVariantKeys = [
2845
2845
  "density"
2846
2846
  ];
2847
- const getVariantProps$d = (variants) => ({ ...listItemGroupDefaultVariants, ...compact(variants) });
2847
+ const getVariantProps$e = (variants) => ({ ...listItemGroupDefaultVariants, ...compact(variants) });
2848
2848
  const listItemGroup = /* @__PURE__ */ Object.assign(listItemGroupFn, {
2849
2849
  __recipe__: false,
2850
2850
  __name__: "listItemGroup",
@@ -2861,7 +2861,7 @@ const listItemGroup = /* @__PURE__ */ Object.assign(listItemGroupFn, {
2861
2861
  splitVariantProps(props) {
2862
2862
  return splitProps$1(props, listItemGroupVariantKeys);
2863
2863
  },
2864
- getVariantProps: getVariantProps$d
2864
+ getVariantProps: getVariantProps$e
2865
2865
  });
2866
2866
  const listItemDefaultVariants = {
2867
2867
  "variant": "default",
@@ -2921,7 +2921,7 @@ const listItemVariantKeys = [
2921
2921
  "iconBefore",
2922
2922
  "iconAfter"
2923
2923
  ];
2924
- const getVariantProps$c = (variants) => ({ ...listItemDefaultVariants, ...compact(variants) });
2924
+ const getVariantProps$d = (variants) => ({ ...listItemDefaultVariants, ...compact(variants) });
2925
2925
  const listItem = /* @__PURE__ */ Object.assign(listItemFn, {
2926
2926
  __recipe__: false,
2927
2927
  __name__: "listItem",
@@ -2956,7 +2956,7 @@ const listItem = /* @__PURE__ */ Object.assign(listItemFn, {
2956
2956
  splitVariantProps(props) {
2957
2957
  return splitProps$1(props, listItemVariantKeys);
2958
2958
  },
2959
- getVariantProps: getVariantProps$c
2959
+ getVariantProps: getVariantProps$d
2960
2960
  });
2961
2961
  const menuDefaultVariants = {
2962
2962
  "density": "compact",
@@ -3003,7 +3003,7 @@ const menuVariantKeys = [
3003
3003
  "panel",
3004
3004
  "scrollable"
3005
3005
  ];
3006
- const getVariantProps$b = (variants) => ({ ...menuDefaultVariants, ...compact(variants) });
3006
+ const getVariantProps$c = (variants) => ({ ...menuDefaultVariants, ...compact(variants) });
3007
3007
  const menu = /* @__PURE__ */ Object.assign(menuFn, {
3008
3008
  __recipe__: false,
3009
3009
  __name__: "menu",
@@ -3030,7 +3030,7 @@ const menu = /* @__PURE__ */ Object.assign(menuFn, {
3030
3030
  splitVariantProps(props) {
3031
3031
  return splitProps$1(props, menuVariantKeys);
3032
3032
  },
3033
- getVariantProps: getVariantProps$b
3033
+ getVariantProps: getVariantProps$c
3034
3034
  });
3035
3035
  const modalDefaultVariants = {
3036
3036
  "size": "md",
@@ -3079,7 +3079,7 @@ const modalVariantKeys = [
3079
3079
  "size",
3080
3080
  "position"
3081
3081
  ];
3082
- const getVariantProps$a = (variants) => ({ ...modalDefaultVariants, ...compact(variants) });
3082
+ const getVariantProps$b = (variants) => ({ ...modalDefaultVariants, ...compact(variants) });
3083
3083
  const modal = /* @__PURE__ */ Object.assign(modalFn, {
3084
3084
  __recipe__: false,
3085
3085
  __name__: "modal",
@@ -3103,7 +3103,7 @@ const modal = /* @__PURE__ */ Object.assign(modalFn, {
3103
3103
  splitVariantProps(props) {
3104
3104
  return splitProps$1(props, modalVariantKeys);
3105
3105
  },
3106
- getVariantProps: getVariantProps$a
3106
+ getVariantProps: getVariantProps$b
3107
3107
  });
3108
3108
  const pageBannerDefaultVariants = {
3109
3109
  "tone": "info"
@@ -3138,7 +3138,7 @@ const pageBannerFn = memo((props = {}) => {
3138
3138
  const pageBannerVariantKeys = [
3139
3139
  "tone"
3140
3140
  ];
3141
- const getVariantProps$9 = (variants) => ({ ...pageBannerDefaultVariants, ...compact(variants) });
3141
+ const getVariantProps$a = (variants) => ({ ...pageBannerDefaultVariants, ...compact(variants) });
3142
3142
  const pageBanner = /* @__PURE__ */ Object.assign(pageBannerFn, {
3143
3143
  __recipe__: false,
3144
3144
  __name__: "pageBanner",
@@ -3157,6 +3157,98 @@ const pageBanner = /* @__PURE__ */ Object.assign(pageBannerFn, {
3157
3157
  splitVariantProps(props) {
3158
3158
  return splitProps$1(props, pageBannerVariantKeys);
3159
3159
  },
3160
+ getVariantProps: getVariantProps$a
3161
+ });
3162
+ const popoverDefaultVariants = {
3163
+ "size": "md",
3164
+ "interaction": "rich",
3165
+ "layer": "elevated"
3166
+ };
3167
+ const popoverCompoundVariants = [];
3168
+ const popoverSlotNames = [
3169
+ [
3170
+ "content",
3171
+ "popover__content"
3172
+ ],
3173
+ [
3174
+ "header",
3175
+ "popover__header"
3176
+ ],
3177
+ [
3178
+ "title",
3179
+ "popover__title"
3180
+ ],
3181
+ [
3182
+ "titleIcon",
3183
+ "popover__titleIcon"
3184
+ ],
3185
+ [
3186
+ "description",
3187
+ "popover__description"
3188
+ ],
3189
+ [
3190
+ "body",
3191
+ "popover__body"
3192
+ ],
3193
+ [
3194
+ "media",
3195
+ "popover__media"
3196
+ ],
3197
+ [
3198
+ "footer",
3199
+ "popover__footer"
3200
+ ],
3201
+ [
3202
+ "close",
3203
+ "popover__close"
3204
+ ],
3205
+ [
3206
+ "trigger",
3207
+ "popover__trigger"
3208
+ ]
3209
+ ];
3210
+ const popoverSlotFns = /* @__PURE__ */ popoverSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, popoverDefaultVariants, getSlotCompoundVariant(popoverCompoundVariants, slotName))]);
3211
+ const popoverFn = memo((props = {}) => {
3212
+ return Object.fromEntries(popoverSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
3213
+ });
3214
+ const popoverVariantKeys = [
3215
+ "interaction",
3216
+ "layer",
3217
+ "size",
3218
+ "tone"
3219
+ ];
3220
+ const getVariantProps$9 = (variants) => ({ ...popoverDefaultVariants, ...compact(variants) });
3221
+ const popover = /* @__PURE__ */ Object.assign(popoverFn, {
3222
+ __recipe__: false,
3223
+ __name__: "popover",
3224
+ raw: (props) => props,
3225
+ classNameMap: {},
3226
+ variantKeys: popoverVariantKeys,
3227
+ variantMap: {
3228
+ "interaction": [
3229
+ "definition",
3230
+ "rich"
3231
+ ],
3232
+ "layer": [
3233
+ "elevated",
3234
+ "modalFloating"
3235
+ ],
3236
+ "size": [
3237
+ "sm",
3238
+ "md",
3239
+ "lg"
3240
+ ],
3241
+ "tone": [
3242
+ "note",
3243
+ "tip",
3244
+ "warning",
3245
+ "important",
3246
+ "caution"
3247
+ ]
3248
+ },
3249
+ splitVariantProps(props) {
3250
+ return splitProps$1(props, popoverVariantKeys);
3251
+ },
3160
3252
  getVariantProps: getVariantProps$9
3161
3253
  });
3162
3254
  const radioDefaultVariants = {};
@@ -15364,10 +15456,10 @@ function tokenVar(path, fallback) {
15364
15456
  }
15365
15457
  token.var = tokenVar;
15366
15458
  const createOverlayMiddleware = (options = {}) => {
15367
- const { offset: offset$12 = 4, shiftPadding = 8, extras = [] } = options;
15459
+ const { offset: offset$12 = 4, shiftPadding = 8, flipOptions, extras = [] } = options;
15368
15460
  return [
15369
15461
  offset(offset$12),
15370
- flip(),
15462
+ flip(flipOptions),
15371
15463
  shift({ padding: shiftPadding }),
15372
15464
  ...extras
15373
15465
  ];
@@ -15638,6 +15730,7 @@ const defaultLocaleLabels = {
15638
15730
  dismiss: "Dismiss",
15639
15731
  closeDialog: "Close dialog",
15640
15732
  closeDrawer: "Close drawer",
15733
+ closePopover: "Close",
15641
15734
  removeItem: (item) => `Remove ${item}`,
15642
15735
  removeFilter: (filter) => `Remove filter: ${filter}`,
15643
15736
  switchToTheme: (nextTheme) => `Switch to ${nextTheme} theme`,
@@ -15712,14 +15805,14 @@ const LocaleContext = createContext({
15712
15805
  function useLocale() {
15713
15806
  return useContext(LocaleContext);
15714
15807
  }
15715
- const toneIconNames$3 = {
15808
+ const toneIconNames$4 = {
15716
15809
  info: "info",
15717
15810
  success: "success",
15718
15811
  warning: "warning",
15719
15812
  danger: "error",
15720
15813
  neutral: "info"
15721
15814
  };
15722
- const toneIconColors$2 = {
15815
+ const toneIconColors$3 = {
15723
15816
  info: "icon.info",
15724
15817
  success: "icon.success",
15725
15818
  warning: "icon.warning",
@@ -15741,7 +15834,7 @@ const Alert = (props) => {
15741
15834
  } = props;
15742
15835
  const [className, otherProps] = splitProps(rest);
15743
15836
  const classes = alert({ tone });
15744
- const iconName = toneIconNames$3[tone];
15837
+ const iconName = toneIconNames$4[tone];
15745
15838
  const hasActions = Boolean(primaryAction ?? secondaryAction);
15746
15839
  return /* @__PURE__ */ jsxs(
15747
15840
  Box,
@@ -15756,7 +15849,7 @@ const Alert = (props) => {
15756
15849
  {
15757
15850
  name: iconName,
15758
15851
  size: "20",
15759
- fill: toneIconColors$2[tone],
15852
+ fill: toneIconColors$3[tone],
15760
15853
  "aria-hidden": "true"
15761
15854
  }
15762
15855
  ) }),
@@ -23505,14 +23598,14 @@ const FormField = (props) => {
23505
23598
  }
23506
23599
  );
23507
23600
  };
23508
- const toneIconNames$2 = {
23601
+ const toneIconNames$3 = {
23509
23602
  info: "info",
23510
23603
  success: "success",
23511
23604
  warning: "warning",
23512
23605
  danger: "error",
23513
23606
  neutral: "info"
23514
23607
  };
23515
- const toneIconColors$1 = {
23608
+ const toneIconColors$2 = {
23516
23609
  info: "icon.info",
23517
23610
  success: "icon.success",
23518
23611
  warning: "icon.warning",
@@ -23530,7 +23623,7 @@ const InlineNote = (props) => {
23530
23623
  const { tone = "info", children, ...rest } = props;
23531
23624
  const [className, otherProps] = splitProps(rest);
23532
23625
  const classes = inlineNote({ tone });
23533
- const iconName = toneIconNames$2[tone];
23626
+ const iconName = toneIconNames$3[tone];
23534
23627
  return /* @__PURE__ */ jsxs(
23535
23628
  Box,
23536
23629
  {
@@ -23543,7 +23636,7 @@ const InlineNote = (props) => {
23543
23636
  {
23544
23637
  name: iconName,
23545
23638
  size: "16",
23546
- fill: toneIconColors$1[tone],
23639
+ fill: toneIconColors$2[tone],
23547
23640
  "aria-hidden": "true"
23548
23641
  }
23549
23642
  ) }),
@@ -23896,7 +23989,7 @@ const ConfirmationModal = (props) => {
23896
23989
  }
23897
23990
  );
23898
23991
  };
23899
- const toneIconNames$1 = {
23992
+ const toneIconNames$2 = {
23900
23993
  info: "info",
23901
23994
  success: "success",
23902
23995
  warning: "warning",
@@ -23922,7 +24015,7 @@ const PageBanner = (props) => {
23922
24015
  const [className, otherProps] = splitProps(rest);
23923
24016
  const classes = pageBanner({ tone });
23924
24017
  const isBold = emphasis === "bold";
23925
- const iconName = toneIconNames$1[tone];
24018
+ const iconName = toneIconNames$2[tone];
23926
24019
  const iconColor = isBold ? "icon.inverse" : subtleIconColors[tone];
23927
24020
  const textColor = isBold ? "text.inverse" : "text";
23928
24021
  const hasActions = Boolean(primaryAction ?? secondaryAction);
@@ -26433,14 +26526,14 @@ const ThemeSwitcher = () => {
26433
26526
  }
26434
26527
  );
26435
26528
  };
26436
- const toneIconNames = {
26529
+ const toneIconNames$1 = {
26437
26530
  info: "info",
26438
26531
  success: "success",
26439
26532
  warning: "warning",
26440
26533
  danger: "error",
26441
26534
  neutral: "info"
26442
26535
  };
26443
- const toneIconColors = {
26536
+ const toneIconColors$1 = {
26444
26537
  info: "icon.info",
26445
26538
  success: "icon.success",
26446
26539
  warning: "icon.warning",
@@ -26496,7 +26589,7 @@ const Toast = (props) => {
26496
26589
  );
26497
26590
  };
26498
26591
  }, [duration, paused, state]);
26499
- const iconName = toneIconNames[tone];
26592
+ const iconName = toneIconNames$1[tone];
26500
26593
  const hasActions = Boolean(primaryAction ?? secondaryAction);
26501
26594
  return /* @__PURE__ */ jsxs(
26502
26595
  Box,
@@ -26533,7 +26626,7 @@ const Toast = (props) => {
26533
26626
  {
26534
26627
  name: iconName,
26535
26628
  size: "20",
26536
- fill: toneIconColors[tone],
26629
+ fill: toneIconColors$1[tone],
26537
26630
  "aria-hidden": "true"
26538
26631
  }
26539
26632
  ) }),
@@ -26799,6 +26892,413 @@ const Skeleton = (props) => {
26799
26892
  }
26800
26893
  );
26801
26894
  };
26895
+ const PopoverContext = createContext(null);
26896
+ const usePopoverContext = () => {
26897
+ const context2 = useContext(PopoverContext);
26898
+ if (!context2) {
26899
+ throw new Error("Popover components must be used within a <Popover> root");
26900
+ }
26901
+ return context2;
26902
+ };
26903
+ const Popover = (props) => {
26904
+ const {
26905
+ children,
26906
+ interaction = "rich",
26907
+ open: openProp,
26908
+ defaultOpen = false,
26909
+ onOpenChange,
26910
+ placement = "bottom",
26911
+ offset: offset2 = 8,
26912
+ showArrow = true,
26913
+ size: size2 = "md",
26914
+ tone
26915
+ } = props;
26916
+ const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
26917
+ const isControlled = openProp !== void 0;
26918
+ const open = isControlled ? openProp : uncontrolledOpen;
26919
+ const setOpen = useCallback(
26920
+ (nextOpen) => {
26921
+ if (!isControlled) {
26922
+ setUncontrolledOpen(nextOpen);
26923
+ }
26924
+ onOpenChange == null ? void 0 : onOpenChange(nextOpen);
26925
+ },
26926
+ [isControlled, onOpenChange]
26927
+ );
26928
+ const arrowRef = useRef(null);
26929
+ const [titleId, setTitleId] = useState();
26930
+ const [descriptionId, setDescriptionId] = useState();
26931
+ const [hasAnchor, setHasAnchor] = useState(false);
26932
+ const isDefinition = interaction === "definition";
26933
+ const { refs, elements, floatingStyles, context: context2 } = useOverlayFloating({
26934
+ open,
26935
+ onOpenChange: setOpen,
26936
+ placement,
26937
+ middleware: createOverlayMiddleware({
26938
+ offset: offset2,
26939
+ flipOptions: { fallbackAxisSideDirection: "end" },
26940
+ extras: [arrow({ element: arrowRef })]
26941
+ })
26942
+ });
26943
+ const hover = useHover(context2, {
26944
+ enabled: isDefinition,
26945
+ move: false,
26946
+ delay: { open: 200, close: 150 },
26947
+ handleClose: safePolygon({ requireIntent: false })
26948
+ });
26949
+ const focus = useFocus(context2, { enabled: isDefinition });
26950
+ const click = useClick(context2, { enabled: !isDefinition });
26951
+ const dismiss = useDismiss(context2);
26952
+ const role = useRole(context2, {
26953
+ role: isDefinition ? "tooltip" : "dialog"
26954
+ });
26955
+ const { domReference } = elements;
26956
+ const { setReference } = refs;
26957
+ useEffect(() => {
26958
+ if (!hasAnchor && domReference) {
26959
+ setReference(domReference);
26960
+ }
26961
+ }, [hasAnchor, domReference, setReference]);
26962
+ const { getReferenceProps, getFloatingProps } = useInteractions([
26963
+ hover,
26964
+ focus,
26965
+ click,
26966
+ dismiss,
26967
+ role
26968
+ ]);
26969
+ const setReferenceRef = useCallback(
26970
+ (node) => {
26971
+ refs.setReference(node);
26972
+ },
26973
+ [refs]
26974
+ );
26975
+ const setFloatingRef = useCallback(
26976
+ (node) => {
26977
+ refs.setFloating(node);
26978
+ },
26979
+ [refs]
26980
+ );
26981
+ const contextValue = useMemo(
26982
+ () => ({
26983
+ open,
26984
+ setOpen,
26985
+ interaction,
26986
+ placement,
26987
+ offset: offset2,
26988
+ showArrow,
26989
+ size: size2,
26990
+ tone,
26991
+ floatingContext: context2,
26992
+ refs: {
26993
+ setReference: refs.setReference,
26994
+ setFloating: refs.setFloating,
26995
+ setPositionReference: refs.setPositionReference
26996
+ },
26997
+ floatingStyles,
26998
+ domReference: elements.domReference,
26999
+ getReferenceProps: (userProps) => getReferenceProps(userProps),
27000
+ getFloatingProps: (userProps) => getFloatingProps(userProps),
27001
+ arrowRef,
27002
+ titleId,
27003
+ setTitleId,
27004
+ descriptionId,
27005
+ setDescriptionId,
27006
+ hasAnchor,
27007
+ setHasAnchor,
27008
+ setReferenceRef,
27009
+ setFloatingRef
27010
+ }),
27011
+ [
27012
+ open,
27013
+ setOpen,
27014
+ interaction,
27015
+ placement,
27016
+ offset2,
27017
+ showArrow,
27018
+ size2,
27019
+ tone,
27020
+ context2,
27021
+ refs.setReference,
27022
+ refs.setFloating,
27023
+ refs.setPositionReference,
27024
+ floatingStyles,
27025
+ elements.domReference,
27026
+ getReferenceProps,
27027
+ getFloatingProps,
27028
+ titleId,
27029
+ descriptionId,
27030
+ hasAnchor,
27031
+ setReferenceRef,
27032
+ setFloatingRef
27033
+ ]
27034
+ );
27035
+ return /* @__PURE__ */ jsx(PopoverContext.Provider, { value: contextValue, children });
27036
+ };
27037
+ const PopoverTrigger = (props) => {
27038
+ const { children, ref, ...rest } = props;
27039
+ const [className, otherProps] = splitProps(rest);
27040
+ const { interaction, getReferenceProps, setReferenceRef } = usePopoverContext();
27041
+ const classes = popover({ interaction });
27042
+ const childArray = Children.toArray(children);
27043
+ const onlyChild = childArray.length === 1 ? childArray[0] : null;
27044
+ const childRefProp = isValidElement(onlyChild) ? onlyChild.props.ref : void 0;
27045
+ const mergedRef = useMergeRefs([childRefProp, ref, setReferenceRef]);
27046
+ if (isValidElement(onlyChild)) {
27047
+ const child = onlyChild;
27048
+ const referenceProps = getReferenceProps({
27049
+ ...otherProps,
27050
+ ...child.props
27051
+ });
27052
+ return cloneElement(child, {
27053
+ ...referenceProps,
27054
+ ref: mergedRef,
27055
+ className: cx(child.props.className, className) || void 0
27056
+ });
27057
+ }
27058
+ if (interaction === "rich") {
27059
+ return /* @__PURE__ */ jsx(
27060
+ Box,
27061
+ {
27062
+ as: "button",
27063
+ type: "button",
27064
+ ref: mergedRef,
27065
+ className: cx(classes.trigger, className),
27066
+ ...getReferenceProps(otherProps),
27067
+ children
27068
+ }
27069
+ );
27070
+ }
27071
+ return /* @__PURE__ */ jsx(
27072
+ Box,
27073
+ {
27074
+ as: "span",
27075
+ ref: mergedRef,
27076
+ tabIndex: 0,
27077
+ className: cx(classes.trigger, className),
27078
+ ...getReferenceProps(otherProps),
27079
+ children
27080
+ }
27081
+ );
27082
+ };
27083
+ const PopoverAnchor = (props) => {
27084
+ const {
27085
+ children,
27086
+ ref: consumerRef,
27087
+ ...rest
27088
+ } = props;
27089
+ const { refs, setHasAnchor } = usePopoverContext();
27090
+ useEffect(() => {
27091
+ setHasAnchor(true);
27092
+ return () => setHasAnchor(false);
27093
+ }, [setHasAnchor]);
27094
+ const childArray = Children.toArray(children);
27095
+ const onlyChild = childArray.length === 1 ? childArray[0] : null;
27096
+ const childRefProp = isValidElement(onlyChild) ? onlyChild.props.ref : void 0;
27097
+ const mergedRef = useMergeRefs([
27098
+ consumerRef,
27099
+ childRefProp,
27100
+ refs.setPositionReference
27101
+ ]);
27102
+ if (isValidElement(onlyChild)) {
27103
+ const child = onlyChild;
27104
+ return cloneElement(child, {
27105
+ ...rest,
27106
+ ref: mergedRef
27107
+ });
27108
+ }
27109
+ return /* @__PURE__ */ jsx(Box, { as: "span", display: "inline", ...rest, ref: mergedRef, children });
27110
+ };
27111
+ const PopoverContent = (props) => {
27112
+ const { children, ref, ...rest } = props;
27113
+ const [className, otherProps] = splitProps(rest);
27114
+ const {
27115
+ open,
27116
+ interaction,
27117
+ showArrow,
27118
+ size: size2,
27119
+ tone,
27120
+ floatingContext,
27121
+ floatingStyles,
27122
+ domReference,
27123
+ getFloatingProps,
27124
+ setFloatingRef,
27125
+ arrowRef,
27126
+ titleId,
27127
+ descriptionId
27128
+ } = usePopoverContext();
27129
+ const floatingLayer = useFloatingLayer();
27130
+ const mergedRef = useMergeRefs([ref, setFloatingRef]);
27131
+ const classes = popover({ size: size2, tone, layer: floatingLayer });
27132
+ const isRich = interaction === "rich";
27133
+ if (!open) {
27134
+ return null;
27135
+ }
27136
+ const arrowFill = token.var("colors.surface.overlay");
27137
+ const panel = /* @__PURE__ */ jsxs(
27138
+ Box,
27139
+ {
27140
+ ...dsComponent("PopoverContent"),
27141
+ ref: mergedRef,
27142
+ className: cx(classes.content, className),
27143
+ "aria-labelledby": titleId,
27144
+ "aria-describedby": descriptionId,
27145
+ ...getFloatingProps(otherProps),
27146
+ style: floatingStyles,
27147
+ children: [
27148
+ children,
27149
+ showArrow && /* @__PURE__ */ jsx(
27150
+ FloatingArrow,
27151
+ {
27152
+ ref: arrowRef,
27153
+ context: floatingContext,
27154
+ fill: arrowFill,
27155
+ stroke: token.var("colors.border"),
27156
+ strokeWidth: 1
27157
+ }
27158
+ )
27159
+ ]
27160
+ }
27161
+ );
27162
+ return /* @__PURE__ */ jsx(FloatingPortal, { children: /* @__PURE__ */ jsx(DsChainPortalRoot, { reference: domReference, children: isRich ? /* @__PURE__ */ jsx(
27163
+ FloatingFocusManager,
27164
+ {
27165
+ context: floatingContext,
27166
+ modal: true,
27167
+ returnFocus: true,
27168
+ children: panel
27169
+ }
27170
+ ) : panel }) });
27171
+ };
27172
+ const PopoverClose = (props) => {
27173
+ const { labels } = useLocale();
27174
+ const { altText = labels.closePopover, onClick, ...rest } = props;
27175
+ const [className, otherProps] = splitProps(rest);
27176
+ const { setOpen } = usePopoverContext();
27177
+ const classes = popover();
27178
+ return /* @__PURE__ */ jsx(
27179
+ IconButton,
27180
+ {
27181
+ variant: "ghost",
27182
+ size: "sm",
27183
+ iconName: "x",
27184
+ altText,
27185
+ "aria-label": altText,
27186
+ className: cx(classes.close, className),
27187
+ onClick: (event) => {
27188
+ onClick == null ? void 0 : onClick(event);
27189
+ setOpen(false);
27190
+ },
27191
+ ...otherProps
27192
+ }
27193
+ );
27194
+ };
27195
+ const PopoverHeader = (props) => {
27196
+ const { children, ...rest } = props;
27197
+ const [className, otherProps] = splitProps(rest);
27198
+ const classes = popover();
27199
+ return /* @__PURE__ */ jsx(Box, { className: cx(classes.header, className), ...otherProps, children });
27200
+ };
27201
+ const toneIconNames = {
27202
+ note: "note",
27203
+ tip: "info",
27204
+ warning: "warning",
27205
+ important: "flag",
27206
+ caution: "warning"
27207
+ };
27208
+ const toneIconColors = {
27209
+ note: "icon.subtle",
27210
+ tip: "icon.info",
27211
+ warning: "icon.warning",
27212
+ important: "icon.danger",
27213
+ caution: "icon.warning"
27214
+ };
27215
+ const PopoverTitle = (props) => {
27216
+ const { children, showToneIcon = true, id: idProp, ...rest } = props;
27217
+ const [className, otherProps] = splitProps(rest);
27218
+ const { tone, size: size2, setTitleId } = usePopoverContext();
27219
+ const generatedId = useId$1();
27220
+ const titleId = idProp ?? generatedId;
27221
+ const classes = popover({ size: size2, tone });
27222
+ useEffect(() => {
27223
+ setTitleId(titleId);
27224
+ return () => setTitleId(void 0);
27225
+ }, [setTitleId, titleId]);
27226
+ return /* @__PURE__ */ jsxs(
27227
+ Box,
27228
+ {
27229
+ as: "div",
27230
+ id: titleId,
27231
+ className: cx(classes.title, className),
27232
+ ...otherProps,
27233
+ children: [
27234
+ showToneIcon && tone && /* @__PURE__ */ jsx(Box, { className: classes.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ jsx(
27235
+ Icon,
27236
+ {
27237
+ name: toneIconNames[tone],
27238
+ size: "16",
27239
+ fill: toneIconColors[tone]
27240
+ }
27241
+ ) }),
27242
+ children
27243
+ ]
27244
+ }
27245
+ );
27246
+ };
27247
+ const PopoverDescription = (props) => {
27248
+ const { children, id: idProp, ...rest } = props;
27249
+ const [className, otherProps] = splitProps(rest);
27250
+ const { size: size2, setDescriptionId } = usePopoverContext();
27251
+ const generatedId = useId$1();
27252
+ const descriptionId = idProp ?? generatedId;
27253
+ const classes = popover({ size: size2 });
27254
+ useEffect(() => {
27255
+ setDescriptionId(descriptionId);
27256
+ return () => setDescriptionId(void 0);
27257
+ }, [descriptionId, setDescriptionId]);
27258
+ return /* @__PURE__ */ jsx(
27259
+ Box,
27260
+ {
27261
+ as: "div",
27262
+ id: descriptionId,
27263
+ className: cx(classes.description, className),
27264
+ ...otherProps,
27265
+ children
27266
+ }
27267
+ );
27268
+ };
27269
+ const PopoverBody = (props) => {
27270
+ const { children, ...rest } = props;
27271
+ const [className, otherProps] = splitProps(rest);
27272
+ const { size: size2 } = usePopoverContext();
27273
+ const classes = popover({ size: size2 });
27274
+ return /* @__PURE__ */ jsx(Box, { className: cx(classes.body, className), ...otherProps, children });
27275
+ };
27276
+ const PopoverMedia = (props) => {
27277
+ const { children, ...rest } = props;
27278
+ const [className, otherProps] = splitProps(rest);
27279
+ const classes = popover();
27280
+ return /* @__PURE__ */ jsx(Box, { className: cx(classes.media, className), ...otherProps, children });
27281
+ };
27282
+ const PopoverFooter = (props) => {
27283
+ const { children, ...rest } = props;
27284
+ const [className, otherProps] = splitProps(rest);
27285
+ const classes = popover();
27286
+ return /* @__PURE__ */ jsx(Box, { className: cx(classes.footer, className), ...otherProps, children });
27287
+ };
27288
+ const PopoverArrow = (props) => {
27289
+ const { fill, stroke } = props;
27290
+ const { floatingContext, arrowRef } = usePopoverContext();
27291
+ return /* @__PURE__ */ jsx(
27292
+ FloatingArrow,
27293
+ {
27294
+ ref: arrowRef,
27295
+ context: floatingContext,
27296
+ fill: fill ?? token.var("colors.surface.overlay"),
27297
+ stroke: stroke ?? token.var("colors.border"),
27298
+ strokeWidth: 1
27299
+ }
27300
+ );
27301
+ };
26802
27302
  const useToast = () => useToastApi();
26803
27303
  export {
26804
27304
  Alert,
@@ -26863,6 +27363,18 @@ export {
26863
27363
  ModalWrapper,
26864
27364
  Option,
26865
27365
  PageBanner,
27366
+ Popover,
27367
+ PopoverAnchor,
27368
+ PopoverArrow,
27369
+ PopoverBody,
27370
+ PopoverClose,
27371
+ PopoverContent,
27372
+ PopoverDescription,
27373
+ PopoverFooter,
27374
+ PopoverHeader,
27375
+ PopoverMedia,
27376
+ PopoverTitle,
27377
+ PopoverTrigger,
26866
27378
  Radio,
26867
27379
  RadioGroup,
26868
27380
  RadioInput,
@@ -26917,6 +27429,7 @@ export {
26917
27429
  useMenuRootContext,
26918
27430
  useModalWrapperContext,
26919
27431
  useOverflowItems,
27432
+ usePopoverContext,
26920
27433
  useTabPanelActive,
26921
27434
  useTabsContext,
26922
27435
  useTheme,