@uniformdev/design-system 19.159.1-alpha.16 → 19.159.1-alpha.27

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/esm/index.js CHANGED
@@ -7,7 +7,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
7
7
  /* @__PURE__ */ jsx2(
8
8
  "link",
9
9
  {
10
- href: "https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Quantico:wght@700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap",
10
+ href: "https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap",
11
11
  rel: "stylesheet"
12
12
  }
13
13
  ),
@@ -151,7 +151,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
151
151
  /* font family */
152
152
  --ff-base: 'DM Sans', sans-serif;
153
153
  --ff-heading: 'Quantico', sans-serif;
154
- --ff-mono: 'Space Mono', monospace;
154
+ --ff-mono: 'DM Mono', monospace;
155
155
 
156
156
  /* max text width */
157
157
  --prose: 65ch;
@@ -177,6 +177,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
177
177
  --rounded-sm: 0.125rem; /* 2px */
178
178
  --rounded-base: 0.25rem; /* 4px */
179
179
  --rounded-md: 0.375rem; /* 6px */
180
+ --rounded-lg: 0.5rem; /* 8px */
180
181
 
181
182
  /* anything below here should be removed as its not in our style guide */
182
183
  --rounded-xl: 0.75rem;
@@ -12201,15 +12202,18 @@ import { CgChevronDown as CgChevronDown3 } from "@react-icons/all-files/cg/CgChe
12201
12202
  import { css as css24 } from "@emotion/react";
12202
12203
  import { CgChevronDown } from "@react-icons/all-files/cg/CgChevronDown";
12203
12204
  import { jsx as jsx25, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
12204
- var buttonStyle = css24`
12205
+ var buttonStyle = (bgColor) => css24`
12205
12206
  border: 0;
12206
- background-color: white;
12207
+ background-color: ${bgColor};
12207
12208
  display: block;
12208
12209
  font-size: var(--fs-sm);
12209
12210
  line-height: 1.5;
12211
+ transition: background-color var(--duration-fast) var(--timing-ease-out),
12212
+ outline var(--duration-fast) var(--timing-ease-out);
12213
+ outline: 1px solid transparent;
12210
12214
 
12211
12215
  &:hover {
12212
- outline: 1px solid var(--gray-300);
12216
+ outline-color: var(--gray-300);
12213
12217
  background-color: var(--gray-100);
12214
12218
  }
12215
12219
 
@@ -12217,8 +12221,12 @@ var buttonStyle = css24`
12217
12221
  color: var(--gray-400);
12218
12222
  }
12219
12223
  `;
12220
- function DropdownStyleMenuTrigger({ children, ...buttonProps }) {
12221
- return /* @__PURE__ */ jsx25("button", { ...buttonProps, css: buttonStyle, type: "button", children: /* @__PURE__ */ jsxs13(HorizontalRhythm, { align: "center", gap: "xs", children: [
12224
+ function DropdownStyleMenuTrigger({
12225
+ bgColor = "var(--white)",
12226
+ children,
12227
+ ...buttonProps
12228
+ }) {
12229
+ return /* @__PURE__ */ jsx25("button", { ...buttonProps, css: buttonStyle(bgColor), type: "button", children: /* @__PURE__ */ jsxs13(HorizontalRhythm, { align: "center", gap: "xs", children: [
12222
12230
  /* @__PURE__ */ jsx25("div", { children }),
12223
12231
  /* @__PURE__ */ jsx25(CgChevronDown, { size: "1rem" })
12224
12232
  ] }) });
@@ -12446,19 +12454,14 @@ var Menu = React7.forwardRef(function Menu2({
12446
12454
  "data-testid": testId != null ? testId : "more-menu",
12447
12455
  hideOnHoverOutside: (event) => {
12448
12456
  var _a;
12449
- if (!menu.parent)
12450
- return false;
12457
+ if (!menu.parent) return false;
12451
12458
  const { contentElement, anchorElement } = menu.getState();
12452
12459
  const [target] = event.composedPath();
12453
- if (!target)
12454
- return false;
12460
+ if (!target) return false;
12455
12461
  const activeElement = (_a = target.ownerDocument) == null ? void 0 : _a.activeElement;
12456
- if (anchorElement == null ? void 0 : anchorElement.contains(target))
12457
- return false;
12458
- if (contentElement == null ? void 0 : contentElement.contains(target))
12459
- return false;
12460
- if (activeElement && target.contains(activeElement))
12461
- return false;
12462
+ if (anchorElement == null ? void 0 : anchorElement.contains(target)) return false;
12463
+ if (contentElement == null ? void 0 : contentElement.contains(target)) return false;
12464
+ if (activeElement && target.contains(activeElement)) return false;
12462
12465
  return true;
12463
12466
  },
12464
12467
  children: disableAutoSeparatorManagement ? children : filterMenuSeparators(children)
@@ -13279,8 +13282,7 @@ var InputInlineSelect = ({
13279
13282
  "aria-expanded": menuVisible,
13280
13283
  css: inlineSelectBtn,
13281
13284
  onClick: () => {
13282
- if (!disabled2)
13283
- setMenuVisible((prev) => !prev);
13285
+ if (!disabled2) setMenuVisible((prev) => !prev);
13284
13286
  },
13285
13287
  disabled: disabled2,
13286
13288
  ...props,
@@ -14139,6 +14141,7 @@ var container = css40`
14139
14141
  --calendar-cell-size: 1.8rem;
14140
14142
  width: fit-content;
14141
14143
  max-width: 100%;
14144
+ margin: 0 auto;
14142
14145
  `;
14143
14146
  var header = css40`
14144
14147
  display: flex;
@@ -14884,6 +14887,7 @@ var ChipMultiline = css48`
14884
14887
  padding-inline: var(--spacing-sm);
14885
14888
  `;
14886
14889
  var ChipThemeAccentLight = css48`
14890
+ --outline-color: var(--accent-light);
14887
14891
  background: var(--accent-light);
14888
14892
  color: var(--typography-base);
14889
14893
 
@@ -14909,6 +14913,7 @@ var ChipThemeAccentLight = css48`
14909
14913
  }
14910
14914
  `;
14911
14915
  var ChipThemeAccentDark = css48`
14916
+ --outline-color: var(--accent-dark);
14912
14917
  background: var(--accent-dark);
14913
14918
  color: var(--white);
14914
14919
 
@@ -14930,6 +14935,7 @@ var ChipThemeAccentDark = css48`
14930
14935
  }
14931
14936
  `;
14932
14937
  var ChipAltThemeAccentLight = css48`
14938
+ --outline-color: var(--accent-alt-light);
14933
14939
  background: var(--accent-alt-light);
14934
14940
  color: var(--typography-base);
14935
14941
 
@@ -14955,6 +14961,7 @@ var ChipAltThemeAccentLight = css48`
14955
14961
  }
14956
14962
  `;
14957
14963
  var ChipAltThemeAccentDark = css48`
14964
+ --outline-color: var(--accent-alt-dark);
14958
14965
  background: var(--accent-alt-dark);
14959
14966
  color: var(--white);
14960
14967
 
@@ -14976,6 +14983,7 @@ var ChipAltThemeAccentDark = css48`
14976
14983
  }
14977
14984
  `;
14978
14985
  var ChipThemeNeutralLight = css48`
14986
+ --outline-color: var(--gray-300);
14979
14987
  background: var(--gray-100);
14980
14988
  color: var(--typography-base);
14981
14989
  :where([role='button']) {
@@ -14986,6 +14994,7 @@ var ChipThemeNeutralLight = css48`
14986
14994
  }
14987
14995
  `;
14988
14996
  var ChipThemeNeutralDark = css48`
14997
+ --outline-color: var(--gray-700);
14989
14998
  background: var(--gray-700);
14990
14999
  color: var(--white);
14991
15000
  :where([role='button']) {
@@ -15005,6 +15014,15 @@ var ChipActionButton = css48`
15005
15014
  border-radius: 0 var(--rounded-full) var(--rounded-full) 0;
15006
15015
  padding: 0;
15007
15016
  `;
15017
+ var ChipOutlined = css48`
15018
+ background: var(--white);
15019
+ color: var(--typography-light);
15020
+ box-shadow: inset 0 0 0 1px var(--outline-color);
15021
+
15022
+ > [role='separator'] {
15023
+ border-color: var(--outline-color);
15024
+ }
15025
+ `;
15008
15026
 
15009
15027
  // src/components/Chip/Chip.tsx
15010
15028
  import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs38 } from "@emotion/react/jsx-runtime";
@@ -15021,6 +15039,7 @@ var Chip = ({
15021
15039
  text,
15022
15040
  size = "sm",
15023
15041
  theme = "accent-light",
15042
+ variant = "solid",
15024
15043
  chipAction,
15025
15044
  as = "span",
15026
15045
  ...props
@@ -15031,14 +15050,26 @@ var Chip = ({
15031
15050
  md: ChipMedium
15032
15051
  };
15033
15052
  const ElementType = as;
15034
- return /* @__PURE__ */ jsxs38(ElementType, { css: [ChipContainer, chipSize[size], chipTheme[theme]], ...props, children: [
15035
- icon ? /* @__PURE__ */ jsxs38(Fragment9, { children: [
15036
- /* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
15037
- /* @__PURE__ */ jsx61("span", { role: "separator", css: ChipSeparator })
15038
- ] }) : null,
15039
- /* @__PURE__ */ jsx61("span", { css: ChipText, children: text }),
15040
- chipAction
15041
- ] });
15053
+ return /* @__PURE__ */ jsxs38(
15054
+ ElementType,
15055
+ {
15056
+ css: [
15057
+ ChipContainer,
15058
+ chipSize[size],
15059
+ chipTheme[theme],
15060
+ variant === "outlined" ? ChipOutlined : void 0
15061
+ ],
15062
+ ...props,
15063
+ children: [
15064
+ icon ? /* @__PURE__ */ jsxs38(Fragment9, { children: [
15065
+ /* @__PURE__ */ jsx61("span", { role: "presentation", css: [ChipIcon], children: /* @__PURE__ */ jsx61(Icon, { icon, iconColor: "currentColor", size: "1rem" }) }),
15066
+ /* @__PURE__ */ jsx61("span", { role: "separator", css: ChipSeparator })
15067
+ ] }) : null,
15068
+ /* @__PURE__ */ jsx61("span", { css: ChipText, children: text }),
15069
+ chipAction
15070
+ ]
15071
+ }
15072
+ );
15042
15073
  };
15043
15074
  var DismissibleChipAction = ({ onDismiss, ...props }) => {
15044
15075
  return /* @__PURE__ */ jsx61(
@@ -15300,12 +15331,21 @@ var trigger = css53`
15300
15331
  var popover = css53`
15301
15332
  padding: var(--spacing-md);
15302
15333
  max-width: none;
15303
- gap: var(--spacing-md);
15304
- grid-template-columns: 0.8fr 1fr;
15305
- grid-template-rows: 1fr 1fr;
15334
+ container-type: inline-size;
15335
+ width: 100%;
15336
+ `;
15337
+ var popoverInnerContent = css53`
15338
+ display: grid;
15339
+ gap: var(--spacing-base);
15306
15340
 
15307
- [data-variant='date'] & {
15308
- grid-template-rows: 1fr;
15341
+ ${cq("360px")} {
15342
+ grid-template-columns: 0.8fr 1fr;
15343
+ grid-template-rows: 1fr 1fr;
15344
+ gap: var(--spacing-md);
15345
+
15346
+ [data-variant='date'] & {
15347
+ grid-template-rows: 1fr;
15348
+ }
15309
15349
  }
15310
15350
  `;
15311
15351
  var calendarSection = css53`
@@ -15324,6 +15364,15 @@ var timeSection = css53`
15324
15364
  var tzSection = css53`
15325
15365
  align-self: stretch;
15326
15366
  `;
15367
+ var datePart = css53`
15368
+ text-overflow: ellipsis;
15369
+ overflow: hidden;
15370
+ white-space: nowrap;
15371
+ `;
15372
+ var datePartButton = css53`
15373
+ // this allows the button to be as wide as the text
15374
+ min-width: 0;
15375
+ `;
15327
15376
 
15328
15377
  // src/components/DateTimePicker/DateTimePickerSummary.tsx
15329
15378
  import { jsx as jsx65, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
@@ -15361,10 +15410,10 @@ function DateTimePickerSummary({
15361
15410
  }
15362
15411
  }
15363
15412
  }
15364
- const datePart = (value == null ? void 0 : value.datetime) ? dateFormat.format(new Date(value.datetime)) : null;
15413
+ const datePart2 = (value == null ? void 0 : value.datetime) ? dateFormat.format(new Date(value.datetime)) : null;
15365
15414
  const timePart = (value == null ? void 0 : value.datetime) ? timeFormat.format(new Date(value.datetime)) : null;
15366
- return datePart ? /* @__PURE__ */ jsxs40("span", { children: [
15367
- /* @__PURE__ */ jsx65("em", { css: inputLabelFocal, children: datePart }),
15415
+ return datePart2 ? /* @__PURE__ */ jsxs40("span", { css: datePart, children: [
15416
+ /* @__PURE__ */ jsx65("em", { css: inputLabelFocal, children: datePart2 }),
15368
15417
  !!timePart && `, ${timePart}`,
15369
15418
  !!(value == null ? void 0 : value.timeZone) && timeZoneWasValid && ` in ${value == null ? void 0 : value.timeZone}`
15370
15419
  ] }) : /* @__PURE__ */ jsx65("span", { children: placeholder });
@@ -15550,7 +15599,7 @@ var DateTimePicker = ({
15550
15599
  PopoverDisclosure,
15551
15600
  {
15552
15601
  ...popover2,
15553
- css: inputLabel,
15602
+ css: datePartButton,
15554
15603
  as: Button,
15555
15604
  buttonType: "ghostUnimportant",
15556
15605
  disabled: disabled2,
@@ -15573,36 +15622,48 @@ var DateTimePicker = ({
15573
15622
  }
15574
15623
  ),
15575
15624
  /* @__PURE__ */ jsxs41(Popover2, { ...popover2, css: [Popover, popover], "aria-label": "Pick a date", children: [
15576
- /* @__PURE__ */ jsx66("div", { css: calendarSection, children: /* @__PURE__ */ jsx66(
15577
- Calendar,
15578
- {
15579
- value: draftDate == null ? void 0 : draftDate.toString(),
15580
- minValue: parsedMinVisible,
15581
- maxValue: parseMaxVisible,
15582
- timeZone: (draftTimeZone == null ? void 0 : draftTimeZone.value) || (parsedValue == null ? void 0 : parsedValue.timeZone) || getLocalTimeZone(),
15583
- onChange: handleDateChange,
15584
- "data-testid": `${testId}-calendar`
15585
- }
15586
- ) }),
15587
- variant !== "date" /* Date */ && /* @__PURE__ */ jsx66("div", { css: timeSection, children: /* @__PURE__ */ jsx66(
15588
- InputTime,
15589
- {
15590
- label: "Time",
15591
- value: draftTime == null ? void 0 : draftTime.toString(),
15592
- belowInputSlot: belowTimeInputSlot,
15593
- onChange: handleTimeChange
15594
- }
15595
- ) }),
15596
- /* @__PURE__ */ jsxs41("div", { css: tzSection, children: [
15597
- /* @__PURE__ */ jsx66(Label, { css: labelText, children: "Timezone" }),
15598
- /* @__PURE__ */ jsx66(
15599
- InputComboBox,
15625
+ /* @__PURE__ */ jsxs41("div", { css: popoverInnerContent, children: [
15626
+ /* @__PURE__ */ jsx66("div", { css: calendarSection, children: /* @__PURE__ */ jsx66(
15627
+ Calendar,
15600
15628
  {
15601
- value: draftTimeZone,
15602
- options: TIMEZONE_OPTIONS,
15603
- onChange: handleTimezoneChange
15629
+ value: draftDate == null ? void 0 : draftDate.toString(),
15630
+ minValue: parsedMinVisible,
15631
+ maxValue: parseMaxVisible,
15632
+ timeZone: (draftTimeZone == null ? void 0 : draftTimeZone.value) || (parsedValue == null ? void 0 : parsedValue.timeZone) || getLocalTimeZone(),
15633
+ onChange: handleDateChange,
15634
+ "data-testid": `${testId}-calendar`
15604
15635
  }
15605
- )
15636
+ ) }),
15637
+ variant !== "date" /* Date */ && /* @__PURE__ */ jsx66("div", { css: timeSection, children: /* @__PURE__ */ jsx66(
15638
+ InputTime,
15639
+ {
15640
+ label: "Time",
15641
+ value: draftTime == null ? void 0 : draftTime.toString(),
15642
+ belowInputSlot: belowTimeInputSlot,
15643
+ onChange: handleTimeChange
15644
+ }
15645
+ ) }),
15646
+ /* @__PURE__ */ jsxs41("div", { css: tzSection, children: [
15647
+ /* @__PURE__ */ jsx66(Label, { css: labelText, children: "Timezone" }),
15648
+ /* @__PURE__ */ jsx66(
15649
+ InputComboBox,
15650
+ {
15651
+ value: draftTimeZone,
15652
+ options: TIMEZONE_OPTIONS,
15653
+ onChange: handleTimezoneChange,
15654
+ menuPlacement: "auto",
15655
+ styles: {
15656
+ menu(base) {
15657
+ return {
15658
+ ...base,
15659
+ width: "fit-content",
15660
+ right: 0
15661
+ };
15662
+ }
15663
+ }
15664
+ }
15665
+ )
15666
+ ] })
15606
15667
  ] }),
15607
15668
  /* @__PURE__ */ jsxs41(HorizontalRhythm, { gap: "0", children: [
15608
15669
  /* @__PURE__ */ jsx66(Button, { buttonType: "secondary", onClick: handleSelectClick, children: "Select" }),
@@ -17745,6 +17806,7 @@ import {
17745
17806
  Popover as AriakitPopover,
17746
17807
  PopoverDisclosure as PopoverDisclosure2,
17747
17808
  PopoverProvider,
17809
+ usePopoverContext,
17748
17810
  usePopoverStore
17749
17811
  } from "@ariakit/react";
17750
17812
  import { useEffect as useEffect12 } from "react";
@@ -17783,6 +17845,10 @@ var Popover3 = ({
17783
17845
  /* @__PURE__ */ jsx97(AriakitPopover, { unmountOnHide: true, css: Popover, ...otherProps, "aria-label": ariaLabel, children })
17784
17846
  ] });
17785
17847
  };
17848
+ var usePopoverComponentContext = () => {
17849
+ const contextValue = usePopoverContext();
17850
+ return contextValue;
17851
+ };
17786
17852
 
17787
17853
  // src/components/MediaCard/MediaCard.styles.ts
17788
17854
  import { css as css76 } from "@emotion/react";
@@ -19881,8 +19947,7 @@ var getElementNodesInSelection = (selection) => {
19881
19947
  };
19882
19948
  var getAncestor = (node, predicate) => {
19883
19949
  let parent = node;
19884
- while (parent !== null && (parent = parent.getParent()) !== null && !predicate(parent))
19885
- ;
19950
+ while (parent !== null && (parent = parent.getParent()) !== null && !predicate(parent)) ;
19886
19951
  return parent;
19887
19952
  };
19888
19953
  var getSelectedNode = (selection) => {
@@ -21743,7 +21808,7 @@ var Skeleton = ({
21743
21808
  );
21744
21809
 
21745
21810
  // src/components/Switch/Switch.tsx
21746
- import * as React24 from "react";
21811
+ import { forwardRef as forwardRef24 } from "react";
21747
21812
 
21748
21813
  // src/components/Switch/Switch.styles.ts
21749
21814
  import { css as css100 } from "@emotion/react";
@@ -21756,7 +21821,7 @@ var SwitchInputContainer = css100`
21756
21821
  vertical-align: middle;
21757
21822
  user-select: none;
21758
21823
  `;
21759
- var SwitchInput = css100`
21824
+ var SwitchInput = (size) => css100`
21760
21825
  appearance: none;
21761
21826
  border-radius: var(--rounded-full);
21762
21827
  background-color: var(--white);
@@ -21764,15 +21829,16 @@ var SwitchInput = css100`
21764
21829
  cursor: pointer;
21765
21830
  position: absolute;
21766
21831
  display: block;
21767
- width: var(--spacing-md);
21768
- height: var(--spacing-md);
21832
+ width: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21833
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21834
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
21769
21835
  transition: transform var(--duration-fast) var(--timing-ease-out),
21770
21836
  background-color var(--duration-fast) var(--timing-ease-out),
21771
21837
  background-image var(--duration-fast) var(--timing-ease-out);
21772
21838
  z-index: var(--z-10);
21773
21839
 
21774
21840
  &:focus {
21775
- outline: 3px solid var(--gray-800);
21841
+ outline: 2px solid var(--gray-800);
21776
21842
  outline-offset: 2px;
21777
21843
  }
21778
21844
 
@@ -21802,12 +21868,12 @@ var SwitchInputDisabled = css100`
21802
21868
  cursor: not-allowed;
21803
21869
  }
21804
21870
  `;
21805
- var SwitchInputLabel = css100`
21871
+ var SwitchInputLabel = (size) => css100`
21806
21872
  align-items: center;
21807
21873
  color: var(--typography-base);
21808
21874
  display: inline-flex;
21809
21875
  line-height: 1.25;
21810
- padding-inline: var(--spacing-2xl) 0;
21876
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
21811
21877
 
21812
21878
  &:before {
21813
21879
  border-radius: var(--rounded-full);
@@ -21816,40 +21882,47 @@ var SwitchInputLabel = css100`
21816
21882
  cursor: pointer;
21817
21883
  display: block;
21818
21884
  overflow: hidden;
21819
- width: var(--spacing-xl);
21820
- height: var(--spacing-md);
21885
+ width: ${size === "sm" ? "var(--spacing-lg)" : "var(--spacing-xl)"};
21886
+ height: ${size === "sm" ? "var(--spacing-base)" : "var(--spacing-md)"};
21887
+ margin-top: ${size === "sm" ? "var(--spacing-xs)" : "none"};
21821
21888
  position: absolute;
21822
21889
  left: 0;
21823
21890
  top: 0;
21824
21891
  }
21825
21892
  `;
21826
- var SwitchText = css100`
21893
+ var SwitchText = (size) => css100`
21827
21894
  color: var(--gray-500);
21828
21895
  font-size: var(--fs-sm);
21829
- padding-inline: var(--spacing-2xl) 0;
21896
+ padding-inline: ${size === "sm" ? "var(--spacing-xl)" : "var(--spacing-2xl)"} 0;
21830
21897
  `;
21831
21898
 
21832
21899
  // src/components/Switch/Switch.tsx
21833
21900
  import { Fragment as Fragment21, jsx as jsx131, jsxs as jsxs87 } from "@emotion/react/jsx-runtime";
21834
- var Switch = React24.forwardRef(
21835
- ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
21901
+ var Switch = forwardRef24(
21902
+ ({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
21836
21903
  let additionalText = infoText;
21837
21904
  if (infoText && toggleText) {
21838
21905
  additionalText = inputProps.checked ? toggleText : infoText;
21839
21906
  }
21840
21907
  return /* @__PURE__ */ jsxs87(Fragment21, { children: [
21841
- /* @__PURE__ */ jsxs87("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
21842
- /* @__PURE__ */ jsx131("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
21843
- /* @__PURE__ */ jsx131("span", { css: SwitchInputLabel, children: label })
21844
- ] }),
21845
- additionalText ? /* @__PURE__ */ jsx131("p", { css: SwitchText, children: additionalText }) : null,
21908
+ /* @__PURE__ */ jsxs87(
21909
+ "label",
21910
+ {
21911
+ css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0],
21912
+ children: [
21913
+ /* @__PURE__ */ jsx131("input", { type: "checkbox", css: SwitchInput(switchSize), ...inputProps, ref }),
21914
+ /* @__PURE__ */ jsx131("span", { css: SwitchInputLabel(switchSize), children: label })
21915
+ ]
21916
+ }
21917
+ ),
21918
+ additionalText ? /* @__PURE__ */ jsx131("p", { css: SwitchText(switchSize), children: additionalText }) : null,
21846
21919
  children
21847
21920
  ] });
21848
21921
  }
21849
21922
  );
21850
21923
 
21851
21924
  // src/components/Table/Table.tsx
21852
- import * as React25 from "react";
21925
+ import * as React24 from "react";
21853
21926
 
21854
21927
  // src/components/Table/Table.styles.ts
21855
21928
  import { css as css101 } from "@emotion/react";
@@ -21888,37 +21961,37 @@ var tableCellHead = css101`
21888
21961
 
21889
21962
  // src/components/Table/Table.tsx
21890
21963
  import { jsx as jsx132 } from "@emotion/react/jsx-runtime";
21891
- var Table = React25.forwardRef(
21964
+ var Table = React24.forwardRef(
21892
21965
  ({ children, cellPadding, ...otherProps }, ref) => {
21893
21966
  return /* @__PURE__ */ jsx132("table", { ref, css: table({ cellPadding }), ...otherProps, children });
21894
21967
  }
21895
21968
  );
21896
- var TableHead = React25.forwardRef(
21969
+ var TableHead = React24.forwardRef(
21897
21970
  ({ children, ...otherProps }, ref) => {
21898
21971
  return /* @__PURE__ */ jsx132("thead", { ref, css: tableHead, ...otherProps, children });
21899
21972
  }
21900
21973
  );
21901
- var TableBody = React25.forwardRef(
21974
+ var TableBody = React24.forwardRef(
21902
21975
  ({ children, ...otherProps }, ref) => {
21903
21976
  return /* @__PURE__ */ jsx132("tbody", { ref, ...otherProps, children });
21904
21977
  }
21905
21978
  );
21906
- var TableFoot = React25.forwardRef(
21979
+ var TableFoot = React24.forwardRef(
21907
21980
  ({ children, ...otherProps }, ref) => {
21908
21981
  return /* @__PURE__ */ jsx132("tfoot", { ref, ...otherProps, children });
21909
21982
  }
21910
21983
  );
21911
- var TableRow = React25.forwardRef(
21984
+ var TableRow = React24.forwardRef(
21912
21985
  ({ children, ...otherProps }, ref) => {
21913
21986
  return /* @__PURE__ */ jsx132("tr", { ref, css: tableRow, ...otherProps, children });
21914
21987
  }
21915
21988
  );
21916
- var TableCellHead = React25.forwardRef(
21989
+ var TableCellHead = React24.forwardRef(
21917
21990
  ({ children, ...otherProps }, ref) => {
21918
21991
  return /* @__PURE__ */ jsx132("th", { ref, css: tableCellHead, ...otherProps, children });
21919
21992
  }
21920
21993
  );
21921
- var TableCellData = React25.forwardRef(
21994
+ var TableCellData = React24.forwardRef(
21922
21995
  ({ children, ...otherProps }, ref) => {
21923
21996
  return /* @__PURE__ */ jsx132("td", { ref, ...otherProps, children });
21924
21997
  }
@@ -21977,8 +22050,7 @@ var Tabs = ({
21977
22050
  ...props
21978
22051
  }) => {
21979
22052
  const selected = useMemo7(() => {
21980
- if (selectedId)
21981
- return selectedId;
22053
+ if (selectedId) return selectedId;
21982
22054
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
21983
22055
  }, [selectedId, useHashForState]);
21984
22056
  const tab = useAriakitTabStore({ ...props, selectOnMove: !manual, selectedId: selected });
@@ -22383,6 +22455,7 @@ export {
22383
22455
  useIconContext,
22384
22456
  useOutsideClick,
22385
22457
  useParameterShell,
22458
+ usePopoverComponentContext,
22386
22459
  useShortcut,
22387
22460
  functionalColors as utilityColors,
22388
22461
  warningIcon,