@canonical/react-ds-global-form 0.29.1 → 0.30.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 (214) hide show
  1. package/dist/esm/lib/common/Wrapper/ToggleWrapper.css +35 -0
  2. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js +52 -0
  3. package/dist/esm/lib/common/Wrapper/ToggleWrapper.js.map +1 -0
  4. package/dist/esm/lib/common/Wrapper/Wrapper.js +2 -2
  5. package/dist/esm/lib/common/Wrapper/Wrapper.js.map +1 -1
  6. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js +1 -1
  7. package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js.map +1 -1
  8. package/dist/esm/lib/common/Wrapper/index.js +2 -0
  9. package/dist/esm/lib/common/Wrapper/index.js.map +1 -1
  10. package/dist/esm/lib/common/Wrapper/withToggleWrapper.js +14 -0
  11. package/dist/esm/lib/common/Wrapper/withToggleWrapper.js.map +1 -0
  12. package/dist/esm/lib/component/CheckboxField/CheckboxField.js +8 -6
  13. package/dist/esm/lib/component/CheckboxField/CheckboxField.js.map +1 -1
  14. package/dist/esm/lib/component/ChoicesField/ChoicesField.js +2 -2
  15. package/dist/esm/lib/component/ChoicesField/ChoicesField.js.map +1 -1
  16. package/dist/esm/lib/component/ChoicesField/common/Option/Option.js +1 -1
  17. package/dist/esm/lib/component/ChoicesField/common/Option/Option.js.map +1 -1
  18. package/dist/esm/lib/component/ColorField/ColorField.js +3 -3
  19. package/dist/esm/lib/component/ColorField/ColorField.js.map +1 -1
  20. package/dist/esm/lib/component/ComboboxField/ComboboxField.js +3 -3
  21. package/dist/esm/lib/component/ComboboxField/ComboboxField.js.map +1 -1
  22. package/dist/esm/lib/component/DateField/DateField.js +3 -3
  23. package/dist/esm/lib/component/DateField/DateField.js.map +1 -1
  24. package/dist/esm/lib/component/DateTimeField/DateTimeField.js +3 -3
  25. package/dist/esm/lib/component/DateTimeField/DateTimeField.js.map +1 -1
  26. package/dist/esm/lib/component/FileUploadField/FileUploadField.js +3 -3
  27. package/dist/esm/lib/component/FileUploadField/FileUploadField.js.map +1 -1
  28. package/dist/esm/lib/component/HiddenField/HiddenField.js +3 -3
  29. package/dist/esm/lib/component/HiddenField/HiddenField.js.map +1 -1
  30. package/dist/esm/lib/component/NumberField/NumberField.js +3 -3
  31. package/dist/esm/lib/component/NumberField/NumberField.js.map +1 -1
  32. package/dist/esm/lib/component/PasswordField/PasswordField.js +3 -3
  33. package/dist/esm/lib/component/PasswordField/PasswordField.js.map +1 -1
  34. package/dist/esm/lib/component/PhoneField/PhoneField.js +3 -3
  35. package/dist/esm/lib/component/PhoneField/PhoneField.js.map +1 -1
  36. package/dist/esm/lib/component/RangeField/RangeField.js +2 -2
  37. package/dist/esm/lib/component/RangeField/RangeField.js.map +1 -1
  38. package/dist/esm/lib/component/RangeField/common/RangeControl/RangeControl.js +1 -1
  39. package/dist/esm/lib/component/RangeField/common/RangeControl/RangeControl.js.map +1 -1
  40. package/dist/esm/lib/component/RatingField/RatingField.js +12 -0
  41. package/dist/esm/lib/component/RatingField/RatingField.js.map +1 -0
  42. package/dist/esm/lib/component/RatingField/index.js +2 -0
  43. package/dist/esm/lib/component/RatingField/index.js.map +1 -0
  44. package/dist/esm/lib/component/RatingField/types.js +2 -0
  45. package/dist/esm/lib/component/RatingField/types.js.map +1 -0
  46. package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js +2 -2
  47. package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js.map +1 -1
  48. package/dist/esm/lib/component/RichChoicesField/common/Option/Option.js +1 -1
  49. package/dist/esm/lib/component/RichChoicesField/common/Option/Option.js.map +1 -1
  50. package/dist/esm/lib/component/RichChoicesField/styles.css +6 -0
  51. package/dist/esm/lib/component/SelectField/SelectField.js +3 -3
  52. package/dist/esm/lib/component/SelectField/SelectField.js.map +1 -1
  53. package/dist/esm/lib/component/SwitchField/SwitchField.js +13 -0
  54. package/dist/esm/lib/component/SwitchField/SwitchField.js.map +1 -0
  55. package/dist/esm/lib/component/SwitchField/index.js +2 -0
  56. package/dist/esm/lib/component/SwitchField/index.js.map +1 -0
  57. package/dist/esm/lib/component/SwitchField/types.js +2 -0
  58. package/dist/esm/lib/component/SwitchField/types.js.map +1 -0
  59. package/dist/esm/lib/component/TextField/TextField.js +3 -3
  60. package/dist/esm/lib/component/TextField/TextField.js.map +1 -1
  61. package/dist/esm/lib/component/TextareaField/TextareaField.js +3 -3
  62. package/dist/esm/lib/component/TextareaField/TextareaField.js.map +1 -1
  63. package/dist/esm/lib/component/TimeField/TimeField.js +3 -3
  64. package/dist/esm/lib/component/TimeField/TimeField.js.map +1 -1
  65. package/dist/esm/lib/component/index.js +2 -0
  66. package/dist/esm/lib/component/index.js.map +1 -1
  67. package/dist/esm/lib/index.js +2 -1
  68. package/dist/esm/lib/index.js.map +1 -1
  69. package/dist/esm/lib/pattern/Field/Field.js +23 -17
  70. package/dist/esm/lib/pattern/Field/Field.js.map +1 -1
  71. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js +14 -8
  72. package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js.map +1 -1
  73. package/dist/esm/lib/subcomponent/FileUploadInput/styles.css +3 -0
  74. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js +1 -1
  75. package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js.map +1 -1
  76. package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js +48 -0
  77. package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js.map +1 -0
  78. package/dist/esm/lib/subcomponent/RatingInput/index.js +2 -0
  79. package/dist/esm/lib/subcomponent/RatingInput/index.js.map +1 -0
  80. package/dist/esm/lib/subcomponent/RatingInput/styles.css +159 -0
  81. package/dist/esm/lib/subcomponent/RatingInput/types.js +2 -0
  82. package/dist/esm/lib/subcomponent/RatingInput/types.js.map +1 -0
  83. package/dist/esm/lib/subcomponent/SwitchInput/SwitchInput.js +26 -0
  84. package/dist/esm/lib/subcomponent/SwitchInput/SwitchInput.js.map +1 -0
  85. package/dist/esm/lib/subcomponent/SwitchInput/index.js +2 -0
  86. package/dist/esm/lib/subcomponent/SwitchInput/index.js.map +1 -0
  87. package/dist/esm/lib/subcomponent/SwitchInput/styles.css +88 -0
  88. package/dist/esm/lib/subcomponent/SwitchInput/types.js +2 -0
  89. package/dist/esm/lib/subcomponent/SwitchInput/types.js.map +1 -0
  90. package/dist/esm/lib/subcomponent/index.js +2 -0
  91. package/dist/esm/lib/subcomponent/index.js.map +1 -1
  92. package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts +24 -0
  93. package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts.map +1 -0
  94. package/dist/types/lib/common/Wrapper/index.d.ts +2 -0
  95. package/dist/types/lib/common/Wrapper/index.d.ts.map +1 -1
  96. package/dist/types/lib/common/Wrapper/withToggleWrapper.d.ts +20 -0
  97. package/dist/types/lib/common/Wrapper/withToggleWrapper.d.ts.map +1 -0
  98. package/dist/types/lib/common/Wrapper/withWrapper.d.ts +1 -1
  99. package/dist/types/lib/common/Wrapper/withWrapper.d.ts.map +1 -1
  100. package/dist/types/lib/common/types.d.ts +24 -2
  101. package/dist/types/lib/common/types.d.ts.map +1 -1
  102. package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts +8 -332
  103. package/dist/types/lib/component/CheckboxField/CheckboxField.d.ts.map +1 -1
  104. package/dist/types/lib/component/CheckboxField/types.d.ts +7 -4
  105. package/dist/types/lib/component/CheckboxField/types.d.ts.map +1 -1
  106. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts +1 -0
  107. package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts.map +1 -1
  108. package/dist/types/lib/component/ChoicesField/common/Option/types.d.ts +1 -1
  109. package/dist/types/lib/component/ChoicesField/common/Option/types.d.ts.map +1 -1
  110. package/dist/types/lib/component/ChoicesField/types.d.ts +2 -2
  111. package/dist/types/lib/component/ChoicesField/types.d.ts.map +1 -1
  112. package/dist/types/lib/component/ColorField/ColorField.d.ts +2 -1
  113. package/dist/types/lib/component/ColorField/ColorField.d.ts.map +1 -1
  114. package/dist/types/lib/component/ColorField/types.d.ts +2 -2
  115. package/dist/types/lib/component/ColorField/types.d.ts.map +1 -1
  116. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts +1 -0
  117. package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts.map +1 -1
  118. package/dist/types/lib/component/ComboboxField/types.d.ts +2 -2
  119. package/dist/types/lib/component/ComboboxField/types.d.ts.map +1 -1
  120. package/dist/types/lib/component/DateField/DateField.d.ts +1 -0
  121. package/dist/types/lib/component/DateField/DateField.d.ts.map +1 -1
  122. package/dist/types/lib/component/DateField/types.d.ts +2 -2
  123. package/dist/types/lib/component/DateField/types.d.ts.map +1 -1
  124. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts +1 -0
  125. package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts.map +1 -1
  126. package/dist/types/lib/component/DateTimeField/types.d.ts +2 -2
  127. package/dist/types/lib/component/DateTimeField/types.d.ts.map +1 -1
  128. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts +1 -0
  129. package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts.map +1 -1
  130. package/dist/types/lib/component/FileUploadField/types.d.ts +2 -2
  131. package/dist/types/lib/component/FileUploadField/types.d.ts.map +1 -1
  132. package/dist/types/lib/component/HiddenField/HiddenField.d.ts +1 -0
  133. package/dist/types/lib/component/HiddenField/HiddenField.d.ts.map +1 -1
  134. package/dist/types/lib/component/HiddenField/types.d.ts +2 -2
  135. package/dist/types/lib/component/HiddenField/types.d.ts.map +1 -1
  136. package/dist/types/lib/component/NumberField/NumberField.d.ts +1 -0
  137. package/dist/types/lib/component/NumberField/NumberField.d.ts.map +1 -1
  138. package/dist/types/lib/component/NumberField/types.d.ts +2 -2
  139. package/dist/types/lib/component/NumberField/types.d.ts.map +1 -1
  140. package/dist/types/lib/component/PasswordField/PasswordField.d.ts +1 -0
  141. package/dist/types/lib/component/PasswordField/PasswordField.d.ts.map +1 -1
  142. package/dist/types/lib/component/PasswordField/types.d.ts +2 -2
  143. package/dist/types/lib/component/PasswordField/types.d.ts.map +1 -1
  144. package/dist/types/lib/component/PhoneField/PhoneField.d.ts +3 -2
  145. package/dist/types/lib/component/PhoneField/PhoneField.d.ts.map +1 -1
  146. package/dist/types/lib/component/PhoneField/index.d.ts +1 -1
  147. package/dist/types/lib/component/PhoneField/index.d.ts.map +1 -1
  148. package/dist/types/lib/component/PhoneField/types.d.ts +2 -2
  149. package/dist/types/lib/component/PhoneField/types.d.ts.map +1 -1
  150. package/dist/types/lib/component/RangeField/RangeField.d.ts +1 -0
  151. package/dist/types/lib/component/RangeField/RangeField.d.ts.map +1 -1
  152. package/dist/types/lib/component/RangeField/types.d.ts +1 -1
  153. package/dist/types/lib/component/RangeField/types.d.ts.map +1 -1
  154. package/dist/types/lib/component/RatingField/RatingField.d.ts +46 -0
  155. package/dist/types/lib/component/RatingField/RatingField.d.ts.map +1 -0
  156. package/dist/types/lib/component/RatingField/index.d.ts +3 -0
  157. package/dist/types/lib/component/RatingField/index.d.ts.map +1 -0
  158. package/dist/types/lib/component/RatingField/types.d.ts +9 -0
  159. package/dist/types/lib/component/RatingField/types.d.ts.map +1 -0
  160. package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts +1 -0
  161. package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts.map +1 -1
  162. package/dist/types/lib/component/RichChoicesField/types.d.ts +2 -2
  163. package/dist/types/lib/component/RichChoicesField/types.d.ts.map +1 -1
  164. package/dist/types/lib/component/SelectField/SelectField.d.ts +1 -0
  165. package/dist/types/lib/component/SelectField/SelectField.d.ts.map +1 -1
  166. package/dist/types/lib/component/SelectField/types.d.ts +2 -2
  167. package/dist/types/lib/component/SelectField/types.d.ts.map +1 -1
  168. package/dist/types/lib/component/SwitchField/SwitchField.d.ts +14 -0
  169. package/dist/types/lib/component/SwitchField/SwitchField.d.ts.map +1 -0
  170. package/dist/types/lib/component/SwitchField/index.d.ts +3 -0
  171. package/dist/types/lib/component/SwitchField/index.d.ts.map +1 -0
  172. package/dist/types/lib/component/SwitchField/types.d.ts +8 -0
  173. package/dist/types/lib/component/SwitchField/types.d.ts.map +1 -0
  174. package/dist/types/lib/component/TextField/TextField.d.ts +2 -1
  175. package/dist/types/lib/component/TextField/TextField.d.ts.map +1 -1
  176. package/dist/types/lib/component/TextField/types.d.ts +2 -2
  177. package/dist/types/lib/component/TextField/types.d.ts.map +1 -1
  178. package/dist/types/lib/component/TextareaField/TextareaField.d.ts +1 -0
  179. package/dist/types/lib/component/TextareaField/TextareaField.d.ts.map +1 -1
  180. package/dist/types/lib/component/TextareaField/types.d.ts +2 -2
  181. package/dist/types/lib/component/TextareaField/types.d.ts.map +1 -1
  182. package/dist/types/lib/component/TimeField/TimeField.d.ts +1 -0
  183. package/dist/types/lib/component/TimeField/TimeField.d.ts.map +1 -1
  184. package/dist/types/lib/component/TimeField/types.d.ts +2 -2
  185. package/dist/types/lib/component/TimeField/types.d.ts.map +1 -1
  186. package/dist/types/lib/component/index.d.ts +2 -0
  187. package/dist/types/lib/component/index.d.ts.map +1 -1
  188. package/dist/types/lib/index.d.ts +2 -0
  189. package/dist/types/lib/index.d.ts.map +1 -1
  190. package/dist/types/lib/pattern/Field/Field.d.ts.map +1 -1
  191. package/dist/types/lib/pattern/Field/types.d.ts +27 -21
  192. package/dist/types/lib/pattern/Field/types.d.ts.map +1 -1
  193. package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +1 -1
  194. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts +2 -2
  195. package/dist/types/lib/subcomponent/PhoneInput/types.d.ts.map +1 -1
  196. package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts +23 -0
  197. package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts.map +1 -0
  198. package/dist/types/lib/subcomponent/RatingInput/index.d.ts +3 -0
  199. package/dist/types/lib/subcomponent/RatingInput/index.d.ts.map +1 -0
  200. package/dist/types/lib/subcomponent/RatingInput/types.d.ts +52 -0
  201. package/dist/types/lib/subcomponent/RatingInput/types.d.ts.map +1 -0
  202. package/dist/types/lib/subcomponent/SwitchInput/SwitchInput.d.ts +16 -0
  203. package/dist/types/lib/subcomponent/SwitchInput/SwitchInput.d.ts.map +1 -0
  204. package/dist/types/lib/subcomponent/SwitchInput/index.d.ts +3 -0
  205. package/dist/types/lib/subcomponent/SwitchInput/index.d.ts.map +1 -0
  206. package/dist/types/lib/subcomponent/SwitchInput/types.d.ts +8 -0
  207. package/dist/types/lib/subcomponent/SwitchInput/types.d.ts.map +1 -0
  208. package/dist/types/lib/subcomponent/index.d.ts +4 -0
  209. package/dist/types/lib/subcomponent/index.d.ts.map +1 -1
  210. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts +2 -2
  211. package/dist/types/lib/utils/middleware/addRESTOptions.d.ts.map +1 -1
  212. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts +1 -1
  213. package/dist/types/lib/utils/middleware/addRESTValidation.d.ts.map +1 -1
  214. package/package.json +14 -20
@@ -0,0 +1,35 @@
1
+ /* Toggle field layout, top to bottom: an optional heading, a control row where
2
+ * the input sits inline with its label, then the description and any error. */
3
+ .ds.field.field-toggle {
4
+ display: flex;
5
+ flex-direction: column;
6
+ row-gap: var(--form-group-gap);
7
+
8
+ /* The heading is a mock label (a <legend>): reset the fieldset default so it
9
+ flows like the other block children. */
10
+ & > .field-toggle-heading {
11
+ padding: 0;
12
+ }
13
+
14
+ /* Control row: the input sits at the start of the label's first line, so a
15
+ multi-line (sentence) label wraps below the input rather than centring on
16
+ it. */
17
+ & > .field-toggle-control {
18
+ display: flex;
19
+ flex-direction: row;
20
+ align-items: baseline;
21
+ column-gap: var(--form-field-inline-gap);
22
+
23
+ /* The control label is often a full clickable sentence, so it reads as
24
+ regular body prose (not the bold heading weight the field label uses by
25
+ default): normal weight, left-aligned, pointer cursor, and it takes the
26
+ remaining width so it wraps beside the control instead of pushing it. */
27
+ & > .ds.field-label {
28
+ flex: 1;
29
+ min-width: 0;
30
+ font-weight: var(--typography-text-primary-font-weight);
31
+ text-align: start;
32
+ cursor: pointer;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { states } from "../../constants.js";
3
+ import { Description, Error as FieldError, Label, } from "../../subcomponent/Field/index.js";
4
+ import { useFieldWrapper } from "./hooks/index.js";
5
+ import "./styles.css";
6
+ import "./ToggleWrapper.css";
7
+ const componentCssClassName = "ds field field-toggle";
8
+ /**
9
+ * Field wrapper for toggle inputs (checkbox, switch), where the control sits
10
+ * inline beside its label instead of stacked below it.
11
+ *
12
+ * Two label slots:
13
+ * - `controlLabel` — the inline label beside the control; it carries the real
14
+ * `htmlFor` binding. Falls back to `label` when omitted, so a uniform field
15
+ * map (`{ label, name, inputType }`) still produces a properly labelled
16
+ * control.
17
+ * - `label` — an optional heading rendered above the control (and description).
18
+ * It only shows as a heading when `controlLabel` is also set; otherwise it is
19
+ * used as the inline control label.
20
+ *
21
+ * @returns {React.ReactElement} - Rendered toggle field
22
+ *
23
+ * `import { ToggleWrapper } from "@canonical/react-ds-global-form";`
24
+ */
25
+ const ToggleWrapper = ({ id, className, style, name, Component, description, label, controlLabel, isOptional, requiredIndicator, registerProps: userRegisterProps, nestedRegisterProps, unregisterOnUnmount, ...otherProps }) => {
26
+ // The inline label (beside the control) always carries the htmlFor binding;
27
+ // the heading only appears when a distinct controlLabel was supplied. At
28
+ // least one of `label`/`controlLabel` is guaranteed by the type of the toggle
29
+ // field props, so no runtime check is needed here.
30
+ const inlineLabel = controlLabel ?? label;
31
+ const headingLabel = controlLabel && label ? label : undefined;
32
+ const { fieldError, isError, ariaProps, registerProps } = useFieldWrapper(name, {
33
+ label: inlineLabel,
34
+ isOptional,
35
+ userRegisterProps,
36
+ nestedRegisterProps,
37
+ unregisterOnUnmount,
38
+ });
39
+ // Computed inline (not memoised) so `...otherProps` — disabled, onChange,
40
+ // etc. — never goes stale between renders.
41
+ const componentProps = {
42
+ name,
43
+ registerProps,
44
+ ...ariaProps.input,
45
+ ...otherProps,
46
+ };
47
+ return (_jsxs("div", { id: id, style: style, className: [componentCssClassName, className, isError && states.Danger]
48
+ .filter(Boolean)
49
+ .join(" "), children: [headingLabel && (_jsx(Label, { name: name, tag: "legend", className: "field-toggle-heading", children: headingLabel })), _jsxs("div", { className: "field-toggle-control", children: [_jsx(Component, { ...componentProps }), _jsx(Label, { name: name, isOptional: isOptional, requiredIndicator: requiredIndicator, ...ariaProps.label, children: inlineLabel })] }), description && (_jsx(Description, { ...ariaProps.description, children: description })), isError && (_jsx(FieldError, { ...ariaProps.error, children: fieldError?.message?.toString() }))] }));
50
+ };
51
+ export default ToggleWrapper;
52
+ //# sourceMappingURL=ToggleWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleWrapper.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/ToggleWrapper.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,KAAK,IAAI,UAAU,EACnB,KAAK,GACN,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,CAAC;AAE7B,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,aAAa,GAAG,CAAwC,EAC5D,EAAE,EACF,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,KAAK,EACL,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,aAAa,EAAE,iBAAiB,EAChC,mBAAmB,EACnB,mBAAmB,E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C,UAAU,OAAK,SAAS,CAAC,KAAK,YAC5B,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,GACrB,CACd,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { states } from "#lib/constants.js";
4
- import { Description, Error as FieldError, Label, } from "#lib/subcomponent/Field/index.js";
3
+ import { states } from "../../constants.js";
4
+ import { Description, Error as FieldError, Label, } from "../../subcomponent/Field/index.js";
5
5
  import "./styles.css";
6
6
  import { useFieldWrapper } from "./hooks/index.js";
7
7
  const componentCssClassName = "ds field";
@@ -1 +1 @@
1
- {"version":3,"file":"Wrapper.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/Wrapper.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EACL,WAAW,EACX,KAAK,IAAI,UAAU,EACnB,KAAK,GACN,MAAM,kCAAkC,CAAC;AAE1C,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,OAAO,GAAG,CAAwC,EACtD,EAAE,EACF,SAAS,EACT,KAAK,EAEL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,aAAa,EAAE,iBAAiB,EAChC,mBAAmB,EACnB,mBAAmB,EAEnB,SAAS,GAAG,KAAK,EACjB,GAAG,UAAU,EACgB,EAAsB,EAAE;IACrD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,eAAe,CACvE,IAAI,EACJ;QACE,KAAK;QACL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C,CAAC,SAAS,KACjC,SAAS,CAAC,KAAK,YAElB,KAAK,GACA,EACR,eAAK,SAAS,EAAC,SAAS,aACrB,WAAW,IAAI,CACd,KAAC,WAAW,OAAK,SAAS,CAAC,WAAW,YAAG,WAAW,GAAe,CACpE,EACD,KAAC,SAAS,OAAK,cAAc,GAAI,EAChC,OAAO,IAAI,CACV,KAAC,UAAU,OAAK,SAAS,CAAC,KAAK,YAC5B,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,GACrB,CACd,IACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useMemo } from "react";
2
2
  import { useFormContext } from "react-hook-form";
3
- import { useFieldAriaProperties, useFieldError, } from "#lib/utils/hooks/index.js";
3
+ import { useFieldAriaProperties, useFieldError, } from "../../../utils/hooks/index.js";
4
4
  import messages from "../messages.js";
5
5
  /**
6
6
  * Hook to provide field wrapper utilities
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldWrapper.js","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAwB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EACL,sBAAsB,EACtB,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAUtC;;;;GAIG;AACH,MAAM,eAAe,GAAG,CACtB,IAAY,EACZ,UAAkC,EAAE,EACpC,EAAE;IACF,MAAM,EACJ,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,iBAAiB,GAAG,EAAE,EACtB,mBAAmB,GAAG,EAAE,EACxB,mBAAmB,GAAG,IAAI,GAC3B,GAAG,OAAO,CAAC;IAEZ,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEvC,MAAM,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC;IAE7B,4EAA4E;IAC5E,6DAA6D;IAC7D,MAAM,SAAS,GAAG,sBAAsB,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;IAErE,yFAAyF;IACzF,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QACjC,MAAM,KAAK,GAAoB,EAAE,CAAC;QAClC,kFAAkF;QAClF,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,KAAK,CAAC,QAAQ,GAAG;gBACf,KAAK,EAAE,IAAI;gBACX,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,CAAC;aAC1C,CAAC;QACJ,CAAC;QACD,OAAO;YACL,GAAG,mBAAmB;YACtB,GAAG,KAAK;YACR,GAAG,iBAAiB;SACrB,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,MAAM,EAAE,UAAU,EAAE,GAAG,cAAc,EAAE,CAAC;IAExC,yFAAyF;IACzF,SAAS,CACP,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAChE,CAAC,IAAI,CAAC,CACP,CAAC;IAEF,OAAO;QACL,UAAU;QACV,OAAO;QACP,SAAS;QACT,aAAa;KACd,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"useFieldWrapper.js","sourceRoot":"","sources":["../../../../../../src/lib/common/Wrapper/hooks/useFieldWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAwB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EACL,sBAAsB,EACtB,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,O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CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -1,6 +1,8 @@
1
1
  /* @canonical/generator-ds 0.9.0-experimental.4 */
2
2
  export { default as InvisibleWrapper } from "./InvisibleWrapper.js";
3
+ export { default as ToggleWrapper } from "./ToggleWrapper.js";
3
4
  export * from "./types.js";
4
5
  export { default as Wrapper } from "./Wrapper.js";
6
+ export { default as withToggleWrapper } from "./withToggleWrapper.js";
5
7
  export { default as withWrapper } from "./withWrapper.js";
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/index.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import ToggleWrapper from "./ToggleWrapper.js";
2
+ import withWrapper from "./withWrapper.js";
3
+ /**
4
+ * Field HOC for toggle inputs (checkbox, switch). Like `withWrapper`, but bakes
5
+ * in `ToggleWrapper` (control inline with its label) and types the result to
6
+ * require at least one of `label`/`controlLabel`. Applying the label constraint
7
+ * here — in the HOC's return type — keeps it out of the shared `withWrapper`
8
+ * generics, which would otherwise widen the union back to all-optional.
9
+ *
10
+ * `import { withToggleWrapper } from "@canonical/react-ds-global-form";`
11
+ */
12
+ const withToggleWrapper = (Component) => withWrapper(Component, undefined, ToggleWrapper);
13
+ export default withToggleWrapper;
14
+ //# sourceMappingURL=withToggleWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withToggleWrapper.js","sourceRoot":"","sources":["../../../../../src/lib/common/Wrapper/withToggleWrapper.ts"],"names":[],"mappings":"AAMA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAa3C;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,CACxB,SAAwC,EACA,EAAE,CAC1C,WAAW,CAAiB,SAAS,EAAE,SAAS,EAAE,aAAa,CAE9D,CAAC;AAEJ,eAAe,iBAAiB,CAAC"}
@@ -1,11 +1,13 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { CheckboxInput } from "#lib/subcomponent/CheckboxInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withToggleWrapper from "../../common/Wrapper/withToggleWrapper.js";
3
+ import { CheckboxInput } from "../../subcomponent/CheckboxInput/index.js";
4
4
  /**
5
- * CheckboxInput bound to react-hook-form, wrapped with field chrome
6
- * (label, description, error) and middleware/conditional-display support.
5
+ * CheckboxInput bound to react-hook-form, wrapped with the toggle field chrome
6
+ * (inline label, optional heading, description, error) and
7
+ * middleware/conditional-display support. Requires at least one of
8
+ * `label`/`controlLabel`.
7
9
  *
8
10
  * `import { CheckboxField } from "@canonical/react-ds-global-form";`
9
11
  */
10
- export default withWrapper(bindField(CheckboxInput, "native"));
12
+ export default withToggleWrapper(bindField(CheckboxInput, "native"));
11
13
  //# sourceMappingURL=CheckboxField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxField.js","sourceRoot":"","sources":["../../../../../src/lib/component/CheckboxField/CheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,QAAQ,CAAC,CACvD,CAAC"}
1
+ {"version":3,"file":"CheckboxField.js","sourceRoot":"","sources":["../../../../../src/lib/component/CheckboxField/CheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAExD,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI1E;;;;;;;GAOG;AACH,eAAe,iBAAiB,CAC9B,SAAS,CAA0B,aAAa,EAAE,QAAQ,CAAC,CAC5D,CAAC"}
@@ -1,5 +1,5 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
3
  import { Choices } from "./Choices.js";
4
4
  /**
5
5
  * Choices bound to react-hook-form (controlled), wrapped with field
@@ -1 +1 @@
1
- {"version":3,"file":"ChoicesField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/ChoicesField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAoB,OAAO,EAAE,YAAY,CAAC,EACnD,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC"}
1
+ {"version":3,"file":"ChoicesField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ChoicesField/ChoicesField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAoB,OAAO,EAAE,YAAY,CAAC,EACnD,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import useOptionAriaProperties from "#lib/utils/hooks/useOptionAriaProperties.js";
2
+ import useOptionAriaProperties from "../../../../utils/hooks/useOptionAriaProperties.js";
3
3
  const componentCssClassName = "ds option";
4
4
  /**
5
5
  * A single plain-label option within a `Choices` group: a styled native
@@ -1 +1 @@
1
- {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/ChoicesField/common/Option/Option.tsx"],"names":[],"mappings":";AAGA,OAAO,uBAAuB,MAAM,6CAA6C,CAAC;AAGlF,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACI,EAAsB,EAAE;IACpC,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,MAAM,EAAE,QAAQ,IAAI,UAAU,CAAC;aAC/D,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,aAEZ,gBACE,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,KACd,SAAS,CAAC,KAAK,GACnB,EAEF,gBAAO,SAAS,EAAC,GAAG,KAAK,SAAS,CAAC,KAAK,YACrC,MAAM,CAAC,KAAK,GACP,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/ChoicesField/common/Option/Option.tsx"],"names":[],"mappings":";AAGA,OAAO,uBAAuB,MAAM,oDAAoD,CAAC;AAGzF,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACI,EAAsB,EAAE;IACpC,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,MAAM,EAAE,QAAQ,IAAI,UAAU,CAAC;aAC/D,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,aAEZ,gBACE,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,KACd,SAAS,CAAC,KAAK,GACnB,EAEF,gBAAO,SAAS,EAAC,GAAG,KAAK,SAAS,CAAC,KAAK,YACrC,MAAM,CAAC,KAAK,GACP,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { ColorInput } from "#lib/subcomponent/ColorInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { ColorInput } from "../../subcomponent/ColorInput/index.js";
4
4
  /**
5
5
  * ColorInput bound to react-hook-form (controlled), wrapped with field chrome.
6
6
  * The `defaultValue` preserves the registration default the original leaf set
@@ -1 +1 @@
1
- {"version":3,"file":"ColorField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ColorField/ColorField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAGnE;;;;GAIG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,UAAU,EAAE,YAAY,EAAE;IACnD,YAAY,EAAE,SAAS;CACxB,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"ColorField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ColorField/ColorField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE;;;;GAIG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,UAAU,EAAE,YAAY,EAAE;IACnD,YAAY,EAAE,SAAS;CACxB,CAAC,CACH,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { ComboboxInput } from "#lib/subcomponent/ComboboxInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { ComboboxInput } from "../../subcomponent/ComboboxInput/index.js";
4
4
  /**
5
5
  * ComboboxInput bound to react-hook-form (controlled), wrapped with field chrome.
6
6
  * The single composite value is owned by the field; the presentational
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ComboboxField/ComboboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,YAAY,CAAC,CAC3D,CAAC"}
1
+ {"version":3,"file":"ComboboxField.js","sourceRoot":"","sources":["../../../../../src/lib/component/ComboboxField/ComboboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,YAAY,CAAC,CAC3D,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { DateInput } from "#lib/subcomponent/DateInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { DateInput } from "../../subcomponent/DateInput/index.js";
4
4
  /**
5
5
  * Date input bound to react-hook-form, wrapped with field chrome
6
6
  * (label, description, error) and middleware/conditional-display support.
@@ -1 +1 @@
1
- {"version":3,"file":"DateField.js","sourceRoot":"","sources":["../../../../../src/lib/component/DateField/DateField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAGjE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAiB,SAAS,EAAE,QAAQ,CAAC,CAC/C,CAAC"}
1
+ {"version":3,"file":"DateField.js","sourceRoot":"","sources":["../../../../../src/lib/component/DateField/DateField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAGlE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAiB,SAAS,EAAE,QAAQ,CAAC,CAC/C,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { DateTimeInput } from "#lib/subcomponent/DateTimeInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { DateTimeInput } from "../../subcomponent/DateTimeInput/index.js";
4
4
  /**
5
5
  * DateTime input bound to react-hook-form, wrapped with field chrome
6
6
  * (label, description, error) and middleware/conditional-display support.
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeField.js","sourceRoot":"","sources":["../../../../../src/lib/component/DateTimeField/DateTimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,QAAQ,CAAC,CACvD,CAAC"}
1
+ {"version":3,"file":"DateTimeField.js","sourceRoot":"","sources":["../../../../../src/lib/component/DateTimeField/DateTimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,QAAQ,CAAC,CACvD,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { FileUploadInput } from "#lib/subcomponent/FileUploadInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { FileUploadInput } from "../../subcomponent/FileUploadInput/index.js";
4
4
  /**
5
5
  * FileUploadInput bound to react-hook-form (controlled), wrapped with field chrome.
6
6
  * The `defaultValue` preserves the registration default the original leaf set
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploadField.js","sourceRoot":"","sources":["../../../../../src/lib/component/FileUploadField/FileUploadField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAG7E;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAuB,eAAe,EAAE,YAAY,EAAE;IAC7D,YAAY,EAAE,EAAE;CACjB,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"FileUploadField.js","sourceRoot":"","sources":["../../../../../src/lib/component/FileUploadField/FileUploadField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAG9E;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAuB,eAAe,EAAE,YAAY,EAAE;IAC7D,YAAY,EAAE,EAAE;CACjB,CAAC,CACH,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import { InvisibleWrapper, withWrapper } from "#lib/common/Wrapper/index.js";
3
- import { HiddenInput } from "#lib/subcomponent/HiddenInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import { InvisibleWrapper, withWrapper } from "../../common/Wrapper/index.js";
3
+ import { HiddenInput } from "../../subcomponent/HiddenInput/index.js";
4
4
  /**
5
5
  * HiddenInput bound to react-hook-form. Uses InvisibleWrapper so no label,
6
6
  * description, or error chrome is rendered.
@@ -1 +1 @@
1
- {"version":3,"file":"HiddenField.js","sourceRoot":"","sources":["../../../../../src/lib/component/HiddenField/HiddenField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAGrE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAmB,WAAW,EAAE,QAAQ,CAAC,EAClD,EAAE,EACF,gBAAgB,CACjB,CAAC"}
1
+ {"version":3,"file":"HiddenField.js","sourceRoot":"","sources":["../../../../../src/lib/component/HiddenField/HiddenField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAmB,WAAW,EAAE,QAAQ,CAAC,EAClD,EAAE,EACF,gBAAgB,CACjB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // Generated by @canonical/summon-component:react v0.1.0
2
- import bindField from "#lib/common/bindField/index.js";
3
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
4
- import { NumberInput } from "#lib/subcomponent/NumberInput/index.js";
2
+ import bindField from "../../common/bindField/index.js";
3
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
4
+ import { NumberInput } from "../../subcomponent/NumberInput/index.js";
5
5
  /**
6
6
  * NumberInput bound to react-hook-form, wrapped with field chrome (label,
7
7
  * description, error) and middleware/conditional-display support. Collects a
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../../../src/lib/component/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAGrE;;;;;;GAMG;AACH,eAAe,WAAW;AACxB,oEAAoE;AACpE,4EAA4E;AAC5E,SAAS,CAAmB,WAAW,EAAE,QAAQ,EAAE;IACjD,gBAAgB,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1C,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../../../src/lib/component/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE;;;;;;GAMG;AACH,eAAe,WAAW;AACxB,oEAAoE;AACpE,4EAA4E;AAC5E,SAAS,CAAmB,WAAW,EAAE,QAAQ,EAAE;IACjD,gBAAgB,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1C,CAAC,CACH,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // Generated by @canonical/summon-component:react v0.1.0
2
- import bindField from "#lib/common/bindField/index.js";
3
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
4
- import { PasswordInput } from "#lib/subcomponent/PasswordInput/index.js";
2
+ import bindField from "../../common/bindField/index.js";
3
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
4
+ import { PasswordInput } from "../../subcomponent/PasswordInput/index.js";
5
5
  /**
6
6
  * PasswordInput bound to react-hook-form, wrapped with field chrome (label,
7
7
  * description, error) and middleware/conditional-display support. Collects a
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../../../../src/lib/component/PasswordField/PasswordField.tsx"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,QAAQ,CAAC,CACvD,CAAC"}
1
+ {"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../../../../src/lib/component/PasswordField/PasswordField.tsx"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG1E;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAqB,aAAa,EAAE,QAAQ,CAAC,CACvD,CAAC"}
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { PhoneInput } from "#lib/subcomponent/PhoneInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { PhoneInput } from "../../subcomponent/PhoneInput/index.js";
4
4
  /**
5
5
  * PhoneInput bound to react-hook-form (controlled), wrapped with field chrome.
6
6
  * The single composite value (an E.164 string or a structured object) is owned
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneField.js","sourceRoot":"","sources":["../../../../../src/lib/component/PhoneField/PhoneField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAGnE;;;;;;;;;;;GAWG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,UAAU,EAAE,YAAY,CAAC,CACrD,CAAC"}
1
+ {"version":3,"file":"PhoneField.js","sourceRoot":"","sources":["../../../../../src/lib/component/PhoneField/PhoneField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE;;;;;;;;;;;GAWG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,UAAU,EAAE,YAAY,CAAC,CACrD,CAAC"}
@@ -1,5 +1,5 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
3
  import { RangeControl } from "./common/index.js";
4
4
  /**
5
5
  * A numeric field offering both precise entry and a slider for one value.
@@ -1 +1 @@
1
- {"version":3,"file":"RangeField.js","sourceRoot":"","sources":["../../../../../src/lib/component/RangeField/RangeField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,YAAY,EAAE,QAAQ,EAAE;IACjD,gBAAgB,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1C,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"RangeField.js","sourceRoot":"","sources":["../../../../../src/lib/component/RangeField/RangeField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD;;;;;;;;;;;GAWG;AACH,eAAe,WAAW,CACxB,SAAS,CAAkB,YAAY,EAAE,QAAQ,EAAE;IACjD,gBAAgB,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1C,CAAC,CACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useEffect, useRef, useState, } from "react";
3
- import { NumberInput } from "#lib/subcomponent/NumberInput/index.js";
3
+ import { NumberInput } from "../../../../subcomponent/NumberInput/index.js";
4
4
  import "./styles.css";
5
5
  const componentCssClassName = "ds range-control";
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"RangeControl.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/RangeField/common/RangeControl/RangeControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAErE,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,SAAS,aAAa,CAAC,GAAW,EAAE,GAAW,EAAE,GAAW;IAC1D,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,cAAc,EACxB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,kBAAkB,GAC5B,EACD,OAAO,IAAI,CACV,gBACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,uBAAuB,gBACrB,mBAAmB,EAC/B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,QAAQ,EAAE,kBAAkB,GAC5B,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"RangeControl.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/RangeField/common/RangeControl/RangeControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAE5E,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,SAAS,aAAa,CAAC,GAAW,EAAE,GAAW,EAAE,GAAW;IAC1D,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CACpC,SAAS,YAAY,CACnB,EACE,EAAE,EACF,S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E,kBAAkB,GAC5B,EACD,OAAO,IAAI,CACV,gBACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,uBAAuB,gBACrB,mBAAmB,EAC/B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,QAAQ,EAAE,kBAAkB,GAC5B,CACH,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { RatingInput } from "../../subcomponent/RatingInput/index.js";
4
+ /**
5
+ * RatingInput bound to react-hook-form (controlled), wrapped with the field
6
+ * chrome (label, description, error) and middleware/conditional-display support.
7
+ * The numeric rating is owned by the field.
8
+ *
9
+ * `import { RatingField } from "@canonical/react-ds-global-form";`
10
+ */
11
+ export default withWrapper(bindField(RatingInput, "controlled"));
12
+ //# sourceMappingURL=RatingField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatingField.js","sourceRoot":"","sources":["../../../../../src/lib/component/RatingField/RatingField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAmB,WAAW,EAAE,YAAY,CAAC,CACvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as RatingField } from "./RatingField.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/component/RatingField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/component/RatingField/types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
3
  import { RichChoices } from "./RichChoices.js";
4
4
  /**
5
5
  * RichChoices bound to react-hook-form (controlled), wrapped with field chrome.
@@ -1 +1 @@
1
- {"version":3,"file":"RichChoicesField.js","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoicesField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAwB,WAAW,EAAE,YAAY,CAAC,EAC3D,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC"}
1
+ {"version":3,"file":"RichChoicesField.js","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoicesField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C;;;;;;GAMG;AACH,eAAe,WAAW,CACxB,SAAS,CAAwB,WAAW,EAAE,YAAY,CAAC,EAC3D,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import useOptionAriaProperties from "#lib/utils/hooks/useOptionAriaProperties.js";
2
+ import useOptionAriaProperties from "../../../../utils/hooks/useOptionAriaProperties.js";
3
3
  const componentCssClassName = "ds option";
4
4
  /**
5
5
  * A single selectable option within a `RichChoices` group: a hidden native input
@@ -1 +1 @@
1
- {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/RichChoicesField/common/Option/Option.tsx"],"names":[],"mappings":";AAGA,OAAO,uBAAuB,MAAM,6CAA6C,CAAC;AAGlF,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACI,EAAsB,EAAE;IACpC,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,QAAQ,IAAI,UAAU,CAAC;aACvD,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,aAEZ,gBACE,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,KACd,SAAS,CAAC,KAAK,GACnB,EAEF,gBAAO,SAAS,EAAC,GAAG,KAAK,SAAS,CAAC,KAAK,YACrC,MAAM,CAAC,KAAK,GACP,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/RichChoicesField/common/Option/Option.tsx"],"names":[],"mappings":";AAGA,OAAO,uBAAuB,MAAM,oDAAoD,CAAC;AAGzF,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,GAAG,CAAC,EACd,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACI,EAAsB,EAAE;IACpC,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CACL,eACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,QAAQ,IAAI,UAAU,CAAC;aACvD,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,aAEZ,gBACE,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,KACd,SAAS,CAAC,KAAK,GACnB,EAEF,gBAAO,SAAS,EAAC,GAAG,KAAK,SAAS,CAAC,KAAK,YACrC,MAAM,CAAC,KAAK,GACP,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -66,6 +66,10 @@
66
66
  }
67
67
 
68
68
  /* Focus */
69
+ /* biome-ignore lint/style/noDescendingSpecificity: state rules are ordered by
70
+ interaction semantics (hover → focus → checked → disabled); the preceding
71
+ :hover rule only reads as higher specificity because of its :not(:disabled)
72
+ guard. Reordering to satisfy the linter would change the cascade. */
69
73
  & > input:focus-visible + label {
70
74
  outline: none;
71
75
  border-color: var(--form-input-border-color-focus);
@@ -73,6 +77,7 @@
73
77
  }
74
78
 
75
79
  /* Checked / selected */
80
+ /* biome-ignore lint/style/noDescendingSpecificity: see the focus rule above. */
76
81
  & > input:checked + label {
77
82
  border-color: var(--form-input-border-color-focus);
78
83
  background-color: var(
@@ -83,6 +88,7 @@
83
88
  }
84
89
 
85
90
  /* Disabled */
91
+ /* biome-ignore lint/style/noDescendingSpecificity: see the focus rule above. */
86
92
  & > input:disabled + label {
87
93
  border-color: var(--form-input-border-color-disabled);
88
94
  background-color: var(--form-input-background-disabled);
@@ -1,6 +1,6 @@
1
- import bindField from "#lib/common/bindField/index.js";
2
- import withWrapper from "#lib/common/Wrapper/withWrapper.js";
3
- import { SelectInput } from "#lib/subcomponent/SelectInput/index.js";
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withWrapper from "../../common/Wrapper/withWrapper.js";
3
+ import { SelectInput } from "../../subcomponent/SelectInput/index.js";
4
4
  /**
5
5
  * SelectInput bound to react-hook-form, wrapped with field chrome
6
6
  * (label, description, error) and middleware/conditional-display support.
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.js","sourceRoot":"","sources":["../../../../../src/lib/component/SelectField/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAGrE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAmB,WAAW,EAAE,QAAQ,CAAC,CACnD,CAAC"}
1
+ {"version":3,"file":"SelectField.js","sourceRoot":"","sources":["../../../../../src/lib/component/SelectField/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AACxD,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE;;;;;GAKG;AACH,eAAe,WAAW,CACxB,SAAS,CAAmB,WAAW,EAAE,QAAQ,CAAC,CACnD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import bindField from "../../common/bindField/index.js";
2
+ import withToggleWrapper from "../../common/Wrapper/withToggleWrapper.js";
3
+ import { SwitchInput } from "../../subcomponent/SwitchInput/index.js";
4
+ /**
5
+ * SwitchInput bound to react-hook-form, wrapped with the toggle field chrome
6
+ * (inline label, optional heading, description, error) and
7
+ * middleware/conditional-display support. Requires at least one of
8
+ * `label`/`controlLabel`.
9
+ *
10
+ * `import { SwitchField } from "@canonical/react-ds-global-form";`
11
+ */
12
+ export default withToggleWrapper(bindField(SwitchInput, "native"));
13
+ //# sourceMappingURL=SwitchField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchField.js","sourceRoot":"","sources":["../../../../../src/lib/component/SwitchField/SwitchField.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAExD,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAItE;;;;;;;GAOG;AACH,eAAe,iBAAiB,CAC9B,SAAS,CAAwB,WAAW,EAAE,QAAQ,CAAC,CACxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as SwitchField } from "./SwitchField.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/component/SwitchField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/component/SwitchField/types.ts"],"names":[],"mappings":""}