@bi-digital/react 0.11.1 → 0.11.3

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.
Files changed (133) hide show
  1. package/dist/{alert-footer-D_kCDrhn.d.mts → alert-footer-Bpq_UTqE.d.mts} +73 -76
  2. package/dist/components/alert/alert-footer.d.mts +1 -1
  3. package/dist/components/alert/alert.d.mts +1 -1
  4. package/dist/components/alert/index.d.mts +1 -1
  5. package/dist/components/avatar/avatar.d.mts +1 -1
  6. package/dist/components/avatar/index.d.mts +1 -1
  7. package/dist/components/badge/badge.d.mts +1 -1
  8. package/dist/components/badge/index.d.mts +1 -1
  9. package/dist/components/button/button.d.mts +1 -1
  10. package/dist/components/button/index.d.mts +1 -1
  11. package/dist/components/card/card-action.d.mts +1 -1
  12. package/dist/components/card/card-actions.d.mts +1 -1
  13. package/dist/components/card/card-content.d.mts +1 -1
  14. package/dist/components/card/card-date.d.mts +1 -1
  15. package/dist/components/card/card-header.d.mts +1 -1
  16. package/dist/components/card/card-media.d.mts +1 -1
  17. package/dist/components/card/card.d.mts +1 -1
  18. package/dist/components/card/index.d.mts +1 -1
  19. package/dist/components/checkbox/checkbox-subsection.d.mts +1 -1
  20. package/dist/components/checkbox/checkbox.d.mts +1 -1
  21. package/dist/components/checkbox/index.d.mts +1 -1
  22. package/dist/components/chip/chip.d.mts +1 -1
  23. package/dist/components/chip/index.d.mts +1 -1
  24. package/dist/components/details/details-content.d.mts +1 -1
  25. package/dist/components/details/details-summary.d.mts +1 -1
  26. package/dist/components/details/details.d.mts +1 -1
  27. package/dist/components/details/index.d.mts +1 -1
  28. package/dist/components/dialog/dialog-close-button.d.mts +1 -1
  29. package/dist/components/dialog/dialog-close-button.mjs +5 -5
  30. package/dist/components/dialog/dialog-close-button.mjs.map +1 -1
  31. package/dist/components/dialog/dialog-content.d.mts +1 -1
  32. package/dist/components/dialog/dialog-footer.d.mts +1 -1
  33. package/dist/components/dialog/dialog-header.d.mts +1 -1
  34. package/dist/components/dialog/dialog-trigger-context.d.mts +1 -1
  35. package/dist/components/dialog/dialog-trigger.d.mts +1 -1
  36. package/dist/components/dialog/dialog-trigger.mjs +1 -1
  37. package/dist/components/dialog/dialog-trigger.mjs.map +1 -1
  38. package/dist/components/dialog/dialog.d.mts +1 -1
  39. package/dist/components/dialog/index.d.mts +2 -2
  40. package/dist/components/dropdown/dropdown-button.d.mts +1 -1
  41. package/dist/components/dropdown/dropdown-item.d.mts +1 -1
  42. package/dist/components/dropdown/dropdown-list.d.mts +1 -1
  43. package/dist/components/dropdown/dropdown-trigger-context.d.mts +1 -1
  44. package/dist/components/dropdown/dropdown-trigger.d.mts +1 -1
  45. package/dist/components/dropdown/dropdown.d.mts +1 -1
  46. package/dist/components/dropdown/index.d.mts +3 -3
  47. package/dist/components/field/field-affix.d.mts +1 -1
  48. package/dist/components/field/field-description.d.mts +1 -1
  49. package/dist/components/field/field.d.mts +1 -1
  50. package/dist/components/field/index.d.mts +1 -1
  51. package/dist/components/fieldset/fieldset-description.d.mts +1 -1
  52. package/dist/components/fieldset/fieldset-legend.d.mts +1 -1
  53. package/dist/components/fieldset/fieldset.d.mts +1 -1
  54. package/dist/components/fieldset/index.d.mts +1 -1
  55. package/dist/components/filter-group/filter-group.d.mts +1 -1
  56. package/dist/components/filter-group/index.d.mts +1 -1
  57. package/dist/components/footer/footer-links.d.mts +1 -1
  58. package/dist/components/footer/footer.d.mts +1 -1
  59. package/dist/components/footer/index.d.mts +2 -2
  60. package/dist/components/index.d.mts +8 -8
  61. package/dist/components/input/index.d.mts +1 -1
  62. package/dist/components/input/input.d.mts +1 -1
  63. package/dist/components/label/index.d.mts +1 -1
  64. package/dist/components/label/label.d.mts +1 -1
  65. package/dist/components/link/index.d.mts +1 -1
  66. package/dist/components/link/link.d.mts +1 -1
  67. package/dist/components/logo/index.d.mts +1 -1
  68. package/dist/components/logo/logo.d.mts +1 -1
  69. package/dist/components/navbar/index.d.mts +1 -1
  70. package/dist/components/navbar/navbar.d.mts +1 -1
  71. package/dist/components/navbar/sub-navbar.d.mts +1 -1
  72. package/dist/components/pagination/index.d.mts +2 -2
  73. package/dist/components/pagination/pagination-button.d.mts +1 -1
  74. package/dist/components/pagination/pagination-item.d.mts +1 -1
  75. package/dist/components/pagination/pagination.d.mts +1 -1
  76. package/dist/components/popover/index.d.mts +2 -2
  77. package/dist/components/popover/popover-trigger-context.d.mts +1 -1
  78. package/dist/components/popover/popover-trigger.d.mts +1 -1
  79. package/dist/components/popover/popover.d.mts +1 -1
  80. package/dist/components/radio/index.d.mts +1 -1
  81. package/dist/components/radio/radio.d.mts +1 -1
  82. package/dist/components/search/index.d.mts +1 -1
  83. package/dist/components/search/search.d.mts +1 -1
  84. package/dist/components/select/index.d.mts +1 -1
  85. package/dist/components/select/select-optgroup.d.mts +1 -1
  86. package/dist/components/select/select-option.d.mts +1 -1
  87. package/dist/components/select/select.d.mts +1 -1
  88. package/dist/components/selectfield/index.d.mts +1 -1
  89. package/dist/components/selectfield/selectfield.d.mts +1 -1
  90. package/dist/components/skip-link/index.d.mts +1 -1
  91. package/dist/components/skip-link/skip-link.d.mts +1 -1
  92. package/dist/components/spinner/index.d.mts +1 -1
  93. package/dist/components/spinner/spinner.d.mts +1 -1
  94. package/dist/components/sticky-header/index.d.mts +1 -1
  95. package/dist/components/sticky-header/sticky-header.d.mts +1 -1
  96. package/dist/components/switch/index.d.mts +1 -1
  97. package/dist/components/switch/switch.d.mts +1 -1
  98. package/dist/components/tabs/index.d.mts +1 -1
  99. package/dist/components/tabs/tab.d.mts +1 -1
  100. package/dist/components/tabs/tab.mjs +1 -2
  101. package/dist/components/tabs/tab.mjs.map +1 -1
  102. package/dist/components/tabs/tabs-list.d.mts +1 -1
  103. package/dist/components/tabs/tabs-list.mjs +2 -2
  104. package/dist/components/tabs/tabs-list.mjs.map +1 -1
  105. package/dist/components/tabs/tabs-panel.d.mts +1 -1
  106. package/dist/components/tabs/tabs-panel.mjs +2 -2
  107. package/dist/components/tabs/tabs-panel.mjs.map +1 -1
  108. package/dist/components/tabs/tabs.d.mts +1 -1
  109. package/dist/components/tabs/tabs.mjs +7 -2
  110. package/dist/components/tabs/tabs.mjs.map +1 -1
  111. package/dist/components/textarea/index.d.mts +1 -1
  112. package/dist/components/textarea/textarea.d.mts +1 -1
  113. package/dist/components/textfield/index.d.mts +1 -1
  114. package/dist/components/textfield/textfield.d.mts +1 -1
  115. package/dist/components/validation-message/index.d.mts +1 -1
  116. package/dist/components/validation-message/validation-message.d.mts +1 -1
  117. package/dist/{dialog-trigger-context-CAC7jh1K.d.mts → dialog-trigger-context-DbUhxoNL.d.mts} +5 -5
  118. package/dist/{dropdown-item-aYyDctA9.d.mts → dropdown-item-bA64wFOZ.d.mts} +3 -3
  119. package/dist/{dropdown-list-Dg3yJhKc.d.mts → dropdown-list-CaYz-O1j.d.mts} +3 -3
  120. package/dist/{footer-links-BiBVxNWE.d.mts → footer-links-DwBghNrz.d.mts} +3 -3
  121. package/dist/main.d.mts +9 -9
  122. package/dist/{pagination-item-BNyKs6wz.d.mts → pagination-item-DJicBrIN.d.mts} +3 -3
  123. package/dist/{popover-trigger-context-DTh-_AMm.d.mts → popover-trigger-context-BLjAozBn.d.mts} +5 -5
  124. package/dist/{sticky-header-CLZPboYg.d.mts → sticky-header-CVfE0TUC.d.mts} +3 -3
  125. package/dist/useIsomorphicLayoutEffect-DXCY5AxR.d.mts +7 -0
  126. package/dist/utilities/hooks/index.d.mts +2 -2
  127. package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.mts +1 -1
  128. package/dist/utilities/hooks/usePagination/usePagination.d.mts +1 -1
  129. package/dist/utilities/index.d.mts +2 -2
  130. package/dist/vanilla/sub-navbar/index.mjs +6 -5
  131. package/dist/vanilla/sub-navbar/index.mjs.map +1 -1
  132. package/package.json +10 -11
  133. package/dist/useIsomorphicLayoutEffect-B2JpCiYW.d.mts +0 -7
@@ -1,2 +1,2 @@
1
- import { nn as CardDateProps, tn as CardDate } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { nn as CardDateProps, tn as CardDate } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { CardDate, CardDateProps };
@@ -1,2 +1,2 @@
1
- import { an as CardHeader, on as CardHeaderProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { an as CardHeader, on as CardHeaderProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { CardHeader, CardHeaderProps };
@@ -1,2 +1,2 @@
1
- import { in as CardMediaProps, rn as CardMedia } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { in as CardMediaProps, rn as CardMedia } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { CardMedia, CardMediaProps };
@@ -1,2 +1,2 @@
1
- import { mn as CardProps, pn as Card } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { mn as CardProps, pn as Card } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Card, CardProps };
@@ -1,2 +1,2 @@
1
- import { an as CardHeader, cn as CardContentProps, dn as CardActions, fn as CardActionsProps, in as CardMediaProps, ln as CardAction, mn as CardProps, nn as CardDateProps, on as CardHeaderProps, pn as Card, rn as CardMedia, sn as CardContent, tn as CardDate, un as CardActionProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { an as CardHeader, cn as CardContentProps, dn as CardActions, fn as CardActionsProps, in as CardMediaProps, ln as CardAction, mn as CardProps, nn as CardDateProps, on as CardHeaderProps, pn as Card, rn as CardMedia, sn as CardContent, tn as CardDate, un as CardActionProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps };
@@ -1,2 +1,2 @@
1
- import { Xt as CheckboxSubsectionProps, Yt as CheckboxSubsection } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Xt as CheckboxSubsectionProps, Yt as CheckboxSubsection } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { CheckboxSubsection, CheckboxSubsectionProps };
@@ -1,2 +1,2 @@
1
- import { Qt as CheckboxProps, Zt as Checkbox } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Qt as CheckboxProps, Zt as Checkbox } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Checkbox, CheckboxProps };
@@ -1,2 +1,2 @@
1
- import { Qt as CheckboxProps, Xt as CheckboxSubsectionProps, Yt as CheckboxSubsection, Zt as Checkbox } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Qt as CheckboxProps, Xt as CheckboxSubsectionProps, Yt as CheckboxSubsection, Zt as Checkbox } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps };
@@ -1,2 +1,2 @@
1
- import { Jt as ChipProps, qt as Chip } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Jt as ChipProps, qt as Chip } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Chip, ChipProps };
@@ -1,2 +1,2 @@
1
- import { Jt as ChipProps, qt as Chip } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Jt as ChipProps, qt as Chip } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Chip, ChipProps };
@@ -1,2 +1,2 @@
1
- import { Ut as DetailsContent, Wt as DetailsContentProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Ut as DetailsContent, Wt as DetailsContentProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DetailsContent, DetailsContentProps };
@@ -1,2 +1,2 @@
1
- import { Ht as DetailsSummaryProps, Vt as DetailsSummary } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Ht as DetailsSummaryProps, Vt as DetailsSummary } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DetailsSummary, DetailsSummaryProps };
@@ -1,2 +1,2 @@
1
- import { Gt as Details, Kt as DetailsProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Gt as Details, Kt as DetailsProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Details, DetailsProps };
@@ -1,2 +1,2 @@
1
- import { Gt as Details, Ht as DetailsSummaryProps, Kt as DetailsProps, Ut as DetailsContent, Vt as DetailsSummary, Wt as DetailsContentProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Gt as Details, Ht as DetailsSummaryProps, Kt as DetailsProps, Ut as DetailsContent, Vt as DetailsSummary, Wt as DetailsContentProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Details, DetailsContent, DetailsContentProps, DetailsProps, DetailsSummary, DetailsSummaryProps };
@@ -1,2 +1,2 @@
1
- import { At as DialogCloseButtonProps, kt as DialogCloseButton } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { At as DialogCloseButtonProps, kt as DialogCloseButton } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DialogCloseButton, DialogCloseButtonProps };
@@ -1,23 +1,23 @@
1
1
  import { Button } from "../button/button.mjs";
2
2
  import "../button/index.mjs";
3
3
  import { Context } from "./dialog-trigger-context.mjs";
4
+ import clsx from "clsx/lite";
4
5
  import { CrossSmallIcon } from "@bi-digital/icons";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  import { use } from "react";
7
8
  //#region src/components/dialog/dialog-close-button.tsx
8
9
  /**
9
10
  * A button that can be used to close the dialog. Must be used inside a `Dialog` that is wrapped in a `DialogTriggerContext`.
10
- * If placed as the first direct child of the `Dialog`, it will be placed in the top right corner of the dialog, otherwise it will be placed where it is rendered.
11
+ * When placed as a direct child of `Dialog`, it will be positioned absolutely in the top right corner.
11
12
  */
12
- const DialogCloseButton = ({ children, ref, ...props }) => {
13
+ const DialogCloseButton = ({ children, ref, className, ...props }) => {
13
14
  const { id } = use(Context);
14
15
  return /* @__PURE__ */ jsx(Button, {
15
16
  ref,
16
17
  icon: true,
17
- name: "close",
18
- type: "submit",
19
18
  variant: "text",
20
- command: "close",
19
+ className: clsx("bi-dialog--close", className),
20
+ command: id ? "close" : void 0,
21
21
  commandfor: id,
22
22
  ...props,
23
23
  children: children || /* @__PURE__ */ jsx(CrossSmallIcon, { "aria-hidden": "true" })
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-close-button.mjs","names":[],"sources":["../../../src/components/dialog/dialog-close-button.tsx"],"sourcesContent":["import { CrossSmallIcon } from '@bi-digital/icons';\nimport { Button, type ButtonProps } from '../button';\nimport { use } from 'react';\nimport { Context } from './dialog-trigger-context';\n\nexport type DialogCloseButtonProps = Omit<ButtonProps, 'asChild' | 'type' | 'name'>;\n\n/**\n * A button that can be used to close the dialog. Must be used inside a `Dialog` that is wrapped in a `DialogTriggerContext`.\n * If placed as the first direct child of the `Dialog`, it will be placed in the top right corner of the dialog, otherwise it will be placed where it is rendered.\n */\nexport const DialogCloseButton = ({ children, ref, ...props }: DialogCloseButtonProps) => {\n const { id } = use(Context);\n return (\n <Button ref={ref} icon name='close' type='submit' variant='text' command='close' commandfor={id} {...props}>\n {children || <CrossSmallIcon aria-hidden='true' />}\n </Button>\n );\n};\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,qBAAqB,EAAE,UAAU,KAAK,GAAG,YAAoC;CACxF,MAAM,EAAE,OAAO,IAAI,QAAQ;AAC3B,QACE,oBAAC,QAAD;EAAa;EAAK,MAAA;EAAK,MAAK;EAAQ,MAAK;EAAS,SAAQ;EAAO,SAAQ;EAAQ,YAAY;EAAI,GAAI;YAClG,YAAY,oBAAC,gBAAD,EAAgB,eAAY,QAAS,CAAA;EAC3C,CAAA"}
1
+ {"version":3,"file":"dialog-close-button.mjs","names":[],"sources":["../../../src/components/dialog/dialog-close-button.tsx"],"sourcesContent":["import { CrossSmallIcon } from '@bi-digital/icons';\nimport { Button, type ButtonProps } from '../button';\nimport { use } from 'react';\nimport { Context } from './dialog-trigger-context';\nimport clsx from 'clsx/lite';\n\nexport type DialogCloseButtonProps = Omit<ButtonProps, 'asChild' | 'type' | 'name'>;\n\n/**\n * A button that can be used to close the dialog. Must be used inside a `Dialog` that is wrapped in a `DialogTriggerContext`.\n * When placed as a direct child of `Dialog`, it will be positioned absolutely in the top right corner.\n */\nexport const DialogCloseButton = ({ children, ref, className, ...props }: DialogCloseButtonProps) => {\n const { id } = use(Context);\n return (\n <Button\n ref={ref}\n icon\n variant='text'\n className={clsx('bi-dialog--close', className)}\n command={id ? 'close' : undefined}\n commandfor={id}\n {...props}\n >\n {children || <CrossSmallIcon aria-hidden='true' />}\n </Button>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAYA,MAAa,qBAAqB,EAAE,UAAU,KAAK,WAAW,GAAG,YAAoC;CACnG,MAAM,EAAE,OAAO,IAAI,QAAQ;AAC3B,QACE,oBAAC,QAAD;EACO;EACL,MAAA;EACA,SAAQ;EACR,WAAW,KAAK,oBAAoB,UAAU;EAC9C,SAAS,KAAK,UAAU,KAAA;EACxB,YAAY;EACZ,GAAI;YAEH,YAAY,oBAAC,gBAAD,EAAgB,eAAY,QAAS,CAAA;EAC3C,CAAA"}
@@ -1,2 +1,2 @@
1
- import { Lt as DialogContent, Rt as DialogContentProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Lt as DialogContent, Rt as DialogContentProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DialogContent, DialogContentProps };
@@ -1,2 +1,2 @@
1
- import { Nt as DialogFooter, Pt as DialogFooterProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Nt as DialogFooter, Pt as DialogFooterProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DialogFooter, DialogFooterProps };
@@ -1,2 +1,2 @@
1
- import { Ft as DialogHeader, It as DialogHeaderProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Ft as DialogHeader, It as DialogHeaderProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DialogHeader, DialogHeaderProps };
@@ -1,2 +1,2 @@
1
- import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../../dialog-trigger-context-CAC7jh1K.mjs";
1
+ import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../../dialog-trigger-context-DbUhxoNL.mjs";
2
2
  export { Context, DialogTriggerContext, DialogTriggerContextProps };
@@ -1,2 +1,2 @@
1
- import { Mt as DialogTriggerProps, jt as DialogTrigger } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Mt as DialogTriggerProps, jt as DialogTrigger } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DialogTrigger, DialogTriggerProps };
@@ -9,7 +9,7 @@ const DialogTrigger = ({ asChild, ref, ...rest }) => {
9
9
  const { id } = use(Context);
10
10
  return /* @__PURE__ */ jsx(asChild ? Slot : Button, {
11
11
  suppressHydrationWarning: true,
12
- command: "show-modal",
12
+ command: id ? "show-modal" : void 0,
13
13
  commandfor: id,
14
14
  ref,
15
15
  ...rest
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-trigger.mjs","names":[],"sources":["../../../src/components/dialog/dialog-trigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { use } from 'react';\n\nimport { Button, type ButtonProps } from '../button';\nimport { Context } from './dialog-trigger-context';\n\nexport type DialogTriggerProps = ButtonProps;\n\nexport const DialogTrigger = ({ asChild, ref, ...rest }: DialogTriggerProps) => {\n const { id } = use(Context);\n const Component = asChild ? Slot : Button;\n\n return (\n <Component\n suppressHydrationWarning // Might get augmented through designsystemet-web with aria-haspopup\n command='show-modal'\n commandfor={id}\n ref={ref}\n {...rest}\n />\n );\n};\n"],"mappings":";;;;;;;AAQA,MAAa,iBAAiB,EAAE,SAAS,KAAK,GAAG,WAA+B;CAC9E,MAAM,EAAE,OAAO,IAAI,QAAQ;AAG3B,QACE,oBAHgB,UAAU,OAAO,QAGjC;EACE,0BAAA;EACA,SAAQ;EACR,YAAY;EACP;EACL,GAAI;EACJ,CAAA"}
1
+ {"version":3,"file":"dialog-trigger.mjs","names":[],"sources":["../../../src/components/dialog/dialog-trigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { use } from 'react';\n\nimport { Button, type ButtonProps } from '../button';\nimport { Context } from './dialog-trigger-context';\n\nexport type DialogTriggerProps = ButtonProps;\n\nexport const DialogTrigger = ({ asChild, ref, ...rest }: DialogTriggerProps) => {\n const { id } = use(Context);\n const Component = asChild ? Slot : Button;\n\n return (\n <Component\n suppressHydrationWarning // Might get augmented through designsystemet-web with aria-haspopup\n command={id ? 'show-modal' : undefined}\n commandfor={id}\n ref={ref}\n {...rest}\n />\n );\n};\n"],"mappings":";;;;;;;AAQA,MAAa,iBAAiB,EAAE,SAAS,KAAK,GAAG,WAA+B;CAC9E,MAAM,EAAE,OAAO,IAAI,QAAQ;AAG3B,QACE,oBAHgB,UAAU,OAAO,QAGjC;EACE,0BAAA;EACA,SAAS,KAAK,eAAe,KAAA;EAC7B,YAAY;EACP;EACL,GAAI;EACJ,CAAA"}
@@ -1,2 +1,2 @@
1
- import { Bt as DialogProps, zt as Dialog } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Bt as DialogProps, zt as Dialog } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Dialog, DialogProps };
@@ -1,3 +1,3 @@
1
- import { At as DialogCloseButtonProps, Bt as DialogProps, Ft as DialogHeader, It as DialogHeaderProps, Lt as DialogContent, Mt as DialogTriggerProps, Nt as DialogFooter, Pt as DialogFooterProps, Rt as DialogContentProps, jt as DialogTrigger, kt as DialogCloseButton, zt as Dialog } from "../../alert-footer-D_kCDrhn.mjs";
2
- import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../../dialog-trigger-context-CAC7jh1K.mjs";
1
+ import { At as DialogCloseButtonProps, Bt as DialogProps, Ft as DialogHeader, It as DialogHeaderProps, Lt as DialogContent, Mt as DialogTriggerProps, Nt as DialogFooter, Pt as DialogFooterProps, Rt as DialogContentProps, jt as DialogTrigger, kt as DialogCloseButton, zt as Dialog } from "../../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../../dialog-trigger-context-DbUhxoNL.mjs";
3
3
  export { Context, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerContext, DialogTriggerContextProps, DialogTriggerProps };
@@ -1,2 +1,2 @@
1
- import { St as DropdownButtonProps, xt as DropdownButton } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { St as DropdownButtonProps, xt as DropdownButton } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DropdownButton, DropdownButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-aYyDctA9.mjs";
1
+ import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-bA64wFOZ.mjs";
2
2
  export { DropdownItem, DropdownItemProps };
@@ -1,2 +1,2 @@
1
- import { n as DropdownListProps, t as DropdownList } from "../../dropdown-list-Dg3yJhKc.mjs";
1
+ import { n as DropdownListProps, t as DropdownList } from "../../dropdown-list-CaYz-O1j.mjs";
2
2
  export { DropdownList, DropdownListProps };
@@ -1,2 +1,2 @@
1
- import { _t as DropdownTriggerContext, vt as DropdownTriggerContextProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { _t as DropdownTriggerContext, vt as DropdownTriggerContextProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DropdownTriggerContext, DropdownTriggerContextProps };
@@ -1,2 +1,2 @@
1
- import { bt as DropdownTriggerProps, yt as DropdownTrigger } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { bt as DropdownTriggerProps, yt as DropdownTrigger } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { DropdownTrigger, DropdownTriggerProps };
@@ -1,2 +1,2 @@
1
- import { Ct as Dropdown, wt as DropdownProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Ct as Dropdown, wt as DropdownProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Dropdown, DropdownProps };
@@ -1,4 +1,4 @@
1
- import { Ct as Dropdown, St as DropdownButtonProps, _t as DropdownTriggerContext, bt as DropdownTriggerProps, vt as DropdownTriggerContextProps, wt as DropdownProps, xt as DropdownButton, yt as DropdownTrigger } from "../../alert-footer-D_kCDrhn.mjs";
2
- import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-aYyDctA9.mjs";
3
- import { n as DropdownListProps, t as DropdownList } from "../../dropdown-list-Dg3yJhKc.mjs";
1
+ import { Ct as Dropdown, St as DropdownButtonProps, _t as DropdownTriggerContext, bt as DropdownTriggerProps, vt as DropdownTriggerContextProps, wt as DropdownProps, xt as DropdownButton, yt as DropdownTrigger } from "../../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-bA64wFOZ.mjs";
3
+ import { n as DropdownListProps, t as DropdownList } from "../../dropdown-list-CaYz-O1j.mjs";
4
4
  export { Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps };
@@ -1,2 +1,2 @@
1
- import { dt as FieldAffixes, ft as FieldAffixesProps, lt as FieldAffix, ut as FieldAffixProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { dt as FieldAffixes, ft as FieldAffixesProps, lt as FieldAffix, ut as FieldAffixProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps };
@@ -1,2 +1,2 @@
1
- import { mt as FieldDescriptionProps, pt as FieldDescription } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { mt as FieldDescriptionProps, pt as FieldDescription } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FieldDescription, FieldDescriptionProps };
@@ -1,2 +1,2 @@
1
- import { gt as FieldProps, ht as Field } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { gt as FieldProps, ht as Field } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Field, FieldProps };
@@ -1,2 +1,2 @@
1
- import { dt as FieldAffixes, ft as FieldAffixesProps, gt as FieldProps, ht as Field, lt as FieldAffix, mt as FieldDescriptionProps, pt as FieldDescription, ut as FieldAffixProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { dt as FieldAffixes, ft as FieldAffixesProps, gt as FieldProps, ht as Field, lt as FieldAffix, mt as FieldDescriptionProps, pt as FieldDescription, ut as FieldAffixProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps };
@@ -1,2 +1,2 @@
1
- import { at as FieldsetDescription, ot as FieldsetDescriptionProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { at as FieldsetDescription, ot as FieldsetDescriptionProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FieldsetDescription, FieldsetDescriptionProps };
@@ -1,2 +1,2 @@
1
- import { nt as FieldsetLegendProps, tt as FieldsetLegend } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { nt as FieldsetLegendProps, tt as FieldsetLegend } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FieldsetLegend, FieldsetLegendProps };
@@ -1,2 +1,2 @@
1
- import { ct as FieldsetProps, st as Fieldset } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { ct as FieldsetProps, st as Fieldset } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Fieldset, FieldsetProps };
@@ -1,2 +1,2 @@
1
- import { at as FieldsetDescription, ct as FieldsetProps, nt as FieldsetLegendProps, ot as FieldsetDescriptionProps, st as Fieldset, tt as FieldsetLegend } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { at as FieldsetDescription, ct as FieldsetProps, nt as FieldsetLegendProps, ot as FieldsetDescriptionProps, st as Fieldset, tt as FieldsetLegend } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps };
@@ -1,2 +1,2 @@
1
- import { $ as FilterGroup, et as FilterGroupProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { $ as FilterGroup, et as FilterGroupProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FilterGroup, FilterGroupProps };
@@ -1,2 +1,2 @@
1
- import { $ as FilterGroup, et as FilterGroupProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { $ as FilterGroup, et as FilterGroupProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { FilterGroup, FilterGroupProps };
@@ -1,2 +1,2 @@
1
- import { n as FooterLinksProps, t as FooterLinks } from "../../footer-links-BiBVxNWE.mjs";
1
+ import { n as FooterLinksProps, t as FooterLinks } from "../../footer-links-DwBghNrz.mjs";
2
2
  export { FooterLinks, FooterLinksProps };
@@ -1,2 +1,2 @@
1
- import { Q as FooterProps, Z as Footer } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Q as FooterProps, Z as Footer } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Footer, FooterProps };
@@ -1,3 +1,3 @@
1
- import { Q as FooterProps, Z as Footer } from "../../alert-footer-D_kCDrhn.mjs";
2
- import { n as FooterLinksProps, t as FooterLinks } from "../../footer-links-BiBVxNWE.mjs";
1
+ import { Q as FooterProps, Z as Footer } from "../../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as FooterLinksProps, t as FooterLinks } from "../../footer-links-DwBghNrz.mjs";
3
3
  export { Footer, FooterLinks, FooterLinksProps, FooterProps };
@@ -1,9 +1,9 @@
1
- import { $ as FilterGroup, $t as Input, A as SelectOptgroupProps, At as DialogCloseButtonProps, B as PaginationButtonProps, Bt as DialogProps, C as Spinner, Ct as Dropdown, D as Selectfield, Dt as Popover, E as SkipLinkProps, Et as PopoverTriggerProps, F as Search, Ft as DialogHeader, G as Navbar, Gt as Details, H as PaginationProps, Ht as DetailsSummaryProps, I as SearchProps, It as DialogHeaderProps, J as LogoProps, Jt as ChipProps, K as NavbarProps, Kt as DetailsProps, L as Radio, Lt as DialogContent, M as SelectOptionProps, Mt as DialogTriggerProps, N as Select, Nt as DialogFooter, O as SelectfieldProps, Ot as PopoverProps, P as SelectProps, Pt as DialogFooterProps, Q as FooterProps, Qt as CheckboxProps, R as RadioProps, Rt as DialogContentProps, S as SwitchProps, Sn as AlertProps, St as DropdownButtonProps, T as SkipLink, Tt as PopoverTrigger, U as SubNavbar, Ut as DetailsContent, V as Pagination, Vt as DetailsSummary, W as SubNavbarProps, Wt as DetailsContentProps, X as LinkProps, Xt as CheckboxSubsectionProps, Y as Link, Yt as CheckboxSubsection, Z as Footer, Zt as Checkbox, _n as Badge, _t as DropdownTriggerContext, a as ValidationMessage, an as CardHeader, at as FieldsetDescription, b as TabsProps, bn as AvatarProps, bt as DropdownTriggerProps, c as TextfieldProps, cn as CardContentProps, ct as FieldsetProps, d as TabsPanel, dn as CardActions, dt as FieldAffixes, en as InputProps, et as FilterGroupProps, f as TabsPanelProps, fn as CardActionsProps, ft as FieldAffixesProps, g as TabProps, gn as ButtonProps, gt as FieldProps, h as Tab, hn as Button, ht as Field, in as CardMediaProps, it as LabelProps, j as SelectOption, jt as DialogTrigger, k as SelectOptgroup, kt as DialogCloseButton, l as Textarea, ln as CardAction, lt as FieldAffix, m as TabsListProps, mn as CardProps, mt as FieldDescriptionProps, n as AlertFooterProps, nn as CardDateProps, nt as FieldsetLegendProps, o as ValidationMessageProps, on as CardHeaderProps, ot as FieldsetDescriptionProps, p as TabsList, pn as Card, pt as FieldDescription, q as Logo, qt as Chip, rn as CardMedia, rt as Label, s as Textfield, sn as CardContent, st as Fieldset, t as AlertFooter, tn as CardDate, tt as FieldsetLegend, u as TextareaProps, un as CardActionProps, ut as FieldAffixProps, v as Tabs, vn as BadgeProps, vt as DropdownTriggerContextProps, w as SpinnerProps, wt as DropdownProps, x as Switch, xn as Alert, xt as DropdownButton, y as TabsContext, yn as Avatar, yt as DropdownTrigger, z as PaginationButton, zt as Dialog } from "../alert-footer-D_kCDrhn.mjs";
2
- import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../dialog-trigger-context-CAC7jh1K.mjs";
3
- import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "../popover-trigger-context-DTh-_AMm.mjs";
4
- import { n as DropdownItemProps, t as DropdownItem } from "../dropdown-item-aYyDctA9.mjs";
5
- import { n as DropdownListProps, t as DropdownList } from "../dropdown-list-Dg3yJhKc.mjs";
6
- import { n as FooterLinksProps, t as FooterLinks } from "../footer-links-BiBVxNWE.mjs";
7
- import { n as PaginationItemProps, t as PaginationItem } from "../pagination-item-BNyKs6wz.mjs";
8
- import { n as StickyHeaderProps, t as StickyHeader } from "../sticky-header-CLZPboYg.mjs";
1
+ import { $ as FilterGroup, $t as Input, A as SelectOptgroupProps, At as DialogCloseButtonProps, B as PaginationButtonProps, Bt as DialogProps, C as Spinner, Ct as Dropdown, D as Selectfield, Dt as Popover, E as SkipLinkProps, Et as PopoverTriggerProps, F as Search, Ft as DialogHeader, G as Navbar, Gt as Details, H as PaginationProps, Ht as DetailsSummaryProps, I as SearchProps, It as DialogHeaderProps, J as LogoProps, Jt as ChipProps, K as NavbarProps, Kt as DetailsProps, L as Radio, Lt as DialogContent, M as SelectOptionProps, Mt as DialogTriggerProps, N as Select, Nt as DialogFooter, O as SelectfieldProps, Ot as PopoverProps, P as SelectProps, Pt as DialogFooterProps, Q as FooterProps, Qt as CheckboxProps, R as RadioProps, Rt as DialogContentProps, S as SwitchProps, Sn as AlertProps, St as DropdownButtonProps, T as SkipLink, Tt as PopoverTrigger, U as SubNavbar, Ut as DetailsContent, V as Pagination, Vt as DetailsSummary, W as SubNavbarProps, Wt as DetailsContentProps, X as LinkProps, Xt as CheckboxSubsectionProps, Y as Link, Yt as CheckboxSubsection, Z as Footer, Zt as Checkbox, _n as Badge, _t as DropdownTriggerContext, a as ValidationMessage, an as CardHeader, at as FieldsetDescription, b as TabsProps, bn as AvatarProps, bt as DropdownTriggerProps, c as TextfieldProps, cn as CardContentProps, ct as FieldsetProps, d as TabsPanel, dn as CardActions, dt as FieldAffixes, en as InputProps, et as FilterGroupProps, f as TabsPanelProps, fn as CardActionsProps, ft as FieldAffixesProps, g as TabProps, gn as ButtonProps, gt as FieldProps, h as Tab, hn as Button, ht as Field, in as CardMediaProps, it as LabelProps, j as SelectOption, jt as DialogTrigger, k as SelectOptgroup, kt as DialogCloseButton, l as Textarea, ln as CardAction, lt as FieldAffix, m as TabsListProps, mn as CardProps, mt as FieldDescriptionProps, n as AlertFooterProps, nn as CardDateProps, nt as FieldsetLegendProps, o as ValidationMessageProps, on as CardHeaderProps, ot as FieldsetDescriptionProps, p as TabsList, pn as Card, pt as FieldDescription, q as Logo, qt as Chip, rn as CardMedia, rt as Label, s as Textfield, sn as CardContent, st as Fieldset, t as AlertFooter, tn as CardDate, tt as FieldsetLegend, u as TextareaProps, un as CardActionProps, ut as FieldAffixProps, v as Tabs, vn as BadgeProps, vt as DropdownTriggerContextProps, w as SpinnerProps, wt as DropdownProps, x as Switch, xn as Alert, xt as DropdownButton, y as TabsContext, yn as Avatar, yt as DropdownTrigger, z as PaginationButton, zt as Dialog } from "../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as DialogTriggerContext, r as DialogTriggerContextProps, t as Context } from "../dialog-trigger-context-DbUhxoNL.mjs";
3
+ import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "../popover-trigger-context-BLjAozBn.mjs";
4
+ import { n as DropdownItemProps, t as DropdownItem } from "../dropdown-item-bA64wFOZ.mjs";
5
+ import { n as DropdownListProps, t as DropdownList } from "../dropdown-list-CaYz-O1j.mjs";
6
+ import { n as FooterLinksProps, t as FooterLinks } from "../footer-links-DwBghNrz.mjs";
7
+ import { n as PaginationItemProps, t as PaginationItem } from "../pagination-item-DJicBrIN.mjs";
8
+ import { n as StickyHeaderProps, t as StickyHeader } from "../sticky-header-CVfE0TUC.mjs";
9
9
  export { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps, Chip, ChipProps, Context, Details, DetailsContent, DetailsContentProps, DetailsProps, DetailsSummary, DetailsSummaryProps, Dialog, DialogCloseButton, DialogCloseButtonProps, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerContext, DialogTriggerContextProps, DialogTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, FilterGroup, FilterGroupProps, Footer, FooterLinks, FooterLinksProps, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationItem, PaginationItemProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerContext, PopoverTriggerContextProps, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, Selectfield, SelectfieldProps, SkipLink, SkipLinkProps, Spinner, SpinnerProps, StickyHeader, StickyHeaderProps, SubNavbar, SubNavbarProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsContext, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, ValidationMessage, ValidationMessageProps };
@@ -1,2 +1,2 @@
1
- import { $t as Input, en as InputProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { $t as Input, en as InputProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Input, InputProps };
@@ -1,2 +1,2 @@
1
- import { $t as Input, en as InputProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { $t as Input, en as InputProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Input, InputProps };
@@ -1,2 +1,2 @@
1
- import { it as LabelProps, rt as Label } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { it as LabelProps, rt as Label } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Label, LabelProps };
@@ -1,2 +1,2 @@
1
- import { it as LabelProps, rt as Label } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { it as LabelProps, rt as Label } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Label, LabelProps };
@@ -1,2 +1,2 @@
1
- import { X as LinkProps, Y as Link } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { X as LinkProps, Y as Link } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Link, LinkProps };
@@ -1,2 +1,2 @@
1
- import { X as LinkProps, Y as Link } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { X as LinkProps, Y as Link } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Link, LinkProps };
@@ -1,2 +1,2 @@
1
- import { J as LogoProps, q as Logo } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { J as LogoProps, q as Logo } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Logo, LogoProps };
@@ -1,2 +1,2 @@
1
- import { J as LogoProps, q as Logo } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { J as LogoProps, q as Logo } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Logo, LogoProps };
@@ -1,2 +1,2 @@
1
- import { G as Navbar, K as NavbarProps, U as SubNavbar, W as SubNavbarProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { G as Navbar, K as NavbarProps, U as SubNavbar, W as SubNavbarProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Navbar, NavbarProps, SubNavbar, SubNavbarProps };
@@ -1,2 +1,2 @@
1
- import { G as Navbar, K as NavbarProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { G as Navbar, K as NavbarProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Navbar, NavbarProps };
@@ -1,2 +1,2 @@
1
- import { U as SubNavbar, W as SubNavbarProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { U as SubNavbar, W as SubNavbarProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { SubNavbar, SubNavbarProps };
@@ -1,3 +1,3 @@
1
- import { B as PaginationButtonProps, H as PaginationProps, V as Pagination, z as PaginationButton } from "../../alert-footer-D_kCDrhn.mjs";
2
- import { n as PaginationItemProps, t as PaginationItem } from "../../pagination-item-BNyKs6wz.mjs";
1
+ import { B as PaginationButtonProps, H as PaginationProps, V as Pagination, z as PaginationButton } from "../../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as PaginationItemProps, t as PaginationItem } from "../../pagination-item-DJicBrIN.mjs";
3
3
  export { Pagination, PaginationButton, PaginationButtonProps, PaginationItem, PaginationItemProps, PaginationProps };
@@ -1,2 +1,2 @@
1
- import { B as PaginationButtonProps, z as PaginationButton } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { B as PaginationButtonProps, z as PaginationButton } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { PaginationButton, PaginationButtonProps };
@@ -1,2 +1,2 @@
1
- import { n as PaginationItemProps, t as PaginationItem } from "../../pagination-item-BNyKs6wz.mjs";
1
+ import { n as PaginationItemProps, t as PaginationItem } from "../../pagination-item-DJicBrIN.mjs";
2
2
  export { PaginationItem, PaginationItemProps };
@@ -1,2 +1,2 @@
1
- import { H as PaginationProps, V as Pagination } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { H as PaginationProps, V as Pagination } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Pagination, PaginationProps };
@@ -1,3 +1,3 @@
1
- import { Dt as Popover, Et as PopoverTriggerProps, Ot as PopoverProps, Tt as PopoverTrigger } from "../../alert-footer-D_kCDrhn.mjs";
2
- import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "../../popover-trigger-context-DTh-_AMm.mjs";
1
+ import { Dt as Popover, Et as PopoverTriggerProps, Ot as PopoverProps, Tt as PopoverTrigger } from "../../alert-footer-Bpq_UTqE.mjs";
2
+ import { n as PopoverTriggerContext, r as PopoverTriggerContextProps } from "../../popover-trigger-context-BLjAozBn.mjs";
3
3
  export { Popover, PopoverProps, PopoverTrigger, PopoverTriggerContext, PopoverTriggerContextProps, PopoverTriggerProps };
@@ -1,2 +1,2 @@
1
- import { n as PopoverTriggerContext, r as PopoverTriggerContextProps, t as Context } from "../../popover-trigger-context-DTh-_AMm.mjs";
1
+ import { n as PopoverTriggerContext, r as PopoverTriggerContextProps, t as Context } from "../../popover-trigger-context-BLjAozBn.mjs";
2
2
  export { Context, PopoverTriggerContext, PopoverTriggerContextProps };
@@ -1,2 +1,2 @@
1
- import { Et as PopoverTriggerProps, Tt as PopoverTrigger } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Et as PopoverTriggerProps, Tt as PopoverTrigger } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { PopoverTrigger, PopoverTriggerProps };
@@ -1,2 +1,2 @@
1
- import { Dt as Popover, Ot as PopoverProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { Dt as Popover, Ot as PopoverProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Popover, PopoverProps };
@@ -1,2 +1,2 @@
1
- import { L as Radio, R as RadioProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { L as Radio, R as RadioProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Radio, RadioProps };
@@ -1,2 +1,2 @@
1
- import { L as Radio, R as RadioProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { L as Radio, R as RadioProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Radio, RadioProps };
@@ -1,2 +1,2 @@
1
- import { F as Search, I as SearchProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { F as Search, I as SearchProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Search, SearchProps };
@@ -1,2 +1,2 @@
1
- import { F as Search, I as SearchProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { F as Search, I as SearchProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Search, SearchProps };
@@ -1,2 +1,2 @@
1
- import { A as SelectOptgroupProps, M as SelectOptionProps, N as Select, P as SelectProps, j as SelectOption, k as SelectOptgroup } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { A as SelectOptgroupProps, M as SelectOptionProps, N as Select, P as SelectProps, j as SelectOption, k as SelectOptgroup } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps };
@@ -1,2 +1,2 @@
1
- import { A as SelectOptgroupProps, k as SelectOptgroup } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { A as SelectOptgroupProps, k as SelectOptgroup } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { SelectOptgroup, SelectOptgroupProps };
@@ -1,2 +1,2 @@
1
- import { M as SelectOptionProps, j as SelectOption } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { M as SelectOptionProps, j as SelectOption } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { SelectOption, SelectOptionProps };
@@ -1,2 +1,2 @@
1
- import { N as Select, P as SelectProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { N as Select, P as SelectProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Select, SelectProps };
@@ -1,2 +1,2 @@
1
- import { D as Selectfield, O as SelectfieldProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { D as Selectfield, O as SelectfieldProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Selectfield, SelectfieldProps };
@@ -1,2 +1,2 @@
1
- import { D as Selectfield, O as SelectfieldProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { D as Selectfield, O as SelectfieldProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Selectfield, SelectfieldProps };
@@ -1,2 +1,2 @@
1
- import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { SkipLink, SkipLinkProps };
@@ -1,2 +1,2 @@
1
- import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { SkipLink, SkipLinkProps };
@@ -1,2 +1,2 @@
1
- import { C as Spinner, w as SpinnerProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { C as Spinner, w as SpinnerProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Spinner, SpinnerProps };
@@ -1,2 +1,2 @@
1
- import { C as Spinner, w as SpinnerProps } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { C as Spinner, w as SpinnerProps } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Spinner, SpinnerProps };
@@ -1,2 +1,2 @@
1
- import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-CLZPboYg.mjs";
1
+ import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-CVfE0TUC.mjs";
2
2
  export { StickyHeader, StickyHeaderProps };
@@ -1,2 +1,2 @@
1
- import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-CLZPboYg.mjs";
1
+ import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-CVfE0TUC.mjs";
2
2
  export { StickyHeader, StickyHeaderProps };
@@ -1,2 +1,2 @@
1
- import { S as SwitchProps, x as Switch } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { S as SwitchProps, x as Switch } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Switch, SwitchProps };
@@ -1,2 +1,2 @@
1
- import { S as SwitchProps, x as Switch } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { S as SwitchProps, x as Switch } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Switch, SwitchProps };
@@ -1,2 +1,2 @@
1
- import { b as TabsProps, d as TabsPanel, f as TabsPanelProps, g as TabProps, h as Tab, m as TabsListProps, p as TabsList, v as Tabs, y as TabsContext } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { b as TabsProps, d as TabsPanel, f as TabsPanelProps, g as TabProps, h as Tab, m as TabsListProps, p as TabsList, v as Tabs, y as TabsContext } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Tab, TabProps, Tabs, TabsContext, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps };
@@ -1,2 +1,2 @@
1
- import { g as TabProps, h as Tab } from "../../alert-footer-D_kCDrhn.mjs";
1
+ import { g as TabProps, h as Tab } from "../../alert-footer-Bpq_UTqE.mjs";
2
2
  export { Tab, TabProps };
@@ -3,12 +3,11 @@ import "@digdir/designsystemet-web";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { use } from "react";
5
5
  //#region src/components/tabs/tab.tsx
6
- const Tab = ({ value, children, dark, onClick, onClickCapture, ref, ...props }) => {
6
+ const Tab = ({ value, children, onClick, onClickCapture, ref, ...props }) => {
7
7
  const { onChange, getPrefixedValue, isControlled, currentValue } = use(Context);
8
8
  return /* @__PURE__ */ jsx("ds-tab", {
9
9
  "aria-controls": props["aria-controls"] ?? getPrefixedValue?.(value),
10
10
  "data-value": value,
11
- "data-dark": dark,
12
11
  ref,
13
12
  suppressHydrationWarning: true,
14
13
  onClickCapture: (e) => {