@igne-agency/react-web-ui 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/components/accordion/accordion.css +21 -21
  2. package/dist/components/accordion/accordion.d.ts +17 -4
  3. package/dist/components/accordion/accordion.js +83 -36
  4. package/dist/components/accordion/accordion.module.js +6 -6
  5. package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
  6. package/dist/components/attachment-tile/attachment-preview.js +388 -119
  7. package/dist/components/attachment-tile/attachment-tile.css +31 -25
  8. package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
  9. package/dist/components/attachment-tile/attachment-tile.js +160 -43
  10. package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
  11. package/dist/components/attachment-tile/index.d.ts +1 -1
  12. package/dist/components/avatar/avatar.css +9 -9
  13. package/dist/components/avatar/avatar.d.ts +50 -5
  14. package/dist/components/avatar/avatar.js +178 -64
  15. package/dist/components/avatar/avatar.module.js +3 -3
  16. package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
  17. package/dist/components/avatar-group/avatar-group-context.js +2 -2
  18. package/dist/components/avatar-group/avatar-group.css +26 -20
  19. package/dist/components/avatar-group/avatar-group.d.ts +85 -27
  20. package/dist/components/avatar-group/avatar-group.js +400 -246
  21. package/dist/components/avatar-group/avatar-group.module.js +8 -8
  22. package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
  23. package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
  24. package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
  25. package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
  26. package/dist/components/button/button.css +29 -31
  27. package/dist/components/button/button.d.ts +20 -16
  28. package/dist/components/button/button.js +140 -145
  29. package/dist/components/button/button.module.js +1 -1
  30. package/dist/components/button/index.js +1 -1
  31. package/dist/components/checkbox-field/checkbox-field.js +63 -49
  32. package/dist/components/checkbox-field/checkbox.css +105 -56
  33. package/dist/components/checkbox-field/checkbox.d.ts +3 -2
  34. package/dist/components/checkbox-field/checkbox.js +12 -9
  35. package/dist/components/checkbox-field/checkbox.module.js +4 -4
  36. package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
  37. package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
  38. package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
  39. package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
  40. package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
  41. package/dist/components/collapsible/collapsible.css +20 -20
  42. package/dist/components/collapsible/collapsible.d.ts +17 -4
  43. package/dist/components/collapsible/collapsible.js +83 -36
  44. package/dist/components/collapsible/collapsible.module.js +5 -5
  45. package/dist/components/combobox-field/combobox-field.js +206 -158
  46. package/dist/components/combobox-field/combobox.css +492 -277
  47. package/dist/components/combobox-field/combobox.d.ts +148 -39
  48. package/dist/components/combobox-field/combobox.js +506 -206
  49. package/dist/components/combobox-field/combobox.module.js +21 -21
  50. package/dist/components/combobox-field/value-state-view.css +5 -5
  51. package/dist/components/combobox-field/value-state-view.module.js +4 -4
  52. package/dist/components/composer/composer-attachments.d.ts +30 -11
  53. package/dist/components/composer/composer-attachments.js +45 -40
  54. package/dist/components/composer/composer-editor.css +40 -35
  55. package/dist/components/composer/composer-editor.d.ts +14 -4
  56. package/dist/components/composer/composer-editor.js +134 -44
  57. package/dist/components/composer/composer-editor.module.js +5 -5
  58. package/dist/components/composer/composer.css +22 -22
  59. package/dist/components/composer/composer.d.ts +13 -2
  60. package/dist/components/composer/composer.js +78 -63
  61. package/dist/components/composer/composer.module.js +5 -5
  62. package/dist/components/composer/index.d.ts +2 -2
  63. package/dist/components/composer/mention-text.css +5 -5
  64. package/dist/components/composer/mention-text.module.js +1 -1
  65. package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
  66. package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
  67. package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
  68. package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
  69. package/dist/components/conversation/conversation.css +52 -52
  70. package/dist/components/conversation/conversation.d.ts +43 -18
  71. package/dist/components/conversation/conversation.js +120 -78
  72. package/dist/components/conversation/conversation.module.js +15 -15
  73. package/dist/components/date-field/date-field.d.ts +1 -1
  74. package/dist/components/date-field/date-field.js +202 -100
  75. package/dist/components/date-field/date-input.d.ts +73 -37
  76. package/dist/components/date-field/date-input.js +72 -45
  77. package/dist/components/date-field/index.d.ts +1 -1
  78. package/dist/components/date-range-field/date-range-field.d.ts +1 -1
  79. package/dist/components/date-range-field/date-range-field.js +219 -107
  80. package/dist/components/date-range-field/date-range-input.d.ts +84 -40
  81. package/dist/components/date-range-field/date-range-input.js +83 -48
  82. package/dist/components/dialog/dialog.css +32 -32
  83. package/dist/components/dialog/dialog.d.ts +8 -7
  84. package/dist/components/dialog/dialog.js +8 -26
  85. package/dist/components/dialog/dialog.module.js +6 -6
  86. package/dist/components/divider/divider.css +6 -6
  87. package/dist/components/divider/divider.d.ts +36 -2
  88. package/dist/components/divider/divider.js +195 -29
  89. package/dist/components/divider/divider.module.js +3 -3
  90. package/dist/components/drawer/drawer.css +55 -56
  91. package/dist/components/drawer/drawer.d.ts +8 -7
  92. package/dist/components/drawer/drawer.js +8 -26
  93. package/dist/components/drawer/drawer.module.js +6 -6
  94. package/dist/components/field/field.css +34 -24
  95. package/dist/components/field/field.d.ts +60 -37
  96. package/dist/components/field/field.js +242 -157
  97. package/dist/components/field/field.module.js +12 -10
  98. package/dist/components/field/input-parts.d.ts +11 -13
  99. package/dist/components/field/input-parts.js +23 -42
  100. package/dist/components/field-placeholder/field-placeholder.css +6 -6
  101. package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
  102. package/dist/components/fieldset/field-group.d.ts +1 -1
  103. package/dist/components/fieldset/field-group.js +48 -42
  104. package/dist/components/fieldset/fieldset-root.d.ts +1 -1
  105. package/dist/components/fieldset/fieldset-root.js +19 -17
  106. package/dist/components/fieldset/fieldset.d.ts +2 -2
  107. package/dist/components/fieldset/fieldset.js +2 -2
  108. package/dist/components/file-field/file-field.css +126 -60
  109. package/dist/components/file-field/file-field.js +201 -109
  110. package/dist/components/file-field/file-field.module.js +4 -4
  111. package/dist/components/file-field/file-input.d.ts +66 -40
  112. package/dist/components/file-field/file-input.js +188 -132
  113. package/dist/components/filter-bar/filter-bar.css +8 -8
  114. package/dist/components/filter-bar/filter-bar.d.ts +12 -3
  115. package/dist/components/filter-bar/filter-bar.js +23 -25
  116. package/dist/components/filter-bar/filter-bar.module.js +5 -5
  117. package/dist/components/form/form.d.ts +19 -7
  118. package/dist/components/form/form.js +80 -29
  119. package/dist/components/icon/icon.css +2 -2
  120. package/dist/components/icon/icon.module.js +1 -1
  121. package/dist/components/link/link.css +6 -5
  122. package/dist/components/link/link.module.js +1 -1
  123. package/dist/components/menu/menu.css +52 -47
  124. package/dist/components/menu/menu.d.ts +32 -25
  125. package/dist/components/menu/menu.js +75 -124
  126. package/dist/components/menu/menu.module.js +8 -8
  127. package/dist/components/nav/nav-context.d.ts +1 -1
  128. package/dist/components/nav/nav-item-view.d.ts +10 -13
  129. package/dist/components/nav/nav-item-view.js +42 -54
  130. package/dist/components/nav/nav.css +150 -119
  131. package/dist/components/nav/nav.d.ts +61 -17
  132. package/dist/components/nav/nav.js +271 -176
  133. package/dist/components/nav/nav.module.js +17 -15
  134. package/dist/components/number-field/number-field.css +153 -64
  135. package/dist/components/number-field/number-field.d.ts +2 -2
  136. package/dist/components/number-field/number-field.js +112 -91
  137. package/dist/components/number-field/number-field.module.js +6 -6
  138. package/dist/components/number-field/number-input.d.ts +43 -23
  139. package/dist/components/number-field/number-input.js +179 -125
  140. package/dist/components/otp-field/otp-field.css +153 -60
  141. package/dist/components/otp-field/otp-field.d.ts +2 -2
  142. package/dist/components/otp-field/otp-field.js +62 -46
  143. package/dist/components/otp-field/otp-field.module.js +4 -4
  144. package/dist/components/otp-field/otp-input.d.ts +8 -6
  145. package/dist/components/otp-field/otp-input.js +92 -92
  146. package/dist/components/pagination/pagination.d.ts +46 -15
  147. package/dist/components/pagination/pagination.js +217 -224
  148. package/dist/components/password-field/password-field.css +23 -23
  149. package/dist/components/password-field/password-field.js +107 -85
  150. package/dist/components/password-field/password-field.module.js +8 -8
  151. package/dist/components/password-field/password-strength.d.ts +107 -3
  152. package/dist/components/password-field/password-strength.js +569 -92
  153. package/dist/components/photo-field/photo-field.js +137 -112
  154. package/dist/components/photo-field/photo-input.css +67 -44
  155. package/dist/components/photo-field/photo-input.d.ts +59 -15
  156. package/dist/components/photo-field/photo-input.js +173 -86
  157. package/dist/components/photo-field/photo-input.module.js +10 -8
  158. package/dist/components/popover/popover.css +41 -41
  159. package/dist/components/popover/popover.d.ts +66 -25
  160. package/dist/components/popover/popover.js +332 -217
  161. package/dist/components/popover/popover.module.js +15 -19
  162. package/dist/components/radio-group-field/radio-group-field.js +80 -71
  163. package/dist/components/radio-group-field/radio-group.css +112 -60
  164. package/dist/components/radio-group-field/radio-group.d.ts +19 -3
  165. package/dist/components/radio-group-field/radio-group.js +66 -23
  166. package/dist/components/radio-group-field/radio-group.module.js +4 -4
  167. package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
  168. package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
  169. package/dist/components/segmented-control-field/segmented-control.css +132 -79
  170. package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
  171. package/dist/components/segmented-control-field/segmented-control.js +124 -41
  172. package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
  173. package/dist/components/select-field/select.css +214 -101
  174. package/dist/components/select-field/select.d.ts +43 -11
  175. package/dist/components/select-field/select.js +194 -109
  176. package/dist/components/select-field/select.module.js +14 -14
  177. package/dist/components/skeleton/skeleton.css +4 -4
  178. package/dist/components/skeleton/skeleton.module.js +3 -3
  179. package/dist/components/stale/stale.css +15 -15
  180. package/dist/components/stale/stale.d.ts +27 -3
  181. package/dist/components/stale/stale.js +147 -66
  182. package/dist/components/stale/stale.module.js +6 -6
  183. package/dist/components/status-message/status-message.css +22 -22
  184. package/dist/components/status-message/status-message.module.js +6 -6
  185. package/dist/components/switch-field/switch-field.js +77 -57
  186. package/dist/components/switch-field/switch.css +112 -63
  187. package/dist/components/switch-field/switch.d.ts +20 -3
  188. package/dist/components/switch-field/switch.js +70 -27
  189. package/dist/components/switch-field/switch.module.js +4 -4
  190. package/dist/components/tabs/tabs.css +32 -32
  191. package/dist/components/tabs/tabs.d.ts +21 -7
  192. package/dist/components/tabs/tabs.js +73 -14
  193. package/dist/components/tabs/tabs.module.js +7 -7
  194. package/dist/components/tag/tag.css +84 -84
  195. package/dist/components/tag/tag.module.js +3 -3
  196. package/dist/components/tag-group/tag-group.css +94 -94
  197. package/dist/components/tag-group/tag-group.module.js +4 -4
  198. package/dist/components/text-field/text-field.css +159 -82
  199. package/dist/components/text-field/text-field.d.ts +1 -1
  200. package/dist/components/text-field/text-field.js +139 -110
  201. package/dist/components/text-field/text-field.module.js +9 -9
  202. package/dist/components/text-field/text-input.d.ts +81 -45
  203. package/dist/components/text-field/text-input.js +366 -217
  204. package/dist/components/textarea-field/textarea-field.css +7 -2
  205. package/dist/components/textarea-field/textarea-field.js +72 -56
  206. package/dist/components/textarea-field/textarea-field.module.js +2 -2
  207. package/dist/components/time-field/time-field.js +153 -60
  208. package/dist/components/time-field/time-input.d.ts +21 -10
  209. package/dist/components/time-field/time-input.js +22 -11
  210. package/dist/components/toast/toast-provider.css +34 -31
  211. package/dist/components/toast/toast-provider.d.ts +63 -14
  212. package/dist/components/toast/toast-provider.js +174 -111
  213. package/dist/components/toast/toast-provider.module.js +7 -7
  214. package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
  215. package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
  216. package/dist/components/toggle-group-field/toggle-group.css +117 -67
  217. package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
  218. package/dist/components/toggle-group-field/toggle-group.js +2 -2
  219. package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
  220. package/dist/components/tooltip/tooltip.css +4 -4
  221. package/dist/components/tooltip/tooltip.module.js +1 -1
  222. package/dist/data-table/data-table-content.js +6 -5
  223. package/dist/data-table/data-table-parts.d.ts +41 -13
  224. package/dist/data-table/data-table-parts.js +213 -172
  225. package/dist/data-table/data-table-selection.d.ts +105 -3
  226. package/dist/data-table/data-table-selection.js +654 -145
  227. package/dist/data-table/data-table.css +125 -128
  228. package/dist/data-table/data-table.d.ts +21 -26
  229. package/dist/data-table/data-table.js +20 -23
  230. package/dist/data-table/data-table.module.js +32 -34
  231. package/dist/data-table/index.d.ts +2 -2
  232. package/dist/index.js +3 -3
  233. package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
  234. package/dist/lib/calendar/calendar-navigation.js +185 -118
  235. package/dist/lib/calendar/calendar-parts.d.ts +143 -0
  236. package/dist/lib/calendar/calendar-parts.js +540 -0
  237. package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
  238. package/dist/lib/calendar/calendar-prefab.js +311 -0
  239. package/dist/lib/calendar/calendar-year.d.ts +3 -1
  240. package/dist/lib/calendar/calendar-year.js +139 -131
  241. package/dist/lib/calendar/temporal.css +325 -232
  242. package/dist/lib/calendar/temporal.d.ts +67 -82
  243. package/dist/lib/calendar/temporal.js +258 -569
  244. package/dist/lib/calendar/temporal.module.js +38 -38
  245. package/dist/lib/forms/use-connected-field.d.ts +1 -1
  246. package/dist/lib/forms/use-connected-field.js +1 -1
  247. package/dist/lib/render-as.d.ts +13 -0
  248. package/dist/lib/render-as.js +46 -0
  249. package/dist/tokens.css +6 -3
  250. package/package.json +1 -1
  251. package/tokens/dark.tokens.json +6 -0
  252. package/tokens/sys.tokens.json +7 -0
  253. package/dist/components/button/close-button.d.ts +0 -16
  254. package/dist/components/button/close-button.js +0 -30
@@ -1,19 +1,17 @@
1
1
  import './popover.css';// src/components/popover/popover.module.scss
2
- var positioner = "_positioner_ixh47_3";
3
- var visuallyHidden = "_visuallyHidden_ixh47_18";
4
- var popup = "_popup_ixh47_26";
5
- var arrow = "_arrow_ixh47_47";
6
- var arrowFill = "_arrowFill_ixh47_65";
7
- var title = "_title_ixh47_68";
8
- var rows = "_rows_ixh47_73";
9
- var row = "_row_ixh47_73";
10
- var rowLabel = "_rowLabel_ixh47_86";
11
- var rowValue = "_rowValue_ixh47_87";
12
- var skeletonText = "_skeletonText_ixh47_101";
13
- var skeletonTextContent = "_skeletonTextContent_ixh47_105";
14
- var skeletonTextOverlay = "_skeletonTextOverlay_ixh47_108";
15
- var titleSkeleton = "_titleSkeleton_ixh47_114";
16
- var valueSkeleton = "_valueSkeleton_ixh47_117";
2
+ var positioner = "_positioner_1yoda_3";
3
+ var visuallyHidden = "_visuallyHidden_1yoda_18";
4
+ var popup = "_popup_1yoda_26";
5
+ var arrow = "_arrow_1yoda_47";
6
+ var arrowFill = "_arrowFill_1yoda_65";
7
+ var title = "_title_1yoda_68";
8
+ var rows = "_rows_1yoda_73";
9
+ var row = "_row_1yoda_73";
10
+ var rowLabel = "_rowLabel_1yoda_86";
11
+ var rowValue = "_rowValue_1yoda_87";
12
+ var skeletonText = "_skeletonText_1yoda_101";
13
+ var skeletonTextContent = "_skeletonTextContent_1yoda_105";
14
+ var skeletonTextOverlay = "_skeletonTextOverlay_1yoda_108";
17
15
  var popover_module_default = {
18
16
  positioner,
19
17
  visuallyHidden,
@@ -27,8 +25,6 @@ var popover_module_default = {
27
25
  rowValue,
28
26
  skeletonText,
29
27
  skeletonTextContent,
30
- skeletonTextOverlay,
31
- titleSkeleton,
32
- valueSkeleton
28
+ skeletonTextOverlay
33
29
  };
34
- export { arrow, arrowFill, popover_module_default as default, popup, positioner, row, rowLabel, rowValue, rows, skeletonText, skeletonTextContent, skeletonTextOverlay, title, titleSkeleton, valueSkeleton, visuallyHidden };
30
+ export { arrow, arrowFill, popover_module_default as default, popup, positioner, row, rowLabel, rowValue, rows, skeletonText, skeletonTextContent, skeletonTextOverlay, title, visuallyHidden };
@@ -1,3 +1,4 @@
1
+ import { Field } from "../field/field.js";
1
2
  import { detachHiddenInput } from "../field/hidden-input.js";
2
3
  import { RadioGroup } from "./radio-group.js";
3
4
  import { c } from "react/compiler-runtime";
@@ -17,73 +18,78 @@ import { jsx, jsxs } from "react/jsx-runtime";
17
18
  * />
18
19
  */
19
20
  var RadioGroupField = (t0) => {
20
- const $ = c(36);
21
+ const $ = c(37);
21
22
  const { label, description, errors, requiredness, optionalLabel, dirty, touched, pending, options, className, value, defaultValue, onValueChange, onBlur, name, disabled, readOnly } = t0;
22
23
  const ids = RadioGroup.useIds();
23
24
  const t1 = value !== void 0 && value !== null && value !== "";
24
25
  let t2;
25
- if ($[0] !== label || $[1] !== optionalLabel || $[2] !== requiredness) {
26
- t2 = /* @__PURE__ */ jsx(RadioGroup.Legend, {
27
- requiredness,
28
- optionalLabel,
29
- children: label
30
- });
31
- $[0] = label;
32
- $[1] = optionalLabel;
33
- $[2] = requiredness;
26
+ if ($[0] !== optionalLabel) {
27
+ t2 = /* @__PURE__ */ jsx(Field.Requiredness, { optionalLabel });
28
+ $[0] = optionalLabel;
29
+ $[1] = t2;
30
+ } else t2 = $[1];
31
+ let t3;
32
+ if ($[2] !== label || $[3] !== t2) {
33
+ t3 = /* @__PURE__ */ jsxs(RadioGroup.Legend, { children: [
34
+ label,
35
+ " ",
36
+ t2
37
+ ] });
38
+ $[2] = label;
34
39
  $[3] = t2;
35
- } else t2 = $[3];
36
- const t3 = name ?? ids.controlId;
37
- const t4 = ids.controlId;
38
- const t5 = requiredness === "required";
39
- let t6;
40
- if ($[4] !== options) {
41
- t6 = options.map(_temp);
42
- $[4] = options;
43
- $[5] = t6;
44
- } else t6 = $[5];
40
+ $[4] = t3;
41
+ } else t3 = $[4];
42
+ const t4 = name ?? ids.controlId;
43
+ const t5 = ids.controlId;
44
+ const t6 = requiredness === "required";
45
45
  let t7;
46
- if ($[6] !== defaultValue || $[7] !== disabled || $[8] !== ids.controlId || $[9] !== onBlur || $[10] !== onValueChange || $[11] !== readOnly || $[12] !== t3 || $[13] !== t5 || $[14] !== t6 || $[15] !== value) {
47
- t7 = /* @__PURE__ */ jsx(RadioGroup.Group, {
46
+ if ($[5] !== options) {
47
+ t7 = options.map(_temp);
48
+ $[5] = options;
49
+ $[6] = t7;
50
+ } else t7 = $[6];
51
+ let t8;
52
+ if ($[7] !== defaultValue || $[8] !== disabled || $[9] !== ids.controlId || $[10] !== onBlur || $[11] !== onValueChange || $[12] !== readOnly || $[13] !== t4 || $[14] !== t6 || $[15] !== t7 || $[16] !== value) {
53
+ t8 = /* @__PURE__ */ jsx(RadioGroup.Group, {
48
54
  value,
49
55
  defaultValue,
50
56
  onValueChange,
51
57
  onBlur,
52
- name: t3,
58
+ name: t4,
53
59
  inputRef: detachHiddenInput,
54
- id: t4,
60
+ id: t5,
55
61
  disabled,
56
62
  readOnly,
57
- required: t5,
58
- children: t6
63
+ required: t6,
64
+ children: t7
59
65
  });
60
- $[6] = defaultValue;
61
- $[7] = disabled;
62
- $[8] = ids.controlId;
63
- $[9] = onBlur;
64
- $[10] = onValueChange;
65
- $[11] = readOnly;
66
- $[12] = t3;
67
- $[13] = t5;
66
+ $[7] = defaultValue;
67
+ $[8] = disabled;
68
+ $[9] = ids.controlId;
69
+ $[10] = onBlur;
70
+ $[11] = onValueChange;
71
+ $[12] = readOnly;
72
+ $[13] = t4;
68
73
  $[14] = t6;
69
- $[15] = value;
70
- $[16] = t7;
71
- } else t7 = $[16];
72
- let t8;
73
- if ($[17] !== description) {
74
- t8 = /* @__PURE__ */ jsx(RadioGroup.Description, { children: description });
75
- $[17] = description;
76
- $[18] = t8;
77
- } else t8 = $[18];
74
+ $[15] = t7;
75
+ $[16] = value;
76
+ $[17] = t8;
77
+ } else t8 = $[17];
78
78
  let t9;
79
- if ($[19] !== errors) {
80
- t9 = /* @__PURE__ */ jsx(RadioGroup.Error, { children: errors });
81
- $[19] = errors;
82
- $[20] = t9;
83
- } else t9 = $[20];
79
+ if ($[18] !== description) {
80
+ t9 = /* @__PURE__ */ jsx(RadioGroup.Description, { children: description });
81
+ $[18] = description;
82
+ $[19] = t9;
83
+ } else t9 = $[19];
84
84
  let t10;
85
- if ($[21] !== className || $[22] !== dirty || $[23] !== disabled || $[24] !== errors || $[25] !== name || $[26] !== pending || $[27] !== readOnly || $[28] !== requiredness || $[29] !== t1 || $[30] !== t2 || $[31] !== t7 || $[32] !== t8 || $[33] !== t9 || $[34] !== touched) {
86
- t10 = /* @__PURE__ */ jsxs(RadioGroup.Root, {
85
+ if ($[20] !== errors) {
86
+ t10 = /* @__PURE__ */ jsx(RadioGroup.Error, { children: errors });
87
+ $[20] = errors;
88
+ $[21] = t10;
89
+ } else t10 = $[21];
90
+ let t11;
91
+ if ($[22] !== className || $[23] !== dirty || $[24] !== disabled || $[25] !== errors || $[26] !== name || $[27] !== pending || $[28] !== readOnly || $[29] !== requiredness || $[30] !== t1 || $[31] !== t10 || $[32] !== t3 || $[33] !== t8 || $[34] !== t9 || $[35] !== touched) {
92
+ t11 = /* @__PURE__ */ jsxs(RadioGroup.Root, {
87
93
  name,
88
94
  className,
89
95
  disabled,
@@ -95,34 +101,37 @@ var RadioGroupField = (t0) => {
95
101
  pending,
96
102
  filled: t1,
97
103
  children: [
98
- t2,
99
- t7,
104
+ t3,
100
105
  t8,
101
- t9
106
+ t9,
107
+ t10
102
108
  ]
103
109
  });
104
- $[21] = className;
105
- $[22] = dirty;
106
- $[23] = disabled;
107
- $[24] = errors;
108
- $[25] = name;
109
- $[26] = pending;
110
- $[27] = readOnly;
111
- $[28] = requiredness;
112
- $[29] = t1;
113
- $[30] = t2;
114
- $[31] = t7;
115
- $[32] = t8;
116
- $[33] = t9;
117
- $[34] = touched;
118
- $[35] = t10;
119
- } else t10 = $[35];
120
- return t10;
110
+ $[22] = className;
111
+ $[23] = dirty;
112
+ $[24] = disabled;
113
+ $[25] = errors;
114
+ $[26] = name;
115
+ $[27] = pending;
116
+ $[28] = readOnly;
117
+ $[29] = requiredness;
118
+ $[30] = t1;
119
+ $[31] = t10;
120
+ $[32] = t3;
121
+ $[33] = t8;
122
+ $[34] = t9;
123
+ $[35] = touched;
124
+ $[36] = t11;
125
+ } else t11 = $[36];
126
+ return t11;
121
127
  };
122
128
  function _temp(option) {
123
129
  return /* @__PURE__ */ jsxs(RadioGroup.Item, {
124
130
  disabled: option.disabled,
125
- children: [/* @__PURE__ */ jsx(RadioGroup.Radio, { value: option.value }), option.label]
131
+ children: [/* @__PURE__ */ jsx(RadioGroup.Radio, {
132
+ value: option.value,
133
+ children: /* @__PURE__ */ jsx(RadioGroup.Indicator, {})
134
+ }), option.label]
126
135
  }, option.value);
127
136
  }
128
137
  export { RadioGroupField };
@@ -1,115 +1,167 @@
1
1
  @layer kit.reset, kit.base, kit.components;
2
2
  @layer kit.components {
3
- ._group_18uvi_3 {
3
+ ._group_1ipzk_3 {
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  align-items: flex-start;
7
7
  gap: var(--radio-group-gap, var(--sys-unit-2));
8
8
  }
9
- ._item_18uvi_9 {
9
+ ._item_1ipzk_9 {
10
10
  display: inline-flex;
11
11
  flex: 0 0 auto;
12
12
  align-items: center;
13
13
  gap: var(--radio-group-item-gap, var(--sys-unit-6));
14
- min-block-size: var(--sys-unit-20);
14
+ min-block-size: var(--radio-group-item-min-block-size, var(--sys-unit-20));
15
+ font: var(--radio-group-item-font, inherit);
15
16
  cursor: pointer;
16
17
  }
17
- ._item_18uvi_9:hover ._radio_18uvi_17 {
18
- border-color: var(--sys-color-primary);
18
+ ._item_1ipzk_9:hover ._radio_1ipzk_18 {
19
+ border-color: var(--checkbox-hover-border, var(--sys-color-primary));
19
20
  }
20
- :where([data-readonly], [data-disabled]) ._item_18uvi_9 {
21
+ :where([data-readonly], [data-disabled]) ._item_1ipzk_9 {
21
22
  cursor: default;
22
23
  }
23
- :where([data-readonly], [data-disabled]) ._item_18uvi_9:hover ._radio_18uvi_17:not([data-checked]) {
24
- border-color: var(--box-border, var(--sys-color-border));
25
- }
26
- ._radio_18uvi_17 {
27
- --box-border: var(--sys-color-border);
28
- --box-bg: var(--sys-color-surface);
29
- --box-fg: var(--sys-color-on-primary);
30
- --box-checked-bg: var(--sys-color-primary);
24
+ :where([data-readonly], [data-disabled]) ._item_1ipzk_9:hover ._radio_1ipzk_18:not([data-checked]) {
25
+ border-color: var(--_checkbox-border, var(--checkbox-border, var(--sys-color-border)));
26
+ }
27
+ ._item_1ipzk_9[data-disabled]:not([data-disabled] ._item_1ipzk_9) {
28
+ opacity: var(--radio-group-item-disabled-opacity, 1);
29
+ }
30
+ ._radio_1ipzk_18 {
31
+ --_checkbox-border: var(
32
+ --checkbox-border,
33
+ var(--sys-color-border)
34
+ );
35
+ --_checkbox-bg: var(
36
+ --checkbox-bg,
37
+ var(--sys-color-surface)
38
+ );
39
+ --_checkbox-fg: var(
40
+ --checkbox-fg,
41
+ var(--sys-color-on-primary)
42
+ );
43
+ --_checkbox-checked-bg: var(
44
+ --checkbox-checked-bg,
45
+ var(--sys-color-primary)
46
+ );
31
47
  display: grid;
32
48
  flex: 0 0 auto;
33
49
  place-items: center;
34
50
  box-sizing: border-box;
35
51
  inline-size: var(--checkbox-size, var(--sys-unit-16));
36
52
  block-size: var(--checkbox-size, var(--sys-unit-16));
37
- border: 1px solid var(--box-border);
38
- border-radius: var(--sys-radius-sm);
39
- background: var(--box-bg);
40
- color: var(--box-fg);
53
+ border: var(--checkbox-border-width, 1px) solid var(--_checkbox-border);
54
+ border-radius: var(--checkbox-radius, var(--sys-radius-sm));
55
+ background: var(--_checkbox-bg);
56
+ color: var(--_checkbox-fg);
41
57
  }
42
58
  @media not (prefers-reduced-motion) {
43
- ._radio_18uvi_17 {
59
+ ._radio_1ipzk_18 {
44
60
  transition: background var(--sys-motion-instant) var(--sys-motion-standard), border-color var(--sys-motion-instant) var(--sys-motion-standard);
45
61
  }
46
62
  }
47
- ._radio_18uvi_17:focus-visible {
48
- border-color: var(--sys-color-primary);
63
+ ._radio_1ipzk_18:focus-visible {
64
+ border-color: var(--checkbox-focus-border, var(--sys-color-primary));
49
65
  }
50
- ._radio_18uvi_17 {
66
+ ._radio_1ipzk_18 {
51
67
  outline: 0 solid var(--sys-color-focus-ring);
52
68
  outline-offset: var(--sys-focus-ring-offset);
53
69
  }
54
- ._radio_18uvi_17[data-focus-visible] {
70
+ ._radio_1ipzk_18[data-focus-visible] {
55
71
  outline-width: var(--sys-focus-ring-width);
56
72
  }
57
- ._radio_18uvi_17 {
73
+ ._radio_1ipzk_18 {
58
74
  position: relative;
59
- border-radius: var(--sys-radius-circle);
60
- }
61
- ._radio_18uvi_17[data-invalid] {
62
- --box-border: var(--sys-color-error-fg);
63
- --box-bg: var(--sys-color-error-bg);
64
- --box-checked-bg: var(--sys-color-error-fg);
65
- --box-fg: var(--sys-color-error-bg);
66
- }
67
- ._radio_18uvi_17[data-readonly] {
68
- --box-border: var(--sys-color-outline);
69
- --box-bg: var(--sys-color-surface-high);
70
- --box-checked-bg: var(--sys-color-primary-container);
71
- --box-fg: var(--sys-color-on-primary-container);
72
- border-style: dashed;
73
- }
74
- ._radio_18uvi_17[data-checked] {
75
- --box-border: var(--box-checked-bg);
76
- --box-bg: var(--box-checked-bg);
77
- }
78
- ._radio_18uvi_17[data-disabled] {
79
- --box-bg: var(--sys-color-disabled-bg);
80
- --box-checked-bg: var(--sys-color-disabled-bg);
81
- --box-fg: var(--sys-color-disabled-fg);
75
+ border-radius: var(--radio-group-radio-radius, var(--sys-radius-circle));
76
+ }
77
+ ._radio_1ipzk_18[data-invalid] {
78
+ --_checkbox-border: var(
79
+ --checkbox-invalid-border,
80
+ var(--sys-color-error-fg)
81
+ );
82
+ --_checkbox-bg: var(
83
+ --checkbox-invalid-bg,
84
+ var(--sys-color-error-bg)
85
+ );
86
+ --_checkbox-checked-bg: var(
87
+ --checkbox-invalid-checked-bg,
88
+ var(--sys-color-error-fg)
89
+ );
90
+ --_checkbox-fg: var(
91
+ --checkbox-invalid-fg,
92
+ var(--sys-color-error-bg)
93
+ );
94
+ }
95
+ ._radio_1ipzk_18[data-readonly] {
96
+ --_checkbox-border: var(
97
+ --checkbox-readonly-border,
98
+ var(--sys-color-outline)
99
+ );
100
+ --_checkbox-bg: var(
101
+ --checkbox-readonly-bg,
102
+ var(--sys-color-surface-high)
103
+ );
104
+ --_checkbox-checked-bg: var(
105
+ --checkbox-readonly-checked-bg,
106
+ var(--sys-color-primary-container)
107
+ );
108
+ --_checkbox-fg: var(
109
+ --checkbox-readonly-fg,
110
+ var(--sys-color-on-primary-container)
111
+ );
112
+ border-style: var(--checkbox-readonly-border-style, dashed);
113
+ }
114
+ ._radio_1ipzk_18[data-checked] {
115
+ --_checkbox-border: var(
116
+ --checkbox-checked-border,
117
+ var(--_checkbox-checked-bg)
118
+ );
119
+ --_checkbox-bg: var(--_checkbox-checked-bg);
120
+ }
121
+ ._radio_1ipzk_18[data-disabled] {
122
+ --_checkbox-bg: var(
123
+ --checkbox-disabled-bg,
124
+ var(--sys-color-disabled-bg)
125
+ );
126
+ --_checkbox-checked-bg: var(
127
+ --checkbox-disabled-checked-bg,
128
+ var(--sys-color-disabled-bg)
129
+ );
130
+ --_checkbox-fg: var(
131
+ --checkbox-disabled-fg,
132
+ var(--sys-color-disabled-fg)
133
+ );
82
134
  cursor: not-allowed;
83
135
  }
84
- ._indicator_18uvi_84 {
136
+ ._indicator_1ipzk_136 {
85
137
  display: grid;
86
138
  place-items: center;
87
139
  }
88
- ._indicator_18uvi_84 svg {
89
- inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
90
- block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
140
+ ._indicator_1ipzk_136 svg {
141
+ inline-size: var(--checkbox-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7));
142
+ block-size: var(--checkbox-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7));
91
143
  }
92
- ._indicator_18uvi_84 {
144
+ ._indicator_1ipzk_136 {
93
145
  opacity: 0;
94
146
  scale: 0;
95
147
  }
96
148
  @media not (prefers-reduced-motion) {
97
- ._indicator_18uvi_84 {
149
+ ._indicator_1ipzk_136 {
98
150
  transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-instant) var(--sys-motion-standard);
99
151
  }
100
152
  }
101
- ._indicator_18uvi_84 {
102
- inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
103
- block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
104
- border-radius: var(--sys-radius-circle);
105
- background: currentcolor;
153
+ ._indicator_1ipzk_136 {
154
+ inline-size: var(--radio-group-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4));
155
+ block-size: var(--radio-group-indicator-size, calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4));
156
+ border-radius: var(--radio-group-indicator-radius, var(--sys-radius-circle));
157
+ background: var(--radio-group-indicator-bg, currentcolor);
106
158
  }
107
- ._indicator_18uvi_84[data-checked] {
159
+ ._indicator_1ipzk_136[data-checked] {
108
160
  opacity: 1;
109
161
  scale: 1;
110
162
  }
111
163
  @media not (prefers-reduced-motion) {
112
- ._indicator_18uvi_84[data-checked] {
164
+ ._indicator_1ipzk_136[data-checked] {
113
165
  transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-short) var(--sys-motion-overshoot);
114
166
  }
115
167
  }
@@ -7,7 +7,20 @@ import { FieldsetLegend, FieldsetRoot, type FieldsetRootProps } from "../fieldse
7
7
  export type RadioGroupRootProps = FieldsetRootProps;
8
8
  declare const RadioGroupGroup: <TValue>({ className, ...props }: BaseRadioGroup.Props<TValue>) => ReactNode;
9
9
  declare const RadioGroupItem: ({ className, ...props }: BaseField.Item.Props) => ReactNode;
10
+ /**
11
+ * One radio, which takes a `RadioGroup.Indicator` as its child.
12
+ *
13
+ * @example
14
+ * <RadioGroup.Radio value="direct"><RadioGroup.Indicator /></RadioGroup.Radio>
15
+ */
10
16
  declare const RadioGroupRadio: ({ className, ...props }: BaseRadio.Root.Props) => ReactNode;
17
+ /**
18
+ * The dot inside a radio, which pops in while it is chosen.
19
+ *
20
+ * @example
21
+ * <RadioGroup.Indicator />
22
+ */
23
+ declare const RadioGroupIndicator: ({ className, keepMounted, ...props }: BaseRadio.Indicator.Props) => ReactNode;
11
24
  /** The parts of a radio group. */
12
25
  export type RadioGroupParts = Readonly<{
13
26
  Root: typeof FieldsetRoot;
@@ -15,6 +28,7 @@ export type RadioGroupParts = Readonly<{
15
28
  Group: typeof RadioGroupGroup;
16
29
  Item: typeof RadioGroupItem;
17
30
  Radio: typeof RadioGroupRadio;
31
+ Indicator: typeof RadioGroupIndicator;
18
32
  Description: typeof Field.Description;
19
33
  Error: typeof Field.Error;
20
34
  useIds: typeof Field.useIds;
@@ -24,11 +38,13 @@ export type RadioGroupParts = Readonly<{
24
38
  * its `Legend`. For the ordinary case, use `RadioGroupField`.
25
39
  *
26
40
  * @example
27
- * <RadioGroup.Root filled={kind !== null}>
28
- * <RadioGroup.Legend optionalLabel="optional">Kind</RadioGroup.Legend>
41
+ * <RadioGroup.Root filled={kind !== null} requiredness="optional">
42
+ * <RadioGroup.Legend>Kind <Field.Requiredness optionalLabel="optional" /></RadioGroup.Legend>
29
43
  * <RadioGroup.Group value={kind} onValueChange={setKind}>
30
44
  * <RadioGroup.Item>
31
- * <RadioGroup.Radio value="direct" />
45
+ * <RadioGroup.Radio value="direct">
46
+ * <RadioGroup.Indicator />
47
+ * </RadioGroup.Radio>
32
48
  * Direct
33
49
  * </RadioGroup.Item>
34
50
  * </RadioGroup.Group>
@@ -78,8 +78,14 @@ var RadioGroupItem = (t0) => {
78
78
  } else t3 = $[8];
79
79
  return t3;
80
80
  };
81
+ /**
82
+ * One radio, which takes a `RadioGroup.Indicator` as its child.
83
+ *
84
+ * @example
85
+ * <RadioGroup.Radio value="direct"><RadioGroup.Indicator /></RadioGroup.Radio>
86
+ */
81
87
  var RadioGroupRadio = (t0) => {
82
- const $ = c(13);
88
+ const $ = c(12);
83
89
  let className;
84
90
  let props;
85
91
  if ($[0] !== t0) {
@@ -105,41 +111,77 @@ var RadioGroupRadio = (t0) => {
105
111
  $[6] = t2;
106
112
  } else t2 = $[6];
107
113
  let t3;
108
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
109
- t3 = /* @__PURE__ */ jsx(Radio.Indicator, {
110
- keepMounted: true,
111
- className: radio_group_module_default.indicator
112
- });
113
- $[7] = t3;
114
- } else t3 = $[7];
115
- let t4;
116
- if ($[8] !== focus.props || $[9] !== props || $[10] !== t1 || $[11] !== t2) {
117
- t4 = /* @__PURE__ */ jsx(Radio.Root, {
114
+ if ($[7] !== focus.props || $[8] !== props || $[9] !== t1 || $[10] !== t2) {
115
+ t3 = /* @__PURE__ */ jsx(Radio.Root, {
118
116
  className: t1,
119
117
  "aria-readonly": void 0,
120
118
  ...t2,
121
119
  ...props,
122
- ...focus.props,
123
- children: t3
120
+ ...focus.props
124
121
  });
125
- $[8] = focus.props;
126
- $[9] = props;
127
- $[10] = t1;
128
- $[11] = t2;
129
- $[12] = t4;
130
- } else t4 = $[12];
131
- return t4;
122
+ $[7] = focus.props;
123
+ $[8] = props;
124
+ $[9] = t1;
125
+ $[10] = t2;
126
+ $[11] = t3;
127
+ } else t3 = $[11];
128
+ return t3;
129
+ };
130
+ /**
131
+ * The dot inside a radio, which pops in while it is chosen.
132
+ *
133
+ * @example
134
+ * <RadioGroup.Indicator />
135
+ */
136
+ var RadioGroupIndicator = (t0) => {
137
+ const $ = c(10);
138
+ let className;
139
+ let props;
140
+ let t1;
141
+ if ($[0] !== t0) {
142
+ ({className, keepMounted: t1, ...props} = t0);
143
+ $[0] = t0;
144
+ $[1] = className;
145
+ $[2] = props;
146
+ $[3] = t1;
147
+ } else {
148
+ className = $[1];
149
+ props = $[2];
150
+ t1 = $[3];
151
+ }
152
+ const keepMounted = t1 === void 0 ? true : t1;
153
+ let t2;
154
+ if ($[4] !== className) {
155
+ t2 = clsx(radio_group_module_default.indicator, className);
156
+ $[4] = className;
157
+ $[5] = t2;
158
+ } else t2 = $[5];
159
+ let t3;
160
+ if ($[6] !== keepMounted || $[7] !== props || $[8] !== t2) {
161
+ t3 = /* @__PURE__ */ jsx(Radio.Indicator, {
162
+ keepMounted,
163
+ className: t2,
164
+ ...props
165
+ });
166
+ $[6] = keepMounted;
167
+ $[7] = props;
168
+ $[8] = t2;
169
+ $[9] = t3;
170
+ } else t3 = $[9];
171
+ return t3;
132
172
  };
133
173
  /**
134
174
  * The styled parts of a base-ui radio group. The `Root` is a fieldset named by
135
175
  * its `Legend`. For the ordinary case, use `RadioGroupField`.
136
176
  *
137
177
  * @example
138
- * <RadioGroup.Root filled={kind !== null}>
139
- * <RadioGroup.Legend optionalLabel="optional">Kind</RadioGroup.Legend>
178
+ * <RadioGroup.Root filled={kind !== null} requiredness="optional">
179
+ * <RadioGroup.Legend>Kind <Field.Requiredness optionalLabel="optional" /></RadioGroup.Legend>
140
180
  * <RadioGroup.Group value={kind} onValueChange={setKind}>
141
181
  * <RadioGroup.Item>
142
- * <RadioGroup.Radio value="direct" />
182
+ * <RadioGroup.Radio value="direct">
183
+ * <RadioGroup.Indicator />
184
+ * </RadioGroup.Radio>
143
185
  * Direct
144
186
  * </RadioGroup.Item>
145
187
  * </RadioGroup.Group>
@@ -151,6 +193,7 @@ var RadioGroup$1 = {
151
193
  Group: RadioGroupGroup,
152
194
  Item: RadioGroupItem,
153
195
  Radio: RadioGroupRadio,
196
+ Indicator: RadioGroupIndicator,
154
197
  Description: Field$1.Description,
155
198
  Error: Field$1.Error,
156
199
  useIds: Field$1.useIds
@@ -1,8 +1,8 @@
1
1
  import './radio-group.css';// src/components/radio-group-field/radio-group.module.scss
2
- var group = "_group_18uvi_3";
3
- var item = "_item_18uvi_9";
4
- var radio = "_radio_18uvi_17";
5
- var indicator = "_indicator_18uvi_84";
2
+ var group = "_group_1ipzk_3";
3
+ var item = "_item_1ipzk_9";
4
+ var radio = "_radio_1ipzk_18";
5
+ var indicator = "_indicator_1ipzk_136";
6
6
  var radio_group_module_default = {
7
7
  group,
8
8
  item,
@@ -1,6 +1,6 @@
1
1
  import type { ToggleGroup as BaseToggleGroup } from "@base-ui/react/toggle-group";
2
2
  import type { ReactNode } from "react";
3
- import type { FieldBlurHandler, ChoiceOption, FieldProps } from "../field/index.ts";
3
+ import { type FieldBlurHandler, type ChoiceOption, type FieldProps } from "../field/index.ts";
4
4
  export type SegmentedControlFieldProps = FieldProps & Readonly<{
5
5
  /** The choices, in the order they read. */
6
6
  options: readonly ChoiceOption[];