@norges-domstoler/dds-components 17.0.0 → 17.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -292,6 +292,7 @@ __export(src_exports, {
292
292
  SearchSuggestions: () => SearchSuggestions,
293
293
  Select: () => Select,
294
294
  SettingsIcon: () => SettingsIcon,
295
+ Skeleton: () => Skeleton,
295
296
  SkipToContent: () => SkipToContent,
296
297
  SmsIcon: () => SmsIcon,
297
298
  Spinner: () => Spinner,
@@ -810,7 +811,8 @@ var Input_default = {
810
811
  "input--tiny": "Input_input--tiny",
811
812
  "input--with-affix": "Input_input--with-affix",
812
813
  label: "Input_label",
813
- "char-counter": "Input_char-counter"
814
+ "char-counter": "Input_char-counter",
815
+ icon: "Input_icon"
814
816
  };
815
817
 
816
818
  // src/components/Typography/Caption/Caption.tsx
@@ -3246,7 +3248,7 @@ var isPropValid = /* @__PURE__ */ memoize(
3246
3248
  /* Z+1 */
3247
3249
  );
3248
3250
 
3249
- // ../../node_modules/.pnpm/styled-components@6.1.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
3251
+ // ../../node_modules/.pnpm/styled-components@6.1.13_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
3250
3252
  var import_react23 = __toESM(require("react"));
3251
3253
  var import_shallowequal = __toESM(require_shallowequal());
3252
3254
 
@@ -3842,11 +3844,11 @@ var unitlessKeys = {
3842
3844
  strokeWidth: 1
3843
3845
  };
3844
3846
 
3845
- // ../../node_modules/.pnpm/styled-components@6.1.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
3847
+ // ../../node_modules/.pnpm/styled-components@6.1.13_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.esm.js
3846
3848
  var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
3847
3849
  var m = "active";
3848
3850
  var y = "data-styled-version";
3849
- var v = "6.1.12";
3851
+ var v = "6.1.13";
3850
3852
  var g = "/*!sc*/\n";
3851
3853
  var S = "undefined" != typeof window && "HTMLElement" in window;
3852
3854
  var w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV);
@@ -9225,7 +9227,9 @@ var Select_default = {
9225
9227
  "container--disabled": "Select_container--disabled",
9226
9228
  "container--readonly": "Select_container--readonly",
9227
9229
  "inner-single-value": "Select_inner-single-value",
9228
- icon: "Select_icon",
9230
+ "icon--medium": "Select_icon--medium",
9231
+ "icon--small": "Select_icon--small",
9232
+ "icon--tiny": "Select_icon--tiny",
9229
9233
  control: "Select_control",
9230
9234
  "control--readonly": "Select_control--readonly",
9231
9235
  "dropdown-indicator": "Select_dropdown-indicator",
@@ -9292,22 +9296,37 @@ var typography = {
9292
9296
  var prefix2 = "dds-select";
9293
9297
  var control = {
9294
9298
  medium: {
9295
- paddingBlock: "var(--dds-spacing-x0-75)",
9296
- paddingInline: "var(--dds-spacing-x0-5) var(--dds-spacing-x0-75)",
9297
- ...optionTypography.medium
9299
+ base: {
9300
+ paddingBlock: "var(--dds-spacing-x0-75)",
9301
+ paddingLeft: "var(--dds-spacing-x0-75)",
9302
+ ...optionTypography.medium
9303
+ },
9304
+ hasIcon: {
9305
+ paddingLeft: "calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5))"
9306
+ }
9298
9307
  },
9299
9308
  small: {
9300
- paddingBlock: "var(--dds-spacing-x0-5)",
9301
- paddingInline: "var(--dds-spacing-x0-5) var(--dds-spacing-x0-75)",
9302
- ...optionTypography.small
9309
+ base: {
9310
+ paddingBlock: "var(--dds-spacing-x0-5)",
9311
+ paddingLeft: "var(--dds-spacing-x0-75)",
9312
+ ...optionTypography.small
9313
+ },
9314
+ hasIcon: {
9315
+ paddingLeft: "calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5))"
9316
+ }
9303
9317
  },
9304
9318
  tiny: {
9305
- paddingBlock: "var(--dds-spacing-x0-25)",
9306
- paddingInline: "var(--dds-spacing-x0-5) ",
9307
- ...optionTypography.tiny
9319
+ base: {
9320
+ paddingBlock: "var(--dds-spacing-x0-25)",
9321
+ paddingLeft: "var(--dds-spacing-x0-5)",
9322
+ ...optionTypography.tiny
9323
+ },
9324
+ hasIcon: {
9325
+ paddingLeft: "calc(var(--dds-spacing-x0-5) + var(--dds-icon-size-small) + var(--dds-spacing-x0-5))"
9326
+ }
9308
9327
  }
9309
9328
  };
9310
- var getCustomStyles = (size2, hasError, isReadOnly) => ({
9329
+ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
9311
9330
  control: (provided, state) => ({
9312
9331
  position: "relative",
9313
9332
  display: "flex",
@@ -9319,7 +9338,9 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9319
9338
  borderColor: "var(--dds-color-border-default)",
9320
9339
  backgroundColor: "var(--dds-color-surface-default)",
9321
9340
  transition: "box-shadow 0.2s, border-color 0.2s",
9322
- ...control[size2],
9341
+ paddingRight: "var(--dds-spacing-x0-5)",
9342
+ ...control[size2].base,
9343
+ ...hasIcon && control[size2].hasIcon,
9323
9344
  "&:hover": {
9324
9345
  ...!isReadOnly && hoverInputfield
9325
9346
  },
@@ -9503,6 +9524,16 @@ var {
9503
9524
  MultiValueRemove,
9504
9525
  Control
9505
9526
  } = import_react_select.components;
9527
+ var getIndicatorIconSize = (componentSize) => {
9528
+ switch (componentSize) {
9529
+ case "medium":
9530
+ return "medium";
9531
+ case "small":
9532
+ return "small";
9533
+ case "tiny":
9534
+ return "small";
9535
+ }
9536
+ };
9506
9537
  var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(Option, { ...props, children: [
9507
9538
  props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9508
9539
  props.children
@@ -9510,7 +9541,7 @@ var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime
9510
9541
  var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) });
9511
9542
  var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) : props.children }) });
9512
9543
  var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9513
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
9544
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
9514
9545
  var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9515
9546
  var DDSDropdownIndicator = (props, size2) => {
9516
9547
  const { className, ...rest } = props;
@@ -9519,7 +9550,7 @@ var DDSDropdownIndicator = (props, size2) => {
9519
9550
  {
9520
9551
  ...rest,
9521
9552
  className: cn(className, Select_default["dropdown-indicator"]),
9522
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) })
9553
+ children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
9523
9554
  }
9524
9555
  );
9525
9556
  };
@@ -9553,7 +9584,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9553
9584
  {
9554
9585
  icon,
9555
9586
  iconSize: getFormInputIconSize(componentSize),
9556
- className: Select_default.icon
9587
+ className: cn(Input_default.icon, Select_default[`icon--${componentSize}`])
9557
9588
  }
9558
9589
  ),
9559
9590
  props.children
@@ -9599,6 +9630,7 @@ function SelectInner(props, ref) {
9599
9630
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9600
9631
  const hasLabel = !!label;
9601
9632
  const hasErrorMessage = !!errorMessage;
9633
+ const hasIcon = !!icon;
9602
9634
  const showRequiredStyling = !!(required || ariaRequired);
9603
9635
  const tipId = derivativeIdGenerator(uniqueId, "tip");
9604
9636
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
@@ -9614,7 +9646,12 @@ function SelectInner(props, ref) {
9614
9646
  inputId: uniqueId,
9615
9647
  name: uniqueId,
9616
9648
  classNamePrefix: prefix2,
9617
- styles: getCustomStyles(componentSize, hasErrorMessage, readOnly),
9649
+ styles: getCustomStyles(
9650
+ componentSize,
9651
+ hasErrorMessage,
9652
+ hasIcon,
9653
+ readOnly
9654
+ ),
9618
9655
  filterOption: (option, inputValue) => {
9619
9656
  const { label: label2 } = option;
9620
9657
  return searchFilter(label2, inputValue) || inputValue === "";
@@ -10633,7 +10670,7 @@ var Search = (0, import_react108.forwardRef)(
10633
10670
  {
10634
10671
  icon: SearchIcon,
10635
10672
  iconSize: getIconSize(componentSize),
10636
- className: cn(Search_default["search-icon"])
10673
+ className: cn(Input_default.icon, Search_default["search-icon"])
10637
10674
  }
10638
10675
  ),
10639
10676
  /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
@@ -10657,7 +10694,6 @@ var Search = (0, import_react108.forwardRef)(
10657
10694
  "aria-expanded": context.showSuggestions,
10658
10695
  role: hasSuggestions ? "combobox" : void 0,
10659
10696
  className: cn(
10660
- Input_default.input,
10661
10697
  Search_default.input,
10662
10698
  Search_default[`input--${componentSize}`],
10663
10699
  typographyStyles_default[getTypographyCn(typographyTypes3[componentSize])]
@@ -11251,9 +11287,43 @@ var RadioButtonGroupInner = (props, ref) => {
11251
11287
  var RadioButtonGroup = (0, import_react116.forwardRef)(RadioButtonGroupInner);
11252
11288
  RadioButtonGroup.displayName = "RadioButtonGroup";
11253
11289
 
11254
- // src/components/SkipToContent/SkipToContent.tsx
11290
+ // src/components/Skeleton/Skeleton.tsx
11255
11291
  var import_react117 = require("react");
11256
11292
 
11293
+ // src/components/Skeleton/Skeleton.module.css
11294
+ var Skeleton_default = {
11295
+ ddsSkeletonAnimation: "Skeleton_ddsSkeletonAnimation",
11296
+ container: "Skeleton_container"
11297
+ };
11298
+
11299
+ // src/components/Skeleton/Skeleton.tsx
11300
+ var import_jsx_runtime273 = require("react/jsx-runtime");
11301
+ var Skeleton = (0, import_react117.forwardRef)(
11302
+ (props, ref) => {
11303
+ const {
11304
+ width,
11305
+ height,
11306
+ borderRadius = "var(--dds-border-radius-surface)",
11307
+ className,
11308
+ style,
11309
+ ...rest
11310
+ } = props;
11311
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11312
+ "div",
11313
+ {
11314
+ ref,
11315
+ className: cn(className, Skeleton_default.container),
11316
+ style: { ...style, width, height, borderRadius },
11317
+ ...rest
11318
+ }
11319
+ );
11320
+ }
11321
+ );
11322
+ Skeleton.displayName = "Skeleton";
11323
+
11324
+ // src/components/SkipToContent/SkipToContent.tsx
11325
+ var import_react118 = require("react");
11326
+
11257
11327
  // src/components/SkipToContent/SkipToContent.module.css
11258
11328
  var SkipToContent_default = {
11259
11329
  wrapper: "SkipToContent_wrapper",
@@ -11261,8 +11331,8 @@ var SkipToContent_default = {
11261
11331
  };
11262
11332
 
11263
11333
  // src/components/SkipToContent/SkipToContent.tsx
11264
- var import_jsx_runtime273 = require("react/jsx-runtime");
11265
- var SkipToContent = (0, import_react117.forwardRef)(
11334
+ var import_jsx_runtime274 = require("react/jsx-runtime");
11335
+ var SkipToContent = (0, import_react118.forwardRef)(
11266
11336
  (props, ref) => {
11267
11337
  const {
11268
11338
  text = "Til hovedinnhold",
@@ -11277,12 +11347,12 @@ var SkipToContent = (0, import_react117.forwardRef)(
11277
11347
  style,
11278
11348
  ...restHtmlProps
11279
11349
  } = htmlProps;
11280
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11350
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11281
11351
  "div",
11282
11352
  {
11283
11353
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
11284
11354
  style: { ...style, top },
11285
- children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11355
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11286
11356
  Link,
11287
11357
  {
11288
11358
  ...getBaseHTMLProps(id, restHtmlProps, rest),
@@ -11299,7 +11369,7 @@ var SkipToContent = (0, import_react117.forwardRef)(
11299
11369
  SkipToContent.displayName = "SkipToContent";
11300
11370
 
11301
11371
  // src/components/SplitButton/SplitButton.tsx
11302
- var import_react118 = require("react");
11372
+ var import_react119 = require("react");
11303
11373
 
11304
11374
  // src/components/SplitButton/SplitButton.module.css
11305
11375
  var SplitButton_default = {
@@ -11310,8 +11380,8 @@ var SplitButton_default = {
11310
11380
  };
11311
11381
 
11312
11382
  // src/components/SplitButton/SplitButton.tsx
11313
- var import_jsx_runtime274 = require("react/jsx-runtime");
11314
- var SplitButton = (0, import_react118.forwardRef)(
11383
+ var import_jsx_runtime275 = require("react/jsx-runtime");
11384
+ var SplitButton = (0, import_react119.forwardRef)(
11315
11385
  (props, ref) => {
11316
11386
  const {
11317
11387
  size: size2,
@@ -11321,13 +11391,13 @@ var SplitButton = (0, import_react118.forwardRef)(
11321
11391
  className,
11322
11392
  ...rest
11323
11393
  } = props;
11324
- const [isOpen, setIsOpen] = (0, import_react118.useState)(false);
11394
+ const [isOpen, setIsOpen] = (0, import_react119.useState)(false);
11325
11395
  const buttonStyleProps = {
11326
11396
  purpose,
11327
11397
  size: size2
11328
11398
  };
11329
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11330
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11399
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11400
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11331
11401
  Button,
11332
11402
  {
11333
11403
  ...buttonStyleProps,
@@ -11336,8 +11406,8 @@ var SplitButton = (0, import_react118.forwardRef)(
11336
11406
  className: SplitButton_default.main
11337
11407
  }
11338
11408
  ),
11339
- /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11340
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11409
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11410
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11341
11411
  Button,
11342
11412
  {
11343
11413
  ...buttonStyleProps,
@@ -11350,7 +11420,7 @@ var SplitButton = (0, import_react118.forwardRef)(
11350
11420
  )
11351
11421
  }
11352
11422
  ),
11353
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(OverflowMenuButton, { ...item, children: item.children })) }) })
11423
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenuButton, { ...item, children: item.children })) }) })
11354
11424
  ] })
11355
11425
  ] });
11356
11426
  }
@@ -11358,41 +11428,41 @@ var SplitButton = (0, import_react118.forwardRef)(
11358
11428
  SplitButton.displayName = "SplitButton";
11359
11429
 
11360
11430
  // src/components/Table/collapsible/CollapsibleRow.tsx
11361
- var import_react128 = require("react");
11431
+ var import_react129 = require("react");
11362
11432
 
11363
11433
  // src/components/Table/collapsible/Table.context.tsx
11364
- var import_react119 = require("react");
11365
- var CollapsibleTableContext = (0, import_react119.createContext)({
11434
+ var import_react120 = require("react");
11435
+ var CollapsibleTableContext = (0, import_react120.createContext)({
11366
11436
  headerValues: [],
11367
11437
  definingColumnIndex: [0]
11368
11438
  });
11369
- var useCollapsibleTableContext = () => (0, import_react119.useContext)(CollapsibleTableContext);
11439
+ var useCollapsibleTableContext = () => (0, import_react120.useContext)(CollapsibleTableContext);
11370
11440
 
11371
11441
  // src/components/Table/normal/Body.tsx
11372
- var import_react120 = require("react");
11373
- var import_jsx_runtime275 = require("react/jsx-runtime");
11374
- var Body = (0, import_react120.forwardRef)(
11442
+ var import_react121 = require("react");
11443
+ var import_jsx_runtime276 = require("react/jsx-runtime");
11444
+ var Body = (0, import_react121.forwardRef)(
11375
11445
  (props, ref) => {
11376
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("tbody", { ref, ...props });
11446
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("tbody", { ref, ...props });
11377
11447
  }
11378
11448
  );
11379
11449
  Body.displayName = "Table.Body";
11380
11450
 
11381
11451
  // src/components/Table/normal/Cell.tsx
11382
- var import_react122 = require("react");
11452
+ var import_react123 = require("react");
11383
11453
 
11384
11454
  // src/components/Table/normal/Head.tsx
11385
- var import_react121 = require("react");
11386
- var import_jsx_runtime276 = require("react/jsx-runtime");
11387
- var Head = (0, import_react121.forwardRef)(
11455
+ var import_react122 = require("react");
11456
+ var import_jsx_runtime277 = require("react/jsx-runtime");
11457
+ var Head = (0, import_react122.forwardRef)(
11388
11458
  ({ children, ...rest }, ref) => {
11389
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(HeadContext.Provider, { value: true, children }) });
11459
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(HeadContext.Provider, { value: true, children }) });
11390
11460
  }
11391
11461
  );
11392
11462
  Head.displayName = "Table.Head";
11393
- var HeadContext = (0, import_react121.createContext)(false);
11463
+ var HeadContext = (0, import_react122.createContext)(false);
11394
11464
  function useIsInTableHead() {
11395
- const isInTableHead = (0, import_react121.useContext)(HeadContext);
11465
+ const isInTableHead = (0, import_react122.useContext)(HeadContext);
11396
11466
  return isInTableHead;
11397
11467
  }
11398
11468
 
@@ -11422,8 +11492,8 @@ var Table_default = {
11422
11492
  };
11423
11493
 
11424
11494
  // src/components/Table/normal/Cell.tsx
11425
- var import_jsx_runtime277 = require("react/jsx-runtime");
11426
- var Cell = (0, import_react122.forwardRef)(
11495
+ var import_jsx_runtime278 = require("react/jsx-runtime");
11496
+ var Cell = (0, import_react123.forwardRef)(
11427
11497
  ({
11428
11498
  children,
11429
11499
  type: _type,
@@ -11436,7 +11506,7 @@ var Cell = (0, import_react122.forwardRef)(
11436
11506
  const type = _type != null ? _type : isInHead ? "head" : "data";
11437
11507
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
11438
11508
  const isComplexLayout = layout === "text and icon";
11439
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
11509
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11440
11510
  "th",
11441
11511
  {
11442
11512
  ref,
@@ -11446,15 +11516,15 @@ var Cell = (0, import_react122.forwardRef)(
11446
11516
  !isComplexLayout && Table_default[`cell--${layout}`],
11447
11517
  Table_default["cell--head"]
11448
11518
  ),
11449
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: Table_default.cell__inner, children }) : children
11519
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: Table_default.cell__inner, children }) : children
11450
11520
  }
11451
- ) : /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
11521
+ ) : /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11452
11522
  "td",
11453
11523
  {
11454
11524
  ref,
11455
11525
  ...rest,
11456
11526
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
11457
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: Table_default.cell__inner, children }) : children
11527
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: Table_default.cell__inner, children }) : children
11458
11528
  }
11459
11529
  );
11460
11530
  }
@@ -11462,23 +11532,23 @@ var Cell = (0, import_react122.forwardRef)(
11462
11532
  Cell.displayName = "Table.Cell";
11463
11533
 
11464
11534
  // src/components/Table/normal/Foot.tsx
11465
- var import_react123 = require("react");
11466
- var import_jsx_runtime278 = require("react/jsx-runtime");
11467
- var Foot = (0, import_react123.forwardRef)(
11535
+ var import_react124 = require("react");
11536
+ var import_jsx_runtime279 = require("react/jsx-runtime");
11537
+ var Foot = (0, import_react124.forwardRef)(
11468
11538
  (props, ref) => {
11469
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("tfoot", { ref, ...props });
11539
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("tfoot", { ref, ...props });
11470
11540
  }
11471
11541
  );
11472
11542
  Foot.displayName = "Table.Foot";
11473
11543
 
11474
11544
  // src/components/Table/normal/Row.tsx
11475
- var import_react124 = require("react");
11476
- var import_jsx_runtime279 = require("react/jsx-runtime");
11477
- var Row = (0, import_react124.forwardRef)(
11545
+ var import_react125 = require("react");
11546
+ var import_jsx_runtime280 = require("react/jsx-runtime");
11547
+ var Row = (0, import_react125.forwardRef)(
11478
11548
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
11479
11549
  const isInHeader = useIsInTableHead();
11480
11550
  const type = _type != null ? _type : isInHeader ? "head" : "body";
11481
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11551
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
11482
11552
  "tr",
11483
11553
  {
11484
11554
  ref,
@@ -11501,23 +11571,23 @@ var Row = (0, import_react124.forwardRef)(
11501
11571
  Row.displayName = "Table.Row";
11502
11572
 
11503
11573
  // src/components/Table/normal/SortCell.tsx
11504
- var import_react125 = require("react");
11505
- var import_jsx_runtime280 = require("react/jsx-runtime");
11574
+ var import_react126 = require("react");
11575
+ var import_jsx_runtime281 = require("react/jsx-runtime");
11506
11576
  var makeSortIcon = (isSorted, sortOrder) => {
11507
11577
  if (!isSorted || !sortOrder) {
11508
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11578
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11509
11579
  }
11510
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11580
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11511
11581
  };
11512
- var SortCell = (0, import_react125.forwardRef)(
11513
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
11582
+ var SortCell = (0, import_react126.forwardRef)(
11583
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11514
11584
  Cell,
11515
11585
  {
11516
11586
  ref,
11517
11587
  type: "head",
11518
11588
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
11519
11589
  ...rest,
11520
- children: /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
11590
+ children: /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
11521
11591
  "button",
11522
11592
  {
11523
11593
  onClick,
@@ -11541,8 +11611,8 @@ var SortCell = (0, import_react125.forwardRef)(
11541
11611
  SortCell.displayName = "Table.SortCell";
11542
11612
 
11543
11613
  // src/components/Table/normal/Table.tsx
11544
- var import_react126 = require("react");
11545
- var import_jsx_runtime281 = require("react/jsx-runtime");
11614
+ var import_react127 = require("react");
11615
+ var import_jsx_runtime282 = require("react/jsx-runtime");
11546
11616
  function getDensityCn(value) {
11547
11617
  switch (value) {
11548
11618
  case "normal":
@@ -11552,7 +11622,7 @@ function getDensityCn(value) {
11552
11622
  return "extra-compact";
11553
11623
  }
11554
11624
  }
11555
- var Table = (0, import_react126.forwardRef)(
11625
+ var Table = (0, import_react127.forwardRef)(
11556
11626
  ({
11557
11627
  density = "normal",
11558
11628
  stickyHeader,
@@ -11561,7 +11631,7 @@ var Table = (0, import_react126.forwardRef)(
11561
11631
  children,
11562
11632
  ...rest
11563
11633
  }, ref) => {
11564
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11634
+ return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11565
11635
  "table",
11566
11636
  {
11567
11637
  ref,
@@ -11582,30 +11652,30 @@ var Table = (0, import_react126.forwardRef)(
11582
11652
  Table.displayName = "Table";
11583
11653
 
11584
11654
  // src/components/Table/normal/TableWrapper.tsx
11585
- var import_react127 = require("react");
11586
- var import_jsx_runtime282 = require("react/jsx-runtime");
11655
+ var import_react128 = require("react");
11656
+ var import_jsx_runtime283 = require("react/jsx-runtime");
11587
11657
  var TableWrapper = ({ className, ...rest }) => {
11588
- const [overflowX, setOverflowX] = (0, import_react127.useState)(false);
11589
- const [windowWidth, setWindowWidth] = (0, import_react127.useState)(window.innerWidth);
11658
+ const [overflowX, setOverflowX] = (0, import_react128.useState)(false);
11659
+ const [windowWidth, setWindowWidth] = (0, import_react128.useState)(window.innerWidth);
11590
11660
  function isOverflowingX(event) {
11591
11661
  return event.offsetWidth < event.scrollWidth;
11592
11662
  }
11593
- const wrapperRef = (0, import_react127.useRef)(null);
11594
- (0, import_react127.useEffect)(() => {
11663
+ const wrapperRef = (0, import_react128.useRef)(null);
11664
+ (0, import_react128.useEffect)(() => {
11595
11665
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
11596
11666
  setOverflowX(true);
11597
11667
  return;
11598
11668
  }
11599
11669
  setOverflowX(false);
11600
11670
  }, [windowWidth]);
11601
- (0, import_react127.useEffect)(() => {
11671
+ (0, import_react128.useEffect)(() => {
11602
11672
  function handleResize() {
11603
11673
  setWindowWidth(window.innerWidth);
11604
11674
  }
11605
11675
  window.addEventListener("resize", handleResize);
11606
11676
  return () => window.removeEventListener("resize", handleResize);
11607
11677
  });
11608
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11678
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11609
11679
  "div",
11610
11680
  {
11611
11681
  ref: wrapperRef,
@@ -11632,8 +11702,8 @@ Table2.Row = Row;
11632
11702
  Table2.Foot = Foot;
11633
11703
 
11634
11704
  // src/components/Table/collapsible/CollapsibleRow.tsx
11635
- var import_jsx_runtime283 = require("react/jsx-runtime");
11636
- var CollapsibleRow = (0, import_react128.forwardRef)(
11705
+ var import_jsx_runtime284 = require("react/jsx-runtime");
11706
+ var CollapsibleRow = (0, import_react129.forwardRef)(
11637
11707
  ({
11638
11708
  type: _type,
11639
11709
  className,
@@ -11646,8 +11716,8 @@ var CollapsibleRow = (0, import_react128.forwardRef)(
11646
11716
  const isInHead = useIsInTableHead();
11647
11717
  const type = _type != null ? _type : isInHead ? "head" : "body";
11648
11718
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
11649
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react128.useState)(true);
11650
- (0, import_react128.useEffect)(() => {
11719
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react129.useState)(true);
11720
+ (0, import_react129.useEffect)(() => {
11651
11721
  !isCollapsed && setChildrenCollapsed(true);
11652
11722
  }, [isCollapsed]);
11653
11723
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -11665,7 +11735,7 @@ var CollapsibleRow = (0, import_react128.forwardRef)(
11665
11735
  const collapsedHeaderValues = headerValues.filter(
11666
11736
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11667
11737
  );
11668
- const childrenArray = import_react128.Children.toArray(children);
11738
+ const childrenArray = import_react129.Children.toArray(children);
11669
11739
  const collapsedChildren = childrenArray.filter(
11670
11740
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11671
11741
  );
@@ -11674,33 +11744,33 @@ var CollapsibleRow = (0, import_react128.forwardRef)(
11674
11744
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11675
11745
  const id = derivativeIdGenerator(prefix3, index.toString());
11676
11746
  collapsibleIds.push(id);
11677
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(import_react128.Fragment, { children: [
11678
- /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11679
- (0, import_react128.isValidElement)(child) && (0, import_react128.cloneElement)(child, {
11747
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_react129.Fragment, { children: [
11748
+ /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11749
+ (0, import_react129.isValidElement)(child) && (0, import_react129.cloneElement)(child, {
11680
11750
  collapsibleProps: { isCollapsibleChild: true }
11681
11751
  })
11682
11752
  ] }, `DL-${index}`);
11683
11753
  }) : null;
11684
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11754
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11685
11755
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
11686
11756
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
11687
11757
  });
11688
11758
  const headerRow = () => {
11689
11759
  if (type !== "head" || !isCollapsed) return null;
11690
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(import_jsx_runtime283.Fragment, { children: [
11760
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11691
11761
  definingColumnCells,
11692
- /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11762
+ /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11693
11763
  "Utvid",
11694
- /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11764
+ /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11695
11765
  ] })
11696
11766
  ] }) });
11697
11767
  };
11698
11768
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
11699
11769
  const rowWithChevron = () => {
11700
11770
  if (type !== "body" || !isCollapsed) return null;
11701
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11771
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11702
11772
  definingColumnCells,
11703
- /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11773
+ /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11704
11774
  "button",
11705
11775
  {
11706
11776
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -11712,7 +11782,7 @@ var CollapsibleRow = (0, import_react128.forwardRef)(
11712
11782
  utilStyles_default["remove-button-styling"],
11713
11783
  focusable
11714
11784
  ),
11715
- children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11785
+ children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11716
11786
  AnimatedChevronUpDown,
11717
11787
  {
11718
11788
  isUp: childrenCollapsed ? false : true,
@@ -11724,28 +11794,28 @@ var CollapsibleRow = (0, import_react128.forwardRef)(
11724
11794
  ) })
11725
11795
  ] });
11726
11796
  };
11727
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(import_jsx_runtime283.Fragment, { children: [
11797
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11728
11798
  headerRow(),
11729
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(import_jsx_runtime283.Fragment, { children: [
11799
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11730
11800
  rowWithChevron(),
11731
11801
  childrenCollapsed ? null : collapsedRows
11732
11802
  ] })
11733
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Row, { ref, ...rowProps(), children });
11803
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ref, ...rowProps(), children });
11734
11804
  }
11735
11805
  );
11736
11806
  CollapsibleRow.displayName = "CollapsibleTable.Row";
11737
11807
 
11738
11808
  // src/components/Table/collapsible/CollapsibleTable.tsx
11739
- var import_react129 = require("react");
11740
- var import_jsx_runtime284 = require("react/jsx-runtime");
11741
- var CollapsibleTable = (0, import_react129.forwardRef)((props, ref) => {
11809
+ var import_react130 = require("react");
11810
+ var import_jsx_runtime285 = require("react/jsx-runtime");
11811
+ var CollapsibleTable = (0, import_react130.forwardRef)((props, ref) => {
11742
11812
  const {
11743
11813
  isCollapsed,
11744
11814
  headerValues,
11745
11815
  definingColumnIndex = [0],
11746
11816
  ...rest
11747
11817
  } = props;
11748
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11818
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11749
11819
  CollapsibleTableContext.Provider,
11750
11820
  {
11751
11821
  value: {
@@ -11753,7 +11823,7 @@ var CollapsibleTable = (0, import_react129.forwardRef)((props, ref) => {
11753
11823
  headerValues,
11754
11824
  definingColumnIndex
11755
11825
  },
11756
- children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Table2, { ref, ...rest })
11826
+ children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Table2, { ref, ...rest })
11757
11827
  }
11758
11828
  );
11759
11829
  });
@@ -11764,11 +11834,11 @@ var CollapsibleTable2 = CollapsibleTable;
11764
11834
  CollapsibleTable2.Row = CollapsibleRow;
11765
11835
 
11766
11836
  // src/components/Tabs/Tabs.tsx
11767
- var import_react131 = require("react");
11837
+ var import_react132 = require("react");
11768
11838
 
11769
11839
  // src/components/Tabs/Tabs.context.tsx
11770
- var import_react130 = require("react");
11771
- var TabsContext = (0, import_react130.createContext)({
11840
+ var import_react131 = require("react");
11841
+ var TabsContext = (0, import_react131.createContext)({
11772
11842
  activeTab: 0,
11773
11843
  tabsId: "",
11774
11844
  handleTabChange: () => null,
@@ -11778,7 +11848,7 @@ var TabsContext = (0, import_react130.createContext)({
11778
11848
  setHasTabFocus: () => null,
11779
11849
  tabContentDirection: "row"
11780
11850
  });
11781
- var useTabsContext = () => (0, import_react130.useContext)(TabsContext);
11851
+ var useTabsContext = () => (0, import_react131.useContext)(TabsContext);
11782
11852
 
11783
11853
  // src/components/Tabs/Tabs.module.css
11784
11854
  var Tabs_default = {
@@ -11795,8 +11865,8 @@ var Tabs_default = {
11795
11865
  };
11796
11866
 
11797
11867
  // src/components/Tabs/Tabs.tsx
11798
- var import_jsx_runtime285 = require("react/jsx-runtime");
11799
- var Tabs = (0, import_react131.forwardRef)((props, ref) => {
11868
+ var import_jsx_runtime286 = require("react/jsx-runtime");
11869
+ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11800
11870
  const {
11801
11871
  id,
11802
11872
  activeTab,
@@ -11808,17 +11878,17 @@ var Tabs = (0, import_react131.forwardRef)((props, ref) => {
11808
11878
  htmlProps,
11809
11879
  ...rest
11810
11880
  } = props;
11811
- const generatedId = (0, import_react131.useId)();
11881
+ const generatedId = (0, import_react132.useId)();
11812
11882
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
11813
- const [thisActiveTab, setActiveTab] = (0, import_react131.useState)(activeTab != null ? activeTab : 0);
11814
- const [hasTabFocus, setHasTabFocus] = (0, import_react131.useState)(false);
11815
- const tabListRef = (0, import_react131.useRef)(null);
11816
- const tabPanelsRef = (0, import_react131.useRef)(null);
11883
+ const [thisActiveTab, setActiveTab] = (0, import_react132.useState)(activeTab != null ? activeTab : 0);
11884
+ const [hasTabFocus, setHasTabFocus] = (0, import_react132.useState)(false);
11885
+ const tabListRef = (0, import_react132.useRef)(null);
11886
+ const tabPanelsRef = (0, import_react132.useRef)(null);
11817
11887
  const handleTabChange = (index) => {
11818
11888
  setActiveTab(index);
11819
11889
  onChange && onChange(index);
11820
11890
  };
11821
- (0, import_react131.useEffect)(() => {
11891
+ (0, import_react132.useEffect)(() => {
11822
11892
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
11823
11893
  setActiveTab(activeTab);
11824
11894
  }
@@ -11827,7 +11897,7 @@ var Tabs = (0, import_react131.forwardRef)((props, ref) => {
11827
11897
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11828
11898
  ["--dds-tabs-width"]: width
11829
11899
  };
11830
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11900
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
11831
11901
  TabsContext.Provider,
11832
11902
  {
11833
11903
  value: {
@@ -11840,7 +11910,7 @@ var Tabs = (0, import_react131.forwardRef)((props, ref) => {
11840
11910
  setHasTabFocus,
11841
11911
  tabContentDirection
11842
11912
  },
11843
- children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11913
+ children: /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
11844
11914
  "div",
11845
11915
  {
11846
11916
  ref,
@@ -11860,17 +11930,17 @@ var Tabs = (0, import_react131.forwardRef)((props, ref) => {
11860
11930
  Tabs.displayName = "Tabs";
11861
11931
 
11862
11932
  // src/components/Tabs/Tab.tsx
11863
- var import_react133 = require("react");
11933
+ var import_react134 = require("react");
11864
11934
 
11865
11935
  // src/components/Tabs/TabWidthContext.tsx
11866
- var import_react132 = require("react");
11867
- var import_jsx_runtime286 = require("react/jsx-runtime");
11868
- var TabContext = (0, import_react132.createContext)(null);
11936
+ var import_react133 = require("react");
11937
+ var import_jsx_runtime287 = require("react/jsx-runtime");
11938
+ var TabContext = (0, import_react133.createContext)(null);
11869
11939
  function TabWidthContextProvider({
11870
11940
  children,
11871
11941
  onChangeWidths
11872
11942
  }) {
11873
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
11943
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
11874
11944
  TabContext.Provider,
11875
11945
  {
11876
11946
  value: {
@@ -11894,16 +11964,16 @@ function TabWidthContextProvider({
11894
11964
  );
11895
11965
  }
11896
11966
  function useSetTabWidth(index, width) {
11897
- const context = (0, import_react132.useContext)(TabContext);
11898
- (0, import_react132.useLayoutEffect)(() => {
11967
+ const context = (0, import_react133.useContext)(TabContext);
11968
+ (0, import_react133.useLayoutEffect)(() => {
11899
11969
  context == null ? void 0 : context.updateWidth(index, width);
11900
11970
  return () => context == null ? void 0 : context.removeTab(index);
11901
11971
  }, [index, width]);
11902
11972
  }
11903
11973
 
11904
11974
  // src/components/Tabs/Tab.tsx
11905
- var import_jsx_runtime287 = require("react/jsx-runtime");
11906
- var Tab = (0, import_react133.forwardRef)((props, ref) => {
11975
+ var import_jsx_runtime288 = require("react/jsx-runtime");
11976
+ var Tab = (0, import_react134.forwardRef)((props, ref) => {
11907
11977
  const {
11908
11978
  active = false,
11909
11979
  icon,
@@ -11920,16 +11990,16 @@ var Tab = (0, import_react133.forwardRef)((props, ref) => {
11920
11990
  ...rest
11921
11991
  } = props;
11922
11992
  useSetTabWidth(index, width);
11923
- const itemRef = (0, import_react133.useRef)(null);
11993
+ const itemRef = (0, import_react134.useRef)(null);
11924
11994
  const combinedRef = useCombinedRef(ref, itemRef);
11925
11995
  const { tabContentDirection } = useTabsContext();
11926
- (0, import_react133.useEffect)(() => {
11996
+ (0, import_react134.useEffect)(() => {
11927
11997
  var _a;
11928
11998
  if (focus) {
11929
11999
  (_a = itemRef.current) == null ? void 0 : _a.focus();
11930
12000
  }
11931
12001
  }, [focus]);
11932
- const handleSelect = (0, import_react133.useCallback)(() => {
12002
+ const handleSelect = (0, import_react134.useCallback)(() => {
11933
12003
  if (setFocus && index) {
11934
12004
  setFocus(index);
11935
12005
  }
@@ -11942,7 +12012,7 @@ var Tab = (0, import_react133.forwardRef)((props, ref) => {
11942
12012
  handleSelect();
11943
12013
  onKeyDown && onKeyDown(e);
11944
12014
  };
11945
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
12015
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
11946
12016
  "button",
11947
12017
  {
11948
12018
  ...getBaseHTMLProps(
@@ -11965,8 +12035,8 @@ var Tab = (0, import_react133.forwardRef)((props, ref) => {
11965
12035
  onKeyDown: handleOnKeyDown,
11966
12036
  tabIndex: focus ? 0 : -1,
11967
12037
  children: [
11968
- icon && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(Icon, { icon, iconSize: "inherit" }),
11969
- /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("span", { children })
12038
+ icon && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Icon, { icon, iconSize: "inherit" }),
12039
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("span", { children })
11970
12040
  ]
11971
12041
  }
11972
12042
  );
@@ -11974,9 +12044,9 @@ var Tab = (0, import_react133.forwardRef)((props, ref) => {
11974
12044
  Tab.displayName = "Tab";
11975
12045
 
11976
12046
  // src/components/Tabs/TabList.tsx
11977
- var import_react134 = require("react");
11978
- var import_jsx_runtime288 = require("react/jsx-runtime");
11979
- var TabList = (0, import_react134.forwardRef)(
12047
+ var import_react135 = require("react");
12048
+ var import_jsx_runtime289 = require("react/jsx-runtime");
12049
+ var TabList = (0, import_react135.forwardRef)(
11980
12050
  ({ children, id, style, onFocus, ...rest }, ref) => {
11981
12051
  const {
11982
12052
  activeTab,
@@ -11987,11 +12057,11 @@ var TabList = (0, import_react134.forwardRef)(
11987
12057
  setHasTabFocus
11988
12058
  } = useTabsContext();
11989
12059
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
11990
- const childrenArray = import_react134.Children.toArray(children).length;
12060
+ const childrenArray = import_react135.Children.toArray(children).length;
11991
12061
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
11992
12062
  const combinedRef = useCombinedRef(ref, tabListRef);
11993
- const tabListChildren = import_react134.Children.map(children, (child, index) => {
11994
- return (0, import_react134.isValidElement)(child) && (0, import_react134.cloneElement)(child, {
12063
+ const tabListChildren = import_react135.Children.map(children, (child, index) => {
12064
+ return (0, import_react135.isValidElement)(child) && (0, import_react135.cloneElement)(child, {
11995
12065
  id: `${tabsId}-tab-${index}`,
11996
12066
  "aria-controls": `${tabsId}-panel-${index}`,
11997
12067
  active: activeTab === index,
@@ -12001,7 +12071,7 @@ var TabList = (0, import_react134.forwardRef)(
12001
12071
  onClick: () => handleTabChange(index)
12002
12072
  });
12003
12073
  });
12004
- const [widths, setWidths] = (0, import_react134.useState)([]);
12074
+ const [widths, setWidths] = (0, import_react135.useState)([]);
12005
12075
  const handleOnFocus = (event) => {
12006
12076
  setHasTabFocus(true);
12007
12077
  onFocus && onFocus(event);
@@ -12019,7 +12089,7 @@ var TabList = (0, import_react134.forwardRef)(
12019
12089
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12020
12090
  ["--dds-tab-widths"]: widths.join(" ")
12021
12091
  };
12022
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
12092
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
12023
12093
  "div",
12024
12094
  {
12025
12095
  ...rest,
@@ -12045,11 +12115,11 @@ var TabList = (0, import_react134.forwardRef)(
12045
12115
  TabList.displayName = "TabList";
12046
12116
 
12047
12117
  // src/components/Tabs/TabPanel.tsx
12048
- var import_react135 = require("react");
12049
- var import_jsx_runtime289 = require("react/jsx-runtime");
12050
- var TabPanel = (0, import_react135.forwardRef)(
12118
+ var import_react136 = require("react");
12119
+ var import_jsx_runtime290 = require("react/jsx-runtime");
12120
+ var TabPanel = (0, import_react136.forwardRef)(
12051
12121
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
12052
- return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
12122
+ return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
12053
12123
  "div",
12054
12124
  {
12055
12125
  ...getBaseHTMLProps(
@@ -12074,28 +12144,28 @@ var TabPanel = (0, import_react135.forwardRef)(
12074
12144
  TabPanel.displayName = "TabPanel";
12075
12145
 
12076
12146
  // src/components/Tabs/TabPanels.tsx
12077
- var import_react136 = require("react");
12078
- var import_jsx_runtime290 = require("react/jsx-runtime");
12079
- var TabPanels = (0, import_react136.forwardRef)(
12147
+ var import_react137 = require("react");
12148
+ var import_jsx_runtime291 = require("react/jsx-runtime");
12149
+ var TabPanels = (0, import_react137.forwardRef)(
12080
12150
  ({ children, ...rest }, ref) => {
12081
12151
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
12082
12152
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
12083
- const panelChildren = import_react136.Children.map(children, (child, index) => {
12153
+ const panelChildren = import_react137.Children.map(children, (child, index) => {
12084
12154
  const active = index === activeTab;
12085
- return (0, import_react136.isValidElement)(child) && (0, import_react136.cloneElement)(child, {
12155
+ return (0, import_react137.isValidElement)(child) && (0, import_react137.cloneElement)(child, {
12086
12156
  id: `${tabsId}-panel-${index}`,
12087
12157
  "aria-labelledby": `${tabsId}-tab-${index}`,
12088
12158
  active,
12089
12159
  "aria-expanded": active
12090
12160
  });
12091
12161
  });
12092
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12162
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12093
12163
  }
12094
12164
  );
12095
12165
  TabPanels.displayName = "TabPanels";
12096
12166
 
12097
12167
  // src/components/Tag/Tag.tsx
12098
- var import_react137 = require("react");
12168
+ var import_react138 = require("react");
12099
12169
 
12100
12170
  // src/components/Tag/Tag.module.css
12101
12171
  var Tag_default = {
@@ -12114,7 +12184,7 @@ var Tag_default = {
12114
12184
  };
12115
12185
 
12116
12186
  // src/components/Tag/Tag.tsx
12117
- var import_jsx_runtime291 = require("react/jsx-runtime");
12187
+ var import_jsx_runtime292 = require("react/jsx-runtime");
12118
12188
  var icons3 = {
12119
12189
  info: InfoIcon,
12120
12190
  danger: ErrorIcon,
@@ -12122,7 +12192,7 @@ var icons3 = {
12122
12192
  success: CheckCircledIcon,
12123
12193
  default: void 0
12124
12194
  };
12125
- var Tag = (0, import_react137.forwardRef)((props, ref) => {
12195
+ var Tag = (0, import_react138.forwardRef)((props, ref) => {
12126
12196
  const {
12127
12197
  text,
12128
12198
  purpose = "default",
@@ -12135,7 +12205,7 @@ var Tag = (0, import_react137.forwardRef)((props, ref) => {
12135
12205
  ...rest
12136
12206
  } = props;
12137
12207
  const icon = icons3[purpose];
12138
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(
12208
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12139
12209
  TextOverflowEllipsisWrapper,
12140
12210
  {
12141
12211
  ...getBaseHTMLProps(
@@ -12152,8 +12222,8 @@ var Tag = (0, import_react137.forwardRef)((props, ref) => {
12152
12222
  ),
12153
12223
  ref,
12154
12224
  children: [
12155
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon, iconSize: "small" }),
12156
- /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12225
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "small" }),
12226
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12157
12227
  ]
12158
12228
  }
12159
12229
  );
@@ -12162,7 +12232,7 @@ Tag.displayName = "Tag";
12162
12232
 
12163
12233
  // src/components/TextInput/TextInput.tsx
12164
12234
  var import_dds_design_tokens15 = require("@norges-domstoler/dds-design-tokens");
12165
- var import_react138 = require("react");
12235
+ var import_react139 = require("react");
12166
12236
 
12167
12237
  // src/components/TextInput/TextInput.module.css
12168
12238
  var TextInput_default = {
@@ -12177,7 +12247,6 @@ var TextInput_default = {
12177
12247
  "with-icon--small": "TextInput_with-icon--small",
12178
12248
  "with-icon--tiny": "TextInput_with-icon--tiny",
12179
12249
  "input--extended": "TextInput_input--extended",
12180
- icon: "TextInput_icon",
12181
12250
  "icon--medium": "TextInput_icon--medium",
12182
12251
  "icon--small": "TextInput_icon--small",
12183
12252
  "icon--tiny": "TextInput_icon--tiny",
@@ -12190,8 +12259,8 @@ var TextInput_default = {
12190
12259
  };
12191
12260
 
12192
12261
  // src/components/TextInput/TextInput.tsx
12193
- var import_jsx_runtime292 = require("react/jsx-runtime");
12194
- var TextInput = (0, import_react138.forwardRef)(
12262
+ var import_jsx_runtime293 = require("react/jsx-runtime");
12263
+ var TextInput = (0, import_react139.forwardRef)(
12195
12264
  ({
12196
12265
  label,
12197
12266
  disabled,
@@ -12217,14 +12286,14 @@ var TextInput = (0, import_react138.forwardRef)(
12217
12286
  suffix,
12218
12287
  ...rest
12219
12288
  }, ref) => {
12220
- const [text, setText] = (0, import_react138.useState)(
12289
+ const [text, setText] = (0, import_react139.useState)(
12221
12290
  getDefaultText(value, defaultValue)
12222
12291
  );
12223
- const prefixRef = (0, import_react138.useRef)(null);
12224
- const suffixRef = (0, import_react138.useRef)(null);
12225
- const [prefixLength, setPrefixLength] = (0, import_react138.useState)(0);
12226
- const [suffixLength, setSuffixLength] = (0, import_react138.useState)(0);
12227
- (0, import_react138.useLayoutEffect)(() => {
12292
+ const prefixRef = (0, import_react139.useRef)(null);
12293
+ const suffixRef = (0, import_react139.useRef)(null);
12294
+ const [prefixLength, setPrefixLength] = (0, import_react139.useState)(0);
12295
+ const [suffixLength, setSuffixLength] = (0, import_react139.useState)(0);
12296
+ (0, import_react139.useLayoutEffect)(() => {
12228
12297
  if (prefixRef.current) {
12229
12298
  setPrefixLength(prefixRef.current.offsetWidth);
12230
12299
  }
@@ -12238,7 +12307,7 @@ var TextInput = (0, import_react138.forwardRef)(
12238
12307
  onChange(event);
12239
12308
  }
12240
12309
  };
12241
- const generatedId = (0, import_react138.useId)();
12310
+ const generatedId = (0, import_react139.useId)();
12242
12311
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
12243
12312
  const hasErrorMessage = !!errorMessage;
12244
12313
  const hasTip = !!tip;
@@ -12280,21 +12349,21 @@ var TextInput = (0, import_react138.forwardRef)(
12280
12349
  const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens15.ddsTokens.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
12281
12350
  let extendedInput = null;
12282
12351
  if (hasIcon) {
12283
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12352
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12284
12353
  "div",
12285
12354
  {
12286
12355
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
12287
12356
  style: styleVariables,
12288
12357
  children: [
12289
- /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12358
+ /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12290
12359
  Icon,
12291
12360
  {
12292
12361
  icon,
12293
12362
  iconSize: getFormInputIconSize(componentSize),
12294
- className: cn(TextInput_default.icon, TextInput_default[`icon--${componentSize}`])
12363
+ className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
12295
12364
  }
12296
12365
  ),
12297
- /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12366
+ /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12298
12367
  StatefulInput,
12299
12368
  {
12300
12369
  ref,
@@ -12313,13 +12382,13 @@ var TextInput = (0, import_react138.forwardRef)(
12313
12382
  }
12314
12383
  );
12315
12384
  } else if (hasAffix) {
12316
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12385
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12317
12386
  "div",
12318
12387
  {
12319
12388
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
12320
12389
  style: styleVariables,
12321
12390
  children: [
12322
- prefix3 && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12391
+ prefix3 && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12323
12392
  "span",
12324
12393
  {
12325
12394
  ref: prefixRef,
@@ -12332,7 +12401,7 @@ var TextInput = (0, import_react138.forwardRef)(
12332
12401
  children: prefix3
12333
12402
  }
12334
12403
  ),
12335
- /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12404
+ /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12336
12405
  StatefulInput,
12337
12406
  {
12338
12407
  ref,
@@ -12347,7 +12416,7 @@ var TextInput = (0, import_react138.forwardRef)(
12347
12416
  className: TextInput_default["input--extended"]
12348
12417
  }
12349
12418
  ),
12350
- suffix && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12419
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12351
12420
  "span",
12352
12421
  {
12353
12422
  ref: suffixRef,
@@ -12364,7 +12433,7 @@ var TextInput = (0, import_react138.forwardRef)(
12364
12433
  }
12365
12434
  );
12366
12435
  }
12367
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12436
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12368
12437
  "div",
12369
12438
  {
12370
12439
  className: cn(
@@ -12376,7 +12445,7 @@ var TextInput = (0, import_react138.forwardRef)(
12376
12445
  ),
12377
12446
  style,
12378
12447
  children: [
12379
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12448
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12380
12449
  Label,
12381
12450
  {
12382
12451
  htmlFor: uniqueId,
@@ -12386,7 +12455,7 @@ var TextInput = (0, import_react138.forwardRef)(
12386
12455
  children: label
12387
12456
  }
12388
12457
  ),
12389
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12458
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12390
12459
  StatefulInput,
12391
12460
  {
12392
12461
  ref,
@@ -12398,7 +12467,7 @@ var TextInput = (0, import_react138.forwardRef)(
12398
12467
  className: TextInput_default["input-width"]
12399
12468
  }
12400
12469
  ),
12401
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)("div", { className: TextInput_default["message-container"], children: [
12470
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)("div", { className: TextInput_default["message-container"], children: [
12402
12471
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
12403
12472
  renderCharCounter(
12404
12473
  characterCounterId,
@@ -12415,14 +12484,14 @@ var TextInput = (0, import_react138.forwardRef)(
12415
12484
  TextInput.displayName = "TextInput";
12416
12485
 
12417
12486
  // src/components/ToggleBar/ToggleBar.tsx
12418
- var import_react140 = require("react");
12487
+ var import_react141 = require("react");
12419
12488
 
12420
12489
  // src/components/ToggleBar/ToggleBar.context.tsx
12421
- var import_react139 = require("react");
12422
- var ToggleBarContext = (0, import_react139.createContext)({
12490
+ var import_react140 = require("react");
12491
+ var ToggleBarContext = (0, import_react140.createContext)({
12423
12492
  size: "medium"
12424
12493
  });
12425
- var useToggleBarContext = () => (0, import_react139.useContext)(ToggleBarContext);
12494
+ var useToggleBarContext = () => (0, import_react140.useContext)(ToggleBarContext);
12426
12495
 
12427
12496
  // src/components/ToggleBar/ToggleBar.module.css
12428
12497
  var ToggleBar_default = {
@@ -12441,7 +12510,7 @@ var ToggleBar_default = {
12441
12510
  };
12442
12511
 
12443
12512
  // src/components/ToggleBar/ToggleBar.tsx
12444
- var import_jsx_runtime293 = require("react/jsx-runtime");
12513
+ var import_jsx_runtime294 = require("react/jsx-runtime");
12445
12514
  var ToggleBar = (props) => {
12446
12515
  const {
12447
12516
  children,
@@ -12456,15 +12525,15 @@ var ToggleBar = (props) => {
12456
12525
  id,
12457
12526
  ...rest
12458
12527
  } = props;
12459
- const generatedId = (0, import_react140.useId)();
12528
+ const generatedId = (0, import_react141.useId)();
12460
12529
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
12461
- const [groupValue, setGroupValue] = (0, import_react140.useState)(value);
12530
+ const [groupValue, setGroupValue] = (0, import_react141.useState)(value);
12462
12531
  const handleChange = combineHandlers(
12463
12532
  (e) => setGroupValue(e.target.value),
12464
12533
  (e) => onChange && onChange(e, e.target.value)
12465
12534
  );
12466
12535
  const labelId = label && `${uniqueId}-label`;
12467
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12536
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12468
12537
  ToggleBarContext.Provider,
12469
12538
  {
12470
12539
  value: {
@@ -12473,7 +12542,7 @@ var ToggleBar = (props) => {
12473
12542
  name,
12474
12543
  value: groupValue
12475
12544
  },
12476
- children: /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12545
+ children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
12477
12546
  "div",
12478
12547
  {
12479
12548
  ...getBaseHTMLProps(
@@ -12486,8 +12555,8 @@ var ToggleBar = (props) => {
12486
12555
  role: "radiogroup",
12487
12556
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
12488
12557
  children: [
12489
- label && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Label, { id: labelId, children: label }),
12490
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)("div", { className: ToggleBar_default.bar, children })
12558
+ label && /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Label, { id: labelId, children: label }),
12559
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)("div", { className: ToggleBar_default.bar, children })
12491
12560
  ]
12492
12561
  }
12493
12562
  )
@@ -12497,8 +12566,8 @@ var ToggleBar = (props) => {
12497
12566
  ToggleBar.displayName = "ToggleBar";
12498
12567
 
12499
12568
  // src/components/ToggleBar/ToggleRadio.tsx
12500
- var import_react141 = require("react");
12501
- var import_jsx_runtime294 = require("react/jsx-runtime");
12569
+ var import_react142 = require("react");
12570
+ var import_jsx_runtime295 = require("react/jsx-runtime");
12502
12571
  var typographyTypes4 = {
12503
12572
  large: "bodySans04",
12504
12573
  medium: "bodySans02",
@@ -12515,7 +12584,7 @@ var calculateChecked = (value, group, checked) => {
12515
12584
  }
12516
12585
  return !!value;
12517
12586
  };
12518
- var ToggleRadio = (0, import_react141.forwardRef)(
12587
+ var ToggleRadio = (0, import_react142.forwardRef)(
12519
12588
  (props, ref) => {
12520
12589
  const {
12521
12590
  value,
@@ -12531,7 +12600,7 @@ var ToggleRadio = (0, import_react141.forwardRef)(
12531
12600
  id,
12532
12601
  ...rest
12533
12602
  } = props;
12534
- const generatedId = (0, import_react141.useId)();
12603
+ const generatedId = (0, import_react142.useId)();
12535
12604
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
12536
12605
  const group = useToggleBarContext();
12537
12606
  const handleChange = (event) => {
@@ -12539,8 +12608,8 @@ var ToggleRadio = (0, import_react141.forwardRef)(
12539
12608
  (group == null ? void 0 : group.onChange) && group.onChange(event);
12540
12609
  };
12541
12610
  const contentTypeCn = label ? "with-text" : "just-icon";
12542
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12543
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12611
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12612
+ /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12544
12613
  "input",
12545
12614
  {
12546
12615
  ...getBaseHTMLProps(
@@ -12563,7 +12632,7 @@ var ToggleRadio = (0, import_react141.forwardRef)(
12563
12632
  "aria-labelledby": ariaLabelledBy
12564
12633
  }
12565
12634
  ),
12566
- /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
12635
+ /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12567
12636
  Typography,
12568
12637
  {
12569
12638
  as: "span",
@@ -12574,8 +12643,8 @@ var ToggleRadio = (0, import_react141.forwardRef)(
12574
12643
  focus_default["focus-styled-sibling"]
12575
12644
  ),
12576
12645
  children: [
12577
- icon && /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Icon, { icon, iconSize: "inherit" }),
12578
- label && /* @__PURE__ */ (0, import_jsx_runtime294.jsx)("span", { children: label })
12646
+ icon && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { icon, iconSize: "inherit" }),
12647
+ label && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("span", { children: label })
12579
12648
  ]
12580
12649
  }
12581
12650
  )
@@ -12585,7 +12654,7 @@ var ToggleRadio = (0, import_react141.forwardRef)(
12585
12654
  ToggleRadio.displayName = "ToggleRadio";
12586
12655
 
12587
12656
  // src/components/ToggleButton/ToggleButton.tsx
12588
- var import_react142 = require("react");
12657
+ var import_react143 = require("react");
12589
12658
 
12590
12659
  // src/components/ToggleButton/ToggleButton.module.css
12591
12660
  var ToggleButton_default = {
@@ -12598,13 +12667,13 @@ var ToggleButton_default = {
12598
12667
  };
12599
12668
 
12600
12669
  // src/components/ToggleButton/ToggleButton.tsx
12601
- var import_jsx_runtime295 = require("react/jsx-runtime");
12602
- var ToggleButton = (0, import_react142.forwardRef)(
12670
+ var import_jsx_runtime296 = require("react/jsx-runtime");
12671
+ var ToggleButton = (0, import_react143.forwardRef)(
12603
12672
  ({ id, label, icon, className, htmlProps, ...rest }, ref) => {
12604
- const generatedId = (0, import_react142.useId)();
12673
+ const generatedId = (0, import_react143.useId)();
12605
12674
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
12606
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12607
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12675
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12676
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12608
12677
  "input",
12609
12678
  {
12610
12679
  ...getBaseHTMLProps(
@@ -12621,7 +12690,7 @@ var ToggleButton = (0, import_react142.forwardRef)(
12621
12690
  type: "checkbox"
12622
12691
  }
12623
12692
  ),
12624
- /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12693
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12625
12694
  "span",
12626
12695
  {
12627
12696
  className: cn(
@@ -12630,7 +12699,7 @@ var ToggleButton = (0, import_react142.forwardRef)(
12630
12699
  focus_default["focus-styled-sibling"]
12631
12700
  ),
12632
12701
  children: [
12633
- icon && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { icon, iconSize: "inherit" }),
12702
+ icon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { icon, iconSize: "inherit" }),
12634
12703
  " ",
12635
12704
  label
12636
12705
  ]
@@ -12642,8 +12711,8 @@ var ToggleButton = (0, import_react142.forwardRef)(
12642
12711
  ToggleButton.displayName = "ToggleButton";
12643
12712
 
12644
12713
  // src/components/ToggleButton/ToggleButtonGroup.tsx
12645
- var import_react143 = require("react");
12646
- var import_jsx_runtime296 = require("react/jsx-runtime");
12714
+ var import_react144 = require("react");
12715
+ var import_jsx_runtime297 = require("react/jsx-runtime");
12647
12716
  var ToggleButtonGroup = (props) => {
12648
12717
  const {
12649
12718
  children,
@@ -12655,9 +12724,9 @@ var ToggleButtonGroup = (props) => {
12655
12724
  htmlProps,
12656
12725
  ...rest
12657
12726
  } = props;
12658
- const generatedId = (0, import_react143.useId)();
12727
+ const generatedId = (0, import_react144.useId)();
12659
12728
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
12660
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12729
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12661
12730
  "div",
12662
12731
  {
12663
12732
  ...getBaseHTMLProps(
@@ -12669,7 +12738,7 @@ var ToggleButtonGroup = (props) => {
12669
12738
  role: "group",
12670
12739
  "aria-labelledby": label ? uniqueLabelId : void 0,
12671
12740
  children: [
12672
- !!label && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12741
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12673
12742
  Typography,
12674
12743
  {
12675
12744
  as: "span",
@@ -12678,7 +12747,7 @@ var ToggleButtonGroup = (props) => {
12678
12747
  children: label
12679
12748
  }
12680
12749
  ),
12681
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12750
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12682
12751
  ]
12683
12752
  }
12684
12753
  );
@@ -12906,6 +12975,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
12906
12975
  SearchSuggestions,
12907
12976
  Select,
12908
12977
  SettingsIcon,
12978
+ Skeleton,
12909
12979
  SkipToContent,
12910
12980
  SmsIcon,
12911
12981
  Spinner,