@namroodinc/liquid-editorial 0.6.1 → 0.6.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 (179) hide show
  1. package/README.md +47 -5
  2. package/UPGRADING.md +150 -0
  3. package/dist/chunks/Avatar-BTKqaJLP.cjs +2 -0
  4. package/dist/chunks/Avatar-BTKqaJLP.cjs.map +1 -0
  5. package/dist/chunks/Avatar-C1q2AUD-.js +149 -0
  6. package/dist/chunks/Avatar-C1q2AUD-.js.map +1 -0
  7. package/dist/chunks/{Board-CcIF7jS0.js → Board-BYPzybjf.js} +2 -2
  8. package/dist/chunks/{Board-CcIF7jS0.js.map → Board-BYPzybjf.js.map} +1 -1
  9. package/dist/chunks/{Board-BPA6mVhf.cjs → Board-Ct1t69ot.cjs} +2 -2
  10. package/dist/chunks/{Board-BPA6mVhf.cjs.map → Board-Ct1t69ot.cjs.map} +1 -1
  11. package/dist/chunks/ColourField-DDGuWWNH.cjs +2 -0
  12. package/dist/chunks/ColourField-DDGuWWNH.cjs.map +1 -0
  13. package/dist/chunks/{ColourField-Doew1hLw.js → ColourField-Do0rHk-Y.js} +120 -163
  14. package/dist/chunks/ColourField-Do0rHk-Y.js.map +1 -0
  15. package/dist/chunks/{DatePicker-DmeWUsOS.js → DatePicker-B8L-oodC.js} +3 -2
  16. package/dist/chunks/{DatePicker-DmeWUsOS.js.map → DatePicker-B8L-oodC.js.map} +1 -1
  17. package/dist/chunks/{DatePicker-C0-609Zx.cjs → DatePicker-hjpY6Sti.cjs} +2 -2
  18. package/dist/chunks/{DatePicker-C0-609Zx.cjs.map → DatePicker-hjpY6Sti.cjs.map} +1 -1
  19. package/dist/chunks/{FormEditor-DTnFO4oS.js → FormEditor-CwQN8tRw.js} +4 -3
  20. package/dist/chunks/{FormEditor-DTnFO4oS.js.map → FormEditor-CwQN8tRw.js.map} +1 -1
  21. package/dist/chunks/FormEditor-a3kHVLQB.cjs +2 -0
  22. package/dist/chunks/FormEditor-a3kHVLQB.cjs.map +1 -0
  23. package/dist/chunks/Icon-BZjGAu8D.js +84 -0
  24. package/dist/chunks/Icon-BZjGAu8D.js.map +1 -0
  25. package/dist/chunks/Icon-D7GrTtqc.cjs +2 -0
  26. package/dist/chunks/Icon-D7GrTtqc.cjs.map +1 -0
  27. package/dist/chunks/colour-BmtxDlWF.cjs +2 -0
  28. package/dist/chunks/colour-BmtxDlWF.cjs.map +1 -0
  29. package/dist/chunks/colour-CYEF4Q_n.js +48 -0
  30. package/dist/chunks/colour-CYEF4Q_n.js.map +1 -0
  31. package/dist/chunks/isComposing-8bRWyiLF.js +8 -0
  32. package/dist/chunks/isComposing-8bRWyiLF.js.map +1 -0
  33. package/dist/chunks/isComposing-BrBcAANm.cjs +2 -0
  34. package/dist/chunks/isComposing-BrBcAANm.cjs.map +1 -0
  35. package/dist/chunks/transitionDuration-B4UnScFc.cjs +2 -0
  36. package/dist/chunks/transitionDuration-B4UnScFc.cjs.map +1 -0
  37. package/dist/chunks/transitionDuration-BIBA3V7G.js +8 -0
  38. package/dist/chunks/transitionDuration-BIBA3V7G.js.map +1 -0
  39. package/dist/chunks/useModalDialog-Cgus9408.cjs +2 -0
  40. package/dist/chunks/useModalDialog-Cgus9408.cjs.map +1 -0
  41. package/dist/chunks/useModalDialog-Dh-_6A0j.js +85 -0
  42. package/dist/chunks/useModalDialog-Dh-_6A0j.js.map +1 -0
  43. package/dist/chunks/useTooltip-CCf79zE9.cjs +2 -0
  44. package/dist/chunks/useTooltip-CCf79zE9.cjs.map +1 -0
  45. package/dist/chunks/useTooltip-D6cJji8v.js +73 -0
  46. package/dist/chunks/useTooltip-D6cJji8v.js.map +1 -0
  47. package/dist/components/AssetCard/index.cjs +1 -1
  48. package/dist/components/AssetCard/index.cjs.map +1 -1
  49. package/dist/components/AssetCard/index.d.cts +11 -1
  50. package/dist/components/AssetCard/index.d.cts.map +1 -1
  51. package/dist/components/AssetCard/index.d.ts +11 -1
  52. package/dist/components/AssetCard/index.d.ts.map +1 -1
  53. package/dist/components/AssetCard/index.js +93 -57
  54. package/dist/components/AssetCard/index.js.map +1 -1
  55. package/dist/components/AssetCard/style.css +22 -5
  56. package/dist/components/AssetGrid/index.cjs +1 -1
  57. package/dist/components/AssetGrid/index.js +1 -1
  58. package/dist/components/AssetGrid/style.css +2 -1
  59. package/dist/components/Avatar/colour.d.cts +6 -0
  60. package/dist/components/Avatar/colour.d.cts.map +1 -0
  61. package/dist/components/Avatar/colour.d.ts +6 -0
  62. package/dist/components/Avatar/colour.d.ts.map +1 -0
  63. package/dist/components/Avatar/index.cjs +1 -2
  64. package/dist/components/Avatar/index.d.cts +16 -9
  65. package/dist/components/Avatar/index.d.cts.map +1 -1
  66. package/dist/components/Avatar/index.d.ts +16 -9
  67. package/dist/components/Avatar/index.d.ts.map +1 -1
  68. package/dist/components/Avatar/index.js +1 -43
  69. package/dist/components/Avatar/style.css +65 -16
  70. package/dist/components/Board/index.cjs +1 -1
  71. package/dist/components/Board/index.js +1 -1
  72. package/dist/components/Button/index.cjs +1 -1
  73. package/dist/components/Button/index.js +1 -1
  74. package/dist/components/ColourField/index.cjs +1 -1
  75. package/dist/components/ColourField/index.d.cts.map +1 -1
  76. package/dist/components/ColourField/index.d.ts.map +1 -1
  77. package/dist/components/ColourField/index.js +1 -1
  78. package/dist/components/DatePicker/index.cjs +1 -1
  79. package/dist/components/DatePicker/index.d.cts.map +1 -1
  80. package/dist/components/DatePicker/index.d.ts.map +1 -1
  81. package/dist/components/DatePicker/index.js +1 -1
  82. package/dist/components/Drawer/index.cjs +1 -1
  83. package/dist/components/Drawer/index.cjs.map +1 -1
  84. package/dist/components/Drawer/index.d.cts.map +1 -1
  85. package/dist/components/Drawer/index.d.ts.map +1 -1
  86. package/dist/components/Drawer/index.js +37 -36
  87. package/dist/components/Drawer/index.js.map +1 -1
  88. package/dist/components/EditLayout/index.cjs +1 -1
  89. package/dist/components/EditLayout/index.js +1 -1
  90. package/dist/components/EntryPicker/index.cjs +1 -1
  91. package/dist/components/EntryPicker/index.js +1 -1
  92. package/dist/components/FormEditor/index.cjs +1 -1
  93. package/dist/components/FormEditor/index.js +1 -1
  94. package/dist/components/Grid/style.css +8 -6
  95. package/dist/components/Icon/icons.d.cts +3 -0
  96. package/dist/components/Icon/icons.d.cts.map +1 -1
  97. package/dist/components/Icon/icons.d.ts +3 -0
  98. package/dist/components/Icon/icons.d.ts.map +1 -1
  99. package/dist/components/Icon/index.cjs +1 -1
  100. package/dist/components/Icon/index.js +1 -1
  101. package/dist/components/Menu/index.cjs +1 -1
  102. package/dist/components/Menu/index.cjs.map +1 -1
  103. package/dist/components/Menu/index.d.cts.map +1 -1
  104. package/dist/components/Menu/index.d.ts.map +1 -1
  105. package/dist/components/Menu/index.js +2 -1
  106. package/dist/components/Menu/index.js.map +1 -1
  107. package/dist/components/Modal/index.cjs +1 -1
  108. package/dist/components/Modal/index.js +1 -1
  109. package/dist/components/Popover/index.cjs +1 -1
  110. package/dist/components/Popover/index.cjs.map +1 -1
  111. package/dist/components/Popover/index.d.cts +2 -2
  112. package/dist/components/Popover/index.d.cts.map +1 -1
  113. package/dist/components/Popover/index.d.ts +2 -2
  114. package/dist/components/Popover/index.d.ts.map +1 -1
  115. package/dist/components/Popover/index.js +69 -53
  116. package/dist/components/Popover/index.js.map +1 -1
  117. package/dist/components/Popover/style.css +33 -1
  118. package/dist/components/Popover/useTooltip.d.cts +33 -0
  119. package/dist/components/Popover/useTooltip.d.cts.map +1 -0
  120. package/dist/components/Popover/useTooltip.d.ts +33 -0
  121. package/dist/components/Popover/useTooltip.d.ts.map +1 -0
  122. package/dist/components/SearchField/index.cjs +1 -1
  123. package/dist/components/SearchField/index.js +1 -1
  124. package/dist/components/Select/index.cjs +1 -1
  125. package/dist/components/Select/index.cjs.map +1 -1
  126. package/dist/components/Select/index.d.cts.map +1 -1
  127. package/dist/components/Select/index.d.ts.map +1 -1
  128. package/dist/components/Select/index.js +2 -1
  129. package/dist/components/Select/index.js.map +1 -1
  130. package/dist/components/SideNav/index.cjs +1 -1
  131. package/dist/components/SideNav/index.js +1 -1
  132. package/dist/components/SortableList/index.cjs +1 -1
  133. package/dist/components/SortableList/index.js +1 -1
  134. package/dist/components/Stepper/index.cjs +1 -1
  135. package/dist/components/Stepper/index.js +1 -1
  136. package/dist/components/SubNav/index.cjs +1 -1
  137. package/dist/components/SubNav/index.js +1 -1
  138. package/dist/components/Table/index.cjs +1 -1
  139. package/dist/components/Table/index.js +1 -1
  140. package/dist/components/Time/index.cjs +1 -1
  141. package/dist/components/Time/index.cjs.map +1 -1
  142. package/dist/components/Time/index.d.cts.map +1 -1
  143. package/dist/components/Time/index.d.ts.map +1 -1
  144. package/dist/components/Time/index.js +25 -42
  145. package/dist/components/Time/index.js.map +1 -1
  146. package/dist/components/Time/style.css +1 -3
  147. package/dist/components/Toast/index.cjs +1 -1
  148. package/dist/components/Toast/index.js +1 -1
  149. package/dist/components/TopNav/index.cjs +1 -1
  150. package/dist/components/TopNav/index.js +1 -1
  151. package/dist/index.cjs +1 -1
  152. package/dist/index.js +7 -7
  153. package/dist/internal/isComposing.d.cts +3 -0
  154. package/dist/internal/isComposing.d.cts.map +1 -0
  155. package/dist/internal/isComposing.d.ts +3 -0
  156. package/dist/internal/isComposing.d.ts.map +1 -0
  157. package/dist/internal/transitionDuration.d.cts +3 -0
  158. package/dist/internal/transitionDuration.d.cts.map +1 -0
  159. package/dist/internal/transitionDuration.d.ts +3 -0
  160. package/dist/internal/transitionDuration.d.ts.map +1 -0
  161. package/dist/internal/useModalDialog.d.cts.map +1 -1
  162. package/dist/internal/useModalDialog.d.ts.map +1 -1
  163. package/dist/styles.css +1 -1
  164. package/package.json +1 -1
  165. package/dist/chunks/ColourField-BQ4a5tAV.cjs +0 -2
  166. package/dist/chunks/ColourField-BQ4a5tAV.cjs.map +0 -1
  167. package/dist/chunks/ColourField-Doew1hLw.js.map +0 -1
  168. package/dist/chunks/FormEditor-DfQLJnsO.cjs +0 -2
  169. package/dist/chunks/FormEditor-DfQLJnsO.cjs.map +0 -1
  170. package/dist/chunks/Icon-D1kx7-1c.js +0 -81
  171. package/dist/chunks/Icon-D1kx7-1c.js.map +0 -1
  172. package/dist/chunks/Icon-D38lQXNe.cjs +0 -2
  173. package/dist/chunks/Icon-D38lQXNe.cjs.map +0 -1
  174. package/dist/chunks/useModalDialog-BVaG--b3.js +0 -87
  175. package/dist/chunks/useModalDialog-BVaG--b3.js.map +0 -1
  176. package/dist/chunks/useModalDialog-Ctu270Dp.cjs +0 -2
  177. package/dist/chunks/useModalDialog-Ctu270Dp.cjs.map +0 -1
  178. package/dist/components/Avatar/index.cjs.map +0 -1
  179. package/dist/components/Avatar/index.js.map +0 -1
@@ -1,16 +1,53 @@
1
1
  @layer components {
2
2
  .ds-avatar {
3
+ /* Sizes sit on the spacing scale shared with Button's xs, sm and md squares. */
4
+ --avatar-size: var(--space-6);
5
+ --avatar-font-size: 10px;
6
+
3
7
  display: inline-flex;
8
+ position: relative;
9
+ box-sizing: border-box;
10
+ inline-size: var(--avatar-size);
11
+ block-size: var(--avatar-size);
12
+ min-inline-size: var(--avatar-size);
13
+ max-inline-size: var(--avatar-size);
14
+ min-block-size: var(--avatar-size);
15
+ max-block-size: var(--avatar-size);
16
+ flex: none;
17
+ aspect-ratio: 1;
18
+ align-items: center;
19
+ justify-content: center;
20
+ border-radius: 50%;
21
+ background: var(--color-surface-subtle);
22
+ user-select: none;
23
+ }
24
+
25
+ .ds-avatar[data-size="32"] {
26
+ --avatar-size: var(--space-8);
27
+ --avatar-font-size: var(--field-font-size-sm);
28
+ }
29
+
30
+ .ds-avatar[data-size="40"] {
31
+ --avatar-size: var(--space-10);
32
+ --avatar-font-size: var(--font-size-md);
33
+ }
34
+
35
+ /* Drawn at the avatar's own size above any link or Button, so every mode paints the same circle. */
36
+ .ds-avatar__content {
37
+ display: inline-flex;
38
+ position: absolute;
39
+ inset: 0;
40
+ box-sizing: border-box;
4
41
  align-items: center;
5
42
  justify-content: center;
6
43
  overflow: hidden;
44
+ background: var(--avatar-background, transparent);
45
+ color: var(--avatar-foreground, var(--color-text));
7
46
  border: var(--control-border-width) solid var(--control-border-color);
8
- border-radius: var(--radius-pill);
9
- background: var(--color-surface-subtle);
10
- color: var(--color-text);
47
+ border-radius: 50%;
48
+ font-size: var(--avatar-font-size);
11
49
  font-weight: var(--font-weight-bold);
12
50
  line-height: 1;
13
- user-select: none;
14
51
  }
15
52
 
16
53
  .ds-avatar img {
@@ -19,22 +56,25 @@
19
56
  object-fit: cover;
20
57
  }
21
58
 
22
- .ds-avatar[data-size="24"] {
23
- inline-size: var(--icon-lg);
24
- block-size: var(--icon-lg);
25
- font-size: 10px;
59
+ .ds-avatar > a.ds-avatar__control {
60
+ position: absolute;
61
+ inset: 0;
62
+ border-radius: 50%;
63
+ color: inherit;
64
+ text-decoration: none;
26
65
  }
27
66
 
28
- .ds-avatar[data-size="32"] {
29
- inline-size: var(--space-8);
30
- block-size: var(--space-8);
31
- font-size: var(--field-font-size-sm);
67
+ /* Button keeps its own size, fill, and focus ring; only its outline becomes the circle. */
68
+ .ds-avatar > .ds-button.ds-avatar__control {
69
+ border-radius: 50%;
32
70
  }
33
71
 
34
- .ds-avatar[data-size="40"] {
35
- inline-size: var(--space-10);
36
- block-size: var(--space-10);
37
- font-size: var(--font-size-md);
72
+ /* Focus targets that are not Buttons: passive avatars, links, and the overflow chip. */
73
+ .ds-avatar:focus-visible,
74
+ .ds-avatar > a.ds-avatar__control:focus-visible,
75
+ .ds-avatar-group__count:focus-visible {
76
+ outline: var(--control-border-width) solid var(--color-focus);
77
+ outline-offset: 2px;
38
78
  }
39
79
 
40
80
  .ds-avatar-group {
@@ -58,7 +98,12 @@
58
98
  z-index: 1;
59
99
  }
60
100
 
101
+ .ds-avatar-group .ds-avatar:focus-within {
102
+ z-index: 4;
103
+ }
104
+
61
105
  .ds-avatar-group__count {
106
+ flex: none;
62
107
  margin-inline-start: var(--space-2);
63
108
  padding: 2px var(--space-2);
64
109
  border: var(--badge-border-width) solid var(--color-text-muted);
@@ -67,4 +112,8 @@
67
112
  font-size: var(--font-size-xs);
68
113
  font-weight: var(--font-weight-bold);
69
114
  }
115
+
116
+ .ds-avatar-tooltip {
117
+ overflow-wrap: anywhere;
118
+ }
70
119
  }
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Board-BPA6mVhf.cjs");exports.Board=e.t,exports.BoardCard=e.n,exports.BoardColumn=e.r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Board-Ct1t69ot.cjs");exports.Board=e.t,exports.BoardCard=e.n,exports.BoardColumn=e.r;
@@ -1 +1 @@
1
- export { t as Board, n as BoardCard, r as BoardColumn } from "../../chunks/Board-CcIF7jS0.js";
1
+ export { t as Board, n as BoardCard, r as BoardColumn } from "../../chunks/Board-BYPzybjf.js";
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D38lQXNe.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({variant:t=`neutral`,size:r=`md`,iconStart:i,iconEnd:a,isIconOnly:o=!1,isDisabled:s=!1,isPending:c=!1,isFocusableWhenDisabled:l=!1,className:u,children:d,type:f=`button`,onClick:p,...m},h){let g=r===`lg`?20:16,_=s||c,v=_&&l;return(0,n.jsxs)(`button`,{ref:h,type:f,disabled:_&&!l,"aria-disabled":v||void 0,"data-variant":t,"data-size":r,"data-icon-only":o||void 0,"data-pending":c||void 0,className:[`ds-button`,u].filter(Boolean).join(` `),...m,onClick:v?e=>e.preventDefault():p,children:[c?(0,n.jsx)(e.t,{name:`spinner`,size:g,className:`ds-button__spinner ds-icon--spin`}):i&&(0,n.jsx)(e.t,{name:i,size:g}),(!o||!i&&!c)&&d,a&&!o&&(0,n.jsx)(e.t,{name:a,size:g})]})});exports.Button=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D7GrTtqc.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(function({variant:t=`neutral`,size:r=`md`,iconStart:i,iconEnd:a,isIconOnly:o=!1,isDisabled:s=!1,isPending:c=!1,isFocusableWhenDisabled:l=!1,className:u,children:d,type:f=`button`,onClick:p,...m},h){let g=r===`lg`?20:16,_=s||c,v=_&&l;return(0,n.jsxs)(`button`,{ref:h,type:f,disabled:_&&!l,"aria-disabled":v||void 0,"data-variant":t,"data-size":r,"data-icon-only":o||void 0,"data-pending":c||void 0,className:[`ds-button`,u].filter(Boolean).join(` `),...m,onClick:v?e=>e.preventDefault():p,children:[c?(0,n.jsx)(e.t,{name:`spinner`,size:g,className:`ds-button__spinner ds-icon--spin`}):i&&(0,n.jsx)(e.t,{name:i,size:g}),(!o||!i&&!c)&&d,a&&!o&&(0,n.jsx)(e.t,{name:a,size:g})]})});exports.Button=r;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../chunks/Icon-D1kx7-1c.js";
1
+ import { t as e } from "../../chunks/Icon-BZjGAu8D.js";
2
2
  import { forwardRef as t } from "react";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  //#region src/components/Button/index.tsx
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/ColourField-BQ4a5tAV.cjs");exports.ColourField=e.t,exports.ColourPanel=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/ColourField-DDGuWWNH.cjs");exports.ColourField=e.t,exports.ColourPanel=e.n;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC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AAE,gBAAgB,CAAC;IAC7B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,+GAqOtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAkC,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBACf,SACE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,EACjF,gBAAgB,EAChB,mBAAmB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,+GAoOtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ColourField/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9D,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAkC,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBACf,SACE,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,EACjF,gBAAgB,EAChB,mBAAmB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iGAAiG;IACjG,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,+GAqOtB,CAAC"}
@@ -1 +1 @@
1
- export { t as ColourField, n as ColourPanel } from "../../chunks/ColourField-Doew1hLw.js";
1
+ export { t as ColourField, n as ColourPanel } from "../../chunks/ColourField-Do0rHk-Y.js";
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/DatePicker-C0-609Zx.cjs");exports.Calendar=e.t,exports.DateField=e.n,exports.DateRangeField=e.r,exports.formatIsoDate=e.i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/DatePicker-hjpY6Sti.cjs");exports.Calendar=e.t,exports.DateField=e.n,exports.DateRangeField=e.r,exports.formatIsoDate=e.i;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACxD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AAa,EACb,IAAW,EACX,WAA2B,EAC3B,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAkB,EAClB,SAAiB,EACjB,WAAmB,EACnB,UAAyB,EACzB,cAAc,EAAE,WAAW,EAC3B,EAAE,EACF,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,+BAgHhB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAqC,EACrC,aAAa,EACb,IAAW,EACX,GAAG,EACH,GAAG,EACH,UAAkB,EAClB,WAAmB,EACnB,UAAyB,EACzB,QAAqB,EACrB,SAAS,EACT,SAAS,EACT,GAAG,OAAO,EACX,EAAE,mBAAmB,+BAqDrB"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;A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AAED,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,IAAW,EACX,WAA2B,EAC3B,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAkB,EAClB,SAAiB,EACjB,WAAmB,EACnB,UAAyB,EACzB,cAAc,EAAE,WAAW,EAC3B,EAAE,EACF,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,+BAiHhB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,YAAqC,EACrC,aAAa,EACb,IAAW,EACX,GAAG,EACH,GAAG,EACH,UAAkB,EAClB,WAAmB,EACnB,UAAyB,EACzB,QAAqB,EACrB,SAAS,EACT,SAAS,EACT,GAAG,OAAO,EACX,EAAE,mBAAmB,+BAqDrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,KAAK,cAAc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O,EACX,EAAE,mBAAmB,+BAqDrB"}
@@ -1 +1 @@
1
- export { t as Calendar, n as DateField, r as DateRangeField, i as formatIsoDate } from "../../chunks/DatePicker-DmeWUsOS.js";
1
+ export { t as Calendar, n as DateField, r as DateRangeField, i as formatIsoDate } from "../../chunks/DatePicker-B8L-oodC.js";
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Button/index.cjs"),t=require("../../chunks/mergeRefs-Bc3qS0Tt.cjs"),n=require("../../chunks/useModalDialog-Ctu270Dp.cjs"),r=require("../../chunks/portalScope-BVA1-Ypu.cjs");let i=require("react"),a=require("react-dom"),o=require("react/jsx-runtime");function s(e,t){let[n,r]=(0,i.useState)(e),[a,o]=(0,i.useState)(!1);return n!==e&&(r(e),o(!e)),(0,i.useEffect)(()=>{if(!a||e)return;let n=getComputedStyle(t.current).transitionDuration.split(`,`),r=Math.max(0,...n.map(e=>parseFloat(e)*(e.trim().endsWith(`ms`)?1:1e3)||0)),i=window.setTimeout(()=>o(!1),r);return()=>window.clearTimeout(i)},[a,e,t]),[a,o]}var c=(0,i.forwardRef)(function({isOpen:c,onClose:l,title:u,description:d,side:f=`end`,size:p=`md`,variant:m=`default`,closeLabel:h=`Close`,portalContainer:g,footer:_,className:v,children:y,...b},x){let S=(0,i.useRef)(null),C=(0,i.useRef)(null),w=(0,i.useRef)(null),T=(0,i.useId)(),E=(0,i.useId)(),[D,O]=s(c,C),{onScrimMouseDown:k}=n.t({isOpen:c,panelRef:S,onClose:l,initialFocus:m===`navigation`?()=>w.current:void 0,preventScroll:!0,container:g});return r.n(C,c,{keepDir:b.dir!==void 0}),!c&&!D||typeof document>`u`?null:(0,a.createPortal)((0,o.jsx)(`div`,{ref:e=>{C.current=e,e&&(e.inert=!c)},className:`ds-drawer-scrim`,dir:b.dir,"data-side":f,"data-variant":m,"data-contained":g?``:void 0,"data-state":c?`open`:`closed`,"aria-hidden":!c||void 0,onTransitionEnd:e=>{e.target===e.currentTarget&&e.propertyName===`opacity`&&!c&&O(!1)},onMouseDown:k,children:(0,o.jsxs)(`div`,{...b,ref:t.t(S,x),role:`dialog`,"aria-modal":`true`,"aria-labelledby":b[`aria-label`]?void 0:b[`aria-labelledby`]??T,"aria-describedby":d?E:void 0,tabIndex:-1,"data-side":f,"data-size":p,"data-variant":m,className:[`ds-drawer`,v].filter(Boolean).join(` `),children:[(0,o.jsxs)(`header`,{className:`ds-drawer__head`,children:[(0,o.jsxs)(`div`,{className:`ds-drawer__titles`,children:[(0,o.jsx)(`h2`,{id:T,className:`ds-drawer__title`,children:u}),d&&(0,o.jsx)(`p`,{id:E,className:`ds-drawer__description`,children:d})]}),(0,o.jsx)(e.Button,{ref:w,variant:`simple`,size:m===`navigation`?`lg`:`sm`,isIconOnly:!0,iconStart:`x`,className:m===`navigation`?`ds-drawer__close`:void 0,"aria-label":h,onClick:l})]}),(0,o.jsx)(`div`,{className:`ds-drawer__body`,children:y}),_&&(0,o.jsx)(`footer`,{className:`ds-drawer__footer`,children:_})]})}),g??document.body)});exports.Drawer=c;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Button/index.cjs"),t=require("../../chunks/transitionDuration-B4UnScFc.cjs"),n=require("../../chunks/mergeRefs-Bc3qS0Tt.cjs"),r=require("../../chunks/useModalDialog-Cgus9408.cjs"),i=require("../../chunks/portalScope-BVA1-Ypu.cjs");let a=require("react"),o=require("react-dom"),s=require("react/jsx-runtime");function c(e,n){let[r,i]=(0,a.useState)(e),[o,s]=(0,a.useState)(!1);return r!==e&&(i(e),s(!e)),(0,a.useEffect)(()=>{if(!o||e)return;let r=t.t(n.current),i=window.setTimeout(()=>s(!1),r);return()=>window.clearTimeout(i)},[o,e,n]),[o,s]}var l=(0,a.forwardRef)(function({isOpen:t,onClose:l,title:u,description:d,side:f=`end`,size:p=`md`,variant:m=`default`,closeLabel:h=`Close`,portalContainer:g,footer:_,className:v,children:y,...b},x){let S=(0,a.useRef)(null),C=(0,a.useRef)(null),w=(0,a.useRef)(null),T=(0,a.useId)(),E=(0,a.useId)(),[D,O]=c(t,C),{onScrimMouseDown:k}=r.t({isOpen:t,panelRef:S,onClose:l,initialFocus:m===`navigation`?()=>w.current:void 0,preventScroll:!0,container:g});return i.n(C,t,{keepDir:b.dir!==void 0}),!t&&!D||typeof document>`u`?null:(0,o.createPortal)((0,s.jsx)(`div`,{ref:e=>{C.current=e,e&&(e.inert=!t)},className:`ds-drawer-scrim`,dir:b.dir,"data-side":f,"data-variant":m,"data-contained":g?``:void 0,"data-state":t?`open`:`closed`,"aria-hidden":!t||void 0,onTransitionEnd:e=>{e.target===e.currentTarget&&e.propertyName===`opacity`&&!t&&O(!1)},onMouseDown:k,children:(0,s.jsxs)(`div`,{...b,ref:n.t(S,x),role:`dialog`,"aria-modal":`true`,"aria-labelledby":b[`aria-label`]?void 0:b[`aria-labelledby`]??T,"aria-describedby":d?E:void 0,tabIndex:-1,"data-side":f,"data-size":p,"data-variant":m,className:[`ds-drawer`,v].filter(Boolean).join(` `),children:[(0,s.jsxs)(`header`,{className:`ds-drawer__head`,children:[(0,s.jsxs)(`div`,{className:`ds-drawer__titles`,children:[(0,s.jsx)(`h2`,{id:T,className:`ds-drawer__title`,children:u}),d&&(0,s.jsx)(`p`,{id:E,className:`ds-drawer__description`,children:d})]}),(0,s.jsx)(e.Button,{ref:w,variant:`simple`,size:m===`navigation`?`lg`:`sm`,isIconOnly:!0,iconStart:`x`,className:m===`navigation`?`ds-drawer__close`:void 0,"aria-label":h,onClick:l})]}),(0,s.jsx)(`div`,{className:`ds-drawer__body`,children:y}),_&&(0,s.jsx)(`footer`,{className:`ds-drawer__footer`,children:_})]})}),g??document.body)});exports.Drawer=l;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["useState","forwardRef","useRef","useId","useModalDialog","createPortal","mergeRefs","Button","require_components_Button_index","require_mergeRefs","require_useModalDialog","require_portalScope","react","react_dom","react_jsx_runtime","useDrawerExit","previousOpen","setPreviousOpen","isOpen","exiting","setExiting","durations","scrimRef","duration","value","timeout","Drawer","rest","panelRef","closeRef","titleId","descriptionId","variant","portalContainer","node","side","event","onScrimMouseDown","ref","description","size","className","title","closeLabel","onClose","footer"],"sources":["../../../src/components/Drawer/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useId,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Button } from \"../Button\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport { useModalDialog } from \"../../internal/useModalDialog\";\nimport { useInheritedPortalScope } from \"../../internal/portalScope\";\nimport \"./style.css\";\n\nexport type DrawerSide = \"end\" | \"start\" | \"bottom\";\nexport type DrawerSize = \"md\" | \"wide\";\n\nexport interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n isOpen: boolean;\n /** Escape, the scrim and the close button all call this. */\n onClose: () => void;\n title: ReactNode;\n description?: string;\n /** Which edge the panel is anchored to. */\n side?: DrawerSide;\n size?: DrawerSize;\n /** Navigation uses a compact panel, header and footer. Both variants slide in and out. */\n variant?: \"default\" | \"navigation\";\n /** Accessible name of the dismiss button. */\n closeLabel?: string;\n /**\n * Defaults to document.body, covering the viewport. A navigation drawer\n * portaled into a positioned element, such as an app shell, stays inside it.\n */\n portalContainer?: HTMLElement | null;\n /** Actions, right-aligned. The confirming action goes last. */\n footer?: ReactNode;\n children?: ReactNode;\n}\n\nfunction useDrawerExit(isOpen: boolean, scrimRef: RefObject<HTMLDivElement | null>) {\n const [previousOpen, setPreviousOpen] = useState(isOpen);\n const [exiting, setExiting] = useState(false);\n\n if (previousOpen !== isOpen) {\n setPreviousOpen(isOpen);\n setExiting(!isOpen);\n }\n\n useEffect(() => {\n if (!exiting || isOpen) {\n return;\n }\n // Read the actual transition, including token overrides and reduced motion.\n const durations = getComputedStyle(scrimRef.current!).transitionDuration.split(\",\");\n const duration = Math.max(\n 0,\n ...durations.map(\n (value) => parseFloat(value) * (value.trim().endsWith(\"ms\") ? 1 : 1000) || 0,\n ),\n );\n const timeout = window.setTimeout(() => setExiting(false), duration);\n return () => window.clearTimeout(timeout);\n }, [exiting, isOpen, scrimRef]);\n\n return [exiting, setExiting] as const;\n}\n\n/**\n * A side panel for work that belongs beside the page rather than on top of it\n * — editing one record, a filter set, a revision history. Same frame, rules\n * and footer band as `Modal`, with square corners and a full slide through\n * its anchored edge. Focus is trapped while open.\n */\nexport const Drawer = forwardRef<HTMLDivElement, DrawerProps>(function Drawer(\n {\n isOpen,\n onClose,\n title,\n description,\n side = \"end\",\n size = \"md\",\n variant = \"default\",\n closeLabel = \"Close\",\n portalContainer,\n footer,\n className,\n children,\n ...rest\n },\n ref,\n) {\n const panelRef = useRef<HTMLDivElement | null>(null);\n const scrimRef = useRef<HTMLDivElement | null>(null);\n const closeRef = useRef<HTMLButtonElement | null>(null);\n const titleId = useId();\n const descriptionId = useId();\n const [exiting, setExiting] = useDrawerExit(isOpen, scrimRef);\n const { onScrimMouseDown } = useModalDialog({\n isOpen,\n panelRef,\n onClose,\n initialFocus: variant === \"navigation\" ? () => closeRef.current : undefined,\n // Panels start off-screen; focusing them must not scroll the page with them.\n preventScroll: true,\n container: portalContainer,\n });\n useInheritedPortalScope(scrimRef, isOpen, { keepDir: rest.dir !== undefined });\n\n if ((!isOpen && !exiting) || typeof document === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <div\n ref={(node) => {\n scrimRef.current = node;\n if (node) {\n node.inert = !isOpen;\n }\n }}\n className=\"ds-drawer-scrim\"\n dir={rest.dir}\n data-side={side}\n data-variant={variant}\n data-contained={portalContainer ? \"\" : undefined}\n data-state={isOpen ? \"open\" : \"closed\"}\n aria-hidden={!isOpen || undefined}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === \"opacity\" && !isOpen) {\n setExiting(false);\n }\n }}\n onMouseDown={onScrimMouseDown}\n >\n <div\n {...rest}\n ref={mergeRefs(panelRef, ref)}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={rest[\"aria-label\"] ? undefined : (rest[\"aria-labelledby\"] ?? titleId)}\n aria-describedby={description ? descriptionId : undefined}\n tabIndex={-1}\n data-side={side}\n data-size={size}\n data-variant={variant}\n className={[\"ds-drawer\", className].filter(Boolean).join(\" \")}\n >\n <header className=\"ds-drawer__head\">\n <div className=\"ds-drawer__titles\">\n <h2\n id={titleId}\n className=\"ds-drawer__title\"\n >\n {title}\n </h2>\n {description && (\n <p\n id={descriptionId}\n className=\"ds-drawer__description\"\n >\n {description}\n </p>\n )}\n </div>\n <Button\n ref={closeRef}\n variant=\"simple\"\n size={variant === \"navigation\" ? \"lg\" : \"sm\"}\n isIconOnly\n iconStart=\"x\"\n className={variant === \"navigation\" ? \"ds-drawer__close\" : undefined}\n aria-label={closeLabel}\n onClick={onClose}\n />\n </header>\n <div className=\"ds-drawer__body\">{children}</div>\n {footer && <footer className=\"ds-drawer__footer\">{footer}</footer>}\n </div>\n </div>,\n portalContainer ?? document.body,\n );\n});\n"],"mappings":"A,iVA2CA,SAASe,EAAc,EAAiB,EAA4C,CAClF,GAAM,CAACC,EAAcC,IAAA,EAAmBjB,EAAAA,SAAAA,CAASkB,CAAM,EACjD,CAACC,EAASC,IAAA,EAAcpB,EAAAA,SAAAA,CAAS,EAAK,EAuB5C,OArBIgB,IAAiBE,IACnBD,EAAgBC,CAAM,EACtBE,EAAW,CAACF,CAAM,IAGpB,EAAAN,EAAA,UAAA,KAAgB,CACd,GAAI,CAACO,GAAWD,EACd,OAGF,IAAMG,EAAY,iBAAiBC,EAAS,OAAQ,CAAC,CAAC,mBAAmB,MAAM,GAAG,EAC5EC,EAAW,KAAK,IACpB,EACA,GAAGF,EAAU,IACV,GAAU,WAAWG,CAAK,GAAKA,EAAM,KAAK,CAAC,CAAC,SAAS,IAAI,EAAI,EAAI,MAAS,CAC7E,CACF,EACMC,EAAU,OA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CAAClB,GAC/EE,EAAW,EAAK,CAEpB,EACA,YAAaiB,EAEb,UAAA,EAAAvB,EAAA,KAAA,CAAC,MAAD,CACE,GAAIa,EACJ,IAAKrB,EAAAA,EAAUsB,EAAUU,CAAG,EAC5B,KAAK,SACL,aAAW,OACX,kBAAiBX,EAAK,cAAgB,IAAA,GAAaA,EAAK,oBAAsBG,EAC9E,mBAAkBS,EAAcR,EAAgB,IAAA,GAChD,SAAU,GACV,YAAWI,EACX,YAAWK,EACX,eAAcR,EACd,UAAW,CAAC,YAAaS,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAX9D,SAAA,EAaE,EAAA3B,EAAA,KAAA,CAAC,SAAD,CAAQ,UAAU,kBAAlB,SAAA,EACE,EAAAA,EAAA,KAAA,CAAC,MAAD,CAAK,UAAU,oBAAf,SAAA,EACE,EAAAA,EAAA,IAAA,CAAC,KAAD,CACE,GAAIgB,EACJ,UAAU,mBAET,SAAAY,CACC,CAAA,EACHH,IACC,EAAAzB,EAAA,IAAA,CAAC,IAAD,CACE,GAAIiB,EACJ,UAAU,yBAET,SAAAQ,CACA,CAAA,CAEF,CACL,CAAA,GAAA,EAAAzB,EAAA,IAAA,CAACP,EAAAA,OAAD,CACE,IAAKsB,EACL,QAAQ,SACR,KAAMG,IAAY,aAAe,KAAO,KACxC,WAAA,GACA,UAAU,IACV,UAAWA,IAAY,aAAe,mBAAqB,IAAA,GAC3D,aAAYW,EACZ,QAASC,CACV,CAAA,CACK,C,IACR,EAAA9B,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,kBAAmB,UAAc,CAAA,EAC/C+B,IAAU,EAAA/B,EAAA,IAAA,CAAC,SAAD,CAAQ,UAAU,oBAAqB,SAAA+B,CAAe,CAAA,CAC9D,C,EACF,CAAA,EACLZ,GAAmB,SAAS,IAC9B,CACF,CAAC,E"}
1
+ {"version":3,"file":"index.cjs","names":["useState","transitionDurationMs","forwardRef","useRef","useId","useModalDialog","createPortal","mergeRefs","Button","require_components_Button_index","require_transitionDuration","require_mergeRefs","require_useModalDialog","require_portalScope","react","react_dom","react_jsx_runtime","useDrawerExit","previousOpen","setPreviousOpen","isOpen","exiting","setExiting","duration","scrimRef","timeout","Drawer","rest","panelRef","closeRef","titleId","descriptionId","variant","portalContainer","node","side","event","onScrimMouseDown","ref","description","size","className","title","closeLabel","onClose","footer"],"sources":["../../../src/components/Drawer/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useId,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Button } from \"../Button\";\nimport { transitionDurationMs } from \"../../internal/transitionDuration\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport { useModalDialog } from \"../../internal/useModalDialog\";\nimport { useInheritedPortalScope } from \"../../internal/portalScope\";\nimport \"./style.css\";\n\nexport type DrawerSide = \"end\" | \"start\" | \"bottom\";\nexport type DrawerSize = \"md\" | \"wide\";\n\nexport interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n isOpen: boolean;\n /** Escape, the scrim and the close button all call this. */\n onClose: () => void;\n title: ReactNode;\n description?: string;\n /** Which edge the panel is anchored to. */\n side?: DrawerSide;\n size?: DrawerSize;\n /** Navigation uses a compact panel, header and footer. Both variants slide in and out. */\n variant?: \"default\" | \"navigation\";\n /** Accessible name of the dismiss button. */\n closeLabel?: string;\n /**\n * Defaults to document.body, covering the viewport. A navigation drawer\n * portaled into a positioned element, such as an app shell, stays inside it.\n */\n portalContainer?: HTMLElement | null;\n /** Actions, right-aligned. The confirming action goes last. */\n footer?: ReactNode;\n children?: ReactNode;\n}\n\nfunction useDrawerExit(isOpen: boolean, scrimRef: RefObject<HTMLDivElement | null>) {\n const [previousOpen, setPreviousOpen] = useState(isOpen);\n const [exiting, setExiting] = useState(false);\n\n if (previousOpen !== isOpen) {\n setPreviousOpen(isOpen);\n setExiting(!isOpen);\n }\n\n useEffect(() => {\n if (!exiting || isOpen) {\n return;\n }\n // Read the actual transition, including token overrides and reduced motion.\n const duration = transitionDurationMs(scrimRef.current!);\n const timeout = window.setTimeout(() => setExiting(false), duration);\n return () => window.clearTimeout(timeout);\n }, [exiting, isOpen, scrimRef]);\n\n return [exiting, setExiting] as const;\n}\n\n/**\n * A side panel for work that belongs beside the page rather than on top of it\n * — editing one record, a filter set, a revision history. Same frame, rules\n * and footer band as `Modal`, with square corners and a full slide through\n * its anchored edge. Focus is trapped while open.\n */\nexport const Drawer = forwardRef<HTMLDivElement, DrawerProps>(function Drawer(\n {\n isOpen,\n onClose,\n title,\n description,\n side = \"end\",\n size = \"md\",\n variant = \"default\",\n closeLabel = \"Close\",\n portalContainer,\n footer,\n className,\n children,\n ...rest\n },\n ref,\n) {\n const panelRef = useRef<HTMLDivElement | null>(null);\n const scrimRef = useRef<HTMLDivElement | null>(null);\n const closeRef = useRef<HTMLButtonElement | null>(null);\n const titleId = useId();\n const descriptionId = useId();\n const [exiting, setExiting] = useDrawerExit(isOpen, scrimRef);\n const { onScrimMouseDown } = useModalDialog({\n isOpen,\n panelRef,\n onClose,\n initialFocus: variant === \"navigation\" ? () => closeRef.current : undefined,\n // Panels start off-screen; focusing them must not scroll the page with them.\n preventScroll: true,\n container: portalContainer,\n });\n useInheritedPortalScope(scrimRef, isOpen, { keepDir: rest.dir !== undefined });\n\n if ((!isOpen && !exiting) || typeof document === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <div\n ref={(node) => {\n scrimRef.current = node;\n if (node) {\n node.inert = !isOpen;\n }\n }}\n className=\"ds-drawer-scrim\"\n dir={rest.dir}\n data-side={side}\n data-variant={variant}\n data-contained={portalContainer ? \"\" : undefined}\n data-state={isOpen ? \"open\" : \"closed\"}\n aria-hidden={!isOpen || undefined}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === \"opacity\" && !isOpen) {\n setExiting(false);\n }\n }}\n onMouseDown={onScrimMouseDown}\n >\n <div\n {...rest}\n ref={mergeRefs(panelRef, ref)}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={rest[\"aria-label\"] ? undefined : (rest[\"aria-labelledby\"] ?? titleId)}\n aria-describedby={description ? descriptionId : undefined}\n tabIndex={-1}\n data-side={side}\n data-size={size}\n data-variant={variant}\n className={[\"ds-drawer\", className].filter(Boolean).join(\" \")}\n >\n <header className=\"ds-drawer__head\">\n <div className=\"ds-drawer__titles\">\n <h2\n id={titleId}\n className=\"ds-drawer__title\"\n >\n {title}\n </h2>\n {description && (\n <p\n id={descriptionId}\n className=\"ds-drawer__description\"\n >\n {description}\n </p>\n )}\n </div>\n <Button\n ref={closeRef}\n variant=\"simple\"\n size={variant === \"navigation\" ? \"lg\" : \"sm\"}\n isIconOnly\n iconStart=\"x\"\n className={variant === \"navigation\" ? \"ds-drawer__close\" : undefined}\n aria-label={closeLabel}\n onClick={onClose}\n />\n </header>\n <div className=\"ds-drawer__body\">{children}</div>\n {footer && <footer className=\"ds-drawer__footer\">{footer}</footer>}\n </div>\n </div>,\n portalContainer ?? document.body,\n );\n});\n"],"mappings":"A,2YA4CA,SAASiB,EAAc,EAAiB,EAA4C,CAClF,GAAM,CAACC,EAAcC,IAAA,EAAmBnB,EAAAA,SAAAA,CAASoB,CAAM,EACjD,CAACC,EAASC,IAAA,EAActB,EAAAA,SAAAA,CAAS,EAAK,EAiB5C,OAfIkB,IAAiBE,IACnBD,EAAgBC,CAAM,EACtBE,EAAW,CAACF,CAAM,IAGpB,EAAAN,EAAA,UAAA,KAAgB,CACd,GAAI,CAACO,GAAWD,EACd,OAGF,IAAMG,EAAWtB,EAAAA,EAAqBuB,EAAS,OAAQ,EACjDC,EAAU,OAAO,eAAiBH,EAAW,EAAK,EAAGC,CAAQ,EACnE,UAAa,OAAO,aAAaE,CAAO,CAC1C,EAAG,CAACJ,EAASD,EAAQI,CAAQ,CAAC,EAEvB,CAACH,EAASC,CAAU,CAC7B,CAQA,IAAaI,GAAA,EAASx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C,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA8BD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,wGA4GjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAOf,OAAO,aAAa,CAAC;AAErB,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC;AAEvC,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IACnC,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACrC,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAwBD;;;;;GAKG;AACH,eAAO,MAAM,MAAM,wGA4GjB,CAAC"}
@@ -1,74 +1,75 @@
1
1
  import { Button as e } from "../Button/index.js";
2
- import { t } from "../../chunks/mergeRefs-DGM402mE.js";
3
- import { t as n } from "../../chunks/useModalDialog-BVaG--b3.js";
4
- import { n as r } from "../../chunks/portalScope-AzzPM54i.js";
5
- import { forwardRef as i, useEffect as a, useId as o, useRef as s, useState as c } from "react";
6
- import { createPortal as l } from "react-dom";
7
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
2
+ import { t } from "../../chunks/transitionDuration-BIBA3V7G.js";
3
+ import { t as n } from "../../chunks/mergeRefs-DGM402mE.js";
4
+ import { t as r } from "../../chunks/useModalDialog-Dh-_6A0j.js";
5
+ import { n as i } from "../../chunks/portalScope-AzzPM54i.js";
6
+ import { forwardRef as a, useEffect as o, useId as s, useRef as c, useState as l } from "react";
7
+ import { createPortal as u } from "react-dom";
8
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
9
  //#region src/components/Drawer/index.tsx
9
- function f(e, t) {
10
- let [n, r] = c(e), [i, o] = c(!1);
11
- return n !== e && (r(e), o(!e)), a(() => {
12
- if (!i || e) return;
13
- let n = getComputedStyle(t.current).transitionDuration.split(","), r = Math.max(0, ...n.map((e) => parseFloat(e) * (e.trim().endsWith("ms") ? 1 : 1e3) || 0)), a = window.setTimeout(() => o(!1), r);
14
- return () => window.clearTimeout(a);
10
+ function p(e, n) {
11
+ let [r, i] = l(e), [a, s] = l(!1);
12
+ return r !== e && (i(e), s(!e)), o(() => {
13
+ if (!a || e) return;
14
+ let r = t(n.current), i = window.setTimeout(() => s(!1), r);
15
+ return () => window.clearTimeout(i);
15
16
  }, [
16
- i,
17
+ a,
17
18
  e,
18
- t
19
- ]), [i, o];
19
+ n
20
+ ]), [a, s];
20
21
  }
21
- var p = i(function({ isOpen: i, onClose: a, title: c, description: p, side: m = "end", size: h = "md", variant: g = "default", closeLabel: _ = "Close", portalContainer: v, footer: y, className: b, children: x, ...S }, C) {
22
- let w = s(null), T = s(null), E = s(null), D = o(), O = o(), [k, A] = f(i, T), { onScrimMouseDown: j } = n({
23
- isOpen: i,
22
+ var m = a(function({ isOpen: t, onClose: a, title: o, description: l, side: m = "end", size: h = "md", variant: g = "default", closeLabel: _ = "Close", portalContainer: v, footer: y, className: b, children: x, ...S }, C) {
23
+ let w = c(null), T = c(null), E = c(null), D = s(), O = s(), [k, A] = p(t, T), { onScrimMouseDown: j } = r({
24
+ isOpen: t,
24
25
  panelRef: w,
25
26
  onClose: a,
26
27
  initialFocus: g === "navigation" ? () => E.current : void 0,
27
28
  preventScroll: !0,
28
29
  container: v
29
30
  });
30
- return r(T, i, { keepDir: S.dir !== void 0 }), !i && !k || typeof document > "u" ? null : l(/* @__PURE__ */ u("div", {
31
+ return i(T, t, { keepDir: S.dir !== void 0 }), !t && !k || typeof document > "u" ? null : u(/* @__PURE__ */ d("div", {
31
32
  ref: (e) => {
32
- T.current = e, e && (e.inert = !i);
33
+ T.current = e, e && (e.inert = !t);
33
34
  },
34
35
  className: "ds-drawer-scrim",
35
36
  dir: S.dir,
36
37
  "data-side": m,
37
38
  "data-variant": g,
38
39
  "data-contained": v ? "" : void 0,
39
- "data-state": i ? "open" : "closed",
40
- "aria-hidden": !i || void 0,
40
+ "data-state": t ? "open" : "closed",
41
+ "aria-hidden": !t || void 0,
41
42
  onTransitionEnd: (e) => {
42
- e.target === e.currentTarget && e.propertyName === "opacity" && !i && A(!1);
43
+ e.target === e.currentTarget && e.propertyName === "opacity" && !t && A(!1);
43
44
  },
44
45
  onMouseDown: j,
45
- children: /* @__PURE__ */ d("div", {
46
+ children: /* @__PURE__ */ f("div", {
46
47
  ...S,
47
- ref: t(w, C),
48
+ ref: n(w, C),
48
49
  role: "dialog",
49
50
  "aria-modal": "true",
50
51
  "aria-labelledby": S["aria-label"] ? void 0 : S["aria-labelledby"] ?? D,
51
- "aria-describedby": p ? O : void 0,
52
+ "aria-describedby": l ? O : void 0,
52
53
  tabIndex: -1,
53
54
  "data-side": m,
54
55
  "data-size": h,
55
56
  "data-variant": g,
56
57
  className: ["ds-drawer", b].filter(Boolean).join(" "),
57
58
  children: [
58
- /* @__PURE__ */ d("header", {
59
+ /* @__PURE__ */ f("header", {
59
60
  className: "ds-drawer__head",
60
- children: [/* @__PURE__ */ d("div", {
61
+ children: [/* @__PURE__ */ f("div", {
61
62
  className: "ds-drawer__titles",
62
- children: [/* @__PURE__ */ u("h2", {
63
+ children: [/* @__PURE__ */ d("h2", {
63
64
  id: D,
64
65
  className: "ds-drawer__title",
65
- children: c
66
- }), p && /* @__PURE__ */ u("p", {
66
+ children: o
67
+ }), l && /* @__PURE__ */ d("p", {
67
68
  id: O,
68
69
  className: "ds-drawer__description",
69
- children: p
70
+ children: l
70
71
  })]
71
- }), /* @__PURE__ */ u(e, {
72
+ }), /* @__PURE__ */ d(e, {
72
73
  ref: E,
73
74
  variant: "simple",
74
75
  size: g === "navigation" ? "lg" : "sm",
@@ -79,11 +80,11 @@ var p = i(function({ isOpen: i, onClose: a, title: c, description: p, side: m =
79
80
  onClick: a
80
81
  })]
81
82
  }),
82
- /* @__PURE__ */ u("div", {
83
+ /* @__PURE__ */ d("div", {
83
84
  className: "ds-drawer__body",
84
85
  children: x
85
86
  }),
86
- y && /* @__PURE__ */ u("footer", {
87
+ y && /* @__PURE__ */ d("footer", {
87
88
  className: "ds-drawer__footer",
88
89
  children: y
89
90
  })
@@ -92,6 +93,6 @@ var p = i(function({ isOpen: i, onClose: a, title: c, description: p, side: m =
92
93
  }), v ?? document.body);
93
94
  });
94
95
  //#endregion
95
- export { p as Drawer };
96
+ export { m as Drawer };
96
97
 
97
98
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["useModalDialog","useInheritedPortalScope","useDrawerExit","previousOpen","setPreviousOpen","useState","isOpen","exiting","setExiting","useEffect","durations","scrimRef","duration","value","timeout","Drawer","forwardRef","rest","panelRef","useRef","closeRef","titleId","useId","descriptionId","variant","portalContainer","createPortal","node","side","event","onScrimMouseDown","mergeRefs","ref","description","size","className","title","Button","closeLabel","onClose","footer"],"sources":["../../../src/components/Drawer/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useId,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Button } from \"../Button\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport { useModalDialog } from \"../../internal/useModalDialog\";\nimport { useInheritedPortalScope } from \"../../internal/portalScope\";\nimport \"./style.css\";\n\nexport type DrawerSide = \"end\" | \"start\" | \"bottom\";\nexport type DrawerSize = \"md\" | \"wide\";\n\nexport interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n isOpen: boolean;\n /** Escape, the scrim and the close button all call this. */\n onClose: () => void;\n title: ReactNode;\n description?: string;\n /** Which edge the panel is anchored to. */\n side?: DrawerSide;\n size?: DrawerSize;\n /** Navigation uses a compact panel, header and footer. Both variants slide in and out. */\n variant?: \"default\" | \"navigation\";\n /** Accessible name of the dismiss button. */\n closeLabel?: string;\n /**\n * Defaults to document.body, covering the viewport. A navigation drawer\n * portaled into a positioned element, such as an app shell, stays inside it.\n */\n portalContainer?: HTMLElement | null;\n /** Actions, right-aligned. The confirming action goes last. */\n footer?: ReactNode;\n children?: ReactNode;\n}\n\nfunction useDrawerExit(isOpen: boolean, scrimRef: RefObject<HTMLDivElement | null>) {\n const [previousOpen, setPreviousOpen] = useState(isOpen);\n const [exiting, setExiting] = useState(false);\n\n if (previousOpen !== isOpen) {\n setPreviousOpen(isOpen);\n setExiting(!isOpen);\n }\n\n useEffect(() => {\n if (!exiting || isOpen) {\n return;\n }\n // Read the actual transition, including token overrides and reduced motion.\n const durations = getComputedStyle(scrimRef.current!).transitionDuration.split(\",\");\n const duration = Math.max(\n 0,\n ...durations.map(\n (value) => parseFloat(value) * (value.trim().endsWith(\"ms\") ? 1 : 1000) || 0,\n ),\n );\n const timeout = window.setTimeout(() => setExiting(false), duration);\n return () => window.clearTimeout(timeout);\n }, [exiting, isOpen, scrimRef]);\n\n return [exiting, setExiting] as const;\n}\n\n/**\n * A side panel for work that belongs beside the page rather than on top of it\n * — editing one record, a filter set, a revision history. Same frame, rules\n * and footer band as `Modal`, with square corners and a full slide through\n * its anchored edge. Focus is trapped while open.\n */\nexport const Drawer = forwardRef<HTMLDivElement, DrawerProps>(function Drawer(\n {\n isOpen,\n onClose,\n title,\n description,\n side = \"end\",\n size = \"md\",\n variant = \"default\",\n closeLabel = \"Close\",\n portalContainer,\n footer,\n className,\n children,\n ...rest\n },\n ref,\n) {\n const panelRef = useRef<HTMLDivElement | null>(null);\n const scrimRef = useRef<HTMLDivElement | null>(null);\n const closeRef = useRef<HTMLButtonElement | null>(null);\n const titleId = useId();\n const descriptionId = useId();\n const [exiting, setExiting] = useDrawerExit(isOpen, scrimRef);\n const { onScrimMouseDown } = useModalDialog({\n isOpen,\n panelRef,\n onClose,\n initialFocus: variant === \"navigation\" ? () => closeRef.current : undefined,\n // Panels start off-screen; focusing them must not scroll the page with them.\n preventScroll: true,\n container: portalContainer,\n });\n useInheritedPortalScope(scrimRef, isOpen, { keepDir: rest.dir !== undefined });\n\n if ((!isOpen && !exiting) || typeof document === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <div\n ref={(node) => {\n scrimRef.current = node;\n if (node) {\n node.inert = !isOpen;\n }\n }}\n className=\"ds-drawer-scrim\"\n dir={rest.dir}\n data-side={side}\n data-variant={variant}\n data-contained={portalContainer ? \"\" : undefined}\n data-state={isOpen ? \"open\" : \"closed\"}\n aria-hidden={!isOpen || undefined}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === \"opacity\" && !isOpen) {\n setExiting(false);\n }\n }}\n onMouseDown={onScrimMouseDown}\n >\n <div\n {...rest}\n ref={mergeRefs(panelRef, ref)}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={rest[\"aria-label\"] ? undefined : (rest[\"aria-labelledby\"] ?? titleId)}\n aria-describedby={description ? descriptionId : undefined}\n tabIndex={-1}\n data-side={side}\n data-size={size}\n data-variant={variant}\n className={[\"ds-drawer\", className].filter(Boolean).join(\" \")}\n >\n <header className=\"ds-drawer__head\">\n <div className=\"ds-drawer__titles\">\n <h2\n id={titleId}\n className=\"ds-drawer__title\"\n >\n {title}\n </h2>\n {description && (\n <p\n id={descriptionId}\n className=\"ds-drawer__description\"\n >\n {description}\n </p>\n )}\n </div>\n <Button\n ref={closeRef}\n variant=\"simple\"\n size={variant === \"navigation\" ? \"lg\" : \"sm\"}\n isIconOnly\n iconStart=\"x\"\n className={variant === \"navigation\" ? \"ds-drawer__close\" : undefined}\n aria-label={closeLabel}\n onClick={onClose}\n />\n </header>\n <div className=\"ds-drawer__body\">{children}</div>\n {footer && <footer className=\"ds-drawer__footer\">{footer}</footer>}\n </div>\n </div>,\n portalContainer ?? document.body,\n );\n});\n"],"mappings":";;;;;;;;AA2CA,SAASE,EAAc,GAAiB,GAA4C;CAClF,IAAM,CAACC,GAAcC,KAAmBC,EAASC,CAAM,GACjD,CAACC,GAASC,KAAcH,EAAS,EAAK;CAuB5C,OArBIF,MAAiBG,MACnBF,EAAgBE,CAAM,GACtBE,EAAW,CAACF,CAAM,IAGpBG,QAAgB;EACd,IAAI,CAACF,KAAWD,GACd;EAGF,IAAMI,IAAY,iBAAiBC,EAAS,OAAQ,CAAC,CAAC,mBAAmB,MAAM,GAAG,GAC5EC,IAAW,KAAK,IACpB,GACA,GAAGF,EAAU,KACV,MAAU,WAAWG,CAAK,KAAKA,EAAM,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,IAAI,QAAS,CAC7E,CACF,GACMC,IAAU,OAAO,iBAAiBN,EAAW,EAAK,GAAGI,CAAQ;EACnE,aAAa,OAAO,aAAaE,CAAO;CAC1C,GAAG;EAACP;EAASD;EAAQK;CAAQ,CAAC,GAEvB,CAACJ,GAASC,CAAU;AAC7B;AAQA,IAAaO,IAASC,EAAwC,SAC5D,EACE,WACA,YACA,UACA,gBACA,UAAO,OACP,UAAO,MACP,aAAU,WACV,gBAAa,SACb,oBACA,WACA,cACA,aACA,GAAGC,KAEL,GACA;CACA,IAAMC,IAAWC,EAA8B,IAAI,GAC7CR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,WAAU;OAET,UAAAe;MACC,CAAA,GACHH,KACC,kBAAC,KAAD;OACE,IAAIV;OACJ,WAAU;OAET,UAAAU;MACA,CAAA,CAEF;KACL,CAAA,GAAA,kBAACI,GAAD;MACE,KAAKjB;MACL,SAAQ;MACR,MAAMI,MAAY,eAAe,OAAO;MACxC,YAAA;MACA,WAAU;MACV,WAAWA,MAAY,eAAe,qBAAqB,KAAA;MAC3D,cAAYc;MACZ,SAASC;KACV,CAAA,CACK;;IACR,kBAAC,OAAD;KAAK,WAAU;KAAmB;IAAc,CAAA;IAC/CC,KAAU,kBAAC,UAAD;KAAQ,WAAU;KAAqB,UAAAA;IAAe,CAAA;GAC9D;;CACF,CAAA,GACLf,KAAmB,SAAS,IAC9B;AACF,CAAC"}
1
+ {"version":3,"file":"index.js","names":["mergeRefs","useModalDialog","useInheritedPortalScope","useDrawerExit","previousOpen","setPreviousOpen","useState","isOpen","exiting","setExiting","useEffect","duration","transitionDurationMs","scrimRef","timeout","Drawer","forwardRef","rest","panelRef","useRef","closeRef","titleId","useId","descriptionId","variant","portalContainer","createPortal","node","side","event","onScrimMouseDown","ref","description","size","className","title","Button","closeLabel","onClose","footer"],"sources":["../../../src/components/Drawer/index.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useId,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { Button } from \"../Button\";\nimport { transitionDurationMs } from \"../../internal/transitionDuration\";\nimport { mergeRefs } from \"../../internal/mergeRefs\";\nimport { useModalDialog } from \"../../internal/useModalDialog\";\nimport { useInheritedPortalScope } from \"../../internal/portalScope\";\nimport \"./style.css\";\n\nexport type DrawerSide = \"end\" | \"start\" | \"bottom\";\nexport type DrawerSize = \"md\" | \"wide\";\n\nexport interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n isOpen: boolean;\n /** Escape, the scrim and the close button all call this. */\n onClose: () => void;\n title: ReactNode;\n description?: string;\n /** Which edge the panel is anchored to. */\n side?: DrawerSide;\n size?: DrawerSize;\n /** Navigation uses a compact panel, header and footer. Both variants slide in and out. */\n variant?: \"default\" | \"navigation\";\n /** Accessible name of the dismiss button. */\n closeLabel?: string;\n /**\n * Defaults to document.body, covering the viewport. A navigation drawer\n * portaled into a positioned element, such as an app shell, stays inside it.\n */\n portalContainer?: HTMLElement | null;\n /** Actions, right-aligned. The confirming action goes last. */\n footer?: ReactNode;\n children?: ReactNode;\n}\n\nfunction useDrawerExit(isOpen: boolean, scrimRef: RefObject<HTMLDivElement | null>) {\n const [previousOpen, setPreviousOpen] = useState(isOpen);\n const [exiting, setExiting] = useState(false);\n\n if (previousOpen !== isOpen) {\n setPreviousOpen(isOpen);\n setExiting(!isOpen);\n }\n\n useEffect(() => {\n if (!exiting || isOpen) {\n return;\n }\n // Read the actual transition, including token overrides and reduced motion.\n const duration = transitionDurationMs(scrimRef.current!);\n const timeout = window.setTimeout(() => setExiting(false), duration);\n return () => window.clearTimeout(timeout);\n }, [exiting, isOpen, scrimRef]);\n\n return [exiting, setExiting] as const;\n}\n\n/**\n * A side panel for work that belongs beside the page rather than on top of it\n * — editing one record, a filter set, a revision history. Same frame, rules\n * and footer band as `Modal`, with square corners and a full slide through\n * its anchored edge. Focus is trapped while open.\n */\nexport const Drawer = forwardRef<HTMLDivElement, DrawerProps>(function Drawer(\n {\n isOpen,\n onClose,\n title,\n description,\n side = \"end\",\n size = \"md\",\n variant = \"default\",\n closeLabel = \"Close\",\n portalContainer,\n footer,\n className,\n children,\n ...rest\n },\n ref,\n) {\n const panelRef = useRef<HTMLDivElement | null>(null);\n const scrimRef = useRef<HTMLDivElement | null>(null);\n const closeRef = useRef<HTMLButtonElement | null>(null);\n const titleId = useId();\n const descriptionId = useId();\n const [exiting, setExiting] = useDrawerExit(isOpen, scrimRef);\n const { onScrimMouseDown } = useModalDialog({\n isOpen,\n panelRef,\n onClose,\n initialFocus: variant === \"navigation\" ? () => closeRef.current : undefined,\n // Panels start off-screen; focusing them must not scroll the page with them.\n preventScroll: true,\n container: portalContainer,\n });\n useInheritedPortalScope(scrimRef, isOpen, { keepDir: rest.dir !== undefined });\n\n if ((!isOpen && !exiting) || typeof document === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <div\n ref={(node) => {\n scrimRef.current = node;\n if (node) {\n node.inert = !isOpen;\n }\n }}\n className=\"ds-drawer-scrim\"\n dir={rest.dir}\n data-side={side}\n data-variant={variant}\n data-contained={portalContainer ? \"\" : undefined}\n data-state={isOpen ? \"open\" : \"closed\"}\n aria-hidden={!isOpen || undefined}\n onTransitionEnd={(event) => {\n if (event.target === event.currentTarget && event.propertyName === \"opacity\" && !isOpen) {\n setExiting(false);\n }\n }}\n onMouseDown={onScrimMouseDown}\n >\n <div\n {...rest}\n ref={mergeRefs(panelRef, ref)}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={rest[\"aria-label\"] ? undefined : (rest[\"aria-labelledby\"] ?? titleId)}\n aria-describedby={description ? descriptionId : undefined}\n tabIndex={-1}\n data-side={side}\n data-size={size}\n data-variant={variant}\n className={[\"ds-drawer\", className].filter(Boolean).join(\" \")}\n >\n <header className=\"ds-drawer__head\">\n <div className=\"ds-drawer__titles\">\n <h2\n id={titleId}\n className=\"ds-drawer__title\"\n >\n {title}\n </h2>\n {description && (\n <p\n id={descriptionId}\n className=\"ds-drawer__description\"\n >\n {description}\n </p>\n )}\n </div>\n <Button\n ref={closeRef}\n variant=\"simple\"\n size={variant === \"navigation\" ? \"lg\" : \"sm\"}\n isIconOnly\n iconStart=\"x\"\n className={variant === \"navigation\" ? \"ds-drawer__close\" : undefined}\n aria-label={closeLabel}\n onClick={onClose}\n />\n </header>\n <div className=\"ds-drawer__body\">{children}</div>\n {footer && <footer className=\"ds-drawer__footer\">{footer}</footer>}\n </div>\n </div>,\n portalContainer ?? document.body,\n );\n});\n"],"mappings":";;;;;;;;;AA4CA,SAASG,EAAc,GAAiB,GAA4C;CAClF,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B,kBAAkB,MAAU;GAC1B,AAAIsB,EAAM,WAAWA,EAAM,iBAAiBA,EAAM,iBAAiB,aAAa,CAACtB,KAC/EE,EAAW,EAAK;EAEpB;EACA,aAAaqB;EAEb,UAAA,kBAAC,OAAD;GACE,GAAIb;GACJ,KAAKjB,EAAUkB,GAAUa,CAAG;GAC5B,MAAK;GACL,cAAW;GACX,mBAAiBd,EAAK,gBAAgB,KAAA,IAAaA,EAAK,sBAAsBI;GAC9E,oBAAkBW,IAAcT,IAAgB,KAAA;GAChD,UAAU;GACV,aAAWK;GACX,aAAWK;GACX,gBAAcT;GACd,WAAW,CAAC,aAAaU,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;GAX9D,UAAA;IAaE,kBAAC,UAAD;KAAQ,WAAU;KAAlB,UAAA,CACE,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC,MAAD;OACE,IAAIb;OACJ,WAAU;OAET,UAAAc;MACC,CAAA,GACHH,KACC,kBAAC,KAAD;OACE,IAAIT;OACJ,WAAU;OAET,UAAAS;MACA,CAAA,CAEF;KACL,CAAA,GAAA,kBAACI,GAAD;MACE,KAAKhB;MACL,SAAQ;MACR,MAAMI,MAAY,eAAe,OAAO;MACxC,YAAA;MACA,WAAU;MACV,WAAWA,MAAY,eAAe,qBAAqB,KAAA;MAC3D,cAAYa;MACZ,SAASC;KACV,CAAA,CACK;;IACR,kBAAC,OAAD;KAAK,WAAU;KAAmB;IAAc,CAAA;IAC/CC,KAAU,kBAAC,UAAD;KAAQ,WAAU;KAAqB,UAAAA;IAAe,CAAA;GAC9D;;CACF,CAAA,GACLd,KAAmB,SAAS,IAC9B;AACF,CAAC"}
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D38lQXNe.cjs"),t=require("../Button/index.cjs"),n=require("../../chunks/mergeRefs-Bc3qS0Tt.cjs"),r=require("../../chunks/portalScope-BVA1-Ypu.cjs"),i=require("../Drawer/index.cjs"),a=require("../../chunks/observeElementWidth-BCJM2FAw.cjs"),o=require("../../chunks/movableHost-CajG9_5Z.cjs");let s=require("react"),c=require("react-dom"),l=require("react/jsx-runtime");var u=360,d=600,f=900;function p(e){return e<u?`tight`:e<d?`compact`:e<f?`narrow`:`wide`}var m={clean:`No changes`,dirty:`Unsaved changes`,saving:`Saving…`,saved:`Saved`,error:`Couldn't save`,offline:`Offline · kept in this tab`},h={clean:void 0,dirty:void 0,saving:`spinner`,saved:`check`,error:`alert-triangle`,offline:`clock`};function g({saveState:t,savedAgo:n}){let r=h[t];return(0,l.jsxs)(`div`,{className:`ds-edit-layout__status`,"data-state":t,role:`status`,"aria-live":`polite`,children:[r&&(0,l.jsx)(e.t,{name:r,className:t===`saving`?`ds-icon--spin`:void 0}),t===`dirty`&&(0,l.jsx)(`span`,{className:`ds-edit-layout__dirty`,"aria-hidden":`true`}),(0,l.jsxs)(`span`,{children:[m[t],t===`saved`&&n?(0,l.jsxs)(l.Fragment,{children:[` `,n]}):null]})]})}function _({text:e,bodyRef:n,onKeepEditing:r}){let i=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{a.current=document.activeElement;let e=requestAnimationFrame(()=>i.current?.focus({preventScroll:!0}));return()=>cancelAnimationFrame(e)},[]),(0,l.jsxs)(`div`,{className:`ds-edit-layout__confirmation`,children:[(0,l.jsx)(`strong`,{children:e}),(0,l.jsx)(t.Button,{ref:i,size:`xs`,onClick:()=>{r?.(),requestAnimationFrame(()=>{(a.current?.isConnected?a.current:n.current?.querySelector(`input, textarea, button, [contenteditable='true']`))?.focus({preventScroll:!0})})},children:`Keep editing`})]})}function v({backLabel:e,onBack:n,compact:r,status:i,actions:a,confirmLeave:o,confirmation:s,onLeave:c,detailsToggle:u}){return(0,l.jsxs)(`header`,{className:`ds-edit-layout__bar`,children:[(0,l.jsx)(t.Button,{variant:`simple`,size:`sm`,iconStart:`arrow-left`,isIconOnly:r,"aria-label":`Back to ${e}`,onClick:n,children:e}),o?s:i,(0,l.jsxs)(`div`,{className:`ds-edit-layout__actions`,children:[o?(0,l.jsx)(t.Button,{variant:`danger`,size:`sm`,onClick:c,children:`Leave anyway`}):a,r&&u]})]})}function y({label:e,detailsId:n,expanded:r,opensSheet:i,sheetOpen:a,toggleRef:o,contentRef:s,collapsed:c,onToggle:u}){return(0,l.jsxs)(`aside`,{className:`ds-edit-layout__rail`,"aria-label":e,children:[(0,l.jsxs)(`header`,{className:`ds-edit-layout__rail-head`,children:[r&&(0,l.jsx)(`span`,{children:e}),(0,l.jsx)(t.Button,{ref:o,variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:r?`chevrons-right`:`chevrons-left`,className:`ds-edit-layout__toggle`,"aria-label":`${r?`Collapse`:`Expand`} ${e}`,"aria-expanded":r||a,"aria-controls":n,"aria-haspopup":i?`dialog`:void 0,onClick:u})]}),r?(0,l.jsx)(`div`,{id:n,ref:s,className:`ds-edit-layout__rail-content`}):(0,l.jsx)(`div`,{className:`ds-edit-layout__rail-icons`,children:c?c(u):(0,l.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`info`,"aria-label":`Show ${e}`,onClick:u})})]})}var b=(0,s.forwardRef)(function({backLabel:e,onBack:u,saveState:d=`clean`,savedAgo:f,actions:m,rail:h,railCollapsed:b,railLabel:x=`Details`,railOpen:S,defaultRailOpen:ee=!0,onRailToggle:C,confirmLeave:w=!1,confirmText:T=`Leave without saving?`,onKeepEditing:E,onLeave:D,children:O,className:k,onFocus:A,...j},M){let N=(0,s.useRef)(null),P=(0,s.useMemo)(()=>n.t(N,M),[M]),F=(0,s.useRef)(null),I=(0,s.useRef)(null),L=(0,s.useRef)(null),R=(0,s.useRef)(null),z=(0,s.useRef)(null),[B]=(0,s.useState)(()=>o.t(`ds-edit-layout__rail-host`)),[V,H]=(0,s.useState)(`wide`),[U,W]=(0,s.useState)(ee),[G,K]=(0,s.useState)(!1),[q,J]=(0,s.useState)(!1),Y=(0,s.useId)(),X=V===`tight`||V===`compact`,Z=V!==`wide`,Q=!Z&&(S??U);G&&(w||!Z)&&K(!1),(0,s.useLayoutEffect)(()=>{let e;return a.t(N.current,t=>{let n=p(t);n!==e&&(e=n,J(!1),H(n))})},[]),(0,s.useLayoutEffect)(()=>{B&&o.n(B,L.current??R.current,z.current)}),(0,s.useEffect)(()=>{let e=z.current;e&&r.i(e)&&r.i(document.activeElement)&&I.current?.focus({preventScroll:!0})},[V,Q,G]);let $=()=>{Z?K(!0):(J(!0),W(!Q),C?.(!Q))},te=typeof h==`function`?h(()=>(0,c.flushSync)(()=>K(!1))):h;return(0,l.jsxs)(`div`,{...j,ref:P,className:[`ds-edit-layout`,k].filter(Boolean).join(` `),"data-compact":X||void 0,"data-tight":V===`tight`||void 0,"data-expanded":Q||void 0,"data-animate":q||void 0,onFocus:e=>{z.current=e.target,A?.(e)},children:[(0,l.jsxs)(`div`,{className:`ds-edit-layout__main`,children:[(0,l.jsx)(v,{backLabel:e,onBack:u,compact:X,status:(0,l.jsx)(g,{saveState:d,savedAgo:f}),actions:m,confirmLeave:w,confirmation:(0,l.jsx)(_,{text:T,bodyRef:F,onKeepEditing:E}),onLeave:D,detailsToggle:(0,l.jsx)(t.Button,{ref:I,variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`info`,"aria-label":x,"aria-haspopup":`dialog`,"aria-expanded":G,"aria-controls":Y,onClick:$})}),(0,l.jsx)(`div`,{ref:F,className:`ds-edit-layout__body`,children:(0,l.jsx)(`div`,{className:`ds-edit-layout__content`,children:O})})]}),!X&&(0,l.jsx)(y,{label:x,detailsId:Y,expanded:Q,opensSheet:Z,sheetOpen:G,toggleRef:I,contentRef:L,collapsed:b,onToggle:$}),(0,l.jsx)(i.Drawer,{id:Z?Y:void 0,dir:j.dir,isOpen:G,onClose:()=>K(!1),side:`end`,size:`md`,title:x,closeLabel:`Close ${x}`,className:`ds-edit-layout__sheet`,children:Z&&(0,l.jsx)(`div`,{ref:R,className:`ds-edit-layout__rail-content`})}),B&&(0,c.createPortal)(te,B)]})});exports.EditLayout=b;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D7GrTtqc.cjs"),t=require("../Button/index.cjs"),n=require("../../chunks/mergeRefs-Bc3qS0Tt.cjs"),r=require("../../chunks/portalScope-BVA1-Ypu.cjs"),i=require("../Drawer/index.cjs"),a=require("../../chunks/observeElementWidth-BCJM2FAw.cjs"),o=require("../../chunks/movableHost-CajG9_5Z.cjs");let s=require("react"),c=require("react-dom"),l=require("react/jsx-runtime");var u=360,d=600,f=900;function p(e){return e<u?`tight`:e<d?`compact`:e<f?`narrow`:`wide`}var m={clean:`No changes`,dirty:`Unsaved changes`,saving:`Saving…`,saved:`Saved`,error:`Couldn't save`,offline:`Offline · kept in this tab`},h={clean:void 0,dirty:void 0,saving:`spinner`,saved:`check`,error:`alert-triangle`,offline:`clock`};function g({saveState:t,savedAgo:n}){let r=h[t];return(0,l.jsxs)(`div`,{className:`ds-edit-layout__status`,"data-state":t,role:`status`,"aria-live":`polite`,children:[r&&(0,l.jsx)(e.t,{name:r,className:t===`saving`?`ds-icon--spin`:void 0}),t===`dirty`&&(0,l.jsx)(`span`,{className:`ds-edit-layout__dirty`,"aria-hidden":`true`}),(0,l.jsxs)(`span`,{children:[m[t],t===`saved`&&n?(0,l.jsxs)(l.Fragment,{children:[` `,n]}):null]})]})}function _({text:e,bodyRef:n,onKeepEditing:r}){let i=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{a.current=document.activeElement;let e=requestAnimationFrame(()=>i.current?.focus({preventScroll:!0}));return()=>cancelAnimationFrame(e)},[]),(0,l.jsxs)(`div`,{className:`ds-edit-layout__confirmation`,children:[(0,l.jsx)(`strong`,{children:e}),(0,l.jsx)(t.Button,{ref:i,size:`xs`,onClick:()=>{r?.(),requestAnimationFrame(()=>{(a.current?.isConnected?a.current:n.current?.querySelector(`input, textarea, button, [contenteditable='true']`))?.focus({preventScroll:!0})})},children:`Keep editing`})]})}function v({backLabel:e,onBack:n,compact:r,status:i,actions:a,confirmLeave:o,confirmation:s,onLeave:c,detailsToggle:u}){return(0,l.jsxs)(`header`,{className:`ds-edit-layout__bar`,children:[(0,l.jsx)(t.Button,{variant:`simple`,size:`sm`,iconStart:`arrow-left`,isIconOnly:r,"aria-label":`Back to ${e}`,onClick:n,children:e}),o?s:i,(0,l.jsxs)(`div`,{className:`ds-edit-layout__actions`,children:[o?(0,l.jsx)(t.Button,{variant:`danger`,size:`sm`,onClick:c,children:`Leave anyway`}):a,r&&u]})]})}function y({label:e,detailsId:n,expanded:r,opensSheet:i,sheetOpen:a,toggleRef:o,contentRef:s,collapsed:c,onToggle:u}){return(0,l.jsxs)(`aside`,{className:`ds-edit-layout__rail`,"aria-label":e,children:[(0,l.jsxs)(`header`,{className:`ds-edit-layout__rail-head`,children:[r&&(0,l.jsx)(`span`,{children:e}),(0,l.jsx)(t.Button,{ref:o,variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:r?`chevrons-right`:`chevrons-left`,className:`ds-edit-layout__toggle`,"aria-label":`${r?`Collapse`:`Expand`} ${e}`,"aria-expanded":r||a,"aria-controls":n,"aria-haspopup":i?`dialog`:void 0,onClick:u})]}),r?(0,l.jsx)(`div`,{id:n,ref:s,className:`ds-edit-layout__rail-content`}):(0,l.jsx)(`div`,{className:`ds-edit-layout__rail-icons`,children:c?c(u):(0,l.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`info`,"aria-label":`Show ${e}`,onClick:u})})]})}var b=(0,s.forwardRef)(function({backLabel:e,onBack:u,saveState:d=`clean`,savedAgo:f,actions:m,rail:h,railCollapsed:b,railLabel:x=`Details`,railOpen:S,defaultRailOpen:ee=!0,onRailToggle:C,confirmLeave:w=!1,confirmText:T=`Leave without saving?`,onKeepEditing:E,onLeave:D,children:O,className:k,onFocus:A,...j},M){let N=(0,s.useRef)(null),P=(0,s.useMemo)(()=>n.t(N,M),[M]),F=(0,s.useRef)(null),I=(0,s.useRef)(null),L=(0,s.useRef)(null),R=(0,s.useRef)(null),z=(0,s.useRef)(null),[B]=(0,s.useState)(()=>o.t(`ds-edit-layout__rail-host`)),[V,H]=(0,s.useState)(`wide`),[U,W]=(0,s.useState)(ee),[G,K]=(0,s.useState)(!1),[q,J]=(0,s.useState)(!1),Y=(0,s.useId)(),X=V===`tight`||V===`compact`,Z=V!==`wide`,Q=!Z&&(S??U);G&&(w||!Z)&&K(!1),(0,s.useLayoutEffect)(()=>{let e;return a.t(N.current,t=>{let n=p(t);n!==e&&(e=n,J(!1),H(n))})},[]),(0,s.useLayoutEffect)(()=>{B&&o.n(B,L.current??R.current,z.current)}),(0,s.useEffect)(()=>{let e=z.current;e&&r.i(e)&&r.i(document.activeElement)&&I.current?.focus({preventScroll:!0})},[V,Q,G]);let $=()=>{Z?K(!0):(J(!0),W(!Q),C?.(!Q))},te=typeof h==`function`?h(()=>(0,c.flushSync)(()=>K(!1))):h;return(0,l.jsxs)(`div`,{...j,ref:P,className:[`ds-edit-layout`,k].filter(Boolean).join(` `),"data-compact":X||void 0,"data-tight":V===`tight`||void 0,"data-expanded":Q||void 0,"data-animate":q||void 0,onFocus:e=>{z.current=e.target,A?.(e)},children:[(0,l.jsxs)(`div`,{className:`ds-edit-layout__main`,children:[(0,l.jsx)(v,{backLabel:e,onBack:u,compact:X,status:(0,l.jsx)(g,{saveState:d,savedAgo:f}),actions:m,confirmLeave:w,confirmation:(0,l.jsx)(_,{text:T,bodyRef:F,onKeepEditing:E}),onLeave:D,detailsToggle:(0,l.jsx)(t.Button,{ref:I,variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`info`,"aria-label":x,"aria-haspopup":`dialog`,"aria-expanded":G,"aria-controls":Y,onClick:$})}),(0,l.jsx)(`div`,{ref:F,className:`ds-edit-layout__body`,children:(0,l.jsx)(`div`,{className:`ds-edit-layout__content`,children:O})})]}),!X&&(0,l.jsx)(y,{label:x,detailsId:Y,expanded:Q,opensSheet:Z,sheetOpen:G,toggleRef:I,contentRef:L,collapsed:b,onToggle:$}),(0,l.jsx)(i.Drawer,{id:Z?Y:void 0,dir:j.dir,isOpen:G,onClose:()=>K(!1),side:`end`,size:`md`,title:x,closeLabel:`Close ${x}`,className:`ds-edit-layout__sheet`,children:Z&&(0,l.jsx)(`div`,{ref:R,className:`ds-edit-layout__rail-content`})}),B&&(0,c.createPortal)(te,B)]})});exports.EditLayout=b;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../chunks/Icon-D1kx7-1c.js";
1
+ import { t as e } from "../../chunks/Icon-BZjGAu8D.js";
2
2
  import { Button as t } from "../Button/index.js";
3
3
  import { t as n } from "../../chunks/mergeRefs-DGM402mE.js";
4
4
  import { i as r } from "../../chunks/portalScope-AzzPM54i.js";
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D38lQXNe.cjs"),t=require("../Button/index.cjs"),n=require("../Modal/index.cjs"),r=require("../../chunks/group-pKDQtq-9.cjs"),i=require("../SearchField/index.cjs"),a=require("../SortableList/index.cjs");let o=require("react"),s=require("react/jsx-runtime");function c(...e){return e.filter(Boolean).join(` `)}function l(e,t){return!t||[e.title,e.subtitle,...e.keywords??[]].filter(Boolean).join(` `).toLowerCase().includes(t.toLowerCase())}function u({item:t}){return(0,s.jsx)(`span`,{className:`ds-entry__thumb`,children:t.imageUrl?(0,s.jsx)(`img`,{src:t.imageUrl,alt:``,loading:`lazy`}):(0,s.jsx)(e.t,{name:`file-text`,size:20})})}function d({items:d,value:f,defaultValue:p=[],onValueChange:m,mode:h=`multiple`,max:g,label:_=`Entries`,emptyLabel:v=`Nothing selected yet.`,addLabel:y=`Choose entries`,itemLabel:b=`entry`,itemsLabel:x=`entries`,isReorderable:S=!0,isDisabled:C=!1,className:w,...T}){let[E,D]=(0,o.useState)(p),O=f??E,[k,A]=(0,o.useState)(!1),[j,M]=(0,o.useState)(``),N=(0,o.useMemo)(()=>new Map(d.map(e=>[e.id,e])),[d]),P=(0,o.useMemo)(()=>d.filter(e=>l(e,j)),[d,j]),F=h===`multiple`&&g!==void 0&&O.length>=g,I=e=>{C||(f===void 0&&D(e),m?.(e))},L=e=>{h===`single`?(I(O[0]===e?[]:[e]),A(!1)):O.includes(e)?I(O.filter(t=>t!==e)):F||I([...O,e])},R=O.map(e=>N.get(e)??{id:e,title:e}),z=S&&h===`multiple`&&R.length>1,B=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{item:e}),(0,s.jsxs)(`span`,{className:`ds-entry__body`,children:[(0,s.jsx)(`span`,{className:`ds-entry__title`,children:e.title}),e.subtitle&&(0,s.jsx)(`span`,{className:`ds-entry__subtitle`,children:e.subtitle})]})]});return(0,s.jsxs)(r.t,{...T,className:c(`ds-entry-picker`,w),label:_,count:O.length,children:[R.length===0?(0,s.jsx)(`p`,{className:`ds-entry-picker__empty`,children:v}):z?(0,s.jsx)(a.SortableList,{items:O,onReorder:I,isDisabled:C,children:R.map(e=>(0,s.jsx)(a.SortableListItem,{id:e.id,label:e.title,action:(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${e.title}`,isDisabled:C,onClick:()=>I(O.filter(t=>t!==e.id))}),children:(0,s.jsx)(`div`,{className:`ds-entry`,children:B(e)})},e.id))}):(0,s.jsx)(`ul`,{className:`ds-entry-picker__list`,children:R.map(e=>(0,s.jsxs)(`li`,{className:`ds-entry-picker__row`,children:[(0,s.jsx)(`div`,{className:`ds-entry`,children:B(e)}),(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${e.title}`,isDisabled:C,onClick:()=>I(O.filter(t=>t!==e.id))})]},e.id))}),(0,s.jsxs)(`div`,{className:`ds-entry-picker__actions`,children:[(0,s.jsx)(t.Button,{variant:`neutral`,size:`sm`,iconStart:`plus`,isDisabled:C,onClick:()=>A(!0),children:y}),O.length>0&&(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isDisabled:C,onClick:()=>I([]),children:`Clear`})]}),(0,s.jsxs)(n.Modal,{isOpen:k,onClose:()=>A(!1),title:y,description:h===`single`?`Choose one ${b}.`:g===void 0?`Choose as many ${x} as you need.`:`Choose up to ${g} ${x}.`,footer:(0,s.jsx)(t.Button,{variant:`primary`,onClick:()=>A(!1),children:`Done`}),children:[(0,s.jsx)(`div`,{className:`ds-entry-picker__search`,children:(0,s.jsx)(i.SearchField,{value:j,placeholder:`Search ${x}`,onChange:e=>M(e.target.value),onClear:()=>M(``)})}),(0,s.jsxs)(`ul`,{className:`ds-entry-picker__results`,children:[P.map(n=>{let r=O.includes(n.id),i=C||n.isDisabled||!r&&F;return(0,s.jsx)(`li`,{children:(0,s.jsxs)(t.Button,{variant:r?`active`:`simple`,size:`lg`,className:`ds-entry-picker__result`,"aria-pressed":r,isDisabled:!!i,onClick:()=>L(n.id),children:[(0,s.jsx)(`span`,{className:`ds-entry`,children:B(n)}),r&&(0,s.jsx)(e.t,{name:`check`,size:20})]})},n.id)}),P.length===0&&(0,s.jsxs)(`li`,{className:`ds-entry-picker__no-results`,children:[`No `,x,` match “`,j,`”.`]})]})]})]})}exports.EntryPicker=d;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../chunks/Icon-D7GrTtqc.cjs"),t=require("../Button/index.cjs"),n=require("../Modal/index.cjs"),r=require("../../chunks/group-pKDQtq-9.cjs"),i=require("../SearchField/index.cjs"),a=require("../SortableList/index.cjs");let o=require("react"),s=require("react/jsx-runtime");function c(...e){return e.filter(Boolean).join(` `)}function l(e,t){return!t||[e.title,e.subtitle,...e.keywords??[]].filter(Boolean).join(` `).toLowerCase().includes(t.toLowerCase())}function u({item:t}){return(0,s.jsx)(`span`,{className:`ds-entry__thumb`,children:t.imageUrl?(0,s.jsx)(`img`,{src:t.imageUrl,alt:``,loading:`lazy`}):(0,s.jsx)(e.t,{name:`file-text`,size:20})})}function d({items:d,value:f,defaultValue:p=[],onValueChange:m,mode:h=`multiple`,max:g,label:_=`Entries`,emptyLabel:v=`Nothing selected yet.`,addLabel:y=`Choose entries`,itemLabel:b=`entry`,itemsLabel:x=`entries`,isReorderable:S=!0,isDisabled:C=!1,className:w,...T}){let[E,D]=(0,o.useState)(p),O=f??E,[k,A]=(0,o.useState)(!1),[j,M]=(0,o.useState)(``),N=(0,o.useMemo)(()=>new Map(d.map(e=>[e.id,e])),[d]),P=(0,o.useMemo)(()=>d.filter(e=>l(e,j)),[d,j]),F=h===`multiple`&&g!==void 0&&O.length>=g,I=e=>{C||(f===void 0&&D(e),m?.(e))},L=e=>{h===`single`?(I(O[0]===e?[]:[e]),A(!1)):O.includes(e)?I(O.filter(t=>t!==e)):F||I([...O,e])},R=O.map(e=>N.get(e)??{id:e,title:e}),z=S&&h===`multiple`&&R.length>1,B=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{item:e}),(0,s.jsxs)(`span`,{className:`ds-entry__body`,children:[(0,s.jsx)(`span`,{className:`ds-entry__title`,children:e.title}),e.subtitle&&(0,s.jsx)(`span`,{className:`ds-entry__subtitle`,children:e.subtitle})]})]});return(0,s.jsxs)(r.t,{...T,className:c(`ds-entry-picker`,w),label:_,count:O.length,children:[R.length===0?(0,s.jsx)(`p`,{className:`ds-entry-picker__empty`,children:v}):z?(0,s.jsx)(a.SortableList,{items:O,onReorder:I,isDisabled:C,children:R.map(e=>(0,s.jsx)(a.SortableListItem,{id:e.id,label:e.title,action:(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${e.title}`,isDisabled:C,onClick:()=>I(O.filter(t=>t!==e.id))}),children:(0,s.jsx)(`div`,{className:`ds-entry`,children:B(e)})},e.id))}):(0,s.jsx)(`ul`,{className:`ds-entry-picker__list`,children:R.map(e=>(0,s.jsxs)(`li`,{className:`ds-entry-picker__row`,children:[(0,s.jsx)(`div`,{className:`ds-entry`,children:B(e)}),(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isIconOnly:!0,iconStart:`x`,"aria-label":`Remove ${e.title}`,isDisabled:C,onClick:()=>I(O.filter(t=>t!==e.id))})]},e.id))}),(0,s.jsxs)(`div`,{className:`ds-entry-picker__actions`,children:[(0,s.jsx)(t.Button,{variant:`neutral`,size:`sm`,iconStart:`plus`,isDisabled:C,onClick:()=>A(!0),children:y}),O.length>0&&(0,s.jsx)(t.Button,{variant:`simple`,size:`sm`,isDisabled:C,onClick:()=>I([]),children:`Clear`})]}),(0,s.jsxs)(n.Modal,{isOpen:k,onClose:()=>A(!1),title:y,description:h===`single`?`Choose one ${b}.`:g===void 0?`Choose as many ${x} as you need.`:`Choose up to ${g} ${x}.`,footer:(0,s.jsx)(t.Button,{variant:`primary`,onClick:()=>A(!1),children:`Done`}),children:[(0,s.jsx)(`div`,{className:`ds-entry-picker__search`,children:(0,s.jsx)(i.SearchField,{value:j,placeholder:`Search ${x}`,onChange:e=>M(e.target.value),onClear:()=>M(``)})}),(0,s.jsxs)(`ul`,{className:`ds-entry-picker__results`,children:[P.map(n=>{let r=O.includes(n.id),i=C||n.isDisabled||!r&&F;return(0,s.jsx)(`li`,{children:(0,s.jsxs)(t.Button,{variant:r?`active`:`simple`,size:`lg`,className:`ds-entry-picker__result`,"aria-pressed":r,isDisabled:!!i,onClick:()=>L(n.id),children:[(0,s.jsx)(`span`,{className:`ds-entry`,children:B(n)}),r&&(0,s.jsx)(e.t,{name:`check`,size:20})]})},n.id)}),P.length===0&&(0,s.jsxs)(`li`,{className:`ds-entry-picker__no-results`,children:[`No `,x,` match “`,j,`”.`]})]})]})]})}exports.EntryPicker=d;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../chunks/Icon-D1kx7-1c.js";
1
+ import { t as e } from "../../chunks/Icon-BZjGAu8D.js";
2
2
  import { Button as t } from "../Button/index.js";
3
3
  import { Modal as n } from "../Modal/index.js";
4
4
  import { t as r } from "../../chunks/group-CzbacuAY.js";
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Field/index.cjs"),require("../Container/index.cjs");const e=require("../../chunks/FormEditor-DfQLJnsO.cjs");exports.FormEditor=e.t,exports.validateFormValues=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../Field/index.cjs"),require("../Container/index.cjs");const e=require("../../chunks/FormEditor-a3kHVLQB.cjs");exports.FormEditor=e.t,exports.validateFormValues=e.n;
@@ -1,3 +1,3 @@
1
1
  import "../Field/index.js";
2
2
  import "../Container/index.js";
3
- export { t as FormEditor, n as validateFormValues } from "../../chunks/FormEditor-DTnFO4oS.js";
3
+ export { t as FormEditor, n as validateFormValues } from "../../chunks/FormEditor-CwQN8tRw.js";
@@ -58,12 +58,17 @@
58
58
  --grid-row-gap: var(--space-12);
59
59
  }
60
60
 
61
- .ds-grid {
62
- display: grid;
63
- gap: var(--grid-row-gap, var(--grid-gap)) var(--grid-gap);
61
+ /* The list reset has no specificity, so a component or consumer class on a
62
+ * Grid or Stack sets its own margin and padding whatever the load order. */
63
+ :where(.ds-grid, .ds-stack) {
64
64
  margin: 0;
65
65
  padding: 0;
66
66
  list-style: none;
67
+ }
68
+
69
+ .ds-grid {
70
+ display: grid;
71
+ gap: var(--grid-row-gap, var(--grid-gap)) var(--grid-gap);
67
72
  container-type: inline-size;
68
73
  }
69
74
 
@@ -172,9 +177,6 @@
172
177
  .ds-stack {
173
178
  display: flex;
174
179
  gap: var(--grid-gap);
175
- margin: 0;
176
- padding: 0;
177
- list-style: none;
178
180
  }
179
181
 
180
182
  .ds-stack--vertical {
@@ -5,6 +5,9 @@
5
5
  export declare const icons: {
6
6
  readonly "alert-triangle": import("lucide-react").LucideIcon;
7
7
  readonly archive: import("lucide-react").LucideIcon;
8
+ readonly blocks: import("lucide-react").LucideIcon;
9
+ readonly film: import("lucide-react").LucideIcon;
10
+ readonly "audio-lines": import("lucide-react").LucideIcon;
8
11
  readonly bold: import("lucide-react").LucideIcon;
9
12
  readonly code: import("lucide-react").LucideIcon;
10
13
  readonly "heading-2": import("lucide-react").LucideIcon;
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/icons.ts"],"names":[],"mappings":"AA8DA;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DR,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC;AAE1C,eAAO,MAAM,SAAS,EAAyB,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"icons.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/icons.ts"],"names":[],"mappings":"AAiEA;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DR,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC;AAE1C,eAAO,MAAM,SAAS,EAAyB,QAAQ,EAAE,CAAC"}